:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #172033;
  background: #eef3f9;
  --brand: #0b5cab;
  --brand-dark: #083f76;
  --border: #d7deea;
  --muted: #5e6b7e;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --warning: #fff7df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.58; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.guide-hero {
  color: white;
  background: linear-gradient(135deg, #083f76, #0b78cf);
  padding: 38px 22px;
}
.guide-hero-inner, .guide-layout { width: min(1100px, 100%); margin: 0 auto; }
.guide-brand { display: flex; align-items: center; gap: 14px; }
.guide-hero h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.12; }
.guide-hero p { max-width: 760px; margin: 12px 0 0; font-size: 17px; opacity: .94; }
.guide-version { display: inline-block; margin-top: 16px; font-size: 13px; opacity: .82; }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 24px 18px 60px; }
.guide-toc { position: sticky; top: 18px; align-self: start; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.guide-toc strong { display: block; margin-bottom: 8px; }
.guide-toc a { display: block; padding: 5px 0; color: #34435a; text-decoration: none; font-size: 14px; }
.guide-toc a:hover { color: var(--brand); }
.guide-content { min-width: 0; }
.guide-section { margin-bottom: 20px; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 18px rgb(16 24 40 / 6%); }
.guide-section h2 { margin: 0 0 12px; color: var(--brand-dark); font-size: 24px; }
.guide-section h3 { margin: 24px 0 8px; font-size: 18px; }
.guide-section h3:first-of-type { margin-top: 16px; }
.guide-section p { margin: 9px 0; }
.guide-section ul, .guide-section ol { padding-left: 24px; }
.guide-section li { margin: 5px 0; }
.quick-start { border-left: 5px solid #2b8a5a; }
.callout { margin: 16px 0; padding: 13px 15px; background: var(--soft); border-left: 4px solid var(--brand); border-radius: 7px; }
.warning { background: var(--warning); border-left-color: #b77900; }
.prompt { margin: 12px 0; padding: 13px 15px; white-space: pre-wrap; background: #f2f6fb; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li::before { content: "✓"; margin-right: 9px; color: #19734a; font-weight: 700; }
.guide-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--soft); }
.guide-footer { padding: 22px; color: white; text-align: center; background: #172b47; }
.app-guide-link { margin: 0; padding: 0 14px 14px; text-align: center; font-size: 12px; }

@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-toc nav { columns: 2; }
}

@media (max-width: 520px) {
  .guide-hero { padding: 28px 18px; }
  .guide-layout { padding: 14px 10px 40px; }
  .guide-section { padding: 18px; }
  .guide-toc nav { columns: 1; }
}

@media print {
  :root { background: white; }
  .guide-hero { color: #172033; background: white; padding: 0 0 18px; }
  .guide-layout { display: block; width: 100%; padding: 0; }
  .guide-toc { display: none; }
  .guide-section { break-inside: avoid; box-shadow: none; border: 0; padding: 12px 0; }
  .guide-footer { color: #172033; background: white; }
}
