:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --ink: #172033;
  --muted: #5f6c80;
  --faint: #8a96a8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #2563eb;
  --blue-soft: #edf4ff;
  --teal: #0f766e;
  --teal-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --focus: #f97316;
  --sans: "Segoe UI", Tahoma, Arial, sans-serif;
  --mono: Consolas, "Cascadia Code", "Courier New", monospace;
  --sidebar: 258px;
  --right-rail: 208px;
  --topbar: 70px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: radial-gradient(circle at top left, #ffffff 0, #f8fbff 28%, var(--canvas) 65%); font: 16px/1.7 var(--sans); text-rendering: optimizeLegibility; }
button, input { font: inherit; }
a { color: var(--blue); }
button, a { -webkit-tap-highlight-color: transparent; }
code { padding: .1em .32em; color: #264a7d; border: 1px solid #d7e4f6; border-radius: 4px; background: #f4f8ff; font: .88em/1.5 var(--mono); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: fixed; z-index: 100; top: -50px; left: 16px; padding: 10px 13px; color: #fff; background: var(--blue); border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 16px; }

.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: var(--sidebar) 1fr auto; align-items: center; min-height: var(--topbar); padding: 0 max(24px, calc((100vw - 1560px) / 2)); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.05; text-decoration: none; letter-spacing: -.01em; }
.brand strong { display: block; color: var(--blue); font-weight: 750; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; padding: 2px; color: var(--blue); }
.brand-mark i { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 9px; }.brand-mark i:nth-child(2) { height: 16px; }.brand-mark i:nth-child(3) { height: 22px; }
.top-links { display: flex; align-items: center; justify-content: center; gap: 24px; }
.top-links a { min-height: 44px; display: inline-flex; align-items: center; color: #536174; font-size: 13px; font-weight: 600; text-decoration: none; }
.top-links a:hover { color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; display: flex; align-items: center; gap: 9px; width: min(285px, 22vw); min-height: 42px; padding: 0 10px; color: #758196; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.search-box:focus-within { border-color: #8db4fb; box-shadow: 0 0 0 3px #dbeafe; }
.search-box svg { width: 16px; height: 16px; }
.search-box input { width: 100%; min-width: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #8793a5; }
kbd { min-width: 19px; padding: 0 4px; color: #718096; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); font: 11px var(--mono); text-align: center; }
.menu-button { display: none; place-items: center; width: 44px; height: 44px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); cursor: pointer; }
.search-results { position: fixed; z-index: 30; top: 59px; right: max(24px, calc((100vw - 1560px) / 2)); width: min(390px, 90vw); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: 0 16px 40px rgb(30 41 59 / .14); }
.search-results a, .search-results:not([hidden]) { display: block; min-height: 44px; padding: 11px 13px; color: var(--ink); text-decoration: none; }
.search-results a + a { border-top: 1px solid var(--line); }.search-results a:hover { color: var(--blue); background: var(--blue-soft); }
.search-results small { display: block; color: var(--muted); font-size: 12px; }.search-results:not([hidden]):not(:has(a)) { color: var(--muted); font-size: 13px; }

.site-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 840px) var(--right-rail); justify-content: center; gap: clamp(28px, 4vw, 68px); width: min(100%, 1512px); min-height: calc(100vh - var(--topbar)); margin: 0 auto; padding: 0 24px; }
.sidebar { position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); padding: 34px 0 28px; overflow-y: auto; }
.nav-eyebrow { margin: 0 0 8px 11px; color: #8793a5; font-size: 10px; font-weight: 750; letter-spacing: .11em; }.nav-gap { margin-top: 26px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; color: #536174; border-radius: 6px; font-size: 13px; font-weight: 520; text-decoration: none; transition: color .18s var(--ease), background .18s var(--ease); }
.nav-link span { width: 16px; color: #91a0b4; font: 10px var(--mono); }.nav-link:hover { color: var(--blue); background: var(--blue-soft); }.nav-link.active { color: var(--blue); background: #e8f0ff; font-weight: 700; }.nav-link.active span { color: var(--blue); }
.sidebar-footer { margin: 32px 10px 0; color: #7c899c; font-size: 11px; }.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #10b981; }

main { min-width: 0; }.document { padding: 58px 0 0; }.doc-section { padding: 44px 0 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--topbar) + 16px); }.intro { padding-top: 0; }.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 29px; color: var(--faint); font-size: 12px; }.breadcrumbs a { color: #67758a; text-decoration: none; }.breadcrumbs a:hover { color: var(--blue); }
.eyebrow, .micro-label { margin: 0 0 11px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .12em; }.micro-label { color: var(--teal); font-size: 10px; }
h1, h2, h3 { color: #111a2b; line-height: 1.2; letter-spacing: -.03em; }h1 { max-width: 780px; margin: 0; font-size: clamp(34px, 3.9vw, 50px); font-weight: 760; }h1 span { color: var(--blue); }h2 { max-width: 760px; margin: 0; font-size: clamp(28px, 2.8vw, 38px); font-weight: 730; }h3 { margin: 0; font-size: 18px; font-weight: 720; }
.lede { max-width: 730px; margin: 20px 0 25px; color: #465469; font-size: 18px; line-height: 1.7; }.doc-section > p:not(.eyebrow):not(.lede):not(.next-guide) { max-width: 760px; margin: 16px 0 0; color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }.button svg, .next-guide svg, .guide-grid svg, .split-cards svg { width: 16px; height: 16px; }.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }.button.quiet { color: #435168; background: var(--surface); }.button:hover { transform: translateY(-1px); }.button.primary:hover { background: #1d4ed8; }.button.quiet:hover { border-color: #9ab8ec; color: var(--blue); background: var(--blue-soft); }
.command-stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.command-stack code { padding: 8px 10px; color: #35527c; background: #f2f7ff; }
.intro-panel { display: grid; grid-template-columns: auto 1fr; gap: 14px; max-width: 760px; padding: 18px 20px; border: 1px solid #cfe0fb; border-radius: 10px; background: linear-gradient(100deg, #eff6ff, #f9fbff); }.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue); border-radius: 8px; background: #dbeafe; }.intro-panel strong { font-size: 14px; }.intro-panel p { margin: 3px 0 0; color: #50617a; font-size: 14px; line-height: 1.65; }

.component-grid, .studio-grid, .prompt-grid, .ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 25px; }.component-grid article, .studio-grid article, .prompt-grid article, .ops-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.component-grid strong { color: var(--blue); font-size: 14px; }.component-grid p, .studio-grid p, .prompt-grid p, .ops-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.glossary-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #ffffff, #fbfdff); }
.glossary-grid strong { display: block; color: #1d4ed8; font-size: 14px; }
.glossary-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 23px 0; padding: 17px 18px; border: 1px solid; border-radius: 8px; }.notice > svg { width: 21px; height: 21px; margin-top: 2px; }.notice strong { display: block; font-size: 14px; }.notice p { margin: 3px 0 0; font-size: 14px; line-height: 1.65; }.notice.info { color: #174ea6; border-color: #bfdbfe; background: var(--blue-soft); }.notice.info p { color: #3f5e89; }.notice.neutral { color: #176b63; border-color: #bde9dc; background: var(--teal-soft); }.notice.neutral p { color: #3d6d68; }.notice.warning { color: #9a4409; border-color: #f6cf8a; background: var(--amber-soft); }.notice.warning p { color: #805120; }
.quick-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 21px; }
.quick-checklist div { padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.quick-checklist span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #fff; border-radius: 50%; background: var(--blue); font: 12px var(--mono); }
.quick-checklist p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.command-card { margin-top: 15px; padding: 17px 18px; border: 1px solid #d4e0f0; border-radius: 8px; background: #f7faff; }.command-card.compact { padding: 13px 17px; }.command-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; color: #6c7c91; font: 10px var(--mono); letter-spacing: .06em; }.command-card > code { display: block; overflow-wrap: anywhere; padding: 0; color: #18375e; border: 0; background: transparent; font-size: 13px; line-height: 1.7; }.copy-button { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; color: #5274a7; border: 1px solid #c7d9f1; border-radius: 5px; background: #fff; cursor: pointer; transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease); }.copy-button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }.copy-button svg { width: 15px; height: 15px; }.next-guide { margin: 20px 0 0; font-size: 14px; }.next-guide a, .split-cards a, .studio-grid a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }.next-guide a:hover, .split-cards a:hover, .studio-grid a:hover { text-decoration: underline; }

.workflow-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }.workflow-list li { display: grid; grid-template-columns: 37px 1fr auto; gap: 15px; align-items: start; padding: 18px 3px; border-bottom: 1px solid var(--line); }.workflow-list > li > span { padding-top: 3px; color: var(--blue); font: 11px var(--mono); }.workflow-list strong { font-size: 15px; }.workflow-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }.workflow-list a { display: grid; place-items: center; width: 44px; height: 44px; color: #7b8798; border: 1px solid var(--line); border-radius: 6px; }.workflow-list a:hover { color: var(--blue); border-color: #aac8fa; background: var(--blue-soft); }
.prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.prompt-grid article { min-height: 190px; border-top: 3px solid #9ac0ff; }.prompt-grid strong { display: block; font-size: 14px; line-height: 1.58; }.prompt-grid code { font-size: .8em; }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 23px; }.split-cards article { padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.split-cards p { margin: 7px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }.inline-command { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; background: var(--soft); }.inline-command code { flex: 1; overflow-wrap: anywhere; padding: 0; border: 0; background: transparent; font-size: 11px; }
.studio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.studio-grid article { min-height: 194px; border-top: 3px solid #6ee7b7; }.studio-grid h3 { color: var(--teal); }.studio-grid a { margin-top: 16px; }
.reference-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 25px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }.reference-steps div { padding: 19px; border-right: 1px solid var(--line); }.reference-steps div:last-child { border: 0; }.reference-steps span { display: block; color: var(--blue); font: 12px var(--mono); }.reference-steps strong { display: block; margin: 11px 0 5px; font-size: 15px; }.reference-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 25px; }.quality-grid > div { padding: 15px 17px; border-left: 3px solid #60a5fa; background: #f8fbff; }.quality-grid span { color: #4b77ba; font: 10px var(--mono); letter-spacing: .08em; }.quality-grid p { margin: 5px 0 0; color: #526176; font-size: 13px; line-height: 1.55; }
.template-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 16px; margin-top: 24px; }.template-layout > div:first-child { padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.template-layout h3 { margin-bottom: 9px; }.template-layout ul, .ops-grid ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 13px; }.template-layout li, .ops-grid li { margin: 7px 0; }.template-layout .notice { margin: 0; }
.status-table { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.status-table [role="row"] { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--line); font-size: 13px; }.status-table [role="row"]:first-child { color: #5d6b80; border-top: 0; background: var(--soft); font-size: 11px; letter-spacing: .06em; }.status-table span { color: var(--muted); }.status-table code { width: fit-content; color: #40556f; border: 0; background: transparent; font-size: 12px; }
.ops-grid article { border-top: 3px solid #c4b5fd; }.ops-grid h3 { color: #5b21b6; }.ops-grid li { line-height: 1.6; }
.trouble-list { margin-top: 24px; border-top: 1px solid var(--line); }.trouble-list details { border-bottom: 1px solid var(--line); }.trouble-list summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; color: #27364c; font-size: 15px; font-weight: 680; cursor: pointer; list-style: none; }.trouble-list summary::-webkit-details-marker { display: none; }.trouble-list summary svg { flex: 0 0 auto; transition: transform .18s var(--ease); }.trouble-list details[open] summary { color: var(--blue); }.trouble-list details[open] summary svg { transform: rotate(90deg); }.trouble-list p { max-width: 700px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.guide-section { border-bottom: 0; }.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }.guide-grid a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; min-height: 111px; padding: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #ffffff, #fbfdff); text-decoration: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }.guide-grid strong { color: #21334d; font-size: 14px; }.guide-grid span { color: var(--muted); font-size: 13px; line-height: 1.55; }.guide-grid svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--blue); }.guide-grid a:hover { border-color: #9ec3fc; box-shadow: 0 8px 20px rgb(37 99 235 / .09); transform: translateY(-1px); }
.document-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 26px 0 34px; color: #778499; border-top: 1px solid var(--line); font-size: 12px; }.document-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--blue); font-weight: 700; text-decoration: none; }.document-footer a svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.page-toc { position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); padding-top: 60px; }.page-toc > div { padding-left: 18px; border-left: 1px solid var(--line); }.page-toc p { margin: 0 0 10px; color: #8995a7; font-size: 10px; font-weight: 750; letter-spacing: .1em; }.toc-link { display: flex; align-items: center; min-height: 44px; color: #718096; font-size: 12px; text-decoration: none; }.toc-link:hover, .toc-link.active { color: var(--blue); }.toc-link.active { font-weight: 700; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(90vw, 330px); padding: 11px 14px; color: #fff; border-radius: 6px; background: #1e3a5f; box-shadow: 0 12px 28px rgb(15 23 42 / .18); font-size: 13px; font-weight: 650; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }.toast.visible { opacity: 1; transform: translateY(0); }
:focus-visible, .search-results a:focus-visible, .nav-link:focus-visible, .copy-button:focus-visible, .toc-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
