/* The new look (preview, owner 2026-11-05): lit panels with depth, colour that glows only where it means something,
   a white main button. Styling only, on top of app.css. chart.js reads --surface, --border and --muted: 6-digit hex. */
:root {
  --bg: #e9ecf2;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --border: #d5dae3;
  --border-soft: #e7eaf0;
  --radius: 14px;
  --radius-sm: 8px;
  --edge: 0 0 0 1px rgba(20, 26, 38, .07);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .9);
  --float: 0 12px 26px -18px rgba(20, 30, 60, .35);
  --glow-strength: 0;
  --cta: #161a22;
  --cta-ink: #ffffff;
  --cta-hover: #2a303c;
  --send-card: #07533a;
  --send-light: #0f8a5c;
  --send-help: #e8f6ef;
  --bar: rgba(255, 255, 255, .78);
  --shadow: var(--edge), var(--float);
  --ex-binance: #b45309;  /* the exchange letters under All (owner 2026-11-12) */
  --ex-kraken: #6d28d9;
  --ex-hyperliquid: #0f766e;  /* Hyperliquid mint, darker for light pages (owner 2026-11-14, Decision 9) */
  --q-violet: #7a3fd6;  /* the Scanner's quick filter chips (owner 2026-11-18) */
}
:root[data-theme="dark"] {
  --bg: #101319;
  --surface: #1a1f27;
  --surface-2: #232933;
  --border: #2c323d;
  --border-soft: #242a33;
  --text: #e9ecf1;
  --accent: #8fa8ff;
  --accent-soft: #1e2847;
  --up: #35d39a;
  --down: #ff6b63;
  --search-fill: #171b22;
  --edge: 0 0 0 1px rgba(255, 255, 255, .055);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .075);
  --float: 0 14px 28px -18px rgba(0, 0, 0, .85);
  --glow-strength: 1;
  --cta: #f2f4f7;
  --cta-ink: #14171c;
  --cta-hover: #ffffff;
  --send-card: #0b3f2f;
  --send-light: #1f7a5c;
  --send-help: #c9e6da;
  --bar: rgba(22, 26, 33, .78);
  --shadow: var(--edge), var(--float);
  --ex-binance: #f59e0b;
  --ex-kraken: #a78bfa;
  --ex-hyperliquid: #5eead4;
  --q-violet: #c98bff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101319;
    --surface: #1a1f27;
    --surface-2: #232933;
    --border: #2c323d;
    --border-soft: #242a33;
    --text: #e9ecf1;
    --accent: #8fa8ff;
    --accent-soft: #1e2847;
    --up: #35d39a;
    --down: #ff6b63;
    --search-fill: #171b22;
    --edge: 0 0 0 1px rgba(255, 255, 255, .055);
    --lift: inset 0 1px 0 rgba(255, 255, 255, .075);
    --float: 0 14px 28px -18px rgba(0, 0, 0, .85);
    --glow-strength: 1;
    --cta: #f2f4f7;
    --cta-ink: #14171c;
    --cta-hover: #ffffff;
    --send-card: #0b3f2f;
    --send-light: #1f7a5c;
    --send-help: #c9e6da;
    --bar: rgba(22, 26, 33, .78);
    --shadow: var(--edge), var(--float);
    --ex-binance: #f59e0b;
    --ex-kraken: #a78bfa;
    --ex-hyperliquid: #5eead4;
    --q-violet: #c98bff;
  }
}

/* the bar: glass over the page; the open menu a lit underline */
.topbar { background: var(--bar); backdrop-filter: blur(14px) saturate(150%); border-bottom-color: transparent; box-shadow: var(--edge); }
.tabs a[aria-current="page"]::after { left: 12px; right: 12px; height: 2px; box-shadow: 0 0 12px 1px var(--accent); }
.settings-btn, .theme-btn { border-color: transparent; box-shadow: var(--edge); border-radius: 10px; }

/* everything that sits on the page: a lit top edge and real depth instead of a flat outline */
.panel, .table-wrap, .mover-panel, .token-card {
  border-color: transparent; border-radius: var(--radius);
  box-shadow: var(--lift), var(--edge), var(--float);
}
.mover-panel header { border-bottom-color: transparent; }
.mover-list li { border-radius: 8px; }
.token-card .table-wrap, .panel .table-wrap { box-shadow: var(--edge); }

/* controls */
.btn { border-radius: 10px; border-color: transparent; box-shadow: var(--lift), var(--edge); }
.btn:not(:disabled):hover { border-color: transparent; }
.btn.ghost, .btn.link { box-shadow: none; }
.btn.primary { background: var(--cta); border-color: transparent; color: var(--cta-ink); }
.btn.primary:not(:disabled):hover { background: var(--cta-hover); border-color: transparent; }
.btn.danger { border-color: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 45%, transparent); }
.btn.danger-fill { box-shadow: none; }
.segmented { border-color: transparent; border-radius: 11px; padding: 3px; box-shadow: var(--edge); }
.segmented button { border-radius: 8px; }
.segmented button.active { background: var(--surface); box-shadow: var(--lift), var(--edge), 0 2px 6px -2px rgba(0, 0, 0, .35); }
input[type="search"], input[type="number"], input[type="text"], input[type="email"], input[type="password"], select { border-radius: 10px; }
.search-box > input { border-radius: 12px; }

/* a selected filter glows: it says what the page is showing */
.chip { border-color: transparent; box-shadow: var(--edge); }
.chip:hover { border-color: transparent; }
.chip.active {
  border-color: transparent; color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 18px -5px color-mix(in srgb, var(--accent) calc(var(--glow-strength) * 80%), transparent);
}

/* tags: colour means the news's tone, and it glows */
.badge { border-radius: 7px; padding: 2px 8px; width: fit-content; }
#audits-table td:not(.nowrap) { white-space: normal; min-width: 240px; }  /* Code Audit: a summary reads in full, not off the edge */
.badge.ok { box-shadow: 0 0 14px -5px color-mix(in srgb, var(--up) calc(var(--glow-strength) * 100%), transparent); }
.badge.danger { box-shadow: 0 0 14px -5px color-mix(in srgb, var(--down) calc(var(--glow-strength) * 100%), transparent); }
.badge.warn { box-shadow: 0 0 14px -5px color-mix(in srgb, var(--high) calc(var(--glow-strength) * 100%), transparent); }

/* tables: more air between rows; the column bar stays white on slate (the owner's choice, 2026-11-05) */
th, td { padding: 11px 14px; }
thead th { padding-top: 9px; padding-bottom: 9px; }
tbody tr td { transition: background .12s; }

/* the Scanner's market panel: the balance of trends, sized by how many tokens are in each, then the other filters */
.market-panel { margin-bottom: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float); }
.mk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 9px; }
.mk-head h2 { font-size: 15px; }
.mk-balance { display: flex; gap: 3px; flex: 1 0 100%; min-width: 0; margin-bottom: 3px; }
.chip.mk-seg { flex: 1 1 0; min-width: 96px; min-height: 36px; justify-content: center; border-radius: 9px; font-weight: 600; box-shadow: none; white-space: nowrap; }
.mk-seg[data-filter="bullish"] { --seg: var(--up); }
.mk-seg[data-filter="range"] { --seg: var(--muted); }
.mk-seg[data-filter="bearish"] { --seg: var(--down); }
.chip.mk-seg, .chip.mk-seg:hover { color: color-mix(in srgb, var(--seg) 70%, var(--text)); background: color-mix(in srgb, var(--seg) 15%, transparent); }
.chip.mk-seg:hover { background: color-mix(in srgb, var(--seg) 24%, transparent); }
.chip.mk-seg.active {
  color: color-mix(in srgb, var(--seg) 70%, var(--text)); background: color-mix(in srgb, var(--seg) 24%, transparent);
  box-shadow: inset 0 0 0 1px var(--seg), 0 0 18px -5px color-mix(in srgb, var(--seg) calc(var(--glow-strength) * 90%), transparent);
}

/* the Scanner's rows: 24h % the biggest number, trend a dot and a word, the major low and high one bar */
/* lined up at the top, not on a text baseline: a row is then always as tall as its tallest cell (owner 2026-11-05: on the
   owner's screen the rows' second lines were cut off with baselines; it never showed in our test browsers) */
#table tbody td { vertical-align: top; }
/* an alert's whole name, on as many lines as it takes (it was cut with "…") */
td.alerts-cell { min-width: 230px; max-width: 320px; white-space: normal; overflow: visible; }
.alert-pill { display: inline; max-width: none; overflow: visible; padding: 2px 7px; line-height: 1.5; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.alerts-cell .stack-left .sub { white-space: nowrap; }
.pct.big { font-size: 15px; line-height: 1.2; }
.trend.bullish, .trend.bearish, .trend.range { background: none; box-shadow: none; padding-left: 0; padding-right: 0; }
.trend::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
td.major-range { min-width: 210px; }
.mr-bar {
  position: relative; height: 6px; margin: 6px 0 7px; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--down) 55%, transparent), color-mix(in srgb, var(--muted) 30%, transparent) 50%, color-mix(in srgb, var(--up) 55%, transparent));
}
.mr-bar i { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 8px color-mix(in srgb, var(--text) calc(var(--glow-strength) * 65%), transparent); }
.mr-nums { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mr-nums .pct { color: inherit; font-weight: 600; }

/* a scanner tag's side panel (news.js openNewsPop): beside the table, glowing in the news's colour (--news-t) */
.news-pop {
  --t: var(--news-t, var(--muted));
  position: fixed; top: 52px; right: 0; bottom: 0; z-index: 19; width: min(420px, 100vw);
  display: flex; flex-direction: column; overflow-y: auto; outline: none;
  background: radial-gradient(90% 38% at 0% 12%, color-mix(in srgb, var(--t) 20%, transparent), transparent 72%),
    color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--lift), var(--edge), -26px 0 60px -26px rgba(0, 0, 0, .75),
    -12px 0 70px -24px color-mix(in srgb, var(--t) calc(var(--glow-strength) * 100%), transparent);
  animation: np-in .4s cubic-bezier(.16, 1, .3, 1) both;
}
.news-pop::before {
  content: ""; position: absolute; left: 0; top: 6%; height: 88%; width: 2px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--t), transparent);
}
@keyframes np-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes np-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes np-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.np-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 2px 20px; }
.np-head h2 { margin: 0; font-size: 16px; }
.np-tag { color: var(--t); font-size: 13px; font-weight: 600; }
.np-head .icon-btn { margin-left: auto; flex: none; }
.np-chart { flex: none; aspect-ratio: 420 / 116; }
.np-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.np-fill-top { stop-color: var(--t); stop-opacity: .3; }
.np-fill-end { stop-color: var(--t); stop-opacity: 0; }
.np-line {
  fill: none; stroke: var(--t); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--t) calc(var(--glow-strength) * 100%), transparent));
  animation: np-draw .9s ease-out both;
}
.np-pin { cursor: pointer; outline: none; }
.np-hit { fill: transparent; }  /* room for a finger or a mouse around the thin pin */
.np-pin line { stroke: var(--muted); stroke-dasharray: 2 3; }
.np-pin circle { fill: var(--muted); }
.np-pin:hover circle, .np-pin:focus-visible circle { fill: var(--accent); }
.np-pin.on line { stroke: var(--text); }
.np-pin.on circle { fill: var(--text); r: 7px; }
.np-body { flex: 1 0 auto; display: flex; flex-direction: column; padding: 4px 20px 0; overflow-wrap: anywhere; }
.np-market { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.3; }
.np-market:empty { display: none; }
.np-market b { color: var(--text); font-weight: 600; }
.np-link { color: var(--accent); font-size: 12.5px; text-decoration: none; }
.np-link:hover { text-decoration: underline; }
.np-gap { margin-right: auto; }
.np-body .hint { margin: 0; }
.np-since { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.np-since.up { color: var(--up); }
.np-since.down { color: var(--down); }
.np-text { margin: 0 0 6px; font-size: 19px; line-height: 1.28; font-weight: 500; letter-spacing: -.012em; text-wrap: pretty; }
.np-also { margin: 18px 0 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); font-family: var(--font-ui); }
.np-list { list-style: none; margin: 8px 0 0; padding: 0; }
.np-other { display: block; width: calc(100% + 16px); margin-left: -8px; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: inherit; text-align: left; cursor: pointer; font-size: 13px; line-height: 1.35; }
.np-other:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.np-other .badge { margin: 0 4px 0 0; }
.np-other small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.np-body .np-note { margin-top: 12px; }
.np-actions { padding: 16px 20px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.np-site:empty { display: none; }
.badge.pop-on { outline: 1px solid currentColor; outline-offset: 1px; }
tbody tr:has(.pop-on) > td, tbody tr:has(.pop-on) > td:first-child { background: color-mix(in srgb, var(--news-t, var(--accent)) 13%, var(--surface)); }
tbody tr:has(.pop-on) > td:first-child { box-shadow: inset 2px 0 0 var(--news-t, var(--accent)); }
@media (max-width: 720px) {  /* phones: no room beside the table, so it comes up from the bottom */
  .news-pop { top: auto; left: 0; width: auto; max-height: 82vh; border-radius: 20px 20px 0 0; animation-name: np-up; }
  .news-pop::before { left: 8%; right: 8%; top: 0; width: auto; height: 2px; background: linear-gradient(90deg, transparent, var(--t), transparent); }
}
@media (prefers-reduced-motion: reduce) { .news-pop, .np-line { animation: none; } }

/* from Volume surge: just left of that section, its exact size (--pop-w, --pop-h: news.js popPlace), the chart beside the words */
.surge-list li.open { background: color-mix(in srgb, var(--news-t, var(--accent)) 13%, transparent); box-shadow: inset 2px 0 0 var(--news-t, var(--accent)); }
.movers:has(.surge-list li.open) { align-items: stretch; }
@keyframes np-beside { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@media (min-width: 1101px) {
  .movers { position: relative; }
  .news-pop.at-surge {
    position: absolute; top: 0; right: calc(var(--pop-w) + 12px); bottom: auto; z-index: 5; width: var(--pop-w); height: max(var(--pop-h), 210px);
    display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: var(--radius);
    background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--t) 20%, transparent), transparent 72%), var(--surface);
    box-shadow: var(--lift), var(--edge), 0 22px 50px -18px rgba(0, 0, 0, .9), 12px 0 60px -22px color-mix(in srgb, var(--t) calc(var(--glow-strength) * 100%), transparent);
    animation-name: np-beside;
  }
  .news-pop.at-surge::before { left: auto; right: 0; top: 8%; height: 84%; }
  .at-surge .np-head { grid-column: 1 / -1; padding: 8px 8px 2px 16px; }
  .at-surge .np-left { min-width: 0; padding-left: 10px; }
  .at-surge .np-market { padding: 3px 0 0 6px; }
  .at-surge .np-body { padding: 0 14px 0 12px; overflow-y: auto; min-height: 0; }
  .at-surge .np-text { font-size: 15px; margin-bottom: 3px; }
  .at-surge .np-also { margin-top: 8px; }
  .at-surge .np-actions { grid-column: 1 / -1; padding: 5px 12px 9px 16px; }
}
@media (max-width: 1100px) {
  .news-pop.at-surge { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82vh; border-radius: 20px 20px 0 0; animation-name: np-up; }
  .at-surge .np-market { padding: 4px 20px 0; }
}

/* the News menu's Coming up: the next date of each kind, with the time left */
.news-coming { margin-top: 14px; }
.news-coming h2 { margin-bottom: 8px; }
.coming-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.coming-card { padding: 11px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float); overflow-wrap: anywhere; }
.coming-card.danger { --cc: var(--down); }
.coming-card.warn { --cc: var(--high); }
.coming-card.info { --cc: var(--accent); }
.cc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.cc-top b { color: var(--cc); font-family: var(--font-num); font-size: 16px; font-weight: 600; }
.cc-tok { font-weight: 600; }
.coming-card p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.coming-card p a { color: var(--text); text-decoration: none; }
.coming-card p a:hover { color: var(--accent); text-decoration: underline; }

/* the status in one line, the rest under Details */
.news-latest-head { align-items: baseline; flex-wrap: wrap; margin-top: 22px; margin-bottom: 8px; }
.tn-fold { margin-left: auto; max-width: 860px; color: var(--text-soft); font-size: 15px; }
.tn-fold summary { display: flex; justify-content: flex-end; align-items: center; gap: 7px; cursor: pointer; list-style: none; }
.tn-fold summary::-webkit-details-marker { display: none; }
.tn-fold summary::after { content: "Details"; margin-left: 7px; color: var(--accent); }
.tn-fold[open] summary::after { content: "Hide"; }
#tn-summary .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.dot.good { background: var(--up); }
.dot.warn { background: var(--high); }
.dot.bad { background: var(--down); }

/* the News table's rows: the headline first, then its type, time and source; the token and rating at the side, a coloured
   edge for its tone. Only the look: the cells and their order stay, so the filters and the Type list work as before */
#news-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#news-table > tbody > tr {
  --k: var(--border); display: grid; grid-template-columns: auto auto auto auto minmax(0, 1fr) auto;
  grid-template-areas: "day day day day day day" "title title title title title tok" "kind time src sent . rate";
  border-bottom: 2px solid color-mix(in srgb, var(--text) 16%, var(--border)); box-shadow: inset 3px 0 0 var(--k);
}
#news-table > tbody > tr:last-child { border-bottom: 0; }
#news-table > tbody > tr:has(td.kind .badge.ok) { --k: var(--up); }
#news-table > tbody > tr:has(td.kind .badge.danger) { --k: var(--down); }
#news-table > tbody > tr:has(td.kind .badge.warn) { --k: var(--high); }
#news-table > tbody > tr:nth-child(even of :not([hidden])) { background: var(--surface-2); }
#news-table > tbody > tr[data-day]::before {
  content: attr(data-day); grid-area: day; padding: 7px 14px; background: var(--table-head); color: #fff; font-size: 12.5px; font-weight: 600;
}
#news-table > tbody > tr > td[class], #news-table > tbody > tr > td:nth-child(n+2) {
  position: static; padding: 0 0 0 14px; border: 0; background: transparent; text-align: left; font-size: 12.5px; color: var(--muted); align-self: center;
}
#news-table > tbody > tr > td.wide { grid-area: title; padding: 10px 14px 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--text); white-space: normal; max-width: none; align-self: start; }
#news-table td.wide > a { color: var(--text); text-decoration: none; }
#news-table td.wide > a:hover { color: var(--accent); text-decoration: underline; }
#news-table td.wide .hint { font-weight: 400; font-size: 12.5px; }
#news-table > tbody > tr > td.tok { grid-area: tok; padding: 10px 14px 0; text-align: right; white-space: normal; max-width: 260px; font-size: 13.5px; align-self: start; }
#news-table > tbody > tr > td.kind { grid-area: kind; padding: 5px 0 10px 14px; }
#news-table > tbody > tr > td.time { grid-area: time; padding: 5px 0 10px 10px; }
#news-table > tbody > tr > td:nth-child(2) { grid-area: src; padding: 5px 0 10px 10px; }
#news-table > tbody > tr > td:nth-child(7) { grid-area: sent; padding: 5px 0 10px 10px; }
#news-table > tbody > tr > td.rating { grid-area: rate; padding: 5px 14px 10px; text-align: right; }
#news-table > tbody > tr > td:has(> .hint:only-child) { visibility: hidden; }  /* a "–": nothing to read */
@media (max-width: 720px) {
  #news-table > tbody > tr { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "day day day" "title title title" "tok tok tok" "kind kind rate" "time src sent"; }
  #news-table > tbody > tr > td.tok { padding-top: 4px; text-align: left; max-width: none; }
  .tn-fold { margin-left: 0; }
}

/* News search: the token's card (news.js renderTokenCard), lit by its status: green no risks, red risks */
.token-card { --t: var(--muted); position: relative; padding: 18px 20px 12px; overflow: hidden; border-radius: 16px; }
.token-card[data-tone="good"] { --t: var(--up); }
.token-card[data-tone="bad"] { --t: var(--down); }
.token-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: radial-gradient(70% 100% at 10% -30%, color-mix(in srgb, var(--t) 16%, transparent), transparent 72%);
}
.token-card > * { position: relative; }
.token-card h3 { font-size: 21px; letter-spacing: -.01em; }
.token-card .tc-head { align-items: baseline; }
.token-card .about-caps { margin-left: auto; font-size: 13px; }
.token-card .about-caps b { font-size: 15px; }
.tc-chart { --c: var(--cta); background: var(--cta); color: var(--cta-ink); border-color: transparent; font-weight: 600; align-self: center; }
.tc-chart:hover { background: var(--cta-hover); }
.tc-chart svg { stroke: var(--cta-ink); color: var(--cta-ink); }
.token-card .tc-desc { max-width: 72ch; line-height: 1.5; }
.tc-fold { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.tc-fold:hover { text-decoration: underline; }
.token-card .tc-status {
  margin: 12px 0 0; padding: 9px 12px; border-radius: 11px;
  background: color-mix(in srgb, var(--t) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 26%, transparent);
}
.token-card .tc-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 14px; }  /* the owner's order: Risks, Coming up, Recent */
@media (max-width: 800px) { .token-card .tc-parts { grid-template-columns: minmax(0, 1fr); } }
.token-card h4 { margin: 4px 0 6px; font-size: 14px; }
.token-card h4 .hint { font-weight: 400; margin-left: 4px; }
.token-card .tc-list { list-style: none; margin: 0 0 8px; padding: 0; }
.token-card .tc-list li.tc-story { margin: 0; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.token-card .tc-list li.tc-story:first-child { border-top: 0; padding-top: 2px; }
.tc-coming .tc-list li.tc-story, .tc-risks .tc-list li.tc-story { margin-bottom: 8px; padding: 10px 12px; border: 0; border-radius: 11px; background: var(--surface-2); }
.tc-risks .tc-list li.tc-story { background: color-mix(in srgb, var(--down) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 28%, transparent); }
.tc-title { line-height: 1.4; }
.tc-title a { color: var(--text); text-decoration: none; }
.tc-title a:hover { color: var(--accent); text-decoration: underline; }
.tc-title b { font-weight: 700; }
.tc-meta { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.tc-meta .badge { margin: 0 6px 0 0; }
.tc-meta b { color: var(--text); }

/* the Alerts menu's rows: a switch, how much each one sends, small buttons; the bulk bar only while rows are ticked */
#rows tbody td { vertical-align: middle; }
td.row-on { width: 56px; }
.row-switch { position: relative; display: block; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; background: #5a6372; transition: background .15s; }
.row-switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.row-switch[aria-checked="true"] { background: color-mix(in srgb, var(--up) 72%, #000); box-shadow: 0 0 12px -3px color-mix(in srgb, var(--up) calc(var(--glow-strength) * 100%), transparent); }
.row-switch[aria-checked="true"] i { left: 16px; }
.row-switch:disabled { cursor: default; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .row-switch, .row-switch i { transition: none; } }
.alert-cell .row-state { margin-left: 6px; font-weight: 600; }
/* an admin-only type's row: its badge only, on the usual background (owner 2026-11-20; orange is the shadow rows'
   alone, drawn below every live row); a solid line, where Shadow's is dashed */
.row-state.admin { padding: 1px 8px; border-radius: 999px; color: var(--high); border: 1px solid color-mix(in srgb, var(--high) 55%, transparent); }
td.row-sent b { display: block; font-size: 15px; font-weight: 600; font-family: var(--font-num); line-height: 1.2; }
td.row-sent small { display: block; font-size: 12px; color: var(--muted); }
#rows td.actions .icon-btn { width: 30px; }
#rows td.actions .icon-btn:disabled { opacity: .4; cursor: default; }
#rows thead th.actions { white-space: nowrap; }
.rows-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 14px; border-radius: 11px; background: var(--accent-soft); box-shadow: var(--edge); }
.rows-bulk .btn.link { margin-left: auto; }
.rows-bulk .btn:disabled { display: none; }
/* the bar stays under the top bar while a long list scrolls, so the ticked rows can be acted on from anywhere
   (owner 2026-11-17: Alerts, To do and Someday); it stops at the end of its own list. The page's colour fills the
   8px above it, so rows scrolling by don't peek between the two bars */
.rows-bulk { position: sticky; top: 60px; z-index: 15; box-shadow: var(--edge), 0 -8px 0 var(--bg), var(--float); }

/* Alert history: grouped by day, the change the number to scan for */
#history tbody td { vertical-align: top; }
#history tr.hist-day > td { padding: 6px 14px; background: color-mix(in srgb, var(--table-head) calc(16% + var(--glow-strength) * 29%), var(--surface)); color: var(--text); font-size: 12.5px; font-weight: 600; border-bottom: 0; }
#history td.time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.hist-token { white-space: nowrap; }
.hist-token .tf-tag { margin-left: 7px; font-family: var(--font-num); font-size: 11.5px; font-weight: 700; color: var(--accent); }
.hist-what { font-weight: 500; }
.hist-how { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.hist-how .mode { font-size: 12px; }
.hist-how .facts { font-size: 12.5px; }
#history td.hist-price { text-align: right; white-space: nowrap; font-size: 13px; }
#history td.hist-price small { display: block; color: var(--muted); font-size: 12px; }
#history td.hist-change { text-align: right; white-space: nowrap; font-family: var(--font-num); font-size: 15px; font-weight: 600; }
.hint-fold summary, .how-fold > summary { width: fit-content; color: var(--accent); font-size: 13px; cursor: pointer; }
.hint-fold .hint { margin-top: 4px; }

/* Uptime: one status bar, a block per day, Server and its targets side by side (owner 2026-11-06) */
.up-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float); }
.up-hero .up-tile { padding: 0 0 0 16px; border: 0; border-radius: 0; border-left: 1px solid var(--border); background: none; box-shadow: none; }
.up-hero .up-tile b { font-size: 20px; }
.up-hero .up-tile.ok, .up-hero .up-tile.bad { position: relative; padding: 0 0 0 26px; border-left: 0; }
.up-hero .up-tile.ok b, .up-hero .up-tile.bad b { font-size: 22px; }
.up-hero .up-tile.ok::before, .up-hero .up-tile.bad::before { content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--state); box-shadow: 0 0 0 5px color-mix(in srgb, var(--state) 18%, transparent), 0 0 16px color-mix(in srgb, var(--state) calc(var(--glow-strength) * 100%), transparent); }
.up-hero .up-tile.ok { --state: var(--up); }
.up-hero .up-tile.bad { --state: var(--down); }
.up-hero:has(.up-tile.ok)::before, .up-hero:has(.up-tile.bad)::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 150% at 0% 0%, color-mix(in srgb, var(--up) 18%, transparent), transparent 72%); }
.up-hero:has(.up-tile.bad)::before { background: radial-gradient(40% 150% at 0% 0%, color-mix(in srgb, var(--down) 22%, transparent), transparent 72%); }
.up-hero:empty { display: none; }  /* nothing read yet */
@media (max-width: 1000px) {  /* no room in a row: the state on its own line, the numbers in two columns */
  .up-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .up-hero .up-tile.ok, .up-hero .up-tile.bad { grid-column: 1 / -1; }
}
.up-timeline h2 .hint { font-weight: 400; margin-left: 4px; }
.up-strip { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); gap: 3px; }
.up-tick { height: 42px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; }
.up-tick:hover { filter: brightness(1.25); }
.up-tick.on { outline: 2px solid var(--text); outline-offset: 1px; }
.t-ok { background: color-mix(in srgb, var(--up) 45%, var(--surface)); }
.t-short { background: color-mix(in srgb, var(--high) 72%, var(--surface)); }
.t-long { background: var(--down); box-shadow: 0 0 12px -3px color-mix(in srgb, var(--down) calc(var(--glow-strength) * 100%), transparent); }
.t-none { background: repeating-linear-gradient(135deg, var(--border) 0 4px, var(--surface-2) 4px 8px); }
.up-legend i.t-ok, .up-legend i.t-short, .up-legend i.t-long { box-shadow: none; }
.up-legend i.t-ok { background: color-mix(in srgb, var(--up) 45%, var(--surface)); }
.up-legend i.t-short { background: color-mix(in srgb, var(--high) 72%, var(--surface)); }
.up-legend i.t-long { background: var(--down); }
.up-strip-ax { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; color: var(--muted); }
.up-day-box { margin-top: 12px; padding: 11px 13px; border-radius: 11px; background: var(--surface-2); }
.up-day-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.up-day-head b { font-weight: 600; }
.up-day-box > .up-hours { margin-top: 3px; }
.up-day-box > .hint { margin-top: 5px; }
.up-kinds { margin-top: 10px; }
.up-kinds + .hint.up-note, .up-timeline .up-note { margin-top: 6px; }
/* Uptime > Server (owner 2026-11-14, option D of the mock-up): one column, the gauges always on top, the rest in tabs,
   each full width, so the alert path's step table has room for every exchange */
.sys-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.sys-tabs { margin: 2px 0 14px; max-width: 100%; overflow-x: auto; }
.sys-tabs button { white-space: nowrap; }
.sys-pane > .sys-bars { margin-top: 0; }
.sys-pane-h { margin: 16px 0 10px; font-size: 15px; font-weight: 600; }
.sys-pane-h:first-child { margin-top: 0; }
.sys-pane-h .hint { font-weight: 400; margin-left: 6px; }
@media (min-width: 1000px) {
  .sys-bars.sys-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .sys-facts.sys-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sys-path-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr); gap: 10px; align-items: stretch; }
.sys-path-top > .sys-targets { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 800px) { .sys-path-top { grid-template-columns: minmax(0, 1fr); } }
.sys-late { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.sys-late:empty { display: none; }
.sys-late b { font-family: var(--font-num); font-weight: 600; }
.sys-late div + div { margin-top: 4px; }
.sys-late .lbl { display: block; color: var(--muted); font-size: 12px; }
.sys-split { width: 100%; margin-top: 12px; }
.sys-split tr.total td { font-weight: 600; border-top: 1px solid var(--border); }
.sys-split td.slow { background: color-mix(in srgb, var(--high) 12%, transparent); }
/* a day's downtime, one line per kind and cause (owner 2026-11-14, option A of the mock-up); Show times opens its pills */
.dg-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.dg-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 13px;
  padding: 7px 10px; border-radius: 9px; background: var(--surface); box-shadow: var(--edge); }
.dg-row .dg-what { white-space: nowrap; }
.dg-row .cause-tag { margin: 0; }
.dg-row .dg-nums { color: var(--muted); font-variant-numeric: tabular-nums; }
.dg-row .dg-nums b { color: var(--text); font-family: var(--font-num); font-weight: 600; }
.dg-more { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.dg-more::after { content: " \25BE"; }
.dg-more[aria-expanded="true"]::after { content: " \25B4"; }
.dg-times { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.dg-times[hidden] { display: none; }
.dg-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: var(--surface-2); box-shadow: var(--edge); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-pill b { font-family: var(--font-num); font-weight: 600; }
@media (max-width: 600px) {
  .dg-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dg-row .dg-nums { grid-column: 1 / -1; }
}

/* the pages outside the dashboard: login, setting a password, messages (owner 2026-11-06); the first thing anyone sees */
.login-page { background: radial-gradient(60% 45% at 50% 0%, color-mix(in srgb, var(--accent) calc(var(--glow-strength) * 12%), transparent), transparent 75%), var(--bg); }
.login-card { overflow: hidden; border-color: transparent; border-radius: 20px; box-shadow: var(--lift), var(--edge), 0 30px 70px -22px rgba(0, 0, 0, .65); }
.login-card::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.login-card input { height: 40px; border-radius: 10px; }
.login-card .btn.primary { min-height: 40px; }

/* the chart page: its bars read as one with the dashboard's */
.chart-toolbar, .token-about { border-bottom-color: var(--border-soft); }
.chart-toolbar .chip.legend { box-shadow: var(--edge); }

/* The Alerts table is the standard (owner 2026-11-06): every on/off switch is its green one; Glossary's tables get its
   spacing, text size and rounded panel (a phone keeps them tight, app.css). Scanner, News rows, Token results' 15 columns
   and X's hours grid stay tighter on purpose. */
.switch span { background: #5a6372; }
.switch input:checked + span { background: color-mix(in srgb, var(--up) 72%, #000); box-shadow: 0 0 12px -3px color-mix(in srgb, var(--up) calc(var(--glow-strength) * 100%), transparent); }
@media (min-width: 801px) {
  .gl-table, .bl-kept table { border-collapse: separate; border-spacing: 0; font-size: 14px; }
  .gl-table { background: var(--surface); border-radius: 14px; box-shadow: var(--edge); }
  .gl-table th, .gl-table td, .bl-kept th, .bl-kept td { padding: 10px 14px; }
  .gl-table th { padding-top: 9px; padding-bottom: 9px; }
  .gl-table th:first-child { border-top-left-radius: 14px; }
  .gl-table th:last-child { border-top-right-radius: 14px; }
  .gl-table tr:last-child td { border-bottom: 0; }
  .gl-table tr:last-child td:first-child { border-bottom-left-radius: 14px; }
  .gl-table tr:last-child td:last-child { border-bottom-right-radius: 14px; }
  .bl-kept { border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--edge); }
}

/* My account: two columns on a wide screen, the usual order in one column on a phone */
#set-account:not([hidden]) { display: flex; flex-direction: column; }
.account-col { display: contents; }
#set-account .account-card { max-width: none; width: 100%; box-sizing: border-box; }
#set-account [aria-labelledby="tgme-title"] { order: 2; }
#set-account #prefs-card { order: 3; }
#set-account [aria-labelledby="mysess-title"] { order: 4; }
#set-account [aria-labelledby="pw-title"] { order: 5; }
@media (min-width: 1000px) {
  #set-account:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .account-col { display: grid; gap: 12px; min-width: 0; }
  #set-account .account-card { margin: 0; }
}

/* the two roundup buttons: green action cards, brighter at the left like the news pop-up (owner 2026-11-06, design 4C);
   counting down they turn grey, so what can be pressed stands out */
#prefs-card .roundup-buttons { flex: 0 1 430px; min-width: 0; }
#prefs-card .btn.send { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; justify-content: stretch; text-align: left; padding: 9px 14px 9px 10px; border-radius: 12px; }
#prefs-card .btn.send .tile { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; }
#prefs-card .btn.send .t { font-weight: 700; }
#prefs-card .btn.send .s { grid-column: 2; font-size: 12.5px; font-weight: 400; color: var(--muted); }
#prefs-card .btn.send .go { grid-column: 3; grid-row: 1 / 3; font-size: 18px; }
#prefs-card .btn.send.waiting .tile { background: var(--border-soft); }
#prefs-card .btn.send.waiting .go { display: none; }
#prefs-card .btn.send:not(.waiting) { color: #fff; border-color: var(--border);
  background: radial-gradient(90% 130% at 0% 50%, var(--send-light), transparent 72%), var(--send-card);
  box-shadow: var(--lift), inset 0 0 0 1px color-mix(in srgb, var(--up) 45%, transparent),
    0 0 18px -7px color-mix(in srgb, var(--up) calc(var(--glow-strength) * 80%), transparent); }
#prefs-card .btn.send:not(.waiting) .s { color: var(--send-help); }
#prefs-card .btn.send:not(.waiting) .tile { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
#prefs-card .btn.send:not(.waiting):not(:disabled):hover { filter: brightness(1.14); border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }

/* Add user / Edit user: the ticks in a row, not one long column */
.user-perms .perm-ticks { display: flex; flex-wrap: wrap; gap: 2px 18px; }

/* ---------- uniform build (owner 2026-11-06): the pieces every menu shares, Alerts being the standard ---------- */
/* one page width: every menu has .view's 1360 px (app.css); long text keeps a readable line, the page doesn't narrow for it */
.settings-layout .hint, .glossary .hint, .volume-layout .hint { max-width: 860px; }

/* the right side of a section head: tabs, Refresh, a choice. The head then lines up at the top */
.section-head:has(> .tab-head-end) { align-items: flex-start; }
.tab-head-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; }
.tab-head-end label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.tab-head-end .segmented { flex-wrap: wrap; }
@media (max-width: 720px) { .tab-head-end { justify-content: flex-start; } }

/* A fold of data under a title (Uptime's downtime logs): <details class="how-fold kc-log"><summary>Its downtime log</summary>...
   The How it works folds became the title's "i" pop-up (owner 2026-11-21, "Explanations on hover" below) */
.how-fold { margin: 0 0 12px; }
.how-fold > summary { list-style: none; }
.how-fold > summary::-webkit-details-marker { display: none; }
.how-fold > summary:hover { text-decoration: underline; }

/* a list in a fold: <details class="sec-fold"><summary><h2>Name</h2><span class="sf-purpose">One line</span><span class="sf-sum">At the right</span></summary>
   <div class="sf-body">...</div></details>; remember it with core.js rememberFold */
details.sec-fold { margin-bottom: 8px; }
details.sec-fold > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 10px 14px; border-radius: 12px; cursor: pointer; list-style: none;
  background: var(--surface); box-shadow: var(--lift), var(--edge);
}
details.sec-fold > summary::-webkit-details-marker { display: none; }
details.sec-fold > summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 0 2px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .12s;
}
details.sec-fold[open] > summary::before { transform: rotate(45deg); }
details.sec-fold > summary:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
details.sec-fold > summary h2 { margin: 0; font-size: 15px; }
.sf-purpose { min-width: 0; color: var(--text-soft); font-size: 15px; }
.sf-sum { margin-left: auto; color: var(--text-soft); font-size: 15px; }
.sf-sum:empty { display: none; }
.sf-body { padding: 8px 0 6px; }
.sf-body > .hint { max-width: 860px; margin: 0 0 8px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { details.sec-fold > summary::before { transition: none; } }

/* a day bar in a table (core.js rowsByDay): the look of Alerts' #history tr.hist-day */
table:not(.todo-cards, .x-hours) > tbody > tr.day-row > td {
  padding: 6px 14px; background: color-mix(in srgb, var(--table-head) calc(16% + var(--glow-strength) * 29%), var(--surface));
  color: var(--text); font-size: 12.5px; font-weight: 600; border-bottom: 0; text-align: left;
}

/* one red warning line */
.warn-line { margin: 0 0 12px; padding: 9px 16px; border-radius: 12px; background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); font-size: 13px; overflow-wrap: anywhere; }
.warn-line:empty { display: none; }

/* small icon buttons on one line, each .icon-btn with a title and an aria-label */
.row-icons { display: inline-flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.row-icons .icon-btn { width: 30px; }
.row-icons .icon-btn:disabled { opacity: .4; cursor: default; }

/* a row button's line icon (core.js ROW_ICONS) */
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Settings: a tab's short hint and its How it works right under the title; Refresh beside the tabs (data-head-for, core.js) */
.pane-lead { margin: -10px 0 12px; }
.pane-lead > .hint { line-height: 1.5; }
.tab-label { margin: 0 0 7px; }
.table-wrap + .tab-label, .usage-key + .tab-label, .message + .tab-label { margin-top: 16px; }
.toolbar-end { margin-left: auto; }
.toolbar > .muted:empty { display: none; }
.toolbar > span.muted { color: var(--text-soft); font-size: 15px; }  /* a toolbar's count and status words: readable (owner 2026-11-19) */
/* a table's count line (owner 2026-11-13, option A of the mock-up; core.js tableCount): at the search row's right */
.tbl-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.tbl-count:empty { display: none; }
.tbl-count b { color: var(--text); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; }
.tbl-count .act, .tbl-count .act b { color: var(--high); font-weight: 600; }
.tbl-count .tbl-reset { margin-left: 4px; font-size: 13px; }
.toolbar > .tbl-count ~ .toolbar-end { margin-left: 0; }
/* a part already pushed right (Volume filter's summary, Scanner's Columns) keeps its place, the count right after it */
.toolbar > :is(#volume-summary, .columns-btn, .toolbar-end) ~ .tbl-count { margin-left: 14px; }
.tbl-count-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.tbl-count-bar:has(> .tbl-count:empty) { display: none; }
@media (max-width: 640px) { .toolbar-end { margin-left: 0; } }

/* the status line of an account with no exchange the pages show: empty, its room kept (venue_access.py) */
.status.no-market { visibility: hidden; }

/* Users & security */
#user-table th:nth-child(1) { width: 56px; }
#user-table th:nth-child(3) { width: 90px; }
#user-table th:nth-child(4) { width: 240px; }
#user-table th:nth-child(5) { width: 150px; }
#user-table th:nth-child(6) { width: 150px; }
#user-table th:nth-child(7) { width: 220px; }
#user-table th:nth-child(8) { width: 190px; }
/* the exchanges each user may see (Kraken step 5, the approved mock-up of 2026-11-10): small switches in the list,
   a switch with its second line in Add user */
.user-ex { display: grid; grid-template-columns: auto auto; gap: 6px 8px; align-items: center; justify-content: start; }
.user-ex .row-switch { width: 30px; height: 18px; }
.user-ex .row-switch i { width: 14px; height: 14px; }
.user-ex .row-switch[aria-checked="true"] i { left: 14px; }
.user-ex span { font-size: 13px; white-space: nowrap; }
.ex-switches { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 6px; cursor: pointer; }
.switch-row small { color: var(--muted); font-size: 12px; }
.user-ex-pick[aria-disabled="true"] { opacity: .5; }
.user-ex-pick[aria-disabled="true"] .switch-row { cursor: default; }
#usage-people .usage-cell { text-align: left; }
#usage-people .num, #usage-cohorts .num { text-align: right; }
#user-table .can-use { min-width: 130px; }
#attempts-table th:nth-child(1), #changes-table th:nth-child(1) { width: 130px; }
#attempts-table th:nth-child(2) { width: 300px; }
#attempts-table th:nth-child(3) { width: 150px; }
#attempts-table th:nth-child(4) { width: 170px; }
#attempts-table th:nth-child(6) { width: 220px; }
#attempts-table td { overflow-wrap: anywhere; }
#changes-table td.time, #aa-table td.time { color: var(--muted); font-size: 13px; }
#changes-table th:nth-child(2) { width: 220px; }
#changes-table th:nth-child(3) { width: 280px; }
#changes-table .sub { display: block; font-size: 12.5px; }
#changes-table td.wide { min-width: 260px; white-space: normal; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
#audits-table th:nth-child(1), #audits-table th:nth-child(2) { width: 120px; }
#audits-table th:nth-child(3) { width: 260px; }
#audits-table td { vertical-align: top; }

/* System: Background work's and Admin alerts' tables; the same words as ever, in columns */
.jobs-table td, #aa-kinds-table tr:not(.day-row) td, #ac-table td { vertical-align: top; white-space: normal; }
.jobs-table th:nth-child(1), #aa-kinds-table th:nth-child(1), #ac-table th:nth-child(1) { width: 56px; }
.jobs-table th:nth-child(2), #aa-kinds-table th:nth-child(2), #ac-table th:nth-child(2) { width: 270px; }
.jobs-table th:nth-child(4) { width: 340px; }
/* Background work in sections (owner 2026-11-11): a fold per area, its count amber while a job in it is off */
#set-jobs .jobs-q { margin-bottom: 4px; }
.jobs-count { font-weight: 600; }
.jobs-count.some-off { color: var(--high); }
#jobs-none { margin: 6px 2px; }
/* on a phone each switch is a card: the switch and its title on top, then what it does and the note across the width */
@media (max-width: 720px) {
  #ac-table th:nth-child(2) { width: 42%; }  /* Alert context stays a table: room for what each alert is */
  .jobs-table thead { display: none; }
  .jobs-table, .jobs-table tbody { display: block; }
  /* the line between cards is the tables' strong row line (app.css), on the card, none inside it */
  .jobs-table tr { display: grid; grid-template-columns: 58px minmax(0, 1fr); border-bottom: 2px solid color-mix(in srgb, var(--text) 16%, var(--border)); }
  .jobs-table tbody tr:last-child { border-bottom: 0; }
  #jobs .jobs-table > tbody > tr > td { display: block; position: static; padding: 0 14px 6px 0; border-bottom: 0; }
  #jobs .jobs-table > tbody > tr > td.row-on { padding: 12px 0 6px 14px; }
  #jobs .jobs-table > tbody > tr > td.job-work { align-self: center; padding-top: 12px; }
  #jobs .jobs-table > tbody > tr > td.job-text { grid-column: 1 / -1; padding-left: 14px; }
  #jobs .jobs-table > tbody > tr > td.job-text.muted { padding-bottom: 12px; }
}
#aa-kinds-table th:nth-child(4) { width: 190px; }
td.job-work b { font-weight: 600; }
td.job-text { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
td.job-text p { margin: 3px 0 0; }
#aa-kinds-table td.aa-last { font-size: 13px; white-space: nowrap; }
#aa-kinds-table .aa-last .sub { display: block; font-size: 12.5px; }
.aa-box, #aa-table td { overflow-wrap: anywhere; }
#aa-table th:nth-child(1) { width: 130px; }
#aa-table th:nth-child(2) { width: 270px; }
#aa-table th:nth-child(4) { width: 110px; }
#aa-table td.aa-text { color: var(--muted); font-size: 13px; }
#set-floor .panel .hint { margin-top: 10px; }

/* Telegram: the two bots side by side; the table's rows lined up in the middle */
.tg-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 16px; }
.tg-two > .panel { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tg-env-head { align-items: center; }
.tg-env-head h2 { margin: 0; font-size: 15px; }
.tg-env-list { margin-top: 8px; }
.tg-env-list > div { grid-template-columns: 76px minmax(0, 1fr); padding: 3px 0; border-top: 0; }
.tg-more-head.section-head.sub { margin: 0 0 9px; }
#tg-groups-open:empty { display: none; }
#tg-table td { vertical-align: middle; }
#tg-table th:nth-child(1) { width: 56px; }
#tg-table th:nth-child(5) { width: 150px; }
#tg-table th:nth-child(6) { width: 70px; }
#tg-table th:nth-child(7) { width: 100px; }
#tg-table th:nth-child(8) { width: 110px; }
#tg-table td:nth-child(2) { min-width: 110px; white-space: normal; overflow-wrap: anywhere; }
.bot-sub { margin: 18px 0 7px; font-size: 17px; }
.bot-sub:first-of-type { margin-top: 0; }

/* Volume filter: your minimum at the head's right; search, chips and the count on one row; the bar across the table */
#volume-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--lift), var(--edge); }
#volume-mine label { font-size: 13px; font-weight: 600; }
#volume-mine .input-suffix { background: var(--bg); }
#volume-mine .btn { min-height: 30px; }
#view-volume #volume-message { margin: 0 0 10px; }
#volume-table th:nth-child(1) { width: 220px; }
#volume-table th:nth-child(2) { width: 320px; }
#volume-table th:nth-child(3) { width: 130px; }
#volume-table th:nth-child(5) { width: 120px; }
#volume-table td:nth-child(5) .badge { margin-left: 0; }
#volume-table td { vertical-align: middle; }
#volume-table .vol-bar { display: block; width: 100%; min-width: 64px; background: color-mix(in srgb, var(--muted) 22%, transparent); }
#volume-table .vol-bar.passing i { background: var(--up); }
#volume-table .vol-bar.below i { background: var(--muted); }
#volume-table .vol-bar.kept i { background: var(--high); }
#volume-table .vol-bar::after { top: -4px; bottom: -4px; width: 2px; opacity: .75; }

/* Settings > News sources: search first, then each list in its fold; chips on one row; a row's Mute and Remove are icons */
#set-sources > .message:first-child { margin: 0 0 12px; }
#set-sources .src-q { row-gap: 8px; }
#set-sources .src-q .x-speeds { flex: 1 1 560px; min-width: 0; margin: 0; padding: 7px 14px; border-radius: 12px; font-size: 13px; }
#set-sources .x-speeds label { color: var(--muted); }
#set-sources .x-speeds input { width: 66px; }
#set-sources .x-speeds .btn { margin-left: auto; }
.src-reads { margin: 0 0 10px; font-size: 13px; }
.src-reads:empty { display: none; }
#x-speeds-message { margin: 0 0 10px; }
#set-sources .src-add { padding: 9px 14px; margin-bottom: 8px; border-radius: 12px; font-size: 13px; }
#set-sources .src-add .hint { max-width: none; }  /* its own line, under the box */
#hand-table tr.off td:not(.actions) { opacity: 1; color: var(--muted); }  /* ignored: words dim, the row's tint stays even */
#hand-table tr.off td:not(.actions) > * { opacity: .7; }
#set-sources .sf-body > .message { margin: 0 0 8px; }
#set-sources .src-chips { gap: 6px; margin-bottom: 10px; }
.src-chip-sep { flex: none; width: 1px; height: 18px; margin: 0 5px; background: var(--border); }
#set-sources .chip .n { margin: 0; color: inherit; font-size: 12px; font-weight: 600; }
#set-sources .chip .n:empty { display: none; }
/* a chip with something you must do in it (owner 2026-11-13, approved mock-up; sources.js srcReviewChip, the exchange
   chips here and on Problems): amber box, dot and glow while not selected (selected stays blue: what the list shows); a
   filter chip's number is a solid amber pill, selected or not, and it pulses 3 times as it appears (not with less motion).
   An exchange chip's number is how many coins it lists, not how many wait: no pill, no pulse (it is redrawn on each pick) */
:is(#set-sources, #pr-ex) .chip.needs-you:not(.active) {
  color: var(--high); font-weight: 600;
  background: color-mix(in srgb, var(--high) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--high) 60%, transparent),
    0 0 16px -4px color-mix(in srgb, var(--high) calc(var(--glow-strength) * 90%), transparent);
}
:is(#set-sources, #pr-ex) .chip.needs-you:not(.active)::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--high); margin-right: 2px; flex: none;
}
#set-sources .chip.needs-you[data-f] .n {
  background: var(--high); color: var(--bg); border-radius: 999px; padding: 0 7px; min-width: 20px;
  text-align: center; line-height: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  #set-sources .chip.needs-you[data-f]:not(.active) { animation: needs-you-pulse 1.6s ease-in-out 3; }
}
@keyframes needs-you-pulse {
  50% { box-shadow: inset 0 0 0 1px var(--high), 0 0 22px -2px color-mix(in srgb, var(--high) 70%, transparent); }
}
#set-sources .x-sub { margin: 16px 0 7px; }
#set-sources .sf-body > .hint + .toolbar { margin-top: 8px; }

/* a table never cuts what a cell holds: a badge or a button with a long name wraps inside its column */
#set-sources table.fixed td .badge { display: inline-block; max-width: 100%; white-space: normal; vertical-align: top; }
#set-sources table.fixed td .origin { white-space: normal; }
#set-sources table.fixed td .btn:is([data-use], [data-xuse], [data-xwrong]) { max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; }
#set-sources table.fixed td.actions > .row-icons { margin-left: 4px; vertical-align: middle; }
/* the row buttons of the X and Telegram token tables read as buttons (owner 2026-12-03): a thin outline and a muted fill
   from the tokens, quieter than the white Add; `.btn.ghost` stays as it is everywhere else */
#x-table .btn.small.ghost, #tok-table .btn.small.ghost {
  background: color-mix(in srgb, var(--text) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--text) 24%, var(--border)); }
#x-table .btn.small.ghost:not(:disabled):hover, #tok-table .btn.small.ghost:not(:disabled):hover {
  background: color-mix(in srgb, var(--text) 13%, var(--surface));
  border-color: color-mix(in srgb, var(--text) 40%, var(--border)); }
#x-table { min-width: 1180px; }
#x-table th, #x-table td { padding-left: 10px; padding-right: 10px; }
#x-health-table th, #x-fail-table th { white-space: normal; vertical-align: bottom; }
#x-health-table .num, #x-fail-table .num { text-align: right; }
#x-health-table td { white-space: normal; overflow-wrap: break-word; }  /* a whole date, a whole count */
#x-health-table td:nth-child(5), #x-fail-table td { white-space: normal; overflow-wrap: anywhere; }  /* outsiders' words */
#x-fail-table td.num, #x-health-table td:first-child { white-space: nowrap; }

/* the forms' boxes, as drawn: darker than the panel, with a clear line; their values in the text colour */
.editor :is(input[type="text"], input[type="email"], select):not(.input-suffix input, :focus) { border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }
.editor :is(input[type="text"], input[type="email"], select):not(.input-suffix input) { background: var(--bg); }
.editor :is(input[type="text"], input[type="email"], select):not(:disabled) { color: var(--text); }
.editor :is(input[type="text"], select):disabled { color: var(--muted); }
.editor select { font-weight: 400; }
.editor .input-suffix { background: var(--bg); }
.editor .input-suffix:not(:focus-within) { border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }

/* Add user: the Menus' ticks on one row, "always" beside Glossary */
.user-perms .perm-ticks { gap: 2px 16px; margin-left: -6px; }
.user-perms .check-row { padding: 3px 6px; gap: 8px; }
.user-perms .check-row input { margin-left: 0; }
.user-perms .check-row small { display: inline; margin-left: 6px; }

/* the alert form: one column where the halves wouldn't fit, then on a phone */
.editor > .steps .segmented { flex-wrap: wrap; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ed-half + .ed-half { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .ed-pair { grid-template-columns: minmax(0, 1fr); }
  .ed-own { padding-left: 0; }
  .ed-own > label { min-width: 0; }
  .ed-own .input-suffix span { white-space: normal; }
  .step-settings.filters label { grid-template-columns: minmax(0, 1fr); }
  .flt-boxes input[type="text"] { width: 96px; }
  .flt-boxes select { width: 110px; }
  .flt-boxes select[data-k="trend_timeframe"] { flex: 1 1 120px; width: auto; min-width: 0; }
  .tg-id-row { flex-wrap: wrap; }
  .editor > .editor-actions .check-row, .editor > .editor-actions .check-row + .check-row { margin-left: -6px; flex: 1 1 100%; }
  .editor > .editor-actions .tg-sends { flex: 1 1 100%; }
}

/* pop-ups */
.small-modal, .symbol-modal { border-color: transparent; border-radius: 20px; box-shadow: var(--lift), var(--edge), 0 30px 70px -14px rgba(0, 0, 0, .75); overflow: hidden; }
dialog::backdrop { backdrop-filter: blur(3px); }

/* Glossary (mock-up approved 2026-11-06): the tab's sections at the side, one panel of fold rows per section, Alerts' lines */
@media (min-width: 1000px) { .gloss-tools { flex: none; flex-wrap: nowrap; } }  /* one row beside a long hint */
.gl-cols { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.gl-nav { position: sticky; top: 64px; display: grid; gap: 2px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float); font-size: 13.5px; }
.gl-nav:empty { visibility: hidden; }
.gl-nav button { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 5px 9px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.gl-nav button:hover { color: var(--text); }
.gl-nav button.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.gl-nav b { flex: none; color: var(--muted); font-size: 12px; font-weight: 400; }
@media (max-width: 900px) { .gl-cols { display: block; } .gl-nav { display: none; } }
.gl-find { margin: 0 0 12px; }
.gl-find .search-box { flex: 1 1 320px; width: auto; }
.gloss-head { margin: 0 0 7px; font-size: 17px; font-weight: 600; scroll-margin-top: 68px; }
.gloss-head-sum { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.gloss-list { margin-bottom: 16px; border: 0; box-shadow: var(--lift), var(--edge), var(--float); }
.gloss-list details { scroll-margin-top: 68px; }
.gloss-list details[open] { background: none; }
.gloss-list details + details { border-top: 0; }
.gloss-list > details:not([hidden]) ~ details { border-top: 2px solid color-mix(in srgb, var(--text) 16%, var(--border)); }
.gloss-list > details:nth-child(even of :not([hidden])) > summary { background: var(--surface-2); }
.gloss-list > details:nth-child(n) > summary:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.gloss-list summary { grid-template-columns: minmax(0, 320px) minmax(0, 1fr) auto 16px; padding: 10px 14px; }
.gloss-list summary:not(:has(.gl-mode)) { grid-template-columns: minmax(0, 320px) minmax(0, 1fr) 16px; }
.gloss-list summary::after { content: "▾"; width: auto; height: auto; margin: 0; border: 0; color: var(--muted); font-size: 12px; transform: none; }
.gloss-list details[open] > summary::after { content: "▴"; transform: none; }
.gl-short { font-size: 15px; }
.gl-mode { padding: 1px 9px; border-radius: 8px; box-shadow: none; }
.gl-body { max-width: none; padding: 12px 14px 14px; font-size: 14px; }
.gl-body p, .gl-body ul, .gl-body ol { max-width: 760px; }
.gl-table { width: 100%; margin: 4px 0 10px; }
.gl-table td:first-child, .gl-table td:nth-child(2) { font-family: inherit; }
.gl-table + p { margin-top: 10px; }
@media (max-width: 720px) {
  .gloss-list summary, .gloss-list summary:not(:has(.gl-mode)) { grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 10px; padding: 10px 12px; }
  .gl-body { padding: 2px 12px 12px; }
}

/* Backtest (mock-ups approved 2026-11-06): panels with a 15 px title, lists at the mock-up's size, its long words in the body font */
#view-backtest .rs-panel h2 { font-size: 15px; font-weight: 600; margin: 0 0 7px; }
#view-backtest .rs-list, #view-backtest .rec-list { max-width: 980px; font-size: 13.5px; }
#view-backtest .panel { margin-bottom: 12px; }
#view-backtest .rs-table td.rs-wrap { font-family: inherit; font-size: 13px; }
#view-backtest td .badge { margin-left: 0; }
#view-backtest td .badge.off { background: color-mix(in srgb, var(--muted) 16%, transparent); }  /* (it would vanish on a tinted row) */
/* Replay: the numbers in one divided row, the day bars and a large Move in the table; the "sent" pill in the mock-up's blue */
.bt-form select { min-width: 230px; min-height: 38px; }  /* as tall as the token box: the labels line up */
.bt-summary { display: block; margin: 0 0 12px; }
.bt-stats { --stat-line: color-mix(in srgb, var(--text) 16%, var(--border)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float); overflow-wrap: anywhere; }
.bt-stats .bt-stat { display: block; padding: 12px 16px; border: 0; border-left: 1px solid var(--stat-line); border-radius: 0; background: none; }
.bt-stats .bt-stat:first-child { border-left: 0; }
.bt-stats .bt-stat b { display: block; font-size: 20px; line-height: 1.3; }
.bt-stats .bt-stat.sent b { color: var(--text); }
.bt-summary .bt-filters { margin-top: 8px; max-width: 860px; }
@media (max-width: 900px) {
  .bt-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-stats .bt-stat { border-top: 1px solid var(--stat-line); }
  .bt-stats .bt-stat:nth-child(-n+2) { border-top: 0; }
  .bt-stats .bt-stat:nth-child(odd) { border-left: 0; }
}
#bt-results > .table-wrap { margin-top: 12px; }
#bt-table td { vertical-align: top; }
#bt-table th:nth-child(1) { width: 150px; }
#bt-table th:nth-child(3) { width: 110px; }
#bt-table th:nth-child(4) { width: 130px; }
#bt-table th:nth-child(5), #bt-table th:nth-child(6), #bt-table th:nth-child(7) { width: 90px; }
#bt-table th:nth-child(8) { width: 300px; }
#bt-table td.wide { font-size: 13px; overflow-wrap: anywhere; }
#view-backtest #bt-table td.time .badge { margin-left: 4px; }
#bt-table td.bt-move { font-family: var(--font-num); font-size: 15px; font-weight: 600; }
#bt-table .badge.sent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
/* Recommendations: a block's Look for and Avoid side by side */
#rec-body .rec-all .hint { margin-top: 8px; }
.rec-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 4px; }
.rec-two:empty { display: none; }
#view-backtest .rec-two > .rec-block { min-width: 0; margin: 0; }
.rec-block { overflow-wrap: anywhere; }
#rec-body .rec-h { margin: 0 0 8px; font-size: 14px; text-transform: none; letter-spacing: 0; }
#rec-body .rec-h .badge { margin-left: 0; }
/* Research results: the Run row with its line; a search row with its count; an open table's title over it */
.rs-top { align-items: center; margin-bottom: 10px; }
#rs-run-field { flex-direction: row; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
#rs-run { min-width: 0; max-width: min(100%, 460px); }
.rs-top #rs-scope { min-width: 0; overflow-wrap: anywhere; }
.rq-find { margin: 14px 0 10px; }
@media (min-width: 721px) { .rq-find .search-box.full { flex: 0 1 520px; width: 520px; } }
.rq-open { margin-bottom: 12px; }
.rq-open > h2 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.rq-open > .hint, #rs-body .sf-body > .hint { max-width: 860px; margin: 0 0 8px; line-height: 1.5; }
#rs-body .rq-table th { white-space: normal; vertical-align: bottom; }  /* many columns: labels wrap so more fit */
/* All strategies: search and both dropdowns on one row, the count at the right */
.as-filters select { max-width: 240px; }
.as-filters #as-count { text-align: right; }
.as-group-hint { margin: 0 0 10px; max-width: 860px; line-height: 1.5; }
.as-group-hint:empty { display: none; }
#as-table th:nth-child(1) { width: 130px; }
#as-table th:nth-child(3) { width: 110px; }
#as-table th:nth-child(4), #as-table th:nth-child(5) { width: 270px; }
#as-table th:nth-child(6) { width: 110px; }
#as-table td { vertical-align: top; }
#as-table td.rs-wrap { max-width: none; }
#as-table td:first-child { min-width: 130px; white-space: normal; overflow-wrap: anywhere; }
#as-table td:first-child .muted { font-size: 12.5px; }
#as-table td:last-child { font-size: 13px; }
/* Indicators */
.ind-bar { margin: 0 0 10px; }
.ind-bar .segmented { flex-wrap: wrap; max-width: 100%; }
.ind-bar #ind-measured { text-align: right; }
#ind-how-live .hint, #bd-how-live h3 { margin-top: 8px; }
.anno .badge, .ar-counts .badge:first-child { margin-left: 0; }
/* Alert rows */
.ar-counts { margin: 0 0 10px; }
/* Binance data: the side list (.gl-nav) has no counts here; a fold goes under the top bar when jumped to */
#bd-body .bd-group { scroll-margin-top: 68px; }
.bd-table td { vertical-align: top; }
.bd-table td.rs-wrap { max-width: none; overflow-wrap: anywhere; }
.bd-table code { font-family: inherit; color: var(--muted); }
.bd-fields th:nth-child(1), .bd-fields th:nth-child(2) { width: 190px; }
.bd-fields th:nth-child(5) { width: 210px; }
@media (max-width: 720px) {
  .as-filters select { flex: 1 1 100%; max-width: 100%; }
  .as-filters #as-count, .ind-bar #ind-measured { text-align: left; }
}
/* Alerts history: how each alert arrived (owner 2026-11-10, approved mock-up; alerts.js sendState) */
.history-filters .hf-status { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.history-filters .hf-status:empty { display: none; }
.history-filters .everyone { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
#history .arrive { display: flex; flex-direction: column; gap: 3px; }
#history .arrive .why { font-size: 12.5px; line-height: 1.35; }
#history .sent-to b { display: block; }
/* Uptime > Deploys (owner 2026-11-11, approved mock-up; uptime.js renderDeploys) */
.dp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 10px; font-size: 13.5px; }
.dp-sum:empty { display: none; }
.dp-sum b { font-weight: 700; }
#dp-table .sub { display: block; margin-top: 2px; font-size: 12.5px; }
#dp-table td { white-space: normal; vertical-align: top; }
#dp-table td.time, #dp-table td.num { white-space: nowrap; }
#dp-table .why { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; }
#dp-table .why code { font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
#dp-table td.dp-what { width: 34%; }
#dp-table td.dp-version { width: 30%; }
/* what a deploy held: its first commit title, the rest in a fold */
#dp-table .dp-changes { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
#dp-table details.dp-changes > summary { cursor: pointer; list-style: none; }
#dp-table details.dp-changes > summary::-webkit-details-marker { display: none; }
#dp-table details.dp-changes > summary::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 1px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg); transition: transform .12s;
}
#dp-table details.dp-changes[open] > summary::before { transform: rotate(45deg); }
#dp-table details.dp-changes > summary:hover { text-decoration: underline; }
#dp-table .dp-changes ul { margin: 4px 0 0; padding-left: 15px; }
#dp-table .dp-changes li + li { margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { #dp-table details.dp-changes > summary::before { transition: none; } }
/* Settings > Telegram: a chat's alerts not delivered this week, a link to them in Alerts history */
.fail-link { display: block; margin-top: 4px; font-size: 12.5px; color: var(--down); }
/* the exchange drop-down (Kraken step 6, the mock-up approved 2026-11-10; core.js renderExchanges): a layers icon and
   the exchange's name just left of the theme button, the icon alone on a phone; its menu ticks the one picked */
.ex-menu { min-width: 260px; right: 0; }
.ex-menu button { display: grid; grid-template-columns: 16px 1fr; gap: 2px 10px; align-items: center; }
.ex-menu button small { grid-column: 2; color: var(--muted); font-size: 12px; font-weight: 400; }
.ex-menu button .ex-tick { visibility: hidden; }
.ex-menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.ex-menu button[aria-checked="true"] .ex-tick { visibility: visible; }
/* (an admin's 1300 px rule hides the Settings button's word: the exchange's name stays until a phone) */
.topbar .ex-btn > span.ex-long { display: inline; }
@media (max-width: 720px) {
  .topbar .ex-btn > span.ex-long { display: none; }
  .ex-btn { padding: 0 8px; }
  /* the menu hangs from the bar's right edge, inside the screen (the mock-up's phone picture cut its left side) */
  .topbar .ex-wrap { position: static; }
  .topbar .ex-menu { right: 12px; top: calc(100% - 2px); }
}
/* a narrow phone: the drop-down's caret goes and the bar's gaps close a little, so the bar still fits 320 px */
@media (max-width: 480px) {
  .topbar:has(#ex-wrap:not([hidden])) { gap: 8px; }
  .topbar .ex-btn .caret { display: none; }
}
/* a phone (430 px and less): the Liquidated pill and the "?" go into the Settings menu, so the menus have room; the
   menus show a fade where more of them wait to be scrolled to (audit 2026-11-30, G6-01, owner decision 69) */
.phone-only { display: none !important; }
@media (max-width: 430px) {
  .topbar #liq-pill, .topbar #tour-btn { display: none; }
  /* what is left of the bar gives the menus the room: smaller gaps and padding, no caret on the Settings button */
  .topbar { gap: 6px; padding: 0 10px; }
  .tabs a { padding: 0 7px; }
  .topbar .settings-btn .caret { display: none; }
  .settings-menu a.phone-only:not([hidden]) { display: flex !important; }
}
.tabs.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
.tabs.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 26px), transparent); }
.tabs.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
/* the Exchange column under All, and the line saying what a spot market has not */
.spot-note { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--text-soft); }  /* the .hint size (audit 2026-11-30, G6-04) */
.spot-note:empty, .spot-note[hidden] { display: none; }
/* a spot market has no open interest or funding: the quick filters that need them can never match (audit 2026-11-30, G6-04) */
body.ex-spot-only #filters [data-filter="q_oi"], body.ex-spot-only #filters [data-filter="q_funding"] { display: none; }
/* without Binance picked: its 24h movers and its liquidations aren't the exchange's (Binance's own tickers and stream) */
body.ex-no-binance #liq-pill { display: none; }
/* the exchange's letter after a symbol, only under All (owner 2026-11-12, approved look): B amber, K violet */
.ex-letter {
  --ex: var(--muted);
  display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-left: 6px; border-radius: 5px;
  font-size: 11px; font-weight: 800; line-height: 1; vertical-align: middle; cursor: default;
  color: var(--ex); background: color-mix(in srgb, var(--ex) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ex) 50%, transparent);
}
.ex-letter.ex-b { --ex: var(--ex-binance); }
.ex-letter.ex-k { --ex: var(--ex-kraken); }
.ex-letter.ex-h { --ex: var(--ex-hyperliquid); }
.mv-sym { display: flex; align-items: center; min-width: 0; }
.mv-sym .sym-link { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-sym .ex-letter { margin-left: 2px; }
/* the Scanner's movers under All: one block per exchange, its name above, a Hide button; hidden, one line of leaders
   (owner 2026-11-13, the mock-up approved that day; scanner.js moverBlocks) */
.ex-block-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 0 2px; }
.ex-block-head .ex-letter { margin-left: 0; width: 22px; height: 22px; font-size: 12.5px; }
.ex-block-letter:empty { display: none; }
.ex-block-head h2 { margin: 0; font-size: 15px; white-space: nowrap; }
.ex-block-head .mv-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ex-rule { flex: 1; min-width: 12px; height: 1px; background: var(--border-soft); }
.ex-fold {
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 10px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font: 600 12.5px var(--font-ui); cursor: pointer; box-shadow: var(--edge);
}
.ex-fold:hover, .ex-fold:focus-visible { color: var(--text); }
.ex-fold svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ex-folded {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 14px; padding: 10px 14px;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float);
  font-size: 13.5px; font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.exf-item { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.exf-label { color: var(--muted); font-family: var(--font-ui); font-size: 12.5px; }
.exf-item .sym-link { font-weight: 700; }
/* a switched-off exchange (owner 2026-11-17, the mock-up approved that day; core.js renderOffNotes, scanner.js
   moverBlocks): greyed in the drop-down with a red Off tag; under All a card in place of its movers and one line at
   the top of each market page; picked alone, the note in place of the page */
.ex-off-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--down);
  background: color-mix(in srgb, var(--down) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 35%, transparent);
}
.ex-off-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ex-menu button.ex-is-off { cursor: not-allowed; }
.ex-menu button.ex-is-off:hover { background: none; }
.ex-menu button.ex-is-off > span { color: var(--muted); }
.ex-off-card {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift), var(--edge), var(--float);
  border-left: 3px solid color-mix(in srgb, var(--down) 55%, transparent);
}
.ex-off-card[hidden] { display: none; }
.ex-off-card svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.ex-off-card p { margin: 0; font-size: 13.5px; }
.ex-off-card p + p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ex-block.is-off .ex-block-name { color: var(--muted); }
.ex-block.is-off .ex-block-head .ex-letter { opacity: .55; }
.ex-off-line { margin: 0 0 10px; }
.ex-off-line[hidden] { display: none; }
.ex-off-line p { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.ex-off-line .ex-letter { margin-left: 0; opacity: .55; }
.ex-off-page { max-width: 560px; margin: 24px auto; padding: 34px 24px; text-align: center; }
.ex-off-page[hidden] { display: none; }
.ex-off-page .ex-letter { width: 30px; height: 30px; margin: 0; font-size: 15px; }
.ex-off-page h2 { margin: 10px 0 8px; font-size: 18px; }
.ex-off-page p { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.ex-off-page .ex-off-tag { font-size: 12px; }
body.ex-off-alone :is(#view-scanner, #view-alerts, #view-volume) > :not(.ex-off-page) { display: none !important; }
/* (Token filter's line is in admin_static/token_filter.css: a public file never names an admin menu, exposure sweep) */
/* News without Binance (Kraken news, 7a): Binance's own announcements and its futures' closing dates aren't there */
body.ex-no-binance .ex-binance { display: none; }
/* another exchange's alert rows (the drop-down): shown, not changed (owner 2026-11-12, view only for now) */
body.rows-view-only #new-row, body.rows-view-only .reset-row, body.rows-view-only #rows .actions,
body.rows-view-only #rows-bulk { display: none; }
body.rows-view-only #rows .row-switch { pointer-events: none; opacity: .6; }

/* News sources shows every exchange (owner 2026-11-13, approved mock-up): the pill by the title, the drop-down greyed
   there, the To review split under the tabs (each part a link), the exchange chips before the Scanned ones */
.scope-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); vertical-align: middle;
  background: var(--surface-2); box-shadow: var(--edge);
}
.scope-pill[hidden] { display: none; }
.scope-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ex-btn.not-here { opacity: .45; cursor: help; }
.tab-head-end:has(.src-split:not([hidden])) { align-items: flex-start; }
.head-tabs { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.src-split { margin: 0; font-size: 15px; color: var(--text-soft); text-align: right; }
.src-split[hidden] { display: none; }
.src-split a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--muted); cursor: pointer; }
.src-split a:hover, .src-split a:focus-visible { color: var(--accent); border-color: var(--accent); }
.src-split .ex-letter { margin: 0 4px 0 0; }
.src-split .zero { color: var(--muted); font-weight: 500; border: 0; }
.src-ex .ex-letter { margin-left: 0; }

/* Problems, Background work and Uptime show every exchange too (owner 2026-11-13, News sources' look): the split line
   under Problems' title (left, under the hint), its exchange chips, a row's letter after its title, the Kraken
   collector's jobs and its Uptime line */
.pr-split { margin-top: 6px; text-align: left; }
.pr-chips { gap: 6px; margin: 0 0 10px; }
#pr-ex .chip .n { margin: 0; color: inherit; font-size: 12px; font-weight: 600; }
#pr-now td > b + .ex-letter, #pr-history td > b + .ex-letter { margin-left: 6px; }
.jobs-fold h2 .ex-letter, .job-work .ex-letter { margin-left: 6px; }
.job-fixed { font-size: 12px; color: var(--muted); }
.up-collector .up-hero, .up-cpane .up-hero { margin-top: 10px; }
.up-collector .up-head h2 .ex-letter { margin-left: 6px; }
.kc-strip-head { margin: 16px 0 8px; font-size: 15px; }
.kc-log { margin-top: 12px; }
.up-collector > .message, .up-cpane > .message { margin: 10px 0 0; }
/* the collectors' panel (owner 2026-11-15, proposal 3): the Server panel's tabs, each with a dot for the collector's
   state (green running, red down, amber no heartbeat yet) and its exchange letter */
.up-ctabs { margin-bottom: 4px; }
.up-ctabs button { display: inline-flex; align-items: center; }
.up-ctabs .ex-letter { margin-left: 6px; }
.up-cdot { flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--muted); }
.up-cdot.ok { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent); }
.up-cdot.bad { background: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 24%, transparent); }
.up-cdot.warn { background: var(--high); box-shadow: 0 0 0 3px color-mix(in srgb, var(--high) 22%, transparent); }
.up-cpane > .kc-whose { margin: 8px 0 0; }
.up-collectors > .up-note { margin-top: 12px; }
/* the hub's periods from when it was also the Binance scanner (owner 2026-11-15, proposal 5) */
.up-era { margin-left: 6px; font-size: 11px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
/* Settings > System > Exchanges: a program over 90% of its memory cap (owner 2026-11-17) */
.ex-near { color: var(--high); font-weight: 600; }
/* its Kraken trade box line below the programs (To do #150 step 2, 2026-12-05) */
.tb-line { margin-top: 28px; }
.tb-line > h3 { margin: 0 0 10px; }
.tb-table td { white-space: normal; overflow-wrap: anywhere; max-width: 22em; }
/* Uptime: a collector switched off on Settings > System > Exchanges (owner 2026-11-17, mock-up "amber"): bright amber
   to catch the eye, never red (not an outage) */
.up-hero .up-tile.off { position: relative; padding: 0 0 0 26px; border-left: 0; --state: var(--high); }
.up-hero .up-tile.off b { font-size: 22px; color: var(--high); }
.up-hero .up-tile.off::before { content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--state); box-shadow: 0 0 0 5px color-mix(in srgb, var(--state) 20%, transparent), 0 0 16px color-mix(in srgb, var(--state) 55%, transparent); }
.up-hero:has(.up-tile.off)::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 150% at 0% 0%, color-mix(in srgb, var(--high) 18%, transparent), transparent 72%); }
@media (max-width: 1000px) { .up-hero .up-tile.off { grid-column: 1 / -1; } }
.up-cdot.off { background: var(--high); box-shadow: 0 0 0 3px color-mix(in srgb, var(--high) 24%, transparent); }
/* Uptime > Server: the Programs row under the rings (owner 2026-11-17, mock-up A) */
.sys-prog-head { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sys-progs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sys-prog { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--edge); display: grid; gap: 6px; }
.sys-prog.off { box-shadow: var(--edge), inset 3px 0 0 var(--high); background: color-mix(in srgb, var(--high) 7%, var(--surface-2)); }
.sys-prog-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sys-prog-name .ex-letter { margin-left: 0; }
.sys-prog-state { font-size: 13px; font-weight: 600; }
.sys-prog-state.ok { color: var(--up); }
.sys-prog-state.off, .sys-prog-state.warn { color: var(--high); }
.sys-prog-state.bad { color: var(--down); }
.sys-prog-mem { font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.sys-prog-mem b { color: var(--text); }
.sys-prog-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; }
.sys-prog-bar i { display: block; height: 100%; border-radius: 3px; background: var(--good); }
.sys-prog-bar i.near { background: var(--warning); }
.k-switched_off { --k: color-mix(in srgb, var(--muted) 45%, transparent); }
/* a collector's memory tile: over 90% of its cap in the warning colour */
.up-hero .up-tile.up-mem.near b { color: var(--high); }
/* the Scanner's quick filters and your own: their own line under a plain heading (owner 2026-11-18, Option A) */
#filters .qf-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
#filters .qf-head { margin-right: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
#filters .my-filters { display: contents; }
#filters .my-filters:not(:empty)::before { content: ""; width: 4px; }
/* quick chips in violet, never blue: blue is "selected" on every chip (owner 2026-11-18, colour mock-up A);
   selected, a quick chip fills solid violet (--q-violet: the theme blocks at the top) */
#filters .chip.q-violet { background: color-mix(in srgb, var(--q-violet) 12%, var(--surface)); border-color: color-mix(in srgb, var(--q-violet) 45%, var(--border)); color: color-mix(in srgb, var(--q-violet) 65%, var(--text)); }
#filters .chip.q-violet:hover { background: color-mix(in srgb, var(--q-violet) 22%, var(--surface)); }
#filters .chip.q-violet.active { background: var(--q-violet); border-color: var(--q-violet); color: var(--surface); }
#filters .chip.q-amber { background: color-mix(in srgb, var(--high) 12%, var(--surface)); border-color: color-mix(in srgb, var(--high) 45%, var(--border)); color: color-mix(in srgb, var(--high) 60%, var(--text)); }
#filters .chip.q-amber:hover, #filters .chip.q-amber.active { background: color-mix(in srgb, var(--high) 24%, var(--surface)); }
#filters .chip.q-amber.active { border-color: var(--high); color: var(--high); }
#filters .chip.q-violet .count, #filters .chip.q-amber .count { color: inherit; opacity: .8; }
#filters .chip .qi { width: 13px; height: 13px; margin-right: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
#filters .q-add { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border-radius: 999px; border: 1px dashed var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
#filters .q-add:hover { border-color: var(--accent); color: var(--accent); }
#table .fund-hot { font-weight: 700; }
.my-filter-panel[open] { width: min(430px, calc(100vw - 32px)); }
.my-filter-panel label { display: block; margin: 8px 0 4px; font-weight: 600; }
.my-filter-panel #my-filter-name { width: 100%; }
.my-filter-panel .my-cond { display: grid; grid-template-columns: 1.3fr 1fr 76px 26px; gap: 6px; align-items: center; margin: 8px 0; }
.my-filter-panel .my-cond select, .my-filter-panel .my-cond input { width: 100%; min-width: 0; }
.my-filter-panel .my-filter-saved h3 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.my-filter-panel .my-saved { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border-soft); }

/* Market context (owner 2026-11-18, approved mock-up 2; market_context.js): today's release banner, the Thin hours
   pill in the top bar, the context tiles. Amber = a volatility warning, never a direction colour. */
.event-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 10px 16px; border-radius: 12px; border-left: 4px solid var(--high); background: var(--high-bg); line-height: 1.5; font-size: 14px; }
.event-banner .ev-ico { color: var(--high); font-size: 18px; line-height: 1.2; }
.event-banner b { color: var(--text); }
.event-banner .ev-words { min-width: 0; }
.event-banner .ev-sub { color: var(--muted); }
.event-banner .ev-tag { margin-left: auto; flex: none; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--high); color: var(--high); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.chart-events { padding: 8px 12px 0; }
.chart-events .event-banner { margin: 0; padding: 7px 14px; font-size: 13.5px; }
.thin-pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--high) 55%, var(--border)); color: var(--high); font-size: 13px; white-space: nowrap; cursor: help; }
.thin-pill[hidden] { display: none; }
/* a card's Sources line (owner 2026-11-19): where the words come from, under its table, quieter than the hint */
.src-line { margin: 8px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; }
/* a phone: the pill gives way (smaller, then "…") so the gear always fits; it pushed the page 2 px sideways at 320-375 px
   (2026-11-19). Its words stay in its tooltip. */
@media (max-width: 720px) {
  .thin-pill:not([hidden]) { display: inline-block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 4px 8px; font-size: 12px; }
}
.mk-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 2px; }
.ctx-tile { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--edge); min-width: 0; }
.ctx-tile .ctx-name { color: var(--muted); font-size: 12.5px; }
.ctx-tile .ctx-val { margin-top: 2px; font: 700 24px/1.2 var(--font-num); }
.ctx-tile .ctx-val small { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.ctx-tile .ctx-say { margin-top: 4px; font-size: 12.5px; line-height: 1.45; }
.ctx-tile.stale .ctx-val { opacity: .55; }
.ctx-tile .ctx-down { margin-top: 4px; color: var(--high); font-size: 12px; }
.ctx-foot { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .mk-context { grid-template-columns: minmax(0, 1fr); } .event-banner .ev-tag { display: none; } }

/* the click-to-explain pop-up (owner 2026-11-18, market_context.js mcExplain): the banner's "What to expect" and the
   Macro menu's rows */
.event-banner .ev-more { padding: 0; font-size: 13px; }
dialog.ex-modal { width: min(560px, calc(100vw - 32px)); }
.ex-modal h2 { margin: 0 0 2px; }
.ex-modal h3 { margin: 14px 0 4px; font-size: 13.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ex-modal p { margin: 0; line-height: 1.55; font-size: 14px; }
.ex-modal .ex-time { font: 600 15px/1.4 var(--font-num); }
.ex-modal .ex-warn { margin-top: 14px; padding: 8px 12px; border-radius: 10px; border-left: 4px solid var(--high); background: var(--high-bg); font-weight: 600; }

/* the calm "Next:" line days before a release (owner 2026-11-18), market_context.js mcUpcoming */
.event-upcoming { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 7px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--low) 45%, var(--border)); background: var(--low-bg); font-size: 13.5px; line-height: 1.45; }
.event-upcoming .ev-ico { color: var(--low); font-size: 16px; }
.event-upcoming b { color: var(--text); }
.event-upcoming .ev-words { min-width: 0; flex: 1; }
.event-upcoming .ev-more { flex: none; padding: 0; font-size: 13px; }

/* Explanations on hover (owner 2026-11-21): the Macro > Markets title pop-up for the whole site, and one styled tip for
   every field's hover text. Both are page_basics.js's (tips): a field's tip opens at once on hover, keyboard focus or a
   tap; a title's "i" pop-up only on a click, a tap, Enter or Space (owner 2026-11-23). Both close on Escape or a tap
   elsewhere; the browser's own tooltip never shows. Text 16px, headings 13.5px, title 18px:
   never smaller than the page's own text (.hint is 15px).
   A title:  <h2><span class="tip-title" tabindex="0" aria-describedby="X">Name<i class="tip-i" aria-hidden="true"></i></span></h2>
             <div class="anno tip-pop" role="tooltip" id="X"><div class="anno-t">Name</div>
               <div class="anno-h">What it shows</div><ul><li>...</li></ul><div class="anno-h">How you use it</div><ul>...</ul></div>
   A field:  any title="..." (read as it is, then kept in data-tip). */
.tip-title { cursor: pointer; border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 70%, transparent); outline: none; }
.tip-title:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 4px; }
.tip-i::before { content: "i"; }  /* drawn, not text: a title's words stay its own (copy, innerText) */
.tip-i { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 8px; border-radius: 50%;
  font: italic 700 12.5px Georgia, serif; vertical-align: 2px; color: var(--accent); border: 1.5px solid var(--accent); }
.anno { padding: 14px 16px 12px 18px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, var(--border));
  font-size: 16px; line-height: 1.55; color: var(--text); text-align: left; font-weight: 400; letter-spacing: normal; text-transform: none; }
.anno-t { margin: 0 0 6px; font-family: var(--font-num); font-size: 18px; line-height: 28px; font-weight: 650; }
.anno-n + .anno-t { margin-left: 36px; }
.anno-h { margin: 12px 0 3px; font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.anno ul { margin: 0; padding-left: 18px; }
.anno li { margin: 3px 0; }
.anno p { margin: 0; }
.anno p + p { margin-top: 6px; }
.anno-n { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent); color: var(--bg); font: 700 14px var(--font-num); }
/* the box itself: in the browser's top layer (popover), so no card's edge or scroll cuts it; placed by page_basics.js
   inside the screen, card-wide at 600px or less */
.tip-pop, .ui-tip { position: fixed; inset: auto; margin: 0; z-index: 1000; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 16px);
  overflow: auto; background: var(--surface);
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--accent) 7%, transparent));
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .55), var(--edge); overflow-wrap: anywhere; }
.tip-pop:not(.open), .ui-tip:not(.open) { display: none; }
.tip-pop.open, .ui-tip.open { display: block; animation: tip-in .12s ease-out; }
@keyframes tip-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tip-pop.open, .ui-tip.open { animation: none; } }
/* a field's tip: its words as written (a line break in the text is a new line); more than 2 lines: the pop-up's layout,
   the field's name on top and a line a point */
.ui-tip { width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 9px 14px; border-radius: 11px; white-space: pre-line;
  pointer-events: none; }  /* words only: the pointer reaches the field under it */
.ui-tip.long { width: min(480px, calc(100vw - 32px)); max-width: none; padding: 14px 16px 12px 18px; border-radius: 14px; white-space: normal; }
.ui-tip.long ul { padding-left: 18px; }
/* a page's own parts inside a pop-up (a moved How it works' live lines): the pop-up's size and colour */
.anno .gl-link { margin-left: 0; }
.anno .hint { font-size: inherit; line-height: inherit; color: inherit; max-width: none; margin: 6px 0 0; }
.anno h3 { margin: 12px 0 3px; font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.anno .rs-list, #view-backtest .anno .rs-list { margin: 0; padding-left: 18px; font-size: inherit; max-width: none; }
/* a moved How it works' own sub-heading, under WHAT IT SHOWS or HOW YOU USE IT */
.anno-s { margin: 9px 0 2px; font-weight: 650; }
.anno ol { margin: 4px 0 0; padding-left: 22px; }
.anno ol li { margin: 4px 0; }
.tip-i[hidden] { display: none; }
/* an "i" alone beside a box with no words of its own (the Alerts history filters, G6-03; owner 2026-12-03, #217) */
.tip-solo { border-bottom: none; display: inline-flex; align-items: center; align-self: center; margin-left: -4px; }
.tip-solo .tip-i { margin-left: 0; vertical-align: 0; }
.tip-solo:focus-visible { border-radius: 50%; }
.hf-status:empty + .tip-solo { display: none; }  /* no chips yet: no tip for them */

/* the New alert editor's Alert picker (owner 2026-11-22, mock-up approved): the Backtest token picker's .combo part
   filling step 1, two lines an alert (its name, the Glossary's short line), the matched text marked */
.step > div > .combo.search-box { width: 100%; }
.combo.type-combo .combo-pop { width: 440px; }
.type-combo .combo-list { max-height: 360px; }
.type-combo .combo-list li { flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; font-size: 15px; }
.type-combo .combo-list li .t-name { font-weight: 600; }
.type-combo .combo-list li .t-what { color: var(--muted); font-size: 15px; }
.type-combo .combo-list li mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; }
.type-combo .combo-list li.admin-only .t-name::after { content: "Admin only"; margin-left: 8px; font: 600 11px var(--font-ui);
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.type-combo .combo-count { font-size: 14px; }
.type-combo .combo-none { font-size: 15px; }
