/* 首屏：标题入场，桌面窗口始终静止。 */
.hero { position: relative; isolation: isolate; overflow: hidden; overflow-x: clip; padding-top: 28px; padding-bottom: 56px; text-align: center; }
.hero__horizon { position: absolute; left: 50%; bottom: -760px; width: 170%; height: 1100px; transform: translateX(-50%); border-radius: var(--radius-round); background: var(--bg-panel); color: var(--text); z-index: -2; pointer-events: none; }
.hero__glow { position: absolute; inset: auto 0 0; height: 560px; z-index: -1; pointer-events: none; background: radial-gradient(34% 62% at 4% 92%,var(--glow-rose),var(--clear) 72%),radial-gradient(34% 62% at 96% 92%,var(--glow-amber),var(--clear) 72%); color: var(--text); }
.hero > .wrap { position: relative; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 28px; max-width: 100%; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text); font-size: 13px; font-weight: var(--weight-medium); line-height: 1.25; overflow-wrap: anywhere; text-decoration: none; }
.chip i, .status-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: var(--radius-round); }
.dot-grape { background: var(--accent); color: var(--on-dark); }
.dot-teal { background: var(--success); color: var(--text); }
.dot-amber { background: var(--warn); color: var(--text); }
.dot-rose { background: var(--error); color: var(--on-dark); }
.hero h1 { margin: 0; font-weight: var(--weight-display); }
.h1-line { display: block; overflow: hidden; padding-bottom: .06em; }
.h1-line > span { display: inline-block; animation: title-rise .62s var(--ease-out) .08s both; }
.h1-line + .h1-line > span { animation-delay: .26s; }
.mark { position: relative; z-index: 0; display: inline-block; color: var(--accent); }
.mark::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .08em; height: .24em; z-index: -1; background: var(--lilac-strong); color: var(--accent-dark); border-radius: var(--radius-mark); transform-origin: left center; animation: mark-grow .4s var(--ease-out) .7s both; }
@keyframes title-rise { from { transform: translateY(105%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes mark-grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.lede { margin: 14px auto 0; max-width: 820px; font-size: var(--text-lede); line-height: 1.6; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-bold); }
.platforms { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 0; margin-top: 20px; }
.platforms__label { font-size: 13px; color: var(--text-muted); margin-right: 12px; }
.platforms ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.platforms li + li { border-left: 1px solid var(--border); }
.platform { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 14px; color: var(--text-muted); font-size: 14px; font-weight: var(--weight-medium); line-height: 20px; text-decoration: none; transition: color var(--motion-fast); }
.platform svg { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.platform:hover { color: var(--accent); }
.stage { display: flex; justify-content: center; margin-top: 28px; }
.window { width: min(1120px,88vw); flex-shrink: 0; padding: 0 12px 12px; text-align: left; background: linear-gradient(180deg,var(--accent),var(--accent-dark)); color: var(--on-dark); border-radius: var(--radius-card); box-shadow: var(--shadow-window); font-family: var(--font-body); }
.window__bar { display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; height: 42px; }
.window__dots { display: flex; gap: 7px; padding-left: 4px; }
.window__dots span { display: block; flex-shrink: 0; width: 11px; height: 11px; border-radius: var(--radius-round); }
.window__search { justify-self: center; display: flex; align-items: center; gap: 8px; width: min(560px,100%); min-height: 26px; padding: 3px 12px; border-radius: var(--radius-sm); background: var(--frame-search); color: var(--on-dark); font-size: var(--text-xs); }
.window__search svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.window__body { display: grid; grid-template-columns: 76px minmax(0,1.08fr) minmax(0,1fr); gap: 8px; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: var(--radius-rail); background: var(--rail-bg); color: var(--on-dark); }
.rail__item { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 60px; padding: 8px 0 6px; border-radius: var(--radius-inner); color: var(--on-dark-muted); font-size: 11.5px; font-weight: var(--weight-medium); line-height: 1.2; }
.rail__item svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail__item.is-active { background: var(--rail-active); color: var(--on-dark); }
.pane { display: flex; flex-direction: column; padding: 16px 18px; border-radius: var(--radius-inner); background: var(--bg-panel); color: var(--text); }
.pane__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pane__title { font-family: var(--font-display); font-size: 17px; font-weight: var(--weight-heading); letter-spacing: -.01em; }
.pane__link { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--accent); }
.field { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 12px; padding: 4px 4px 4px 12px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg-panel); color: var(--text); }
.field svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; }
.field__ph { flex: 1; font-size: 13px; color: var(--text-muted); }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 13px; border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1; }
.mini-btn--solid { background: var(--accent); color: var(--on-dark); }
.mini-btn--line { border: 1px solid var(--border); background: var(--bg-panel); color: var(--accent-dark); }
.sub { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-inner); background: var(--bg-panel); color: var(--text); }
.sub.is-current { border-color: var(--accent); background: var(--mist); color: var(--text); }
.sub__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sub__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--lilac); color: var(--accent); }
.sub__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub__name { font-size: 14px; font-weight: var(--weight-bold); }
.sub__name--mono { font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-medium); }
.sub__act { margin-left: auto; }
.tag, .badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; min-height: 22px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--lilac); color: var(--accent-dark); font-size: 11.5px; font-weight: var(--weight-bold); line-height: 1.3; overflow-wrap: anywhere; }
.tag--live, .badge--recommended { background: var(--success-tint); color: var(--success-ink); }
.tag--live i { display: block; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--success); color: var(--text); }
.badge--first { background: var(--accent); color: var(--on-dark); }
.badge--archived { background: var(--warn-tint); color: var(--warn-ink); }
.sub__rows { margin: 10px 0 0; padding: 0; list-style: none; }
.sub__rows li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; font-size: 13px; color: var(--text-muted); }
.sub__rows li + li { border-top: 1px dashed var(--border); }
.sub__rows code { font-size: var(--text-xs); color: var(--text); font-weight: var(--weight-medium); }
.sub__meta { margin-top: 6px; padding-left: 38px; font-size: var(--text-xs); color: var(--text-muted); }
.drop { flex: 1; min-height: 50px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-inner); font-size: var(--text-xs); color: var(--text-muted); }
.drop svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.switch { position: relative; width: 34px; height: 20px; border-radius: var(--radius-pill); background: var(--track-off); color: var(--text); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: var(--radius-round); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-xs); }
.switch.is-on { background: var(--success); color: var(--text); }
.switch.is-on::after { left: 16px; }
.pane--assist { align-items: center; }
.mascot { width: 56px; height: 56px; display: block; flex-shrink: 0; }
.q-teal { fill: var(--success); }
.q-amber { fill: var(--warn); }
.q-rose { fill: var(--error); }
.q-grape { fill: var(--accent); }
.cat { fill: var(--on-dark); }
.cat-eye { fill: var(--accent-dark); }
.cat-line { fill: none; stroke: var(--accent-dark); stroke-width: 1.4; stroke-linecap: round; }
.cat-tail { fill: none; stroke: var(--on-dark); stroke-width: 3.2; stroke-linecap: round; }
.mode { margin-top: 8px; font-family: var(--font-display); font-size: 16px; font-weight: var(--weight-heading); letter-spacing: -.01em; }
.seg { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; max-width: 270px; margin-top: 10px; padding: 3px; border-radius: var(--radius-btn); background: var(--lilac); color: var(--text-muted); }
.seg span { padding: 5px 0; text-align: center; border-radius: var(--radius-sm); font-size: 13px; font-weight: var(--weight-medium); line-height: 1.4; }
.seg .is-on { background: var(--bg-panel); color: var(--accent-dark); box-shadow: var(--shadow-xs); }
.rules { width: 100%; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--mist); color: var(--text); font: var(--weight-body) 12.5px/1.6 var(--font-mono); white-space: pre; overflow-x: auto; }
.rules .c { color: var(--text-muted); }
.rules .k { color: var(--accent); font-weight: var(--weight-medium); }
.rules .p { color: var(--error-ink); font-weight: var(--weight-medium); }
.rules .d { color: var(--success-ink); font-weight: var(--weight-medium); }
.toggles { width: 100%; margin: 8px 0 0; padding: 0; list-style: none; }
.toggles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; font-size: 13.5px; font-weight: var(--weight-medium); }
.toggles li + li { border-top: 1px solid var(--border); }
.port { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-muted); }
.port code { font-size: 12px; font-weight: var(--weight-medium); background: var(--lilac); color: var(--accent-dark); padding: 3px 8px; border-radius: var(--radius-code); }
.quick { position: relative; background: var(--bg-panel); color: var(--text); padding-top: 40px; padding-bottom: 80px; }
.quick__head { text-align: center; }
.quick h2 { margin: 0; font-size: 30px; }
.quick__head p { margin: 10px 0 0; color: var(--text-muted); }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.step__label { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--accent); letter-spacing: .02em; }
.step h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.35; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }
.quick__more { display: flex; justify-content: center; margin-top: 28px; }
.quick__more a { font-weight: var(--weight-bold); text-decoration: none; }

/* Tabs 可横向与纵向组合；不自动轮播。 */
.tab-list, [role="tablist"].tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; padding: 0; }
[role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%; padding: 10px 22px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--accent-dark); font-weight: var(--weight-bold); line-height: 1.45; text-align: center; }
[role="tab"]:hover { background: var(--lilac); color: var(--accent-dark); }
[role="tab"][aria-selected="true"] { background: var(--bg-panel-2); color: var(--on-dark); border-color: var(--bg-panel-2); }
[role="tabpanel"] { min-width: 0; }
.feature-shortcuts { padding-top: 48px; padding-bottom: 48px; background: var(--bg-panel); color: var(--text); }
.feature-shortcuts .chips { max-width: 780px; margin: 0 auto; gap: 16px; }
.feature-shortcuts .chip { min-height: 52px; font-size: 21px; padding: 10px 26px; color: var(--accent-dark); }
.feature-shortcuts .is-active { background: var(--bg-panel-2); color: var(--on-dark); border-color: var(--bg-panel-2); }
.feature-stage { position: relative; overflow: hidden; overflow-x: clip; padding-top: 84px; padding-bottom: 110px; border-radius: var(--radius-panel) var(--radius-panel) 0 0; background: var(--bg-panel-2); color: var(--on-dark); }
.feature-stage::after { content: ""; position: absolute; width: 130%; height: 72px; left: -15%; bottom: -46px; border-radius: var(--radius-arc); background: var(--bg); color: var(--text); pointer-events: none; }
.feature-stage .section-head p { color: var(--on-dark-muted); }
.feature-browser { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 40px; align-items: start; }
.feature-questions { display: flex; flex-direction: column; gap: 14px; }
.feature-questions [role="tab"] { justify-content: flex-start; width: 100%; min-height: 68px; padding: 16px 22px; border-color: var(--clear); background: var(--bg-panel-2); color: var(--on-dark); font-size: 21px; text-align: left; }
.feature-questions [role="tab"][aria-selected="true"] { background: var(--lilac-strong); color: var(--accent-dark); }
.feature-display { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--mist); color: var(--text); }
.feature-display p { margin-top: 24px; margin-bottom: 0; line-height: 1.85; color: var(--text-muted); }
.feature-spark { position: absolute; width: 10px; height: 10px; border-radius: var(--radius-mark); pointer-events: none; }
.feature-spark--a { top: 42px; left: 4%; background: var(--success); color: var(--text); }
.feature-spark--b { top: 90px; right: 6%; background: var(--warn); color: var(--text); }
.feature-spark--c { bottom: 60px; left: 7%; background: var(--error); color: var(--on-dark); }
.feature-spark--d { bottom: 100px; right: 3%; background: var(--bg-panel); color: var(--text); }

/* 长页导航：直接父容器必须覆盖对应全部章节。 */
.toc { position: sticky; top: 12px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-inner); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-pill); color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current] { background: var(--lilac); color: var(--accent-dark); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); margin-bottom: 12px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 24px; font-weight: var(--weight-bold); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--accent); font-size: 24px; font-weight: var(--weight-medium); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 4px solid var(--accent); }
.term-card__category { font: var(--weight-medium) 12px/1.5 var(--font-mono); color: var(--accent); margin-bottom: 14px; }
.term-card dt { font-weight: var(--weight-heading); font-size: var(--text-h3); margin-bottom: 12px; }
.term-card dd { margin: 0; color: var(--text-muted); }
.download-card { display: flex; flex-direction: column; gap: 18px; }
.download-card--first { border-color: var(--accent); }
.download-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.download-card__icon { width: 56px; height: 56px; flex-shrink: 0; }
.download-card h3 { margin: 0; }
.download-card__meta { color: var(--text-muted); font-size: var(--text-sm); }
.download-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
[data-rev]:empty { display: none; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: var(--text-xs); }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin: 0; }
.post-card__more { margin-top: auto; font-weight: var(--weight-bold); text-decoration: none; font-size: var(--text-sm); }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-inner); background: var(--lilac); color: var(--accent-dark); }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { border-left-color: var(--warn); background: var(--warn-tint); color: var(--warn-ink); }
.callout--error { border-left-color: var(--error); background: var(--error-tint); color: var(--error-ink); }
.article-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; background: var(--lilac); color: var(--accent-dark); }
.article-download h2 { font-size: 24px; margin: 0 0 8px; }
.article-download p { margin: 0; }
.article-download .btn { flex-shrink: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--radius-inner); background: var(--bg-panel); color: var(--text); }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: var(--text-sm); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td { min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th, .article-body table th { background: var(--lilac); color: var(--accent-dark); font-weight: var(--weight-bold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code, .article-body table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; z-index: 30; right: max(20px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: calc(100vw - 36px); padding: 12px 18px; border: 1px solid var(--accent-dark); border-radius: var(--radius-btn); background: var(--accent); color: var(--on-dark); box-shadow: var(--shadow-float); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-dark); }
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 设计预览的色样与控件状态。 */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.swatch { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-inner); background: var(--bg-panel); color: var(--text); font-size: var(--text-xs); }
.swatch__paint { display: block; height: 64px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.swatch__paint[data-token="bg"] { background: var(--bg); }
.swatch__paint[data-token="bg-panel"] { background: var(--bg-panel); }
.swatch__paint[data-token="bg-panel-2"] { background: var(--bg-panel-2); }
.swatch__paint[data-token="border"] { background: var(--border); }
.swatch__paint[data-token="border-strong"] { background: var(--border-strong); }
.swatch__paint[data-token="accent"] { background: var(--accent); }
.swatch__paint[data-token="accent-dark"] { background: var(--accent-dark); }
.swatch__paint[data-token="text"] { background: var(--text); }
.swatch__paint[data-token="text-muted"] { background: var(--text-muted); }
.swatch__paint[data-token="text-soft"] { background: var(--text-soft); }
.swatch__paint[data-token="success"] { background: var(--success); }
.swatch__paint[data-token="warn"] { background: var(--warn); }
.swatch__paint[data-token="error"] { background: var(--error); }
.swatch__paint[data-token="success-ink"] { background: var(--success-ink); }
.swatch__paint[data-token="warn-ink"] { background: var(--warn-ink); }
.swatch__paint[data-token="error-ink"] { background: var(--error-ink); }
.swatch__paint[data-token="lilac"] { background: var(--lilac); }
.swatch__paint[data-token="lilac-strong"] { background: var(--lilac-strong); }
.swatch__paint[data-token="mist"] { background: var(--mist); }
.swatch__paint[data-token="track-off"] { background: var(--track-off); }
.swatch__paint[data-token="success-tint"] { background: var(--success-tint); }
.swatch__paint[data-token="warn-tint"] { background: var(--warn-tint); }
.swatch__paint[data-token="error-tint"] { background: var(--error-tint); }
.swatch__paint[data-token="on-dark"] { background: var(--on-dark); }
.swatch__paint[data-token="on-dark-muted"] { background: var(--on-dark-muted); }
.swatch__paint[data-token="frame-search"] { background: var(--frame-search); }
.swatch__paint[data-token="rail-bg"] { background: var(--rail-bg); }
.swatch__paint[data-token="rail-active"] { background: var(--rail-active); }
.swatch__paint[data-token="glow-rose"] { background: var(--glow-rose); }
.swatch__paint[data-token="glow-amber"] { background: var(--glow-amber); }
.swatch__paint[data-token="veil"] { background: var(--veil); }
.swatch__paint[data-token="clear"] { background: var(--clear); }
.specimen-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.preview-language { list-style: none; }
.preview-language summary { cursor: pointer; }
.preview-language summary::-webkit-details-marker { display: none; }
@media (max-width: 1100px) {
  .window__body { grid-template-columns: 68px minmax(0,1fr) minmax(0,1fr); }
  .rail__item { width: 54px; }
}
@media (max-width: 860px) {
  .window__body { grid-template-columns: minmax(0,1fr); }
  .rail { display: none; }
  .steps { grid-template-columns: 1fr; }
  .feature-browser { grid-template-columns: 1fr; gap: 24px; }
  .feature-questions { gap: 8px; }
  .feature-questions [role="tab"] { font-size: 18px; min-height: 48px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: var(--text-h1); }
  .hero .chips { gap: 6px; }
  .hero .chip { font-size: 11.5px; padding-inline: 9px; }
  .feature-shortcuts .chips { gap: 8px; }
  .feature-shortcuts .chip { font-size: 15px; min-height: 42px; padding: 8px 14px; }
  .feature-display { padding: 20px; }
  .article-download { align-items: flex-start; flex-direction: column; }
  .dl-fab { right: 18px; bottom: max(16px,env(safe-area-inset-bottom)); font-size: 13px; padding: 10px 14px; }
  .faq-item summary { padding: 18px 20px; }
  .faq-item__answer { padding-inline: 20px; }
}
@media (max-width: 560px) {
  .window { width: 94vw; padding: 0 8px 8px; }
  .window__bar { grid-template-columns: 56px 1fr 20px; }
  .platforms__label { width: 100%; margin: 0 0 4px; }
  .platform { padding: 4px 10px; }
  .lede { font-size: 15.5px; }
  .pane { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .h1-line > span, .mark::after { animation: none; }
}