/* 星航AI 用户手册：沿用批准产品设计的导航、色彩与控件，正文采用单栏图书式阅读。 */
:root {
  --brand: #2445f5;
  --brand-strong: #1736e8;
  --brand-soft: #eef3ff;
  --nav: #0a2558;
  --nav-deep: #061a42;
  --text: #101f45;
  --text-secondary: #52617d;
  --text-tertiary: #75829b;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --workspace: #f3f6fb;
  --border: #dfe5f0;
  --border-strong: #cbd5e5;
  --success: #159447;
  --success-bg: #edf9f0;
  --warning: #e27717;
  --warning-bg: #fff7eb;
  --danger: #d94444;
  --danger-bg: #fff1f1;
  --muted-state: #71809b;
  --muted-state-bg: #f2f5fa;
  --sidebar-width: 248px;
  --topbar-height: 58px;
  --content-width: 1180px;
  --radius: 7px;
  --shadow: 0 5px 18px rgba(28, 48, 92, 0.055);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--sidebar-width) + 20px);
  z-index: 100;
  padding: 7px 13px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.product-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  padding: 14px 10px 18px;
  overflow-y: auto;
  color: #fff;
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav-deep) 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.brand-link {
  display: flex;
  align-items: center;
  height: 43px;
  margin: 0 8px 10px;
}
.brand-link img {
  display: block;
  width: 132px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}
.sidebar-caption {
  margin: 0 12px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}
.product-nav { display: grid; gap: 4px; }
.nav-section { margin-top: 12px; }
.nav-section-title {
  margin: 0 11px 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}
.nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.nav-link[aria-current="page"] {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 5px 14px rgba(12, 40, 180, 0.26);
}
.nav-child {
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.product-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--topbar-height);
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-left { flex: 1; min-width: 0; }
.topbar-right { flex-shrink: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 13px;
  white-space: nowrap;
  min-width: 0;
}
.breadcrumb > span { flex-shrink: 0; }
.breadcrumb strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
}
.breadcrumb-separator { color: var(--border-strong); }
.topbar-select {
  height: 33px;
  min-width: 112px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  outline: none;
  color: var(--text-secondary);
  background: #fff;
  font-size: 12px;
}
.search-control { position: relative; }
.search-control > img {
  position: absolute;
  top: 9px;
  left: 10px;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.search-control input {
  width: 244px;
  height: 35px;
  padding: 0 12px 0 33px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 12px;
}
.search-control input:focus {
  border-color: #8fa2ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 69, 245, 0.1);
}
.search-results {
  position: absolute;
  top: 41px;
  right: 0;
  width: min(430px, calc(100vw - 48px));
  max-height: min(470px, calc(100dvh - var(--topbar-height) - 16px));
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 31, 69, 0.16);
}
.search-results[hidden] { display: none; }
.search-result {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
}
.search-result:hover,
.search-result:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
  outline: none;
}
.search-result strong,
.search-result small { display: block; }
.search-result strong { font-size: 13px; font-weight: 650; }
.search-result small {
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}
.search-empty {
  padding: 20px 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}
.menu-button {
  display: none;
  min-width: 56px;
  height: 33px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  background: #fff;
}

.doc-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 18px) 18px 34px;
}
.doc-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  align-items: start;
  gap: 16px 28px;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}
.page-heading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 12px 28px 8px;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}
h1,
h2,
h3,
h4,
p { margin-top: 0; }
h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.4;
}
h1 {
  margin-bottom: 0;
  font-size: 29px;
  font-weight: 720;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
}
h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 680;
}
.page-intro {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.82;
}
.reading-column {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.page-toc {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  min-width: 0;
  max-height: calc(100dvh - var(--topbar-height) - 40px);
  overflow-y: auto;
  padding: 10px 0 10px 20px;
  border-left: 1px solid var(--border);
  font-size: 14px;
  scrollbar-width: thin;
}
.page-toc-heading {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}
.page-toc-heading::-webkit-details-marker { display: none; }
.page-toc-action { display: none; }
.page-toc-links {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.page-toc-links a {
  display: block;
  min-height: 38px;
  min-width: 0;
  padding: 8px 10px 8px 13px;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.page-toc-links a:hover,
.page-toc-links a[aria-current="location"] {
  color: var(--brand);
}
.page-toc-links a[aria-current="location"] { border-left-color: var(--brand); font-weight: 650; }
.page-toc-heading:focus-visible,
.page-toc-links a:focus-visible,
.task-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.reading-column [id] { scroll-margin-top: calc(var(--topbar-height) + 20px); }
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 16px;
}
.term-definition {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.term-definition:last-child { border-bottom: 0; padding-bottom: 0; }
.term-definition p { margin-bottom: 0; color: var(--text-secondary); }
.faq-search { display: grid; gap: 8px; margin-bottom: 18px; }
.faq-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
.panel,
.faq-panel {
  min-width: 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel > :last-child,
.faq-panel > :last-child { margin-bottom: 0; }
.guide-screenshot { margin: 20px 0; }
.guide-screenshot-compact { max-width: 500px; }
.guide-screenshot a { display: block; cursor: zoom-in; }
.guide-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.guide-screenshot figcaption {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.section-lead {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}
.prose p {
  max-width: 880px;
  margin-bottom: 13px;
  color: var(--text-secondary);
}
.prose p:last-child { margin-bottom: 0; }
.feature-list {
  margin: 0;
  border-top: 1px solid var(--border);
}
.feature-item {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.feature-item h3 { margin: 0; }
.feature-item p {
  margin: 0;
  color: var(--text-secondary);
}
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.decision-card {
  padding: 19px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
}
.decision-card h3 { margin-bottom: 8px; }
.decision-card p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.decision-card p:last-child { margin-bottom: 0; }
.decision-card .choice-fit {
  padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 12px;
}
.procedure {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}
.procedure li {
  position: relative;
  min-height: 62px;
  padding: 13px 0 14px 45px;
  border-bottom: 1px solid var(--border);
  counter-increment: guide-step;
}
.procedure li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.procedure li::before {
  position: absolute;
  top: 14px;
  left: 0;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  content: counter(guide-step);
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.procedure strong,
.procedure span { display: block; }
.procedure strong { margin-bottom: 2px; color: var(--text); font-weight: 680; }
.procedure span { color: var(--text-secondary); }
.mode-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.mode-table th,
.mode-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.mode-table th:last-child,
.mode-table td:last-child { border-right: 0; }
.mode-table tr:last-child td { border-bottom: 0; }
.mode-table th {
  color: var(--text);
  background: var(--surface-soft);
  font-weight: 680;
}
.mode-table td { color: var(--text-secondary); }
/* 状态色与尺寸对应 web/src/styles/task-status.ts 及 tokens.less 的浅色主题。 */
.state-chip {
  --state-color: #646a73;
  --state-background: #f8f9fa;
  --state-border: #dee0e3;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--state-border);
  border-radius: 7px;
  color: var(--state-color);
  background: var(--state-background);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.state-chip[data-tone="success"] { --state-color: #32a645; --state-background: #e4fae1; --state-border: #95e599; }
.state-chip[data-tone="warning"] { --state-color: #ed6d0c; --state-background: #fff3e5; --state-border: #fec48b; }
.state-chip[data-tone="info"] { --state-color: #1456f0; --state-background: #f0f4ff; --state-border: #c2d4ff; }
.state-chip[data-tone="danger"] { --state-color: #f54a45; --state-background: #fef0f0; --state-border: #fdc6c4; }
/* 写作任务列表的状态使用无边框、14px 的卡片标签。 */
.state-chip[data-variant="writing"] {
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
}
.state-chip[data-variant="writing"][data-tone="neutral"] { --state-background: #f5f6f7; }
.state-chip-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.result-note,
.example-block,
.boundary-note {
  margin: 16px 0;
  padding: 15px 17px;
  border-radius: var(--radius);
  font-size: 13px;
}
.result-note {
  border: 1px solid #c9d4ff;
  color: #29417b;
  background: var(--brand-soft);
}
.example-block {
  border-left: 3px solid var(--brand);
  color: var(--text-secondary);
  background: var(--surface-soft);
}
.example-block strong,
.result-note strong,
.boundary-note strong { color: var(--text); font-weight: 680; }
.example-block > :last-child,
.result-note > :last-child,
.boundary-note > :last-child { margin-bottom: 0; }
.boundary-note {
  border: 1px solid #f4d7b6;
  color: #81531f;
  background: var(--warning-bg);
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-secondary);
  background: #fff;
  font-size: 12px;
}
.inline-links a:hover,
.inline-links a:focus-visible {
  color: var(--brand);
  border-color: #98a8fb;
  outline: none;
}
.task-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.task-link {
  display: block;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  overflow-wrap: anywhere;
}
.task-link:hover,
.task-link:focus-visible {
  color: var(--text);
  border-color: #98a8fb;
  box-shadow: 0 5px 14px rgba(36, 69, 245, 0.07);
}
.task-link strong,
.task-link span { display: block; }
.task-link strong { margin-bottom: 6px; font-size: 15px; font-weight: 680; }
.task-link span { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.platform-list li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-secondary);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 620;
}
.term-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(36, 69, 245, 0.6);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.term-link:hover,
.term-link:focus-visible {
  color: var(--brand);
  text-decoration-color: var(--brand);
  outline: none;
}
.term-entry { scroll-margin-top: 78px; }
.term-entry + .term-entry {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.term-entry h3 { margin-bottom: 5px; }
.term-entry p { margin-bottom: 0; color: var(--text-secondary); }
.term-entry:target {
  margin-right: -10px;
  margin-left: -10px;
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 5px;
  background: var(--brand-soft);
}
.faq-panel details { border-bottom: 1px solid var(--border); }
.faq-panel details:last-child { border-bottom: 0; }
.faq-panel details[hidden] { display: none; }
.faq-panel summary {
  position: relative;
  padding: 15px 34px 15px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 650;
  list-style: none;
}
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary::after {
  position: absolute;
  top: 13px;
  right: 4px;
  content: "+";
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
}
.faq-panel details[open] summary::after { content: "−"; }
.faq-answer {
  max-width: 860px;
  padding: 0 36px 15px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.faq-filter {
  width: 100%;
  height: 38px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  outline: none;
  background: #fff;
}
.faq-filter:focus {
  border-color: #8fa2ff;
  box-shadow: 0 0 0 3px rgba(36, 69, 245, 0.1);
}
.faq-empty {
  padding: 24px;
  color: var(--text-tertiary);
  text-align: center;
}
.page-footer {
  grid-column: 1;
  grid-row: 3;
  padding: 22px 0 4px;
  color: var(--text-tertiary);
  font-size: 11px;
  text-align: center;
}
.guide-cross-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 8px;
}
.guide-cross-links a {
  color: var(--text-secondary);
  font-size: 12px;
}
.guide-cross-links a:hover,
.guide-cross-links a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .doc-page { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .page-toc {
    grid-column: 1;
    grid-row: 2;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
  }
  .page-toc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    margin: 0;
    cursor: pointer;
  }
  .page-toc-action { display: inline; flex-shrink: 0; color: var(--brand); font-size: 13px; font-weight: 400; }
  .page-toc-action::after { content: "展开"; }
  .page-toc-disclosure[open] .page-toc-action::after { content: "收起"; }
  .page-toc-links { padding-bottom: 12px; }
  .page-toc-links a { min-height: 44px; }
  .reading-column { grid-row: 3; }
  .page-footer { grid-row: 4; }
}

@media (max-width: 880px) {
  .feature-item { grid-template-columns: 170px minmax(0, 1fr); }
  .task-directory { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    position: fixed;
    inset: 0;
    z-index: 29;
    content: "";
    background: rgba(6, 26, 66, 0.28);
  }
  .product-sidebar {
    width: min(84vw, 290px);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 24px 0 48px rgba(2, 12, 38, 0.3);
  }
  body.nav-open .product-sidebar { visibility: visible; transform: translateX(0); }
  .product-topbar { left: 0; gap: 12px; padding: 0 12px; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .breadcrumb,
  .topbar-select { display: none; }
  .search-control input { width: min(64vw, 270px); }
  .doc-shell {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 11px) 10px 24px;
  }
  .page-heading,
  .panel,
  .faq-panel { padding: 20px 18px; }
  .page-toc { padding: 0 18px; }
  h1 { font-size: 25px; }
  h2 { font-size: 18px; }
  .page-intro { font-size: 14px; }
  .decision-grid { grid-template-columns: 1fr; }
  .feature-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .mode-table { table-layout: fixed; }
  .mode-table th,
  .mode-table td { padding: 10px; overflow-wrap: anywhere; }
  .mode-table th:first-child:nth-last-child(2) { width: 32%; }
}

@media (max-width: 420px) {
  .page-heading,
  .page-toc,
  .panel,
  .faq-panel { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}

/* 产品内的辅助阅读模式使用单列正文；全书目录通过独立菜单展开。 */
html[data-guide-mode="embedded"] { --sidebar-width: 0px; --topbar-height: 58px; }
[data-guide-mode="embedded"] .doc-shell { margin-left: 0; padding: 70px 0 24px; }
[data-guide-mode="embedded"] .page-heading { padding: 14px 20px; }
[data-guide-mode="embedded"] .page-heading h1 { font-size: 22px; line-height: 1.5; }
[data-guide-mode="embedded"] .panel,
[data-guide-mode="embedded"] .faq-panel { padding: 20px; border-right: 0; border-left: 0; border-radius: 0; }
[data-guide-mode="embedded"] .page-toc { margin: 0 20px; padding: 0 14px; }
[data-guide-mode="embedded"] .page-footer { padding: 12px 20px; }
[data-guide-mode="embedded"] .skip-link { left: 12px; }
.guide-toolbar { left: 0; gap: 16px; padding: 0 20px; }
.guide-toolbar .search-control { flex: 1; min-width: 0; }
.guide-toolbar .search-control input { width: 100%; padding-left: 12px; }
.guide-toolbar .search-results { width: min(400px, calc(100vw - 40px)); }
.guide-library { flex-shrink: 0; font-size: 14px; }
.guide-library summary { cursor: pointer; color: var(--brand); padding: 8px 0; }
.guide-library nav {
  position: absolute;
  top: calc(100% - 1px);
  left: 12px;
  right: 12px;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.guide-library .nav-section-title { color: var(--text-secondary); padding: 8px 10px; }
.guide-library .nav-link { color: var(--text); padding: 8px 10px; }
.guide-library .nav-link:hover,
.guide-library .nav-link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; font-size: 10.5pt; }
  .product-sidebar,
  .product-topbar,
  .page-toc,
  .page-footer,
  .inline-links,
  .faq-filter { display: none !important; }
  .doc-shell { margin: 0; padding: 0; }
  .doc-page { display: block; }
  .page-heading,
  .panel,
  .faq-panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
