/* Shared workspace shell. Editor controls remain the first visible content. */
.tool-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 8px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel, var(--bg));
  color: var(--text);
}
.tool-header-brand {
  font-size: 17px;
  font-weight: 750;
  color: var(--accent);
  white-space: nowrap;
}
.tool-header-brand span {
  font-weight: 550;
}
.tool-header-divider {
  width: 1px;
  height: 23px;
  background: var(--line);
}
.tool-header-title {
  font-weight: 600;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tool-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}
.tool-header-button:hover {
  background: var(--accent-soft);
  border-color: var(--line);
}
.tool-header-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.tool-header-button.theme-toggle {
  width: 36px;
  height: 36px;
}
.tool-header-button svg {
  flex-shrink: 0;
}
.tool-header-menu {
  position: relative;
}
.tool-header-menu summary {
  list-style: none;
}
.tool-header-menu summary::-webkit-details-marker {
  display: none;
}
.tool-header-popover {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  width: 245px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 45px #0003;
  z-index: 150;
}
.tool-header-popover nav,
.tool-header-languages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.tool-header-popover a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 7px;
  font-size: 12px;
  border-radius: 6px;
}
.tool-header-popover a:hover,
.tool-header-popover a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent);
}
.tool-header-languages {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}
.tool-workspace-page .site-main {
  width: calc(100% - 40px);
  max-width: 1920px;
  padding: 18px 0 100px;
  margin-inline: auto;
  min-height: calc(100dvh - 60px);
}
.tool-workspace-page .site-main > .breadcrumbs {
  display: none;
}
.tool-workspace-page .site-main > .hero,
.tool-workspace-page .site-main > .hero-panel {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  display: block;
  border-radius: 0;
}
.tool-workspace-page .site-main > .hero .hero-grid,
.tool-workspace-page .site-main > .hero-panel .hero-grid {
  display: block;
}
.tool-workspace-page .hero .hero-card,
.tool-workspace-page .hero-panel > .hero-card,
.tool-workspace-page .hero .eyebrow,
.tool-workspace-page .hero-panel .eyebrow,
.tool-workspace-page .hero .hero-actions,
.tool-workspace-page .hero-panel .hero-actions {
  display: none;
}
.tool-workspace-page .hero .hero-title,
.tool-workspace-page .hero-panel h1 {
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}
.tool-workspace-page .hero .hero-description,
.tool-workspace-page .hero-panel .hero-copy > p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0;
  color: var(--muted);
}
.tool-workspace-page .site-main > .section {
  padding-block: 0;
  margin-bottom: 20px;
}
.tool-workspace-page .site-main > .section > .container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}
.tool-workspace-page .office-tool--wide {
  max-width: none;
}
html[data-workspace-ready="true"]
  .tool-workspace-page:not(.tool-guide-visible)
  .tool-secondary-content,
html[data-workspace-ready="true"]
  .tool-workspace-page:not(.tool-guide-visible)
  .tool-support-content,
html[data-workspace-ready="true"]
  .tool-workspace-page:not(.tool-guide-visible)
  .site-footer {
  display: none;
}
.tool-workspace-page .tool-secondary-content {
  max-width: 1200px;
  margin: 28px auto !important;
}
.tool-workspace-page .site-footer {
  padding-bottom: 100px;
}
.tool-workspace-page .chatbot-fab {
  display: none !important;
}
.tool-workspace-page .chatbot-window {
  bottom: 85px !important;
}
.tool-workspace-page .pwa-banner {
  display: none !important;
}
.tool-workspace-page .tool-active-section {
  scroll-margin-top: 65px;
}
.tool-workspace-page.tool-guide-visible .site-main > .breadcrumbs {
  display: flex;
  margin-bottom: 15px;
}
.tool-workspace-page.tool-guide-visible .hero-card {
  display: block;
}
.tool-workspace-page.tool-guide-visible .site-main > .hero .hero-actions,
.tool-workspace-page.tool-guide-visible .site-main > .hero-panel .hero-actions {
  display: flex;
  margin-top: 10px;
}
.tool-workspace-page.tool-guide-visible .hero-card {
  max-width: 950px;
  margin-top: 18px;
}
.tool-workspace-page.tool-guide-visible .hero .hero-description {
  max-width: 1000px;
}
@media (max-width: 800px) {
  .tool-header {
    padding: 7px 10px;
    gap: 8px;
    min-height: 52px;
  }
  .tool-header-title {
    font-size: 11px;
  }
  .tool-header-brand {
    font-size: 15px;
  }
  .tool-header-button {
    min-width: 34px;
    padding: 7px;
  }
  #tool-guide-toggle span {
    display: none;
  }
  .tool-header-divider {
    display: none;
  }
  .tool-workspace-page .site-main {
    width: calc(100% - 16px);
    padding-top: 12px;
  }
  .tool-workspace-page .hero .hero-description,
  .tool-workspace-page .hero-panel .hero-copy > p {
    font-size: 11px;
  }
  .tool-workspace-page .site-main > .hero,
  .tool-workspace-page .site-main > .hero-panel {
    margin-bottom: 12px;
  }
  .tool-workspace-page .chatbot-window {
    max-width: calc(100vw - 18px) !important;
    inset-inline-end: 9px !important;
    bottom: 82px !important;
  }
}
@media (max-width: 400px) {
  .tool-header-title {
    max-width: calc(100vw - 225px);
  }
  .tool-header-actions {
    gap: 1px;
  }
  .tool-header {
    gap: 5px;
  }
  .tool-header-brand span {
    display: none;
  }
}
@media print {
  .tool-header,
  .tool-workspace-page .site-footer {
    display: none !important;
  }
}
html:not([data-workspace-ready="true"]) .tool-workspace-page .hero-actions {
  display: flex;
}
