:root {
    color-scheme: light dark;

    --bg: #f5f7f5;                   --bg: light-dark(#f5f7f5, #101613);
    --surface: #ffffff;              --surface: light-dark(#ffffff, #19211c);
    --surface-sunken: #f8faf8;       --surface-sunken: light-dark(#f8faf8, #141b17);
    --text: #202e27;                 --text: light-dark(#202e27, #e6ede8);
    --muted: #5e6d64;                --muted: light-dark(#5e6d64, #9aa9a0);
    --line: #dce4dd;                 --line: light-dark(#dce4dd, #2c372f);
    --line-strong: #7c8d80;          --line-strong: light-dark(#7c8d80, #6b7c72);

    --accent: #285c46;               --accent: light-dark(#285c46, #6fbf95);
    --accent-hover: #1d4936;         --accent-hover: light-dark(#1d4936, #8ed3ac);
    --accent-soft: #edf4ee;          --accent-soft: light-dark(#edf4ee, #1d2a23);
    --accent-tint: #dce9df;          --accent-tint: light-dark(#dce9df, #25362c);
    --on-accent: #ffffff;            --on-accent: light-dark(#ffffff, #0d1512);

    --stage: #203c30;                --stage: light-dark(#203c30, #16241d);
    --stage-text: #c2d4c9;           --stage-text: light-dark(#c2d4c9, #a9c4b4);
    --stage-line: #ffffff12;         --stage-line: light-dark(#ffffff12, #ffffff14);
    --on-stage: #ffffff;             --on-stage: light-dark(#ffffff, #f0f7f3);
    --icon-ring: transparent;        --icon-ring: light-dark(transparent, #ffffff24);

    --shadow-xs: 0 1px 2px #203b2c0f;
    --shadow-xs: 0 1px 2px light-dark(#203b2c0f, #00000045);
    --shadow-sm: 0 2px 6px -3px #203b2c1a;
    --shadow-sm: 0 2px 6px -3px light-dark(#203b2c1a, #00000059);
    --shadow-md: 0 16px 40px -24px #203b2c3d;
    --shadow-md: 0 16px 40px -24px light-dark(#203b2c3d, #00000080);
    --shadow-stage: 0 20px 48px -32px #203b2c66;
    --shadow-stage: 0 20px 48px -32px light-dark(#203b2c66, #00000099);
    --shadow-dialog: 0 24px 80px #182a2240;
    --shadow-dialog: 0 24px 80px light-dark(#182a2240, #000000a6);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --control: 44px;

    --header-h: 88px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --section-space: 64px;
    --content-width: 1160px;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 30px;
    --text-3xl: 48px;
    --text-display: 84px;
    --text-display-sm: 72px;

    --duration: 160ms;
    --ease-standard: cubic-bezier(.2, .6, .3, 1);
    --transition: var(--duration) var(--ease-standard);

    --z-header: 5;
    --z-skip-link: 10;
    --z-dialog: 20;

    --focus-width: 2px;
    --focus-offset: 4px;

    --font: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

@supports not (color: light-dark(#000, #fff)) {
    :root { color-scheme: light; }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-3)); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--text-sm)/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
main:focus, section[tabindex]:focus:not(:focus-visible) { outline: none; }
img { display: block; max-width: 100%; object-fit: contain; }
svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
::selection { background: var(--accent-tint); color: var(--text); }
.wrap { width: min(var(--content-width), calc(100% - 80px)); margin-inline: auto; }
h1, h2, h3, p { overflow-wrap: anywhere; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); font-weight: 650; line-height: 1.4; letter-spacing: -.035em; text-wrap: balance; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--accent); font-size: var(--text-sm); font-weight: 600; line-height: 1.6; text-align: center; overflow-wrap: anywhere; transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition); }
.button span { min-width: 0; }
.button svg { width: 18px; height: 18px; }
.primary, .build.is-device .build-button:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ghost { background: var(--surface); color: var(--text); }
.eyebrow { margin: 0 0 var(--space-1); color: var(--accent); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.section-number { color: var(--muted); margin-right: var(--space-1); font-variant-numeric: tabular-nums; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.section-note { margin: 0 0 4px; color: var(--muted); font-size: var(--text-xs); text-align: right; }
.text-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control); color: var(--accent); font-size: var(--text-sm); }
.text-link span:first-child { overflow-wrap: anywhere; }

.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunken); }
.segmented button { display: grid; place-items: center; width: var(--control); min-height: var(--control); padding: 4px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-size: var(--text-xs); transition: background var(--transition), color var(--transition); }
.segmented button svg { width: 18px; height: 18px; }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.segmented button:focus-visible { outline-offset: -2px; }

.header-shell { position: sticky; top: 0; z-index: var(--z-header); background: var(--surface); border-bottom: 1px solid var(--line); }
.header { min-height: var(--header-h); display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-height: var(--control); min-width: 0; font-size: var(--text-lg); font-weight: 650; letter-spacing: -.035em; }
.brand img { flex: 0 0 28px; height: 28px; border-radius: 5px; box-shadow: 0 0 0 1px var(--icon-ring); }
.brand span { overflow-wrap: anywhere; }
.brand-divider { height: 20px; margin-inline: 6px; border-left: 1px solid var(--line); }
.brand .brand-caption { font-size: var(--text-xs); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.header-nav { display: flex; align-items: center; gap: var(--space-3); }
.nav-link { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control); min-height: var(--control); color: var(--muted); font-size: var(--text-sm); border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); }
.nav-link[aria-current="location"] { color: var(--accent); border-bottom-color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--space-5) 72px; padding-block: 72px var(--space-4); }
.hero-copy { min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-3); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); flex-shrink: 0; }
h1 { font-size: clamp(var(--text-3xl), 6.2vw, var(--text-display)); font-weight: 650; line-height: 1.06; letter-spacing: -.055em; }
.headline { margin: var(--space-3) 0 0; font-size: clamp(var(--text-xl), 2.6vw, 32px); font-weight: 550; line-height: 1.5; letter-spacing: -.03em; text-wrap: balance; }
.intro { max-width: 460px; margin: 12px 0 0; color: var(--muted); font-size: var(--text-base); white-space: pre-line; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-actions .button { min-height: 52px; }
.download-hint { margin: 12px 0 0; color: var(--muted); font-size: var(--text-xs); }

.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3); }
.quick-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control); max-width: 100%; padding: 8px var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--muted); font-size: var(--text-xs); font-weight: 600; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.quick-link svg { width: 16px; height: 16px; color: var(--accent); }
.quick-link span { min-width: 0; overflow-wrap: anywhere; }

.hero-art { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-stage); }
.art-topline, .art-bottomline { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.art-topline { padding: 4px 8px 16px; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.window-controls { display: flex; gap: 5px; flex-shrink: 0; }
.window-controls i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.art-bottomline { padding: 16px 8px 4px; font-size: var(--text-xs); }
.art-bottomline svg { width: 16px; height: 16px; }
.product-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; min-height: 304px; padding: var(--space-4) var(--space-3); overflow: hidden; background: var(--stage); color: var(--on-stage); border-radius: var(--radius); }
.stage-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px); background-size: 40px 40px; background-position: center; }
.stage-grid::before, .stage-grid::after { content: ""; position: absolute; width: 280px; height: 280px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--stage-line); border-radius: 50%; }
.stage-grid::after { width: 380px; height: 380px; }
.icon-frame { padding: 10px; border: 1px solid var(--stage-line); border-radius: var(--radius-lg); background: var(--stage); box-shadow: var(--shadow-md); }
.hero-icon { width: 112px; height: 112px; }
.stage-name { max-width: 100%; margin-top: var(--space-2); font-size: var(--text-xl); font-weight: 600; line-height: 1.4; letter-spacing: -.035em; overflow-wrap: anywhere; text-align: center; }
.stage-caption { margin-top: 4px; color: var(--stage-text); font-size: var(--text-xs); text-align: center; overflow-wrap: anywhere; }
.release-notice { grid-column: 1 / -1; display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: baseline; gap: 12px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--muted); font-size: var(--text-xs); }
.release-notice > svg { width: 18px; height: 18px; align-self: start; color: var(--accent); }
.notice-label { color: var(--accent); font-weight: 600; }
.release-notice p { margin: 0; white-space: pre-line; }

.download-band { background: var(--surface); border-block: 1px solid var(--line); }
.downloads { padding-block: var(--space-5) var(--space-4); }
.device-note { display: flex; align-items: baseline; gap: 10px; margin: var(--space-3) 0 var(--space-2); color: var(--muted); font-size: var(--text-xs); }
.device-note::before { content: ""; flex: 0 0 6px; height: 6px; border: 1px solid var(--muted); border-radius: 50%; }
.device-note.is-detected::before { background: var(--accent); border-color: var(--accent); }
.build-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.build { display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px 200px; align-items: center; gap: var(--space-3); padding: var(--space-3); border-top: 1px solid var(--line); border-left: 3px solid transparent; transition: background var(--transition), border-color var(--transition); }
.build:first-child { border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.build:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.build:only-child { border-radius: var(--radius); }
.build.is-device { background: var(--accent-soft); border-left-color: var(--accent); }
.build-icon { width: 48px; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface-sunken); }
.build.is-device .build-icon { background: var(--surface); color: var(--accent); }
.build-body { min-width: 0; }
.build-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.build-name { font-size: var(--text-lg); font-weight: 650; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.build-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.badge-recommend { background: var(--accent-soft); color: var(--accent); }
.badge-device { background: var(--accent); color: var(--on-accent); }
.badge-note { border-color: var(--line-strong); color: var(--muted); }
.build-note { margin: 8px 0 0; color: var(--muted); font-size: var(--text-sm); white-space: pre-line; }
.build-system { margin: 4px 0 0; font-size: var(--text-xs); }
.build-meta { margin: 0; font-variant-numeric: tabular-nums; }
dt { color: var(--muted); font-size: var(--text-xs); }
dd { margin: 4px 0 0; font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
.build-button { width: 100%; padding-inline: 12px; }
.build-button:disabled { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--line-strong); cursor: not-allowed; }
.empty-state { padding: var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.architecture-help { margin-top: var(--space-2); font-size: var(--text-sm); }
.architecture-help summary { display: list-item; width: fit-content; max-width: 100%; min-height: var(--control); padding-block: 10px; color: var(--muted); cursor: pointer; overflow-wrap: anywhere; }
.architecture-help[open] summary { color: var(--accent); }
.help-content { max-width: 900px; margin-block: var(--space-1); padding-left: var(--space-2); border-left: 2px solid var(--line); color: var(--muted); }
.help-content p { margin: var(--space-1) 0; white-space: pre-line; }

.release { padding-block: var(--section-space); }
.release-stamp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); margin-top: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.stamp-head { min-width: 0; }
.stamp-eyebrow { margin: 0; color: var(--accent); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stamp-note { margin: 4px 0 0; color: var(--muted); font-size: var(--text-xs); }
.stamp-list { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin: 0; }
.stamp-item { min-width: 0; }
.stamp-item + .stamp-item { padding-left: var(--space-4); border-left: 1px solid var(--line); }
.stamp-list dd { font-size: var(--text-lg); font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.compare { margin-top: var(--space-3); }
.compare-hint { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-xs); }
.table-scroll-hint { display: none; margin: 0 0 12px; color: var(--accent); font-size: var(--text-xs); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); scrollbar-color: var(--line-strong) var(--surface-sunken); }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: var(--space-2) var(--space-3); vertical-align: top; font-size: var(--text-sm); overflow-wrap: anywhere; }
.compare-table thead th { padding-block: var(--space-3); background: var(--surface-sunken); }
.compare-table .compare-label { width: 144px; color: var(--muted); font-weight: 400; font-size: var(--text-xs); }
.compare-table tbody th, .compare-table tbody td { border-top: 1px solid var(--line); }
.compare-table .build-name { font-size: var(--text-base); }

.compare-table .build-heading { align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.compare-table .compare-col.is-device { background: var(--accent-soft); }
.compare-table thead .is-device { box-shadow: inset 0 3px var(--accent); }
.compare-table tbody tr[data-field="version"] td { font-weight: 650; }
.compare-table tbody tr[data-field="note"] td { color: var(--muted); white-space: pre-line; }
.is-available { color: var(--accent); }
.build-meta .is-pending, .compare-table .is-pending { color: var(--muted); font-weight: 400; }

.project { display: grid; grid-template-columns: 1fr 1fr; gap: var(--section-space); padding-block: var(--space-5); border-top: 1px solid var(--line); }
.project-description { margin: var(--space-2) 0 0; max-width: 390px; color: var(--muted); font-size: var(--text-sm); }
.project-links { align-self: center; border-block: 1px solid var(--line); }
.project-link { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-1); transition: background var(--transition); }
.project-link + .project-link { border-top: 1px solid var(--line); }
.project-link-icon { display: grid; place-items: center; width: var(--control); height: var(--control); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); flex-shrink: 0; }
.project-link-icon svg { width: 22px; height: 22px; }
.project-link-copy { display: grid; gap: 4px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.project-link-copy strong { font-size: var(--text-base); font-weight: 600; }
.project-link-copy > span { color: var(--muted); font-size: var(--text-xs); }
.external-icon { width: 20px; height: 20px; margin-inline: var(--space-1); color: var(--accent); }
.statements { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--section-space); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.statements:has(> section[hidden]) { grid-template-columns: 1fr; }
.statements h3 { margin-bottom: var(--space-1); font-size: var(--text-xs); font-weight: 600; }
.statements p { margin: 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.9; white-space: pre-line; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding-block: var(--space-2); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-xs); }
.footer > span { overflow-wrap: anywhere; }
.footer a { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control); flex-shrink: 0; }
.footer svg { width: 14px; height: 14px; }

body:has(dialog[open]) { overflow: hidden; }
.dialog { z-index: var(--z-dialog); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-dialog); overscroll-behavior: contain; }
.dialog::backdrop { background: #192a2266; background: light-dark(#192a2266, #000000b3); }
.dialog-body { padding: var(--space-4); }
.dialog h2 { font-size: var(--text-xl); }
.dialog-text { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.85; white-space: pre-line; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }
.dialog-actions .button { padding-inline: var(--space-2); }
.dialog-device-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent); margin-bottom: var(--space-3); }
.dialog-device-icon svg { width: 32px; height: 32px; }
.mobile-copy-status { margin: 12px 0 0; color: var(--accent); font-size: var(--text-xs); overflow-wrap: anywhere; }
.mobile-copy-status:empty { margin: 0; }
.skip-link { position: fixed; z-index: var(--z-skip-link); top: 12px; left: 12px; min-height: var(--control); padding: 10px 18px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); color: var(--accent); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript { margin: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); text-align: center; }

@media (hover: hover) {
    .nav-link:hover, .footer a:hover, .architecture-help summary:hover { color: var(--accent); }
    .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
    .primary:hover, .build.is-device .build-button:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--shadow-sm); }
    .build-button:not(:disabled):hover, .ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
    .build:not(.is-device):hover, .compare-table tbody tr:hover > :not(.is-device) { background: var(--surface-sunken); }
    .segmented button[aria-pressed="false"]:hover { background: var(--accent-soft); color: var(--text); }
    .project-link:hover { background: var(--accent-soft); }
    .quick-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
}

@media (max-width: 900px) {
    :root { --section-space: 48px; }
    .wrap { width: calc(100% - 48px); }
    .header { gap: var(--space-2); }
    .header-nav { gap: var(--space-2); }
    .brand-caption, .brand-divider { display: none; }
    .hero { gap: var(--space-4); padding-top: var(--space-5); }
    .hero-art { padding: 8px; }
    .art-topline { font-size: 9px; letter-spacing: .06em; padding-inline: 4px; }
    .art-bottomline { padding-inline: 4px; }
    .product-stage { min-height: 280px; padding-inline: var(--space-2); }
    .build { grid-template-columns: 48px minmax(0, 1fr) 200px; gap: var(--space-2); }
    .build-icon { align-self: start; }
    .build-body { grid-column: 2; }
    .build-meta { grid-column: 2; }
    .build-meta > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1); }
    .build-meta dd { margin: 0; }
    .build-button { grid-column: 3; grid-row: 1 / span 2; }
    .project, .statements { gap: var(--space-4); }
}

@media (max-width: 808px) {
    .table-scroll-hint { display: block; }
    .compare-table .compare-label { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); width: 120px; }
    .compare-table thead .compare-label { background: var(--surface-sunken); }
    .compare-table th, .compare-table td { padding-inline: var(--space-2); }
}

@media (max-width: 600px) {

    :root { --section-space: 40px; --header-h: 130px; }
    .wrap { width: calc(100% - 40px); }

    .header { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-2); padding-block: 10px 12px; }
    .brand { grid-column: 1; grid-row: 1; font-size: 18px; }
    .theme { grid-column: 2; grid-row: 1; justify-self: end; }
    .header-nav { grid-column: 1; grid-row: 2; gap: var(--space-1); }
    .language { grid-column: 2; grid-row: 2; justify-self: end; }
    .nav-link { font-size: var(--text-xs); }
    .hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px var(--space-3); gap: var(--space-4); }
    h1 { font-size: clamp(var(--text-3xl), 13vw, var(--text-display-sm)); }
    .hero-eyebrow { margin-bottom: var(--space-2); }
    .headline { margin-top: var(--space-2); }
    .intro { font-size: var(--text-sm); }
    .hero-actions { margin-top: var(--space-3); }
    .hero-actions .button { width: 100%; }
    .quick-links { gap: var(--space-1); margin-top: var(--space-2); }
    .quick-link { flex: 1 1 auto; padding-inline: 14px; }
    .hero-art { padding: 10px; }
    .art-topline { padding: 2px 4px 12px; font-size: 10px; }
    .product-stage { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: var(--space-2); min-height: 152px; padding: var(--space-3) var(--space-2); }
    .icon-frame { grid-row: 1 / span 2; padding: 5px; border-radius: var(--radius); }
    .hero-icon { width: 64px; height: 64px; }
    .stage-name { align-self: end; margin: 0; text-align: left; font-size: var(--text-lg); }
    .stage-caption { align-self: start; text-align: left; }
    .art-bottomline { padding: 12px 4px 2px; }
    .release-notice { grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: var(--space-2); }
    .release-notice p { grid-column: 2; }
    .downloads { padding-block: 40px var(--space-3); }
    .section-heading { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
    .section-note { text-align: left; }
    .device-note { margin-top: var(--space-2); }
    .build { grid-template-columns: 44px minmax(0, 1fr); padding: var(--space-3) var(--space-2); gap: var(--space-2); }
    .build-icon { width: 44px; height: 44px; padding: 10px; }
    .build-name { font-size: var(--text-lg); }
    .build-note { font-size: var(--text-xs); }
    .build-button { grid-column: 1 / -1; grid-row: auto; }
    .stamp-list { gap: var(--space-2); }
    .stamp-item + .stamp-item { padding-left: var(--space-2); }
    .release-stamp { padding: var(--space-2); }
    .compare-table .compare-label { width: 104px; }
    .project, .statements { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
    .project { padding-block: 40px; }
    .project-description { max-width: none; }
    .dialog-body { padding: var(--space-3); }
    .dialog-actions { flex-direction: column; }
    .dialog-actions .button { width: 100%; }
    .footer { flex-wrap: wrap; }
}

@media (max-width: 360px) {
    .brand { font-size: var(--text-base); }
    .brand img { flex-basis: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
    .button, .segmented button[aria-pressed="true"], .badge, .quick-link { border: 1px solid ButtonText; }
    .segmented button[aria-pressed="true"] { text-decoration: underline; }
    .build.is-device, .compare-col.is-device { outline: 1px solid Highlight; outline-offset: -2px; }
    .build-icon, .dialog-device-icon { border: 1px solid ButtonText; }
    .nav-link[aria-current="location"] { border-bottom-color: Highlight; }
}
