/* Confidential, direction A ("Pro terminal") on the EDGE system: one stylesheet for every internal page.
   The redact bar is the one shape: [cap][gap][body]. It covers a size, it is every button, the chosen tab sits on it,
   an input is one you type into, and a private block stamps the chart with it. One face (Geist) at a display weight
   and a text weight. Two accents with one meaning each: coral is private, steel is public. Tokens come from
   landing/EDGE.md and landing/assets/tokens.css; the six "Kay decides" defaults are in DECISIONS-APPLIED.md. */

/* Self-hosted, SIL Open Font License 1.1 (public/fonts/OFL.txt). Geist from the design folder; Geist Mono from Vercel's
   geist 1.7.2 package, the same family and licence. */
@font-face {
  font-family: Geist;
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- ground and tiles ---- */
  --ground: #08080a;
  --tile: #0e0e12; /* panels */
  --tile2: #16161b; /* inputs, rows, tracks */
  --tile3: #1e1e24; /* hover, chosen */
  --hair: #24242c; /* the only rule colour inside tiles */
  --seam: 4px;
  --r-tile: 6px;
  --r-bar: 2px; /* bars, buttons, tabs, inputs: square ends, never a pill */
  /* grounds that mean something */
  --g-public: #0a0f15; /* steel-black: anyone can see */
  --g-private: #170b08; /* coral-black: nobody else can */

  /* ---- text: warm paper on black, two greys ---- */
  --paper: #f2eee8; /* values, headings, the public button */
  --paper2: #c9c4bc; /* body */
  --label: #9d988f; /* labels and captions */
  --on-paper: #0b0b0e;

  /* ---- two accents, one meaning each ---- */
  --coral: #ff664d; /* private only: a covered size, the private balance, the stamp, the hold, a private action */
  --coral-hi: #ff7a64;
  --on-coral: #140604;
  --steel: #8ea7bb; /* public only: what anyone on the chain can read */

  /* ---- the shape ---- */
  --bar: #2c2c33; /* the redact bar's body */
  --bar-col: #1c1c22; /* the redacted quarter hour on a chart, under the candles */
  --cap: var(--coral); /* resolved here, so a cap stays coral on paper too */
  --cap-w: max(2px, 0.16em); /* the cap scales with the text it covers; floored so it never blurs away at 13px */
  --cap-gap: max(1px, 0.06em); /* the hairline between cap and body: what makes the bar ours */

  /* ---- market direction: monochrome, so the coral stamp is the only colour on a chart ---- */
  --up: var(--paper);
  --down: var(--label); /* like the candles: a rise in paper, a fall in grey; the sign carries the direction too */
  --candle-up: #e9e3d8;
  --candle-down: #4d4d58;
  --candle-down-line: #6c6c78;
  --warn: #f0c674; /* something needs you: a fix, a refusal, a trade being checked */

  /* ---- neutrals ---- */
  --rule: var(--hair);
  --rule2: #2a2a31;
  --rule3: #34343d;
  --mute: #4a4a55;
  --hover: #131318;
  --veil: rgba(242, 238, 232, 0.045); /* a well inside a tile, on any ground */

  /* ---- type: one face ---- */
  --f: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --display: var(--f);
  --w-display: 560;
  --track-display: -0.035em;
  --track-sans: -0.01em;
  --fs-1: 13px; /* labels, meta: the floor */
  --fs-2: 14px; /* body, table values */
  --fs-3: 15px; /* inputs, emphasised values, buttons */
  --fs-4: 17px; /* tile heads */
  --fs-5: 24px; /* the hero value in a header */
  --fs-6: 32px; /* dashboard figures */
  --fs-7: 48px; /* the one figure a page exists for */
  --fs-title: clamp(30px, calc(20px + 1.75vw), 44px); /* page titles */

  /* ---- motion: one curve, three durations ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t1: 160ms; /* hover, press */
  --t2: 480ms; /* a bar lifting off a value */
  --t3: 900ms; /* a heading uncovered, a stamp landing */
  --tabbar-h: 54px;
}

/* ---- the record on paper: what gets written down about who sees what. Text tokens turn to ink, a redaction on
   paper is ink, and its cap keeps the coral (--cap was resolved on :root). ---- */
.ground-paper {
  --surface: #f2eee8;
  --paper: #0b0b0e;
  --paper2: #33312d;
  --label: #57534c;
  --hair: #d6d0c5;
  --rule: #d6d0c5;
  --tile: #e8e3d9;
  --tile2: #dfd9ce;
  --tile3: #d5cec2;
  --bar: #0b0b0e;
  --steel: #3a566b;
  --coral: #9e321f;
  --veil: rgba(11, 11, 14, 0.045);
  background: var(--surface);
  color: var(--paper2);
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--paper); font: 400 var(--fs-2)/1.45 var(--f); letter-spacing: var(--track-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
dl, dd { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: var(--r-bar); }
::selection { background: var(--coral); color: var(--on-coral); }
/* only columns of figures take tabular figures: tnum spaces commas like digits */
.t, td, .trow, .fig, .sum dd, .facts dd { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: var(--fs-1); letter-spacing: -0.01em; }
.display { font-family: var(--display); font-weight: var(--w-display); letter-spacing: var(--track-display); }
.up { color: var(--up); }
.down { color: var(--down); }
.lbl { color: var(--label); }
.t2 { color: var(--paper2); }
.coral { color: var(--coral); }
.steel { color: var(--steel); }
.nowrap { white-space: nowrap; }
.only-m-i, .only-m { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g { flex: 1; }
/* tiny prices: the zeros after "0." counted in a subscript, the way traders write them */
.px sub { font-size: 0.72em; position: relative; top: 0.2em; vertical-align: baseline; line-height: 0; margin: 0 0.04em; color: var(--paper2); }
.sol-i { width: 0.92em; height: 0.92em; vertical-align: -0.1em; margin-left: 0.22em; }
.link { color: var(--paper); font-weight: 500; text-decoration: underline; text-decoration-color: var(--label); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--t1) var(--ease); }
.link:hover { text-decoration-color: var(--paper); }

/* ---------- the bar: [cap][gap][body], the one shape ---------- */
/* An inline redaction: covers a size. Its width is a band width, never the hidden thing's own width. */
.redact { position: relative; display: inline-block; width: var(--w, 3.4em); height: 0.72em; margin-left: calc(var(--cap-w) + var(--cap-gap)); vertical-align: -0.06em; border-radius: 1px; background: var(--bar); }
.redact::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * (var(--cap-w) + var(--cap-gap))); width: var(--cap-w); border-radius: 1px; background: var(--cap); }
.redact.dim::before { background: var(--bar); } /* a placeholder: nothing is hidden yet */
/* a mark on a row (a House lot, an example): a short coral bar with its label, never a bordered chip */
.tag { display: inline-flex; align-items: center; gap: 7px; color: var(--paper2); font-size: var(--fs-1); font-weight: 500; white-space: nowrap; line-height: 1.2; }
.tag::before { content: ""; flex: none; width: 3px; height: 0.95em; border-radius: 1px; background: var(--coral); }
.tag.dim { color: var(--label); }
.tag.dim::before { background: var(--bar); }
.tag.pub { color: var(--steel); }
.tag.pub::before { background: var(--steel); }
.tag.priv { color: var(--coral); }
.ground-paper .tag.dim::before { background: var(--hair); } /* an ink bar on paper would read as a redaction */
/* a sample is said in a plain line, never boxed */
.sample { color: var(--label); font-size: var(--fs-1); line-height: 1.5; }
.sample b { color: var(--paper2); font-weight: 500; }
/* waiting: a bar filling, not a ring */
.spin { position: relative; display: inline-block; flex: none; width: 22px; height: 3px; border-radius: 1px; background: var(--hair); overflow: hidden; vertical-align: middle; }
.spin::after { content: ""; position: absolute; inset: 0; background: var(--paper2); transform-origin: 0 50%; animation: fill 1.4s var(--ease) infinite; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 26px; height: 56px; margin: var(--seam) var(--seam) 0; padding: 0 12px 0 14px; background: var(--tile); border-radius: var(--r-tile); }
.top::before { content: ""; position: absolute; left: calc(-1 * var(--seam)); right: calc(-1 * var(--seam)); top: -8px; bottom: calc(-1 * var(--seam)); z-index: -1; background: var(--ground); } /* the seam stays black under a stuck header */
.mark { display: flex; align-items: center; gap: 10px; color: var(--paper); font: 600 19px/1 var(--f); letter-spacing: -0.04em; white-space: nowrap; }
.mark svg { width: 30px; height: 30px; overflow: visible; }
.mark .wm { transform: translateY(-1px); }
.nav { display: flex; align-self: stretch; gap: 22px; color: var(--label); font-weight: 500; white-space: nowrap; } /* the page you're on is the bright one */
.nav a { position: relative; display: flex; align-items: center; transition: color var(--t1) var(--ease); }
.nav a:hover, .nav a.on { color: var(--paper); }
.nav a.on::before, .nav a.on::after { content: ""; position: absolute; bottom: 0; height: 3px; border-radius: 1px; background: var(--paper); }
.nav a.on::before { left: 0; width: 4px; }
.nav a.on::after { left: 7px; right: 0; }
.search { position: relative; display: flex; align-items: center; gap: 9px; width: 300px; height: 36px; padding: 0 8px 0 19px; border-radius: var(--r-bar); background: var(--tile2); color: var(--label); font-size: var(--fs-1); }
.search::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 3px; border-radius: 1px; background: var(--hair); transition: background var(--t1) var(--ease); }
.search:focus-within::before { background: var(--coral); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--paper); font: inherit; font-size: var(--fs-2); letter-spacing: inherit; }
.search input::placeholder { color: var(--label); }
.search kbd { font: 500 var(--fs-1) var(--mono); color: var(--label); background: var(--tile3); border-radius: var(--r-bar); padding: 1px 6px; }
.search svg, .icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.results { position: absolute; left: 0; right: 0; top: 42px; z-index: 40; padding: 6px; border-radius: var(--r-tile); background: var(--tile2); border: 1px solid var(--hair); color: var(--paper); }
.results a { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-bar); }
.results a:hover, .results a.on { background: var(--tile3); }
.results em { font-style: normal; color: var(--label); font-size: var(--fs-1); }
.wal { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: var(--r-bar); background: var(--tile2); font-size: var(--fs-1); white-space: nowrap; color: var(--paper); }
.wal b { font-weight: 500; font-variant-numeric: tabular-nums; }
.wal span.pub { color: var(--steel); }
.wal .priv { color: var(--coral); }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: var(--r-bar); background: var(--tile2); place-items: center; }
.sheet { position: fixed; inset: 64px var(--seam) auto; z-index: 50; padding: 6px; border-radius: var(--r-tile); background: var(--tile2); border: 1px solid var(--hair); }
.sheet a { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: var(--r-bar); font-weight: 500; }
.sheet a.on { background: var(--tile3); }
.sheet a span { color: var(--label); font-weight: 400; font-size: var(--fs-1); text-align: right; }

/* ---------- the dog: it follows the pointer, flicks its blindfold at anything covered, looks away during a hold ---------- */
.dog .head { transform-origin: 32px 40px; transition: transform 0.6s var(--ease); }
.dog .ear-l { transform-origin: 17px 19px; transition: transform 0.5s var(--ease); }
.dog .ear-r { transform-origin: 47px 19px; transition: transform 0.5s var(--ease); }
.dog .tails { transform-origin: 49.6px 30px; }
.dog.flick .tails { animation: flick 0.7s var(--ease); }
.dog.away .head { transform: rotate(-24deg) translateX(-2px) !important; }
.dog.away .ear-l { transform: rotate(10deg); }
@keyframes flick { 25% { transform: rotate(-18deg); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-3deg); } 100% { transform: none; } }

/* ---------- buttons: a bar with a detached cap on its left. Pressing closes the gap: a small seal. ---------- */
.go, .ghost { --btn-bg: var(--tile3); --btn-fg: var(--paper); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px 0 15px; margin-left: 8px; border-radius: var(--r-bar); background: var(--btn-bg); color: var(--btn-fg); font: 500 var(--fs-2)/1 var(--f); letter-spacing: -0.005em; white-space: nowrap; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.go::before, .ghost::before { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 5px; border-radius: var(--r-bar); background: var(--btn-bg); transition: transform var(--t1) var(--ease), background var(--t1) var(--ease); }
.go:hover::before, .ghost:hover::before { transform: translateX(3px); }
.go:active, .ghost:active { transform: translateY(1px); }
/* a public action or navigation: paper */
.go { --btn-bg: var(--paper); --btn-fg: var(--on-paper); }
.go:hover { --btn-bg: #ffffff; }
/* a private action: coral. Move in, list, sell to the house, hold, buy. */
.go.priv { --btn-bg: var(--coral); --btn-fg: var(--on-coral); }
.go.priv:hover { --btn-bg: var(--coral-hi); }
/* secondary: dark */
.ghost:hover { --btn-bg: #27272e; }
.go.wide, .ghost.wide { width: calc(100% - 8px); height: 46px; font-size: var(--fs-3); }
.go[disabled], .go.off, .ghost[disabled] { --btn-bg: var(--tile3); --btn-fg: var(--label); cursor: default; }
.go[disabled]:hover::before, .go.off:hover::before, .ghost[disabled]:hover::before { transform: none; }
.go[disabled]:active, .ghost[disabled]:active { transform: none; }

/* ---------- the tile wall ---------- */
.wall { display: grid; gap: var(--seam); padding: var(--seam); }
.tile { background: var(--tile); border-radius: var(--r-tile); min-width: 0; }
.tile.ground-paper { background: var(--surface); } /* the sheet itself is paper; its wells are its tiles */
.pad { padding: 16px 18px; }
/* tabs: the chosen one sits on a bar with its own cap */
.tabs { display: flex; gap: 22px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--hair); color: var(--label); font-weight: 500; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > * { position: relative; display: flex; align-items: center; flex: none; transition: color var(--t1) var(--ease); }
.tabs > button:hover, .tabs > a:hover { color: var(--paper); }
.tabs .on { color: var(--paper); }
.tabs .on::before, .tabs .on::after { content: ""; position: absolute; bottom: 0; height: 3px; border-radius: 1px; background: var(--paper); }
.tabs .on::before { left: 0; width: 4px; }
.tabs .on::after { left: 7px; right: 0; }
.tabs em { font-style: normal; color: var(--label); margin-left: 7px; font-weight: 400; font-variant-numeric: tabular-nums; }
.tabs .end { margin-left: auto; }
.th { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 16px; padding: 16px 18px 12px; }
.th h2 { font: var(--w-display) 20px/1.2 var(--display); letter-spacing: -0.03em; color: var(--paper); }
.th > :is(a, button) { margin-left: auto; }
.th p { flex: 1 0 100%; order: 2; padding-right: max(0px, calc(100% - 72ch)); color: var(--paper2); font-size: var(--fs-2); line-height: 1.5; text-wrap: pretty; }
.empty { display: grid; gap: 5px; padding: 18px; }
.empty b { font-weight: 500; font-size: var(--fs-3); color: var(--paper); }
.empty span { color: var(--paper2); font-size: var(--fs-2); line-height: 1.5; max-width: 70ch; }

/* page titles: the display setting, uncovered once on load (shell.js) */
.ptitle { font: var(--w-display) var(--fs-title)/1.02 var(--display); letter-spacing: -0.04em; color: var(--paper); text-wrap: balance; }
.uncover .ln { position: relative; display: inline-block; }
.uncover .rb { position: absolute; left: 0; right: 0; top: 0.16em; height: 0.76em; border-radius: 2px; background: var(--bar); transform-origin: 100% 50%; transition: transform var(--t3) var(--ease), opacity var(--t3) var(--ease); pointer-events: none; }
.uncover .rb::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * (var(--cap-w) + var(--cap-gap))); width: var(--cap-w); border-radius: 2px; background: var(--cap); transition: opacity calc(var(--t3) * 0.5) var(--ease); }
.uncover.in .rb { transform: scaleX(0); opacity: 0; } /* no slide: a title sits flush to its tile, so the bar ends inside its word */
.uncover.in .rb::before { opacity: 0; }

/* stats: label over value, no cards */
.st dt { font-size: var(--fs-1); color: var(--label); white-space: nowrap; }
.st dt[title] { cursor: help; text-decoration: underline dotted var(--rule3); text-decoration-thickness: 1px; text-underline-offset: 4px; } /* says there is more on hover */
.st dd { font-size: var(--fs-3); font-weight: 500; color: var(--paper); white-space: nowrap; }
.st dd em { font-style: normal; font-weight: 400; margin-left: 7px; font-size: var(--fs-2); letter-spacing: 0; }
.st dd.coral { color: var(--coral); }
.st dd.big { font: var(--w-display) var(--fs-5)/1.15 var(--display); letter-spacing: -0.035em; }
.chead .st dd.big { font-size: 34px; letter-spacing: -0.04em; } /* the one figure the header exists for */
.st dd.huge { font: var(--w-display) var(--fs-6)/1.1 var(--display); letter-spacing: -0.04em; }

/* segmented strips: 1px seams, and the chosen one sits on a short capped bar */
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; border-radius: var(--r-bar); overflow: hidden; background: var(--hair); }
.segs > * { position: relative; display: grid; place-items: center; height: 32px; padding: 0 10px; background: var(--tile2); color: var(--label); font-size: var(--fs-1); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color var(--t1) var(--ease), background var(--t1) var(--ease); }
.segs > *:hover { color: var(--paper); }
.segs .on { background: var(--tile3); color: var(--paper); }
.segs .on::before, .segs .on::after { content: ""; position: absolute; bottom: 3px; height: 2px; border-radius: 1px; background: var(--paper); }
.segs .on::before { left: 4px; width: 3px; }
.segs .on::after { left: 9px; right: 6px; }
.segs.priv .on::before, .segs.priv .on::after { background: var(--coral); }
.segs .on.pubv::before, .segs .on.pubv::after { background: var(--steel); }
.segs .on.privv::before, .segs .on.privv::after { background: var(--coral); }
.segs [disabled] { color: var(--mute); cursor: default; }
.segs [disabled]:hover { color: var(--mute); }
.segs.auto { grid-auto-columns: auto; display: inline-grid; }
.chk { display: inline-flex; align-items: center; gap: 8px; color: var(--label); font-weight: 500; font-size: var(--fs-1); white-space: nowrap; }
.chk i { width: 13px; height: 13px; border-radius: var(--r-bar); border: 1.5px solid var(--label); display: grid; place-items: center; flex: none; }
.chk.on { color: var(--paper); }
.chk.on i { background: var(--paper); border-color: var(--paper); }
.chk.on i::after { content: ""; width: 6px; height: 3px; border: solid var(--on-paper); border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
.chk.priv.on i { background: var(--coral); border-color: var(--coral); }
.chk.priv.on i::after { border-color: var(--on-coral); }

/* coins */
.ci { flex: none; width: 24px; height: 24px; border-radius: 6px; object-fit: cover; background: var(--tile3); }
.ci.lg { width: 40px; height: 40px; border-radius: 8px; }
.ci.sm { width: 20px; height: 20px; border-radius: 5px; }
span.ci { display: grid; place-items: center; color: var(--paper2); font-size: var(--fs-1); font-weight: 600; }
span.ci.ring { background: #000; }
span.ci.ring svg { width: 78%; height: 78%; }
.cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell b { font-weight: 600; }
.cell span { color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cell:hover b { text-decoration: underline; text-decoration-color: var(--label); text-underline-offset: 3px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-size: var(--fs-1); color: var(--label); padding: 9px 18px; white-space: nowrap; }
td { padding: 9px 18px; font-size: var(--fs-2); border-top: 1px solid var(--rule); white-space: nowrap; }
td.r, th.r { text-align: right; }
tr.go-row { cursor: pointer; }
tr.go-row:hover td { background: var(--hover); }
.bar-c { display: flex; align-items: center; gap: 10px; }
.bar-c .sb { flex: none; width: 140px; height: 5px; background: var(--tile3); border-radius: 1px; overflow: hidden; }
.bar-c .sb i { display: block; height: 100%; background: var(--paper2); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule2) transparent; }

/* ---------- the coin header ---------- */
.chead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 30px; padding: 12px 18px; min-height: 76px; } /* labels share a top line; the big figure hangs below */
.coin { position: relative; display: flex; align-items: center; gap: 12px; margin-right: 4px; }
.cname { display: flex; align-items: center; gap: 7px; font: var(--w-display) 26px/1.1 var(--display); letter-spacing: -0.035em; color: var(--paper); white-space: nowrap; }
.cname .pair { color: var(--label); font-weight: 400; letter-spacing: -0.02em; font-size: 0.72em; }
.cname svg { width: 15px; height: 15px; fill: none; stroke: var(--label); stroke-width: 2; }
.csub { margin-top: 3px; font-size: var(--fs-1); color: var(--label); white-space: nowrap; }
.cmenu { position: absolute; z-index: 25; top: 52px; left: 0; width: 340px; padding: 6px; border-radius: var(--r-tile); background: var(--tile2); border: 1px solid var(--hair); }
.cmenu a { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; padding: 9px 10px; border-radius: var(--r-bar); }
.cmenu a:hover, .cmenu a.on { background: var(--tile3); }
.cmenu a .ci { grid-row: span 2; align-self: center; }
.cmenu span { color: var(--label); font-size: var(--fs-1); }

/* ---------- chart ---------- */
.chart { display: flex; flex-direction: column; min-height: 0; }
.cbar { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; overflow: hidden; }
.cbar button { position: relative; height: 30px; padding: 0 9px; border-radius: var(--r-bar); color: var(--label); font-weight: 500; font-size: var(--fs-1); transition: color var(--t1) var(--ease); }
.cbar button:hover { color: var(--paper); }
.cbar button.on { color: var(--paper); background: var(--tile3); }
.cbar button.on:not(.chk)::before, .cbar button.on:not(.chk)::after { content: ""; position: absolute; bottom: 3px; height: 2px; border-radius: 1px; background: var(--paper); }
.cbar button.on:not(.chk)::before { left: 4px; width: 3px; }
.cbar button.on:not(.chk)::after { left: 9px; right: 6px; }
.cbar button.chk.on { background: none; }
.cbar button[disabled] { opacity: 0.35; cursor: default; }
.cbar .sep { width: 1px; height: 16px; background: var(--hair); margin: 0 7px; flex: none; }
.cbar .clock { color: var(--label); font-size: var(--fs-1); padding-right: 6px; font-variant-numeric: tabular-nums; }
.plot { position: relative; flex: 1; min-height: 0; }
.plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plot text { font-family: var(--f); letter-spacing: 0; }
.legend { position: absolute; left: 14px; right: 90px; top: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: var(--fs-1); color: var(--label); pointer-events: none; font-variant-numeric: tabular-nums; }
.legend b { color: var(--paper); font-weight: 500; }
.legend i { font-style: normal; color: var(--paper2); }
.tip { position: absolute; z-index: 5; width: 272px; padding: 11px 13px; border-radius: var(--r-bar); background: var(--tile3); font-size: var(--fs-1); color: var(--paper2); pointer-events: none; }
.tip b { display: block; color: var(--paper); font-weight: 600; font-size: var(--fs-2); margin-bottom: 4px; }
.tip .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.tip .row span:first-child { color: var(--label); }
.tip .redact { --w: 38px; margin-right: 6px; }
/* the signature: a private block stamps its quarter hour on the chart */
.stamp { cursor: pointer; outline: none; }
.stamp .col { transition: opacity var(--t1) var(--ease); }
.stamp:hover .col, .stamp:focus .col, .stamp.lit .col { opacity: 1 !important; }
.stamp:focus-visible .lane rect:first-child { stroke: var(--paper); stroke-width: 1.5; }
.stamp.land .col { animation: redact-in var(--t3) var(--ease) both; transform-box: fill-box; transform-origin: 50% 0%; }
.stamp.land .cap { animation: cap-in var(--t3) var(--ease) both; animation-delay: 120ms; transform-box: fill-box; transform-origin: 50% 0%; }
.stamp.land :is(.lane, .stag) { animation: lane-in var(--t2) var(--ease) both; animation-delay: 520ms; }
@keyframes redact-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cap-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lane-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- tape ---------- */
.tape { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pin { display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; align-items: center; padding: 11px 16px 12px; border-bottom: 1px solid var(--hair); font-size: var(--fs-1); cursor: default; }
.pin .redact { --w: 36px; height: 12px; }
.pin.has { cursor: pointer; background: var(--g-private); }
.pin.has:hover, .pin.has.lit { background: #1f0f0b; }
.pin:not(.has) .redact::before { background: var(--bar); }
.pin b { font-weight: 500; color: var(--paper); }
.pin p { grid-column: 2; color: var(--paper2); }
.trow { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) 38px 62px; column-gap: 8px; align-items: center; height: 24px; padding: 0 16px; font-size: var(--fs-1); }
.trow > * { position: relative; z-index: 1; }
.trow .r { text-align: right; }
.trow .s { color: var(--label); }
.thead { height: 32px; color: var(--label); }
.trow .depth { display: block; height: 9px; }
.trow .depth i { display: block; height: 100%; min-width: 2px; border-radius: 1px; }
/* depth in the two candle tones: buys light, sells dark, so the tape scans by side without colour */
.trow.buy .depth i { background: var(--candle-up); }
.trow.sell .depth i { background: var(--candle-down); box-shadow: inset 0 0 0 1px var(--candle-down-line); }
/* each print carries its candle, as in the trades table */

.trow.big .r { color: var(--paper); font-weight: 600; }
.trow.sell > :is(.down, .r) { color: var(--label); }
.trow.sell.big .r { color: var(--paper2); }
.tlist { flex: 1; overflow: hidden; }
.tfoot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--hair); font-size: var(--fs-1); color: var(--label); font-variant-numeric: tabular-nums; }
.tfoot b { color: var(--paper); font-weight: 500; }

/* ---------- the trade panel: one column, one button that carries the state ---------- */
.panel { display: flex; flex-direction: column; transition: background-color var(--t2) var(--ease); }
/* the ground says who can see what the button does: steel-black for a public step (a move, a swap), coral-black
   for a private one (list, hold, pay). panel.js sets data-g on the venue. */
.panel:has(.venue[data-g="private"]) { background: var(--g-private); }
.panel:has(.venue[data-g="public"]) { background: var(--g-public); }
.venue { display: grid; grid-template-columns: 1fr 1fr; height: 48px; border-bottom: 1px solid var(--hair); }
.venue button, .venue a { position: relative; display: grid; place-items: center; color: var(--label); font-weight: 600; font-size: var(--fs-3); transition: color var(--t1) var(--ease); }
.venue button:hover, .venue a:hover { color: var(--paper); }
.venue .on { color: var(--paper); }
.venue .on::before, .venue .on::after { content: ""; position: absolute; bottom: 0; height: 3px; border-radius: 1px; }
.venue .on::before { left: 16px; width: 5px; }
.venue .on::after { left: 24px; right: 16px; }
.venue .on.priv::before, .venue .on.priv::after { background: var(--coral); }
.venue .on.pub::before, .venue .on.pub::after { background: var(--steel); }
.pbody { display: flex; flex-direction: column; gap: 13px; padding: 16px; }
.vnote { font-size: var(--fs-1); color: var(--paper2); line-height: 1.5; }
.vnote b { color: var(--paper); font-weight: 600; }
.panel:has(.venue .priv.on) .vnote b { color: var(--coral); }
.panel:has(.venue .pub.on) .vnote b { color: var(--steel); }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--r-bar); overflow: hidden; background: var(--hair); }
.side > * { position: relative; display: grid; place-items: center; height: 36px; background: var(--tile2); font-weight: 600; color: var(--label); transition: color var(--t1) var(--ease); }
.side > *:hover { color: var(--paper); }
.side .on { background: var(--tile3); color: var(--paper); }
.side .on::before, .side .on::after { content: ""; position: absolute; bottom: 4px; height: 2px; border-radius: 1px; background: var(--paper); }
.side .on::before { left: calc(50% - 26px); width: 3px; }
.side .on::after { left: calc(50% - 20px); width: 46px; }
/* the steps: the one under way is a capped bar, done ones are full, the rest are hairlines */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 5px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-1); color: var(--label); }
.steps li { position: relative; min-width: 0; padding-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li::before, .steps li::after { content: ""; position: absolute; top: 0; height: 3px; border-radius: 1px; }
.steps li::before { left: 0; right: 0; background: var(--hair); }
.steps li.done { color: var(--paper2); }
.steps li.done::before { background: var(--paper); }
.steps li.now { color: var(--paper); font-weight: 500; }
.steps li.now::before { left: 6px; background: var(--rule3); box-shadow: inset 34px 0 0 var(--paper); }
.steps li.now::after { left: 0; width: 4px; background: var(--paper); }
.step-l { display: none; font-size: var(--fs-1); color: var(--label); margin-bottom: -6px; }
.step-l b { color: var(--paper); font-weight: 500; }
.bal { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.bal > div { padding: 10px 0 11px; min-width: 0; }
.bal > div + div { padding-left: 14px; border-left: 1px solid var(--hair); }
.bal dt { font-size: var(--fs-1); color: var(--steel); }
.bal dd { margin-top: 2px; font-size: var(--fs-3); font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal dd em { font-style: normal; font-weight: 400; color: var(--label); font-size: var(--fs-1); }
.bal .priv dt { color: var(--coral); }
/* an input: a bar you type into, capped on the left; the cap turns coral on focus or when the field is private */
.field { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 19px; border-radius: var(--r-bar); background: var(--tile2); }
.field::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: 11px; width: 3px; border-radius: 1px; background: var(--hair); transition: background var(--t1) var(--ease); }
.field.focus::before, .field.priv::before, .field:focus-within::before { background: var(--coral); }
.field.bad::before, .field.bad:focus-within::before { background: var(--warn); }
.field > span { color: var(--label); font-size: var(--fs-1); flex: none; }
.field > b { flex: 1; min-width: 0; text-align: right; font-size: var(--fs-3); font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field > b.ph { color: var(--label); font-weight: 400; }
.field > em { font-style: normal; color: var(--label); font-size: var(--fs-1); flex: none; }
.sum { display: grid; gap: 8px; font-size: var(--fs-1); }
.sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.sum dt { color: var(--label); white-space: nowrap; }
.sum dd { text-align: right; color: var(--paper2); }
.sum dd b { color: var(--paper); font-weight: 500; }
.sum .tot { padding-top: 9px; border-top: 1px solid var(--hair); font-size: var(--fs-2); }
.sum .tot dt { color: var(--paper2); }
.sum .tot dd { color: var(--paper); font-weight: 600; font-size: var(--fs-3); }
.sum .redact { --w: 36px; margin-right: 7px; }
/* what the wallet will ask, named before it asks */
.asks { padding-top: 11px; border-top: 1px solid var(--hair); font-size: var(--fs-2); color: var(--paper2); }
.asks p { margin: 0 0 7px; color: var(--paper2); }
.asks ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.asks li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: baseline; }
.asks li > i { font-style: normal; color: var(--label); font-variant-numeric: tabular-nums; }
.asks li > b { font-weight: 400; }
.asks li.done { color: var(--label); }
.asks li.done::after { content: "done"; color: var(--paper2); }
.asks li.wait { color: var(--paper); }
.asks li .spin { align-self: center; }
.why { font-size: var(--fs-2); color: var(--paper2); line-height: 1.5; } /* read, not scanned: the grey is for labels */
.why b { color: var(--paper2); font-weight: 500; }
/* a message: a row with a cap that says its tone */
.msg { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px 11px 19px; border-radius: var(--r-bar); background: var(--veil); color: var(--paper); font-size: var(--fs-1); line-height: 1.5; }
.msg::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 3px; border-radius: 1px; background: var(--paper2); }
.msg.bad::before, .msg.warn::before { background: var(--warn); }
.msg.run::before { display: none; }
.msg.run { padding-left: 13px; color: var(--paper2); }
.msg .spin { margin-top: 8px; }
/* you, and everyone else */
.seen { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: var(--fs-1); }
.seen > div { padding: 10px 0 11px; min-width: 0; }
.seen > div + div { padding-left: 14px; border-left: 1px solid var(--hair); }
.seen dt { color: var(--label); margin-bottom: 3px; }
.seen dd { color: var(--paper); font-variant-numeric: tabular-nums; line-height: 1.6; }
.seen .them dt { color: var(--steel); }
.seen .redact { --w: 36px; margin-right: 7px; }
.done-h { font: var(--w-display) 20px/1.2 var(--display); letter-spacing: -0.03em; color: var(--paper); }
.mini { position: relative; height: 150px; border-radius: var(--r-bar); overflow: hidden; background: var(--ground); }
.mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the size a buyer holds: the bars lift off it. The body slides right and goes, the cap steps left and fades. */
.reveal { position: relative; display: grid; gap: 5px; padding: 14px 14px 15px; border-radius: var(--r-bar); background: var(--veil); overflow: hidden; }
.reveal dt { font-size: var(--fs-1); color: var(--label); }
.reveal dd { position: relative; overflow: hidden; font: var(--w-display) 28px/1.15 var(--display); letter-spacing: -0.035em; color: var(--paper); white-space: nowrap; }
.reveal dd .lbl { font: 400 var(--fs-2)/2 var(--f); letter-spacing: var(--track-sans); }
/* the bars span the whole line, whatever the number, so they never show how many digits sit under them */
.reveal .bars { position: absolute; inset: 2px 0; display: grid; grid-template-rows: 1fr 1fr; gap: 3px; pointer-events: none; }
.reveal .bars i { position: relative; display: block; }
.reveal .bars i::before, .reveal .bars i::after { content: ""; position: absolute; top: 0; bottom: 0; border-radius: 1px; }
.reveal .bars i::before { left: 0; width: 4px; background: var(--cap); transition: transform var(--t2) var(--ease), opacity var(--t2) var(--ease); }
.reveal .bars i::after { left: 6px; right: 0; background: var(--bar); transform-origin: 100% 50%; transition: transform var(--t2) var(--ease), opacity calc(var(--t2) * 0.8) var(--ease); }
.reveal .bars i:nth-child(2)::before, .reveal .bars i:nth-child(2)::after { transition-delay: 55ms; }
.reveal.lifted .bars i::after, .reveal.half .bars i:first-child::after { transform: translateX(18%) scaleX(0); opacity: 0; }
.reveal.lifted .bars i::before, .reveal.half .bars i:first-child::before { transform: translateX(-6px); opacity: 0; }
.reveal .under { transition: opacity var(--t2) var(--ease); }
.reveal:not(.lifted) .under { opacity: 0; }
.reveal .t { color: var(--coral); font-weight: 500; }
.facts { display: grid; gap: 8px; padding: 15px 18px 18px; font-size: var(--fs-2); }
.facts h3 { font: var(--w-display) var(--fs-3)/1.2 var(--display); letter-spacing: -0.02em; color: var(--paper); margin-bottom: 3px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--label); white-space: nowrap; }
.facts dd { color: var(--paper2); text-align: right; }
.facts + .facts { border-top: 1px solid var(--hair); }

/* the button that says what's missing, and the one-click fix under it */
.fixit { position: relative; display: grid; gap: 10px; margin-top: -4px; padding: 11px 13px 12px 19px; border-radius: var(--r-bar); background: var(--veil); color: var(--paper2); font-size: var(--fs-1); line-height: 1.5; }
.fixit::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: 11px; width: 3px; border-radius: 1px; background: var(--warn); }
.fixit .ghost { justify-self: start; height: 32px; padding: 0 13px; font-size: var(--fs-1); }
/* the discount on a block: the biggest number it has, signed and in words */
.disc { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.disc b { font: var(--w-display) var(--fs-6)/1.05 var(--display); letter-spacing: -0.04em; color: var(--paper); }
.disc b.over { color: var(--paper2); }
.disc span { color: var(--label); font-size: var(--fs-1); }

/* what the world sees: every field of a step, and who can see it */
.ledger { display: grid; gap: 10px; font-size: var(--fs-2); }
.ledger .lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ledger h3 { font: var(--w-display) var(--fs-4)/1.2 var(--display); letter-spacing: -0.025em; color: var(--paper); }
.ledger .lh .segs > * { height: 28px; padding: 0 10px; }
.ledger .lsay { color: var(--paper); font-size: var(--fs-2); line-height: 1.45; }
.ledger .lbody { display: grid; gap: 11px; }
.ledger .lg { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--hair); }
.ledger .lgh { color: var(--steel); font: 600 var(--fs-3)/1.25 var(--f); letter-spacing: -0.01em; }
.ledger .lg.desk .lgh, .ledger .lg.you .lgh { color: var(--label); }
.ledger .lg.sealed .lgh { color: var(--coral); }
.ledger .lg dl { display: grid; gap: 4px; }
.ledger .lg dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ledger .lg dt { color: var(--paper2); }
.ledger .lg dd { text-align: right; color: var(--paper); font-variant-numeric: tabular-nums; }
.ledger .lg dd .redact { --w: 46px; }
.ledger .iv { display: none; }
.ledger.mine .iv { display: grid; }
.ledger.mine .pv { display: none; }
.ledger .lmore { display: none; }
.ledger .lfoot { color: var(--paper2); line-height: 1.5; }

/* ---------- sequences of states ---------- */
.seq { display: grid; gap: var(--seam); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: stretch; }
.frame { display: flex; flex-direction: column; gap: var(--seam); min-width: 0; }
.frame > .panel { flex: 1; }
.fcap { display: grid; gap: 3px; padding: 13px 16px; font-size: var(--fs-1); min-height: 84px; align-content: start; }
.fcap b { font: var(--w-display) var(--fs-3)/1.25 var(--display); letter-spacing: -0.02em; color: var(--paper); }
.fcap span { color: var(--label); }
.fcap .count { color: var(--paper2); font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin: 0 var(--seam) var(--seam); padding: 12px 16px; border-radius: var(--r-tile); background: var(--tile); font-size: var(--fs-1); color: var(--label); }
.foot b { color: var(--paper2); font-weight: 500; font-variant-numeric: tabular-nums; }
.foot a { transition: color var(--t1) var(--ease); }
.foot a:hover { color: var(--paper); }

/* ---------- docked trade buttons on a phone ---------- */
.dock { display: none; }
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .search { width: 220px; }
}
@media (max-width: 1100px) {
  .search { display: none; }
  .nav { gap: 16px; } /* six links and the wallet chip fit at 901 */
}
@media (max-width: 1180px) {
  .top:has(.wal) .search { display: none; } /* the wallet chip is wider than Connect */
}
@media (max-width: 900px) {
  .nav { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--tile); border-top: 1px solid var(--hair); }
  .tabbar > * { position: relative; display: grid; place-items: center; color: var(--label); font-weight: 500; font-size: var(--fs-2); }
  .tabbar .on { color: var(--paper); }
  .tabbar .on::before, .tabbar .on::after { content: ""; position: absolute; bottom: 8px; height: 3px; border-radius: 1px; background: var(--paper); }
  .tabbar .on::before { left: 30%; width: 4px; }
  .tabbar .on::after { left: calc(30% + 7px); right: 30%; }
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .sheet { inset: auto var(--seam) calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)); }
  .hide-t { display: none !important; }
  .seq { --cols: 2 !important; }
}
@media (max-width: 860px) {
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 35; padding: 8px; background: var(--tile); border-top: 1px solid var(--hair); }
  .dock .ghost, .dock .go { height: 46px; font-size: var(--fs-3); }
  body.has-dock { padding-bottom: calc(var(--tabbar-h) + 63px + env(safe-area-inset-bottom)); }
  .ledger:not(.open) .lbody, .ledger:not(.open) .lfoot, .ledger:not(.open) .lh .segs { display: none !important; }
  .ledger .lmore { display: inline; }
}
@media (max-width: 640px) {
  :root { --fs-5: 21px; --fs-6: 27px; --fs-7: 36px; }
  .top { gap: 12px; height: 54px; padding: 0 8px 0 10px; }
  .wal { gap: 7px; padding: 0 10px; }
  .wal .pub { display: none; }
  .hide-m { display: none !important; }
  .only-m-i { display: inline !important; }
  .only-m { display: block !important; }
  .chead { gap: 8px 22px; padding: 12px 14px; }
  .cname { font-size: 23px; }
  .seq { --cols: 1 !important; }
  .fcap { min-height: 0; }
  .step-l { display: block; }
  /* the line above says the step in words, so the segments keep their labels for screen readers only */
  .step-l + .steps li > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step-l + .steps li { padding-top: 3px; }
  th, td { padding-left: 12px; padding-right: 12px; }
  .bar-c .sb { width: 50px; }
  .tabs { padding: 0 14px; gap: 18px; }
  .foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
  .foot > span:first-child { grid-column: 1 / -1; }
  .foot .g { grid-column: 1 / -1; height: 1px; margin: 3px 0; background: var(--hair); }
  .th { padding: 13px 14px 9px; }
  .pad { padding: 14px; }
  .facts { padding: 13px 14px 16px; }
  .cbar { padding: 0 4px; }
  .cbar button { padding: 0 7px; }
  .cbar .sep { margin: 0 3px; }
}
@media (max-width: 360px) {
  .cname { font-size: 20px; } /* $CONFIDENTIAL / hSOL fits at 320 */
}
@media (prefers-reduced-motion: reduce) {
  .dog .head, .dog .ear-l, .dog .ear-r { transition: none; }
  .dog.flick .tails, .spin::after, .stamp.land .col, .stamp.land .cap, .stamp.land .lane, .stamp.land .stag { animation: none !important; }
  .spin::after { transform: scaleX(0.5); }
  .reveal .bars i::before, .reveal .bars i::after, .stamp .col, .panel, .go, .ghost, .go::before, .ghost::before { transition: none !important; }
  .go:hover::before, .ghost:hover::before, .go:active, .ghost:active { transform: none; }
  .uncover .rb { display: none; }
}

/* ================= pages ================= */

/* ---------- terminal ---------- */
.term { grid-template-columns: minmax(0, 1fr) 300px 352px; grid-template-rows: auto 648px auto; grid-template-areas: "head head panel" "chart tape panel" "foot foot facts"; }
.term > .chead { grid-area: head; }
.term > .chart { grid-area: chart; }
.term > .tape { grid-area: tape; }
.term > .panel { grid-area: panel; overflow: hidden; }
.term > .bottom { grid-area: foot; }
.term > .side-facts { grid-area: facts; }
.term > .bottom { display: flex; flex-direction: column; }
.bottom .pane { flex: 1 1 0; min-height: 430px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule2) transparent; }
.bottom thead th { position: sticky; top: 0; background: var(--tile); z-index: 1; }
.trades-t td.sd { font-weight: 500; }
.trades-t td.sd.up { font-weight: 600; }
.trades-t td.sd.down { font-weight: 400; }
.trades-t tr.sell td:not(.venue-t) { color: var(--label); }
/* a buy or a sell carries its candle: a paper body, or graphite with its outline */
.trades-t td.sd:is(.up, .down)::before { content: ""; display: inline-block; width: 4px; height: 11px; margin-right: 9px; border-radius: 1px; vertical-align: -1px; background: var(--candle-up); }
.trades-t td.sd.down::before { background: var(--candle-down); box-shadow: inset 0 0 0 1px var(--candle-down-line); }
.trades-t tr.priv td { background: var(--g-private); }
.trades-t .venue-t { color: var(--steel); }
.trades-t tr.priv .venue-t { color: var(--coral); }
@media (max-width: 1240px) {
  .term { grid-template-columns: minmax(0, 1fr) 352px; grid-template-rows: auto 648px minmax(470px, auto) auto; grid-template-areas: "head panel" "chart panel" "tape facts" "foot foot"; }
}
@media (max-width: 860px) {
  .term { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "chart" "panel" "tape" "foot" "facts"; }
  .term > .chart { height: 400px; }
  .term > .tape { height: auto; }
  .term > .panel { overflow: visible; }
  .term .tlist { max-height: 312px; } /* 13 whole rows */
  .bottom .pane { flex: none; min-height: 0; max-height: 520px; }
}
@media (max-width: 640px) {
  .term > .chart { height: 440px; }
  .bottom .tabs { gap: 14px; } /* five tabs on a phone; the holder count is in the header at wider sizes */
  .trades-t :is(th, td) { padding-left: 7px; padding-right: 7px; } /* five columns in a phone's width */
  .trades-t :is(th, td):first-child { padding-left: 14px; }
  .trades-t :is(th, td):last-child { padding-right: 14px; }
  .chead .st.opt { display: none; }
  .chead .st dd.big { font-size: 26px; }
}
