:root {
    color-scheme: dark;
    --page: #000;
    --surface: #0c0c0d;
    --raised: #171718;
    --line: #252527;
    --ink: #ededed;
    --muted: #99999e;
    --subtle: #696970;
    --accent: #007aff;
    --selected: #141e2b;
    --code: #b6d2ef;
}
[data-theme="light"] {
    color-scheme: light;
    --page: #fff;
    --surface: #fafafa;
    --raised: #f1f1f3;
    --line: #e7e7e9;
    --ink: #1c1c1e;
    --muted: #6e6e73;
    --subtle: #85858b;
    --selected: #edf4ff;
    --code: #24578c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code, pre, kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.site-header, main, footer { width: min(1320px, calc(100% - 96px)); margin: 0 auto; }
.site-header { height: 90px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-size: 31px; letter-spacing: -1.8px; font-weight: 760; line-height: 1; }
.brand > span { height: 24px; width: 3px; margin-left: 3px; background: var(--accent); }
.header-divider { height: 20px; width: 1px; background: var(--line); }
.header-title { font-size: 13px; color: var(--muted); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.explore-link { color: var(--muted); font-size: 13px; }
.explore-link:hover, footer > a:last-child:hover { color: var(--ink); }
.build-link { display: flex; align-items: center; gap: 20px; background: var(--ink); color: var(--page); font-size: 12px; font-weight: 600; padding: 11px 17px; border-radius: 8px; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--muted); }
.icon-button:hover { color: var(--ink); background: var(--raised); }
.icon-button svg, .search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: flex; justify-content: space-between; align-items: center; padding: 62px 0 52px; gap: 32px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 21px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
.eyebrow > span, .status-dot { display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
h1 { margin: 0; font-size: clamp(40px, 4.5vw, 62px); letter-spacing: -2.6px; line-height: 1.05; font-weight: 550; }
h1 em { font-family: "Instrument Serif", "Playfair Display", Georgia, serif; font-weight: 400; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 22px 0 0; }
.hero-note { width: 265px; margin-right: 35px; padding-top: 20px; }
.hero-note p { color: var(--subtle); font-size: 11px; line-height: 1.7; margin: 25px 0 0; }
.tag-stack { display: grid; justify-items: start; gap: 9px; transform: rotate(-6deg); }
.tag-stack span { padding: 8px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 13px ui-monospace, monospace; color: var(--muted); }
.tag-stack span:first-child { color: var(--code); margin-left: 8px; }
.tag-stack span:nth-child(2) { margin-left: 62px; }
.tag-stack span:last-child { margin-left: 30px; }
.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 24px; }
.browser-toolbar { padding: 15px 18px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.families { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.families button { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 6px; white-space: nowrap; color: var(--muted); }
.families button[aria-pressed="true"] { color: var(--ink); background: var(--raised); }
.families button:hover { color: var(--ink); }
.families button span { font-size: 10px; color: var(--subtle); }
.search { margin-left: auto; min-width: 190px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.search svg { color: var(--muted); flex-shrink: 0; }
.search input { min-width: 0; width: 190px; background: none; border: 0; outline: none; font-size: 12px; }
.search:focus-within { border-color: var(--accent); }
.search kbd { font-size: 10px; border: 1px solid var(--line); border-radius: 3px; width: 18px; text-align: center; color: var(--subtle); }
.browser-body { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 650px; }
.component-sidebar { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 12px 16px; min-width: 0; background: var(--surface); }
.list-heading { display: flex; justify-content: space-between; gap: 6px; padding: 0 12px 15px; font-size: 9px; color: var(--subtle); letter-spacing: 1.3px; }
.component-list { height: 480px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.component-item { display: flex; width: 100%; text-align: left; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 6px; color: var(--muted); }
.component-item:hover { color: var(--ink); background: var(--raised); }
.component-item[aria-current="true"] { color: var(--ink); background: var(--selected); }
.component-item > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.component-item strong { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.component-item code { display: block; margin-top: 1px; font-size: 10px; color: var(--subtle); }
.component-item .item-arrow { font-size: 14px; opacity: 0; color: var(--accent); }
.component-item[aria-current="true"] .item-arrow { opacity: 1; }
.sidebar-note { font-size: 10px; line-height: 1.7; color: var(--subtle); padding: 18px 12px 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.sidebar-note .status-dot { margin-right: 6px; background: #30a16a; }
.list-status { padding: 6px 12px; font-size: 12px; color: var(--muted); }
.retry { align-self: flex-start; margin: 0 12px 12px; }
.detail-area { min-width: 0; }
.detail-header { padding: 28px 32px 20px; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; font-size: 10px; color: var(--subtle); }
.detail-meta > span:first-child { color: var(--muted); }
.development { color: #c48b35; }
.detail-header h2 { display: inline; margin: 0 12px 0 0; font-size: 28px; line-height: 1.2; font-weight: 550; letter-spacing: -.8px; }
.tag-label { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; vertical-align: 4px; }
.detail-header p { font-size: 12px; line-height: 1.7; margin: 12px 0 0; color: var(--muted); max-width: 660px; overflow-wrap: anywhere; }
.detail-tabs { display: flex; padding: 0 32px; gap: 24px; border-bottom: 1px solid var(--line); }
.detail-tabs [role="tab"] { padding: 13px 0; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; }
.detail-tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.link-button { margin-left: auto; padding: 8px 0; font-size: 10px; color: var(--subtle); }
.link-button span { margin-left: 5px; }
[role="tabpanel"] { padding: 22px 32px 28px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.example-label { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--subtle); min-width: 0; }
.example-label select { background: var(--page); border: 1px solid var(--line); border-radius: 6px; padding: 7px 24px 7px 9px; color: var(--ink); font-size: 11px; min-width: 0; max-width: 260px; }
.preview-options { display: flex; align-items: center; gap: 8px; }
.swatches { display: flex; gap: 8px; margin-right: 10px; }
.swatches button { width: 12px; height: 12px; padding: 0; border-radius: 50%; position: relative; }
.swatches button[aria-pressed="true"]::after { position: absolute; content: ""; inset: -4px; border: 1px solid var(--subtle); border-radius: 50%; }
.blue { background: #007aff; }.purple { background: #8955e8; }.green { background: #26875b; }
.small-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; background: var(--page); white-space: nowrap; }
.small-button:hover { background: var(--raised); }
.preview-stage { height: 370px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.preview-stage iframe { display: block; width: 100%; height: 100%; border: 0; color-scheme: normal; }
.preview-caption { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--subtle); font-size: 9px; }
.preview-caption .status-dot { width: 4px; height: 4px; background: #30a16a; }
.preview-caption > span:last-child { margin-left: auto; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--subtle); font-size: 11px; margin-bottom: 14px; }
.code-block { padding: 20px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--code); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 20px; max-width: 620px; }
.documentation { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.9; }
.documentation h2, .documentation h3, .documentation h4 { color: var(--ink); margin: 18px 0 12px; line-height: 1.5; font-size: 16px; font-weight: 550; }
.documentation h2:first-child, .documentation p:first-child { margin-top: 0; }
.documentation ul { padding-left: 20px; }
.documentation pre { margin: 16px 0; }
.documentation p { white-space: pre-wrap; }
#paramsSection { margin-top: 24px; font-size: 12px; color: var(--muted); }
#paramsSection summary { cursor: pointer; padding: 12px 0; }
.empty-detail { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 560px; padding: 32px; }
.empty-symbol { border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: 20px ui-monospace, monospace; color: var(--subtle); margin-bottom: 20px; }
.empty-detail h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.4px; }
.empty-detail p { margin: 12px 0 20px; color: var(--muted); font-size: 12px; max-width: 360px; }
.library-note { margin: 28px 0 0; display: flex; align-items: center; gap: 18px; padding: 23px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.library-note > span { font-size: 26px; color: var(--subtle); }
.library-note p { max-width: 760px; margin: 0; font-size: 11px; color: var(--muted); line-height: 1.8; }
.library-note strong { color: var(--ink); font-weight: 500; }
.library-note a { margin-left: auto; font-size: 11px; white-space: nowrap; }
footer { display: flex; align-items: center; gap: 24px; padding: 46px 0 34px; }
footer .brand { font-size: 24px; }footer .brand > span { height: 19px; }
footer p { color: var(--subtle); font-size: 11px; }
footer > a:last-child { margin-left: auto; color: var(--muted); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 11px 20px; background: var(--ink); color: var(--page); border-radius: 8px; font-size: 12px; z-index: 10; max-width: calc(100% - 32px); }
.skip-link { position: absolute; top: -60px; left: 20px; padding: 12px; background: var(--page); z-index: 20; }
.skip-link:focus { top: 12px; }
.noscript { padding: 20px; text-align: center; }
@media (min-width: 1440px) { .hero { padding-top: 76px; padding-bottom: 64px; } }
@media (max-width: 1100px) {
    .site-header, main, footer { width: calc(100% - 48px); }
    .browser-toolbar { flex-wrap: wrap; gap: 12px; }
    .search { width: 100%; margin: 0; }.search input { width: 100%; }
    .hero-note { margin-right: 0; }
    .browser-body { grid-template-columns: 218px minmax(0, 1fr); }
    .detail-header { padding: 24px; }.detail-tabs { padding: 0 24px; }
    [role="tabpanel"] { padding: 20px 24px 24px; }
    .example-label { display: block; font-size: 0; }.example-label select { max-width: 220px; }
    .swatches { margin-right: 5px; }
}
@media (max-width: 760px) {
    .site-header, main, footer { width: calc(100% - 32px); }
    .site-header { height: 72px; gap: 12px; }.site-header nav { gap: 8px; }
    .brand { font-size: 28px; }.header-title { font-size: 11px; }.header-divider { display: none; }
    .explore-link { display: none; }.build-link { font-size: 10px; padding: 9px 10px; gap: 8px; }
    .hero { padding: 40px 0 34px; }.hero-note { display: none; }
    h1 { font-size: 48px; letter-spacing: -1.8px; }.hero-description { font-size: 12px; }
    .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
    .browser-toolbar { padding: 12px; }.families { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 2px; padding-bottom: 2px; }
    .families button { gap: 7px; padding: 7px 8px; font-size: 11px; }
    .browser-body { display: block; min-height: 400px; }
    .component-sidebar { border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px 12px; }
    .list-heading { padding-bottom: 10px; }.sidebar-note { display: none; }
    .component-list { height: 160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 3px; }
    .component-item { padding: 7px 10px; }.component-item strong { font-size: 11px; }
    .detail-header { padding: 23px 18px 16px; }.detail-header h2 { font-size: 25px; }.detail-tabs { padding: 0 18px; gap: 22px; }
    [role="tabpanel"] { padding: 18px; }.preview-toolbar { flex-wrap: wrap; gap: 12px; }
    .example-label { width: 100%; }.example-label select { max-width: 100%; width: 100%; }
    .preview-options { margin-left: auto; }.preview-stage { height: 380px; }
    .preview-caption { font-size: 9px; flex-wrap: wrap; }.preview-caption > span:last-child { width: 100%; margin-left: 11px; }
    .empty-detail { min-height: 360px; padding: 24px; }.empty-detail h2 { font-size: 18px; }
    .library-note { align-items: flex-start; padding: 18px; gap: 12px; }.library-note a { display: none; }
    footer { padding-top: 32px; gap: 16px; }footer p { display: none; }
    .code-block { font-size: 11px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
