@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('../fonts/plexmono-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --desk: #dcdeD8;
  --sheet: #f3f4f0;
  --sheet-2: #e9eae4;
  --ink: #171a1b;
  --ink-2: #4a5051;
  --ink-3: #636766;
  --rule: #c3c6bf;
  --rule-2: #d7d9d2;
  --mark: #1b3a8f;
  --mark-soft: #e2e6f2;
  --flag: #8f2e17;
  --flag-soft: #f2e4df;

  --f-sans: 'Archivo', 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-mono: 'PlexMono', ui-monospace, 'SFMono-Regular', 'Roboto Mono', monospace;

  --pad: clamp(20px, 4.4vw, 56px);
  --hair: 1px solid var(--rule);
  --hair-2: 1px solid var(--rule-2);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.62;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--mark);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ---------- 纸张 ---------- */

.sheet {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--sheet);
  border-left: var(--hair);
  border-right: var(--hair);
  min-height: 100vh;
  padding-bottom: 1px;
  box-shadow: 0 1px 0 rgba(23, 26, 27, .06);
}

.regmark {
  position: absolute;
  width: 13px; height: 13px;
  pointer-events: none;
  opacity: .5;
}
.regmark::before, .regmark::after {
  content: ''; position: absolute; background: var(--ink-3);
}
.regmark::before { left: 6px; top: 0; width: 1px; height: 13px; }
.regmark::after { top: 6px; left: 0; height: 1px; width: 13px; }
.regmark.tl { top: 14px; left: 14px; }
.regmark.tr { top: 14px; right: 14px; }
.regmark.bl { bottom: 14px; left: 14px; }
.regmark.br { bottom: 14px; right: 14px; }

/* ---------- 页眉 ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad) 0;
  border-bottom: var(--hair);
  flex-wrap: wrap;
}
.masthead .brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
}
.brand .zh {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .16em;
}
.brand .lat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.formcode {
  display: flex;
  gap: 18px;
  padding-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.formcode b { font-weight: 500; color: var(--ink-2); }

/* ---------- 面板通用 ---------- */

.panel { padding: 0 var(--pad); }
.rule-t { border-top: var(--hair); }
.rule-b { border-bottom: var(--hair); }

.sect {
  padding: 26px var(--pad);
  border-top: var(--hair);
}
.sect:first-of-type { border-top: 0; }

.tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sect-h {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  padding-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sect-h .n {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--ink-3);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--sheet);
  padding: 10px 18px;
  font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; }

.lead {
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -.015em;
  max-width: 19ch;
}
.sub {
  max-width: 62ch;
  color: var(--ink-2);
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-width: 1px;
  font-weight: 500;
}
.btn.ghost:hover { background: var(--sheet-2); }
.btn[disabled] { opacity: .38; cursor: not-allowed; }

/* ---------- 封面 ---------- */

.cover-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(34px, 6vw, 62px) var(--pad) 34px;
  align-items: end;
}
@media (max-width: 820px) {
  .cover-head { grid-template-columns: 1fr; align-items: start; }
}

.cover-title { display: flex; flex-direction: column; gap: 18px; }
.cover-title .kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cover-title h1 { font-size: 0; line-height: 0; }
.cover-title .zh-title {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .96;
}
.cover-title .en-title {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cover-title .decl {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 34ch;
  border-left: 2px solid var(--ink);
  padding-left: 14px;
}

.spec { border-top: 1.5px solid var(--ink); }
.spec dl {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  gap: 0;
}
.spec dt, .spec dd {
  padding: 7px 0;
  border-bottom: var(--hair-2);
  font-size: 13px;
}
.spec dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-right: 18px;
  white-space: nowrap;
}
.spec dd { text-align: right; font-variant-numeric: tabular-nums; }

/* 封面上的示样：真实的、可点的气泡 */
.sample {
  padding: 0 var(--pad) 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.sample .cap {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sample-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: var(--hair-2);
}
.sample-row .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  width: 26px;
  flex: none;
}
.sample-row .txt { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.sample-row .dots { display: flex; gap: 7px; flex: none; }

.dot {
  width: 21px; height: 21px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color .12s ease;
}
.dot::after {
  content: '';
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--mark);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .13s ease, transform .13s cubic-bezier(.2, .9, .3, 1.4);
}
.dot:hover { border-color: var(--ink); }
.dot[aria-checked="true"], .dot:has(input:checked) { border-color: var(--mark); }
.dot[aria-checked="true"]::after, .dot:has(input:checked)::after { opacity: 1; transform: scale(1); }
.dot:has(input:focus-visible) {
  outline: 2.5px solid var(--mark);
  outline-offset: 3px;
}
/* ---------- 量表结构图 ---------- */

.struct {
  padding: 0 var(--pad) 32px;
}
.struct .cap {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  padding-bottom: 10px;
}
.struct-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-left: var(--hair-2);
}
@media (max-width: 720px) {
  .struct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.struct-col {
  border-right: var(--hair-2);
  border-bottom: var(--hair-2);
  padding: 12px 12px 14px;
}
.struct-col .ax {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.struct-col .ax b { color: var(--ink); font-weight: 600; }
.struct-col .axname { font-size: 12px; color: var(--ink-2); margin: 2px 0 10px; }
.struct-col ol { display: grid; gap: 6px; }
.struct-col li {
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.struct-col li::before {
  content: '';
  width: 6px; height: 6px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  flex: none;
  position: relative;
  top: -1px;
}
.struct-col li b { font-weight: 600; color: var(--ink); }
.struct-col li span { color: var(--ink-3); font-size: 11.5px; }

/* ---------- 实物带与图版 ---------- */

.band {
  border-bottom: var(--hair);
  background: var(--sheet-2);
  overflow: hidden;
}
.band img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: .84;
}

.plate {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 46px);
  padding: 28px var(--pad) 30px;
  border-top: var(--hair);
  align-items: start;
}
@media (max-width: 780px) { .plate { grid-template-columns: 1fr; } }
.plate figure { margin: 0; }
.plate figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--hair);
  background: #fff;
}
.plate figcaption {
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding-top: 9px;
  text-transform: none;
}
.plate .txt h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.plate .txt p { font-size: 13.5px; color: var(--ink-2); max-width: 56ch; }
.plate .txt p + p { margin-top: 10px; }
.plate .txt .eq {
  margin-top: 16px;
  border-top: var(--hair-2);
  padding-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
  display: grid;
  gap: 6px;
}
.plate .txt .eq b { font-weight: 500; color: var(--ink); }

/* ---------- 说明块 ---------- */

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--hair);
}
@media (max-width: 720px) { .note-grid { grid-template-columns: 1fr; } }

.note {
  padding: 22px var(--pad);
  border-bottom: var(--hair);
}
.note + .note { border-left: var(--hair); }
@media (max-width: 720px) { .note + .note { border-left: 0; } }
.note h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.note h3::before {
  content: '';
  width: 9px; height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  flex: none;
}
.note.no h3::before { border-color: var(--ink-3); border-style: dashed; }
.note ul { display: grid; gap: 7px; }
.note li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
}
.note li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 1px;
  background: var(--ink-3);
}

.startbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px var(--pad) 40px;
  flex-wrap: wrap;
}
.startbar .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.startbar .hint { font-size: 12.5px; color: var(--ink-3); max-width: 46ch; }

/* ---------- 作答 ---------- */

.runhead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sheet);
  border-bottom: 1.5px solid var(--ink);
  padding: 12px var(--pad) 10px;
}
.runhead .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.runhead .part {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.runhead .count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.runhead .count b { font-weight: 600; color: var(--ink); }
.kbd-hint { color: var(--ink-3); }
@media (max-width: 620px) { .kbd-hint { display: none; } }

.grid74 {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 8px;
}
@media (max-width: 620px) {
  .runhead { padding: 9px var(--pad) 8px; }
  .grid74 { gap: 1.5px; margin-top: 6px; }
}
.grid74 i {
  width: 7px; height: 7px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  flex: none;
  transition: background .18s ease, border-color .18s ease;
}
.grid74 i.done { background: var(--mark); border-color: var(--mark); }
.grid74 i.here {
  border-color: var(--ink);
  border-width: 1.5px;
  box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3px var(--ink-3);
}

.items { padding: 0 var(--pad); }
.items:focus-visible { outline: 2.5px solid var(--mark); outline-offset: -2px; }
/* 粘性页眉会盖住对齐到顶部的元素，用 scroll-margin 让出它的高度 */
.items, .q { scroll-margin-top: var(--runhead-h, 112px); }

.q {
  padding: 22px 0 20px;
  border-bottom: var(--hair-2);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 16px;
  align-items: start;
}
.q:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .q { grid-template-columns: 26px minmax(0, 1fr); gap: 0 10px; }
}

.q .no {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.q .grp {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 22px;
  align-items: start;
}
@media (max-width: 860px) {
  .q .grp { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.q .stem {
  display: block;
  padding: 0;
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 46ch;
}
@media (max-width: 860px) { .q .stem { font-size: 16px; } }

.q .resp { padding-top: 2px; }
@media (max-width: 860px) { .q .resp { padding-top: 13px; } }

.q .paircue {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.q .pairq {
  display: block;
  font-size: 16.5px;
  line-height: 1.5;
}
@media (max-width: 860px) { .q .pairq { font-size: 16px; } }

.scale7 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scale7 .end {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-3);
  white-space: nowrap;
}
.scale7 .dots { display: flex; gap: 6px; }
.scale7 .dot { width: 26px; height: 26px; }
.scale7 .dot::after { width: 14px; height: 14px; }

.opt-wide {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.opt-wide .opt {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--rule);
  padding: 11px 15px;
  font-size: 14.5px;
  text-align: left;
  transition: border-color .12s ease, background .12s ease;
  width: 100%;
}
.opt-wide .opt:hover { border-color: var(--ink-2); background: var(--sheet-2); }
.opt-wide .opt:has(input:focus-visible) {
  outline: 2.5px solid var(--mark);
  outline-offset: 2px;
}
.opt-wide .opt .bullet {
  width: 17px; height: 17px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
}
.opt-wide .opt .bullet::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--mark); opacity: 0; transform: scale(.4);
  transition: opacity .13s ease, transform .13s cubic-bezier(.2, .9, .3, 1.4);
}
.opt-wide .opt:has(input:checked) { border-color: var(--mark); background: var(--mark-soft); }
.opt-wide .opt:has(input:checked) .bullet { border-color: var(--mark); }
.opt-wide .opt:has(input:checked) .bullet::after { opacity: 1; transform: scale(1); }

.q.answered legend, .q.answered .stem { color: var(--ink-2); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad) 34px;
  border-top: var(--hair);
  flex-wrap: wrap;
}
.navbar .mid {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .06em;
}

.jump {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jump button {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.jump button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.jump button.cur { color: var(--mark); border-bottom-color: var(--mark); }

/* ---------- 结果 ---------- */

.typeblock {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: start;
  padding: 30px var(--pad) 26px;
}
@media (max-width: 780px) { .typeblock { grid-template-columns: 1fr; } }

.typecode {
  display: flex;
  gap: 2px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(52px, 12vw, 92px);
  line-height: .9;
  letter-spacing: -.01em;
}
.typecode span { position: relative; }
.typecode span.weak { color: var(--ink-3); }
.typecode span.weak::after {
  content: ''; position: absolute; left: 6%; right: 6%; bottom: .12em;
  height: 2px; background: var(--ink-3);
}
.type-meta { display: flex; flex-direction: column; gap: 10px; }
.type-meta .tagline {
  font-size: clamp(19px, 3.2vw, 25px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.type-meta .body { color: var(--ink-2); max-width: 58ch; }

/* 两极刻度条：本工具的核心视觉 */
.axis {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: var(--hair-2);
}
@media (max-width: 700px) {
  .axis { grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 9px; }
}
.axis:first-of-type { border-top: 0; }
.axis .pole {
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.axis .pole.r { text-align: right; align-items: flex-end; }
.axis .pole .code {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-3);
}

.track {
  position: relative;
  height: 30px;
  width: 100%;
}
.track .rail {
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.track .mid {
  position: absolute;
  top: 8px; bottom: 8px; left: 50%;
  width: 1px;
  background: var(--rule);
}
.track .band {
  position: absolute;
  top: 10px;
  height: 9px;
  background: #e3e5de;
  border-left: 1px solid var(--rule-2);
  border-right: 1px solid var(--rule-2);
}

/* 刻度尺：小竖线，两端密中间疏 */
.ticks {
  position: absolute; inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.ticks i { width: 1px; height: 5px; background: var(--rule); }
.ticks i.mid { height: 9px; background: var(--ink-3); }

/* 标记：实心 = 前一极，空心 = 后一极 */
.marker {
  position: absolute;
  top: 50%;
  width: 17px; height: 17px;
  margin: -8.5px 0 0 -8.5px;
  border-radius: 50%;
  border: 1.5px solid var(--mark);
  background: var(--mark);
  transition: left .5s cubic-bezier(.2, .8, .25, 1);
}
.marker.hollow { background: var(--sheet); }
.marker::after {
  content: '';
  position: absolute;
  left: 50%; top: -2px;
  width: 1px; height: 21px;
  background: var(--mark);
  transform: translateX(-.5px);
  opacity: .35;
}

.axis .val {
  font-family: var(--f-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  width: 46px;
  text-align: center;
}
.axis .num {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
}
.axis .flagtag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.axis .flagtag.crit { color: var(--flag); }

/* 子刻度表 */
.facet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.facet {
  border-top: var(--hair-2);
  padding: 0;
}
.facet:first-of-type { border-top: 0; }
.facet .head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 15px 0 4px;
}
.facet .nm {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.facet .nm b { font-weight: 600; font-size: 15px; }
.facet .nm em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.facet .nm i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
}
.facet .reading {
  padding: 6px 0 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 74ch;
}
.facet .both {
  display: grid;
  gap: 8px;
  padding: 4px 0 8px;
  max-width: 74ch;
}
.facet .both p {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 62px;
  position: relative;
}
.facet .both .mono {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.facet .meter {
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
  padding: 0 0 15px;
}
.facet.off { opacity: .58; }
.facet.off .val { color: var(--flag); }
.facet .demo { place-self: center end; }

/* 两法对照表 */
.cmp { width: 100%; border-collapse: collapse; }
.cmp caption {
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-3);
  padding-bottom: 12px;
}
.cmp th, .cmp td {
  padding: 9px 10px;
  border-bottom: var(--hair-2);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cmp th:first-child, .cmp td:first-child {
  text-align: left;
  font-family: var(--f-sans);
}
.cmp thead th {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  border-bottom: 1.5px solid var(--ink);
}
.cmp .gap { font-family: var(--f-mono); font-weight: 500; }
.cmp .gap.warn { color: var(--flag); }
.cmp .bar {
  display: inline-block;
  height: 7px;
  width: var(--w, 0%);
  background: var(--mark);
  vertical-align: middle;
  margin-left: 8px;
}
.cmp .bar.hollow { background: var(--sheet); border: 1px solid var(--mark); }

/* 作答质量 */
.qc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: var(--hair-2);
}
@media (max-width: 860px) { .qc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .qc { grid-template-columns: 1fr; } }
.qc .cell {
  padding: 15px 16px 17px;
  border-bottom: var(--hair-2);
  border-right: var(--hair-2);
}
.qc .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 7px;
}
.qc .v {
  font-family: var(--f-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.1;
}
.qc .v small { font-size: 11px; color: var(--ink-3); }
.qc .d { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.qc .cell.bad .v { color: var(--flag); }
.qc .cell.bad { background: var(--flag-soft); }

/* 校对 */
.review-list { display: grid; gap: 0; border-top: var(--hair-2); }
.review-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: var(--hair-2);
  flex-wrap: wrap;
}
.review-item .nm { font-size: 14px; min-width: 150px; }
.review-item .cur {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  padding: 6px 12px;
  font-size: 12.5px;
  transition: border-color .12s, background .12s;
}
.chip:hover { border-color: var(--ink-2); background: var(--sheet-2); }
.chip[aria-pressed="true"] {
  border-color: var(--mark);
  background: var(--mark-soft);
  color: var(--mark);
  font-weight: 600;
}

/* 披露 / 页脚 */
.disc { font-size: 12.5px; color: var(--ink-2); max-width: 80ch; }
.disc p + p { margin-top: 9px; }
.disc ol { counter-reset: d; display: grid; gap: 8px; margin-top: 8px; }
.disc ol li {
  counter-increment: d;
  padding-left: 26px;
  position: relative;
}
.disc ol li::before {
  content: counter(d) ".";
  position: absolute; left: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  top: .18em;
}
.colophon {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 16px var(--pad) 22px;
  border-top: var(--hair);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.colophon span { white-space: nowrap; }

.err {
  margin: 0 var(--pad) 18px;
  border: 1px solid var(--flag);
  background: var(--flag-soft);
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--flag);
}
.err[hidden] { display: none; }

/* 结果文本对话框 */
.txtdlg {
  max-width: min(680px, 92vw);
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  padding: 22px 24px 18px;
}
.txtdlg::backdrop { background: rgba(23, 26, 27, .42); }
.txtdlg .disc { margin: 8px 0 12px; }
.txtdlg textarea {
  width: 100%;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--sheet-2);
  border: var(--hair);
  padding: 12px 14px;
  resize: vertical;
}
.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.fadein { animation: fadein .34s ease both; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .marker { transition: none; }
}

@media print {
  body { background: #fff; }
  .sheet { border: 0; box-shadow: none; }
  .btn, .navbar, .startbar { display: none; }
}
