/* 首页画框：街角插画与静态客户端窗共用一个构图。 */
.hero { height:768px; overflow:hidden; }
.hero-aura,.hero-grid,.hero::after { position:absolute; inset:0; pointer-events:none; }
.hero-aura {
  background:
    radial-gradient(42% 54% at 77% 47%,var(--aura-peach),var(--clear) 72%),
    radial-gradient(38% 48% at 3% 104%,var(--aura-ember),var(--clear) 72%),
    radial-gradient(30% 32% at 100% 0%,var(--aura-sand),var(--clear) 72%);
}
.hero-grid {
  background-image:radial-gradient(circle,var(--dot) 1px,var(--clear) 1.5px);
  background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 34% 52% at 76% 48%,var(--mask-on),var(--clear) 78%);
  mask-image:radial-gradient(ellipse 34% 52% at 76% 48%,var(--mask-on),var(--clear) 78%);
}
.hero::after { content:""; z-index:1; background:linear-gradient(180deg,var(--clear) 70%,var(--bg)); }
.hero-inner {
  position:relative; z-index:2; height:100%; display:grid;
  grid-template-columns:minmax(0,52fr) minmax(0,48fr); gap:64px; align-items:center;
}
.copy { max-width:620px; }
.eyebrow {
  display:inline-flex; align-items:center; gap:10px; min-height:32px; padding:3px 14px 3px 12px;
  border:1px solid var(--border); border-radius:var(--r-pill);
  background:var(--bg-glass); color:var(--text-muted); font-size:13px; letter-spacing:.01em;
}
.eyebrow-dot {
  width:8px; height:8px; border-radius:var(--r-round); background:var(--accent);
  box-shadow:0 0 0 4px var(--accent-ring);
}
.hero h1 { margin-block-start:26px; color:var(--text); }
.h1-brand,.h1-kw { display:block; }
.h1-kw { color:var(--accent-text); padding-block-end:.04em; }
@supports (background-clip:text) {
  .h1-kw {
    background:linear-gradient(100deg,var(--accent),var(--accent-dark) 82%);
    background-clip:text; color:var(--clear);
  }
}
.lead { margin-block-start:22px; max-width:34em; font-size:17px; line-height:1.75; color:var(--text-muted); }
.lead strong { color:var(--text); font-weight:var(--weight-strong); }
.hero .cta-row { margin-block-start:34px; }
.platforms { display:flex; align-items:center; gap:10px; margin-block-start:26px; }
.platforms-label { flex:none; margin-inline-end:4px; font-size:12.5px; letter-spacing:.04em; color:var(--text-muted); }
.plat {
  display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:3px 14px 3px 12px;
  border:1px solid var(--border); border-radius:var(--r-pill);
  background:var(--bg-glass); color:var(--text); font-size:13.5px;
  transition:border-color var(--quick),transform var(--quick);
}
.plat svg { width:15px; height:15px; color:var(--text-soft); }
.plat:hover { border-color:var(--accent); transform:translateY(-1px); }
.plat:hover svg { color:var(--accent-dark); }
.chips,.badge-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.hero .chips { margin-block-start:24px; padding-block-start:20px; border-top:1px dashed var(--border-strong); }
.chip,.badge,.step-tag {
  display:inline-flex; align-items:center; min-height:28px; max-width:100%; padding:4px 12px;
  background:var(--bg-panel); color:var(--text-soft); border-radius:var(--r-pill);
  font-size:12.5px; line-height:1.4; overflow-wrap:break-word;
}
.chip-mono,.step-tag { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.02em; }
.chip { color:var(--text-muted); }
.stage { position:relative; justify-self:end; width:min(512px,100%); aspect-ratio:4/5; }
.stage::before,.frame { position:absolute; inset:0; border:1px solid var(--border); border-radius:var(--r-frame); }
.stage::before { content:""; background:var(--bg-panel); transform:translate(16px,16px) rotate(1.4deg); }
.frame { overflow:hidden; background:var(--ill-sky-1); color:var(--text); box-shadow:var(--shadow-frame); }
.frame::after {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 1px var(--accent-gloss);
}
.scene { display:block; width:100%; height:100%; }
.s-sky-1 { stop-color:var(--ill-sky-1); }
.s-sky-2 { stop-color:var(--ill-sky-2); }
.s-sky-3 { stop-color:var(--ill-sky-3); }
.s-ground-1 { stop-color:var(--ill-ground-1); }
.s-ground-2 { stop-color:var(--ill-ground-2); }
.s-glow-core { stop-color:var(--ill-glow); stop-opacity:.95; }
.s-glow-mid { stop-color:var(--ill-glow); stop-opacity:.38; }
.s-glow-edge { stop-color:var(--ill-glow); stop-opacity:0; }
.s-phone-core { stop-color:var(--accent); stop-opacity:.34; }
.s-phone-edge { stop-color:var(--accent); stop-opacity:0; }
.s-wood-hi { stop-color:var(--ill-wood-hi); }
.s-wood { stop-color:var(--ill-wood); }
.s-wood-lo { stop-color:var(--ill-wood-lo); }
.f-sky { fill:url(#g-sky); }
.f-ground { fill:url(#g-ground); }
.f-sun { fill:var(--ill-sun); opacity:.85; }
.f-far { fill:var(--ill-bldg-far); }
.f-near { fill:var(--ill-bldg-near); }
.f-win-lit { fill:var(--ill-win-lit); }
.f-win-dim { fill:var(--ill-win-dim); }
.f-shop { fill:var(--ill-win-lit); opacity:.78; }
.f-awning { fill:var(--ill-awning); }
.f-curb { fill:var(--ill-curb); }
.f-seam { fill:none; stroke:var(--ill-seam); }
.f-pool { fill:var(--ill-pool); opacity:.7; }
.f-metal { fill:var(--ill-metal); }
.f-metal-hi { fill:var(--ill-metal-hi); }
.s-metal { fill:none; stroke:var(--ill-metal); stroke-width:4; stroke-linecap:round; }
.f-bulb { fill:var(--ill-bulb); }
.lamp-glow { fill:url(#g-lamp); }
.f-pole { fill:var(--ill-pole); }
.f-wood { fill:url(#g-wood); }
.f-wood-hi { fill:var(--ill-wood-hi); }
.s-grain { fill:none; stroke:var(--ill-wood-lo); stroke-width:.7; opacity:.55; stroke-linecap:round; }
.f-bolt { fill:var(--ill-bolt); }
.sign-text {
  font-family:var(--font-mono); font-size:13px; font-weight:var(--weight-medium); letter-spacing:.02em;
  fill:var(--ill-sign-text); paint-order:stroke; stroke:var(--ill-pole); stroke-width:2px; stroke-linejoin:round;
}
.f-shadow { fill:var(--ill-shadow); opacity:.26; }
.f-coat { fill:var(--ill-coat); }
.f-coat-hi { fill:var(--ill-coat-hi); }
.f-coat-lo { fill:var(--ill-coat-lo); }
.s-coat-seam { fill:none; stroke:var(--ill-coat-lo); stroke-width:.9; }
.f-belt { fill:var(--ill-belt); }
.f-skin { fill:var(--ill-skin); }
.f-hair { fill:var(--ill-hair); }
.f-shirt { fill:var(--ill-shirt); }
.f-trousers { fill:var(--ill-trousers); }
.f-shoe { fill:var(--ill-shoe); }
.f-phone { fill:var(--ill-phone); }
.f-screen { fill:var(--ill-screen); }
.f-lens { fill:var(--ill-lens); }
.f-connect { fill:var(--accent); }
.s-connect-ring { fill:none; stroke:var(--accent); stroke-width:.8; opacity:.5; }
.f-glyph { fill:var(--ill-glyph); }
.f-phone-glow { fill:url(#g-phone); }
.f-reflect { fill:var(--accent); opacity:.24; }
.float-panel {
  position:absolute; left:-40px; top:52px; width:252px; padding:13px 16px 6px;
  background:var(--night-1); color:var(--cream-on-dark); border:1px solid var(--night-line);
  border-radius:var(--r-card); transform:rotate(-2deg);
  box-shadow:inset 0 1px 0 var(--night-gloss),0 5px 0 -1px var(--night-edge),0 22px 40px -14px var(--shadow-ink),0 54px 90px -34px var(--shadow-ink-soft);
}
.fp-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-bottom:11px; border-bottom:1px solid var(--night-line); }
.fp-title { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:var(--weight-medium); }
.fp-title .icon { width:12px; height:12px; color:var(--cream-muted); }
.fp-app { color:var(--cream-muted); font-family:var(--font-mono); font-size:10.5px; letter-spacing:.03em; }
.fp-list { list-style:none; margin:0; padding:0; }
.fp-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; font-size:14px; line-height:1.3; }
.fp-list li > span { min-width:0; }
.fp-list li + li { border-top:1px solid var(--night-line-soft); }
.switch {
  position:relative; display:inline-block; width:34px; height:20px; border-radius:var(--r-pill);
  background:var(--night-2); border:1px solid var(--night-line);
}
.switch::after {
  content:""; position:absolute; top:2px; left:2px; width:14px; height:14px;
  border-radius:var(--r-round); background:var(--knob-off);
}
.switch.is-on { background:var(--accent); border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-ring-dark); }
.switch.is-on::after { left:16px; background:var(--on-accent); }
.proto {
  position:absolute; right:18px; bottom:18px; max-width:calc(100% - 36px);
  display:inline-flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px;
  padding:9px 16px; border-radius:var(--r-pill); background:var(--night-veil); color:var(--cream-on-dark);
  border:1px solid var(--night-line); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.02em;
  box-shadow:0 12px 24px -12px var(--shadow-ink);
}
.proto i { font-style:normal; color:var(--cream-muted); }

/* 风险区：三幅不等宽的小图，各自用原生 details 展开。 */
.risk { padding-top:30px; padding-bottom:96px; }
.risk-eyebrow {
  display:inline-flex; align-items:center; gap:10px; color:var(--cream-muted);
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.06em;
}
.risk-eyebrow .icon { width:16px; height:16px; color:var(--warn); }
.risk h2 { margin-block-start:20px; max-width:16em; line-height:1.18; }
.risk h2 em { font-style:normal; color:var(--warn); }
.risk-grid {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,.9fr);
  align-items:start; gap:var(--gap); margin-block-start:32px;
}
.risk-card {
  min-width:0; background:var(--night-1); color:var(--cream-on-dark);
  border:1px solid var(--night-line); border-radius:var(--r-frame); box-shadow:var(--shadow-card);
}
.risk-card:nth-child(2) { margin-block-start:20px; background:var(--night-2); color:var(--cream-on-dark); }
.risk-card:nth-child(3) { margin-block-start:9px; }
.risk-card summary {
  position:relative; display:block; padding:20px 72px 24px 20px;
  font-family:var(--font-display); font-size:var(--size-h3); line-height:1.25; cursor:pointer;
}
.risk-card summary::after {
  content:"+"; position:absolute; inset-inline-end:16px; bottom:16px; display:grid; place-items:center;
  width:44px; height:44px; border:1px solid var(--night-line); border-radius:var(--r-round);
  background:var(--ink); color:var(--cream-on-dark); font-family:var(--font-mono);
}
.risk-card[open] summary::after { content:"−"; }
.risk-drawing {
  display:block; width:min(150px,100%); height:88px; margin-block-end:20px;
  fill:none; stroke:var(--warn); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.risk-card p { padding:0 20px 20px; color:var(--cream-muted); }

/* 页内导航与连续章节。吸顶目录必须直接挂在覆盖章节的父级下。 */
.toc {
  width:fit-content; max-width:100%; min-width:0;
  padding:10px; border:1px solid var(--border); border-radius:var(--r-note);
  background:var(--bg); color:var(--text); box-shadow:var(--shadow-card);
}
.toc ul { display:flex; align-items:center; flex-wrap:wrap; gap:4px; list-style:none; margin:0; padding:0; }
.toc li { min-width:0; }
.toc a { display:block; padding:8px 11px; border-radius:var(--r-small); font-size:.875rem; text-decoration:none; }
.toc a:hover,.toc a[aria-current="location"] { background:var(--bg-panel); color:var(--accent-text); text-decoration:underline; }
.chapter-layout {
  --anchor-offset:24px;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,3fr); gap:clamp(24px,5vw,72px);
  align-items:start;
}
.chapter-layout > * { min-width:0; }
.chapter-layout > .toc { position:sticky; top:24px; max-height:calc(100dvh - 48px); overflow-y:auto; }
.chapter-layout > .toc ul { align-items:stretch; flex-direction:column; }
.chapter-layout > .toc.is-static { position:static; max-height:none; overflow:visible; }
.chapter-flow { display:grid; gap:40px; }
.chapter-flow > section { min-width:0; }
.step-tag,.badge--first { background:var(--color-primary); color:var(--on-accent); }
.sec--ink .step-tag { background:var(--accent-on-dark); color:var(--ink); }

/* 竖向功能标签和横向平台标签共用 ARIA 控件。 */
.tabs { min-width:0; }
.tabs [role="tablist"] { display:flex; flex-wrap:wrap; gap:8px; margin-block-end:16px; }
.tabs [role="tab"],.tab-fold {
  min-width:0; min-height:44px; max-width:100%; padding:9px 16px;
  border:1px solid var(--border); border-radius:var(--r-pill);
  background:var(--bg-panel); color:var(--text); text-align:start; overflow-wrap:break-word;
}
.tabs [role="tab"]:hover,.tab-fold:hover { background:var(--bg-panel-2); color:var(--text); }
.tabs [role="tab"][aria-selected="true"],.tab-fold[aria-expanded="true"] {
  background:var(--bg-tint); color:var(--accent-text); border-color:var(--accent);
}
.tabs--branch {
  display:grid; grid-template-columns:minmax(0,36fr) minmax(0,64fr); align-items:start; gap:var(--gap);
}
.tabs--branch [role="tablist"] { display:flex; flex-direction:column; flex-wrap:nowrap; gap:0; margin:0; }
.tabs--branch [role="tab"] {
  position:relative; width:100%; padding:14px 22px; background:var(--bg); color:var(--text);
  border:0; border-bottom:1px solid var(--border); border-radius:0;
  font-family:var(--font-display); font-size:var(--size-h3);
}
.tabs--branch [role="tab"][aria-selected="true"] { border-bottom-color:var(--border); }
.tabs--branch [role="tab"][aria-selected="true"]::before {
  content:""; position:absolute; inset-block:10px; inset-inline-start:0;
  width:3px; border-radius:var(--r-pill); background:var(--accent);
}
.tabs-panels,.tabs [role="tabpanel"] { min-width:0; }
.tabs-ready [role="tabpanel"]:not([hidden]) { animation:panel-in .22s ease both; }
@keyframes panel-in { from { opacity:0; } to { opacity:1; } }
.tab-fold { display:none; }
.route-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-block-start:16px; }
.route-pair > div { padding:10px 12px; border:1px solid var(--border); border-radius:var(--r-small); min-width:0; }
.route-pair dd { margin-block-start:4px; }
.route-pair dt { width:fit-content; color:var(--accent-text); font-family:var(--font-mono); word-break:keep-all; }

/* 文档与下载。 */
.faq {
  border:1px solid var(--border); border-radius:var(--r-card);
  background:var(--bg); color:var(--text);
}
.faq + .faq { margin-block-start:10px; }
.faq > summary {
  position:relative; display:flex; align-items:center; min-height:48px;
  padding:12px 48px 12px 18px; list-style:none; cursor:pointer; font-weight:var(--weight-medium);
}
.faq > summary::-webkit-details-marker { display:none; }
.faq > summary::after {
  content:""; position:absolute; top:50%; inset-inline-end:20px;
  width:9px; height:9px; border-inline-end:2px solid var(--accent-dark); border-block-end:2px solid var(--accent-dark);
  transform:translateY(-65%) rotate(45deg);
}
.faq[open] > summary::after { transform:translateY(-25%) rotate(225deg); }
.faq-body { padding:0 18px 16px; color:var(--text-soft); }
.term-card { border-radius:var(--r-card); }
.term-card .term-meta,.post-meta,.get-note { color:var(--text-muted); font-size:.875rem; }
.plat-card,.post-card { display:flex; flex-direction:column; justify-content:flex-start; align-content:start; gap:12px; }
.plat-card > *,.post-card > * { min-width:0; margin-block-start:0; }
.plat-card-head { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.app-icon { width:56px; height:56px; flex-shrink:0; }
.plat-actions { display:flex; flex-wrap:wrap; gap:10px; margin-block-start:auto; padding-block-start:6px; order:2; }
.post-card .post-link { margin-block-start:auto; }
.post-link { color:var(--accent-text); text-underline-offset:.2em; }
.post-link:hover { text-decoration:underline; }
.badge--recommended { background:var(--bg-tint); color:var(--accent-text); }
.badge--retired { background:var(--bg-panel-2); color:var(--text-soft); }
.get-note { border-radius:var(--r-note); padding:8px 12px; background:var(--bg-panel); color:var(--text-soft); }
.card-set { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap); }
.card-set > * { min-width:0; }
@media (min-width:961px) {
  .card-set:has(> :nth-child(5):last-child) { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .card-set:has(> :nth-child(5):last-child) > * { grid-column:span 2; }
  .card-set:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column:span 3; }
  .card-set:has(> :nth-child(7):last-child) { grid-template-columns:repeat(12,minmax(0,1fr)); }
  .card-set:has(> :nth-child(7):last-child) > * { grid-column:span 3; }
  .card-set:has(> :nth-child(7):last-child) > :nth-child(n+5) { grid-column:span 4; }
}
.callout {
  padding:16px 20px; border-inline-start:3px solid var(--accent); border-radius:var(--r-note);
  background:var(--bg-panel); color:var(--text-soft);
}
.callout a { color:var(--accent-text); text-decoration:underline; }
.table-scroll {
  overflow-x:auto; max-width:100%; min-width:0; overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:var(--r-note);
}
.data-table,.prose table,.article-body table,.reading table {
  border-collapse:collapse; text-align:start; font-size:.9375rem;
}
.data-table { width:100%; }
.prose table,.article-body table,.reading table {
  display:block; overflow-x:auto; -webkit-overflow-scrolling:touch;
  max-width:100%; min-width:0; overscroll-behavior-inline:contain;
}
:where(.prose,.article-body,.reading) .table-scroll > table {
  display:table; min-width:100%; max-width:none; overflow:visible;
}
:is(.data-table,.prose table,.article-body table,.reading table) :is(td,th) {
  min-width:7em; padding:10px 14px; border-bottom:1px solid var(--border);
  overflow-wrap:normal; word-break:normal; text-align:start; vertical-align:top;
}
:is(.data-table,.prose table,.article-body table,.reading table) th {
  background:var(--bg-panel); color:var(--text);
}
:is(.data-table,.prose table,.article-body table,.reading table) th[scope="row"] { width:1%; white-space:nowrap; }
:is(.data-table,.prose table,.article-body table,.reading table) td code {
  display:inline-block; max-width:18em; min-width:0; overflow-wrap:anywhere; word-break:normal;
}
.download-end {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--gap);
  background:var(--night-1); color:var(--cream-on-dark); border-color:var(--night-line);
}
.download-end p { color:var(--cream-muted); margin-block-start:8px; }
.download-end > .btn { margin-block-start:0; }
.dl-fab {
  position:fixed; z-index:12; inset-inline-end:max(20px,env(safe-area-inset-right));
  bottom:calc(20px + env(safe-area-inset-bottom)); display:inline-flex; align-items:center; gap:10px;
  min-height:50px; max-width:calc(100vw - 40px); padding:10px 18px; border-radius:var(--r-pill);
  background:var(--color-primary); color:var(--on-accent); box-shadow:var(--shadow-pop);
  font-weight:var(--weight-strong);
}
.dl-fab:hover { text-decoration:underline; }

/* 仅供设计预览展示色样。 */
.swatches {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,10rem),1fr)); gap:12px;
  list-style:none; padding:0;
}
.swatches li { min-width:0; padding:8px; border:1px solid var(--border); border-radius:var(--r-small); }
.swatches li::before {
  content:""; display:block; height:38px; margin-block-end:5px;
  border:1px solid var(--border); border-radius:var(--r-shot); background:var(--sample);
}
.swatches code { font-size:.75rem; }
.swatches--site li:nth-child(1) { --sample:var(--bg); }
.swatches--site li:nth-child(2) { --sample:var(--bg-panel); }
.swatches--site li:nth-child(3) { --sample:var(--bg-panel-2); }
.swatches--site li:nth-child(4) { --sample:var(--bg-tint); }
.swatches--site li:nth-child(5) { --sample:var(--border); }
.swatches--site li:nth-child(6) { --sample:var(--border-strong); }
.swatches--site li:nth-child(7) { --sample:var(--accent); }
.swatches--site li:nth-child(8) { --sample:var(--accent-dark); }
.swatches--site li:nth-child(9) { --sample:var(--accent-text); }
.swatches--site li:nth-child(10) { --sample:var(--text); }
.swatches--site li:nth-child(11) { --sample:var(--text-muted); }
.swatches--site li:nth-child(12) { --sample:var(--text-soft); }
.swatches--site li:nth-child(13) { --sample:var(--success); }
.swatches--site li:nth-child(14) { --sample:var(--warn); }
.swatches--site li:nth-child(15) { --sample:var(--error); }
.swatches--site li:nth-child(16) { --sample:var(--ink); }
.swatches--site li:nth-child(17) { --sample:var(--night-1); }
.swatches--site li:nth-child(18) { --sample:var(--night-2); }
.swatches--site li:nth-child(19) { --sample:var(--night-line); }
.swatches--site li:nth-child(20) { --sample:var(--night-line-soft); }
.swatches--site li:nth-child(21) { --sample:var(--night-edge); }
.swatches--site li:nth-child(22) { --sample:var(--night-gloss); }
.swatches--site li:nth-child(23) { --sample:var(--night-veil); }
.swatches--site li:nth-child(24) { --sample:var(--cream-on-dark); }
.swatches--site li:nth-child(25) { --sample:var(--cream-muted); }
.swatches--site li:nth-child(26) { --sample:var(--accent-on-dark); }
.swatches--site li:nth-child(27) { --sample:var(--knob-off); }
.swatches--site li:nth-child(28) { --sample:var(--on-accent); }
.swatches--site li:nth-child(29) { --sample:var(--bg-glass); }
.swatches--site li:nth-child(30) { --sample:var(--bg-veil); }
.swatches--site li:nth-child(31) { --sample:var(--accent-ring); }
.swatches--site li:nth-child(32) { --sample:var(--accent-ring-dark); }
.swatches--site li:nth-child(33) { --sample:var(--accent-glow); }
.swatches--site li:nth-child(34) { --sample:var(--accent-gloss); }
.swatches--site li:nth-child(35) { --sample:var(--shadow-ink); }
.swatches--site li:nth-child(36) { --sample:var(--shadow-ink-soft); }
.swatches--site li:nth-child(37) { --sample:var(--shadow-warm); }
.swatches--site li:nth-child(38) { --sample:var(--shadow-hair); }
.swatches--site li:nth-child(39) { --sample:var(--aura-peach); }
.swatches--site li:nth-child(40) { --sample:var(--aura-ember); }
.swatches--site li:nth-child(41) { --sample:var(--aura-sand); }
.swatches--site li:nth-child(42) { --sample:var(--dot); }
.swatches--site li:nth-child(43) { --sample:var(--mask-on); }
.swatches--site li:nth-child(44) { --sample:var(--clear); }
.swatches--scene li:nth-child(1) { --sample:var(--ill-sky-1); }
.swatches--scene li:nth-child(2) { --sample:var(--ill-sky-2); }
.swatches--scene li:nth-child(3) { --sample:var(--ill-sky-3); }
.swatches--scene li:nth-child(4) { --sample:var(--ill-sun); }
.swatches--scene li:nth-child(5) { --sample:var(--ill-bldg-far); }
.swatches--scene li:nth-child(6) { --sample:var(--ill-bldg-near); }
.swatches--scene li:nth-child(7) { --sample:var(--ill-win-lit); }
.swatches--scene li:nth-child(8) { --sample:var(--ill-win-dim); }
.swatches--scene li:nth-child(9) { --sample:var(--ill-awning); }
.swatches--scene li:nth-child(10) { --sample:var(--ill-curb); }
.swatches--scene li:nth-child(11) { --sample:var(--ill-ground-1); }
.swatches--scene li:nth-child(12) { --sample:var(--ill-ground-2); }
.swatches--scene li:nth-child(13) { --sample:var(--ill-seam); }
.swatches--scene li:nth-child(14) { --sample:var(--ill-pool); }
.swatches--scene li:nth-child(15) { --sample:var(--ill-metal); }
.swatches--scene li:nth-child(16) { --sample:var(--ill-metal-hi); }
.swatches--scene li:nth-child(17) { --sample:var(--ill-bulb); }
.swatches--scene li:nth-child(18) { --sample:var(--ill-glow); }
.swatches--scene li:nth-child(19) { --sample:var(--ill-wood); }
.swatches--scene li:nth-child(20) { --sample:var(--ill-wood-hi); }
.swatches--scene li:nth-child(21) { --sample:var(--ill-wood-lo); }
.swatches--scene li:nth-child(22) { --sample:var(--ill-pole); }
.swatches--scene li:nth-child(23) { --sample:var(--ill-bolt); }
.swatches--scene li:nth-child(24) { --sample:var(--ill-sign-text); }
.swatches--scene li:nth-child(25) { --sample:var(--ill-coat); }
.swatches--scene li:nth-child(26) { --sample:var(--ill-coat-hi); }
.swatches--scene li:nth-child(27) { --sample:var(--ill-coat-lo); }
.swatches--scene li:nth-child(28) { --sample:var(--ill-belt); }
.swatches--scene li:nth-child(29) { --sample:var(--ill-skin); }
.swatches--scene li:nth-child(30) { --sample:var(--ill-hair); }
.swatches--scene li:nth-child(31) { --sample:var(--ill-shirt); }
.swatches--scene li:nth-child(32) { --sample:var(--ill-trousers); }
.swatches--scene li:nth-child(33) { --sample:var(--ill-shoe); }
.swatches--scene li:nth-child(34) { --sample:var(--ill-phone); }
.swatches--scene li:nth-child(35) { --sample:var(--ill-screen); }
.swatches--scene li:nth-child(36) { --sample:var(--ill-lens); }
.swatches--scene li:nth-child(37) { --sample:var(--ill-glyph); }
.swatches--scene li:nth-child(38) { --sample:var(--ill-shadow); }
.preview-block + .preview-block { margin-block-start:32px; }
.type-display { font:var(--weight-display) var(--size-h1)/1.1 var(--font-display); text-wrap:pretty; }
.preview-folds { display:none; }
@media (max-width:1180px) {
  .hero-inner { gap:48px; }
  .platforms { flex-wrap:wrap; }
}
@media (max-width:960px) {
  .hero { height:auto; padding-top:32px; padding-bottom:64px; }
  .hero-inner { grid-template-columns:minmax(0,1fr); gap:36px; }
  .copy { max-width:none; }
  .hero h1 { margin-block-start:18px; }
  .lead { font-size:15.5px; margin-block-start:16px; }
  .hero .cta-row { margin-block-start:24px; }
  .platforms { margin-block-start:20px; }
  .platforms-label { width:100%; }
  .stage { justify-self:stretch; width:100%; aspect-ratio:4/3; }
  .stage::before { display:none; }
  .scene { height:auto; transform:translateY(-23%); }
  .float-panel { left:12px; top:12px; width:190px; padding:9px 12px 3px; transform:none; border-radius:var(--r-note); }
  .fp-head { padding-bottom:7px; }
  .fp-list li { padding:7px 0; font-size:12px; }
  .switch { width:28px; height:16px; }
  .switch::after { width:10px; height:10px; }
  .switch.is-on::after { left:14px; }
  .proto { right:10px; bottom:10px; max-width:calc(100% - 20px); padding:6px 10px; font-size:9.5px; gap:5px; }
  .risk h2 { font-size:26px; }
  .card-set { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .card-set > :last-child:nth-child(odd) { grid-column:1/-1; }
}
@media (max-width:768px) {
  .tabs--branch { display:block; }
  .tabs--branch.tabs-ready [role="tablist"],.preview-tabs { display:none; }
  .preview-folds { display:block; }
  .tabs--branch .tab-fold {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    width:100%; margin-block:8px; border-radius:var(--r-note); font-family:var(--font-display); font-size:var(--size-h3);
  }
  .tab-fold::after { content:"+"; color:var(--accent-text); flex:none; }
  .tab-fold[aria-expanded="true"]::after { content:"−"; }
  .chapter-layout { grid-template-columns:minmax(0,1fr); }
  .chapter-layout > .toc { position:static; max-height:none; overflow:visible; }
  .chapter-layout > .toc ul { flex-direction:row; }
  .risk-grid { grid-template-columns:minmax(0,1fr); }
  .risk-card:nth-child(n) { margin-block-start:0; }
}
@media (max-width:640px) {
  .hero .chips,.badge-row { justify-content:center; }
  .platforms { gap:8px; }
  .plat { padding-inline:10px; }
  .card-set,.download-end { grid-template-columns:minmax(0,1fr); }
  .route-pair > div { padding-inline:8px; }
  :lang(ja) .route-pair,:lang(ko) .route-pair { grid-template-columns:minmax(0,1fr); }
  .dl-fab { width:52px; height:52px; min-height:52px; justify-content:center; padding:0; }
  .dl-fab .fab-label {
    position:absolute; inline-size:1px; block-size:1px; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap;
  }
}
@media (max-width:400px) {
  .float-panel { width:160px; left:8px; top:8px; padding-inline:9px; }
  .fp-list li { padding-block:5px; gap:6px; }
  .fp-app { font-size:9.5px; }
}
@media (forced-colors:active) {
  .h1-kw { background:none; color:inherit; }
  .tabs [role="tab"][aria-selected="true"] { text-decoration:underline; }
}