:root {
  color-scheme: dark;
  --bg: #08111a;
  --bg-raised: #0d1723;
  --sidebar: #0b1621;
  --surface: #0e1b28;
  --surface-hover: #142438;
  --text: #edf2fb;
  --text-soft: #bcc8d8;
  --muted: #91a1b7;
  --faint: #72839b;
  --line: #23364a;
  --line-strong: #314a64;
  --accent: #3f8cff;
  --accent-strong: #55a0ff;
  --accent-wash: rgba(63, 140, 255, .13);
  --code: #0a1520;
  --note: #102033;
  --header-height: 65px;
  --nav-width: 242px;
  --toc-width: 246px;
  --content: 1015px;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-raised: #ffffff;
  --sidebar: #f0f4f9;
  --surface: #ffffff;
  --surface-hover: #e7f0fc;
  --text: #172538;
  --text-soft: #394c63;
  --muted: #60758f;
  --faint: #71849a;
  --line: #d5e0eb;
  --line-strong: #b8c9db;
  --accent: #2477ec;
  --accent-strong: #155dca;
  --accent-wash: rgba(36, 119, 236, .12);
  --code: #0d1a27;
  --note: #edf5ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 14px/1.55 var(--ui); text-rendering: optimizeLegibility; }
button, input { font: inherit; }
a { color: var(--accent-strong); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
code { padding: .08em .28em; color: #b8d5ff; background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 3px; font: .88em var(--mono); }

.docs-header { position: sticky; top: 0; z-index: 30; height: var(--header-height); display: grid; grid-template-columns: var(--nav-width) minmax(350px, 705px) 1fr; gap: 34px; align-items: center; padding: 0 29px; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 18px; min-width: 0; color: var(--text); font: 620 17px/1 var(--display); letter-spacing: -.015em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }
.brand-divider { width: 1px; height: 28px; background: var(--line-strong); }
.brand-subtitle { color: var(--text-soft); font-size: 17px; font-weight: 470; }
.doc-search { position: relative; width: 100%; }
.doc-search input { width: 100%; height: 38px; padding: 0 78px 0 43px; color: var(--text); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; font-size: 14px; }
.doc-search input::placeholder { color: var(--muted); opacity: 1; }
.doc-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.doc-search svg { position: absolute; left: 14px; top: 10px; color: var(--text-soft); pointer-events: none; }
.shortcut { position: absolute; right: 9px; top: 8px; padding: 2px 6px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; font: 11px/1.2 var(--mono); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); width: 100%; overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: 0 18px 42px rgba(0, 0, 0, .28); }
.search-results a, .search-empty { display: block; padding: 10px 14px; color: var(--text-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.search-results strong { display: block; color: var(--text); font-weight: 650; }
.search-results small { color: var(--muted); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0; }
.header-button { min-height: 28px; padding: 0 17px; color: var(--text-soft); background: transparent; border: 0; border-left: 1px solid var(--line-strong); cursor: pointer; font-size: 14px; white-space: nowrap; }
.header-button:first-child { border-left: 0; }
.header-button:hover, .header-button:focus-visible, .header-button.active { color: var(--accent-strong); outline: 0; }
.theme-choice { display: inline-flex; align-items: center; gap: 7px; }
.studio-link { color: var(--accent-strong); font-weight: 620; }

.docs-layout { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: var(--nav-width) minmax(0, var(--content)) var(--toc-width); justify-content: center; align-items: start; }
.docs-sidebar { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); overflow-y: auto; padding: 14px 0 36px; background: linear-gradient(90deg, var(--sidebar), color-mix(in srgb, var(--sidebar) 82%, var(--bg))); border-right: 1px solid var(--line); scrollbar-width: thin; }
.nav-home { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 7px 24px; color: var(--text-soft); border-left: 4px solid transparent; font-size: 14px; font-weight: 650; }
.nav-home:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.nav-home.active { color: var(--accent-strong); background: linear-gradient(90deg, var(--accent-wash), transparent); border-left-color: var(--accent); }
.nav-group { margin-top: 10px; }
.nav-title { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: 6px 16px 5px 30px; color: var(--text-soft); background: transparent; border: 0; cursor: pointer; font: 650 14px/1.3 var(--ui); text-align: left; }
.nav-title:hover { color: var(--text); }
.nav-label { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.nav-icon { width: 15px; height: 15px; flex: 0 0 15px; color: var(--muted); }
.nav-chevron { flex: 0 0 auto; transition: transform .16s ease; }
.nav-group.collapsed .nav-chevron { transform: rotate(-90deg); }
.nav-items { overflow: hidden; }
.nav-group.collapsed .nav-items { display: none; }
.docs-sidebar .nested { display: flex; align-items: center; gap: 9px; min-height: 25px; padding: 3px 23px 3px 48px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.docs-sidebar .nested:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.docs-sidebar .nested.active { color: var(--accent-strong); font-weight: 620; }
.docs-sidebar .nested.active .nav-icon { color: currentColor; }

main { width: 100%; min-width: 0; padding: 33px 47px 100px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; color: var(--muted); font-size: 11px; font-weight: 730; letter-spacing: .15em; text-transform: uppercase; }
.breadcrumbs span + span { color: var(--faint); }
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--display); line-height: 1.15; letter-spacing: -.027em; text-wrap: balance; }
h1 { max-width: 850px; font-size: clamp(42px, 4vw, 58px); font-weight: 730; }
h2 { margin-bottom: 8px; font-size: 25px; font-weight: 710; }
h3 { font-size: 17px; }
p { margin: 0 0 14px; color: var(--text-soft); }
.lead { max-width: 890px; margin-top: 14px; color: var(--text-soft); font-size: 17px; line-height: 1.55; }
section { margin-top: 38px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.start-panel { margin-top: 37px; padding: 0 0 26px; }
.quick-column { padding-left: 40px; border-left: 1px solid var(--line-strong); }
.learning-path { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.learning-path li { counter-increment: steps; }
.learning-path a { display: grid; grid-template-columns: 23px minmax(0, 1fr) 18px; column-gap: 14px; padding: 7px 0; color: var(--text); }
.learning-path a:hover { text-decoration: none; }
.learning-path a:hover strong, .quick-links a:hover span { color: #8fc0ff; }
.learning-path a::before { grid-row: span 2; color: var(--accent); content: counter(steps); font: 680 18px/1 var(--mono); }
.learning-path strong, .quick-links span { color: var(--accent-strong); font-weight: 670; }
.learning-path span { grid-column: 2; display: block; margin-top: 2px; color: var(--text-soft); font-size: 13px; line-height: 1.48; }
.learning-path b { grid-column: 3; align-self: center; color: var(--accent); font-size: 20px; font-weight: 400; }
.quick-links { margin-top: 16px; }
.quick-links a { display: grid; grid-template-columns: minmax(0, 1fr) 18px; column-gap: 16px; padding: 8px 0; }
.quick-links span { display: block; }
.quick-links small { grid-column: 1; display: block; margin-top: 2px; color: var(--text-soft); font-size: 13px; line-height: 1.48; }
.quick-links b { grid-column: 2; grid-row: span 2; align-self: center; color: var(--accent); font-size: 20px; font-weight: 400; }
.section-rule { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.section-intro { margin-bottom: 14px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-list a { display: grid; grid-template-columns: 35px minmax(0, 1fr) 20px; gap: 14px; align-items: center; min-height: 54px; padding: 8px 9px; color: var(--text); border-bottom: 1px solid var(--line); }
.topic-list a:hover { background: var(--surface-hover); text-decoration: none; }
.topic-list strong { display: inline-block; min-width: 216px; color: var(--text); font-weight: 670; }
.topic-list small { display: inline; margin-left: 8px; color: var(--text-soft); font-size: 13px; }
.topic-symbol { display: grid; width: 23px; height: 23px; place-items: center; color: var(--text-soft); }
.topic-symbol svg { width: 22px; height: 22px; }
.topic-list b { color: var(--accent); font-size: 20px; font-weight: 400; }
.compact-section { max-width: 840px; }
.docs-footer { margin-top: 74px; padding-top: 20px; color: var(--faint); border-top: 1px solid var(--line); font-size: 12px; }
.guide-article { max-width: none; }
.guide-article .lead { max-width: 830px; }
.guide-section { max-width: 840px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.guide-section p { max-width: 790px; font-size: 15px; }
.guide-steps { display: grid; gap: 10px; max-width: 790px; margin: 17px 0 0; padding: 0; list-style: none; counter-reset: guide-steps; }
.guide-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; color: var(--text-soft); }
.guide-steps li::before { color: var(--accent); content: counter(guide-steps); counter-increment: guide-steps; font: 680 15px/1.55 var(--mono); }
.guide-status { display: grid; gap: 4px; max-width: 840px; margin-top: 34px; padding: 16px 18px; background: var(--note); border-left: 3px solid var(--accent); }
.guide-status strong { color: var(--text); font-weight: 690; }
.guide-status span { color: var(--text-soft); font-size: 14px; }
.guide-next { max-width: 840px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.guide-next a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; color: var(--accent-strong); border-bottom: 1px solid var(--line); font-weight: 680; }
.guide-next a:hover { background: var(--surface-hover); text-decoration: none; }
.guide-next b { font-size: 20px; font-weight: 400; }
.guide-return { margin-top: 36px; font-weight: 650; }

.page-toc { position: sticky; top: calc(var(--header-height) + 16px); align-self: start; margin: 0 0 0 16px; padding: 18px 0 4px 23px; border-left: 1px solid var(--line-strong); }
.page-toc p { margin: 0 0 11px; color: var(--text); font-size: 13px; font-weight: 700; }
.page-toc a { position: relative; display: block; padding: 5px 0; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.page-toc a:hover, .page-toc a.active { color: var(--accent-strong); text-decoration: none; }
.page-toc a.active { font-weight: 620; }
.page-toc a.active::before { position: absolute; left: -25px; top: 4px; width: 3px; height: 29px; background: var(--accent); content: ""; }

.note { display: grid; grid-template-columns: 1fr; gap: 3px; max-width: 760px; margin-top: 28px; padding: 15px 18px; background: var(--note); border-left: 3px solid var(--accent); color: var(--text); }
.note strong { font-weight: 660; }
.note span { color: var(--text-soft); font-size: 14px; }
pre { overflow-x: auto; max-width: 100%; margin: 17px 0; padding: 16px 18px; color: #d8e2f0; background: var(--code); border: 1px solid var(--line-strong); border-radius: 5px; font: 13px/1.62 var(--mono); }
pre code { padding: 0; color: inherit; background: transparent; border: 0; border-radius: 0; font: inherit; }
ul { margin: 14px 0; padding-left: 22px; color: var(--text-soft); }
li + li { margin-top: 7px; }
.next-step { display: grid; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.next-step h2 { margin-bottom: 4px; }

.library-article .lead { max-width: 900px; }
.library-start, .library-language, .library-map, .library-search { max-width: 920px; padding-top: 25px; border-top: 1px solid var(--line-strong); }
.library-start p, .library-language > p, .library-map p { max-width: 820px; font-size: 15px; }
.notation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.notation-grid div { display: grid; gap: 8px; min-height: 98px; padding: 14px 15px; background: var(--surface); border: 1px solid var(--line); }
.notation-grid code { width: fit-content; }
.notation-grid span { color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.library-family-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.library-family-links a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 34px; padding: 7px 10px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; }
.library-family-links a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.library-family-links strong { color: var(--accent-strong); font-size: 13px; }
.library-family-links span { color: var(--muted); font-size: 12px; }
.library-search { display: grid; gap: 8px; }
.library-search label { color: var(--text); font-weight: 650; }
.library-search input { width: 100%; height: 42px; padding: 0 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.library-search input::placeholder { color: var(--muted); }
.library-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.library-result-summary { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.library-content { max-width: none; }
.command-family { scroll-margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.command-family > header { max-width: 850px; }
.command-family > header h2 { margin-bottom: 7px; }
.family-kicker { margin-bottom: 7px; color: var(--accent-strong); font: 680 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.command-category-section { scroll-margin-top: 88px; margin-top: 34px; }
.command-category-section > h3 { margin-bottom: 5px; font-size: 20px; }
.command-category-section > p { max-width: 800px; color: var(--muted); font-size: 13px; }
.command-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.command-card { min-width: 0; padding: 16px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); border-radius: 5px; scroll-margin-top: 88px; }
.command-card[hidden] { display: none; }
.command-card-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.command-card-header h3 { margin: 0; font-size: 18px; }
.command-card-header h3 code { color: var(--text); font-size: .9em; }
.command-card-header > a { padding: 1px 4px; color: var(--muted); font: 15px/1 var(--mono); }
.command-card-header > a:hover { color: var(--accent-strong); text-decoration: none; }
.command-category { margin: 5px 0 0; color: var(--accent-strong); font-size: 12px; font-weight: 650; }
.command-details { display: grid; gap: 11px; margin: 14px 0 0; }
.command-details div { display: grid; gap: 3px; }
.command-details dt, .command-example > span { color: var(--text); font-size: 11px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.command-details dd { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.command-details dd code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: #b8d5ff; }
.command-example { margin-top: 15px; }
.command-example pre { margin: 6px 0 0; padding: 11px 12px; font-size: 12px; line-height: 1.5; }
.library-toc a { font-size: 12px; }
.command-guide-article { max-width: none; }
.command-hero { max-width: 900px; }
.command-hero h1 code { color: var(--text); background: transparent; border: 0; font-size: .84em; }
.command-quickfacts { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(180px, .65fr); gap: 1px; max-width: 820px; margin-top: 27px; overflow: hidden; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 5px; }
.command-quickfacts div { display: grid; gap: 5px; min-height: 73px; padding: 13px 15px; background: var(--surface); }
.command-quickfacts span { color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.command-quickfacts code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.command-quickfacts strong { color: var(--text-soft); font-size: 14px; font-weight: 620; }
.command-guide-section { max-width: 850px; padding-top: 25px; border-top: 1px solid var(--line-strong); scroll-margin-top: 88px; }
.command-guide-section > p { max-width: 790px; font-size: 15px; }
.command-syntax-list { display: grid; gap: 8px; margin: 15px 0 0; padding-left: 21px; }
.command-syntax-list li { color: var(--text-soft); }
.command-arguments { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.command-arguments > div { display: grid; grid-template-columns: minmax(110px, 175px) minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.command-arguments dt { font-weight: 650; overflow-wrap: anywhere; }
.command-arguments dd { margin: 0; color: var(--text-soft); line-height: 1.55; }
.command-steps { display: grid; gap: 12px; margin: 17px 0 0; padding: 0; list-style: none; counter-reset: command-steps; }
.command-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 11px; color: var(--text-soft); }
.command-steps li::before { color: var(--accent); content: counter(command-steps); counter-increment: command-steps; font: 680 15px/1.55 var(--mono); }
.related-command-list { border-top: 1px solid var(--line); }
.related-command-list a { display: flex; justify-content: space-between; gap: 18px; padding: 11px 8px; color: var(--text); border-bottom: 1px solid var(--line); }
.related-command-list a:hover { background: var(--surface-hover); text-decoration: none; }
.related-command-list span { display: grid; gap: 3px; }
.related-command-list strong { color: var(--accent-strong); }
.related-command-list small { color: var(--text-soft); font-size: 13px; }
.related-command-list b { align-self: center; color: var(--accent); font-size: 20px; font-weight: 400; }
.command-back { margin-top: 42px; font-weight: 650; }
.command-guide-link { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 11px; color: var(--accent-strong); border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.command-guide-link:hover { text-decoration: none; color: var(--text); }
.scripting-directory .lead { max-width: 900px; }
.directory-hero { max-width: 920px; }
.directory-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 26px; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; }
.directory-stats span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 46px; padding: 12px 16px; color: var(--text-soft); border-right: 1px solid var(--line-strong); font-size: 13px; }
.directory-stats span:last-child { border-right: 0; }
.directory-stats strong { color: var(--accent-strong); font: 720 20px/1 var(--display); }
.directory-search { display: grid; gap: 8px; max-width: 920px; padding-top: 25px; border-top: 1px solid var(--line-strong); }
.directory-search label { color: var(--text); font-weight: 650; }
.directory-search input { width: 100%; height: 44px; padding: 0 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; }
.directory-search input::placeholder { color: var(--muted); }
.directory-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.directory-search p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.directory-categories { display: flex; flex-wrap: wrap; gap: 7px; max-width: 940px; margin-top: 24px; }
.directory-categories a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 9px 6px 11px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.directory-categories a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.directory-categories b { display: grid; min-width: 19px; min-height: 19px; place-items: center; color: var(--accent-strong); background: var(--accent-wash); border-radius: 3px; font: 700 11px/1 var(--mono); }
.directory-list { max-width: 1060px; }
.directory-category { scroll-margin-top: 88px; padding-top: 31px; border-top: 1px solid var(--line-strong); }
.directory-category > header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.directory-category h2 { margin: 0; }
.directory-category .family-kicker { margin: 0 0 4px; }
.directory-rows { border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: minmax(190px, .78fr) minmax(0, 1.35fr) 20px; gap: 18px; align-items: center; min-height: 73px; padding: 10px 12px; color: var(--text-soft); border-bottom: 1px solid var(--line); }
.directory-row:hover { background: var(--surface-hover); text-decoration: none; }
.directory-row[hidden] { display: none; }
.directory-command { display: grid; gap: 5px; min-width: 0; }
.directory-command code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; color: var(--accent-strong); font-size: 14px; }
.directory-command small { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font: 11px/1.4 var(--mono); }
.directory-purpose { color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.directory-row > b { color: var(--accent); font-size: 21px; font-weight: 400; }
.directory-toc a { font-size: 12px; }

@media (max-width: 1180px) {
  :root { --toc-width: 0px; }
  .docs-layout { grid-template-columns: var(--nav-width) minmax(0, var(--content)); }
  .page-toc { display: none; }
}
@media (max-width: 820px) {
  :root { --header-height: 58px; }
  .docs-header { grid-template-columns: 1fr auto; gap: 10px; padding: 0 17px; }
  .brand-divider, .brand-subtitle, .doc-search { display: none; }
  .header-actions { gap: 4px; }
  .header-button { padding: 0 10px; border-left: 0; font-size: 13px; }
  .theme-light svg { display: none; }
  .studio-link { display: none; }
  .docs-layout { display: block; }
  .docs-sidebar { position: static; height: auto; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .nav-home { min-height: 32px; padding: 5px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .nav-home svg { display: none; }
  .nav-home.active { border-bottom-color: var(--accent); }
  .nav-group { display: contents; margin: 0; }
  .nav-title { display: none; }
  .docs-sidebar .nav-items { display: contents; }
  .docs-sidebar .nested { display: none; }
  .docs-sidebar .nested.active { display: flex; min-height: 32px; padding: 5px 10px; color: var(--accent-strong); border-bottom: 2px solid var(--accent); font-size: 13px; font-weight: 650; }
  main { padding: 37px 22px 72px; }
  .two-column { grid-template-columns: 1fr; gap: 29px; }
  .quick-column { padding: 26px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .notation-grid, .command-card-grid, .command-quickfacts { grid-template-columns: 1fr; }
  .directory-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; min-height: 67px; }
  .directory-purpose { display: none; }
  .directory-stats span { min-height: 40px; padding: 10px 12px; }
  .lead { font-size: 16px; }
  .topic-list strong { display: block; min-width: 0; }
  .topic-list small { display: block; margin: 2px 0 0; }
}
@media (max-width: 480px) {
  main { padding-inline: 17px; }
  h1 { font-size: 36px; }
  .start-panel { margin-top: 29px; }
  .topic-list a { grid-template-columns: 27px minmax(0, 1fr) 14px; gap: 9px; }
  .learning-path a { grid-template-columns: 21px minmax(0, 1fr) 15px; column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nav-title svg { transition: none; } }
