/* 数据浏览器、平台标签及详情面板。 */
.tabs { min-width: 0; }
.tablist, [role="tablist"].tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  color: var(--c-muted);
  font-weight: 600;
  text-align: left;
  min-width: 0;
}
.tab:hover { background: var(--c-panel); color: var(--c-text); }
.tab[aria-selected="true"] { background: var(--c-panel); color: var(--c-accent-dark); border-color: var(--c-accent-ring); }
.tabpanel { min-width: 0; }
.feature-browser {
  display: grid;
  grid-template-columns: minmax(0,36fr) minmax(0,64fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-panel);
  color: var(--c-text);
  position: relative;
}
.feature-browser > * { min-width: 0; }
.feature-browser .tablist { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 0; }
.feature-browser .tab { width: 100%; justify-content: flex-start; border-color: var(--mask-clear); background: var(--c-panel); color: var(--c-muted); padding: 16px 18px; }
.feature-browser .tab[aria-selected="true"] { background: var(--c-bg); color: var(--c-accent-dark); box-shadow: var(--shadow-xs); border-color: var(--c-border); }
.feature-browser .tab[aria-selected="true"]::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 2px; border-radius: var(--r-point); background: var(--c-accent); color: var(--c-on-accent); }
.tab__text { min-width: 0; }
.tab__text strong { display: block; font-size: 15px; }
.tab__text small { display: block; margin-top: 4px; color: var(--c-muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
.tab__progress { position: absolute; inset: auto 0 0; height: 2px; border-radius: var(--r-point); background: var(--c-accent); color: var(--c-on-accent); transform: scaleX(0); transform-origin: left; }
.tabs.is-playing .tab[aria-selected="true"] .tab__progress { animation: tabProgress var(--tour) linear forwards; }
.feature-detail { padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-soft); min-width: 0; }
.feature-detail h3 { margin-top: 0; }
.mini-window { border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-field); color: var(--c-text); overflow: hidden; }
.mini-window pre { border: 0; margin: 0; border-radius: var(--r-xs); }
.mini-tip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 16px 16px; padding: 8px 12px; background: var(--c-text); color: var(--c-on-ink); border-radius: var(--r-sm); box-shadow: var(--shadow-tip); font-size: 12px; }
@keyframes tabProgress { to { transform: scaleX(1); } }

/* toc 的直接父级必须覆盖全部章节。 */
.document-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 40px; align-items: start; }
.document-layout > * { min-width: 0; }
.toc { position: sticky; top: 24px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-text); max-height: calc(100dvh - 48px); overflow-y: auto; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px; font-size: 13px; color: var(--c-muted); }
.toc a:hover, .toc a[aria-current] { color: var(--c-accent-dark); background: var(--c-panel); text-decoration: none; border-radius: var(--r-xs); }
.toc--static { position: static; }
.toc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.toc-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-muted); }
.toc-tabs a:hover { color: var(--c-accent-dark); text-decoration: none; }

.faq-item { border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-xs); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { position: relative; padding: 18px 48px 18px 20px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 17px; color: var(--c-muted); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; color: var(--c-accent-dark); }
.faq-item[open] summary { border-bottom: 1px solid var(--c-border); }
.faq-item__answer { padding: 18px 20px; color: var(--c-muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }
.term-card, .client-card, .post-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-soft);
}
.term-card h3, .client-card h3, .post-card h3 { margin: 0 0 10px; }
.term-card__key { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--c-muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.term-card p, .post-card p { color: var(--c-muted); }
.term-card p:last-child { margin-bottom: 0; }
.client-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.client-card__head > div { min-width: 0; }
.client-card__logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.client-card--first { border-color: var(--c-accent-ring); }
.client-card--archived { background: var(--c-field); color: var(--c-text); }
[data-ver]:empty { display: none; }
.client-card__version { font-family: var(--font-mono); font-size: 12px; color: var(--c-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px; border: 1px solid var(--c-border); border-radius: var(--r-xs); background: var(--c-panel); color: var(--c-muted); font-size: 11px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.badge--first, .badge--recommended { background: var(--c-panel-2); color: var(--c-accent-dark); border-color: var(--c-accent-ring); }
.badge--archived { background: var(--c-warn-tint); color: var(--c-warn-text); }
.badge--success { background: var(--c-success-tint); color: var(--c-success-text); }
.badge--error { background: var(--c-error-tint); color: var(--c-error-text); }
.post-card { display: flex; flex-direction: column; }
.post-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--c-muted); margin-bottom: 16px; }
.post-card h3 { font-size: 18px; }
.post-card h3 a { color: var(--c-text); }
.post-card h3 a:hover { color: var(--c-accent-dark); }
.post-card__link { margin-top: auto; padding-top: 12px; font-size: 13px; }
.callout { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--c-border); border-left: 2px solid var(--c-accent); border-radius: var(--r-sm); background: var(--c-panel); color: var(--c-text); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--c-warn); background: var(--c-warn-tint); color: var(--c-text); }
.callout--error { border-left-color: var(--c-error); background: var(--c-error-tint); color: var(--c-text); }
.callout--success { border-left-color: var(--c-success); background: var(--c-success-tint); color: var(--c-text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.data-table { width: 100%; border-collapse: collapse; background: var(--c-bg); color: var(--c-text); font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { background: var(--c-panel); color: var(--c-text); font-weight: 600; }
.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;
  overscroll-behavior-inline: contain;
}
.download-guide {
  margin-top: 40px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-soft);
}
.download-guide > div { flex: 1 1 240px; min-width: 0; }
.download-guide h2 { font-size: 20px; margin-top: 0; }
.download-guide p { color: var(--c-muted); margin-bottom: 0; }
.dl-fab {
  position: fixed;
  right: max(var(--gutter),env(safe-area-inset-right));
  bottom: max(20px,env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: calc(100% - var(--gutter) * 2);
  padding: 12px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-float);
}
.dl-fab svg { width: 22px; height: 22px; color: var(--c-accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-fab strong { display: block; font-size: 13px; }
.dl-fab small { display: block; color: var(--c-muted); font-size: 11px; }
.dl-fab:hover { text-decoration: none; border-color: var(--c-accent-ring); }
.has-dl-fab .site-footer { padding-bottom: 88px; }

/* 单一配置窗口装置。所有持续动画归属于同一轮导览。 */
.stage { position: relative; z-index: 1; width: min(1000px,calc(100% - 64px)); margin-top: 26px; }
.steprail { position: absolute; right: 100%; top: 50%; margin-right: 22px; transform: translateY(-50%); display: grid; gap: 6px; padding: 6px; border: 1px solid var(--c-border); border-radius: var(--r-rail); background: var(--c-bg); color: var(--c-muted); box-shadow: var(--shadow-soft); }
.steprail__tile { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--c-border); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 12px; color: var(--c-muted); }
.steprail__on { position: absolute; inset: -1px; display: grid; place-items: center; border: 1px solid var(--c-accent); border-radius: var(--r-sm); background: var(--c-panel); color: var(--c-accent-dark); font-weight: 600; opacity: 0; }
.steprail__tile:first-child .steprail__on { opacity: 1; }
.shell { padding: 8px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-shell); }
.window { border: 1px solid var(--c-border); border-radius: var(--r-window); overflow: hidden; background: var(--c-field); color: var(--c-text); }
.chrome { height: 36px; padding-inline: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--c-bg); color: var(--c-muted); border-bottom: 1px solid var(--c-border); }
.chrome__dots { display: flex; gap: 7px; }
.chrome__dots i { width: 10px; height: 10px; border-radius: var(--r-round); background: var(--c-chrome-dot); color: var(--c-text); flex-shrink: 0; }
.chrome__title { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.chrome__meta { justify-self: end; font-family: var(--font-mono); font-size: 11px; color: var(--c-muted); }
.field {
  position: relative;
  height: 340px;
  background: radial-gradient(36% 58% at 80% 6%,var(--blob-peach) 0%,var(--mask-clear) 72%),radial-gradient(30% 54% at 28% 0%,var(--blob-sky) 0%,var(--mask-clear) 72%),radial-gradient(34% 62% at 12% 92%,var(--blob-lilac) 0%,var(--mask-clear) 72%),radial-gradient(30% 56% at 94% 96%,var(--blob-mint) 0%,var(--mask-clear) 72%),var(--c-field);
  color: var(--c-text);
}
.card { position: absolute; top: 20px; left: 50%; margin-left: -360px; width: 720px; height: 300px; display: grid; grid-template-columns: 156px minmax(0,1fr); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-float); transform-origin: 50% 0; }
.card > * { min-width: 0; }
.side { display: flex; flex-direction: column; padding: 14px 10px; border-right: 1px solid var(--c-border); }
.side__brand { height: 28px; display: flex; align-items: center; gap: 8px; padding-inline: 8px; font-size: 13px; font-weight: 700; }
.side__brand img { width: 18px; height: 18px; }
.menu { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.menu li { position: relative; height: 30px; display: flex; align-items: center; gap: 8px; padding-inline: 10px; border-radius: var(--r-sm); font-size: 12.5px; color: var(--c-muted); }
.menu svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--c-muted); }
.menu .is-on { background: var(--c-panel); color: var(--c-accent-dark); font-weight: 600; }
.menu .is-on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: var(--r-point); background: var(--c-accent); color: var(--c-on-accent); }
.side__core { margin-top: auto; display: flex; align-items: center; gap: 7px; padding-inline: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--c-muted); }
.dot-ok { width: 7px; height: 7px; border-radius: var(--r-round); background: var(--c-success); color: var(--c-on-ink); box-shadow: 0 0 0 3px var(--c-success-tint); flex-shrink: 0; }
.main { padding: 20px 24px; display: flex; flex-direction: column; }
.m-head { height: 22px; display: flex; align-items: center; gap: 10px; }
.m-head b { font-size: 15px; font-weight: 700; }
.m-head span { font-size: 12px; color: var(--c-muted); }
.m-label { height: 18px; margin-top: 14px; font-size: 12px; line-height: 12px; color: var(--c-muted); }
.m-import { height: 36px; display: grid; grid-template-columns: minmax(0,1fr) 72px; gap: 12px; }
.inp { position: relative; display: flex; align-items: center; gap: 8px; padding-inline: 10px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-text); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.inp svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; color: var(--c-muted); }
.inp__lit { position: absolute; inset: -1px; border: 1px solid var(--c-accent); border-radius: var(--r-sm); box-shadow: 0 0 0 3px var(--c-accent-ring); opacity: 1; }
.btn-import { position: relative; display: grid; place-items: center; border: 1px solid var(--c-accent-dark); border-radius: var(--r-sm); background: var(--c-accent); color: var(--c-on-accent); font-size: 13px; font-weight: 600; box-shadow: inset 0 1px 0 var(--c-highlight); }
.btn-import__lit { position: absolute; inset: -1px; border-radius: var(--r-sm); box-shadow: 0 0 0 3px var(--c-accent-ring); opacity: 0; }
.m-profile { height: 40px; margin-top: 12px; display: flex; align-items: center; gap: 10px; padding-inline: 12px; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.radio { position: relative; width: 14px; height: 14px; flex-shrink: 0; border: 1.5px solid var(--c-switch-off); border-radius: var(--r-round); }
.radio__on { position: absolute; inset: -1.5px; border: 1.5px solid var(--c-accent); border-radius: var(--r-round); opacity: 0; }
.radio__on::after { content: ""; position: absolute; inset: 2.5px; border-radius: var(--r-round); background: var(--c-accent); color: var(--c-on-accent); }
.m-profile__name { font-size: 13px; font-weight: 600; }
.m-profile__src { font-family: var(--font-mono); font-size: 11.5px; color: var(--c-muted); }
.m-profile__cur { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--c-success-text); opacity: 0; }
.m-profile__cur i { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--c-success); color: var(--c-on-ink); box-shadow: 0 0 0 3px var(--c-success-tint); }
.m-profile__fmt { padding: 2px 6px; border: 1px solid var(--c-border); border-radius: var(--r-xs); background: var(--c-panel); color: var(--c-muted); font-family: var(--font-mono); font-size: 10.5px; }
.m-mode { height: 32px; margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.m-mode__label { width: 56px; font-size: 12px; color: var(--c-muted); }
.seg { display: flex; height: 32px; padding: 2px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-panel); color: var(--c-muted); }
.seg span { width: 64px; display: grid; place-items: center; border-radius: var(--r-xs); font-size: 12.5px; }
.seg .is-on { background: var(--c-bg); color: var(--c-accent-dark); font-weight: 600; box-shadow: var(--shadow-xs); }
.m-mode__hint { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--c-muted); }
.m-switch { height: 40px; margin-top: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cell { display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-field); color: var(--c-text); font-size: 13px; font-weight: 500; }
.cell code { margin-left: 8px; font-size: 10.5px; color: var(--c-muted); font-weight: 400; }
.sw { position: relative; width: 32px; height: 18px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--c-switch-off); color: var(--c-text); }
.sw__on { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-on-accent); opacity: 0; }
.sw__knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--r-round); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-xs); }
.sw__lit { position: absolute; inset: -1px; border-radius: var(--r-pill); box-shadow: 0 0 0 3px var(--c-accent-ring); opacity: 0; }
.tour { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.spot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.spot--1 { left: 330px; top: 92px; }
.spot--2 { left: 660px; top: 92px; }
.spot--3 { left: 404px; top: 238px; }
.spot__ring, .spot__pulse { position: absolute; inset: 0; border-radius: var(--r-round); border: 1.5px solid var(--c-accent); opacity: 0; }
.spot__ring { background: var(--c-accent-tint); color: var(--c-text); }
.spot--1 .spot__ring { opacity: 1; }
.cursor { position: absolute; left: 0; top: 0; width: 20px; height: 22px; transform: translate(329px,94px); transform-origin: 3px 2px; filter: var(--shadow-cursor); }
.cursor path { fill: var(--c-text); stroke: var(--c-bg); stroke-width: 1.4; stroke-linejoin: round; }
.tip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 7px; border-radius: var(--r-sm); background: var(--c-text); color: var(--c-on-ink); font-size: 12.5px; font-weight: 500; line-height: 16px; white-space: nowrap; box-shadow: var(--shadow-tip); opacity: 0; }
.tip::before { content: ""; position: absolute; left: 12px; top: -4px; width: 9px; height: 9px; background: var(--c-text); color: var(--c-on-ink); border-radius: var(--r-point); transform: rotate(45deg); }
.tip__n { padding: 1px 5px; border-radius: var(--r-xs); background: var(--c-ink-chip); color: var(--c-ink-sub); font-family: var(--font-mono); font-size: 10.5px; }
.tip--1 { left: 316px; top: 124px; opacity: 1; }
.tip--2 { right: 30px; top: 36px; }
.tip--2::before { left: auto; right: 22px; top: auto; bottom: -4px; }
.tip--3 { left: 390px; top: 266px; }

/* 正式首页可在 stage 上加 is-touring；预览页保持第一步静态。 */
.is-touring .cursor { animation: tourCursor var(--tour) var(--ease-tour) infinite; }
.is-touring .tip { animation: tourTip var(--tour) ease infinite both; }
.is-touring .tip--2 { animation-delay: var(--tour-step); }
.is-touring .tip--3 { animation-delay: var(--tour-third); }
.is-touring .spot__ring, .is-touring .inp__lit, .is-touring .btn-import__lit, .is-touring .sw__lit, .is-touring .steprail__on { animation: tourLit var(--tour) ease infinite both; }
.is-touring .spot__pulse { animation: tourPulse var(--tour) ease-out infinite both; }
.is-touring .spot--2 .spot__ring, .is-touring .spot--2 .spot__pulse, .is-touring .btn-import__lit, .is-touring .steprail__tile:nth-child(2) .steprail__on { animation-delay: var(--tour-step); }
.is-touring .spot--3 .spot__ring, .is-touring .spot--3 .spot__pulse, .is-touring .sw__lit, .is-touring .steprail__tile:nth-child(3) .steprail__on { animation-delay: var(--tour-third); }
.is-touring .radio__on, .is-touring .m-profile__cur { animation: tourCurrent var(--tour) ease infinite; }
.is-touring .sw__on { animation: tourSwitch var(--tour) ease infinite; }
.is-touring .sw__knob { animation: tourKnob var(--tour) ease infinite; }
@keyframes tourCursor {
  0%,24%,100% { transform: translate(329px,94px); }
  34%,57% { transform: translate(659px,94px); }
  67%,90% { transform: translate(403px,240px); }
}
@keyframes tourTip { 0%,25% { opacity: 1; transform: translateY(0); } 31%,95% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes tourLit { 0%,26% { opacity: 1; } 32%,96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tourPulse { 0% { opacity: .6; transform: scale(1); } 26% { opacity: 0; transform: scale(1.7); } 27%,100% { opacity: 0; transform: scale(1); } }
@keyframes tourCurrent { 0%,37%,100% { opacity: 0; } 44%,92% { opacity: 1; } }
@keyframes tourSwitch { 0%,69%,100% { opacity: 0; } 76%,92% { opacity: 1; } }
@keyframes tourKnob { 0%,69%,100% { transform: translateX(0); } 76%,92% { transform: translateX(14px); } }

/* 预览色板：只映射令牌，不引入独立颜色。 */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; }
.swatch { margin: 0; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-text); overflow: hidden; }
.swatch__paint { height: 64px; background: var(--c-bg); color: var(--c-text); }
.swatch figcaption { padding: 10px; font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
.swatch--bg .swatch__paint { background: var(--c-bg); color: var(--c-text); }
.swatch--panel .swatch__paint { background: var(--c-panel); color: var(--c-text); }
.swatch--panel2 .swatch__paint { background: var(--c-panel-2); color: var(--c-text); }
.swatch--border .swatch__paint { background: var(--c-border); color: var(--c-text); }
.swatch--rail .swatch__paint { background: var(--c-rail); color: var(--c-text); }
.swatch--field .swatch__paint { background: var(--c-field); color: var(--c-text); }
.swatch--stripe .swatch__paint { background: var(--c-stripe); color: var(--c-text); }
.swatch--accent .swatch__paint { background: var(--c-accent); color: var(--c-on-accent); }
.swatch--dark .swatch__paint { background: var(--c-accent-dark); color: var(--c-on-accent); }
.swatch--tint .swatch__paint { background: var(--c-accent-tint); color: var(--c-text); }
.swatch--ring .swatch__paint { background: var(--c-accent-ring); color: var(--c-text); }
.swatch--accent-shadow .swatch__paint { background: var(--c-accent-shadow); color: var(--c-text); }
.swatch--text .swatch__paint { background: var(--c-text); color: var(--c-on-ink); }
.swatch--muted .swatch__paint { background: var(--c-muted); color: var(--c-on-ink); }
.swatch--faint .swatch__paint { background: var(--c-faint); color: var(--c-text); }
.swatch--white .swatch__paint { background: var(--c-on-accent); color: var(--c-text); }
.swatch--inksub .swatch__paint { background: linear-gradient(var(--c-ink-sub),var(--c-ink-sub)),var(--c-text); color: var(--c-text); }
.swatch--inkchip .swatch__paint { background: linear-gradient(var(--c-ink-chip),var(--c-ink-chip)),var(--c-text); color: var(--c-on-ink); }
.swatch--success .swatch__paint { background: var(--c-success); color: var(--c-text); }
.swatch--success-text .swatch__paint { background: var(--c-success-text); color: var(--c-on-ink); }
.swatch--success-tint .swatch__paint { background: var(--c-success-tint); color: var(--c-text); }
.swatch--warn .swatch__paint { background: var(--c-warn); color: var(--c-text); }
.swatch--warn-text .swatch__paint { background: var(--c-warn-text); color: var(--c-on-ink); }
.swatch--warn-tint .swatch__paint { background: var(--c-warn-tint); color: var(--c-text); }
.swatch--error .swatch__paint { background: var(--c-error); color: var(--c-text); }
.swatch--error-text .swatch__paint { background: var(--c-error-text); color: var(--c-on-ink); }
.swatch--error-tint .swatch__paint { background: var(--c-error-tint); color: var(--c-text); }
.swatch--dot .swatch__paint { background: var(--c-chrome-dot); color: var(--c-text); }
.swatch--off .swatch__paint { background: var(--c-switch-off); color: var(--c-text); }
.swatch--highlight .swatch__paint { background: linear-gradient(var(--c-highlight),var(--c-highlight)),var(--c-accent); color: var(--c-text); }
.swatch--veil .swatch__paint { background: var(--c-veil); color: var(--c-text); }
.swatch--peach .swatch__paint { background: var(--blob-peach); color: var(--c-text); }
.swatch--lilac .swatch__paint { background: var(--blob-lilac); color: var(--c-text); }
.swatch--mint .swatch__paint { background: var(--blob-mint); color: var(--c-text); }
.swatch--sky .swatch__paint { background: var(--blob-sky); color: var(--c-text); }
.swatch--mask .swatch__paint { background: var(--mask-solid); color: var(--c-on-ink); }
.swatch--clear .swatch__paint { background: var(--mask-clear); color: var(--c-text); }
.preview-type-title { font-size: 44px; line-height: 1.14; font-weight: 800; margin-top: 0; }

@media (max-width: 1100px) {
  .steprail { display: none; }
}
@media (max-width: 900px) {
  .document-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .toc { position: static; max-height: none; }
  .feature-browser { grid-template-columns: minmax(0,1fr); }
  .feature-browser .tablist { flex-direction: row; flex-wrap: wrap; }
  .feature-browser .tab { width: auto; flex: 1 1 180px; }
  .stage { width: calc(100% - 32px); }
  .card { transform: scale(.8); }
  .field { height: 280px; }
}
@media (max-width: 640px) {
  .feature-browser { padding: 16px; gap: 16px; }
  .feature-detail { padding: 18px; }
  .feature-browser .tab { flex-basis: 130px; padding: 12px; }
  .feature-browser .tab__text small { display: none; }
  .tab { padding-inline: 12px; }
  .term-card, .client-card, .post-card { padding: 20px; }
  .stage { width: calc(100% - 32px); }
  .card { transform: scale(.65); }
  .field { height: 225px; }
  .chrome__meta { display: none; }
  .chrome { grid-template-columns: 1fr auto 1fr; padding-inline: 10px; }
  .chrome__title { font-size: 11px; }
  .chrome__dots { gap: 4px; }
  .chrome__dots i { width: 6px; height: 6px; }
  .preview-type-title { font-size: 28px; }
  .dl-fab { padding: 10px 14px; gap: 8px; }
}
@media (max-width: 520px) {
  .card { transform: scale(.5); }
  .field { height: 185px; }
}
@media (max-width: 400px) {
  .card { transform: scale(.39); }
  .field { height: 150px; }
}
@media (max-width: 350px) {
  .card { transform: scale(.33); }
  .field { height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-touring *, .tabs.is-playing .tab__progress { animation: none !important; }
  .cursor { transform: translate(329px,94px); }
  .tip, .spot__ring, .spot__pulse, .steprail__on, .btn-import__lit, .sw__lit, .sw__on, .radio__on, .m-profile__cur { opacity: 0; }
  .tip--1, .spot--1 .spot__ring, .inp__lit, .steprail__tile:first-child .steprail__on { opacity: 1; }
  .sw__knob { transform: none; }
}