/* css/terminal.css — terminal.html's own rules. They were an inline <style>
   until 2026-10-22; the pages' CSP refuses inline style
   (style-src 'self', deploy/nginx/elopros.com.conf). */
/* ── the terminal's own shell (docs/store/TERMINAL-REDESIGN.md §1, §2, §6) ──
   The trade area wears none of the store's chrome since 2026-10-24. It keeps
   the store sheet for its rooms' parts (panels, buttons, fields) and this file
   re-tunes them for a tool: neutral chrome, colour only where it means
   something (green up / buy, red down / sell, lime the primary action),
   numbers in the mono face, tighter rows. Everything is scoped to
   body.term-shell, so no store page can inherit it. */
body.term-shell{
  --t-bg:#0b0d0c; --t-hull:#0f1211; --t-panel:#131715; --t-raise:#181d1a;
  --t-line:#232a25; --t-ink:#e6ebe7; --t-muted:#98a39a; --t-dim:#7d877f;
  --t-up:#16c784; --t-down:#f0454f;
  --store-link:var(--t-ink); --store-line:var(--t-line); --store-bg:var(--t-bg);
  background:var(--t-bg); background-image:none; font-size:14px}
body.term-shell a:hover{text-decoration:none;color:#fff}
/* a link inside a sentence keeps an underline, since it is no longer green */
body.term-shell :is(.note,.mono-note,.row-sub,.warnbox,.term-risk) a{
  text-decoration:underline;text-decoration-color:rgba(230,235,231,.35);
  text-underline-offset:2px}

/* the top bar: one row */
.term-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;
  gap:6px 18px;min-height:52px;padding:0 16px;background:var(--t-hull);
  border-bottom:1px solid var(--t-line)}
.term-top .wordmark{min-height:44px;font-size:1.08rem}
.term-switch{font-size:.72rem;color:var(--t-muted);border:1px solid var(--t-line);
  border-radius:3px;padding:3px 8px;white-space:nowrap}
.term-switch::after{content:" ↗"}
.term-switch:hover{border-color:var(--t-muted)}
.term-tabs{display:flex;gap:2px;align-items:center;overflow-x:auto;
  scrollbar-width:none}
.term-tabs::-webkit-scrollbar{display:none}
.term-tabs a,.term-tools a[data-pane]{display:flex;align-items:center;min-height:44px;
  padding:0 10px;color:var(--t-muted);white-space:nowrap;font-weight:500;
  border-bottom:2px solid transparent}
.term-tabs a:first-letter{text-transform:uppercase}
.term-tabs a:hover,.term-tools a[data-pane]:hover{color:var(--t-ink)}
.term-tabs a[aria-current="true"]{color:var(--t-ink);border-bottom-color:var(--t-ink)}
.term-tools{margin-left:auto;display:flex;align-items:center;gap:10px}
.term-tools a.term-dep{min-height:32px;padding:0 12px;border:1px solid var(--t-line);
  border-radius:3px;color:var(--t-ink);font-weight:600}
.term-tools a.term-dep:hover{border-color:var(--t-muted)}
.term-tools a.term-dep[aria-current="true"]{border-color:var(--t-ink)}
.term-tools a.term-gear{font-size:.85rem}
.term-tools a.term-gear[aria-current="true"]{color:var(--t-ink);border-bottom-color:var(--t-ink)}
.term-top .mast-acct{grid-area:auto}
.term-top .acct-name,.term-top button.acct-name{color:var(--t-ink)}
.term-top .mast-acct[data-state="here"] .acct-bal{color:var(--t-muted)}

/* the ticker: every pair, one line, scrolls sideways */
.term-strip{display:flex;align-items:center;gap:12px;min-height:32px;padding:0 16px;
  background:var(--t-bg);border-bottom:1px solid var(--t-line);
  font-variant-numeric:tabular-nums}
.term-tape{display:flex;gap:22px;align-items:center;overflow-x:auto;
  scrollbar-width:none;flex:1;min-width:0}
.term-tape::-webkit-scrollbar{display:none}
.term-tape .tk-pair{display:inline-flex;gap:7px;align-items:baseline;white-space:nowrap;
  font-size:.8rem;color:var(--t-ink)}
.term-tape .tk{font-weight:700;letter-spacing:.02em}
.term-tape .tv{font-family:var(--mono)}
.term-tape .tc{font-family:var(--mono);font-size:.74rem;color:var(--t-dim)}
.term-tape .tc.up{color:var(--t-up)}
.term-tape .tc.down{color:var(--t-down)}
.term-tape .dim{color:var(--t-dim)}
.term-strip .term-ca{order:1;flex:none;width:auto;margin-left:0;min-height:24px;padding:2px 8px;font-size:.72rem}
.term-ca-short{display:none;font-family:var(--mono);font-size:.72rem}

/* sub-tabs: the section you are in */
.term-sub{display:flex;gap:4px;padding:6px 16px;border-bottom:1px solid var(--t-line);
  background:var(--t-bg);overflow-x:auto;scrollbar-width:none}
.term-sub a{padding:5px 12px;border-radius:3px;color:var(--t-muted);font-size:.82rem;
  white-space:nowrap}
.term-sub a:first-letter{text-transform:uppercase}
.term-sub a:hover{color:var(--t-ink);background:var(--t-raise)}
.term-sub a[aria-current="true"]{color:var(--t-ink);background:var(--t-raise);
  box-shadow:inset 0 0 0 1px var(--t-line)}

/* the status bar: pinned where the screen can spare the row */
.term-status{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;
  padding:6px 16px;background:var(--t-hull);border-top:1px solid var(--t-line);
  font-size:.74rem;color:var(--t-muted)}
.term-status .term-risk{margin:0;flex:1;min-width:0}
.term-status .term-health{font-family:var(--mono);cursor:help}
.term-status .term-health:not(.dim){color:#e0b341}
.term-doors{display:flex;gap:14px}
.term-doors a{color:var(--t-muted)}
.term-doors a:hover{color:var(--t-ink)}
@media (min-width:900px){
  .term-status{position:fixed;left:0;right:0;bottom:0;z-index:30;min-height:30px;
    padding-top:0;padding-bottom:0}
  body.term-shell main{padding-bottom:44px}
}

.pane[hidden]{display:none}
/* UNLISTED: parts that still work and that nothing links yet (test_site.py
   _UNLISTED). !important because a room toggles `hidden` on its own sections
   — pools.js shows the add form when a wallet connects — and js/terminal.js
   lifts the mark when the address names the part. */
[data-unlisted]{display:none!important}
/* a pane whose mount threw: grey it, keep the message readable */
.pane.pane-dark>*{opacity:.35;pointer-events:none}
.pane.pane-dark .pane-fail{opacity:1;pointer-events:auto}
.pane-fail{padding:12px 16px;border:1px solid var(--t-line,#2a2c28);
  margin:12px auto;max-width:62em}
/* the rooms' landing copy stays on the rooms' own pages */
.pane .lede{display:none}

/* ── the rooms, re-tuned for a tool ────────────────────────────────────────
   A pane is not a page: no kicker, no marketing headline, no green tick under
   every section title. Titles are small and in sentence case; panels are flat
   and closer together; tables are dense. */
body.term-shell .wrap{max-width:1440px;padding:0 16px 24px}
body.term-shell .row{margin-top:16px}
body.term-shell .row-head{margin-bottom:10px;padding-bottom:0;border-bottom:0}
body.term-shell .row-head::after,body.term-shell .row>h2::after{display:none}
body.term-shell .row-head h2,body.term-shell .row>h2,body.term-shell .pane h2{
  font-family:var(--body);font-weight:600;font-size:1rem;letter-spacing:0;
  text-transform:none;color:var(--t-ink)}
body.term-shell .row-head h2:first-letter,body.term-shell .pane h2:first-letter{text-transform:uppercase}
body.term-shell .row>h2{border-bottom:0;padding-bottom:0;margin-bottom:10px}
/* the money sheet's section titles (#main section > h2) outrank a class */
body.term-shell #main section>h2{font-family:var(--body);font-weight:600;font-size:1rem;
  letter-spacing:0;text-transform:none;border-bottom:0;padding-bottom:0;margin-bottom:10px}
body.term-shell #main section>h2::after{display:none}
/* the money sheet's labels and table heads (#main label, #main th, .mrow>.mk) shout
   in letter-spaced capitals; inside the terminal they are sentence case */
body.term-shell #main label,body.term-shell #main th,body.term-shell #main .mrow>.mk,
body.term-shell #main .klabel{text-transform:none;letter-spacing:0;font-family:var(--body)}
body.term-shell #main .mk-unit{color:inherit}
.rwd{margin-bottom:6px}
body.term-shell .pane .kicker{display:none}
body.term-shell .pane .page-head{padding:16px 0 4px}
body.term-shell .pane .page-head h1{font-family:var(--body);font-size:1.15rem;
  font-weight:600;letter-spacing:0}
body.term-shell .panel{background:var(--t-panel);background-image:none;
  border-color:var(--t-line);box-shadow:none;padding:12px}
body.term-shell .panel h3{font-family:var(--body);letter-spacing:.02em;
  text-transform:none;font-size:.78rem;font-weight:600}
body.term-shell .note{font-size:.82rem}
body.term-shell :is(table) td,body.term-shell :is(table) th{padding-top:6px;padding-bottom:6px}
body.term-shell :is(table) th{font-family:var(--body);letter-spacing:.02em;
  text-transform:none;font-size:.72rem;color:var(--t-dim)}
body.term-shell td{font-variant-numeric:tabular-nums}

/* ── phone: the sections become a bottom bar ─────────────────────────────── */
@media (max-width:760px){
  .term-top{gap:8px;padding:0 12px}
  .term-switch{display:none}
  .term-top .wordmark{font-size:0;gap:0}
  .term-top .wordmark::before{width:26px;height:26px}
  .term-tools{gap:8px}
  .term-tools a.term-gear{display:none}
  .term-tools a.term-dep{min-height:30px;padding:0 10px;font-size:.8rem}
  .term-tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;justify-content:space-around;
    background:var(--t-hull);border-top:1px solid var(--t-line);
    padding:0 4px env(safe-area-inset-bottom)}
  .term-tabs a{flex:1;justify-content:center;min-height:52px;padding:0 4px;
    font-size:.78rem;border-bottom:0;border-top:2px solid transparent}
  .term-tabs a[aria-current="true"]{border-top-color:var(--t-ink)}
  body.term-shell{padding-bottom:56px}
  .term-strip{padding:0 12px}
  .term-strip .term-ca:has(.term-ca-short) [data-reserve-ca]{display:none}
  .term-strip .term-ca .term-ca-short{display:inline}
  .term-strip .term-ca[data-copied="copied"] .term-ca-short{display:none}
  .term-strip .term-ca[data-copied="select it"] [data-reserve-ca]{display:inline}
  .term-strip .term-ca[data-copied="select it"] .term-ca-short{display:none}
  .term-sub{padding:6px 12px}
  .term-doors{display:none}
  body.term-shell .wrap{padding:0 12px 20px}
}

/* pane styles: holdings (hse-) */

/* Page-local only. Every class is prefixed `hh-` so it cannot collide with a
   shared rule (test_site.py's cascade gate). */
.hh-addr { font-family: var(--mono); font-size: .78rem; word-break: break-all; }
.hh-num { font-family: var(--mono); white-space: nowrap; }
.hh-role { display: block; color: var(--store-muted); font-size: .78rem;
           line-height: 1.5; margin-top: 3px; }
.hh-none { color: var(--store-muted); font-style: italic; }
/* section jumps: plain links, so they work with JS off */
.hh-jump { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 2px; }
.hh-jump a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; border: 1px solid var(--store-line); border-radius: var(--r-sm);
  background: var(--store-panel); font-family: var(--sg); font-weight: 600;
  font-size: .82rem; letter-spacing: .06em; text-decoration: none;
}
.hh-jump a:hover { border-color: var(--g-core); }
/* the supply bar, painted from live figures by js/holdings.js */
.hh-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden;
          border: 1px solid var(--store-line); margin: 10px 0 6px; }
.hh-bar span { display: block; height: 100%; }
.hh-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem;
          color: var(--store-muted); margin: 0 0 4px; }
.hh-key b { color: var(--store-ink); font-weight: 600; }
.hh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px;
          margin-right: 6px; vertical-align: baseline; }
/* `.tile .n` breaks words, which splits a long figure mid-digit. This row keeps
   figures whole and lays six tiles out 3 or 6 across. */
@media (min-width: 641px) {
  #hh-tiles { grid-template-columns: repeat(3, 1fr); }
  #hh-tiles .n { word-break: normal; overflow-wrap: normal;
                 font-size: clamp(1rem, 1.5vw, 1.3rem); }
}
@media (min-width: 1100px) { #hh-tiles { grid-template-columns: repeat(6, 1fr); } }
/* the tape's kind badges; `sell` is the one red label */
.hh-kind { font-family: var(--sg); font-weight: 700; font-size: .68rem;
           letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
           border: 1px solid var(--store-line); border-radius: var(--r-sm);
           padding: 2px 7px; color: var(--store-muted); }
.hh-kind[data-k="launch"] { color: var(--store-gold); border-color: rgba(201, 162, 39, .45); }
.hh-kind[data-k="buy"] { color: var(--g-live); border-color: rgba(0, 200, 5, .45); }
.hh-kind[data-k="sell"] { color: var(--breach-red); border-color: rgba(255, 59, 48, .55); }
.hh-kind[data-k="unresolved"] { color: var(--store-gold); border-color: rgba(201, 162, 39, .45); }
/* phone: money.css's 13px type floor cannot see these two classes */
@media (max-width: 560px) {
  .hh-jump a { font-size: max(13px, .82rem); }
  .hh-kind { font-size: max(13px, .68rem); letter-spacing: .06em; }
}

/* pane styles: the drop bar (bar-); the mint pane (mnt-) shares them */

/* Page-local layout only; every colour is a store token. */
.plate-state{display:grid;gap:12px;border:1px solid var(--store-line);
  border-left:3px solid var(--store-muted);border-radius:var(--r);
  background:var(--store-panel);padding:13px 15px;margin:16px 0 8px}
.plate-state.is-open{border-left-color:var(--store-gold)}
.plate-state .st{font-family:var(--sg);font-weight:700;font-size:.82rem;
  letter-spacing:.16em;text-transform:uppercase;line-height:1.3;color:var(--store-ink)}
.plate-state.is-open .st{color:var(--store-gold)}
.plate-state .why{font-size:.84rem;color:var(--store-muted);
  line-height:1.5;max-width:56em;margin-top:4px}
.facts{display:grid;gap:10px 20px;
  grid-template-columns:repeat(auto-fit,minmax(108px,1fr));
  border-top:1px solid var(--store-line);padding-top:11px}
.facts div{min-width:0}
.facts b{display:block;font-family:var(--mono);font-size:1rem;
  font-variant-numeric:tabular-nums;color:var(--store-ink);word-break:break-word}
.facts span{display:block;font-family:var(--sg);font-weight:600;font-size:.78rem;
  letter-spacing:.13em;text-transform:uppercase;color:var(--store-muted);margin-top:2px}

/* the level meter. Not `.split`: css/money.css owns that name. */
.level{position:relative;height:22px;border:1px solid var(--store-line);
  border-radius:var(--r);background:var(--store-pit);overflow:hidden;
  margin:14px 0 6px}
.level i{display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--g-core),var(--g-live));
  transition:width .6s ease}
.level-label{font-family:var(--mono);font-size:12.5px;
  color:var(--store-muted);margin:4px 0 0}

/* -- the three steps -------------------------------------------------- */
.steps{display:grid;gap:0;grid-template-columns:repeat(3,1fr);
  border:1px solid var(--store-line);border-radius:var(--r);overflow:hidden;
  margin:16px 0}
.steps > div{padding:18px 20px;background:var(--store-panel)}
.steps > div + div{border-left:1px solid var(--store-line)}
.steps .stepn{font-family:var(--sg);font-size:12px;letter-spacing:.16em;
  color:var(--store-muted);margin-bottom:10px}
.steps h3{margin:0 0 8px;font-family:var(--sg);font-size:19px;
  letter-spacing:.02em;color:var(--store-gold)}
.steps p{margin:0;font-size:14px;line-height:1.6;color:var(--store-muted)}
@media (max-width:720px){
  .steps{grid-template-columns:1fr}
  .steps > div + div{border-left:0;border-top:1px solid var(--store-line)}
}

.askbox{border:1px solid var(--store-line);border-radius:var(--r);
  background:var(--store-pit);padding:20px;margin:10px 0 6px}
.askrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
/* 16px: anything under it makes iOS Safari zoom the page on focus. */
.askrow input{flex:1 1 20em;min-width:0;padding:12px 14px;
  border-radius:var(--r);border:1px solid var(--store-line);background:var(--store-panel);
  color:var(--store-ink);font-family:var(--mono);font-size:16px;min-height:44px}
.askrow input::placeholder{color:var(--store-muted)}
.askrow .btn{padding:12px 22px;font-size:13.5px;min-height:44px}
.askrow .btn:disabled{opacity:.45;cursor:not-allowed}
.askrow .btn-gold:disabled{background:none;color:var(--store-muted);
  border:1px solid var(--store-line)}

.seatrow{border:1px solid var(--store-line);border-radius:var(--r);
  background:var(--store-panel);padding:14px 16px;margin-top:10px}
.seatrow b{font-family:var(--mono);font-size:14px;color:var(--store-ink)}

.tbl{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px}
.tbl th{text-align:left;font-family:var(--sg);font-size:11.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--store-muted);
  padding:8px 10px;border-bottom:1px solid var(--store-line);white-space:nowrap}
.tbl td{padding:11px 10px;border-bottom:1px solid var(--store-line);
  vertical-align:top;color:var(--store-ink)}
.tbl td.num{font-family:var(--mono);font-variant-numeric:tabular-nums;
  color:var(--store-ink);white-space:nowrap}

.warn{border:1px solid var(--store-line);border-left:3px solid var(--breach-red);
  border-radius:var(--r);background:var(--store-panel);padding:14px 16px;
  margin:14px 0;font-size:13.5px;line-height:1.6;color:var(--store-muted)}
.note{font-size:13.5px;line-height:1.65;color:var(--store-muted)}
.sect{margin:38px 0 0}
.axes-h{margin:26px 0 0;font-family:var(--sg);font-size:13px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--store-muted)}
code{font-family:var(--mono);font-size:12.5px;color:var(--store-ink);
  background:var(--store-pit);padding:1px 5px;border-radius:3px;
  overflow-wrap:anywhere}
@media (max-width:520px){ pre{white-space:pre-wrap;overflow-wrap:anywhere} }

/* the phone type floor for this page's own classes */
@media (max-width: 560px) {
  .facts span { letter-spacing: .06em; }
  .facts span, .steps h3, .axes-h, .tbl th,
  .plate-state .st { font-size: max(13px, 1em); }
  .lede a, .note a:not(.btn):not(.btn-quiet) {
    display: inline-block; min-height: 44px; padding: 11px 0 0;
  }
  .readmore .sep { display: none; }
  .readmore a { margin-right: 16px; }
}

/* pane styles: your coins (fol-) */

/* ── the page's state, written by js/wallet.js on body[data-purse] ───────
     away — no address; here — a wallet is connected; read — an address was
     looked up. `away` ships in the markup. */
body[data-purse="here"] .when-away { display: none; }
body[data-purse="away"] .when-here { display: none; }
/* no identity, no identity tile */
body[data-purse="away"] .pb-face { display: none; }

/* the store's own section rhythm, with no extra section padding */
main section { padding-top: 0; }

/* ── the wallet bar: who you are, which chain, the explorer ──────────── */
.pbar { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center;
  justify-content: space-between; }
.pb-id { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1 1 15em; }
.pb-face { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--store-pit);
  border: 1px solid var(--store-line); color: var(--store-muted);
  font: 700 .8rem/1 var(--sg); letter-spacing: .06em; }
.pbar[data-live="1"] .pb-face { border-color: rgba(0, 200, 5, .45); color: var(--g-live); }
.pb-lines { min-width: 0; display: grid; gap: 3px; }
.pb-who { font: 600 1.02rem/1.25 var(--mono); color: var(--store-ink);
  overflow-wrap: anywhere; }
.pb-net { font-size: .84rem; color: var(--store-muted); }
.pb-net.warn { color: var(--store-gold); }
.pb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-acts .btn { min-height: 44px; }
/* the look-up: an address is public, so reading one needs no wallet */
.pb-look { margin-top: 12px; display: grid; gap: 6px; }
/* money.css sets bare labels in tracked caps; this one is a caption */
.pb-look label { font-size: .8rem; color: var(--store-dim); margin: 0;
  text-transform: none; letter-spacing: 0; font-family: var(--body); }
.pb-look-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-look input { flex: 1 1 16em; min-width: 0; min-height: 44px;
  background: var(--store-pit); color: var(--store-ink);
  border: 1px solid var(--store-line); border-radius: var(--r-sm);
  padding: 9px 11px; font: 14px/1.2 var(--mono); }
.pb-look input:focus-visible { outline: 2px solid var(--g-live); outline-offset: 1px; }
.pb-look .btn { min-height: 44px; }

/* ── the launcher pairing: hidden until the button asks for a code. The
   code is typed, never linked (js/launcher-signin.js says why). ──────── */
.pb-pair { margin-top: 12px; display: grid; gap: 10px; justify-items: start; }
.pb-pair-code { font: 700 2.1rem/1.1 var(--mono); letter-spacing: .16em;
  color: var(--store-ink); }
.pb-pair p { margin: 0; font-size: .9rem; color: var(--store-muted); }
/* a proven pairing hides the look-up */
body[data-proven="1"] .pb-look { display: none; }

/* ── the coins: one group per issuer (the platform, then each game), and
   the balance is the biggest thing in each card ─────────────────────── */
.cgroup + .cgroup { margin-top: 18px; }
.cgroup-head { display: flex; align-items: baseline; gap: 6px 12px;
  flex-wrap: wrap; margin-bottom: 8px; }
.cg-name { font: 700 .82rem/1.3 var(--sg); letter-spacing: .14em;
  text-transform: uppercase; color: var(--store-ink); }
a.cg-name { color: var(--g-live); }
.cg-about { font-size: .8rem; color: var(--store-dim); }

.coins { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(202px, 1fr)); }
.coin { background-color: var(--store-panel);
  background-image: linear-gradient(180deg, #181e19 0%, #10140f 100%);
  border: 1px solid var(--store-line); box-shadow: var(--bevel);
  border-radius: var(--r); padding: 12px 14px 4px;
  display: grid; gap: 4px; align-content: start; }
/* ticker left, balance right; a long balance wraps rather than breaking */
.coin-top { display: flex; align-items: baseline; gap: 6px 12px;
  justify-content: space-between; flex-wrap: wrap; }
.coin-k { font: 700 .82rem/1 var(--sg); letter-spacing: .16em;
  text-transform: uppercase; color: var(--store-ink); }
.coin-v { font: 600 1.18rem/1.2 var(--mono); color: var(--store-ink);
  font-variant-numeric: tabular-nums; margin-left: auto; }
/* a pending sentence must not look like a number */
.coin-v.pending { font: 400 .8rem/1.4 var(--body); color: var(--store-dim); }
.coin-why { font-size: .8rem; line-height: 1.45; color: var(--store-muted); }
.coin-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.coin-acts a { font: 600 .8rem/1 var(--sg); letter-spacing: .04em;
  display: inline-flex; align-items: center; min-height: 44px; }

/* clear the strip fixed to the bottom edge on a phone */
.purse-end { padding-bottom: 42px; }

/* this page's own type floor on a phone */
@media (max-width: 560px) {
  .cg-about, .coin-why, .coin-v, .cg-name, .coin-row a,
  .coins a, .cg a, .coin-v.pending, main a[href]:not(.btn):not(.btn-quiet):not(.btn-gold) { font-size: max(13px, 1em); }
}

/* pane styles: the mint (mnt-). Only what the bar's block above lacks:
     the plate, facts, ask box, steps, tables, warn and note rules are shared,
     defined once there. */

.askrow select{flex:1 1 16em;min-width:0;padding:12px 14px;border-radius:var(--r);
  border:1px solid var(--store-line);background:var(--store-panel);color:var(--store-ink);
  font-family:var(--mono);font-size:16px;min-height:44px}
.askrow label{flex:0 0 auto;align-self:center}
.held{display:grid;gap:14px;margin-top:12px}
.held-seat{display:grid;gap:14px;grid-template-columns:120px 1fr;margin:0;
  border:1px solid var(--store-line);border-radius:var(--r);
  background:var(--store-panel);padding:14px 16px;align-items:start}
.held-seat img{width:120px;height:120px;border-radius:var(--r);
  border:1px solid var(--store-line);background:var(--store-bg);display:block}
.held-seat figcaption{min-width:0}
.held-seat figcaption b{display:block;font-family:var(--mono);font-size:14px;
  color:var(--store-ink);margin-bottom:6px}
@media (max-width:560px){
  .held-seat{grid-template-columns:1fr}
  .held-seat img{width:100%;height:auto;max-width:180px}
}
.tbl td small{display:block;color:var(--store-muted);font-size:12.5px;
  line-height:1.5;margin-top:3px}
/* the mint's muted grey, scoped: the strip's .tv.dim keeps its own */
#pane-mint .dim{color:var(--store-muted)}
.mnt-more > summary{cursor:pointer}
.seats{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.seats figure{margin:0;width:132px}
.seats img{width:132px;height:132px;border-radius:var(--r);
  border:1px solid var(--store-line);background:var(--store-bg);display:block}
.seats figcaption{font-family:var(--mono);font-size:12.5px;
  color:var(--store-muted);margin-top:6px}
.ubands{display:grid;gap:14px;margin-top:14px}
.uband{border:1px solid var(--store-line);border-radius:var(--r);
  background:var(--store-panel);padding:16px 18px}
.uband.a{border-left:3px solid var(--store-gold)}
.uband.b{border-left:3px solid var(--store-line)}
.uband.c{border-left:3px solid var(--store-ink)}
.uband > h4{margin:0;font-family:var(--sg);font-size:10.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--store-ink)}
.uband > p.who{margin:5px 0 0;font-size:13.5px;line-height:1.6;color:var(--store-muted)}
.urow{display:grid;gap:2px 12px;grid-template-columns:1fr auto;
  border-top:1px solid var(--store-line);margin-top:13px;padding-top:12px}
.urow b{font-family:var(--mono);font-size:14px;color:var(--store-ink)}
.urow p{grid-column:1/-1;margin:3px 0 0;font-size:13.5px;line-height:1.6;color:var(--store-muted)}
.urow .st{font-family:var(--sg);font-size:11.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--store-muted);white-space:nowrap;align-self:center}
.urow .st.live{color:var(--g-live)}
.never{margin:10px 0 0;padding-left:20px}
.never li{font-size:13.5px;line-height:1.7;color:var(--store-muted);margin-bottom:3px}
.vals{display:flex;gap:5px;flex-wrap:wrap}
.vals span{font-family:var(--mono);font-size:13px;white-space:nowrap;
  border:1px solid var(--store-line);border-radius:var(--r);padding:1px 6px;
  color:var(--store-muted)}
.vals span b{font-weight:600;color:var(--store-ink)}
@media (max-width:560px){
  .urow .st, .vals span, .seats figcaption, .held h4 { font-size: max(13px, 1em); }
}
.sale{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:28px;align-items:center;margin:0 0 44px;padding:26px;
  background:var(--store-panel);border:1px solid var(--store-line);border-radius:var(--r)}
.sale-art{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;min-width:0}
.sale-art img{width:100%;height:auto;display:block;border-radius:calc(var(--r) - 4px);
  background:var(--store-pit);border:1px solid var(--store-line)}
.sale-art img:nth-child(2){transform:scale(1.06)}
.sale-name{font-family:var(--sg);font-size:15px;letter-spacing:.02em;
  text-transform:none;color:var(--store-muted);margin:0 0 6px;font-weight:500}
.sale-count{font-family:var(--mono);font-size:clamp(30px,6vw,52px);
  line-height:1;color:var(--store-ink);letter-spacing:-.02em}
.sale-sub{font-size:14px;color:var(--store-muted);margin:10px 0 20px}
.sale-action .btn{font-size:17px;padding:15px 30px;width:100%;max-width:340px}
.sale-say{font-size:13.5px;color:var(--store-muted);margin:12px 0 0;min-height:1.2em}
.sale-say a{color:var(--store-gold)}
@media (max-width:760px){
  .sale{grid-template-columns:1fr;gap:20px;padding:18px}
  .sale-art img:nth-child(n+4){display:none}
  .sale-action .btn{max-width:none}
}
/* the mint flow overlay: js/mint.js writes every word, from a mined receipt */
.txflow{position:fixed;inset:0;z-index:80;display:grid;place-items:center;
  padding:20px;background:rgba(6,8,6,.82);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.txflow[hidden]{display:none}
.txflow-card{width:min(560px,100%);max-height:calc(100vh - 40px);overflow-y:auto;
  background:var(--store-panel);border:1px solid var(--store-line);
  border-radius:var(--r);padding:26px 26px 22px;box-shadow:0 24px 60px rgba(0,0,0,.55)}
.txflow-rail{display:flex;gap:7px;margin:0 0 18px;list-style:none;padding:0}
.txflow-rail li{flex:1 1 0;height:3px;border-radius:2px;background:var(--store-line)}
.txflow-rail li.on{background:var(--store-gold)}
.txflow-rail li.done{background:var(--g-live)}
.txflow-h{font-family:var(--sg);font-size:20px;line-height:1.25;margin:0 0 8px;
  color:var(--store-ink);letter-spacing:-.01em}
.txflow[data-state="done"] .txflow-h{color:var(--g-live)}
.txflow[data-state="failed"] .txflow-h{color:var(--store-gold)}
.txflow[data-state="confirm"] .txflow-h{color:var(--store-gold)}
.txflow-say{font-size:14px;line-height:1.55;color:var(--store-muted);margin:0}
.txflow-say a{color:var(--store-gold)}
.txflow-say code{font-size:12.5px}
.txflow-act{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.txflow-act .btn{flex:1 1 auto}
.txflow-stage{margin:16px 0 4px;display:none}
.txflow[data-state="done"] .txflow-stage{display:block}
.txflow-face{display:block;width:100%;max-width:260px;margin:0 auto;
  border:1px solid var(--store-line);border-radius:var(--r);
  background:var(--store-pit);image-rendering:pixelated}
.txflow-wait{display:inline-block;width:13px;height:13px;margin-right:9px;
  vertical-align:-1px;border:2px solid var(--store-line);
  border-top-color:var(--store-gold);border-radius:50%;
  animation:txflow-spin .8s linear infinite}
.txflow[data-state="done"] .txflow-wait,
.txflow[data-state="failed"] .txflow-wait{display:none}
@keyframes txflow-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .txflow{-webkit-backdrop-filter:none;backdrop-filter:none}
  .txflow-wait{animation:none;border-top-color:var(--store-line)}
}
@media (max-width:560px){
  .txflow{padding:0;place-items:end stretch}
  .txflow-card{max-height:88vh;border-radius:var(--r) var(--r) 0 0;padding:22px 18px 18px}
}
.txsum{width:100%;border-collapse:collapse;margin:14px 0 4px;font-size:13.5px}
.txsum th{text-align:left;font-family:var(--sg);font-weight:600;font-size:12px;
  letter-spacing:.11em;text-transform:uppercase;color:var(--store-muted);
  padding:7px 10px 7px 0;vertical-align:top;white-space:nowrap;width:1%}
.txsum td{padding:7px 0;vertical-align:top;color:var(--store-ink);line-height:1.5}
.txsum td b{font-family:var(--mono);font-variant-numeric:tabular-nums;
  font-weight:400;color:var(--store-ink)}
.txsum td small{display:block;color:var(--store-muted);font-size:12.5px;
  line-height:1.5;margin-top:2px}
.txsum tr + tr th, .txsum tr + tr td{border-top:1px solid var(--store-line)}
/* the unlock preview: only the open-round row is highlighted */
.txwarn{list-style:none;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--store-line)}
.txwarn li{font-size:13px;line-height:1.55;color:var(--store-muted)}
.txwarn li + li{margin-top:9px}
.txwarn li b{color:var(--store-ink)}
.txwarn li.now{padding:10px 13px;border:1px solid var(--store-line);
  border-left:3px solid var(--store-gold);border-radius:var(--r);background:var(--store-pit)}
.txwarn li.now b{color:var(--store-gold)}

/* ── the trade room (js/trade.js, prefix trd-): the coin view ───────────────
   TERMINAL-REDESIGN.md §4. Three columns on a desk — pairs, the coin (header,
   chart, tabs), the box with its safety and game cards — fitted to the screen
   so nothing but the panels scrolls (--term-chrome is the shell's height,
   measured by js/terminal.js). Two columns on a laptop; one on a phone, where
   the trade box is a sheet behind a pinned Buy / Sell bar. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.trd-view{display:grid;gap:8px;padding:8px 12px 12px;
  grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"watch watch" "main side"}
.trd-watch{grid-area:watch;min-width:0}
.trd-main{grid-area:main;display:flex;flex-direction:column;gap:8px;min-width:0}
.trd-side{grid-area:side;display:flex;flex-direction:column;gap:8px;min-width:0}
.trd-side .panel+.panel{margin-top:0}
.trd-view .panel{padding:10px 12px}
.trd-watch-h{display:none;font-size:.72rem;color:var(--t-dim);padding:2px 4px 6px}

/* pairs: a row of chips here, a list in the left column on a desk */
.trd-shelf{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.trd-shelf::-webkit-scrollbar{display:none}
.trd-card{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;column-gap:8px;
  padding:6px 8px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-panel);
  color:var(--t-ink);cursor:pointer;text-align:left;font:inherit;min-width:180px}
.trd-card:hover{background:var(--t-raise)}
.trd-card[aria-pressed="true"]{border-color:var(--t-muted);background:var(--t-raise)}
.trd-card img,.trd-card .trd-noicon{grid-row:1/3;width:24px;height:24px;border-radius:50%;object-fit:cover;background:var(--t-line)}
.trd-card-pair{font-weight:600;font-size:.84rem}
.trd-card-pair small{color:var(--t-dim);font-weight:400;margin-left:2px}
.trd-card-price{font-family:var(--mono);font-size:.78rem;text-align:right}
.trd-card-ch{font-family:var(--mono);font-size:.72rem;text-align:right;grid-column:3}
.trd-card-tag{font-size:.7rem;color:var(--t-dim);grid-column:2;grid-row:2}
.trd-card-ch[data-dir="up"]{color:var(--t-up)}
.trd-card-ch[data-dir="down"]{color:var(--t-down)}

/* the coin's header: who it is, then its numbers */
.trd-head{display:flex;flex-direction:column;gap:8px;padding:2px 2px 0}
.trd-headid{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.trd-hicon{width:32px;height:32px;border-radius:50%;object-fit:cover}
.trd-hname{font-size:1.15rem}
.trd-hname b{font-weight:700}
.trd-hquote{color:var(--t-dim);font-weight:400}
.trd-tag{font-size:.72rem;color:var(--t-muted);border:1px solid var(--t-line);border-radius:3px;padding:1px 6px}
.trd-tag:empty{display:none}
.trd-ca{font:inherit;font-family:var(--mono);font-size:.72rem;color:var(--t-muted);background:none;
  border:1px solid var(--t-line);border-radius:3px;padding:2px 7px;cursor:pointer}
.trd-ca:hover{color:var(--t-ink);border-color:var(--t-muted)}
.trd-ca-k{color:var(--t-dim);margin-right:2px}
.trd-hlinks{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.trd-hlinks a{font-size:.78rem;color:var(--t-muted);border:1px solid var(--t-line);border-radius:3px;padding:3px 8px}
.trd-hlinks a:hover{color:var(--t-ink);border-color:var(--t-muted)}
.trd-hlinks a.play{color:#06180a;background:var(--g-live);border-color:var(--g-live);font-weight:700}
.trd-stats{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;margin:0;
  background:var(--t-line);border:1px solid var(--t-line);border-radius:4px;overflow:hidden}
.trd-stats>div{background:var(--t-panel);padding:6px 10px;min-width:0}
.trd-stats dt{font-size:.68rem;color:var(--t-dim);white-space:nowrap}
.trd-stats dd{margin:0;font-family:var(--mono);font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trd-stats dd.up{color:var(--t-up)}
.trd-stats dd.down{color:var(--t-down)}
.trd-stats dd.dim{color:var(--t-dim)}

/* the chart */
.trd-chartbox{display:flex;flex-direction:column;min-width:0}
.trd-bar{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:0 0 6px}
.trd-tfs,.trd-sides{display:flex;gap:4px}
.trd-tfs .btn-quiet{min-height:28px;min-width:0;padding:0 9px;font-size:.78rem}
.trd-tfs [aria-pressed="true"]{border-color:var(--t-muted);color:var(--t-ink);background:var(--t-raise)}
.trd-units{gap:12px}
.trd-seg{display:flex;gap:4px}
.trd-last{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:0;font-variant-numeric:tabular-nums}
.trd-price{font-family:var(--mono);font-size:1.15rem;font-weight:600;color:var(--t-ink)}
.trd-change{font-family:var(--mono);font-size:.82rem}
.trd-change[data-dir="up"]{color:var(--t-up)}
.trd-change[data-dir="down"]{color:var(--t-down)}
.trd-candles{height:360px;width:100%;position:relative}
.trd-chartfoot{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-top:4px;
  font-size:.72rem;color:var(--t-dim)}
.trd-chartfoot a{color:var(--t-dim)}
.trd-chartfoot details{margin-left:auto}
.trd-chartfoot summary{cursor:pointer}

/* the tabs under the chart */
.trd-btabs{display:flex;flex-wrap:wrap;align-items:center;gap:2px;border-bottom:1px solid var(--t-line);
  margin:-4px -4px 6px;padding:0 4px}
.trd-btabs>button{font:inherit;font-size:.82rem;background:none;border:0;border-bottom:2px solid transparent;
  color:var(--t-muted);padding:7px 10px;cursor:pointer;min-height:36px}
.trd-btabs>button:hover{color:var(--t-ink)}
.trd-btabs>button[aria-pressed="true"]{color:var(--t-ink);border-bottom-color:var(--t-ink)}
.trd-feedtabs{display:flex;gap:4px;margin-left:auto}
.trd-feedtabs .btn-quiet{min-height:28px;padding:0 9px;font-size:.74rem}
.trd-feedtabs [aria-pressed="true"]{border-color:var(--t-muted);color:var(--t-ink)}
.trd-trades{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:.78rem;font-variant-numeric:tabular-nums}
.trd-trades th{text-align:left;color:var(--t-dim);font-family:var(--body);font-weight:500;font-size:.7rem;
  position:sticky;top:0;background:var(--t-panel)}
.trd-trades td,.trd-trades th{padding:5px 10px 5px 0;line-height:1.3;border:0;white-space:nowrap}
.trd-trades tbody tr{border-top:1px solid var(--t-line)}
.trd-trades .r{text-align:right}
.trd-trades tr[data-side="buy"] .side{color:var(--t-up)}
.trd-trades tr[data-side="sell"] .side{color:var(--t-down)}
.trd-trades .up{color:var(--t-up)}
.trd-trades .down{color:var(--t-down)}
.trd-trades .kind{font-family:var(--body);font-size:.7rem;color:var(--t-muted)}
.trd-trades a{color:var(--t-muted)}
.trd-trades a:hover{color:var(--t-ink)}
.trd-trades tr[data-new] td{background:rgba(22,199,132,.08)}
.trd-follow{margin-bottom:8px}
.trd-followrow{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.trd-followed{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.trd-followed .btn-quiet{min-height:28px;font-family:var(--mono);font-size:.74rem}
.trd-card-img{display:block;width:100%;max-width:520px;height:auto;margin:10px 0;border:1px solid var(--t-line);border-radius:4px}
.trd-links{display:flex;flex-wrap:wrap;gap:6px}
.trd-links a{min-height:36px;display:inline-flex;align-items:center}

/* the trade box */
.trd-box{position:relative}
.trd-sides{margin:0 0 10px}
.trd-sides .btn-quiet{flex:1;min-height:38px;font-weight:600}
.trd-sides [data-trd-side="buy"][aria-pressed="true"]{background:rgba(22,199,132,.12);border-color:var(--t-up);color:var(--t-up)}
.trd-sides [data-trd-side="sell"][aria-pressed="true"]{background:rgba(240,69,79,.12);border-color:var(--t-down);color:var(--t-down)}
.trd-box .field label{font-family:var(--body);font-size:.74rem;letter-spacing:0;text-transform:none;color:var(--t-muted)}
.trd-box .mk{font-family:var(--body);font-size:.74rem;letter-spacing:0;text-transform:none;color:var(--t-muted)}
.trd-box .mv{font-family:var(--mono);font-size:.8rem}
.trd-box .mrow{min-height:30px;padding:4px 0}
.trd-presetrow{display:flex;gap:4px;align-items:stretch;margin:6px 0 4px}
.trd-presets{display:flex;gap:4px;flex:1;flex-wrap:nowrap}
.trd-presets .btn-quiet,.trd-presets input{flex:1 1 0;min-width:0;min-height:32px;padding:0 4px;font-family:var(--mono);font-size:.78rem}
.trd-presets input{background:var(--t-bg);border:1px solid var(--t-muted);border-radius:3px;color:var(--t-ink);text-align:center}
.trd-edit{font:inherit;background:none;border:1px solid var(--t-line);border-radius:3px;color:var(--t-muted);
  min-width:32px;cursor:pointer}
.trd-edit:hover,.trd-edit[aria-pressed="true"]{color:var(--t-ink);border-color:var(--t-muted)}
.trd-box .trd-slip{width:64px;flex:none;min-height:28px;height:28px;text-align:right;padding:0 6px}
/* sentence case inside the coin view: the money sheet's labels shout */
#main .trd-view .mk,#main .trd-view label,#main .trd-view .klabel,#main .trd-trades th,
#main .trd-chartfoot summary{font-family:var(--body);text-transform:none;letter-spacing:0}
#main .trd-trades th{font-size:.7rem;font-weight:500;color:var(--t-dim);border:0}
.trd-view .mk-unit{color:var(--t-ink)}
.trd-ca{white-space:nowrap}
.trd-route small{color:var(--t-dim)}
.trd-box .warnbox{font-size:.76rem;padding:7px 10px;margin:8px 0}
.trd-box .mact .btn{width:100%;min-height:44px}
.trd-view[data-side="sell"] .trd-box .mact .btn{background:var(--t-down);background-image:none;border-color:var(--t-down);color:#fff;text-shadow:none}
.trd-sheet-x{display:none}
.trd-modes{display:flex;gap:2px;margin:0 0 10px;border-bottom:1px solid var(--t-line)}
.trd-modes button{font:inherit;font-size:.8rem;background:none;border:0;border-bottom:2px solid transparent;
  color:var(--t-muted);padding:4px 10px 6px;cursor:pointer}
.trd-modes button[aria-pressed="true"]{color:var(--t-ink);border-bottom-color:var(--t-ink)}
.trd-limit .mono-note{font-size:.72rem;margin:4px 0 0}
.trd-limit select{min-height:34px;width:100%}

/* the safety card and the game card */
.trd-safe h3,.trd-about h3{margin:0 0 6px}
.trd-safe .mrow{min-height:26px;padding:3px 0}
.trd-safe .mk{font-size:.76rem;color:var(--t-muted)}
.trd-safe .mv{font-family:var(--mono);font-size:.78rem;text-align:right}
.trd-safe .ok{color:var(--t-up)}
.trd-safe .warn{color:#e0b341}
.trd-safe>.mono-note{margin-top:6px;font-size:.7rem}
.trd-about{padding-top:0;overflow:hidden}
.trd-banner{display:block;width:calc(100% + 24px);max-width:none;margin:0 -12px 8px;aspect-ratio:3.1/1;object-fit:cover}
.trd-id{display:flex;gap:10px;align-items:center;margin:8px 0 6px}
.trd-icon{width:40px;height:40px;border-radius:50%;object-fit:cover}
.trd-about .note{margin-top:4px}
.trd-sticky{display:none}
.trd-copy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 8px;
  padding:8px 10px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-bg)}
.trd-copy span{font-size:.8rem}
.trd-copy .btn-quiet{min-height:30px;white-space:nowrap}
.trd-sharerow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0}
.trd-sharerow span{font-size:.8rem;color:var(--t-ink)}
.trd-sharerow small{display:block;font-size:.7rem;color:var(--t-dim)}
.trd-sharerow .btn-quiet{min-height:30px;padding:0 10px;font-size:.74rem}

/* a desk: one screen, the panels scroll inside */
@media (min-width:1200px){
  .trd-view{grid-template-columns:210px minmax(0,1fr) 340px;grid-template-areas:"watch main side"}
  .trd-watch{background:var(--t-panel);border:1px solid var(--t-line);border-radius:4px;padding:6px}
  .trd-watch-h{display:block}
  .trd-shelf{flex-direction:column;overflow:visible}
  .trd-card{min-width:0}
}
@media (min-width:1200px) and (min-height:680px){
  .trd-view{height:calc(100dvh - var(--term-chrome,150px));padding-bottom:8px}
  .trd-watch,.trd-side{overflow-y:auto;min-height:0;scrollbar-width:thin}
  .trd-main{min-height:0}
  .trd-chartbox{flex:1 1 60%;min-height:260px}
  .trd-candles{flex:1;height:auto;min-height:0}
  .trd-bottom{flex:0 1 34%;min-height:170px;overflow:auto;scrollbar-width:thin}
  .trd-side .trd-box{flex:none}
}
@media (max-width:1199px){ .trd-stats{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (max-width:860px){
  .trd-view{grid-template-columns:minmax(0,1fr);grid-template-areas:"watch" "main" "side"}
}
/* a phone: the box is a sheet; Buy / Sell stay pinned above the bottom bar */
@media (max-width:760px){
  .trd-view{padding:6px 10px 70px}
  .trd-card{min-width:150px}
  .trd-hlinks{margin-left:0}
  .trd-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .trd-stats dd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .trd-candles{height:32vh;min-height:200px}
  .trd-chartfoot details{margin-left:0}
  .trd-bottom{overflow-x:auto}
  .trd-sticky{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:calc(53px + env(safe-area-inset-bottom));
    z-index:35;padding:8px 10px;background:var(--t-hull);border-top:1px solid var(--t-line)}
  .trd-sticky .btn{flex:1;min-height:44px;background-image:none;text-shadow:none;box-shadow:none}
  .trd-sticky .trd-sbuy{background:var(--t-up);border-color:var(--t-up);color:#04150d}
  .trd-sticky .trd-ssell{background:var(--t-down);border-color:var(--t-down);color:#fff}
  .trd-box{position:fixed;left:0;right:0;bottom:0;z-index:50;max-height:88vh;overflow-y:auto;
    border-radius:10px 10px 0 0;padding:14px 14px calc(16px + env(safe-area-inset-bottom));
    transform:translateY(105%);transition:transform .18s ease;box-shadow:0 -12px 40px rgba(0,0,0,.6)}
  .trd-view.sheet-open .trd-box{transform:none}
  .trd-sheet-x{display:block;position:absolute;top:6px;right:8px;width:36px;height:36px;font-size:1.3rem;
    background:none;border:0;color:var(--t-muted);cursor:pointer}
  .trd-sides{margin-right:40px}
}
/* ── the screener (js/discover.js, prefix dsc-) ────────────────────────────── */
.dsc{padding:12px 16px 16px}
.dsc-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:10px}
body.term-shell #main .dsc-head h2{margin:0;font-size:1.1rem}
.dsc-filters{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.dsc-filters button{font:inherit;font-size:.8rem;background:none;border:1px solid var(--t-line);border-radius:3px;
  color:var(--t-muted);padding:4px 10px;cursor:pointer;min-height:30px}
.dsc-filters button:hover{color:var(--t-ink);border-color:var(--t-muted)}
.dsc-filters button[aria-pressed="true"]{color:var(--t-ink);background:var(--t-raise);border-color:var(--t-muted)}
.dsc-filters .n{color:var(--t-dim);font-family:var(--mono);font-size:.72rem;margin-left:2px}
.dsc-sep{width:1px;height:20px;background:var(--t-line);margin:0 4px}
#main .dsc-head .dsc-q{width:260px;flex:0 1 260px;max-width:100%;min-height:32px;margin:0 0 0 auto}
.dsc-list{min-height:32px;padding:0 14px}
.dsc-panel{padding:0;overflow-x:auto}
.dsc-table{min-width:760px}
#main .dsc-table th{padding:8px 10px;border-bottom:1px solid var(--t-line)}
#main .dsc-table td{padding:8px 10px}
.dsc-table th button{font:inherit;background:none;border:0;color:inherit;cursor:pointer;padding:0}
.dsc-table th button[aria-pressed="true"]{color:var(--t-ink)}
.dsc-table tbody tr{cursor:pointer}
.dsc-table tbody tr:hover td,.dsc-table tbody tr:focus-visible td{background:var(--t-raise)}
.dsc-table .dim{color:var(--t-dim)}
.dsc-pair{display:flex;align-items:center;gap:10px;font-family:var(--body)}
.dsc-pair img,.dsc-noicon{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--t-line);flex:none}
.dsc-pair b{font-size:.9rem;color:var(--t-ink)}
.dsc-pair small{color:var(--t-dim);margin-left:2px}
.dsc-sub{display:block;font-size:.7rem;color:var(--t-dim);margin-top:1px}
.dsc-buy{font:inherit;font-family:var(--mono);font-size:.74rem;white-space:nowrap;cursor:pointer;
  background:rgba(22,199,132,.12);border:1px solid rgba(22,199,132,.45);color:var(--t-up);border-radius:3px;padding:4px 9px}
.dsc-buy:hover{background:rgba(22,199,132,.22);color:var(--t-up)}
a.dsc-buy{background:none;border-color:var(--t-line);color:var(--t-muted)}
.dsc .mono-note:empty{display:none}
.dsc .mono-note{padding:12px}
@media (max-width:760px){
  .dsc{padding:10px 10px 16px}
  #main .dsc-head .dsc-q{width:100%;flex:1 1 100%;margin:0;order:3}
  .dsc-list{order:2;margin-left:auto}
  .dsc-table{min-width:0}
  .dsc-table .opt{display:none}
  #main .dsc-table td,#main .dsc-table th{padding:8px 5px}
  #main .dsc-table{width:100%;margin:0}
  .dsc-table td:first-child{white-space:normal}
  .dsc-sub{max-width:120px}
  .dsc-buy .amt{display:none}
  .dsc-buy{padding:6px 12px}
}

/* ── the portfolio (js/portfolio.js, prefix pfo-) ─────────────────────────────
   The summary leads; the wallet room above it keeps the connect and look-up
   bar, and its per-game coin cards fold away (the table says the same). */
#pane-coins .page-head,#fol-coins>.row-head,#fol-coin-groups,#fol-coins-note{display:none}
#pane-coins #fol-purse{margin-top:12px}
#pane-coins .pbar{padding:10px 12px}
#pane-coins .pb-acts{gap:6px}
#main #pane-coins .pb-acts .btn{min-height:32px;padding:0 12px;font-size:.78rem;font-family:var(--body);
  letter-spacing:0;background:none;background-image:none;border:1px solid var(--t-line);color:var(--t-muted);
  box-shadow:none;text-shadow:none}
#main #pane-coins .pb-acts .btn:hover{color:var(--t-ink);border-color:var(--t-muted)}
#main #pane-coins .pb-acts #fol-btn-wallet{background:var(--g-live);border-color:var(--g-live);color:#06180a;font-weight:700}
#main #pane-coins .pb-look label{font-family:var(--body);text-transform:none;letter-spacing:0;font-size:.74rem;color:var(--t-dim)}
#main #pane-coins .pb-look input,#main #pane-coins .pb-look .btn{min-height:34px;height:34px}
#main #pane-coins .pb-look{margin-top:8px}
.pfo{max-width:1440px;margin:0 auto;padding:0 16px 16px}
.pfo-state:empty{display:none}
.pfo-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--t-line);
  border:1px solid var(--t-line);border-radius:4px;overflow:hidden;margin:4px 0 10px}
.pfo-tiles>div{background:var(--t-panel);padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.pfo-tiles .k{font-size:.7rem;color:var(--t-dim)}
.pfo-tiles .v{font-family:var(--mono);font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pfo-tiles .v.up{color:var(--t-up)} .pfo-tiles .v.down{color:var(--t-down)} .pfo-tiles .v.dim{color:var(--t-dim)}
.pfo-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:10px;align-items:start}
.pfo-grid .panel+.panel{margin-top:0}
.pfo h3{margin:0 0 8px}
.pfo .pfo-h2{margin-top:18px}
.pfo-sub{display:block;font-family:var(--body);font-size:.7rem;color:var(--t-dim);max-width:260px;
  overflow:hidden;text-overflow:ellipsis}
.pfo-acts{white-space:nowrap}
.pfo-act{font:inherit;font-size:.72rem;background:none;border:1px solid var(--t-line);border-radius:3px;color:var(--t-muted);
  padding:3px 8px;margin-left:4px;cursor:pointer}
.pfo-act:hover{color:var(--t-ink);border-color:var(--t-muted)}
.pfo-act.sell{color:var(--t-down);border-color:rgba(240,69,79,.4)}
.pfo-sellg{margin-left:8px;font-size:.72rem;color:var(--t-dim)}
#pane-coins #fol-coins{margin-top:0}
@media (max-width:980px){ .pfo-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:760px){
  .pfo{padding:0 10px 16px}
  .pfo-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pfo-tiles>div:first-child{grid-column:1/-1}
  .pfo-table .opt,.pfo-table .ph,.pfo-sellg{display:none}
  #main .pfo-table td,#main .pfo-table th{padding:8px 5px}
  .pfo-table td:first-child{white-space:normal}
  .pfo-sub{max-width:150px;white-space:normal}
  .pfo-main{overflow-x:auto}
}

/* ── rewards (js/rewards.js, prefix rwd-) ─────────────────────────────────── */
.rwd{max-width:1440px;margin:0 auto;padding:12px 16px 0}
body.term-shell #main .rwd>h2{margin:0 0 8px}
.rwd .mono-note:empty{display:none}
.rwd-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:10px;align-items:start}
.rwd-grid .panel+.panel{margin-top:0}
.rwd h3{margin:0 0 8px}
.rwd-tiles{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}
.rwd-claim{font-size:.74rem;margin-top:2px}
.rwd-one{margin:0 0 8px}
.rwd-linkrow{display:flex;gap:6px;align-items:center;margin-bottom:6px}
.rwd-for{flex:0 0 70px;font-size:.74rem;color:var(--t-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rwd-linkrow input{flex:1;min-width:0;font-family:var(--mono);font-size:.76rem;min-height:34px}
.rwd-linkrow .btn-quiet{min-height:34px;white-space:nowrap}
@media (max-width:980px){ .rwd-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:760px){ .rwd{padding:10px 10px 0} .rwd-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rwd-linkrow{flex-wrap:wrap} .rwd-for{flex-basis:100%} }

/* ── earn: the bank as one card (js/bank.js, prefix ern-) ───────────────────── */
#pane-earn .tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--t-line);
  border:1px solid var(--t-line);border-radius:4px;overflow:hidden}
#pane-earn .tile{background:var(--t-panel);border:0;border-radius:0;padding:10px 12px;margin:0;box-shadow:none}
#pane-earn .tile .n{font-family:var(--mono);font-size:1.05rem}
#main #pane-earn .tile .l{font-family:var(--body);text-transform:none;letter-spacing:0;font-size:.72rem;color:var(--t-dim)}
@media (min-width:980px){
  #pane-earn .pane-part[data-room="bank"] .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px}
  #pane-earn .pane-part[data-room="bank"] .wrap>*{grid-column:1/-1}
  #pane-earn #ern-mine,#pane-earn #ern-stake{grid-column:auto}
}
@media (max-width:760px){ #pane-earn .tiles{grid-template-columns:minmax(0,1fr)} }

/* ── NFTs: the collections and the mint, re-tuned ──────────────────────────── */
#main #col-tabs .btn-quiet{min-height:34px;font-family:var(--body);letter-spacing:0;text-transform:none}
.col-card{background:var(--t-panel);border-color:var(--t-line);border-radius:4px}

/* ── search (js/terminal.js) ────────────────────────────────────────────────── */
.term-find{font:inherit;font-size:.8rem;display:flex;align-items:center;gap:8px;min-height:32px;padding:0 10px;
  background:var(--t-bg);border:1px solid var(--t-line);border-radius:3px;color:var(--t-dim);cursor:pointer;min-width:150px}
.term-find:hover{color:var(--t-ink);border-color:var(--t-muted)}
.term-find kbd{margin-left:auto;font-family:var(--mono);font-size:.68rem;border:1px solid var(--t-line);border-radius:3px;padding:0 4px}
.term-search{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.6);display:flex;justify-content:center;
  align-items:flex-start;padding:12vh 16px 16px}
.term-search[hidden]{display:none}
.term-search-box{width:100%;max-width:560px;background:var(--t-panel);border:1px solid var(--t-line);border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);overflow:hidden}
.term-search-box input{width:100%;font:inherit;font-size:1rem;padding:14px 16px;background:transparent;border:0;
  border-bottom:1px solid var(--t-line);color:var(--t-ink);outline:none}
.term-search-list{list-style:none;margin:0;padding:6px;max-height:50vh;overflow-y:auto}
.term-search-list li{display:flex;align-items:baseline;gap:10px;padding:9px 10px;border-radius:4px;cursor:pointer}
.term-search-list li b{font-weight:600;color:var(--t-ink);white-space:nowrap}
.term-search-list li span{font-size:.78rem;color:var(--t-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.term-search-list li[aria-selected="true"]{background:var(--t-raise)}
.term-search-list .term-search-none{color:var(--t-dim);cursor:default}
.term-search-hint{margin:0;padding:8px 14px;font-size:.7rem;color:var(--t-dim);border-top:1px solid var(--t-line)}
@media (max-width:760px){ .term-find{min-width:0} .term-find kbd{display:none} .term-search{padding-top:8vh} }

/* the cross-chain room (js/xswap.js) */
.xs-box{max-width:720px}
.xs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.xs-grid select,.xs-box select{min-height:44px;width:100%}
@media (max-width:560px){.xs-grid{grid-template-columns:1fr}}
/* the collections room (js/collections.js) */
#col-tabs{flex-wrap:wrap}
#col-tabs .btn-quiet{min-height:44px;flex:1 1 120px}
#col-tabs .btn-quiet[aria-pressed="true"]{box-shadow:inset 0 0 0 2px currentColor}
.col-grid{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.col-card{border:1px solid var(--line,#2a2f2a);padding:8px;display:flex;flex-direction:column;gap:4px}
.col-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.col-card .btn{min-height:44px}
#col-mine-h{margin:18px 0 4px}
#col-mine{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
#col-mine .col-card:has(.col-sell){grid-column:1/-1}
#col-mine .col-card:has(.col-sell) img{max-width:160px}
.col-acts{display:flex;flex-wrap:wrap;gap:6px}
.col-acts .btn,.col-acts .btn-quiet{min-height:44px;flex:1 1 auto}
.col-sell{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.col-sell input,.col-sell select{min-height:44px;width:100%;box-sizing:border-box}
.col-lines{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:4px 0}
.col-lines dt{opacity:.75}
.col-lines dd{margin:0;text-align:right;white-space:nowrap}
.col-sell{max-width:420px}
.col-note{color:var(--store-gold)}
/* the signing room (js/signing.js) */
.sig-opt{display:flex;gap:10px;align-items:flex-start;margin:10px 0;min-height:44px}
.sig-opt input{width:22px;height:22px;flex:0 0 auto;margin-top:2px}
.sig-opt,.sig-opt span{text-transform:none;letter-spacing:normal;font-family:inherit;font-size:.95rem;line-height:1.4}
.sig-opt b{font-weight:600}
.trd-tabs{display:flex;gap:6px;margin:6px 0}
.trd-tabs button{font:inherit;padding:4px 10px;border:1px solid var(--t-muted);border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.trd-tabs button[aria-pressed="true"]{background:var(--t-raise);font-weight:600}

/* the account chip: signed out it is one "sign in" button; on a phone, signed
   in, it is the face alone (the balance is a tap away in portfolio) */
.term-top .mast-acct[data-state="away"] .acct-bal,
.term-top .mast-acct[data-state="away"] .acct-face{display:none}
.term-top .mast-acct[data-state="away"] .acct-name{display:flex;align-items:center;min-height:32px;
  padding:0 12px;border:1px solid var(--t-line);border-radius:3px;font-weight:600;white-space:nowrap}
/* the ticker fades out under the CA, so a cut-off price reads as "scroll" */
.term-tape{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);
  mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:24px}
@media (max-width:760px){
  .term-top .mast-acct[data-state="here"] .acct-lines{display:none}
  .term-tools a.term-dep{padding:0 8px}
}
/* the store's `#main section` spacing is for stacked store sections; a pane
   sits right under the sub-tabs */
body.term-shell #main>.pane{margin-top:0}
.ord-alerts{margin-top:14px}
.ord-alerts h3{margin:0 0 4px;font-size:.95rem}
.trd-rowact{text-align:right}
#main .trd-trades .trd-cp{display:inline-flex;align-items:center;min-height:26px;height:26px;width:auto;padding:0 8px;font-size:.72rem;margin-right:6px;vertical-align:middle}
.pfo-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.pfo-badge{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;border:1px solid var(--t-line);
  border-radius:12px;font-size:.78rem;color:var(--t-dim)}
.pfo-badge small{font-size:.7rem}
.pfo-badge[data-state="on"]{border-color:var(--t-up);color:var(--t-ink)}
.pfo-badge[data-state="unknown"]{border-style:dashed}
/* the NFTs room: a collection's face, its shop, then its market */
.col-hero{margin:12px 0 4px;display:flex;gap:16px;align-items:flex-start}
.col-herotext{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.col-heroimg{width:120px;height:120px;flex:none;object-fit:cover;border:1px solid var(--t-line);border-radius:4px;background:var(--t-bg)}
@media (max-width:760px){ .col-heroimg{width:72px;height:72px} }
.col-what{margin:0;color:var(--t-muted);font-size:.88rem;max-width:70ch}
.col-facts{grid-template-columns:repeat(3,minmax(0,1fr));max-width:560px}
.col-heroacts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.col-heroacts .btn,.col-heroacts .btn-quiet{min-height:36px;display:inline-flex;align-items:center;padding:0 14px}
.col-heroacts .col-ca{font-family:var(--mono);font-size:.74rem}
#col h3{margin:16px 0 2px;font-size:.95rem}
.col-shop .col-card img{background:var(--t-bg)}
.col-price{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
.col-price small{font-size:.74rem}
.col-skin .col-covers{font-size:.76rem}
.col-skin .btn,.col-skin .btn-quiet{min-height:40px}
@media (max-width:760px){ .col-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
.trd-pos{margin:0 0 8px;padding:6px 8px;border:1px solid var(--t-line);border-radius:3px;font-size:.8rem;color:var(--t-muted)}
.trd-pos b{color:var(--t-ink);font-weight:600}
.trd-pos [data-dir="up"]{color:var(--t-up)}
.trd-pos [data-dir="down"]{color:var(--t-down)}
#trd-impact[data-level="warn"]{color:var(--t-warn,#e0a020)}
#trd-impact[data-level="high"]{color:var(--t-down);font-weight:600}
#trd-go[data-impact="high"]{background:var(--t-down);border-color:var(--t-down);color:#fff;background-image:none;text-shadow:none}
.col-copybuy{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.col-copybuy .btn,.col-copybuy .btn-quiet{min-height:36px;padding:0 14px}
.col-copybuy .col-say{flex-basis:100%;margin:0}
.col-owned{color:var(--t-ink)}
/* the skins market (skm-) */
.skm-tiles{grid-template-columns:repeat(4,minmax(0,1fr));max-width:720px;margin:10px 0}
.skm-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.skm-q{flex:1 1 220px;max-width:320px}
.skm-table td{vertical-align:middle}
.skm-table tbody tr{cursor:pointer}
.skm-table tbody tr:hover{background:var(--t-raise)}
.skm-table td small{display:block;font-size:.7rem;color:var(--t-dim)}
.skm-name{display:flex;gap:10px;align-items:center;min-width:200px}
.skm-name img{width:40px;height:40px;object-fit:cover;border-radius:3px;background:var(--t-bg);flex:none}
.skm-name b{display:block;font-weight:600}
.skm-sort{all:unset;cursor:pointer;color:inherit;font:inherit}
.skm-sort:focus-visible{outline:1px solid var(--t-ink)}
#skm h3{margin:16px 0 6px;font-size:.95rem}
.skm-back{margin:8px 0;min-height:32px}
.skm-head{display:flex;gap:18px;align-items:flex-start;margin:6px 0 12px}
.skm-big{width:200px;height:200px;object-fit:cover;border:1px solid var(--t-line);border-radius:4px;background:var(--t-bg);flex:none}
.skm-headtext{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.skm-headtext h2{margin:0}
.skm-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
.skm-chart{height:280px;width:100%}
.skm-link{all:unset;cursor:pointer;color:var(--t-ink);text-decoration:underline;text-underline-offset:2px}
@media (max-width:760px){
  .skm-head{flex-direction:column}
  .skm-big{width:100%;height:auto;aspect-ratio:1;max-width:260px}
  .skm-tiles,.skm-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .skm-chart{height:220px}
}
#skm-filters .btn-quiet{white-space:nowrap;min-height:36px;padding:0 12px}
@media (max-width:760px){
  /* a phone keeps what a trader scans first: the skin, the shop price, the last sale; the rest is a tap away */
  .skm-table th:nth-child(n+4),.skm-table td:nth-child(n+4){display:none}
  .skm-table td:nth-child(2) small{display:none}
  .skm-name{min-width:0}
  .skm-table td.skm-name small{display:none}
  .skm-table td.skm-name{gap:8px;font-size:.84rem;white-space:normal}
  .skm-table td.skm-name img{width:32px;height:32px}
}
.col-namelink{all:unset;cursor:pointer;font-weight:700;color:var(--t-ink);text-decoration:underline;text-decoration-color:var(--t-line);text-underline-offset:3px}
.col-namelink:hover{text-decoration-color:var(--t-ink)}
.col-namelink:focus-visible{outline:1px solid var(--t-ink)}
.pfo-skins{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.pfo-skin{all:unset;cursor:pointer;display:flex;gap:8px;align-items:center;width:100%}
.pfo-skin img{width:36px;height:36px;object-fit:cover;border-radius:3px;background:var(--t-bg)}
.pfo-skin small{display:block;color:var(--t-dim);font-size:.72rem}
.pfo-skin:hover span{text-decoration:underline}
.skm-star{all:unset;cursor:pointer;color:var(--t-dim);font-size:1rem;width:20px;text-align:center;flex:none}
.skm-star[aria-pressed="true"]{color:var(--t-warn,#e0a020)}
.skm-star:focus-visible{outline:1px solid var(--t-ink)}
/* trade chat (tc-): a drawer beside every pane; pushes the page on a wide
   screen, covers it on a narrow one */
.term-tools .term-chat{position:relative;min-height:32px;padding:0 12px;border:1px solid var(--t-line);border-radius:3px;
  background:transparent;color:var(--t-ink);font:inherit;font-weight:600;cursor:pointer}
.term-tools .term-chat[aria-expanded="true"]{border-color:var(--t-ink)}
.tc-unread{position:absolute;top:-6px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;
  background:var(--t-up);color:#04150d;font-size:.66rem;line-height:16px;text-align:center}
.tc{position:fixed;z-index:45;right:0;top:52px;bottom:30px;width:340px;display:flex;flex-direction:column;
  background:var(--t-hull);border-left:1px solid var(--t-line)}
.tc[hidden]{display:none}
.tc-head{display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid var(--t-line)}
.tc-room,.tc-live{font-size:.74rem;color:var(--t-dim)}
.tc-live{color:var(--t-up)}
.tc-x{margin-left:auto;all:unset;cursor:pointer;font-size:1.2rem;padding:0 6px;color:var(--t-muted)}
.tc-feed{list-style:none;margin:0;padding:8px 12px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.tc-feed li p{margin:2px 0 0;font-size:.86rem;line-height:1.35;overflow-wrap:anywhere;color:var(--t-ink)}
.tc-who{font-size:.76rem;font-weight:600;color:var(--t-muted)}
.tc-who.checked{color:var(--t-ink)}
.tc-me .tc-who{color:var(--t-up)}
.tc-at{margin-left:6px;font-size:.7rem;color:var(--t-dim)}
.tc-empty{color:var(--t-dim);font-size:.84rem}
.tc-tag{all:unset;cursor:pointer;color:var(--t-up);font-weight:600}
.tc-tag:hover{text-decoration:underline}
.tc-addr{color:var(--t-muted)}
.tc-form{display:flex;gap:6px;padding:8px 12px;border-top:1px solid var(--t-line)}
.tc-form input{flex:1;min-width:0}
.tc-form .btn{min-height:40px;padding:0 14px}
.tc-me-row{padding:0 12px;font-size:.74rem;color:var(--t-dim)}
.tc-lnk{all:unset;cursor:pointer;text-decoration:underline;color:var(--t-muted)}
.tc-namebox{display:flex;gap:6px;padding:6px 12px 0}
.tc-namebox[hidden]{display:none}
.tc-say{margin:4px 12px 0;font-size:.76rem;color:var(--t-muted);min-height:1em}
.tc-fine{margin:4px 12px 10px;font-size:.7rem;color:var(--t-dim)}
@media (min-width:1200px){ body.term-shell.tc-on #main,body.term-shell.tc-on .term-strip,body.term-shell.tc-on .term-sub{margin-right:340px} }
@media (max-width:760px){
  .tc{top:0;bottom:0;width:100%;z-index:60}
  .term-tools .term-chat{padding:0 9px}
}
@media (max-width:1700px){ body.term-shell.tc-on .trd-stats{grid-template-columns:repeat(4,minmax(0,1fr))} }
