/* 展览图录：页面外壳保持安静，颜色只出现在图版和画框里 */
:root {
  --c-paper: oklch(0.972 0.006 85);
  --c-paper2: oklch(0.94 0.009 80);
  --c-ink: oklch(0.2 0.01 60);
  --c-muted: oklch(0.46 0.012 60);
  --c-rule: oklch(0.86 0.01 70);
  --c-seal: oklch(0.5 0.17 28);
  --c-room: oklch(0.185 0.008 60);
  --c-room2: oklch(0.235 0.009 60);
  --c-room3: oklch(0.285 0.01 60);
  --c-room-ink: oklch(0.93 0.01 80);
  --c-room-muted: oklch(0.72 0.012 70);
  --c-room-rule: oklch(0.34 0.01 60);
  --c-room-seal: oklch(0.74 0.13 40);
  --f-serif: "Noto Serif SC", "Songti SC", serif;
  --f-latin: "Bodoni Moda", "Noto Serif SC", serif;
  --f-sans: -apple-system, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1480px;
  --bar-h: 54px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--bar-h); }

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 15px/1.75 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
em[lang="en"], .en { font-family: var(--f-latin); font-style: italic; font-weight: 400; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-serif); font-weight: 700; }
p { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--c-ink); color: var(--c-paper); }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--c-seal); outline-offset: 3px; }
.room :focus-visible { outline-color: var(--c-room-ink); }

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-rule);
}

.brand { display: inline-flex; align-items: center; min-height: 40px; font: 700 17px var(--f-serif); text-decoration: none; white-space: nowrap; }
.brand em { margin-left: 6px; font-size: 16px; color: var(--c-muted); }

.bar nav { display: flex; gap: 4px; font-size: 14px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--c-muted); text-decoration: none; white-space: nowrap; transition: color 160ms ease-out; }
@media (hover: hover) { .bar nav a:hover { color: var(--c-ink); } }

/* 通用按钮 */
.btn {
  appearance: none;
  min-height: 40px;
  padding: 8px 14px;
  font: 500 14px var(--f-sans);
  color: inherit;
  background: transparent;
  border: 1px solid var(--c-rule);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
@media (hover: hover) { .btn:not(:disabled):hover { border-color: currentColor; } }

/* 工作台：暗室 */
.room { background: var(--c-room); color: var(--c-room-ink); }
.room .btn { border-color: var(--c-room-rule); }
.room .btn[aria-pressed="true"] { color: var(--c-room); background: var(--c-room-ink); border-color: var(--c-room-ink); }

.bench {
  display: grid;
  grid-template-columns: clamp(380px, 37vw, 540px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro stage" "steps stage";
  gap: 0 clamp(32px, 3.6vw, 56px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) 64px;
}

.bench-intro { grid-area: intro; padding-bottom: 22px; }
.bench-intro h1 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 900; line-height: 1.3; }
.rule { margin-top: 6px; font-size: 15px; color: var(--c-room-muted); }
.rule b { color: var(--c-room-ink); font-weight: 600; }

.bench-steps { grid-area: steps; min-width: 0; }
.step + .step { margin-top: 22px; }

.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.step-head h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.4; }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--c-room-ink); border-radius: 50%; font: 400 13px/1 var(--f-latin); }
.step-cap { flex: 1; min-width: 0; font-size: 13px; color: var(--c-room-muted); }
.step-count { font: 400 13px var(--f-sans); color: var(--c-room-muted); }

/* ① 骨架：灰阶缩略页，只比较排版 */
.skels { container-type: inline-size; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }

.skel {
  appearance: none;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: var(--c-room-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease-out, color 160ms ease-out;
}
.skel .thumb { background: var(--c-room2); outline: 1px solid var(--c-room-rule); transition: outline-color 160ms ease-out; }
.skel-name { font-size: 12.5px; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skel:active { transform: scale(0.97); }
.skel[aria-pressed="true"] { color: var(--c-room-ink); }
.skel[aria-pressed="true"] .thumb { outline: 2px solid var(--c-room-ink); outline-offset: 2px; }
.skel[aria-pressed="true"] .skel-name { font-weight: 600; }
@media (hover: hover) {
  .skel:hover { color: var(--c-room-ink); }
  .skel:not([aria-pressed="true"]):hover .thumb { outline-color: var(--c-room-muted); }
}

/* ② 表皮：横向滚动的画片 */
.skin-groups { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 6px; }
.grp {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  font: 500 13px var(--f-sans);
  color: var(--c-room-muted);
  background: transparent;
  border: 1px solid var(--c-room-rule);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease-out, color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
.grp span { font-size: 12px; opacity: 0.75; }
.grp:active { transform: scale(0.97); }
.grp.is-on { color: var(--c-room-ink); border-color: var(--c-room-muted); background: var(--c-room2); }
@media (hover: hover) { .grp:hover { color: var(--c-room-ink); } }

.skins {
  --card: clamp(104px, calc((100cqi - 32px) / 4.4), 128px);
  container-type: inline-size;
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px 6px 10px;
  margin: -2px -6px 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-room-rule) transparent;
}
.skin-group { display: flex; gap: 8px; }
.skin-group + .skin-group { padding-left: 13px; margin-left: 5px; border-left: 1px solid var(--c-room-rule); }

.skin {
  appearance: none;
  flex: 0 0 var(--card);
  display: grid;
  gap: 5px;
  width: var(--card);
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--c-room-muted);
  background: none;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 120ms ease-out, color 160ms ease-out;
}
.skin-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sw-bg) 0 50%, var(--sw-accent) 50% 100%);
  outline: 1px solid var(--c-room-rule);
  transition: outline-color 160ms ease-out;
}
.skin-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.skin[data-img="none"] .skin-img img { display: none; }
.skin-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.skin-chip { display: inline-flex; flex: none; box-shadow: 0 0 0 1px oklch(1 0 0 / 0.14); }
.skin-chip i { display: block; width: 7px; height: 7px; }
.skin-chip i:nth-child(1) { background: var(--sw-bg); }
.skin-chip i:nth-child(2) { background: var(--sw-accent); }
.skin-chip i:nth-child(3) { background: var(--sw-accent2); }
.skin:active { transform: scale(0.97); }
.skin[aria-pressed="true"] { color: var(--c-room-ink); }
.skin[aria-pressed="true"] .skin-img { outline: 2px solid var(--c-room-ink); outline-offset: 2px; }
.skin[aria-pressed="true"] .skin-name { font-weight: 600; }
@media (hover: hover) {
  .skin:hover { color: var(--c-room-ink); }
  .skin:not([aria-pressed="true"]):hover .skin-img { outline-color: var(--c-room-muted); }
}

/* ③ 提示词 */
.sheet { display: flex; flex-direction: column; min-width: 0; background: var(--c-paper2); border-top: 2px solid var(--c-ink); }
.sheet header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--c-rule); }
.sheet header > span { flex: 1; min-width: 0; font-size: 12px; color: var(--c-muted); overflow-wrap: anywhere; }
.sheet pre {
  margin: 0;
  padding: 16px 18px 20px;
  max-height: 480px;
  overflow: auto;
  font: 12.5px/1.7 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.room .sheet { background: var(--c-room2); border-top-color: var(--c-room-ink); }
.room .sheet pre { max-height: 320px; padding: 12px 16px 16px; font-size: 12px; color: var(--c-room-ink); }

.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 6px; border-bottom: 1px solid var(--c-room-rule); }
.tabs { display: flex; }
.tab {
  appearance: none;
  min-height: 44px;
  padding: 0 12px;
  font: 700 15px var(--f-serif);
  color: var(--c-room-muted);
  background: none;
  border: 0;
  box-shadow: inset 0 -2px 0 transparent;
  cursor: pointer;
  transition: transform 120ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { color: var(--c-room-ink); box-shadow: inset 0 -2px 0 var(--c-room-ink); }
@media (hover: hover) { .tab:hover { color: var(--c-room-ink); } }

.panel-meta { padding: 10px 16px 0; font-size: 12px; color: var(--c-room-muted); }

.subject { display: grid; gap: 6px; padding: 10px 16px 0; font-size: 12px; color: var(--c-room-muted); }
.subject input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  font: 13px var(--f-mono);
  color: var(--c-room-ink);
  background: var(--c-room);
  border: 1px solid var(--c-room-rule);
  border-radius: 2px;
}
.subject input::placeholder { color: var(--c-room-muted); opacity: 0.8; }

.takeaway { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.takeaway-k { margin-right: 4px; font: 700 15px var(--f-serif); }
.takeaway-note, .takeaway-msg { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: var(--c-room-muted); }
.takeaway-msg { color: var(--c-room-seal); }
.takeaway-msg:empty { display: none; }
.btn[aria-busy="true"] { cursor: progress; }

.to-install { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; font-size: 13px; color: var(--c-room-muted); text-underline-offset: 4px; }
@media (hover: hover) { .to-install:hover { color: var(--c-room-ink); } }

.bench-steps .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-room-rule); }
.hint { min-height: 1.75em; margin-top: 10px; font-size: 13px; color: var(--c-room-muted); }

/* 舞台：900px 宽的示例页按比例缩小，不重排 */
.bench-stage {
  grid-area: stage;
  align-self: start;
  width: 100%;
  min-width: 0;
}

.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 8px; }
.stage-head h2 { font-size: 15px; line-height: 1.4; }
.stage-head h2 span { margin-left: 6px; font: 400 13px var(--f-sans); color: var(--c-room-muted); }

.frame { padding: 8px; background: oklch(0.1 0.005 60); outline: 1px solid var(--c-room-rule); }
.mat { padding: clamp(8px, 1.1vw, 14px); background: oklch(0.985 0.003 80); }

.stage-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stage-view.is-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-fig { display: grid; gap: 8px; min-width: 0; }
.stage-fig figcaption { font-size: 12.5px; line-height: 1.5; color: var(--c-muted); }
.stage-fig figcaption .cap-k { display: block; font: 700 14px var(--f-serif); color: var(--c-ink); }
.stage-fig figcaption b { font-weight: 500; color: var(--c-ink); }
.stage-fig figcaption b.chg { font-weight: 700; color: var(--c-seal); }

.note { display: grid; gap: 2px; margin-top: 12px; padding: 10px 16px 12px; background: var(--c-room3); font-size: 14px; line-height: 1.6; }
.note-k { font-size: 12px; letter-spacing: 0.08em; color: var(--c-room-seal); }
.to-duo { display: none; }

/* 两栏展签：骨架和表皮各自是谁 */
.duo { container-type: inline-size; margin-top: 2px; background: var(--c-room2); font-size: 13px; line-height: 1.65; }
.duo-k { padding: 10px 16px 0; font: 400 12px/1.5 var(--f-sans); letter-spacing: 0.08em; color: var(--c-room-muted); }
.duo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo-cols.is-pure { grid-template-columns: minmax(0, 1fr); }
.duo-col { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 8px 16px 14px; }
.duo-col + .duo-col { border-left: 1px solid var(--c-room-rule); }
.duo-meta { font-size: 12px; color: var(--c-room-muted); }
.duo-meta b { font-weight: 600; color: var(--c-room-ink); }
.duo h4 { font-size: 16px; line-height: 1.35; }
.duo h4 .en { font-size: 14px; color: var(--c-room-muted); }
.duo-sub { font: 400 13px var(--f-sans); color: var(--c-room-muted); }
.duo-intro { margin-top: 2px; font-size: 13.5px; line-height: 1.7; color: var(--c-room-ink); text-wrap: pretty; }
.duo-does { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 12px; margin-top: 6px; }
.duo-does > span { font-size: 12px; color: var(--c-room-muted); }
.duo-does ul { margin: 0; padding: 0; list-style: none; }
.duo-does li { text-wrap: pretty; }
.duo-cap { display: inline-block; }
@container (max-width: 560px) {
  .duo-cols { grid-template-columns: minmax(0, 1fr); }
  .duo-col + .duo-col { border-left: 0; border-top: 1px solid var(--c-room-rule); }
}

.label { margin-top: 2px; background: var(--c-room2); font-size: 13px; }
.label summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  list-style: none;
  cursor: pointer;
}
.label summary::-webkit-details-marker { display: none; }
.label .more { flex: none; font-size: 12px; color: var(--c-room-muted); }
.label .more::after { content: " ↓"; }
.label details[open] .more::after { content: " ↑"; }
@media (hover: hover) { .label summary:hover .more { color: var(--c-room-ink); } }
.label-body { padding: 0 16px 14px; }
.label h4 { font-size: 16px; line-height: 1.35; }
.label h4 .en { font-size: 14px; color: var(--c-room-muted); }
.label .thesis { color: var(--c-room-muted); }
.label dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 0; }
.label dt { color: var(--c-room-muted); }
.label dd { margin: 0; }
.label .warn { color: oklch(0.72 0.15 40); }

/* 章节 */
.chapter { max-width: var(--max); margin-inline: auto; padding: 96px var(--gutter) 112px; }
.chapter + .chapter { border-top: 1px solid var(--c-rule); }

.chapter-head { display: grid; gap: 10px; margin-bottom: 56px; }
.chapter-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; }
.chapter-head p { max-width: 40em; font-size: 16px; color: var(--c-muted); }

.group-head {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: baseline;
  margin: 0 0 32px;
  padding-top: 18px;
  border-top: 1px solid var(--c-ink);
}
.group-head h3 { font-size: 22px; }
.group-head p { max-width: 44em; color: var(--c-muted); }
.plates + .group-head { margin-top: 96px; }

/* 图版 */
.plates { display: grid; gap: 64px 40px; }
.plates-structure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates-surface { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }

.plate { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plate-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-rule); font-size: 13px; color: var(--c-muted); }
.plate-no { font: italic 400 15px var(--f-latin); color: var(--c-ink); }
.plate h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 28px; line-height: 1.25; }
.plates-surface .plate h4 { font-size: 24px; }
.plate h4 .en { font-size: 19px; color: var(--c-muted); }
.plate .essence { font-size: 15px; }

.traits { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.traits dt { font-size: 12px; line-height: 24px; color: var(--c-muted); letter-spacing: 0.08em; }
.traits dd { margin: 0; color: var(--c-muted); }
.traits dd b { color: var(--c-ink); font-weight: 600; }

.plate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* 缩略网页：真实的示例页按比例缩小 */
.thumb {
  position: relative;
  aspect-ratio: 900 / 760;
  overflow: hidden;
  background: var(--c-paper2);
  outline: 1px solid oklch(0.2 0.01 60 / 0.14);
}
.thumb > .pv {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  transform: scale(var(--s, 0.4));
  transform-origin: 0 0;
  pointer-events: none;
}
.thumb > .pv,
.thumb > .pv > .pv-page { min-height: 760px; }

/* 表皮色彩研究：底色 + 质感 + 色块，不套任何骨架 */
.pv.pv-study { aspect-ratio: 6 / 5; min-height: 0; outline: 1px solid oklch(0.2 0.01 60 / 0.14); }
.study-img { position: absolute; inset: 0 0 auto; z-index: 1; height: 80%; margin: 0; overflow: hidden; }
.study-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-study[data-img="none"] .study-img { display: none; }
.pv-study[data-img="ok"] .study-glyph { display: none; }
.study-glyph {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 1;
  font: 400 clamp(56px, 7vw, 92px)/1 var(--f-latin);
  color: var(--ink);
}
.study-glyph[lang="zh"] { font-family: var(--f-serif); font-weight: 700; }
.study-chips { position: absolute; inset: auto 0 0; z-index: 1; display: flex; height: 20%; }
.study-chips i { display: block; }
.study-chips i:nth-child(1) { flex: 3; background: var(--surface); }
.study-chips i:nth-child(2) { flex: 2; background: var(--accent); }
.study-chips i:nth-child(3) { flex: 1; background: var(--accent2); }
.study-chips i:nth-child(4) { flex: 1; background: var(--accent3); }
.study-chips i:nth-child(5) { flex: 1; background: var(--ink); }

/* 安装 */
.install { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 40px clamp(32px, 5vw, 80px); padding-top: 18px; border-top: 1px solid var(--c-ink); }
.targets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.targets .btn[aria-pressed="true"] { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.files { margin-top: 14px; font-size: 14px; color: var(--c-muted); }
.files a { margin-left: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--c-ink); }
.say h3 { margin-bottom: 10px; font-size: 18px; }
.say ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-rule); }
.say li { padding: 12px 0; border-bottom: 1px solid var(--c-rule); }
.say li::before { content: "“"; color: var(--c-muted); }
.say li::after { content: "”"; color: var(--c-muted); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter) 40px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 3px solid var(--c-ink);
}

/* 一次性进场 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .plates-surface { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .bench {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "stage" "steps";
    padding-top: 22px;
  }
  .bench-intro { padding-bottom: 16px; }
  .bench-stage {
    position: sticky;
    top: var(--bar-h);
    z-index: 3;
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin: 0 calc(-1 * var(--gutter)) 20px;
    padding: 8px var(--gutter) 10px;
    background: var(--c-room);
    box-shadow: 0 12px 16px -12px oklch(0 0 0 / 0.6);
  }
  .bench-stage .frame { max-width: calc(23svh * 900 / 760 + 32px); margin-inline: auto; }
  .stage-head { min-height: 36px; margin-bottom: 6px; }
  .note { margin-top: 8px; padding: 6px 12px; font-size: 13px; line-height: 1.5; }
  .note-k { display: none; }
  .to-duo { display: inline-flex; align-items: center; justify-self: start; min-height: 24px; font-size: 12.5px; color: var(--c-room-muted); text-underline-offset: 3px; }
  @media (hover: hover) { .to-duo:hover { color: var(--c-room-ink); } }
  .duo { scroll-margin-top: calc(var(--stage-h, 23svh + 170px) + 12px); }
  .duo-cols { grid-template-columns: minmax(0, 1fr); }
  .duo-col + .duo-col { border-left: 0; border-top: 1px solid var(--c-room-rule); }
  .bench-stage:has(.is-compare) { position: static; box-shadow: none; }
  .bench-stage:has(.is-compare) .frame { max-width: none; }
  .stage-view.is-compare { grid-template-columns: minmax(0, 1fr); }
  .skel, .skin, .grp, .tab, .bench-steps .btn { scroll-margin-top: calc(var(--bar-h) + 23svh + 150px); }
  .label-slot { margin-top: 22px; }
  .skels { display: flex; gap: 8px; padding: 6px 6px 10px; margin: -6px -6px 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 6px; scrollbar-width: thin; scrollbar-color: var(--c-room-rule) transparent; }
  .skel { flex: 0 0 clamp(96px, calc((100cqi - 24px) / 3.4), 140px); scroll-snap-align: start; }
  .skins { --card: clamp(110px, calc((100cqi - 16px) / 2.6), 150px); }
  .plates-structure, .install { grid-template-columns: minmax(0, 1fr); }
  .group-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) and (max-height: 560px) {
  .bench-stage { position: static; box-shadow: none; }
}

@media (max-width: 640px) {
  .bar { gap: 8px; }
  .brand em { display: none; }
  .bar nav a { padding: 0 10px; }
  .plates-surface { grid-template-columns: minmax(0, 1fr); }
  .chapter { padding-block: 72px 88px; }
  .chapter-head { margin-bottom: 40px; }
  .stage-head h2 span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .skel, .skel .thumb, .grp, .skin, .skin-img, .tab, .bar nav a { transition: none; }
  .skins, .skels { scroll-behavior: auto; }
}
