/* Just a DEV · components (DEV-1; contract: web/DESIGN.md): the device primitives (plate, well, faceplate, bezel + LCD,
   7-segment digits, LED bar, tape, grille, cartridge) and the skins of js/ui/components/**. Physical, not luminous: ONE key
   light from the top left (highlights on top edges, shadows fall down), raised plates and keys with a skirt, recessed wells,
   one orange key per view, the olive LCD for live chain state. Gradients only as light on material; no glow, no hexagons. */

/* ═════════════ DEV-1 primitives ═════════════ */
/* mode colour: set --cc on anything that wears a cartridge colour (chips, cartridges, mode labels) */
.m-barrel { --cc: var(--m-barrel); } .m-clock { --cc: var(--m-clock); } .m-boss { --cc: var(--m-boss); }
.m-thrones { --cc: var(--m-thrones); } .m-tug { --cc: var(--m-tug); } .m-platform { --cc: var(--m-platform); } .m-x { --cc: var(--panel-3); }

.plate { background: var(--mat); border-radius: var(--r-plate); box-shadow: var(--raise); }
/* a well is cut into the plate: inner shadow on its top edge, the lip below it catches the light */
.well { background: var(--panel-2); border-radius: var(--r-l); box-shadow: var(--recess), 0 1px 0 var(--hi); }
/* plates never nest: a plate inside a plate is a seam on the same part (no second cast shadow) */
.plate .plate, .face .plate { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
/* faceplate: a console's front. Screws only here (Screws() in js/ui/components/lcd.js puts the four in the corners) */
.face { position: relative; background: var(--mat); border-radius: var(--r-face); box-shadow: var(--raise); padding: 34px; }
.screw {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 38% 32%, #FBFAF7, #B5B1A7 70%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 0 var(--hi);
}
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5.5px; height: 1px; background: rgba(0, 0, 0, .35); transform: rotate(35deg); }
.screw--tl { left: 14px; top: 14px; } .screw--tr { right: 14px; top: 14px; } .screw--bl { left: 14px; bottom: 14px; } .screw--br { right: 14px; bottom: 14px; }
:root[data-theme="graphite"] .screw { background: radial-gradient(circle at 40% 35%, #8C8A83, #4A4945); }
/* silk-screen title row of a plate: h3 + a mono tag, a hint on the right */
.silk { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.silk h3 { font: 600 var(--fs-h3)/1.15 var(--font-sans); letter-spacing: -.015em; }
.silk h3 small { margin-left: 10px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }
/* bezel + LCD glass. The bezel is moulded dark plastic (lit top edge, shaded bottom); the glass carries a faint top-left
   reflection and the pixel grid of its cells. Text on the glass is --lcd-ink; silk labels on it --lcd-ink-2 */
.bezel {
  background: var(--bezel-tex); padding: 10px; border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 0 var(--hi), 0 8px 16px -10px rgba(0, 0, 0, .5);
}
.bezel--s { padding: 4px; border-radius: 7px; }
.lcd { position: relative; background: var(--lcd-tex), var(--lcd); color: var(--lcd-ink); border-radius: 6px; box-shadow: var(--lcd-in); }
.lcd--pad { padding: 14px 16px; }
.lcd__v { margin-top: 8px; font: 700 22px/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lcd__v .seg { font-size: 30px; }
.lcd--s.lcd--pad { padding: 6px 10px; } .lcd--s .lcd__v { margin-top: 4px; font-size: 16px; } .lcd--s .lcd__v .seg { font-size: 18px; }
.lcd .lab, .lcd .kicker, .lcd .dim, .lcd .muted { color: var(--lcd-ink-2); }
.lcd ::selection { background: var(--lcd-ink); color: var(--lcd); }
/* 7-segment digits: integers and timers ONLY (HP %, countdowns, burn counter, block number). data-g = the ghost ("88:88") */
.seg { position: relative; display: inline-block; font-family: var(--font-seg); font-weight: 700; font-style: normal; letter-spacing: .02em; line-height: 1; white-space: pre; font-variant-numeric: normal; }
.seg::before { content: attr(data-g); position: absolute; left: 0; top: 0; opacity: var(--lcd-ghost); -webkit-text-fill-color: currentColor; pointer-events: none; }
/* a changed value steps (no tween) and blinks one 120 ms frame */
.is-step { animation: step-blink 120ms steps(1) 1; }
@keyframes step-blink { 0% { -webkit-text-fill-color: transparent; } }
/* decimals on the glass: mono, never 7-segment */
.lnum { font: 700 22px/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lcd .cd, .cd--lcd { font-family: var(--font-seg); font-weight: 700; letter-spacing: .02em; font-variant-numeric: normal; }
/* LED meter: 10 segments, lit = ink */
.leds { display: inline-grid; grid-template-columns: repeat(var(--n, 10), 6px); gap: 2px; vertical-align: middle; }
.leds i { height: 12px; border-radius: 1px; background: var(--led-off); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .08); }
.leds i.on { background: var(--text); }
.lcd .leds i { background: rgba(29, 36, 24, .1); } .lcd .leds i.on { background: var(--lcd-ink); }
/* tape: 审计中 seals, 测试数据, 认准 CA */
.tape {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 26px; padding: 0 12px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 40%), var(--tape); color: var(--tape-ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25); font: 600 11.5px/1.2 var(--font-sans); letter-spacing: .06em; white-space: nowrap;
}
.tape--hazard { padding-left: 22px; position: relative; overflow: hidden; }
.tape--hazard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(135deg, var(--key) 0 4px, transparent 4px 8px); }
/* speaker grille: faceplates only */
.grille { display: grid; grid-template-columns: repeat(var(--n, 14), 6px); gap: 7px; justify-content: end; }
.grille i { width: 6px; height: 6px; border-radius: 50%; background: var(--grille); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); }

/* ═════════════ icons ═════════════ */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 16px; height: 16px; } .ic--l { width: 24px; height: 24px; }
.ic-spin { animation: spin .8s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═════════════ button = key (convex cap lit from above, a skirt, travel 3 px, 80 ms). ONE orange (primary) key per view ═════════════ */
.btn {
  --h: 40px; --sk: 3px; --tr: var(--travel); --bgc: var(--key-n); --ink: var(--key-n-ink); --sh: var(--key-n-sh); --cast: rgba(40, 36, 28, .4); --capg: var(--cap);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 10px; border: 0; background: var(--capg), var(--bgc); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--hi), 0 var(--sk) 0 var(--sh), 0 calc(var(--sk) + 1px) 2px -1px var(--cast), 0 10px 18px -12px var(--cast);
  font: 600 14px/1 var(--font-sans); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-key) ease-out, box-shadow var(--t-key) ease-out, background-color var(--t-fast), color var(--t-fast);
}
.btn:hover { box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 99px var(--tint), 0 var(--sk) 0 var(--sh), 0 calc(var(--sk) + 1px) 2px -1px var(--cast), 0 12px 20px -12px var(--cast); }
.btn:active, .btn.is-down {
  transform: translateY(var(--tr));
  box-shadow: inset 0 1px 0 var(--hi), inset 0 1px 3px rgba(0, 0, 0, .08), 0 calc(var(--sk) - var(--tr)) 0 var(--sh), 0 2px 4px -3px var(--cast);
}
.btn--s { --h: 32px; --sk: 2px; --tr: 2px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--l { --h: 48px; --sk: 4px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn--xl { --h: 58px; --sk: 4px; padding: 0 28px; font-size: 18px; font-weight: 700; border-radius: 13px; letter-spacing: -.01em; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: var(--h); }
.btn--primary, .btn--up {
  --bgc: var(--key); --ink: var(--key-ink-s); --sh: var(--key-d); --cast: rgba(201, 64, 15, .5); --hi: rgba(255, 255, 255, .42); --tint: transparent;
  --capg: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%, rgba(140, 40, 0, .08));
}
.btn--primary.btn--xl, .btn--up.btn--xl { --ink: var(--key-ink); }
.btn--primary:hover, .btn--up:hover { --bgc: var(--key-hi); }
.btn--secondary { }
.btn--dark, .btn--down { --bgc: var(--key-dk); --ink: var(--key-dk-ink); --sh: var(--key-dk-sh); --tint: rgba(255, 255, 255, .08); --hi: rgba(255, 255, 255, .16); }
.btn--ghost { --bgc: transparent; --capg: none; --ink: var(--text-2); box-shadow: none; }
.btn--ghost:hover { --bgc: var(--ghost); color: var(--text); box-shadow: none; }
.btn--ghost:active { transform: none; box-shadow: var(--recess); }
.btn--outline { --bgc: transparent; --capg: none; --ink: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--outline:hover { --bgc: var(--key-n); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--outline:active { transform: none; box-shadow: var(--recess); }
.btn--warn { --ink: var(--accent-text); }
.btn--danger { --ink: var(--down); }
/* disabled = an unlit key: same cap, a lower skirt, a full-contrast label in --text-2, no travel, no cast. An action key
   (orange, or any l / xl key) that cannot fire shows a dark pip where its light would be. The reason is printed (phone) or in the tooltip (desktop) */
.btn.btn[aria-disabled="true"], .btn.btn[aria-disabled="true"]:hover, .btn.btn[aria-disabled="true"]:active {
  --bgc: var(--key-n); --ink: var(--text-2); --sh: var(--key-n-sh); --hi: rgba(255, 255, 255, .5); --capg: none; transform: none; cursor: not-allowed;
  box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--rim), 0 1px 0 var(--sh);
}
:root[data-theme="graphite"] .btn.btn[aria-disabled="true"], [data-theme="graphite"] .btn.btn[aria-disabled="true"] { --hi: rgba(255, 255, 255, .06); --ink: var(--text-3); }
.btn--primary[aria-disabled="true"] .btn__label::before, .btn--up[aria-disabled="true"] .btn__label::before,
.btn--l:not(.btn--ghost):not(.btn--outline)[aria-disabled="true"] .btn__label::before, .btn--xl[aria-disabled="true"] .btn__label::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25), 0 1px 0 var(--hi);
}
.btn--ghost[aria-disabled="true"], .btn--outline[aria-disabled="true"] { --bgc: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn[aria-busy="true"] { cursor: progress; }
.btn__label { display: inline-flex; align-items: center; gap: 8px; }
.btn__reason { display: none; font: 500 12px/1.3 var(--font-sans); color: var(--text-3); white-space: normal; text-align: center; }
.btn__kbd { margin-left: 4px; }
.btn__kbd kbd { background: rgba(0, 0, 0, .08); box-shadow: none; color: inherit; }
@media (max-width: 760px) {
  .btn[aria-disabled="true"][data-reason] { flex-direction: column; gap: 3px; height: auto; min-height: var(--h); padding-top: 7px; padding-bottom: 7px; }
  .btn[aria-disabled="true"][data-reason] .btn__reason { display: block; }
}
.touch .btn { min-height: 44px; }
.touch .btn--s { min-height: 40px; }

/* ═════════════ chips = printed labels; tape for 测试数据 / 待审计 ═════════════ */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-s); flex: none;
  background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 12px/1 var(--font-sans); white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums;
}
.chip--m { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.chip .ic { width: 14px; height: 14px; }
.chip--y { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--key-a32); }
.chip--up { color: var(--up); background: var(--up-a14); box-shadow: none; }
.chip--down { color: var(--down); background: var(--down-a14); box-shadow: none; }
.chip--warn { color: var(--accent-text); background: var(--key-a08); box-shadow: inset 0 0 0 1px var(--key-a32); }
.chip--ink { background: var(--text); color: var(--bg); box-shadow: none; font: 600 11.5px/1 var(--font-mono); letter-spacing: .08em; }
/* LOW RISK · 已审计: green dot + mono label (text comes only from the chain risk level) */
.chip--plat { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 11.5px/1 var(--font-mono); letter-spacing: .04em; }
.chip--plat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.chip--outline { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.chip--live { background: var(--live); color: #fff; box-shadow: none; font: 700 11.5px/1 var(--font-mono); letter-spacing: .08em; }
.chip--tape, .chip--test { background: var(--tape); color: var(--tape-ink); box-shadow: none; font-weight: 600; border-radius: 3px; }
.chip--test { position: relative; overflow: hidden; padding-left: 20px; }
.chip--test::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(135deg, var(--key) 0 4px, transparent 4px 8px); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip__dot--pulse { animation: dot-blink 1.2s steps(2, jump-none) infinite; }
@keyframes dot-blink { 50% { opacity: .2; } }
.chip--dot { width: 24px; padding: 0; justify-content: center; }
.chip--kick { font: 600 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ═════════════ tabs = segmented switches ═════════════ */
.tabs { display: flex; align-items: center; gap: 4px; min-width: 0; }
/* line (board tabs): recessed track, the active segment is a dark key · seg: the active segment is a raised plate */
.tabs--line, .tabs--seg { display: inline-flex; max-width: 100%; padding: 4px; gap: 3px; border-radius: 12px; background: var(--panel-3); box-shadow: var(--recess); }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; border-radius: 9px;
  color: var(--text-2); font: 500 14px/1 var(--font-sans); transition: color var(--t-fast), background var(--t-fast);
}
.tab:hover { color: var(--text); }
.tabs--line .tab, .tabs--seg .tab { height: 34px; padding: 0 14px; }
.tabs--line .tab[aria-selected="true"] { background: var(--cap), var(--key-dk); color: var(--key-dk-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .25); }
.tabs--seg .tab { height: 30px; padding: 0 12px; font-size: 13px; }
.tabs--seg .tab[aria-selected="true"], .tabs--seg .tab[aria-pressed="true"] { background: var(--seg-on); color: var(--text); font-weight: 600; box-shadow: var(--raise-s); }
/* pill (filters): printed outline; the active one is an ink label */
.tabs--pill { gap: 8px; }
.tabs--pill .tab { height: 32px; padding: 0 12px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs--pill .tab[aria-selected="true"] { background: var(--text); color: var(--bg); font-weight: 600; box-shadow: none; }
.tab__count { font: 600 11px/1 var(--font-mono); color: var(--text-3); font-variant-numeric: tabular-nums; align-self: flex-start; margin-top: 8px; margin-left: -2px; }
.tab[aria-selected="true"] .tab__count { color: inherit; opacity: .7; }
.tab__crest { --s: 20px; }
.touch .tabs--pill .tab, .touch .tabs--seg .tab, .touch .tabs--line .tab { min-height: 40px; }
.tab[aria-disabled="true"], .tab[aria-disabled="true"]:hover { color: var(--text-4); cursor: not-allowed; background: transparent; }

/* ═════════════ table = recessed well: 56 px rows, hairlines (no zebra), numbers right-aligned in tabular mono ═════════════ */
.tbl-wrap { position: relative; --tbl-bg: var(--panel-2); background: var(--panel-2); border-radius: var(--r-l); box-shadow: var(--recess), 0 1px 0 var(--hi); overflow: clip; }
@media (max-width: 1023px) { .tbl-wrap { overflow-x: auto; } }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-data); font-variant-numeric: tabular-nums; }
.tbl th {
  position: sticky; top: var(--header-h); z-index: 2; height: 44px; padding: 0 14px; background: var(--tbl-bg, var(--panel-2));
  border-bottom: 1px solid var(--line-2); color: var(--text-3); font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap;
}
:lang(zh) .tbl th { font-size: 12px; letter-spacing: .04em; }
.tbl td { height: var(--row-h, 56px); padding: 0 14px; color: var(--text); white-space: nowrap; vertical-align: middle; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl td.r { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums slashed-zero; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color var(--t-fast); }
.tbl tbody tr.is-link { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl tbody tr.is-link:hover td:first-child { box-shadow: inset 2px 0 0 var(--text); }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl__sort { display: inline-flex; align-items: center; gap: 5px; height: 100%; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
.tbl__sort:hover { color: var(--text); }
.tbl__car { display: inline-flex; flex-direction: column; gap: 2px; }
.tbl__car i { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.tbl__car i:first-child { border-bottom: 4px solid var(--line-2); }
.tbl__car i:last-child { border-top: 4px solid var(--line-2); }
th[aria-sort="ascending"] .tbl__car i:first-child { border-bottom-color: var(--text); }
th[aria-sort="descending"] .tbl__car i:last-child { border-top-color: var(--text); }
th[aria-sort] { color: var(--text); }
.tbl__spacer td { padding: 0; height: auto; border: 0; }
.tbl__empty td { height: auto; padding: 36px 14px; white-space: normal; border: 0; }
.tbl-skel td { height: var(--row-h, 56px); }
@media (max-width: 1279px) { .tbl .hide-1280 { display: none; } }
@media (max-width: 1023px) { .tbl .hide-1024 { display: none; } }
@media (max-width: 760px)  { .tbl .hide-760 { display: none; } }
/* phone: two-line rows in the same well */
.tlist { display: flex; flex-direction: column; padding: 0 12px; }
.tlist__row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tlist__row:last-child { border-bottom: 0; }
.tlist__row:active { background: var(--hover); }

/* ═════════════ form controls: recessed wells; the amount is an LCD ═════════════ */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.field__top .dim { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: -.01em; }
.field__top .dim b { color: var(--text); font-weight: 600; }
.field__msg { min-height: 18px; font-size: 12.5px; color: var(--text-3); }
.field__msg.is-err { color: var(--down); }
.input {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 10px;
  background: var(--panel-2); box-shadow: var(--recess), 0 1px 0 var(--hi); transition: box-shadow var(--t-fast);
}
.input:focus-within { box-shadow: var(--recess), 0 0 0 2px var(--text); }
.input.is-err { box-shadow: var(--recess), 0 0 0 1.5px var(--down); }
.input input { flex: 1 1 auto; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 16px; font-weight: 500; color: var(--text); }
.input__unit { color: var(--text-2); font: 600 12px/1 var(--font-mono); letter-spacing: .1em; }
.input__max { flex: none; white-space: nowrap; height: 28px; padding: 0 9px; border-radius: 7px; color: var(--accent-text); font: 600 12.5px/1 var(--font-sans); box-shadow: inset 0 0 0 1px var(--key-a32); }
.input__max:hover { background: var(--key-a08); }
/* amount = bezel + LCD; decimals in mono 700 (never 7-segment) */
.input--amount {
  height: 64px; padding: 0 14px; border-radius: 8px; background: var(--lcd-tex), var(--lcd); color: var(--lcd-ink);
  box-shadow: 0 0 0 6px var(--bezel), 0 0 0 7px var(--hi), 0 8px 14px -6px rgba(0, 0, 0, .35), var(--lcd-in); margin: 6px;
}
.input--amount:focus-within { box-shadow: 0 0 0 6px var(--bezel), 0 0 0 8px var(--text), var(--lcd-in); }
.input--amount.is-err { box-shadow: 0 0 0 6px var(--bezel), 0 0 0 8px var(--down), var(--lcd-in); }
.input--amount input { font: 700 28px/1 var(--font-mono); letter-spacing: -.03em; color: var(--lcd-ink); font-variant-numeric: tabular-nums; }
.input--amount input::placeholder { color: var(--lcd-ink); opacity: var(--lcd-ghost); }
.input--amount .input__unit { color: var(--lcd-ink); font-weight: 700; }
.input--amount .input__max { color: var(--lcd-ink); box-shadow: inset 0 0 0 1.5px var(--lcd-ink); }
.input--amount .input__max:hover { background: rgba(29, 36, 24, .1); }
/* presets: neutral keys; the pressed one is a dark key */
.presets { display: flex; gap: 10px; }
.presets button {
  flex: 1 1 0; height: 38px; border-radius: 9px; background: var(--cap), var(--key-n); color: var(--key-n-ink);
  box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--key-n-sh), 0 4px 2px -1px rgba(40, 36, 28, .25), 0 8px 14px -10px rgba(40, 36, 28, .4);
  font: 600 13.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; transition: transform var(--t-key) ease-out, box-shadow var(--t-key) ease-out;
}
.presets button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--hi), 0 1px 0 var(--key-n-sh); }
.presets button[aria-pressed="true"] { background: var(--cap), var(--key-dk); color: var(--key-dk-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 3px 0 var(--key-dk-sh); }
.touch .presets button { min-height: 44px; }

/* slider = fader: a dark slot, a plastic cap with the orange index line; ticks are the marks */
.slider { display: flex; flex-direction: column; gap: 10px; }
.slider input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; margin: 0; }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--bezel); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--bezel); }
.slider input[type="range"]::-moz-range-progress { background: transparent; }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 36px; margin-top: -15px; border: 0; border-radius: 5px;
  background: linear-gradient(var(--key), var(--key)) 50% 50% / 16px 2px no-repeat, linear-gradient(#F4F3EF, #D8D5CD);
  box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(0, 0, 0, .3); transition: transform var(--t-key);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 24px; height: 36px; border: 0; border-radius: 5px;
  background: linear-gradient(var(--key), var(--key)) 50% 50% / 16px 2px no-repeat, linear-gradient(#F4F3EF, #D8D5CD); box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(0, 0, 0, .3);
}
.slider input[type="range"]:active::-webkit-slider-thumb { transform: translateY(1px); }
.slider input[type="range"]:focus-visible { outline-offset: 2px; }
.slider input[type="range"]:disabled { cursor: not-allowed; opacity: .5; }
.slider__marks { position: relative; height: 22px; margin: -6px 12px 0; font: 500 var(--fs-label)/1 var(--font-mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.slider__marks span { position: absolute; top: 9px; transform: translateX(-50%); white-space: nowrap; }
.slider__marks span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: var(--text-3); }
.slider__marks span:first-child { transform: none; } .slider__marks span:first-child::before { left: 0; }
.slider__marks span:last-child { transform: translateX(-100%); } .slider__marks span:last-child::before { left: auto; right: 0; }
.slider__val { font: 600 14px/1 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }

/* ═════════════ progress = LED bar (10 segments; lit = ink); ring = segmented arc ═════════════ */
.prog { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prog__track {
  display: grid; grid-template-columns: repeat(var(--n, 10), minmax(3px, 1fr)); gap: 2px; flex: 1 1 auto;
  min-width: calc(var(--n, 10) * 5px); max-width: calc(var(--n, 10) * 8px); height: 12px;
}
.prog--wide .prog__track { max-width: none; }
.prog--s .prog__track { height: 10px; }
.prog__track i { border-radius: 1px; background: var(--led-off); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .07); }
.prog__track i.on { box-shadow: none; }
.prog__track i.on { background: var(--text); }
.prog--key .prog__track i.on { background: var(--key); }
.prog--up .prog__track i.on { background: var(--ok); }
.prog--muted .prog__track i.on { background: var(--text-3); }
.prog__fill { display: none; }
.prog__txt { flex: none; font: 500 12.5px/1 var(--font-mono); color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; letter-spacing: -.01em; }
.lcd .prog__track i { background: rgba(29, 36, 24, .1); } .lcd .prog__track i.on { background: var(--lcd-ink); } .lcd .prog__txt { color: var(--lcd-ink); }
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg);
  -webkit-mask: repeating-conic-gradient(#000 0 14deg, transparent 14deg 18deg); mask: repeating-conic-gradient(#000 0 14deg, transparent 14deg 18deg); }
.ring__bg { stroke: var(--led-off); fill: none; }
.ring__fg { stroke: var(--text); fill: none; stroke-linecap: butt; }
.ring--plat .ring__fg { stroke: var(--ok); }
.ring--key .ring__fg { stroke: var(--key); }
.ring__txt { position: relative; font: 600 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.02em; }
.lcd .ring__bg { stroke: rgba(29, 36, 24, .1); } .lcd .ring__fg { stroke: var(--lcd-ink); } .lcd .ring__txt { color: var(--lcd-ink); }

/* ═════════════ odometer (now: digits step, one 120 ms blink, a 400 ms direction tint; never rolls) + countdown ═════════════ */
.odo { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color var(--t-slow) var(--ease); }
.flash-up { color: var(--up) !important; }
.flash-down { color: var(--down) !important; }
.lcd .flash-up, .lcd .flash-down { color: inherit !important; }
.cd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cd.y { color: var(--accent-text); }
.lcd .cd.y { color: inherit; animation: dot-blink 1s steps(2, jump-none) infinite; }
.cd--lcd { position: relative; display: inline-block; padding: 5px 8px 4px; border-radius: 4px; background: var(--lcd-tex), var(--lcd); color: var(--lcd-ink); box-shadow: 0 0 0 2px var(--bezel), var(--lcd-in); line-height: 1; white-space: pre; }
.cd--lcd::before { content: attr(data-g); position: absolute; left: 8px; top: 5px; opacity: var(--lcd-ghost); pointer-events: none; }
.cd--lcd.y { color: var(--lcd-ink); }

/* ═════════════ address ═════════════ */
.addr { position: relative; display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; font: 500 13px/1 var(--font-mono); color: var(--text-2); letter-spacing: -.01em; }
.addr__v { min-width: 0; padding: 4px 2px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr--full .addr__v { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
a.addr__v:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.addr__lbl { font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; color: var(--text-3); margin-right: 6px; }
.addr__btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--text-3); flex: none; transition: background var(--t-fast), color var(--t-fast); }
.addr__btn:hover { background: var(--ghost); color: var(--text); }
.addr__btn .ic { width: 15px; height: 15px; }
.addr.is-copied .addr__copy { color: var(--ok); }
.addr__ok {
  position: absolute; right: 0; bottom: calc(100% + 6px); padding: 6px 9px; border-radius: 3px; background: var(--tape); color: var(--tape-ink);
  font: 600 12px/1 var(--font-sans); white-space: nowrap; pointer-events: none;
}
.addr__test { margin-left: 4px; height: 18px; padding: 0 5px 0 15px; font-size: 11px; }
.addr__test::before { width: 9px; }
.touch .addr__btn { width: 40px; height: 40px; }

/* ═════════════ coin image: label sticker (Logo) · coin cartridge (CoinCart) · crest (cartridge chip) ═════════════ */
.idn { display: block; flex: none; border-radius: 22%; }
/* Logo = the coin's label sticker. Any square image is printed on label paper: a paper border, a laminated sheen from the key
   light and a contact shadow, so light, dark and transparent logos and the generated fallback sit on the device the same way */
.logo {
  --s: 28px; position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); padding: max(1.5px, calc(var(--s) * .045));
  border-radius: calc(var(--s) * .24); background: var(--label); vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(40, 36, 28, .12), 0 1px 1px rgba(40, 36, 28, .16), 0 calc(var(--s) * .07) calc(var(--s) * .14) calc(var(--s) * -.06) rgba(40, 36, 28, .35);
}
:root[data-theme="graphite"] .logo, [data-theme="graphite"] .logo { box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .3), 0 calc(var(--s) * .07) calc(var(--s) * .14) calc(var(--s) * -.06) rgba(0, 0, 0, .55); }
.logo > img, .logo > svg { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--s) * .2); }
.logo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(40, 36, 28, .08);
}
/* CoinCart = the coin's own cartridge: the mode's product shot with a blank label and the logo printed on it (multiply, so
   the paper and the photographed light show through). --h = height; the width follows the shot (408 × 512) */
.ccart { --h: 96px; position: relative; display: inline-block; flex: none; width: calc(var(--h) * .797); height: var(--h); vertical-align: middle; }
.ccart__body { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 calc(var(--h) * .035) calc(var(--h) * .04) rgba(40, 36, 28, .3)); }
.ccart__lbl { position: absolute; left: 10.2%; top: 23.7%; width: 79.4%; height: 56.6%; display: grid; place-items: center; overflow: hidden; }
.ccart__art { display: block; height: 84%; aspect-ratio: 1; overflow: hidden; border-radius: 5%; mix-blend-mode: multiply; }
.ccart__art > img, .ccart__art > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Crest({ mode, size }) = the cartridge chip (CSS; crisp at 20–56 px): body in the mode colour lit from above, ribbed grip, label.
   The footprint stays size × size (the body is 5:6). audited: a green dot on the sticker · dim (queued): sealed with tape */
.crest {
  --s: 40px; position: relative; display: inline-block; flex: none; width: calc(var(--s) * .834); height: var(--s); margin: 0 calc(var(--s) * .083);
  border-radius: calc(var(--s) * .14) calc(var(--s) * .14) calc(var(--s) * .08) calc(var(--s) * .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .1)), var(--cc, var(--panel-3));
  box-shadow: inset 0 calc(var(--s) * -.055) 0 rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(40, 36, 28, .25); vertical-align: middle;
}
.crest::before {
  content: ""; position: absolute; left: 17%; right: 17%; top: 10%; height: 14%;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px calc(var(--s) * .1));
}
.crest__lbl {
  position: absolute; left: 17%; right: 17%; top: 31%; bottom: 17%; border-radius: max(2px, calc(var(--s) * .04)); background: var(--label); color: var(--label-ink);
  display: grid; place-items: center; overflow: hidden; font-style: normal; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .12);
}
.crest__no { position: absolute; left: 8%; top: 7%; font: 600 calc(var(--s) * .085)/1 var(--font-mono); letter-spacing: .08em; color: var(--label-ink-3); }
.crest__ch { font: 700 calc(var(--s) * .25)/1 var(--font-cjk, var(--font-sans)); margin-top: calc(var(--s) * .05); }
.crest--audited .crest__lbl::before { content: ""; position: absolute; right: 9%; top: 9%; width: max(4px, calc(var(--s) * .08)); height: max(4px, calc(var(--s) * .08)); border-radius: 50%; background: #2F8A49; }
.crest--dim .crest__lbl::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 10%; height: 26%; background: var(--tape); }
.crest--dim .crest__ch { transform: translateY(-24%); color: var(--label-ink-3); }
.crest--platform { --cc: var(--m-platform); }
.crest--platform .crest__lbl { background: transparent; box-shadow: none; }
.crest--platform .crest__lbl::before { content: ""; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--key); box-shadow: 0 calc(var(--s) * .03) 0 var(--key-d); }
.crest--s::before { left: 20%; right: 20%; }
.crest > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* the CSS cartridge (Cartridge(); dense places: the launch picker, my shelf). Shown large: Cartridge({ shot: true }) below */
.cart {
  position: relative; display: block; height: 236px; padding: 34px 14px 14px; border-radius: 14px 14px 8px 8px; color: var(--label-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .07)), var(--cc, var(--panel-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(40, 36, 28, .2), 0 20px 30px -18px rgba(40, 36, 28, .55);
  transition: transform var(--t-rise) var(--ease);
}
.cart::before { content: ""; position: absolute; left: 14px; right: 14px; top: 10px; height: 14px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, rgba(255, 255, 255, .1) 2px 3px, transparent 3px 7px); }
.cart::after { content: ""; position: absolute; left: 27%; width: 46%; bottom: -10px; height: 10px; border-radius: 0 0 3px 3px; background: repeating-linear-gradient(90deg, #C9B27A 0 5px, #8F8B81 5px 7px); }
.cart.is-up, a.cart:hover { transform: translateY(-22px); }
.cart__lbl { position: relative; height: 100%; display: flex; flex-direction: column; padding: 12px 13px; border-radius: 6px; background: var(--label); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(0, 0, 0, .05); overflow: hidden; }
.cart__no { display: flex; justify-content: space-between; font: 600 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--label-ink-3); }
.cart__no i { width: 12px; height: 12px; border-radius: 3px; background: var(--cc, var(--panel-3)); }
.cart__nm { margin-top: 12px; font: 700 28px/1 var(--font-sans); letter-spacing: -.02em; }
.cart__en { margin-top: 7px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--label-ink-3); text-transform: uppercase; }
.cart__rl { flex: 1; margin-top: 10px; font: 400 13px/1.5 var(--font-sans); color: var(--label-ink-2); overflow: hidden; }
.cart__ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px dashed #CFCBC2; font: 600 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--label-ink-2); }
.cart__ok { color: var(--label-ink); } .cart__ok::before { content: "● "; color: #2F8A49; }
.cart .tape { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 26px; }
.cart--sealed .cart__rl { color: var(--label-ink-3); }
/* slot-in on load (stagger with --i), reduced motion: still */
.cart--slot, .cshot--slot .cshot__obj { animation: cart-slot var(--t-slot) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.cart--slot.is-up { animation-name: cart-slot-up; }
@keyframes cart-slot { from { transform: translateY(40px); opacity: 0; } }
@keyframes cart-slot-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(-22px); } }

/* Cartridge({ shot: true }) = the product shot standing on the shelf, the copy as a caption under it (rack, catalogue, detail) */
.cshot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; color: var(--text); }
.cshot__obj { position: relative; z-index: 0; width: 100%; max-width: var(--cw, 220px); aspect-ratio: 408 / 512; }
.cshot__obj::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -12px; height: 22px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 36, 28, .3), rgba(40, 36, 28, 0)); transition: opacity var(--t-rise) var(--ease), transform var(--t-rise) var(--ease);
}
:root[data-theme="graphite"] .cshot__obj::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.cshot__img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(40, 36, 28, .18)) drop-shadow(0 14px 14px rgba(40, 36, 28, .16)); transition: transform var(--t-rise) var(--ease); }
.cshot.is-up .cshot__img, a.cshot:hover .cshot__img { transform: translateY(-16px); }
.cshot.is-up .cshot__obj::after, a.cshot:hover .cshot__obj::after { opacity: .55; transform: scaleX(.86); }
.cshot--sealed .cshot__img { filter: saturate(.35) brightness(1.04) drop-shadow(0 2px 2px rgba(40, 36, 28, .18)) drop-shadow(0 14px 14px rgba(40, 36, 28, .16)); }
.cshot .tape { position: absolute; left: 4%; right: 4%; top: 54%; min-height: 30px; white-space: normal; text-align: center; line-height: 1.25; padding: 5px 10px; }
.cshot__cap { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 30ch; text-align: center; }
.cshot__no { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.cshot__nm { font: 600 var(--fs-h3)/1.15 var(--font-sans); letter-spacing: -.015em; color: var(--text); }
.cshot__rl { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cshot__ft { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 2px; font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .04em; color: var(--text-2); }
.cshot__ft .cart__ok { color: var(--text); }
a.cshot:hover .cshot__nm { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ═════════════ audit: slab (risk == LOW from chain) + badge ═════════════ */
.slab { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--mat); box-shadow: var(--raise); }
.slab__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 0 14px;
  border-bottom: 1px dashed var(--line-2); background: var(--panel); color: var(--text); font: 600 11.5px/1 var(--font-mono); letter-spacing: .06em;
}
.slab__bar > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.slab__bar a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-weight: 500; }
.slab__body { flex: 1 1 auto; }
.riskb { display: inline-flex; align-items: center; gap: 6px; }

/* ═════════════ empty state (a small LCD), demo label (tape), stat (readout cell), section head (silk) ═════════════ */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; }
.empty--compact { padding: 20px 12px; }
.empty__icon {
  position: relative; display: grid; place-items: center; width: 68px; height: 50px; margin: 6px 0 10px; border-radius: 5px; color: var(--lcd-ink);
  background: var(--lcd-tex), var(--lcd); box-shadow: 0 0 0 6px var(--bezel), 0 0 0 7px var(--hi), 0 10px 16px -8px rgba(0, 0, 0, .4), var(--lcd-in);
}
.empty__icon .ic { position: relative; width: 24px; height: 24px; }
.empty__title { font: 600 var(--fs-title)/1.4 var(--font-sans); color: var(--text); }
.empty__body { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); max-width: 44ch; }
.empty__act { margin-top: 10px; }
.demo-label {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 3px;
  background: var(--tape); color: var(--tape-ink); font: 600 11.5px/1 var(--font-sans); letter-spacing: .04em;
}
.demo-label i { width: 0; height: 0; border-left: 6px solid var(--key); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.demo-label--over { position: absolute; top: 12px; left: 12px; z-index: 3; }
/* Stat = a readout cell: a sans caption (sentence case, --text-2) over a mono figure. On glass (lcd) the caption is silk */
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat__lbl { font: 500 var(--fs-small)/1.3 var(--font-sans); color: var(--text-2); }
.stat__val { font: 600 22px/1.1 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums slashed-zero; letter-spacing: -.03em; }
.stat--l .stat__val { font-size: var(--fs-fig-m); }
.stat--xl .stat__val { font: 700 var(--fs-fig)/1 var(--font-display); letter-spacing: -.035em; }
.stat__val small { margin-left: 5px; font: 500 max(11px, .46em)/1 var(--font-mono); color: var(--text-3); letter-spacing: .04em; }
.stat__sub { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.stat__val.is-pre { font: 500 14px/1.4 var(--font-sans); color: var(--text-3); letter-spacing: 0; }
/* the important readout sits on LCD glass */
.stat--lcd { padding: 14px 16px 13px; border-radius: 8px; background: var(--lcd-tex), var(--lcd); color: var(--lcd-ink); box-shadow: var(--lcd-in); }
.stat--lcd .stat__lbl { font: 500 var(--fs-label)/1.25 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.stat--lcd .stat__lbl, .stat--lcd .stat__sub, .stat--lcd .stat__val small, .stat--lcd .stat__val.is-pre { color: var(--lcd-ink-2); }
.stat--lcd .stat__val { color: var(--lcd-ink); }
/* SectionHead: silk code above a --fs-h2 title, a lead line under it, actions on the right */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: var(--sec-in); }
.sec-head__t { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; min-width: 0; }
.sec-head h2 { font: 600 var(--fs-h2)/1.1 var(--font-sans); letter-spacing: -.025em; color: var(--text); }
.sec-head__sub { margin-top: 10px; font-size: var(--fs-body); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.sec-head__acts { display: flex; gap: 10px; flex: none; }
@media (max-width: 760px) { .sec-head { flex-wrap: wrap; } }

/* ═════════════ skeleton: ghost segments, static (never shimmer) ═════════════ */
.sk { display: block; max-width: 100%; background: var(--ghost); border-radius: 4px; }
.sk--line { height: 12px; border-radius: 3px; }
.sk--circle { border-radius: 50%; }
.sk--static, .sk-static .sk { opacity: .7; }

/* ═════════════ tooltip: a small plate ═════════════ */
.tip {
  position: fixed; z-index: var(--z-tip); max-width: 300px; padding: 8px 11px; border-radius: var(--r-m); pointer-events: none;
  background: var(--panel); color: var(--text); font: 400 12.5px/1.5 var(--font-sans); box-shadow: var(--pop);
  opacity: 0; transition: opacity var(--t-fast);
}
.tip.is-on { opacity: 1; }
.tip .mono { font-size: 12px; }

/* ═════════════ menu: a pop plate ═════════════ */
.menu {
  position: fixed; z-index: var(--z-overlay); min-width: 220px; padding: 6px; border-radius: var(--r-l);
  background: var(--mat); box-shadow: var(--pop);
}
.menu__head { padding: 10px 10px 12px; border-bottom: 1px dashed var(--line-2); margin-bottom: 6px; }
.menu__i { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border-radius: 8px; color: var(--text); font: 500 14px/1 var(--font-sans); text-align: left; }
.menu__i .ic { color: var(--text-3); }
.menu__i:hover, .menu__i:focus-visible { background: var(--panel-2); box-shadow: var(--recess); outline: none; }
.menu__i--down { color: var(--down); } .menu__i--down .ic { color: var(--down); }
.touch .menu__i { height: 44px; }

/* ═════════════ overlays: modal (desktop) / sheet (phone) = pop plates; flat scrim, no blur ═════════════ */
html.has-ovl, html.has-ovl body { overflow: hidden; }
.ovl { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; padding: 16px; background: var(--scrim); opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.ovl.is-on { opacity: 1; }
.modal {
  display: flex; flex-direction: column; width: min(var(--mw, 440px), 100%); min-width: 0; max-height: calc(100vh - 64px);
  background: var(--mat); border-radius: var(--r-plate); box-shadow: var(--pop);
  transform: translateY(14px) scale(.985); transition: transform var(--t-mid) var(--ease);
}
.ovl.is-on .modal { transform: none; }
.modal--l { --mw: 640px; } .modal--s { --mw: 380px; }
.modal__head { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 14px 0 24px; flex: none; }
.modal__title { flex: 1 1 auto; font: 600 19px/1.3 var(--font-sans); letter-spacing: -.01em; color: var(--text); min-width: 0; }
.modal__x {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-2); background: var(--cap), var(--key-n);
  box-shadow: inset 0 1px 0 var(--hi), 0 2px 0 var(--key-n-sh); transition: transform var(--t-key) ease-out, box-shadow var(--t-key) ease-out;
}
.modal__x:hover { color: var(--text); }
.modal__x:active { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--hi), 0 0 0 var(--key-n-sh); }
.modal__body { min-width: 0; padding: 4px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot { display: flex; gap: 12px; padding: 16px 24px 24px; border-top: 1px dashed var(--line-2); flex: none; }
.modal__foot > * { flex: 1 1 0; }
.ovl--sheet { align-items: end; justify-items: stretch; padding: 0; }
.ovl--sheet .modal {
  width: 100%; max-height: 88vh; border-radius: var(--r-plate) var(--r-plate) 0 0; padding-bottom: var(--safe-b);
  transform: translateY(100%); transition: transform 240ms var(--ease);
}
.ovl--sheet.is-on .modal { transform: none; }
.ovl--sheet .modal__head { height: 56px; padding: 0 10px 0 20px; }
.ovl--sheet .modal__body { padding: 4px 20px 20px; }
.ovl--sheet .modal__foot { padding: 12px 20px 16px; }
.sheet__grab { display: grid; place-items: center; height: 20px; flex: none; touch-action: none; cursor: grab; }
.sheet__grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--panel-3); box-shadow: var(--recess-d); }
.ovl--sheet .modal__x { width: 40px; height: 40px; }

/* ═════════════ toasts = receipt strips; a tx toast carries a small LCD with the stages ═════════════ */
.toasts {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-toast); display: flex; flex-direction: column-reverse; gap: 10px;
  width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
@media (max-width: 760px) { .toasts { left: 16px; right: 16px; width: auto; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); } }
.toast {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; overflow: hidden;
  padding: 14px 10px 14px 16px; border-radius: var(--r-l); background: var(--mat); box-shadow: var(--pop);
  pointer-events: auto; opacity: 0; transform: translateY(10px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }
/* receipt perforation along the top edge */
.toast::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; background: radial-gradient(circle at 3px 0, var(--bg) 2px, transparent 2.5px) 0 0 / 9px 3px repeat-x; }
.toast__ic { display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; border-radius: 6px; color: var(--text-2); background: var(--panel-2); box-shadow: var(--recess); }
.toast__ic .ic { width: 16px; height: 16px; }
.toast--ok .toast__ic { color: var(--ok); } .toast--err .toast__ic { color: var(--down); } .toast--warn .toast__ic, .toast--busy .toast__ic { color: var(--accent-text); }
.toast__t { font: 600 14px/1.4 var(--font-sans); color: var(--text); }
.toast__b { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.toast__acts { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; }
.toast__acts a, .toast__acts button { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.toast__acts a:hover, .toast__acts button:hover { text-decoration-color: var(--text); }
.toast__x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--text-3); margin-top: -4px; }
.toast__x:hover { background: var(--ghost); color: var(--text); }
.touch .toast__x { width: 40px; height: 40px; margin: -10px -4px 0 0; }
/* tx stages on a small LCD: 检查 · 钱包确认 · 上链 · 完成; segments light per stage, the current one blinks (step) */
.txs { display: flex; gap: 8px; margin-top: 10px; padding: 8px 10px 7px; border-radius: 5px; background: var(--lcd-tex), var(--lcd); box-shadow: 0 0 0 4px var(--bezel), var(--lcd-in); margin-left: 4px; margin-right: 4px; }
.txs__seg { flex: 1 1 0; min-width: 0; }
.txs__bar { height: 6px; border-radius: 1px; background: rgba(29, 36, 24, .1); overflow: hidden; position: relative; }
.txs__bar i { position: absolute; inset: 0; width: 0 !important; background: var(--lcd-ink); }
.txs__seg.is-on .txs__bar i { width: 100% !important; animation: dot-blink 1s steps(2, jump-none) infinite; }
.txs__seg.is-done .txs__bar i { width: 100% !important; }
.txs__seg.is-fail .txs__bar i { width: 100% !important; background: repeating-linear-gradient(135deg, var(--lcd-ink) 0 3px, transparent 3px 6px); }
.txs__seg.is-skip .txs__bar i { width: 100% !important; opacity: .35; }
.txs__lbl { margin-top: 6px; font: 600 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--lcd-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txs__seg.is-on .txs__lbl, .txs__seg.is-done .txs__lbl, .txs__seg.is-fail .txs__lbl { color: var(--lcd-ink); }
.test-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; background: var(--tape); color: var(--tape-ink); font: 600 11.5px/1 var(--font-sans); text-decoration: none !important; }

/* ═════════════ search: a recessed well with a mono / keycap; results on a pop plate ═════════════ */
.srch { position: relative; }
.srch__box {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 7px 0 11px; border-radius: 10px;
  background: var(--panel-2); box-shadow: var(--recess), 0 1px 0 var(--hi); color: var(--text-3); transition: box-shadow var(--t-fast);
}
.srch__box:focus-within { box-shadow: var(--recess), 0 0 0 2px var(--text); }
.srch__box input { flex: 1 1 auto; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 14px; color: var(--text); }
.srch__box input::-webkit-search-cancel-button { display: none; }
.srch--big .srch__box { height: 50px; padding: 0 12px 0 15px; border-radius: 12px; }
.srch--big .srch__box input { font-size: 16px; }
.srch__pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: var(--z-overlay); width: 440px; max-height: min(520px, 70vh); overflow-y: auto;
  padding: 6px; border-radius: var(--r-l); background: var(--mat); box-shadow: var(--pop);
}
.srch--big .srch__pop { left: 0; right: 0; width: auto; text-align: left; }
.srch__grp { padding: 10px 10px 6px; }
.srch__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 10px; border-radius: 9px; text-align: left; color: var(--text); }
.srch__item[aria-selected="true"], .srch__item:hover { background: var(--panel-2); box-shadow: var(--recess); }
.srch__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srch__sym { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.srch__name { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch__side { flex: none; text-align: right; font: 500 13px/1 var(--font-mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.srch__hint { padding: 12px 10px; font-size: 13px; color: var(--text-3); }
.srch__modes { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 10px; }
.srch__mode {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 10px; font-size: 13px; color: var(--text);
  background: var(--cap), var(--key-n); box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--key-n-sh);
}
.srch__mode:hover, .srch__mode[aria-selected="true"] { box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 99px var(--tint), 0 3px 0 var(--key-n-sh); }
.ovl--search { align-items: stretch; justify-items: stretch; padding: 0; background: var(--bg); }
.ovl--search .srchsheet { display: flex; flex-direction: column; height: 100%; }
.srchsheet__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; box-shadow: 0 1px 0 var(--edge); }
.srchsheet__bar .srch { flex: 1 1 auto; }
.srchsheet__bar .srch__box { height: 44px; }
.srchsheet__list { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px calc(16px + var(--safe-b)); }
.srchsheet__list .srch__pop { position: static; width: auto; max-height: none; box-shadow: none; background: transparent; padding: 0; }

/* ═════════════ wallet button + modal ═════════════ */
.wbtn { display: inline-flex; align-items: center; gap: 8px; }
.wbtn__addr { font: 600 13px/1 var(--font-mono); letter-spacing: -.01em; color: inherit; }
.wbtn__bal { font: 500 12.5px/1 var(--font-mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.wbtn .idn { width: 22px; height: 22px; }
.wlist { display: flex; flex-direction: column; gap: 12px; }
.wrow {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 12px; color: var(--text); text-align: left;
  background: var(--cap), var(--key-n); box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--key-n-sh), 0 8px 14px -10px rgba(40, 36, 28, .4);
  transition: transform var(--t-key) ease-out, box-shadow var(--t-key) ease-out;
}
.wrow:hover { box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 99px var(--tint), 0 3px 0 var(--key-n-sh), 0 8px 14px -10px rgba(40, 36, 28, .4); }
.wrow:active { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--hi), 0 1px 0 var(--key-n-sh); }
.wrow[aria-busy="true"] { box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--key-n-sh), 0 0 0 2px var(--text); }
.wrow__ic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--panel-2); box-shadow: var(--recess); overflow: hidden; color: var(--text-2); }
.wrow__ic img { width: 100%; height: 100%; object-fit: cover; }
.wrow__name { flex: 1 1 auto; font-weight: 600; font-size: 15px; min-width: 0; }
.wrow__name small { display: block; margin-top: 3px; font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .06em; color: var(--text-3); }
.wnote { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-m); background: var(--panel-2); box-shadow: var(--recess); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.wnote .ic { color: var(--text-3); margin-top: 1px; }
.werr { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--down-a14); color: var(--down); font-size: 13px; }

/* ═════════════ phone 「我的」 sheet ═════════════ */
.mesheet { display: flex; flex-direction: column; gap: 16px; }
.mecard { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-l); background: var(--panel-2); box-shadow: var(--recess); }
.mecard__who { display: flex; align-items: center; gap: 12px; }
.mecard__who .idn { width: 40px; height: 40px; }
.mecard__bal { font: 700 28px/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mecard__bal small { font: 500 12px/1 var(--font-mono); color: var(--text-3); margin-left: 6px; letter-spacing: .06em; }
.melinks { display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--panel-2); box-shadow: var(--recess); overflow: hidden; }
.melinks a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; color: var(--text); font-size: 15px; }
.melinks a + a { border-top: 1px solid var(--line); }
.melinks a .ic:last-child { margin-left: auto; color: var(--text-3); }
.melinks a .ic:first-child { color: var(--text-3); }
.merow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.merow .langsw { display: inline-flex !important; }
.merow .langsw button { min-height: 40px; min-width: 40px; }

/* ═════════════ polish primitives (DESIGN.md §4.8): split section head, LCD glyphs, paper, ledge, toolbar, spec, Dock, SeatedDevice ═════════════ */
/* SectionHead({ split, size: 'h1' }): silk code over a t-h1 | t-h2 title, the lead in a right column (showcase heads) */
.sec-head .t-h1 { font: 600 var(--fs-h1)/1.06 var(--font-sans); letter-spacing: -.035em; }
.sec-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; gap: 16px 48px; }
.sec-head--split:has(.t-h1) { margin-bottom: 40px; }
.sec-head--split:not(:has(.sec-head__lead)) { grid-template-columns: minmax(0, 1fr); }
.sec-head__lead { justify-self: end; }
@media (max-width: 1023px) { .sec-head--split, .sec-head--split:has(.t-h1) { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; } .sec-head__lead { justify-self: start; } }
@media (max-width: 760px) { .sec-head--split, .sec-head--split:has(.t-h1) { gap: 12px; margin-bottom: 22px; } .sec-head--split .sec-head__t { gap: 10px; } }

/* LCD mode glyphs (assets/dev1/lcd/mode-<id>.svg) as masks in the current ink (LCD ink on glass) */
.gl { display: block; flex: none; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.gl--barrel { --g: url(/assets/dev1/lcd/mode-barrel.svg); } .gl--clock { --g: url(/assets/dev1/lcd/mode-clock.svg); } .gl--boss { --g: url(/assets/dev1/lcd/mode-boss.svg); }
.gl--thrones { --g: url(/assets/dev1/lcd/mode-thrones.svg); } .gl--tug { --g: url(/assets/dev1/lcd/mode-tug.svg); }

/* .paper: label stock for receipts (light in both editions), mono print, perforated top and bottom edges */
.paper { position: relative; padding: 22px 26px 24px; border-radius: 3px; background: var(--label); color: var(--label-ink); font-family: var(--font-mono);
  box-shadow: 0 1px 1px rgba(40, 36, 28, .12), 0 18px 30px -18px rgba(40, 36, 28, .45); }
:root[data-theme="graphite"] .paper, [data-theme="graphite"] .paper { box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 30px -16px rgba(0, 0, 0, .6); }
.paper::before, .paper::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 5px 0, transparent 4px, var(--label) 4.5px) 0 0 / 10px 8px repeat-x; }
.paper::before { top: -7px; transform: scaleY(-1); }
.paper::after { bottom: -7px; }

/* .ledge: one lit shelf strip an object stands on (a child of the object's positioned box; overhang --ledge-over, drop --ledge-b).
   .ledge-run: in a scroller, each item draws its own piece at --ledge-y, so the strip scrolls with the items */
.ledge, .ledge-run > *::before {
  height: 18px; background: linear-gradient(180deg, var(--hi) 0 1px, var(--panel) 1px 7px, var(--panel-3) 7px), var(--panel);
  box-shadow: 0 0 0 1px var(--rim), inset 0 -1px 0 var(--lo), 0 16px 22px -12px rgba(40, 36, 28, .4); pointer-events: none;
}
.ledge { position: absolute; left: calc(var(--ledge-over, 8%) * -1); right: calc(var(--ledge-over, 8%) * -1); bottom: var(--ledge-b, -14px); border-radius: 3px 3px 6px 6px; }
.ledge-run > * { position: relative; }
.ledge-run > *::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: var(--ledge-y, 88px); }
.ledge-run > :first-child::before { border-radius: 4px 0 0 6px; } .ledge-run > :last-child::before { border-radius: 0 4px 6px 0; }
:root[data-theme="graphite"] :is(.ledge, .ledge-run > *::before) { box-shadow: 0 0 0 1px var(--rim), inset 0 -1px 0 var(--lo), 0 16px 22px -12px rgba(0, 0, 0, .6); }

/* .toolbar: one line of tools between hairlines; .toolbar__sep a 1 px divider, .toolbar__g a group that starts with one, .toolbar__sp a spring */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.toolbar__g { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.toolbar__sep, .toolbar__g:not(:empty)::before { content: ""; flex: none; width: 1px; height: 20px; margin: 0 6px; background: var(--line-2); }
.toolbar__sp { flex: 1 1 auto; }

/* .spec: hairline spec rows, label left (--text-2), value right; dl.spec (dt / dd) or .spec__r rows (.spec__k / .spec__v) */
.spec { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.spec > dt, .spec > dd, .spec__r { min-height: 40px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.spec > dt, .spec__k { display: flex; align-items: center; padding-right: 16px; color: var(--text-2); }
.spec > dd, .spec__v { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; min-width: 0; text-align: right; color: var(--text); }
.spec__r { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 116px) minmax(0, 1fr); gap: 12px; align-items: center; }
.spec__r > .spec__k { padding-right: 0; }

/* Dock (dev1.js): the slot-cut dock photo on top, each bay (a cartridge) UNDER it, positioned from the generated geometry */
.dock { position: relative; container-type: inline-size; }
.dock__st { position: relative; margin-top: var(--dock-head, 12cqw); }
.dock__img { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.dock__bay { position: absolute; z-index: 1; aspect-ratio: 408 / 512; }
.dock__caps { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: calc(var(--dock-tail, 0px) * -1); }
.dock__cap { min-width: 0; padding: 0 12px; transform: translateX(var(--dx, 0)); }

/* SeatedDevice (dev1.js): the front DEV-1 with a cartridge seated; the LCD box takes the screen. --slot: the slot-cut shot with the
   cartridge resting above (.is-in slides it home, .is-seat cross-fades to the seated photo, aligned on the LCD) */
.sdev { position: relative; container-type: inline-size; }
.sdev > img { display: block; max-width: none; height: auto; user-select: none; pointer-events: none; }
.sdev__seat { width: 100%; }
.sdev__lcd { position: absolute; z-index: 2; left: var(--sd-lx); top: var(--sd-ly); width: var(--sd-lw); height: var(--sd-lh); overflow: hidden; color: var(--lcd-ink); }
.sdev--slot .sdev__dev { position: relative; z-index: 1; width: 100%; margin-top: var(--sd-head); }
.sdev--slot .sdev__seat { position: absolute; z-index: 1; left: var(--sd-sx); top: var(--sd-sy); width: var(--sd-sw); opacity: 0; transition: opacity 160ms linear; }
.sdev__cart { position: absolute; z-index: 0; left: var(--sd-cx); top: var(--sd-cy); width: var(--sd-cw); transition: transform 600ms cubic-bezier(.45, 0, .2, 1); }
.sdev__cart > * { display: block; width: 100%; }
.sdev.is-in .sdev__cart { transform: translateY(var(--sd-cdy)); }
.sdev.is-seat .sdev__seat { opacity: 1; }
.sdev.is-seat .sdev__dev, .sdev.is-seat .sdev__cart { opacity: 0; transition: opacity 0s linear 160ms; }
