/* ============================================================
   Arkfor OPC Showcase — stage, tokens, chrome, shared UI
   1920×1080 fixed stage; scales to viewport.
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-2: #0a0f18;
  --panel: #0d141a;
  --panel-2: #111a21;
  --ink: #eef2f0;
  --ink-2: #c6cfcc;
  --muted: #8f9c9d;
  --faint: #5f6c6e;
  --line: rgba(214, 230, 226, .14);
  --line-strong: rgba(214, 230, 226, .28);
  --teal: #2ee9d2;
  --blue: #08a9eb;
  --amber: #e2a35e;
  --danger: #e06a50;
  --paper: #e9e5db;
  --paper-ink: #141a1b;
  --paper-line: rgba(20, 26, 27, .18);
  --font-cn: "Arkfor CJK", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: "Arkfor Display", "Oswald", "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --ease-out: cubic-bezier(.16, .84, .28, 1);
  --ease-in: cubic-bezier(.6, .04, .86, .36);
  --ease-mech: cubic-bezier(.22, .68, .18, 1);
  --dur-fast: 150ms;
  --dur-normal: 250ms;
  --dur-slow: 400ms;
  --enter: 640ms;
  --exit: 280ms;
  --stage-scale: 1;
  --grid: rgba(214, 230, 226, .035);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: #040607; }
body {
  overflow: hidden;
  color: var(--ink);
  background: #040607;
  font-family: var(--font-cn);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; }
a { color: inherit; }
img, svg, canvas { display: block; }
p, h1, h2, h3, h4, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--teal); color: #041210; }

.app {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 800px at 50% 50%, rgba(16, 28, 32, .35), transparent 70%),
    #040607;
  overflow: hidden;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1400px 900px at 74% 20%, rgba(32, 227, 201, .028), transparent 68%),
    radial-gradient(1100px 700px at 18% 82%, rgba(8, 169, 235, .022), transparent 70%),
    var(--bg);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("../assets/noise.png");
  background-size: 180px 180px;
  opacity: .16;
  mix-blend-mode: soft-light;
}

/* ---------- chrome ---------- */

.chrome {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  background: linear-gradient(to bottom, rgba(7, 10, 13, .78), rgba(7, 10, 13, 0));
  pointer-events: none;
}
.chrome--top { top: 0; height: 64px; border-bottom: 1px solid var(--line); background: rgba(7, 10, 13, .72); }
.chrome--bottom { bottom: 0; height: 64px; border-top: 1px solid var(--line); background: rgba(7, 10, 13, .72); }
.chrome > * { pointer-events: auto; }
.chrome__brand { display: flex; align-items: center; gap: 14px; min-width: 360px; }
.chrome__logo { width: 22px; height: 22px; opacity: .95; }
.chrome__wordmark { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .18em; color: var(--ink); }
.chrome__divider { width: 1px; height: 14px; background: var(--line-strong); }
.chrome__cn { font-family: var(--font-cn); font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.chrome__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: var(--ink-2);
  font-family: var(--font-cn);
  font-size: 13px;
  letter-spacing: .14em;
}
.chrome__title b { color: var(--teal); font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; }
.chrome__meta { display: flex; align-items: center; gap: 16px; min-width: 360px; justify-content: flex-end; }
.chrome__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.chrome__sep { color: var(--faint); }

.rail {
  position: absolute;
  left: 40px;
  top: 96px;
  bottom: 96px;
  width: 28px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.rail::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.rail__tick { position: relative; width: 13px; height: 1px; background: var(--line-strong); transition: width 250ms var(--ease-out), background-color 250ms var(--ease-out); }
.rail__tick.is-active { width: 24px; height: 2px; background: var(--teal); }
.rail__tick.is-planned { background: rgba(214, 230, 226, .1); }
.rail__tick.is-available { background: rgba(214, 230, 226, .42); }
.rail__num {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--teal);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  white-space: nowrap;
}
.rail__tick.is-active .rail__num { opacity: 1; }

.bottom-hints { display: flex; align-items: center; gap: 22px; }
.hint { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
}
.bottom-right { display: flex; align-items: center; gap: 22px; }
.stage-tools { display: flex; align-items: center; gap: 6px; }
.stage-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
}
.stage-tool:hover { color: var(--ink); border-color: var(--line-strong); }
.stage-tool.is-short { color: var(--amber); border-color: rgba(226,163,94,.45); }
.rail__tick.is-short-skip { opacity: .22; }
.ov-card.is-skipped { opacity: .42; background: #080d11; cursor: default; }
.ov-card.is-skipped:hover { background: #080d11; border-color: var(--line); }
.stage-tool:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.stage-tool kbd { height: 18px; min-width: 18px; font-size: 10px; }
.live-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.live-link:hover { color: var(--teal); border-bottom-color: var(--teal); }
.live-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.live-link__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.chapter-counter { font-family: var(--font-display); font-size: 18px; letter-spacing: .1em; color: var(--ink-2); }
.chapter-counter b { color: var(--ink); font-weight: 500; }
.chapter-counter span { color: var(--faint); margin: 0 4px; }

.progress {
  position: absolute;
  left: 0;
  top: 63px;
  height: 1px;
  width: 100%;
  z-index: 61;
  background: transparent;
  pointer-events: none;
}
.progress__bar { height: 1px; width: 0; background: var(--teal); opacity: .7; transition: width 640ms var(--ease-out); }

/* ---------- chapters ---------- */

.deck { position: absolute; inset: 0; z-index: 20; }
.chapter {
  position: absolute;
  inset: 64px 0 64px 0;
  padding: 48px 120px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--exit) var(--ease-in), transform var(--exit) var(--ease-in), visibility 0s linear var(--exit);
  will-change: opacity, transform;
}
.chapter.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 2;
  transition: opacity var(--enter) var(--ease-out), transform var(--enter) var(--ease-out), visibility 0s;
}

/* ---------- shared typography ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow__num { color: var(--teal); font-weight: 500; }
.eyebrow__latin { color: var(--faint); letter-spacing: .2em; }
.eyebrow__rule { display: inline-block; width: 44px; height: 1px; background: var(--line-strong); }
.cn-label { font-size: 14px; letter-spacing: .16em; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; }
.serif-none { font-family: var(--font-cn); }

h1, h2, h3 { font-weight: 500; letter-spacing: .01em; }
.h-xl { font-size: 88px; line-height: 1.22; }
.h-lg { font-size: 72px; line-height: 1.24; }
.h-md { font-size: 56px; line-height: 1.28; }
.h-sm { font-size: 44px; line-height: 1.32; }
.body-lg { font-size: 30px; line-height: 1.7; color: var(--ink-2); }
.body { font-size: 26px; line-height: 1.7; color: var(--ink-2); }
.small { font-size: 20px; line-height: 1.7; color: var(--muted); }
.micro { font-size: 14px; line-height: 1.6; letter-spacing: .06em; color: var(--faint); }

.rule { width: 64px; height: 2px; background: var(--teal); }
.rule--amber { background: var(--amber); }
.rule--line { height: 1px; background: var(--line-strong); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .04em;
}
.chip--teal { border-color: rgba(32, 227, 201, .5); color: var(--teal); }
.chip--ghost { border-color: var(--line); color: var(--muted); }
.chip--amber { border-color: rgba(226, 163, 94, .55); color: var(--amber); }
.chip__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: rgba(238, 242, 240, .06); }
.btn:active { background: rgba(238, 242, 240, .1); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { background: transparent; }
.btn__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.btn--primary { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--primary:hover { border-color: var(--amber); background: var(--amber); color: #1a1208; }
.btn--primary .btn__meta { color: rgba(7, 10, 13, .55); }
.btn--amber { border-color: var(--amber); background: var(--amber); color: #1a1208; }
.btn--amber:hover { background: #eeb67a; border-color: #eeb67a; }
.btn--ghost { border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn--wide { min-width: 210px; }

.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: transparent;
}
.seg__btn {
  position: relative;
  min-height: 48px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.seg__btn:last-child { border-right: 0; }
.seg__btn:hover { color: var(--ink); background: rgba(238, 242, 240, .04); }
.seg__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; z-index: 1; }
.seg__btn[aria-pressed="true"] { color: var(--ink); background: rgba(238, 242, 240, .08); box-shadow: inset 3px 0 0 var(--teal); }
.seg__btn[aria-pressed="true"] .seg__meta { color: var(--teal); }
.seg__meta { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); }

/* ---------- overview ---------- */

.overview {
  position: absolute;
  inset: 0;
  z-index: 120;
  padding: 64px 120px 48px;
  background: #05080a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms;
}
.overview.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 250ms var(--ease-out), visibility 0s; }
.overview__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.overview__title { font-size: 56px; line-height: 1.15; font-weight: 500; }
.overview__title span { color: var(--muted); font-size: 26px; margin-left: 18px; letter-spacing: .04em; }
.overview__meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.overview__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 16px; margin-top: 24px; }
.ov-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.ov-card:hover { background: var(--panel-2); border-color: var(--line-strong); }
.ov-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; z-index: 2; }
.ov-card.is-unavailable { opacity: .68; cursor: default; background: #080d11; }
.ov-card.is-unavailable:hover { background: #080d11; border-color: var(--line); }
.ov-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ov-card__num { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--faint); letter-spacing: .04em; }
.ov-card.is-available .ov-card__num { color: var(--teal); }
.ov-card__title { font-size: 24px; line-height: 1.25; font-weight: 500; }
.ov-card__line { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.ov-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.ov-card__state { color: var(--muted); }
.ov-card.is-available .ov-card__state { color: var(--teal); }
.ov-card__short { position: absolute; right: 14px; bottom: 12px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(226, 163, 94, .6); color: var(--amber); font-family: var(--font-mono); font-size: 10px; }
.overview__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- toast, sr-only, helpers ---------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 140;
  transform: translate(-50%, 12px);
  min-width: 360px;
  max-width: 900px;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  background: #0b1116;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 24px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }

/* ---------- reduced motion ---------- */

html[data-motion="reduced"] .chapter,
html[data-motion="reduced"] .overview,
html[data-motion="reduced"] .toast,
html[data-motion="reduced"] .btn,
html[data-motion="reduced"] .seg__btn,
html[data-motion="reduced"] .rail__tick {
  transition-duration: 1ms !important;
}
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  .chapter, .overview, .toast, .btn, .seg__btn { transition-duration: 1ms !important; }
}

/* hover-capability guard: no pointer affordance on touch-only */
@media (hover: none), (pointer: coarse) {
  .btn:hover, .ov-card:hover, .seg__btn:hover, .live-link:hover { background: transparent; border-color: inherit; color: inherit; }
}

/* stage corner marks (non-informational, low contrast) */
.stage-mark { position: absolute; z-index: 5; width: 18px; height: 18px; border-color: var(--line-strong); border-style: solid; pointer-events: none; }
.stage-mark--tl { left: 18px; top: 18px; border-width: 1px 0 0 1px; }
.stage-mark--tr { right: 18px; top: 18px; border-width: 1px 1px 0 0; }
.stage-mark--bl { left: 18px; bottom: 18px; border-width: 0 0 1px 1px; }
.stage-mark--br { right: 18px; bottom: 18px; border-width: 0 1px 1px 0; }
/* notes + archive overlays */
.notes-panel {
  position: absolute;
  left: 120px;
  bottom: 92px;
  z-index: 100;
  width: 640px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line-strong);
  background: #0b1116;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.notes-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.notes-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--amber); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.notes-panel__close { border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.notes-panel__close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.notes-panel__title { margin-top: 12px; font-size: 26px; line-height: 1.3; font-weight: 500; }
.notes-panel__list { margin-top: 10px; display: grid; gap: 7px; }
.notes-panel__list li { position: relative; padding-left: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.notes-panel__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--teal); }

.archive {
  position: absolute; inset: 0; z-index: 115;
  display: flex; flex-direction: column;
  padding: 56px 120px 44px;
  background: #05080a;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms;
}
.archive.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 250ms var(--ease-out), visibility 0s; }
.archive__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.archive__title { margin-top: 10px; font-size: 50px; line-height: 1.2; font-weight: 400; }
.archive__tabs { display: flex; gap: 0; margin-top: 20px; border-bottom: 1px solid var(--line); }
.archive__tab { position: relative; min-height: 50px; padding: 0 18px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.archive__tab:first-child { border-left: 1px solid var(--line); }
.archive__tab:hover { color: var(--ink); background: rgba(238,242,240,.04); }
.archive__tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.archive__tab[aria-selected="true"] { color: var(--ink); background: rgba(238,242,240,.07); box-shadow: inset 0 -2px 0 var(--teal); }
.archive__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 26px 2px 30px; }
.archive__panel { max-width: 1120px; }
.archive__panel h3 { font-size: 28px; line-height: 1.35; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.archive__panel p { margin-bottom: 12px; font-size: 19px; line-height: 1.75; color: var(--ink-2); }
.archive__panel p:last-child { margin-bottom: 0; }
/* mobile simplified reader: readable/operable at 390px */
.mobile-reader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  padding: 0 22px 24px;
}
html[data-layout="mobile"] .mobile-reader { display: flex; }
html[data-layout="mobile"] .stage { display: none; }
.mr-head { display: flex; align-items: center; gap: 10px; min-height: 64px; border-bottom: 1px solid var(--line); }
.mr-logo { width: 24px; height: 24px; }
.mr-brand { font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; color: var(--ink); }
.mr-counter { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mr-main { flex: 1 1 auto; padding: 30px 0 24px; }
.mr-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--teal); }
.mr-title { margin-top: 10px; font-size: 34px; line-height: 1.25; font-weight: 500; }
.mr-line { margin-top: 12px; font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.mr-notes { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.mr-notes p { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.mr-notes p::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--teal); }
.mr-hint { margin-top: 24px; font-size: 13px; line-height: 1.65; color: var(--faint); border-left: 2px solid var(--line-strong); padding-left: 10px; }
.mr-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.mr-btn { min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 15px; }
.mr-btn:focus-visible, .mr-select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.mr-btn:disabled { opacity: .4; }
.mr-select { min-height: 48px; width: 100%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font-size: 15px; padding: 0 8px; }
.mr-live { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-decoration: none; }
.mr-live:hover { color: var(--teal); }