.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--background); z-index: var(--layer-nav); }
.header-inner { width: min(1440px, calc(100% - 64px)); height: 72px; margin-inline: auto; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; letter-spacing: -1.3px; font-weight: 650; color: var(--foreground); text-decoration: none; line-height: 1; }
.brand-ui { color: var(--muted-foreground); margin-left: -6px; font-weight: 400; }
.brand-mark { width: 23px; height: 23px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; margin-right: 2px; }
.brand-mark i { background: currentcolor; border-radius: 2px; }
.top-nav { display: flex; gap: 26px; align-items: center; }
.top-nav a { font-size: 12px; text-decoration: none; color: var(--muted-foreground); }
.top-nav a:hover, .top-nav [aria-current] { color: var(--foreground); }
.header-actions { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.search-trigger { display: flex; gap: 32px; align-items: center; background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px 6px 12px; font-size: 11px; }
kbd { font: 10px var(--font-sans); border: 1px solid var(--border); border-radius: 4px; background: var(--background); padding: 2px 4px; white-space: nowrap; }
.icon-button { min-width: 32px; height: 32px; border: 0; background: transparent; color: var(--foreground); font-size: 23px; padding: 0; }
.github-link { font-size: 12px; text-decoration: none; white-space: nowrap; }
.mobile-menu { display: none; }
#mobile-nav { padding: 1rem 1.5rem; border-top: 1px solid var(--border); max-height: 70dvh; overflow: auto; }
#mobile-nav > a { display: block; padding: 0.6rem; text-decoration: none; }
.mobile-doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem; }
.mobile-doc-links a { font-size: 12px; padding: 0.3rem; }
.home-hero { padding-block: 70px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 70px; align-items: center; }
.release-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 11px; text-decoration: none; margin-bottom: 20px; }
.mini-mark { display: grid; place-items: center; width: 16px; height: 16px; background: var(--accent); color: var(--accent-foreground); border-radius: 4px; font-size: 15px; }
.home-hero h1 { font-size: clamp(36px, 4.4vw, 65px); line-height: 1.07; letter-spacing: -0.055em; margin: 0 0 22px; font-weight: 550; }
.home-hero h1 span { color: #85857e; }
.hero-copy > p { font-size: 14px; color: var(--muted-foreground); line-height: 1.85; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 9px; }
.hero-actions .button, .hero-actions .button-secondary { padding: 0.7rem 1.1rem; gap: 24px; font-size: 12px; }
.hero-aside { padding-top: 12px; }
.native-stack { display: grid; gap: 3px; margin-bottom: 17px; }
.native-stack > span { font: 26px/1.3 var(--font-mono); letter-spacing: -1.4px; color: var(--muted-foreground); }
.native-stack > span:nth-child(2) { color: #7e8677; }
.native-stack > span:nth-child(3) { color: var(--foreground); }
.stack-dot { color: var(--ring); }
.hero-aside p { color: var(--muted-foreground); font-size: 11px; line-height: 1.9; margin-bottom: 14px; }
.hero-aside strong { font-weight: 500; color: var(--foreground); }
.hero-aside > a { font-size: 11px; text-decoration: none; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-top h2 { font-size: 25px; letter-spacing: -0.04em; font-weight: 500; margin: 6px 0 0; }
.section-top p { color: var(--muted-foreground); font-size: 13px; margin: 9px 0 0; }
.eyebrow { font-size: 10px; color: var(--muted-foreground); }
.text-link { font-size: 12px; white-space: nowrap; text-decoration: none; display: inline-flex; gap: 14px; align-items: center; }
.text-link:hover { text-decoration: underline; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; }
.showcase-tile { border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; }
.tile-label { color: var(--muted-foreground); font-size: 10px; display: flex; gap: 9px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.showcase-intro { background: var(--muted); }
.profile-demo { padding: 25px; flex: 1; }
.profile-monogram { font-size: 25px; font-weight: 550; letter-spacing: -2px; background: var(--background); border: 1px solid var(--border); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; margin-bottom: 24px; }
.profile-demo h3 { font-weight: 500; font-size: 23px; line-height: 1.15; margin: 0 0 12px; }
.profile-demo > p { color: var(--muted-foreground); font-size: 12px; max-width: 26ch; margin-bottom: 18px; }
.profile-demo .button { font-size: 11px; gap: 22px; min-height: 34px; padding: 6px 12px; }
.profile-demo .separator { margin-block: 22px 15px; }
.demo-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-badges .badge { font-size: 9px; }
.tile-inner { flex: 1; padding: 25px 22px; }
.tile-inner > h3 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.showcase-faq .accordion summary { padding-block: 16px; font-size: 12px; }
.showcase-faq .accordion details > div { font-size: 11px; }
.tile-bottom { min-height: 45px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 19px; color: var(--muted-foreground); font-size: 9px; }
.tile-bottom a { text-decoration: none; color: var(--foreground); font-size: 15px; min-width: 24px; text-align: center; }
.settings-demo { padding: 25px 22px; flex: 1; }
.demo-title { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.settings-symbol { width: 35px; height: 35px; border-radius: 8px; background: var(--muted); display: grid; place-items: center; font-size: 20px; }
.demo-title h3 { font-size: 16px; margin: 0 0 2px; letter-spacing: -0.03em; font-weight: 500; }
.demo-title p { font-size: 10px; color: var(--muted-foreground); margin: 0; }
.settings-demo .field { margin-bottom: 14px; gap: 6px; }
.settings-demo .field label { font-size: 10px; font-weight: 450; }
.settings-demo :is(input:not([type="checkbox"]), select) { font-size: 11px; padding: 8px 10px; border-color: var(--border); background: var(--background); border-radius: 6px; }
.check-row { font-size: 10px; display: flex; align-items: center; gap: 6px; margin-top: 17px; }
.check-row input { accent-color: var(--primary); }
.save-preferences { width: 100%; font-size: 11px; margin-top: 17px; min-height: 34px; padding: 6px 10px; justify-content: space-between; }
.featured { padding-block: 65px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.collection-card { min-width: 0; }
.card-preview-link { display: block; text-decoration: none; background: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 22px; overflow: clip; }
.preview-pointer { height: 255px; pointer-events: none; position: relative; }
.preview-pointer iframe { width: 170%; height: 170%; transform: scale(0.5882); transform-origin: top left; border: 1px solid var(--border); border-radius: 8px; background: var(--background); }
.collection-card-info { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-top: 15px; }
.collection-card-info h2 { font-size: 16px; margin: 0 0 6px; font-weight: 500; }
.collection-card-info h2 a { text-decoration: none; }
.collection-card-info p { font-size: 12px; color: var(--muted-foreground); max-width: 42ch; margin: 0; }
.variant-count { font-size: 10px; color: var(--muted-foreground); white-space: nowrap; padding-top: 2px; }
.foundation-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding-block: 50px 85px; border-bottom: 1px solid var(--border); }
.foundation-copy h2 { font-size: 38px; font-weight: 500; margin-block: 20px 16px; }
.foundation-copy > p { font-size: 14px; color: var(--muted-foreground); max-width: 38ch; }
.foundation-copy > a { margin-top: 8px; }
.compatibility { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; color: var(--muted-foreground); font-size: 9px; }
.compatibility span + span { border-left: 1px solid var(--border); padding-left: 15px; }
.foundation-code > p { color: var(--muted-foreground); font-size: 11px; margin-top: 12px; }
.template-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 70px; border-bottom: 1px solid var(--border); }
.template-strip h2, .getting-started-strip h2 { margin: 0 0 15px; font-size: 28px; font-weight: 500; }
.template-strip p, .getting-started-strip p { color: var(--muted-foreground); font-size: 13px; }
.template-links { display: grid; }
.template-links a { padding-block: 17px; border-bottom: 1px solid var(--border); text-decoration: none; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.template-links a:first-child { padding-top: 0; }
.template-links a:last-child { border-bottom: 0; }
.template-links strong { font-size: 14px; font-weight: 500; }
.template-links a > span:not(:last-child) { grid-row: 2; font-size: 11px; color: var(--muted-foreground); }
.template-links a > span:last-child { grid-column: 2; grid-row: 1 / 3; }
.getting-started-strip { padding-block: 65px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.getting-started-strip > div { min-width: 0; }
.getting-started-strip .text-link { float: right; margin-top: 13px; }
.install-command { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px; overflow: auto; }
.install-command code { font-size: 11px; white-space: nowrap; }
.copy-inline { border: 0; color: var(--muted-foreground); background: transparent; font-size: 10px; padding: 4px; }
.site-footer { max-width: 1440px; margin-inline: auto; padding: 36px 48px; }
.site-footer .brand { font-size: 20px; }
.site-footer .brand-mark { width: 19px; height: 19px; }
.site-footer p { margin: 12px 0 0; font-size: 10px; }
.site-footer nav { margin-left: auto; align-self: start; font-size: 11px; }
.footer-note { display: block; width: 100%; font-size: 9px; padding-top: 12px; }
.docs-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr) 170px; gap: 56px; width: min(1376px, calc(100% - 64px)); margin-inline: auto; align-items: start; }
.sidebar { position: sticky; top: 72px; height: calc(100dvh - 72px); overflow: auto; padding: 28px 12px 40px 0; scrollbar-width: thin; }
.side-label { font-size: 11px; font-weight: 550; margin: 22px 10px 8px; display: flex; justify-content: space-between; align-items: center; }
.side-label:first-child { margin-top: 0; }
.side-label span { color: var(--muted-foreground); font-size: 9px; }
.sidebar nav > a { display: block; padding: 5px 10px; font-size: 11px; text-decoration: none; color: var(--muted-foreground); border-radius: 5px; }
.sidebar nav > a:hover { background: var(--muted); color: var(--foreground); }
.sidebar [aria-current="page"] { color: var(--foreground); background: var(--secondary); font-weight: 500; }
.sidebar-note { padding: 16px; border: 1px solid var(--border); border-radius: 8px; margin-top: 30px; font-size: 11px; }
.sidebar-note p { color: var(--muted-foreground); font-size: 10px; margin: 8px 0; }
.sidebar-note a { font-size: 10px; }
.doc-main { padding: 32px 0 70px; min-width: 0; }
.breadcrumb-line { display: flex; align-items: center; gap: 11px; color: var(--muted-foreground); font-size: 10px; margin-bottom: 24px; }
.breadcrumb-line a { text-decoration: none; }
.breadcrumb-line > span { color: var(--border); }
.doc-heading { margin-bottom: 32px; }
.doc-heading h1 { font-size: 40px; margin: 14px 0; }
.doc-heading > p { color: var(--muted-foreground); font-size: 14px; max-width: 58ch; }
.heading-label { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.heading-label a { font-size: 10px; color: var(--muted-foreground); text-decoration: none; }
.page-toc { padding-top: 45px; position: sticky; top: 72px; }
.page-toc p { font-size: 10px; font-weight: 500; }
.page-toc a { display: block; color: var(--muted-foreground); font-size: 10px; padding-block: 5px; text-decoration: none; }
.page-toc a:hover { color: var(--foreground); }
.doc-main section:not(.block-preview) { margin-top: 40px; }
.doc-main section > h2, .prose h2 { font-size: 23px; font-weight: 500; margin-block: 36px 16px; }
.doc-main section > p, .prose p, .prose li { font-size: 13px; color: var(--muted-foreground); line-height: 1.9; }
.doc-main p a, .prose a { color: var(--foreground); }
.prose :not(pre) > code, .doc-main p > code { background: var(--secondary); color: var(--foreground); border-radius: 3px; padding: 2px 4px; font-size: 11px; overflow-wrap: anywhere; }
.code-wrap { position: relative; min-width: 0; }
.code-wrap pre { margin-block: 15px; padding-top: 35px; }
.code-wrap code { font-size: 11px; }
.copy-code { position: absolute; top: 8px; right: 9px; background: var(--background); color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 4px; padding: 3px 7px; font-size: 9px; }
.hljs-tag, .hljs-selector-class { color: #7a573e; }
.hljs-name, .hljs-keyword { color: #775f96; }
.hljs-attr, .hljs-property { color: #526a4a; }
.hljs-string { color: #496d63; }
.hljs-comment { color: var(--muted-foreground); }
.block-preview { border: 1px solid var(--border); border-radius: 9px; overflow: clip; }
.preview-controls { min-height: 51px; padding: 8px 12px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.view-tabs, .source-tabs, .device-controls { display: flex; gap: 3px; }
.view-tabs button, .source-tabs button, .device-controls button { border: 0; background: transparent; color: var(--muted-foreground); border-radius: 5px; padding: 5px 10px; font-size: 10px; min-height: 30px; }
.view-tabs button.active, .source-tabs button.active, .device-controls button.active { color: var(--foreground); background: var(--secondary); }
.device-controls { margin-left: auto; border-right: 1px solid var(--border); padding-right: 8px; }
.device-controls button { font-size: 17px; padding: 0 7px; }
.variant-select { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted-foreground); }
.variant-select select { border: 0; background: var(--background); color: var(--foreground); font-size: 10px; padding: 4px; }
.preview-external { text-decoration: none; margin-left: auto; font-size: 16px; }
.preview-area { padding: 18px; background: var(--muted); overflow: auto; }
.block-frame { display: block; border: 0; width: 100%; height: 390px; background: var(--background); }
.preview-area iframe { max-width: none; margin-inline: auto; min-width: 300px; border-radius: 6px; }
.source-area { padding: 10px; }
.source-area pre { max-height: 500px; border: 0; margin-bottom: 0; }
.source-tabs { padding: 3px; }
.notice { border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); padding: 16px 20px; margin-block: 24px; font-size: 12px; }
.notice p { color: var(--muted-foreground); font-size: 12px; margin: 5px 0 0; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-links a { display: flex; justify-content: space-between; border: 1px solid var(--border); border-radius: 6px; padding: 12px; text-decoration: none; font-size: 11px; }
.edit-link { font-size: 10px; color: var(--muted-foreground); display: inline-block; margin-top: 40px; text-decoration: none; }
.doc-pagination { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding-top: 25px; margin-top: 45px; }
.doc-pagination a { font-size: 13px; text-decoration: none; }
.doc-pagination a:last-child { text-align: right; }
.doc-pagination span { display: block; color: var(--muted-foreground); font-size: 10px; margin-bottom: 6px; }
.collection-page { padding-block: 30px 75px; }
.page-intro { padding-block: 25px 40px; }
.page-intro h1 { font-size: clamp(36px, 4vw, 52px); max-width: 22ch; margin: 20px 0; letter-spacing: -0.05em; font-weight: 500; line-height: 1.1; }
.page-intro > p { font-size: 14px; max-width: 62ch; color: var(--muted-foreground); }
.collection-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 15px 20px; border-bottom: 1px solid var(--border); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-chip { font-size: 11px; color: var(--muted-foreground); border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 7px 12px; }
.filter-chip[aria-pressed="true"] { color: var(--foreground); background: var(--secondary); border-color: var(--border); }
.collection-tools input { font-size: 12px; width: 200px; border-color: var(--border); padding: 7px 11px; }
.collection-count { font-size: 10px; color: var(--muted-foreground); padding-block: 17px; }
.collection-empty { text-align: center; padding: 80px 20px; background: var(--muted); border-radius: 10px; }
.collection-empty p { font-size: 13px; color: var(--muted-foreground); }
.template-preview { padding: 24px; background: var(--muted); border: 1px solid var(--border); border-radius: 10px; }
.template-preview iframe { height: 270px; pointer-events: none; }
.template-card-info { padding: 20px 0; }
.template-card-info h2 { margin: 12px 0; font-size: 24px; }
.template-card-info h2 a { text-decoration: none; }
.template-card-info p { font-size: 13px; color: var(--muted-foreground); }
.template-detail { max-width: 850px; padding-block: 35px 75px; }
.template-detail > h2 { font-size: 24px; margin-top: 40px; }
.template-detail > p { font-size: 13px; color: var(--muted-foreground); }
.theme-page, .playground-page { padding-block: 25px 70px; }
.theme-workbench { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 45px; align-items: start; }
.theme-settings { border: 1px solid var(--border); padding: 24px; border-radius: 9px; display: grid; gap: 20px; position: sticky; top: 100px; }
.theme-settings h2 { font-size: 20px; margin: 0; }
.theme-settings output { float: right; color: var(--muted-foreground); font-size: 11px; }
.theme-settings input[type="range"] { accent-color: var(--primary); padding-inline: 0; }
.theme-live { border: 1px solid var(--border); background: var(--muted); border-radius: 9px; padding: 24px; }
.theme-live iframe { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; height: 350px; }
.theme-live iframe:nth-of-type(2) { height: 270px; }
.playground-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 20px; }
.playground-toolbar .field { min-width: 190px; margin-right: auto; }
.playground-toolbar .field label { font-size: 11px; }
.playground-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 9px; overflow: clip; }
.playground-editor { background: var(--muted); border-right: 1px solid var(--border); padding: 16px; }
.playground-editor > label, .playground-preview > span { display: block; font-size: 11px; color: var(--muted-foreground); padding-bottom: 12px; }
.playground-editor textarea { width: 100%; height: 460px; padding: 14px; font: 12px/1.8 var(--font-mono); color: var(--foreground); background: var(--background); border: 1px solid var(--border); border-radius: 6px; resize: vertical; }
.playground-editor > p { font-size: 10px; color: var(--muted-foreground); margin: 8px 0 0; }
.playground-preview { padding: 16px; min-width: 0; }
.playground-preview iframe { display: block; width: 100%; height: 480px; border: 0; }
.playground-status { font-size: 11px; color: var(--muted-foreground); margin-top: 15px; }
.small { font-size: 11px !important; }
.standalone-prose { max-width: 800px; padding-bottom: 80px; }
.not-found { padding-block: 100px 150px; }
.not-found h1 { margin-block: 20px; }
.not-found p { max-width: 50ch; color: var(--muted-foreground); }
.search-dialog { width: 580px; padding: 0; box-shadow: var(--shadow); }
.search-top { display: flex; gap: 10px; padding: 18px; border-bottom: 1px solid var(--border); }
.search-top input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--foreground); font-size: 14px; }
.close-search { font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; background: var(--muted); color: var(--muted-foreground); }
.search-results { padding: 8px; max-height: 420px; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; align-items: center; padding: 12px; text-decoration: none; border-radius: 5px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--secondary); }
.search-results strong { font-size: 12px; font-weight: 500; }
.search-results span { font-size: 10px; color: var(--muted-foreground); text-transform: capitalize; }
.search-results > p { padding: 20px; font-size: 12px; }
.search-help { font-size: 10px; color: var(--muted-foreground); border-top: 1px solid var(--border); padding: 12px 18px; margin: 0; }
.toast { position: fixed; bottom: 24px; right: 24px; max-width: min(400px, calc(100% - 48px)); background: var(--primary); color: var(--primary-foreground); border: 1px solid var(--border); border-radius: 8px; padding: 13px 20px; font-size: 12px; z-index: var(--layer-toast); box-shadow: var(--shadow); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hljs-tag, :root:not([data-theme="light"]) .hljs-selector-class { color: #d7ad8f; }
  :root:not([data-theme="light"]) .hljs-name, :root:not([data-theme="light"]) .hljs-keyword { color: #cab1e6; }
  :root:not([data-theme="light"]) .hljs-attr, :root:not([data-theme="light"]) .hljs-property { color: #b0c5a5; }
  :root:not([data-theme="light"]) .hljs-string { color: #9dc3b6; }
}
:root[data-theme="dark"] .hljs-tag, :root[data-theme="dark"] .hljs-selector-class { color: #d7ad8f; }
:root[data-theme="dark"] .hljs-name, :root[data-theme="dark"] .hljs-keyword { color: #cab1e6; }
:root[data-theme="dark"] .hljs-attr, :root[data-theme="dark"] .hljs-property { color: #b0c5a5; }
:root[data-theme="dark"] .hljs-string { color: #9dc3b6; }

@media (width >= 1600px) { .home-hero { padding-block: 90px 75px; } }

@media (width < 1280px) {
  .header-inner { gap: 30px; }
  .top-nav { gap: 18px; }
  .search-trigger { gap: 12px; }
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; max-width: 1100px; }
  .page-toc { display: none; }
  .home-hero { gap: 40px; grid-template-columns: minmax(0, 1fr) 220px; }
  .home-hero h1 { font-size: 49px; }
  .showcase-grid { gap: 12px; }
  .profile-demo, .settings-demo, .tile-inner { padding: 22px 18px; }
}

@media (width < 1024px) {
  .container { width: calc(100% - 64px); }
  .search-trigger > span { display: none; }
  .search-trigger { border: 0; background: transparent; padding: 0; }
  .header-inner { gap: 25px; }
  .header-actions { gap: 12px; }
  .home-hero { padding-block: 55px 45px; grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .home-hero h1 { font-size: 58px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-settings { display: none; }
  .foundation-section, .template-strip, .getting-started-strip { gap: 45px; }
  .docs-layout { gap: 28px; }
}

@media (width < 768px) {
  .container { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 40px); height: 64px; gap: 16px; }
  .brand { font-size: 22px; }
  .top-nav, .github-link { display: none; }
  .mobile-menu { display: block; font-size: 20px; }
  .header-actions { gap: 15px; }
  .home-hero { padding-block: 40px; }
  .home-hero h1 { font-size: clamp(33px, 6.7vw, 51px); line-height: 1.1; }
  .hero-copy > p { font-size: 13px; max-width: 42ch; }
  .desktop-break { display: none; }
  .release-link { font-size: 10px; }
  .section-top { align-items: start; flex-direction: column; gap: 14px; }
  .section-top h2 { font-size: 24px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 20px; }
  .showcase-settings { display: flex; }
  .profile-demo, .settings-demo, .tile-inner { padding: 25px; }
  .tile-label, .tile-bottom { font-size: 11px; }
  .profile-demo > p, .check-row, .settings-demo .field label, .settings-demo :is(input:not([type="checkbox"]), select), .demo-title p { font-size: 12px; }
  .settings-demo :is(input:not([type="checkbox"]), select) { font-size: 16px; }
  .showcase-faq .accordion summary { font-size: 13px; }
  .showcase-faq .accordion details > div { font-size: 12px; }
  .featured { padding-block: 50px; }
  .collection-grid { grid-template-columns: 1fr; gap: 32px; }
  .foundation-section, .template-strip, .getting-started-strip { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
  .foundation-copy h2 { font-size: 33px; }
  .foundation-code { min-width: 0; }
  .site-footer { margin-inline: 20px; padding: 30px 0; }
  .site-footer nav { margin: 0; width: 100%; }
  .site-footer p { font-size: 11px; }
  .docs-layout { display: block; width: calc(100% - 40px); }
  .sidebar { display: none; }
  .doc-main { padding-top: 25px; }
  .doc-heading h1 { font-size: 36px; }
  .doc-heading > p { font-size: 14px; }
  .doc-main section > p, .prose p, .prose li { font-size: 14px; }
  .doc-heading { margin-bottom: 24px; }
  .device-controls { display: none; }
  .variant-select { margin-left: auto; }
  .preview-controls { gap: 6px; padding: 8px; }
  .preview-area { padding: 8px; }
  .preview-area iframe { min-width: min(300px, 100%); }
  .variant-select select { max-width: 90px; }
  .page-intro { padding-block: 10px 25px; }
  .page-intro h1 { font-size: 36px; }
  .collection-tools { flex-direction: column; align-items: stretch; gap: 18px; }
  .collection-tools input { width: 100%; }
  .collection-card-info { gap: 10px; }
  .collection-card-info p { font-size: 12px; }
  .preview-pointer { height: 230px; }
  .theme-workbench { grid-template-columns: 1fr; gap: 25px; }
  .theme-settings { position: static; }
  .theme-live { padding: 10px; }
  .playground-grid { grid-template-columns: 1fr; }
  .playground-editor { border-right: 0; border-bottom: 1px solid var(--border); }
  .playground-editor textarea { height: 300px; }
  .playground-toolbar .field { width: 100%; margin-right: 0; }
  .playground-toolbar button { font-size: 11px; padding-inline: 12px; }
  .related-links { grid-template-columns: 1fr; }
  .search-top input { font-size: 16px; }
}
