/* ============================================================
   Alpha Finance v2: DEX screener
   A terminal board: a chain strip, four numbers, three highlight cards,
   a segmented tab strip with quick screens and a filter panel, the table
   with heat-tinted change cells, and a detail drawer per token.
   Loaded after alpha.css and article.css; terminal.css follows.
   ============================================================ */

body.scr .section { padding: 18px 0 24px; }

/* ---------- view header ---------- */

.scrhero { border-bottom: 1px solid var(--line); }
.scrhero-inner { padding: 16px 0 14px; }
.scrhero h1 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.scrhero .dek { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 760px; }
.feed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.feed b { font-weight: 500; color: var(--text-2); }
.feed .dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--faint);
  vertical-align: 1px;
}
.feed.is-live .dot { background: var(--lime); box-shadow: 0 0 6px color-mix(in srgb, var(--lime) 60%, transparent); }
.feed.is-stale .dot { background: var(--heat); }
.feed.is-down .dot { background: var(--neg); }

/* ---------- shared bits ---------- */

.up { color: var(--pos-text); }
.down { color: var(--neg-text); }
.ch-ic { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.ch-ic.is-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
}
.scr-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.scr-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); }
.scr-btn:disabled { opacity: 0.5; cursor: default; }
.scr-btn-lime { background: var(--lime); border-color: var(--lime); color: #0a0b0d; }
.scr-btn-lime:hover:not(:disabled) { color: #0a0b0d; background: var(--lime-dim); border-color: var(--lime-dim); }
.scr-help {
  display: inline-flex;
  width: 14px; height: 14px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  cursor: help;
}

/* ---------- chain strip ---------- */

.scr-chains { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.scr-chain-strip {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  padding-right: 28px;
}
.scr-chain-strip::-webkit-scrollbar { display: none; }
.scr-chain-strip button, .scr-menu button[data-net] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}
.scr-chain-strip button:hover { color: var(--text); background: var(--panel); }
.scr-chain-strip button[aria-pressed="true"] { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.scr-chain-strip .ch-ic { width: 14px; height: 14px; }
.scr-chain-strip .all-ic {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: conic-gradient(var(--lime), #627eea, #14f195, #f7931a, var(--lime));
  opacity: 0.85;
}
.scr-more { height: 30px; }
#dd-more.is-on .scr-more { color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
#scr-chains-more { max-height: 380px; overflow-y: auto; min-width: 200px; }
.scr-menu button[data-net] { width: 100%; height: auto; padding: 7px 10px; border-radius: 5px; }
.scr-menu button[data-net] .ch-ic { width: 16px; height: 16px; }

/* ---------- the four numbers ---------- */

.scr-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
}
.scr-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 66px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.scr-stat .sl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scr-stat .sl em { font-style: normal; color: var(--text-2); }
.scr-stat .sv { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; color: var(--text); }
.scr-stat .sv.up { color: var(--pos-text); }
.scr-stat .sv.down { color: var(--neg-text); }
.scr-stat .ss { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 0 4px 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.scr-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.scr-switch i {
  position: relative;
  width: 30px; height: 16px;
  border-radius: 8px;
  background: var(--line-2);
  transition: background 0.15s;
}
.scr-switch i::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.15s;
}
.scr-switch input:checked + i { background: var(--lime); }
.scr-switch input:checked + i::after { transform: translateX(14px); background: #0a0b0d; }

/* ---------- highlight cards ---------- */

.scr-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.scr-hl[hidden] { display: none; }
.scr-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.scr-card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text);
}
.scr-card-h b { font-weight: 600; }
.ci { width: 8px; height: 8px; border-radius: 2px; }
.ci-cat { background: var(--heat); }
.ci-up { background: var(--pos-text); }
.ci-new { background: var(--lime); }
.scr-card-b { padding: 4px; min-height: 172px; }
.scr-card-none { padding: 14px 8px; font-size: 12px; color: var(--muted); }
.cr, .cc-h, .cp {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: none;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
}
.cr { padding: 5px 8px; }
.cr:hover, .cc-h:hover, .cp:hover { background: var(--panel-2); }
.cr .tok-ic { width: 24px; height: 24px; }
.cr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.15; }
.cr-n { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-n small { margin-left: 2px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.cr-s { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.cr-s span { overflow: hidden; text-overflow: ellipsis; }
.cr-s .ch-ic { width: 10px; height: 10px; }
.cr-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.cr-r .up, .cr-r .down { font-size: 11px; }
.cr-r small { font-size: 9.5px; color: var(--muted); }
.cc { padding: 2px 4px 4px; }
.cc + .cc { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 4px; }
.cc-h { justify-content: space-between; padding: 4px 6px; }
.cc-n { font-size: 12.5px; font-weight: 600; color: var(--text); }
.cc-h:hover .cc-n { color: var(--lime); }
.cc-r { display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cc-r small { font-size: 9.5px; color: var(--muted); }
.cc-p { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 2px; }
.cc-p .scr-card-none { padding: 4px 6px; }
.cp { width: auto; gap: 5px; padding: 3px 7px 3px 4px; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }
.cp .tok-ic { width: 18px; height: 18px; }
.cp .tok-ic.is-mono { font-size: 9px; }
.cp b { font-weight: 600; color: var(--text); }
.cp small { margin-left: -3px; font-size: 10px; color: var(--muted); }
.cp .up, .cp .down { margin-left: 2px; font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* ---------- toolbar ---------- */

.scr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}
.scr-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }

.scr-tabs, .scr-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.scr-tabs button, .scr-seg button {
  border: 0;
  background: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}
.scr-tabs button[hidden] { display: none; }
.scr-seg button { padding: 5px 10px; font-size: 12px; }
.scr-tabs button:hover, .scr-seg button:hover { color: var(--text); }
.scr-tabs button[aria-pressed="true"], .scr-seg button[aria-pressed="true"] {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
#scr-win[hidden] { display: none; }

/* quick screens: a labelled line of their own under the toolbar */
.scr-screens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.scr-screens .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.scr-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.scr-presets button {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.scr-presets button:hover { color: var(--text); border-color: var(--line-2); }
.scr-presets button[aria-pressed="true"] { color: #0a0b0d; background: var(--lime); border-color: var(--lime); }

/* dropdowns: a bordered button, a menu beneath */
.scr-dd { position: relative; }
.scr-ddb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.scr-ddb:hover, .scr-ddb[aria-expanded="true"] { color: var(--text); border-color: var(--line-2); }
.scr-ddb svg { width: 13px; height: 13px; color: var(--muted); }
.scr-ddk { color: var(--muted); font-weight: 400; }
.scr-ddb b { font-weight: 500; color: var(--muted); }
.scr-fbtn.is-on { color: var(--text); border-color: var(--lime); }
.scr-fbtn.is-on svg, .scr-fbtn.is-on b { color: var(--lime); }
.scr-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 180px;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.scr-menu[hidden] { display: none; }
.scr-menu button, .scr-menu label {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
}
.scr-menu button:hover, .scr-menu label:hover { background: var(--panel-2); color: var(--text); }
.scr-menu button[aria-pressed="true"] { color: var(--text); }
.scr-menu button[aria-pressed="true"]::after {
  content: "";
  margin-left: auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.scr-menu-cols { right: 0; left: auto; columns: 2; column-gap: 4px; min-width: 280px; }
.scr-menu-cols label { break-inside: avoid; }
.scr-menu-cols input { accent-color: var(--lime); margin: 0; }

.scr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: 230px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  transition: border-color 0.15s;
}
.scr-search:focus-within { border-color: var(--line-2); }
.scr-search svg { width: 13px; height: 13px; flex-shrink: 0; }
.scr-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.scr-search input::placeholder { color: var(--muted); }
.scr-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- filter panel ---------- */

.scr-filter {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.scr-filter[hidden] { display: none; }
.scr-fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.scr-fgrid label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scr-fgrid label[hidden] { display: none; }
.scr-fgrid span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-fgrid span em { font-style: normal; color: var(--text-2); }
.scr-fgrid select, .scr-filter select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}
.scr-fgrid select:focus { border-color: var(--line-2); }
.scr-fchecks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.scr-fchecks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.scr-fchecks input { accent-color: var(--lime); margin: 0; }
.scr-fchecks label:has(input:disabled) { opacity: 0.45; cursor: default; }
.scr-fnote { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.scr-fnote:empty { display: none; }
.scr-fact { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.scr-fhint { font-size: 11.5px; color: var(--muted); }

/* context line: what the board is showing beyond the tab */
.scr-ctx {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 12.5px;
  color: var(--text-2);
}
.scr-ctx[hidden] { display: none; }
.scr-ctx b { color: var(--text); font-weight: 600; }
.scr-ctx button {
  margin-left: auto;
  width: 22px; height: 22px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.scr-ctx button:hover { color: var(--text); background: var(--panel-2); }

/* ---------- the table ---------- */

.scr-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.scr-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

.scr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scr-table[hidden] { display: none; }
.scr-table th, .scr-table td { padding: 0 10px; text-align: right; }
.scr-table th.l, .scr-table td.l, .scr-table td.tok, .scr-table td.risk, .scr-table td.bs { text-align: left; }
.scr-table th {
  height: 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: default;
  position: sticky;
  top: 0;
  z-index: 2;
}
.scr-table th[data-k], .scr-table th[data-ck] { cursor: pointer; user-select: none; }
.scr-table th[data-k]:hover, .scr-table th[data-ck]:hover { color: var(--text-2); }
.scr-table th[aria-sort] { color: var(--text); }
.scr-table th[aria-sort]::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--lime);
  vertical-align: 2px;
}
.scr-table th[aria-sort="ascending"]::after { transform: rotate(180deg); }

.scr-table td {
  height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.scr-table tbody tr:last-child td { border-bottom: 0; }
.scr-table tbody tr[data-key], .scr-table tbody tr[data-cat] { cursor: pointer; }
.scr-table tbody tr:hover td { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.scr-table tr.is-red td { opacity: 0.62; }
.scr-table tr.is-red:hover td { opacity: 1; }
.scr-table td.none { height: 120px; text-align: center; color: var(--muted); white-space: normal; }

.scr-table td.st { width: 56px; padding-right: 0; }
.scr-table td.st .rk { display: inline-block; min-width: 18px; margin-right: 2px; font-family: var(--mono); font-size: 10px; color: var(--faint); text-align: right; }
.star {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  vertical-align: middle;
}
.star svg { width: 13px; height: 13px; }
.star:hover { color: var(--text-2); }
.star.on { color: var(--lime); }

/* token cell: mark, symbol / quote, then name, venue, links */
.scr-table td.tok { min-width: 236px; }
.tok-in { display: flex; align-items: center; gap: 11px; }
.tok-ic {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--panel-2);
  object-fit: cover;
}
.tok-ic.is-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.tok-t { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; min-width: 0; }
.tok-t .nm { font-weight: 600; color: var(--text); }
.tok-t .nm a { color: inherit; }
.tok-t .nm a:hover { color: var(--lime); }
.tok-t .nm small { margin-left: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tok-t .sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.tok-t .sub .t { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.tok-t .sub .t.cat-d { max-width: 420px; }
.tok-t .sub em { font-style: normal; color: var(--faint); }
.tok-links { display: inline-flex; gap: 2px; margin-left: 2px; }
.tl {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--faint);
  cursor: pointer;
}
.tl svg { width: 11px; height: 11px; }
.tl:hover { color: var(--text); background: var(--panel-2); }
.tl.ok { color: var(--lime); }

.scr-table td.cap { color: var(--text); font-weight: 500; }
.scr-table td.px { color: var(--text); }
.fdv { color: var(--muted); }
.fdv::after { content: " FDV"; font-size: 9px; letter-spacing: 0.06em; color: var(--faint); }

/* buys against sells: the count and a bar of the buy share */
.scr-table td.bs { min-width: 110px; }
.bs-n { display: block; font-size: 11.5px; color: var(--text-2); }
.bs-n b { font-weight: 500; color: var(--pos-text); }
.bs-bar { display: block; width: 84px; height: 3px; margin-top: 4px; border-radius: 2px; background: color-mix(in srgb, var(--neg) 45%, transparent); overflow: hidden; }
.bs-bar i { display: block; height: 100%; background: var(--pos); }

/* change cells: tinted by size of the move, the way a heatmap reads */
.scr-table td.chg { color: var(--text-2); }
.scr-table td.chg.up { color: var(--pos-text); background: rgba(46, 169, 142, var(--a, 0)); }
.scr-table td.chg.down { color: var(--neg-text); background: rgba(224, 96, 77, var(--a, 0)); }
.scr-table td.chg.none { height: auto; text-align: right; color: var(--faint); }
.scr-table td.chg.is-win { font-weight: 600; }

/* risk: the dot and the flags */
.scr-table td.risk { min-width: 96px; }
.rk-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 0; }
.rk-dot.is-green { background: var(--pos-text); }
.rk-dot.is-amber { background: var(--heat); }
.rk-dot.is-red { background: var(--neg-text); }
.flag {
  display: inline-block;
  margin-right: 3px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: help;
}
.flag.more { color: var(--faint); }

/* column toggles */
.scr-table.no-cap [data-c="cap"], .scr-table.no-price [data-c="price"], .scr-table.no-age [data-c="age"],
.scr-table.no-tx24 [data-c="tx24"], .scr-table.no-vol24 [data-c="vol24"], .scr-table.no-traders24 [data-c="traders24"],
.scr-table.no-bs [data-c="bs"],
.scr-table.no-m5 [data-c="m5"], .scr-table.no-h1 [data-c="h1"], .scr-table.no-h6 [data-c="h6"],
.scr-table.no-h24 [data-c="h24"], .scr-table.no-liq [data-c="liq"], .scr-table.no-risk [data-c="risk"] { display: none; }

/* the categories board */
.scr-cats td.tok { min-width: 320px; }
.scr-cats td { height: 50px; }

/* ---------- foot: count, show more ---------- */

.scr-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-height: 44px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 12px;
  color: var(--muted);
}
.scr-count { font-variant-numeric: tabular-nums; }
.scr-foot-r { margin-left: auto; }
#scr-more[hidden] { display: none; }

/* ---------- the detail drawer ---------- */

.scr-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
}
.scr-scrim[hidden] { display: none; }
.scr-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 61;
  width: 460px;
  max-width: 100vw;
  border-left: 1px solid var(--line-2);
  background: var(--bg);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.scr-drawer[hidden] { display: none; }
.scr-drawer-in { padding: 20px 22px 30px; }
.scr-dx {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.scr-dx:hover { color: var(--text); border-color: var(--line-2); }
.dr-h { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.dr-h .tok-ic { width: 44px; height: 44px; }
.dr-h .tok-ic.is-mono { font-size: 16px; }
.dr-t { flex: 1; min-width: 0; }
.dr-n { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.dr-n small { font-size: 12px; font-weight: 500; color: var(--muted); }
.dr-n .star { margin-left: 2px; }
.dr-s { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dr-s span { overflow: hidden; text-overflow: ellipsis; }
.dr-px { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.dr-px b { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); }
.dr-px .up, .dr-px .down { font-size: 12px; }
.dr-px small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dr-ld { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.dr-chart { margin: 16px 0 0; }
.dr-chart canvas { width: 100%; height: 110px; }
.dr-cap { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; color: var(--faint); }
/* the move strip: four readings on one line, hairlines between */
.dr-moves { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.dr-moves span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--panel); }
.dr-moves span + span { border-left: 1px solid var(--line); }
.dr-moves small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); }
/* key figures: two columns of label-value rows, no boxes */
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.kv {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.kv span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kv b { font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.kv b small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
.kv b a { color: var(--lime); }
.kv.is-bad b { color: var(--neg-text); }
.kv.is-warn b { color: var(--heat); }
/* the GT score: one full-width row with its bar */
.dr-gt { padding: 6px 0 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.dr-gt-h { display: flex; align-items: baseline; justify-content: space-between; }
.dr-gt-h span { font-size: 12px; color: var(--muted); }
.dr-gt-h b { font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.dr-gt-h b small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.gtbar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gtbar i { display: block; height: 100%; }
.gtd { display: block; margin-top: 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.02em; color: var(--faint); }
.dr-sec { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 4px; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dr-sec small { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0.06em; text-transform: none; color: var(--faint); }
.dr-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.dr-tags span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 10.5px; color: var(--muted); }
.dr-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.dr-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dr-links a, .dr-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.dr-links a:hover, .dr-copy:hover { color: var(--text); border-color: var(--line-2); }
.dr-copy.ok { color: var(--lime); border-color: var(--lime); }
.dr-copy code { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.dr-flags { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dr-flags li { display: flex; gap: 10px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.dr-flags b { flex-shrink: 0; min-width: 84px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; color: var(--text); padding-top: 2px; }
.dr-pools { display: flex; flex-direction: column; gap: 4px; }
.dr-pools a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.dr-pools a:hover { border-color: var(--line-2); color: var(--text); }
.dr-pools em { font-style: normal; color: var(--faint); }
.dr-pools b { font-weight: 500; color: var(--text); }
.dr-pools small { color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .scr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr-switch { grid-column: 1 / -1; justify-self: end; }
  .scr-fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* the toolbar sits beside a 190px rail, so these widths are the viewport
   at which the pane itself gets tight */
@media (max-width: 1640px) {
  .scr-tabs button { padding: 6px 10px; }
  .scr-search { width: 180px; }
  .scr-search input::placeholder { color: transparent; }
  #dd-cols .scr-ddb > span { font-size: 0; }
  #dd-cols .scr-ddb > span b { font-size: 12.5px; }
}
/* tighter still: the controls take a full line of their own, search filling it */
@media (max-width: 1300px) {
  .scr-right { flex-basis: 100%; margin-left: 0; }
  .scr-search { flex: 1; width: auto; }
  .scr-search input::placeholder { color: var(--muted); }
}
@media (max-width: 900px) {
  .scr-hl { grid-template-columns: 1fr; }
  .scr-card-b { min-height: 0; }
}
@media (max-width: 760px) {
  .scr-tabs { width: 100%; overflow-x: auto; }
  .scr-tabs button { flex: 1; padding: 6px 8px; font-size: 12px; }
  .scr-table td.tok { min-width: 200px; }
  .scr-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr-drawer { width: 100vw; }
  .scr-stat { height: 60px; padding: 0 10px; }
  .scr-stat .sv { font-size: 16px; }
}
