/* GRADE project page — v3.1. One stylesheet, no web fonts, no external resources. */
:root {
  color-scheme: light;
  --bg: #FAFAF7; --bg-alt: #F3F4EE; --surface: #FFFFFF; --surface-2: #F5F6F1; --surface-3: #ECEEE7;
  --ink: #15171A; --ink-2: #3C424A; --muted: #5E666F; --faint: #737B84;
  --line: #E4E6DF; --line-2: #D5D8CF;
  --acc: #3F6212; --acc-ink: #34530F; --acc-hi: #97C139; --acc-tint: #EEF5DF; --acc-tint-2: #DDEBC2;
  --focus: #3F6212;
  /* selected controls (segmented, chips, tags, tooltip) */
  --sel-bg: #15171A; --sel-ink: #FAFAF7; --sel-line: #15171A; --sel-k: #97C139;
  /* primary action: accent fill + dark ink in both modes */
  --pri-bg: #97C139; --pri-hover: #8AB52E; --pri-ink: #14200A;
  /* chart series (dataviz validate_palette, all pairs, light on #ffffff; grey baseline relieved by shape + legend values + table) */
  --s-grade: #3f7d1c; --s-musc: #257de0; --s-vfm: #d6457f; --s-clip: #9AA1A9; --s-vlm: #6B737C;
  --good: #2E7D32; --bad: #C62828; --warn: #B26A00; --def: #C2410C;
  --img-mat: #F1F2ED; --img-filter: none;
  --shadow: 0 1px 2px rgba(20, 24, 16, .04), 0 8px 24px -14px rgba(20, 24, 16, .12);
  --shadow-lg: 0 2px 6px rgba(20, 24, 16, .04), 0 24px 48px -24px rgba(20, 24, 16, .18);
  --hi-edge: 0 0 0 0 transparent;
  --r: 16px; --r-l: 20px; --r-s: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  /* elevation: page < alt section < card < nested < selected */
  --bg: #0E1116; --bg-alt: #12161C; --surface: #161B22; --surface-2: #1C232C; --surface-3: #242C37;
  --ink: #E6EDF3; --ink-2: #C5CDD6; --muted: #9DA7B3; --faint: #8B95A1;
  --line: #2A323C; --line-2: #36404B;
  --acc: #A3D15C; --acc-ink: #B9DE7E; --acc-hi: #97C139; --acc-tint: #18210F; --acc-tint-2: #2C3B1B;
  --focus: #A3D15C;
  --sel-bg: #2B3440; --sel-ink: #F0F4F8; --sel-line: #45515F; --sel-k: #A3D15C;
  --pri-bg: #97C139; --pri-hover: #A8CE52; --pri-ink: #14200A;
  /* validated all pairs, dark on #161B22 (grey baseline: shape + legend values + table) */
  --s-grade: #7fae2e; --s-musc: #338ced; --s-vfm: #e24d8b; --s-clip: #A8B1BB; --s-vlm: #7D8793;
  --good: #6BC46D; --bad: #F47067; --warn: #F0A030; --def: #FB923C;
  --img-mat: #252C35; --img-filter: brightness(.9) contrast(1.02);
  --shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .045) inset, 0 2px 6px rgba(0, 0, 0, .4), 0 28px 56px -26px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acc); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1128px; }
.muted { color: var(--muted); font-weight: 400; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 16px; max-width: 880px; }
.fine a { color: var(--acc); }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 60px; max-width: 1128px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .02em; color: var(--ink); font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--acc-hi), var(--s-grade)); }
.nav nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.nav nav a.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--acc-hi); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); flex: none; transition: background .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-moon { fill: currentColor; stroke: none; }
.icon-btn.small { width: 32px; height: 32px; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px; background:
  radial-gradient(40% 50% at 50% 30%, color-mix(in srgb, var(--acc-hi) 22%, transparent), transparent 70%),
  radial-gradient(30% 40% at 80% 10%, color-mix(in srgb, var(--s-musc) 8%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--acc-ink); background: var(--acc-tint); border: 1px solid var(--acc-tint-2); padding: 5px 13px; border-radius: 99px; }
.wordmark { font-size: clamp(64px, 12vw, 128px); font-weight: 850; letter-spacing: -.055em; line-height: .95; margin: 22px 0 14px;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 55%, var(--s-grade))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title { font-size: clamp(18px, 2.3vw, 23px); line-height: 1.4; color: var(--ink-2); max-width: 760px; margin: 0 auto; font-weight: 450; letter-spacing: -.01em; }
.authors { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 17px; font-weight: 600; }
.authors a { color: var(--ink); background-image: linear-gradient(var(--acc-hi), var(--acc-hi)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.authors a:hover { text-decoration: none; background-size: 100% 2px; }
.affil { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.affil span { white-space: nowrap; }
@media (max-width: 900px) { .affil .sep { display: none; } .affil span { display: block; white-space: normal; } }
.buttons { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(0,0,0,.03); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.btn.primary { background: var(--pri-bg); color: var(--pri-ink); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px -8px color-mix(in srgb, var(--pri-bg) 70%, transparent); }
.btn.primary small { color: color-mix(in srgb, var(--pri-ink) 62%, transparent); }
.btn.primary:hover { background: var(--pri-hover); border-color: transparent; }
.btn.is-off { color: var(--faint); cursor: default; box-shadow: none; background: transparent; border-style: dashed; }
.btn.is-off:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ------------------------------------------------------------------ motion hero: see v3.2 block */
.tldr { margin: 48px auto 0; max-width: 760px; text-align: center; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.01em; }
.tldr em { font-style: normal; color: var(--ink); font-weight: 600; }
.stats { margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 820px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; box-shadow: var(--shadow); text-align: left; }
.stat b { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.stat small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.stat:first-child b { color: var(--s-grade); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
details[open] > summary svg { transform: rotate(180deg); }
.abstract { max-width: 760px; margin: 28px auto 0; text-align: left; }
.abstract > summary { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--acc); padding: 8px; border-radius: 10px; }
.abstract > summary:hover { background: var(--surface-2); }
.abs-body { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; color: var(--ink-2); font-size: 15px; line-height: 1.7; hyphens: auto; }
.abs-body p + p { margin-top: 12px; }

/* ------------------------------------------------------------------ sections */
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { max-width: 720px; margin-bottom: 40px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 780; letter-spacing: -.035em; }
.lead { margin-top: 14px; font-size: 17.5px; line-height: 1.55; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ architecture (thesis figures) */
.archcap { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow); min-height: 112px; }
.archcap.swap .ac-txt, .archcap.swap .ac-num { animation: fadeup .45s var(--ease); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; background: var(--sel-bg); color: var(--sel-ink); border: 1px solid var(--sel-line); }
.tag.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.ac-k { font-size: 13px; font-weight: 700; color: var(--acc); letter-spacing: .02em; margin-bottom: 6px; }
#ac-p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 620px; }
.ac-num { text-align: right; max-width: 260px; }
.ac-num b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ac-num span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ explorer */
.ex-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--sel-bg); color: var(--sel-ink); border-color: var(--sel-line); }
.ex-score { margin-left: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ex-score b { color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-bottom: 22px; }
.thumbs button { position: relative; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.thumbs img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--img-mat); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .25s var(--ease), opacity .2s; }
.thumbs button:hover img { transform: translateY(-2px); }
.thumbs button[aria-selected="true"] img { box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 4px var(--s-grade); }
.thumbs .t-l { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumbs .t-m { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.thumbs .t-m.r { display: grid; background: var(--good); } .thumbs .t-m.w { display: grid; background: var(--bad); }
.thumbs button[hidden] { display: none; }
.ex { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ex-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.viewer { position: relative; background: var(--img-mat); display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viewer > img, .v-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer > img { object-fit: contain; }
.v-map { clip-path: inset(0 0 0 var(--cut, 50%)); opacity: 0; transition: opacity .5s var(--ease); }
.v-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer.rev .v-map { opacity: var(--op, .85); }
.v-gt { opacity: 0; transition: opacity .4s; }
.viewer.rev.gt .v-gt { opacity: 1; }
.v-handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 0; display: none; cursor: ew-resize; }
.viewer.rev .v-handle { display: block; }
.v-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 8px rgba(0,0,0,.35); }
.v-handle span { position: absolute; top: 50%; left: -17px; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.v-handle span::before, .v-handle span::after { content: ""; position: absolute; top: 12px; border: 5px solid transparent; }
.v-handle span::before { left: 4px; border-right: 6px solid #333; } .v-handle span::after { right: 4px; border-left: 6px solid #333; }
.v-handle:focus-visible span { outline: 2px solid var(--acc-hi); outline-offset: 2px; }
.v-lab { position: absolute; bottom: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.92); background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 99px; display: none; backdrop-filter: blur(4px); }
.v-lab-l { left: 12px; } .v-lab-r { right: 12px; }
.viewer.rev .v-lab { display: block; }
.ex-ctl { padding: 16px 18px; border-top: 1px solid var(--line); min-height: 74px; display: flex; align-items: center; }
.guess, .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: 100%; }
.g-q { font-weight: 650; font-size: 15px; margin-right: 4px; }
.g-def:hover { border-color: #E4572E; }
.g-ok:hover { border-color: var(--s-grade); }
.link { border: 0; background: none; color: var(--acc); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px; margin-left: auto; }
.link:hover { text-decoration: underline; }
.rng { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rng input { width: 140px; }
.tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; cursor: pointer; }
.tgl input { accent-color: var(--s-grade); width: 16px; height: 16px; }
.tgl.small { font-size: 13px; }
.next { margin-left: auto; height: 36px; }
.next svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
input[type=range] { accent-color: var(--s-grade); }
.ex-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 22px 20px; min-height: 100%; display: flex; flex-direction: column; gap: 18px; }
.ex-ds { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ex-cat { font-size: 24px; font-weight: 760; letter-spacing: -.025em; margin-top: 2px; text-transform: capitalize; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex-tags .tag { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.ex-tags .tag.unt { background: var(--acc-tint); color: var(--acc-ink); border-color: var(--acc-tint-2); }
.ex-ask { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.ex-hint { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.ex-ver { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.ex-ver b { font-size: 24px; letter-spacing: -.02em; font-weight: 780; }
.ex-ver b.def { color: var(--def); } .ex-ver b.nor { color: var(--acc); }
.hist { margin-top: 2px; }
.hist svg { display: block; width: 100%; height: auto; overflow: visible; }
.ex-pct { font-size: 13.5px; color: var(--muted); }
.truth { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.truth .st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.truth .st i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; }
.truth .st.r i { background: var(--good); } .truth .st.w i { background: var(--bad); }
.truth .st.r { color: var(--good); } .truth .st.w { color: var(--bad); }
.truth small { display: block; color: var(--muted); font-size: 12.5px; }
.ex-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ex-note:empty { display: none; }
.ex-key { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); }
.ex-key p { display: flex; align-items: center; gap: 10px; }
.ex-key .grad { width: 74px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #000004, #420a68, #932667, #dd513a, #fca50a, #fcffa4); flex: none; }
.ex-key .ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #22d3ee; flex: none; margin: 0 30px; }
.ex-key .kt { color: var(--faint); }
.tryown { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 16px 22px; box-shadow: var(--shadow); }
.tryown p { font-size: 14.5px; color: var(--muted); max-width: 640px; }
.tryown p b { color: var(--ink); }
.tryown-b { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ results */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.seg button { height: 34px; padding: 0 16px; border-radius: 99px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); box-shadow: 0 0 0 1px var(--sel-line); }
.chart-card { padding: 22px 24px 18px; margin-bottom: 16px; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 8px; }
.c-t { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; margin-right: auto; }
.c-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend svg { width: 14px; height: 14px; overflow: visible; }
.legend em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.chart text, .multiples text, .hist text { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .lbl, .multiples .lbl { fill: var(--ink-2); font-size: 13px; font-weight: 600; }
.chart .lbl.mean, .multiples .lbl.mean { fill: var(--ink); font-weight: 750; }
.chart .val { fill: var(--ink); font-weight: 750; font-size: 13px; }
.grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.zero { stroke: var(--faint); stroke-width: 1; shape-rendering: crispEdges; }
.rowbg { fill: var(--acc-tint); opacity: .8; }
.span { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.mk { stroke: var(--surface); stroke-width: 2; cursor: default; transition: opacity .2s; }
.hit { fill: transparent; stroke: none; cursor: pointer; }
.ci { stroke: var(--s-grade); stroke-width: 2; stroke-linecap: round; }
.multiples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; }
.multiples .m-t { font-size: 13.5px; font-weight: 700; color: var(--ink); margin: 6px 0 2px; }
.tbl { margin-top: 6px; }
.tbl > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--acc); padding: 8px 10px; margin-left: -10px; border-radius: 10px; }
.tbl > summary:hover { background: var(--surface-2); }
.table-wrap { margin-top: 10px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 12px; font-weight: 650; color: var(--muted); vertical-align: bottom; line-height: 1.3; }
td small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
tr.sep td { border-top: 1px solid var(--line-2); }
tr.ours td { background: var(--acc-tint); font-weight: 700; }
tr.ours td:first-child { box-shadow: inset 3px 0 0 var(--s-grade); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.tile span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ trust */
.eq { justify-self: start; display: inline-block; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; }
.ace { padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 36px; align-items: center; }
.ace-ctl { display: grid; gap: 14px; }
.ace-ctl label { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.ace-ctl input { grid-column: 1 / -1; width: 100%; }
.ace-ctl output { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 750; }
.ace-res { font-size: 14px; color: var(--muted); line-height: 1.55; font-weight: 400; }
.ace-res b { color: var(--ink); }
.ace-ch .line { fill: none; stroke: var(--s-grade); stroke-width: 2; stroke-linecap: round; }
.ace-ch .ref { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ace-ch .area { fill: var(--s-grade); opacity: .1; }
.ace-ch .guide { stroke: var(--faint); stroke-width: 1; }

/* ------------------------------------------------------------------ limits + cite */
.lims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.lim svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lim h3 { margin-top: 14px; font-size: 16.5px; font-weight: 720; }
.lim p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.two > div { min-width: 0; }
.two h2 { font-size: 26px; margin-bottom: 16px; }
.code { position: relative; background: #111418; color: #E7EAEE; border-radius: 16px; padding: 46px 20px 18px; font: 13px/1.65 var(--mono); overflow-x: auto; box-shadow: var(--shadow); }
:root[data-theme="dark"] .code { background: #0B0E13; border: 1px solid var(--line); }
.code pre { margin: 0; white-space: pre; }
.code::before { content: ""; position: absolute; top: 15px; left: 18px; width: 40px; height: 10px; background: radial-gradient(circle, rgba(255,255,255,.22) 4px, transparent 4.5px) 0 0/14px 10px repeat-x; }
.copy { position: absolute; top: 9px; right: 10px; height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #E7EAEE; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.12); }
.foot { padding: 44px 0 56px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.foot-in p + p { margin-top: 8px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--sel-bg); color: var(--sel-ink); border: 1px solid var(--sel-line); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; font-variant-numeric: tabular-nums; transform: translate(-50%, calc(-100% - 10px)); }

/* ------------------------------------------------------------------ v3.1 additions */
.about { margin-top: 14px; }
.about > summary { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; margin-left: -10px; border-radius: 10px; }
.about > summary:hover { color: var(--ink); background: var(--surface-2); }
.about > summary .i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font: 700 11px/1 Georgia, serif; font-style: italic; }
.about p { margin-top: 6px; max-width: 880px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.run { display: grid; gap: 12px; }
.run-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.run-row .ri { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc-tint); color: var(--acc); border: 1px solid var(--acc-tint-2); }
.run-row .ri svg { width: 18px; height: 18px; fill: currentColor; }
.run-row.off .ri { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.run-row h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.run-row p { margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.run-row .btn { height: 36px; }
.bib pre { white-space: pre-wrap; }
.bib .bl { display: block; padding-left: 12ch; text-indent: -12ch; overflow-wrap: anywhere; }
.bib .bl.e { padding-left: 0; text-indent: 0; }
@media (max-width: 640px) { .run-row { grid-template-columns: auto 1fr; } .run-row .btn { grid-column: 1 / -1; justify-self: start; } .bib .bl { padding-left: 6ch; text-indent: -6ch; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .multiples { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ex { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .ace { grid-template-columns: 1fr; }
  .lims { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 48px 0 28px; }
  .authors { gap: 4px 18px; font-size: 16px; }
  .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
  .stat b { font-size: 32px; min-width: 76px; }
  .stat span { margin-top: 0; }
  .sec { padding: 72px 0; }
  .sec-h { margin-bottom: 28px; }
  .lead { font-size: 16px; }
  .archcap { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .ac-num { text-align: left; }
  .thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; padding: 5px 18px 6px; margin: 0 -18px 18px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent); }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: 0 0 76px; scroll-snap-align: start; }
  .ex-score { width: 100%; margin-left: 0; }
  .ex-ctl { padding: 14px; }
  .link { margin-left: 0; }
  .next { margin-left: 0; }
  .rng input { width: 110px; }
  .chart-card { padding: 18px 14px 14px; }
  .tiles { grid-template-columns: 1fr; }
  th, td { padding: 9px 10px; }
  .table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); white-space: normal; min-width: 116px; }
  .table-wrap tr.ours td:first-child { background: var(--acc-tint); box-shadow: inset 3px 0 0 var(--s-grade), 1px 0 0 var(--line); }
  td small { display: none; }
  .tryown { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .buttons, .copy, .icon-btn, .ex-ctl { display: none; } .sec { padding: 32px 0; } }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: pre; border: 0; }

/* ================================================================== v3.2: motion hero */
.motion { margin: 44px 0 0; position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 50% 0%, var(--surface) 0%, var(--surface) 46%, var(--surface-2) 100%); box-shadow: var(--shadow-lg); }
.motion::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(80% 90% at 50% 40%, #000 30%, transparent 100%); }
.motion noscript img { width: 100%; }
.mo-stage { position: relative; width: 100%; height: 380px; }
.mo-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; --fs: 13px; }
.mo-world > * { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.mo-world img { filter: var(--img-filter); }
.mo-part, .mo-slot, .mo-ref, .mo-ghost, .mo-dep { border-radius: 12px; background: var(--img-mat); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 22px -12px rgba(0,0,0,.45); }
.mo-part img, .mo-slot img, .mo-ref img, .mo-ghost img { width: 100%; height: 100%; border-radius: inherit; }
.mo-glow { position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2.5px var(--acc-hi), 0 0 22px 3px color-mix(in srgb, var(--acc-hi) 60%, transparent); opacity: 0; }
.mo-slot { box-shadow: 0 0 0 2px var(--acc-hi), 0 8px 18px -10px rgba(0,0,0,.4); }
.mo-ping { position: absolute; inset: -2px; border-radius: 14px; border: 2px solid var(--acc-hi); opacity: 0; }
.mo-shelf { height: 0; border-top: 2px solid color-mix(in srgb, var(--acc-hi) 55%, var(--line)); border-radius: 2px; }
.mo-belt { height: 4px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ink) 10%, var(--surface-2)); }
.mo-belt i { position: absolute; left: 0; top: 0; height: 100%; width: calc(100% + 26px); will-change: transform;
  background: repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--ink) 26%, transparent) 18px 26px); }
.mo-gate { width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--acc-hi), transparent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--acc-hi) 45%, transparent); }
.mo-lens { border-radius: 20px; border: 1.5px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface-2) 60%, transparent), var(--shadow); }
.mo-lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 60% at 60% 50%, color-mix(in srgb, var(--acc-hi) 10%, transparent), transparent 70%); }
.mo-q { border-radius: 14px; overflow: hidden; background: var(--img-mat); box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 18px 34px -16px rgba(0,0,0,.55); }
.mo-q img { width: 100%; height: 100%; }
.mo-beam { width: 30px; border-radius: 14px; mix-blend-mode: screen; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc-hi) 75%, #fff), transparent); filter: blur(.4px); }
:root[data-theme="light"] .mo-beam { mix-blend-mode: normal; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc-hi) 60%, transparent), transparent); }
.mo-verdict { font-size: var(--fs); font-weight: 750; letter-spacing: .01em; padding: .34em .9em; border-radius: 99px; white-space: nowrap; color: #fff; background: var(--def); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.mo-verdict.ok { background: var(--s-grade); }
.mo-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--acc-hi) 55%, transparent); opacity: 0; }
.mo-path { overflow: visible; }
.mo-path path { fill: none; stroke: color-mix(in srgb, var(--acc-hi) 40%, var(--line)); stroke-width: 1.4; stroke-dasharray: 3 6; }
.mo-stu { border-radius: 16px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--s-grade) 55%, var(--line)); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.mo-stu .ic { display: grid; gap: 4px; }
.mo-stu .ic i { display: block; height: 7px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 16%, var(--surface-2)); }
.mo-stu .ic i:nth-child(1) { width: 34px; } .mo-stu .ic i:nth-child(2) { width: 28px; } .mo-stu .ic i:nth-child(3) { width: 22px; }
.mo-stu .ic em { display: flex; gap: 4px; } .mo-stu .ic em b { width: 14px; height: 9px; border-radius: 3px; background: var(--s-grade); }
.mo-stu .tx { font-size: calc(var(--fs) * 1.08); font-weight: 760; color: var(--ink); line-height: 1.2; }
.mo-stu .tx small { display: block; font-size: calc(var(--fs) * .86); font-weight: 600; color: var(--muted); }
.mo-halo { border-radius: 20px; box-shadow: 0 0 0 2px var(--acc-hi), 0 0 30px 6px color-mix(in srgb, var(--acc-hi) 45%, transparent); opacity: 0; }
.mo-dep { overflow: hidden; }
.mo-dep > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo-dep .ov { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.mo-dep .ov img { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; will-change: transform; }
.mo-dep .sc { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px 2px var(--acc-hi); opacity: 0; will-change: transform, opacity; }
.mo-tag { display: flex; align-items: center; gap: 6px; font-size: calc(var(--fs) * .9); font-weight: 720; white-space: nowrap; color: var(--ink); opacity: 0; }
.mo-tag .bar { width: 34px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; position: relative; }
.mo-tag .bar i { position: absolute; inset: 0; transform-origin: 0 50%; background: var(--def); will-change: transform; }
.mo-tag.ok .bar i { background: var(--s-grade); }
.mo-tag.d span { color: var(--def); } .mo-tag.ok span { color: var(--s-grade); }
.mo-cap { font-size: var(--fs); font-weight: 680; letter-spacing: .01em; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: .5em; }
.mo-cap::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 8px var(--acc-hi); }
.motion.static .mo-belt i { transform: none !important; }

/* ================================================================== v3.2: thesis figures */
.figtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.figtabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 99px; background: none; font-size: 13.5px; font-weight: 650; color: var(--muted); cursor: pointer; }
.figtabs button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); }
.plate { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
:root[data-theme="dark"] .plate { background: #F7F8F4; border-color: #2A323C; box-shadow: var(--shadow-lg); }
.plate.big { padding: 22px; }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.zoomable img { width: 100%; height: auto; transition: opacity .35s var(--ease); }
.zoomable img.fading { opacity: 0; }
.fig-cap { margin-top: 12px; font-size: 13px; color: #5E666F; line-height: 1.5; }
.swipe-hint { display: none; }
.stagebar { display: flex; gap: 14px 32px; flex-wrap: wrap; margin: 34px 0 14px; align-items: flex-end; }
.sb-group { display: flex; flex-direction: column; gap: 8px; }
.sb-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-l { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sb-group.stu .sb-l { color: var(--acc); }
.stagebar button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.stagebar button b { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; letter-spacing: .02em; background: var(--surface-2); color: var(--muted); }
.stagebar button:hover { border-color: var(--line-2); transform: translateY(-1px); }
.stagebar button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); border-color: var(--sel-line); }
.stagebar button[aria-selected="true"] b { background: var(--acc-hi); color: #14200A; }
.stagebar button.key::after { content: "key"; font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.stagebar button.key[aria-selected="true"]::after { color: var(--sel-k); }
.stagepanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.plate { min-width: 0; }
.stagepanel .archcap { margin-top: 0; }
.protocol { margin-top: 26px; }
.protocol > summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; color: var(--acc); padding: 8px 12px; border-radius: 10px; margin-left: -12px; }
.protocol > summary:hover { background: var(--surface-2); }
.protocol .plate { margin-top: 12px; }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 15, .92); color: #E6EDF3; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 12, 15, .7); }
.lb-view { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.lb-view.drag { cursor: grabbing; }
.lb-view img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; background: #fff; border-radius: 6px; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-bar { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; }
.lb-bar { z-index: 2; padding: 6px; border-radius: 14px; background: rgba(14,17,22,.82); box-shadow: 0 8px 24px rgba(0,0,0,.4); backdrop-filter: blur(6px); }
.lb-bar .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.lb-bar .icon-btn:hover { background: rgba(255,255,255,.18); }
.lb-bar .icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lb-hint { position: absolute; z-index: 2; padding: 6px 12px; border-radius: 99px; background: rgba(14,17,22,.82); left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 13px; color: rgba(230, 237, 243, .7); white-space: nowrap; }

@media (max-width: 640px) {
  .plate { padding: 10px; }
  .plate.big { padding: 10px; }
  .fig-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  .fig-scroll::-webkit-scrollbar { display: none; }
  .fig-scroll .zoomable { width: 720px; }
  .fig-scroll .zoomable img { width: 720px; max-width: none; }
  .swipe-hint { display: block; margin-top: 8px; font-size: 12px; color: #737B84; text-align: center; }
  .stagebar { gap: 12px; margin-top: 26px; }
  .stagebar button { height: 36px; font-size: 13.5px; }
  .lb-hint { white-space: normal; text-align: center; width: 90%; }
}
