/* Hallmark · genre: modern-minimal · macrostructure: Workbench · design-system: design.md · designed-as-app
 * theme: custom (vibe: "cool engineered trading terminal, dark") · nav: N3 side-rail · footer: none (app)
 * ASER.TRADE re-skin (2026-11-01): palette from marca/PALETA.md via tokens.css · Inter + JetBrains Mono (vendored)
 * Hallmark · pre-emit critique: P4 H4 E3 S5 R4 V4
 * contrast: pass (40-41) · honest: pass (46) · chrome: pass (47) · tokens: pass (48, CSS) · icons: pass (30)
 * open: gate 24 (legacy paddings are not on the named spacing scale yet)
 */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; min-height: 100vh;
  font-feature-settings: "cv11", "ss01", "ss03";
  background-image:
    radial-gradient(900px 420px at 100% -8%, color-mix(in oklch, var(--color-up) 7%, transparent), transparent 65%),
    radial-gradient(700px 380px at 30% -12%, color-mix(in oklch, var(--color-accent) 6%, transparent), transparent 65%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: color-mix(in oklch, var(--color-up) 25%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in oklch, var(--color-ink) 8%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in oklch, var(--color-ink) 16%, transparent); }
::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.up { color: var(--up); } .down { color: var(--down); } .dim { color: var(--muted); }
:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; border-radius: 6px; }
code { font: 12px var(--font-outlier); background: var(--card-2); padding: 1px 5px; border-radius: 5px; }

/* ---------- shell: sidebar + content ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; background: color-mix(in oklch, var(--color-shade) 75%, transparent); backdrop-filter: blur(14px); border-right: 1px solid var(--line); z-index: 12; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { filter: drop-shadow(0 4px 12px color-mix(in oklch, var(--color-up) 35%, transparent)); }
.tabs { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tabs a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tabs a em { margin-left: auto; font: 700 9.5px var(--font-body); font-style: normal; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; color: var(--ai); background: color-mix(in oklch, var(--color-accent) 14%, transparent); }
.tabs a:hover { color: var(--ink); background: color-mix(in oklch, var(--color-ink) 4%, transparent); }
.tabs a.on { color: var(--ink); background: linear-gradient(90deg, color-mix(in oklch, var(--color-up) 12%, transparent), color-mix(in oklch, var(--color-up) 2%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-up) 16%, transparent); }
.tabs a.on svg { color: var(--up); opacity: 1; }
.tabs a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--up); }
.tabs a.set { margin-top: auto; }
.live { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 6px; border-radius: 11px; background: color-mix(in oklch, var(--color-ink) 3%, transparent); font: 600 12px var(--font-body); color: var(--muted); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.live.on i { background: var(--up); animation: ping 2s infinite; }
.live.on span { color: var(--up); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-up) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px color-mix(in oklch, var(--color-up) 0%, transparent); } }
.content { min-width: 0; display: flex; flex-direction: column; }

/* ---------- stat strip ---------- */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 16px 28px 0; max-width: 1640px; width: 100%; margin: 0 auto; }
.strip:empty { display: none; }
.stat { padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; box-shadow: var(--shadow); }
.stat b { display: block; font: 600 11.5px var(--font-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font: 700 22px/1.25 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 3px; }
.stat small { font: 500 12px var(--font-body); color: var(--muted); }

main { padding: 24px 28px 80px; max-width: 1640px; width: 100%; margin: 0 auto; }
h1 { font-size: 30px; line-height: 1.12; margin: 0; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: 15px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 7px 0 0; color: var(--ink-2); max-width: 78ch; font-size: 14px; }
.page-head p b { color: var(--ink); }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, color-mix(in oklch, var(--color-ink) 2.2%, transparent), color-mix(in oklch, var(--color-ink) 0%, transparent) 140px), var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.card-head small { color: var(--muted); font: 500 12px var(--font-body); }
.radar-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* signals feed */
.feed { display: flex; flex-direction: column; max-height: 780px; overflow-y: auto; }
.sig { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); cursor: pointer; position: relative; align-items: start; transition: background .12s; }
.sig:hover { background: color-mix(in oklch, var(--color-ink) 2.5%, transparent); }
.sig::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--k, var(--muted)); opacity: .9; }
.sig.new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: color-mix(in oklch, var(--color-up) 12%, transparent); } }
.sig h3 { margin: 0; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.sig p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sig .meta { text-align: right; font: 500 12px var(--font-body); color: var(--muted); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 64px; }
.sig .meta b { display: block; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.sig-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.sig-top .dim { font: 500 12px var(--font-body); }
.sig.trade p .num { font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 650 10.5px var(--font-body); letter-spacing: .02em; color: var(--k, var(--muted)); background: color-mix(in srgb, var(--k, var(--muted)) 12%, transparent); border-radius: 6px; padding: 2px 7px; }

/* avatars */
img.av, .av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--card-2); flex: none; display: grid; place-items: center; font: 700 12px var(--font-body); color: var(--ink-2); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-ink) 7%, transparent); }
img.av.xs, .av.xs { width: 20px; height: 20px; border-radius: 6px; }
img.av.sm, .av.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
img.av.lg, .av.lg { width: 56px; height: 56px; border-radius: 16px; }
img.av.xl, .av.xl { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 0 0 4px var(--bg-2), 0 16px 30px -12px color-mix(in oklch, var(--color-shade) 80%, transparent); }
.av-wrap { position: relative; width: 40px; height: 40px; flex: none; }
.kind-badge { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--k); color: var(--color-on-fill); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.kind-badge svg { width: 12px; height: 12px; }
.wav { --s: 40px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; }
.wav.xs { --s: 20px; } .wav.sm { --s: 28px; } .wav.xl { --s: 92px; }
.pfp { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--card-2); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-ink) 9%, transparent); }
.pfp img { display: block; }
.pfp img.gen { width: 100%; height: 100%; }
/* Fomo card is 1200x630; the round photo is 168px wide at x=516, y=98 */
.pfp img.crop { position: absolute; width: calc(var(--s) * 1200 / 168); max-width: none; left: calc(var(--s) * -516 / 168); top: calc(var(--s) * -98 / 168); }
.wav.xl .pfp { box-shadow: 0 0 0 4px var(--bg-2), 0 16px 30px -12px color-mix(in oklch, var(--color-shade) 80%, transparent); }
.badge { position: absolute; right: -3px; bottom: -3px; width: 40%; height: 40%; min-width: 13px; min-height: 13px; border-radius: 50%; display: grid; place-items: center; font: 800 calc(var(--s) * .24)/1 var(--font-body); font-style: normal; box-shadow: 0 0 0 2px var(--card); }
.badge.fomo { background: linear-gradient(135deg, var(--color-caution), var(--color-down)); color: var(--color-ink); }
.badge.smart { background: var(--color-warn); color: var(--color-on-fill); }
.wav.xs .badge { display: none; }
.pair { display: flex; align-items: center; width: 52px; flex: none; }
.pair > :last-child { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.avs { display: inline-flex; vertical-align: middle; }
.avs > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--card-2); }
.avs > :first-child { margin-left: 0; }

/* table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: right; font: 600 11.5px var(--font-body); color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card); }
th:first-child, td:first-child { text-align: left; }
th.sortable { cursor: pointer; } th.sortable:hover { color: var(--ink-2); } th.sorted { color: var(--up); }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; font: 500 13px var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.row { cursor: pointer; } tr.row:hover td { background: color-mix(in oklch, var(--color-ink) 2.5%, transparent); }
tr.row.paused td { opacity: .5; } tr.row.paused:hover td { opacity: .85; }
.coin { display: flex; align-items: center; gap: 11px; min-width: 0; }
.coin b { font-weight: 650; font-size: 14px; }
.coin small { display: block; color: var(--muted); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--font-body); padding: 3px 9px; border-radius: 99px; background: color-mix(in oklch, var(--color-ink) 4%, transparent); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.score { display: inline-flex; align-items: center; gap: 7px; }
.bar { width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--up-dim), var(--up)); }
.safe { font: 650 11.5px var(--font-body); padding: 2px 8px; border-radius: 7px; }
.safe.ok { color: var(--up); background: color-mix(in oklch, var(--color-up) 10%, transparent); }
.safe.mid { color: var(--warn); background: color-mix(in oklch, var(--color-warn) 10%, transparent); }
.safe.bad { color: var(--down); background: color-mix(in oklch, var(--color-down) 10%, transparent); }
.safe.na { color: var(--muted); background: var(--card-2); }

/* narratives */
.nar-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0 18px 18px; }
.nar-mini { background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; padding: 12px; cursor: pointer; min-width: 0; transition: border-color .15s, transform .15s; }
.nar-mini:hover { border-color: var(--line-2); transform: translateY(-1px); }
.nar-mini h4 { margin: 0; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.nar-mini-top { display: flex; align-items: center; gap: 8px; }
.nar-mini-top b { font-size: 13.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nar-mini-top .heat-n { color: var(--muted); font-size: 12px; }
.nar-mini small, .nar-mini-foot small { color: var(--muted); font: 500 12px var(--font-body); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nar-mini-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.heat { height: 4px; border-radius: 2px; background: var(--line-2); margin: 9px 0 7px; overflow: hidden; }
.heat i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-warn), var(--color-caution), var(--color-down)); border-radius: 2px; }
.nar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.nar { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.nar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nar-top h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.nar-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nar-nums div { background: var(--card-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.nar-nums b { display: block; font: 600 11px var(--font-body); color: var(--muted); }
.nar-nums span { font: 700 15px var(--font-body); font-variant-numeric: tabular-nums; }
.leaders { display: flex; flex-direction: column; gap: 2px; }
.leader { display: flex; align-items: center; gap: 10px; padding: 6px 7px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.leader:hover { background: color-mix(in oklch, var(--color-ink) 3.5%, transparent); }
.leader .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.words { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.word { font: 600 13px var(--font-body); padding: 6px 11px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); }
.word em { font-style: normal; color: var(--up); margin-left: 6px; font-size: 11.5px; }
.emoji { font-size: 18px; line-height: 1; }

/* briefs */
.brief { padding: 2px 20px 20px; }
.brief h2, .md h2 { font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--up); margin: 18px 0 6px; }
.md p { margin: 6px 0; color: var(--ink-2); }
.md ul { margin: 4px 0; padding-left: 18px; color: var(--ink-2); }
.md li { margin: 5px 0; }
.md strong { color: var(--ink); }
.md .tk { color: var(--warn); font-weight: 600; }
.brief-meta { color: var(--muted); font-size: 12px; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: color-mix(in oklch, var(--color-ink) 4%, transparent); border-radius: 11px; padding: 9px 15px; font-weight: 600; font-size: 13px; transition: background .15s, border-color .15s, filter .15s; white-space: nowrap; }
.btn:hover { background: color-mix(in oklch, var(--color-ink) 7%, transparent); border-color: color-mix(in oklch, var(--color-ink) 20%, transparent); }
.btn.primary { background: var(--up); color: var(--color-on-fill); border-color: var(--up); box-shadow: 0 6px 20px -8px color-mix(in oklch, var(--color-up) 60%, transparent); }
.btn.primary:hover { filter: brightness(1.08); background: var(--up); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn svg { width: 15px; height: 15px; }
.btn.sm-btn { padding: 5px 11px; font-size: 12px; border-radius: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.input, select.input { background: var(--card); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 12px; min-width: 0; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--up); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--up); color: var(--color-on-fill); border-color: var(--up); font-weight: 650; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; padding: 4px 18px 18px; }
.field label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.field .input { width: 100%; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 11px; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--up); }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi b { font: 600 12px var(--font-body); color: var(--muted); }
.kpi span { display: block; font: 800 30px/1.15 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin-top: 5px; }
.kpi small { color: var(--muted); font-size: 12px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: color-mix(in oklch, var(--color-shade) 60%, transparent); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.panel { position: relative; width: min(840px, 100%); height: 100%; overflow-y: auto; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px -20px color-mix(in oklch, var(--color-shade) 70%, transparent); animation: slide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(36px); opacity: 0; } }
.p-head { display: flex; gap: 16px; align-items: center; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: relative; }
.p-head h2 { font-size: 26px; letter-spacing: -.02em; }
.p-head .sub { color: var(--muted); font-size: 13px; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; }
.p-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.p-sec { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.p-sec h3 { margin: 0 0 12px; font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.fact b { display: block; font: 600 11.5px var(--font-body); color: var(--muted); }
.fact span { font: 700 15px var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fact .unpriced { white-space: normal; }
.fact .unpriced small { display: inline-block; white-space: nowrap; }
.chart { width: 100%; height: 150px; }
.embed { width: 100%; height: 420px; border: 0; border-radius: 14px; background: var(--card); }
.risks { display: flex; flex-direction: column; gap: 6px; }
.risk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; }
.risk i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.risk small { display: block; color: var(--muted); }
.mint { font: 12px var(--font-outlier); color: var(--muted); overflow-wrap: anywhere; }

/* hero (coin + wallet) */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.banner { position: relative; height: 176px; overflow: hidden; background: var(--card); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.banner-gen { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) saturate(1.3); opacity: .9; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, color-mix(in oklch, var(--color-shade) 0%, transparent) 30%, var(--bg-2)); }
.hero .close { z-index: 5; background: color-mix(in oklch, var(--color-shade) 60%, transparent); backdrop-filter: blur(8px); border-color: color-mix(in oklch, var(--color-ink) 15%, transparent); }
.hero-body { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 16px; padding: 0 24px 18px; margin-top: -52px; }
.hero-av { flex: none; }
.hero-id { min-width: 0; flex: 1; padding-bottom: 2px; }
.hero-id h2 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-id .sub { color: var(--muted); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-id .chips { margin-top: 9px; }
.hero-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.hero-price .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-price .chg { font: 650 14px var(--font-body); }
.hero-price .chg small { color: var(--muted); font-weight: 500; }
.pill.safe-pill.ok { color: var(--up); border-color: color-mix(in oklch, var(--color-up) 35%, transparent); }
.pill.safe-pill.mid { color: var(--warn); border-color: color-mix(in oklch, var(--color-warn) 35%, transparent); }
.pill.safe-pill.bad { color: var(--down); border-color: color-mix(in oklch, var(--color-down) 35%, transparent); }
.pill.fomo-pill { color: var(--color-ink); background: linear-gradient(135deg, var(--color-caution), var(--color-down)); border-color: transparent; }
.icon-btn svg { width: 15px; height: 15px; }

/* states */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; font-weight: 650; }
.skel { height: 56px; margin: 10px 0; border-radius: 14px; background: linear-gradient(90deg, var(--card), var(--card-2), var(--card)); background-size: 200% 100%; animation: sh 1.3s infinite; }
.skel.big { height: 110px; }
.card .skel { margin: 8px 18px; }
@keyframes sh { to { background-position: -200% 0; } }
.boot { padding-top: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 650; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); z-index: 40; max-width: calc(100% - 32px); box-shadow: 0 16px 40px -12px color-mix(in oklch, var(--color-shade) 70%, transparent); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.note { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.linkish { color: var(--info); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.sig .meta .btn { padding: 5px 11px; font-size: 12px; }

/* fomo */
.btn.fomo { background: linear-gradient(135deg, var(--color-caution), var(--color-down)); color: var(--color-ink); border-color: transparent; box-shadow: 0 6px 18px -8px color-mix(in oklch, var(--color-down) 60%, transparent); }
.btn.fomo:hover { filter: brightness(1.08); }
.btn.fomo.sm { padding: 3px 10px; font-size: 11.5px; border-radius: 8px; margin: 4px 0 2px; display: inline-flex; box-shadow: none; }
.fomo-mark { font: 800 13px var(--font-body); letter-spacing: -.01em; padding: 1px 7px; border-radius: 6px; background: linear-gradient(135deg, var(--color-caution), var(--color-down)); color: var(--color-ink); margin-right: 6px; }

/* ticker tape */
.tape { position: sticky; top: 0; z-index: 9; overflow: hidden; border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--color-shade) 86%, transparent); backdrop-filter: blur(12px); height: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--color-shade) 4%, var(--color-shade) 96%, transparent); mask-image: linear-gradient(90deg, transparent, var(--color-shade) 4%, var(--color-shade) 96%, transparent); }
.tape:empty { display: none; }
.tape-track { display: flex; width: max-content; animation: tape 80s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; background: none; white-space: nowrap; font-size: 13px; font-weight: 600; }
.tape-item:hover { background: color-mix(in oklch, var(--color-ink) 4%, transparent); }
.tape-item .num { font-size: 12.5px; font-weight: 500; }
/* no reduced-motion fallback for the tape: it always moves (see the ASER tape block below) */

/* mini charts */
.spark { display: block; }
.spark-empty { display: inline-block; width: 84px; height: 1px; background: var(--line-2); vertical-align: middle; }

/* ================= research desk ================= */
.grade { --g: var(--muted); display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 7px; border-radius: 8px; font: 800 13px var(--font-body);
  color: var(--g); background: color-mix(in srgb, var(--g) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 40%, transparent); }
.grade.ga { --g: var(--color-up); } .grade.gb { --g: var(--color-accent); } .grade.gc { --g: var(--color-warn); } .grade.gd { --g: var(--color-caution); } .grade.gf { --g: var(--color-down); }
.grade.lg { min-width: 44px; height: 34px; font-size: 17px; border-radius: 10px; }
.grade.xl { min-width: 64px; height: 64px; font-size: 28px; border-radius: 18px; flex: none; }
.pill.running { color: var(--info); border-color: color-mix(in oklch, var(--color-accent) 40%, transparent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.desk-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.radar-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.desk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); cursor: pointer; align-items: center; transition: background .12s; }
.desk-row:hover { background: color-mix(in oklch, var(--color-ink) 2.5%, transparent); }
.desk-title { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.desk-title b { font-size: 14.5px; white-space: nowrap; }
.desk-title .dim { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-main { min-width: 0; }
.desk-main .verdict { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; }
.desk-side > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.bond { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.bond-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; max-width: 220px; }
.bond-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-up)); }
.bond .num { font-size: 12px; color: var(--ink-2); }
.hero-bond { justify-content: flex-end; width: 180px; }
.best { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0 18px 18px; }
.best-card { --g: var(--muted); display: flex; flex-direction: column; gap: 4px; padding: 15px; border-radius: 15px; cursor: pointer; min-width: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--g) 11%, transparent), transparent 60%), var(--card-2); border: 1px solid color-mix(in srgb, var(--g) 26%, var(--line)); transition: transform .15s, border-color .15s; }
.best-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--g) 45%, var(--line)); }
.best-card.ga { --g: var(--color-up); } .best-card.gb { --g: var(--color-accent); } .best-card.gc { --g: var(--color-warn); } .best-card.gd { --g: var(--color-caution); } .best-card.gf { --g: var(--color-down); }
.best-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.best-top > span { display: inline-flex; align-items: center; gap: 4px; }
.best-card b { font-size: 16px; letter-spacing: -.01em; }
.best-card p { margin: 7px 0 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.best-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; font-size: 12px; }

/* research report */
.p-sec.research { background: linear-gradient(180deg, color-mix(in oklch, var(--color-accent) 6%, transparent), transparent 240px); }
.r-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.r-head h3 { font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.r-verdict { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); font-weight: 550; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.r-card, .r-list, .r-sources { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; min-width: 0; }
.r-sources { margin-bottom: 10px; }
.r-card p, .r-list li { font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.r-card h4, .r-list h4, .r-sources h4 { margin: 0 0 7px; font: 700 11.5px var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.r-list ul { margin: 0; padding-left: 16px; }
.r-list.bull h4 { color: var(--up); } .r-list.bear h4, .r-list.flags h4 { color: var(--down); }
.r-list.flags { margin-bottom: 10px; }
.ceiling { font: 800 21px var(--font-body); color: var(--warn); margin: 2px 0 4px; letter-spacing: -.01em; }
.meter { display: grid; grid-template-columns: 84px 1fr 22px; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.meter-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-accent), var(--color-up)); border-radius: 3px; }
.meter b { text-align: right; color: var(--ink); font-size: 12px; }
.src { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.src:first-of-type { border-top: 0; }
.src small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.xbuzz { border-color: color-mix(in oklch, var(--color-accent) 25%, transparent); background: linear-gradient(180deg, color-mix(in oklch, var(--color-accent) 6%, transparent), transparent 160px), var(--card); }

/* fast lane */
.tier { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; vertical-align: middle; }
.tier.fast { color: var(--color-warn); background: color-mix(in oklch, var(--color-warn) 12%, transparent); }
.tier.deep { color: var(--ai); background: color-mix(in oklch, var(--color-accent) 15%, transparent); }
.desk-side .pill.running { font-size: 11px; padding: 2px 8px; }
.lane-note { padding: 13px 18px; font-size: 13px; color: var(--ink-2); border-color: color-mix(in oklch, var(--color-warn) 30%, transparent); }
.lane-note b { color: var(--ink); }
.nar-rank { display: flex; flex-direction: column; padding: 0 18px 10px; }
.nar-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.nar-row:first-child { border-top: 0; }
.nar-row .grow { flex: 1; min-width: 0; }
.nar-best { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; min-width: 160px; justify-content: flex-end; }

/* ================= picks ================= */
.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; padding: 0 18px 18px; }
.call { border: 1px solid var(--line-2); border-radius: 15px; padding: 15px; background: var(--card-2); cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.call:hover { transform: translateY(-2px); }
.call.live { border-color: color-mix(in oklch, var(--color-up) 35%, transparent); background: linear-gradient(160deg, color-mix(in oklch, var(--color-up) 8%, transparent), transparent 55%), var(--card-2); }
.call.won { border-color: color-mix(in oklch, var(--color-up) 25%, transparent); } .call.lost { opacity: .8; }
.call p { margin: 0; font-size: 13px; color: var(--ink-2); }
.call-top { display: flex; gap: 12px; align-items: center; }
.call-top .grow { flex: 1; min-width: 0; }
.call-res { text-align: right; display: flex; flex-direction: column; }
.call-res .num { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.call-res small { color: var(--muted); font-size: 11.5px; }
.call-nums { display: flex; gap: 16px; font-size: 12.5px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.call-nums b { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.ladder { display: flex; gap: 6px; flex-wrap: wrap; }
.ladder span { font: 650 11.5px var(--font-body); padding: 3px 8px; border-radius: 7px; background: color-mix(in oklch, var(--color-ink) 5%, transparent); color: var(--ink-2); }
.ladder span.hit { background: color-mix(in oklch, var(--color-up) 15%, transparent); color: var(--up); }
.ladder span.stop { color: var(--down); background: color-mix(in oklch, var(--color-down) 8%, transparent); }
.act { font: 800 10.5px var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; margin-left: 6px; }
.act-buy { background: color-mix(in oklch, var(--color-up) 15%, transparent); color: var(--up); } .act-watch { background: color-mix(in oklch, var(--color-warn) 13%, transparent); color: var(--warn); } .act-avoid { background: color-mix(in oklch, var(--color-down) 12%, transparent); color: var(--down); }
.stage { font: 800 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; background: color-mix(in oklch, var(--color-ink) 5%, transparent); color: var(--muted); }
.st-early { color: var(--info); background: color-mix(in oklch, var(--color-accent) 13%, transparent); } .st-running { color: var(--up); background: color-mix(in oklch, var(--color-up) 13%, transparent); }
.st-peaking { color: var(--warn); background: color-mix(in oklch, var(--color-warn) 13%, transparent); } .st-dead { color: var(--muted); }
.scouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; padding: 0 18px 18px; }
.scout { padding: 16px; background: var(--card-2); display: flex; flex-direction: column; gap: 10px; box-shadow: none; }
.scout p { margin: 0; font-size: 13px; color: var(--ink-2); }
.scout-top { display: flex; align-items: center; gap: 9px; }
.scout-top h3 { margin: 0; font-size: 15.5px; flex: 1; letter-spacing: -.01em; }
.conf { font-size: 19px; font-weight: 800; }
.cats { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); }
.cats li { margin: 2px 0; }
.kw { display: flex; gap: 5px; flex-wrap: wrap; }
.kw span { font: 500 11.5px var(--font-body); padding: 2px 8px; border-radius: 6px; background: color-mix(in oklch, var(--color-ink) 4%, transparent); color: var(--ink-2); }
.scout-coins { display: flex; gap: 6px; flex-wrap: wrap; }
.scout-coins .leader { padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 20px; gap: 6px; font-size: 12px; cursor: pointer; background: color-mix(in oklch, var(--color-ink) 2%, transparent); }
.scout-coins .leader .av.sm { width: 22px; height: 22px; border-radius: 50%; }
.scout-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.pill.ran { color: var(--up); border-color: color-mix(in oklch, var(--color-up) 40%, transparent); }
.rules { margin: 6px 0 12px; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.rules li { margin: 3px 0; }
h4.sub { margin: 6px 18px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card > .note, .card > ol, .card > ul, .card > .dim.small { margin-left: 18px; margin-right: 18px; }
.card > .dim.small:last-child { margin-bottom: 18px; display: block; }
.r-trade { border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 15px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.r-trade p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.r-trade .act { margin-left: 0; }
.act-bg-buy { border-color: color-mix(in oklch, var(--color-up) 40%, transparent); background: color-mix(in oklch, var(--color-up) 5%, transparent); }
.act-bg-avoid { border-color: color-mix(in oklch, var(--color-down) 30%, transparent); }

/* ================= responsive ================= */
@media (max-width: 1280px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .radar-grid, .radar-grid.even { grid-template-columns: 1fr; }
    .brand span, .tabs a span, .tabs a em, .live span { display: none; }
  .brand { justify-content: center; padding: 4px 0 18px; }
  .tabs a { justify-content: center; padding: 11px 0; }
  .tabs a.on::before { left: -12px; }
  .live { justify-content: center; padding: 10px 0; }
}
@media (max-width: 700px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: color-mix(in oklch, var(--color-shade) 92%, transparent); }
  .brand, .live { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .tabs a { flex: none; flex-direction: column; gap: 3px; padding: 7px 12px; font-size: 10.5px; }
  .tabs a span { display: block; }
  .tabs a.on::before { display: none; }
  .tabs a.set { margin-top: 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px 0; gap: 8px; }
  .stat { padding: 10px 12px; } .stat span { font-size: 18px; }
  main { padding: 18px 16px 110px; }
  h1 { font-size: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi span { font-size: 24px; }
  .nar-grid, .calls, .scouts { grid-template-columns: 1fr; }
  .p-head, .p-acts, .p-sec { padding-left: 16px; padding-right: 16px; }
  .embed { height: 340px; }
  .hide-sm { display: none; }
  .banner { height: 130px; }
  .hero-body { flex-wrap: wrap; padding: 0 16px 16px; margin-top: -44px; }
  .hero-price { width: 100%; flex-direction: row; align-items: baseline; gap: 10px; justify-content: flex-start; text-align: left; }
  img.av.xl, .wav.xl { width: 76px; height: 76px; --s: 76px; }
  .hero-id h2 { font-size: 24px; }
  .pair { width: 46px; }
  .r-grid { grid-template-columns: 1fr; }
  .hero-bond { width: 100%; justify-content: flex-start; }
  .grade.xl { min-width: 52px; height: 52px; font-size: 22px; }
  .nar-row .meter-bar, .nar-row .small { display: none; } .nar-best { min-width: 0; }
}

/* ================= pulse ================= */
.tabs a em.live-em { color: var(--up); background: color-mix(in oklch, var(--color-up) 13%, transparent); animation: pulse 1.6s ease-in-out infinite; }
body.pulse-mode .strip { display: none; }
body.pulse-mode main { max-width: none; padding: 16px 18px 24px; }
.pulse-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.pulse-title { display: flex; align-items: center; gap: 12px; }
.pulse-title h1 { font-size: 26px; }
.beat { width: 92px; height: 22px; fill: none; stroke: var(--up); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 150; stroke-dashoffset: 150; animation: beat 1.8s linear infinite; filter: drop-shadow(0 0 6px color-mix(in oklch, var(--color-up) 60%, transparent)); }
@keyframes beat { 0% { stroke-dashoffset: 150; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -150; } }
.pulse-live { display: flex; gap: 8px; flex-wrap: wrap; }
.pulse-live span { font-size: 12.5px; color: var(--muted); padding: 5px 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.pulse-live b { color: var(--ink); margin-right: 3px; }
.pulse-live span.hot { color: var(--ai); border-color: color-mix(in oklch, var(--color-accent) 35%, transparent); background: color-mix(in oklch, var(--color-accent) 8%, transparent); }
.pulse-live span.hot b { color: var(--ai); }
.pulse-tools { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.pulse-tools .input { width: 240px; padding: 7px 12px; }
.pulse-tools .chip { padding: 5px 11px; }

.pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: calc(100vh - 40px - 108px); min-height: 520px; }
.pcol { display: flex; flex-direction: column; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.pcol header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in oklch, var(--color-ink) 2.5%, transparent), transparent); }
.pcol header h2 { font-size: 15px; }
.pcol header small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pcount { font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: color-mix(in oklch, var(--color-ink) 6%, transparent); padding: 1px 8px; border-radius: 99px; }
.prating { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--ai); }
.prating i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); animation: ping-ai 1.4s infinite; }
@keyframes ping-ai { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px color-mix(in oklch, var(--color-accent) 0%, transparent); } }
.pcol-body { overflow-y: auto; flex: 1; min-height: 0; }
.pcol-body .skel { margin: 10px 12px; height: 72px; }

.pr { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s, opacity .3s; }
.pr:hover { background: color-mix(in oklch, var(--color-ink) 3%, transparent); }
.pr.faded { opacity: .45; }
.pr.faded:hover { opacity: .8; }
.pr.enter { animation: pr-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes pr-in { from { opacity: 0; transform: translateY(-8px); background: color-mix(in oklch, var(--color-up) 12%, transparent); } }
.pr.tick-up { animation: tick-up 1s ease-out; }
.pr.tick-down { animation: tick-down 1s ease-out; }
@keyframes tick-up { from { background: color-mix(in oklch, var(--color-up) 10%, transparent); } }
@keyframes tick-down { from { background: color-mix(in oklch, var(--color-down) 9%, transparent); } }
.pr.graded { animation: graded 1.6s ease-out; }
@keyframes graded { 0% { background: color-mix(in oklch, var(--color-accent) 22%, transparent); box-shadow: inset 3px 0 0 var(--ai); } 100% { box-shadow: inset 3px 0 0 transparent; } }
.pr.is-buy { background: linear-gradient(90deg, color-mix(in oklch, var(--color-up) 9%, transparent), transparent 60%); box-shadow: inset 3px 0 0 var(--up); }
/* Grok reading this coin right now: a scan line sweeps the row */
.pr.rating { background: linear-gradient(90deg, color-mix(in oklch, var(--color-accent) 7%, transparent), transparent 70%); box-shadow: inset 3px 0 0 var(--ai); }
.pr.rating::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-accent) 16%, transparent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: scan 1.6s linear infinite; }
@keyframes scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.pr-av { position: relative; width: 58px; height: 58px; flex: none; border-radius: 15px; padding: 3px; background: conic-gradient(var(--up) calc(var(--ring) * 1%), color-mix(in oklch, var(--color-ink) 8%, transparent) 0); }
.pr-av.gold { background: conic-gradient(var(--color-warn), var(--color-caution), var(--color-warn)); }
.pr-av img.av { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 2px var(--card); }
.pr-pct { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); font: 700 9.5px var(--font-body); padding: 1px 5px; border-radius: 6px; background: var(--card-3); color: var(--up); box-shadow: 0 0 0 2px var(--card); font-variant-numeric: tabular-nums; }
.pr-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-l1 { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.pr-sym { font-size: 15px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }
.pr-name { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pr-links { display: inline-flex; gap: 6px; align-self: center; }
.pr-links a { color: var(--muted); display: grid; place-items: center; }
.pr-links a:hover { color: var(--ink); }
.pr-links svg, .pr-l2 svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-l2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr-l2 span { display: inline-flex; align-items: center; gap: 4px; }
.pr-l2 .down { color: var(--down); }
.pr-age { color: var(--up); font-weight: 650; }
.bs { display: inline-block; width: 30px; height: 4px; border-radius: 2px; background: color-mix(in oklch, var(--color-down) 60%, transparent); overflow: hidden; margin-left: 3px; }
.bs i { display: block; height: 100%; background: var(--up); }
.pr-verdict { font-size: 12px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pr-verdict b { color: var(--ai); font-weight: 650; }
.pr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 104px; }
.pr-mc, .pr-v { display: flex; align-items: baseline; gap: 5px; font-size: 12px; }
.pr-mc small, .pr-v small { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.pr-mc b { font-size: 15px; font-weight: 750; color: var(--color-accent); }
.pr-v .num { color: var(--ink-2); }
.pr-act { display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.fomo-q { font: 700 11px var(--font-body); padding: 4px 9px; border-radius: 99px; background: linear-gradient(135deg, var(--color-accent), var(--color-accent)); color: var(--color-ink); white-space: nowrap; }
.fomo-q:hover { filter: brightness(1.12); }

.ai { display: inline-flex; align-items: center; gap: 4px; font: 650 11px var(--font-body); padding: 3px 8px; border-radius: 99px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai.none { color: var(--muted); background: color-mix(in oklch, var(--color-ink) 3.5%, transparent); }
.ai.queued { color: var(--ink-2); background: color-mix(in oklch, var(--color-ink) 6%, transparent); }
.ai.reading { color: var(--color-accent); background: color-mix(in oklch, var(--color-accent) 18%, transparent); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-accent) 40%, transparent), 0 0 14px -2px color-mix(in oklch, var(--color-accent) 55%, transparent); }
.ai.reading i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid color-mix(in oklch, var(--color-accent) 35%, transparent); border-top-color: var(--color-accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai.done { --g: var(--muted); color: var(--g); background: color-mix(in srgb, var(--g) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 35%, transparent); }
.ai.done.ga { --g: var(--color-up); } .ai.done.gb { --g: var(--color-accent); } .ai.done.gc { --g: var(--color-warn); } .ai.done.gd { --g: var(--color-caution); } .ai.done.gf { --g: var(--color-down); }
.ai.done b { font-weight: 800; font-size: 12px; }
.ai.done em { font-style: normal; opacity: .75; }
.ai.done .spin { width: 8px; height: 8px; border-radius: 50%; border: 2px solid color-mix(in oklch, var(--color-accent) 30%, transparent); border-top-color: var(--ai); animation: spin .7s linear infinite; }
.ai.done.buy { box-shadow: inset 0 0 0 1px var(--up), 0 0 16px -3px color-mix(in oklch, var(--color-up) 70%, transparent); }
.buy-tag { color: var(--color-on-fill); background: var(--up); padding: 0 5px; border-radius: 5px; font-size: 10px !important; margin-right: 2px; }

@media (max-width: 1280px) { .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; } .pcol { height: 70vh; } }
@media (max-width: 800px) { .pulse { grid-template-columns: 1fr; } .pcol { height: 75vh; } .pulse-tools { margin-left: 0; } .pulse-tools .input { width: 100%; } }

/* live trade ticks */
.fl-up { animation: fl-up .7s ease-out; }
.fl-down { animation: fl-down .7s ease-out; }
@keyframes fl-up { 0% { color: var(--color-ink); background: color-mix(in oklch, var(--color-up) 45%, transparent); border-radius: 4px; box-shadow: 0 0 10px color-mix(in oklch, var(--color-up) 60%, transparent); } 100% { background: transparent; box-shadow: none; } }
@keyframes fl-down { 0% { color: var(--color-ink); background: color-mix(in oklch, var(--color-down) 45%, transparent); border-radius: 4px; box-shadow: 0 0 10px color-mix(in oklch, var(--color-down) 60%, transparent); } 100% { background: transparent; box-shadow: none; } }
.lv-mc, .lv-tx { padding: 0 2px; margin: 0 -2px; }
.pr.is-live .pr-age::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 5px; vertical-align: 1px; animation: ping 1.6s infinite; }
.pr.buying .pr-av { box-shadow: 0 0 14px -4px color-mix(in oklch, var(--color-up) 70%, transparent); }
.pr.selling .pr-av { box-shadow: 0 0 14px -4px color-mix(in oklch, var(--color-down) 60%, transparent); }
.pr-av { transition: box-shadow .4s, background .4s; }
.pr-l2 b { font-weight: 600; }
.pulse-live .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.pulse-live .feed-on { color: var(--up); border-color: color-mix(in oklch, var(--color-up) 30%, transparent); }
.pulse-live .feed-on .dot { background: var(--up); animation: ping 1.4s infinite; }
.pulse-live .feed-on b { color: var(--up); }

/* triage chips */
.tri { display: inline-flex; align-items: center; gap: 4px; font: 800 10px var(--font-body); letter-spacing: .04em; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.tri em { font-style: normal; font-weight: 600; opacity: .75; letter-spacing: 0; }
.tri.is-rules { border: 1px dashed currentColor; padding: 2px 6px; opacity: .8; }
.tri-wait { color: var(--muted); background: color-mix(in oklch, var(--color-ink) 4%, transparent); animation: pulse 1.2s infinite; }
.tri-slop { color: var(--color-muted); background: color-mix(in oklch, var(--color-ink) 5%, transparent); }
.tri-meh { color: var(--color-warn); background: color-mix(in oklch, var(--color-warn) 7%, transparent); }
.tri-maybe { color: var(--info); background: color-mix(in oklch, var(--color-accent) 13%, transparent); }
.tri-promising { color: var(--up); background: color-mix(in oklch, var(--color-up) 14%, transparent); box-shadow: 0 0 12px -3px color-mix(in oklch, var(--color-up) 60%, transparent); }
.pr.slop { opacity: .5; }
.pr.slop:hover { opacity: .85; }
.pr-verdict.tri-why.tri-maybe, .pr-verdict.tri-why.tri-promising { color: var(--ink); }

/* ---------- trust layer: states, warnings, honest numbers ---------- */
.pad { padding-left: 18px; padding-right: 18px; }
.chips.pad { padding-bottom: 10px; }
p.note.pad { margin: 0 0 12px; }
.mono { font-family: var(--font-outlier); font-size: .92em; }
.small { font-size: 12px; }
.strike { text-decoration: line-through; color: var(--muted); }
td small, th small { display: block; font: 500 11px var(--font-body); color: var(--muted); }
.check.small { padding: 4px 9px; font-size: 12px; }
.btn.on { border-color: var(--up); color: var(--up); }
.warn-pill { color: var(--warn); border-color: color-mix(in oklch, var(--color-warn) 40%, transparent); }
.pill.on { background: var(--up); color: var(--color-on-fill); border-color: var(--up); }

/* small state tags next to a coin: dead, unsellable, stale price, duplicate ticker */
.st { display: inline-flex; align-items: center; font: 650 10.5px var(--font-body); letter-spacing: .01em; padding: 2px 7px; border-radius: 6px; margin-left: 6px; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.st.dead { color: var(--ink-2); background: color-mix(in oklch, var(--color-ink) 7%, transparent); }
.st.bad { color: var(--down); background: color-mix(in oklch, var(--color-down) 12%, transparent); border-color: color-mix(in oklch, var(--color-down) 30%, transparent); }
.st.old { color: var(--warn); background: color-mix(in oklch, var(--color-warn) 10%, transparent); }
.st.dup { color: var(--warn); background: color-mix(in oklch, var(--color-warn) 10%, transparent); }
.st.top { color: var(--up); background: color-mix(in oklch, var(--color-up) 10%, transparent); }
.sig-top .st { margin-left: 0; }
.idline { color: var(--muted); font-size: 11px !important; }
th .arrow { font-style: normal; font-size: 9px; margin-left: 4px; }

.warn-box { border: 1px solid color-mix(in oklch, var(--color-warn) 35%, transparent); background: color-mix(in oklch, var(--color-warn) 7%, transparent); border-radius: 12px; padding: 11px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.warn-box b { color: var(--ink); }
.warn-box.w-bad { border-color: color-mix(in oklch, var(--color-down) 45%, transparent); background: color-mix(in oklch, var(--color-down) 8%, transparent); }
.warn-box.w-info { border-color: color-mix(in oklch, var(--color-accent) 35%, transparent); background: color-mix(in oklch, var(--color-accent) 7%, transparent); }
.card > .warn-box { margin: 0 18px 12px; }
.warn-note { color: var(--warn); }
.card.basis { padding: 13px 18px; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); border-color: color-mix(in oklch, var(--color-accent) 30%, transparent); line-height: 1.5; }
.card.basis b { color: var(--ink); }
.card.partial { border-color: color-mix(in oklch, var(--color-warn) 30%, transparent); }
.p-sec.tight { padding-top: 12px; padding-bottom: 12px; }

/* signals feed: unscreened rows, grouped repeats */
.sig.raw { opacity: .82; background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklch, var(--color-ink) 1.2%, transparent) 14px 28px); }
.sig.raw h3 { color: var(--ink-2); }
.more-pill { font: 600 11px var(--font-body); color: var(--info); border: 1px solid color-mix(in oklch, var(--color-accent) 35%, transparent); border-radius: 99px; padding: 1px 8px; background: transparent; }
.more-pill.open { background: color-mix(in oklch, var(--color-accent) 12%, transparent); }
.sig-more { border-left: 2px solid color-mix(in oklch, var(--color-accent) 30%, transparent); margin-left: 18px; }
.sig-more .sig { padding-top: 9px; padding-bottom: 9px; }

/* stat strip: health cell */
a.stat { color: inherit; text-decoration: none; display: block; }
a.stat:hover { border-color: var(--line-2); }
.stat.hs-degraded span { color: var(--warn); }
.stat.hs-down span { color: var(--down); }
.stat.hs-ok span { color: var(--up); }

/* filter panels */
.fpanel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.fpanel > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.fpanel > summary::-webkit-details-marker { display: none; }
.fpanel > summary::before { content: "\25B8"; color: var(--muted); font-size: 11px; }
.fpanel[open] > summary::before { content: "\25BE"; }
.factive { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { font: 600 11.5px var(--font-body); color: var(--up); border: 1px solid color-mix(in oklch, var(--color-up) 35%, transparent); background: color-mix(in oklch, var(--color-up) 8%, transparent); border-radius: 99px; padding: 3px 9px; }
.fchip:hover { background: color-mix(in oklch, var(--color-down) 12%, transparent); border-color: color-mix(in oklch, var(--color-down) 40%, transparent); color: var(--down); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 4px 14px 12px; }
.ffield span { display: block; font: 600 11.5px var(--font-body); color: var(--muted); margin-bottom: 4px; }
.ffield em { font-style: normal; opacity: .7; }
.ffield .input { width: 100%; padding: 7px 10px; }
.fpresets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; font-size: 12.5px; }
.preset { display: inline-flex; align-items: center; }
.preset .x { color: var(--muted); font-size: 11px; padding: 2px 5px; margin-left: -4px; background: none; border: 0; }
.preset .x:hover { color: var(--down); }
.pager { display: flex; align-items: center; gap: 10px; }
body.pulse-mode .fpanel { margin: 0 0 10px; }

/* tracking / queue summary rows */
.card.track, .card.provs { padding: 14px 18px; margin-bottom: 14px; }
.card.track.warn, .card.provs.warn { border-color: color-mix(in oklch, var(--color-warn) 35%, transparent); }
.track-row, .prov-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.track-row b { display: block; font: 700 17px var(--font-body); font-variant-numeric: tabular-nums; }
.track-row span, .prov small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.prov b { display: block; font: 600 11.5px var(--font-body); color: var(--muted); }
.prov span { display: block; font: 700 15px var(--font-body); margin-top: 2px; }
.prov span.warn { color: var(--warn); }

/* picks: loop status, narrative freshness */
.status-list { padding: 0 18px 6px; display: flex; flex-direction: column; gap: 8px; }
.status-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.status-line i { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--muted); }
.status-line.s-ok i { background: var(--up); }
.status-line.s-wait i { background: var(--warn); }
.status-line.s-bad i { background: var(--down); }
.scout.expired { opacity: .78; }
.scout-age { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scout-age .st { margin-left: 0; }
.srcs { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.srcs b { font: 600 11px var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.srcs em { font-style: normal; color: var(--muted); }
.scout-coins .leader.paused { opacity: .55; }

/* health page */
.hrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(170px, auto); gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); align-items: start; }
.hstate { font: 700 11px var(--font-body); letter-spacing: .03em; text-transform: uppercase; padding: 4px 0; text-align: center; border-radius: 7px; background: color-mix(in oklch, var(--color-ink) 5%, transparent); color: var(--muted); }
.hs-ok .hstate { color: var(--up); background: color-mix(in oklch, var(--color-up) 10%, transparent); }
.hs-degraded .hstate { color: var(--warn); background: color-mix(in oklch, var(--color-warn) 12%, transparent); }
.hs-down .hstate { color: var(--down); background: color-mix(in oklch, var(--color-down) 12%, transparent); }
.hmain b { font-size: 14px; }
.hmain p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.hmain .hfix { color: var(--ink); }
.hmain .hfix b { font-size: 13px; color: var(--warn); }
.htimes { text-align: right; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.htimes b { color: var(--ink-2); font-weight: 600; }

/* coin drawer */
.hero-price .fresh { font: 500 11.5px var(--font-body); color: var(--muted); }
.hero-price .fresh.old { color: var(--warn); }
.hero-price.unreliable .big, .hero-price.unreliable .dim { text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--color-down) 70%, transparent); color: var(--muted); }
.mint-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.verdict-box { border-radius: 12px; padding: 12px 14px; font-size: 13px; border: 1px solid var(--line-2); color: var(--ink-2); line-height: 1.45; }
.verdict-box b { display: block; font-size: 14px; margin-bottom: 3px; }
.verdict-box ul { margin: 4px 0 6px; padding-left: 18px; color: var(--ink); }
.verdict-box.pass { border-color: color-mix(in oklch, var(--color-up) 35%, transparent); background: color-mix(in oklch, var(--color-up) 6%, transparent); }
.verdict-box.pass b { color: var(--up); }
.verdict-box.fail { border-color: color-mix(in oklch, var(--color-down) 45%, transparent); background: color-mix(in oklch, var(--color-down) 7%, transparent); }
.verdict-box.fail b { color: var(--down); }
.verdict-box.unknown { border-color: color-mix(in oklch, var(--color-warn) 35%, transparent); background: color-mix(in oklch, var(--color-warn) 6%, transparent); }
.verdict-box.unknown b { color: var(--warn); }
.chart2 { width: 100%; height: auto; display: block; }
.chart2 text { font: 500 10px var(--font-body); fill: var(--muted); }
.chart2 .vol rect { fill: color-mix(in oklch, var(--color-ink) 16%, transparent); }
.chart2 .mk { cursor: help; }
.chips.tf { margin-bottom: 8px; }
.chips.tf .chip { padding: 3px 10px; font-size: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .lg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.up-bg { background: var(--up); }
.down-bg { background: var(--down); }
.legend .lg-tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--warn); flex: none; }
.legend .lg-bar { width: 4px; height: 11px; background: color-mix(in oklch, var(--color-ink) 30%, transparent); flex: none; }
.btn .unv { font-style: normal; font-size: 10px; color: var(--warn); margin-left: 2px; }
details.fix > summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }
.pr-ca { color: var(--muted); font-size: 11px; }

/* settings */
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; padding: 2px 18px 18px; }
.chk { display: flex; gap: 10px; align-items: flex-start; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.chk i { font-style: normal; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; background: color-mix(in oklch, var(--color-ink) 8%, transparent); color: var(--muted); }
.chk.ok i { background: color-mix(in oklch, var(--color-up) 16%, transparent); color: var(--up); }
.chk.todo i { background: color-mix(in oklch, var(--color-warn) 16%, transparent); color: var(--warn); }
.chk b { display: block; font-size: 13.5px; }
.chk span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.rule { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.rule .st { margin-left: 0; }
.rule .btn { margin-left: auto; }
.plain { padding: 2px 18px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.plain p { margin: 0 0 10px; }
.plain b { color: var(--ink); }
table.rec td { vertical-align: top; }
@media (max-width: 900px) {
  .hrow { grid-template-columns: 84px minmax(0, 1fr); }
  .htimes { grid-column: 2; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 10px; }
}
.sig-top { flex-wrap: wrap; row-gap: 4px; }
.sig-top .tag, .more-pill { white-space: nowrap; }
.track-row > div > b span { display: inline; font: inherit; color: var(--muted); }
.fact span span { display: inline; }
.pr-ca { flex: none; }

/* the bot: four tabs on the home page */
.btabs { display: flex; gap: 6px; flex-wrap: wrap; }
.btab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 8px 14px; font: 650 13.5px var(--font-body); color: var(--ink-2); }
.btab em { font-style: normal; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--color-ink) 8%, transparent); color: var(--muted); }
.btab span { font-size: 12px; color: var(--muted); }
.btab:hover { color: var(--ink); }
.btab.on { background: var(--up); border-color: var(--up); color: var(--color-on-fill); }
.btab.on em { background: color-mix(in oklch, var(--color-shade) 20%, transparent); color: var(--color-on-fill); }
.btab.on span { color: var(--color-on-fill); opacity: .75; }
.bot-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); max-width: 1100px; line-height: 1.5; }
.bot-note b { color: var(--ink); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.pick { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--muted); }
.pick.won { border-left-color: var(--up); }
.pick.lost { border-left-color: var(--down); }
.pick:hover { border-color: var(--line-2); }
.pick-top { display: flex; gap: 12px; align-items: center; }
.pick-top b { font-size: 16px; }
.pick-top .num.dim { margin-left: 6px; font-size: 12px; }
.pick p { margin: 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-res { text-align: right; }
.pick-res .num { display: block; font: 800 22px var(--font-body); }
.pick-res small { color: var(--muted); font-size: 11.5px; }
.pick .call-nums { align-items: center; }
body.pulse-mode #botView .kpis { margin-bottom: 16px; }

.pulse-tools[hidden], #pfilters[hidden], #tabNew[hidden], #botView[hidden] { display: none !important; }

.rule-line { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; color: var(--ink-2); }
.rule-line b { display: block; font-size: 13.5px; color: var(--ink); }
.rule-line.up { border-color: color-mix(in oklch, var(--color-up) 35%, transparent); background: color-mix(in oklch, var(--color-up) 5%, transparent); }
.rule-line.up b { color: var(--up); }
.rule-line.down { border-color: color-mix(in oklch, var(--color-down) 35%, transparent); background: color-mix(in oklch, var(--color-down) 5%, transparent); }
.rule-line.down b { color: var(--down); }

.watch { margin-bottom: 14px; }
.watch .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.watch .dot.ok { background: var(--up); box-shadow: 0 0 8px var(--up); }
.watch .dot.bad { background: var(--down); }
.wrow { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; flex-wrap: wrap; }
.wrow:hover { background: color-mix(in oklch, var(--color-ink) 3%, transparent); }
.wrow .wwhy { color: var(--warn, var(--color-warn)); }
.wrow.off .wwhy { color: var(--ink-2); }
.wskip { margin-top: 8px; }
.wskip summary { cursor: pointer; color: var(--muted); font-size: 12.5px; padding: 4px 2px; }

.trc { font: 700 11.5px var(--font-body); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.trc.hi { color: var(--up); border-color: color-mix(in oklch, var(--color-up) 40%, transparent); background: color-mix(in oklch, var(--color-up) 7%, transparent); }
.trc.mid { color: var(--ink-2); }
.ai .pw { font-style: normal; font-size: 10.5px; opacity: .85; margin-left: 2px; }
.ai .pw.no { color: var(--down); }
.r-think { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.r-think h4 { margin: 0 0 6px; font-size: 13px; }
.r-think p { margin: 4px 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.r-think p b { display: inline-block; min-width: 132px; color: var(--ink); font-weight: 650; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ev-grid h3 { margin: 0; font-size: 13.5px; }
.ev-grid table { width: 100%; margin-top: 6px; font-size: 13px; }
.ev-grid td, .ev-grid th { padding: 4px 6px; text-align: right; }
.ev-grid td:first-child, .ev-grid th:first-child { text-align: left; }

.trc.early { color: var(--color-warn); border-color: color-mix(in oklch, var(--color-warn) 45%, transparent); background: color-mix(in oklch, var(--color-warn) 8%, transparent); }

/* ---------- Pulse Filters (per-column, Axiom / GMGN layout) ---------- */
.pcol header .pcol-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.pcol-q { width: 92px; padding: 5px 9px; font-size: 12px; border-radius: 9px; }
.pcol-q:focus { width: 130px; }
.pslots { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.pslots button { padding: 4px 7px; font: 650 11px var(--font-body); color: var(--muted); background: transparent; border: 0; }
.pslots button + button { border-left: 1px solid var(--line-2); }
.pslots button:hover { color: var(--ink); }
.pslots button.on { color: var(--info); background: color-mix(in oklch, var(--color-accent) 12%, transparent); }
.pfbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); }
.pfbtn:hover { color: var(--ink); border-color: var(--ink-2); }
.pfbtn.on { color: var(--info); border-color: color-mix(in oklch, var(--color-accent) 55%, transparent); background: color-mix(in oklch, var(--color-accent) 10%, transparent); }
.pfbtn i, #pfm button i { font: 700 10px var(--font-body); font-style: normal; background: var(--info); color: var(--color-on-fill); border-radius: 99px; min-width: 15px; height: 15px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }
.pfbtn i { position: absolute; top: -6px; right: -6px; }

#pfm { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; }
.pf-back { position: absolute; inset: 0; background: color-mix(in oklch, var(--color-shade) 72%, transparent); backdrop-filter: blur(3px); }
.pf-win { position: relative; width: min(560px, calc(100vw - 24px)); max-height: min(780px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px -20px color-mix(in oklch, var(--color-shade) 80%, transparent); }
.pf-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.pf-head h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.pf-slots { display: flex; gap: 2px; }
.pf-slots button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font: 650 12px var(--font-body); }
.pf-slots button:hover { color: var(--ink); }
.pf-slots button.on { color: var(--info); background: color-mix(in oklch, var(--color-accent) 14%, transparent); }
.pf-ic { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font-size: 15px; }
.pf-ic:hover { background: color-mix(in oklch, var(--color-ink) 6%, transparent); color: var(--ink); }
.pf-cols { display: flex; align-items: center; gap: 4px; padding: 4px 18px 12px; border-bottom: 1px solid var(--line); }
.pf-cols .pf-reset { margin-left: auto; }
.pf-cols button:not(.pf-ic), .pf-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--font-body); }
.pf-cols button:not(.pf-ic):hover, .pf-tabs button:hover { color: var(--ink); }
.pf-cols button.on, .pf-tabs button.on { color: var(--ink); background: color-mix(in oklch, var(--color-ink) 6%, transparent); }
.pf-io { padding: 12px 18px 0; display: grid; gap: 8px; }
.pf-io textarea { width: 100%; height: 70px; font: 11px var(--font-outlier); resize: vertical; }
.pf-io div { display: flex; gap: 8px; }
.pf-scroll { overflow-y: auto; padding: 14px 18px 6px; min-height: 0; flex: 1; }
.pf-kw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-kw label, .pf-field { display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); }
.pf-kw .input, .pf-field .input { width: 100%; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.pf-tabs { display: flex; gap: 4px; margin: 16px 0 12px; }
.pf-sec { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; font-size: 13.5px; }
.pf-protos, .pf-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pf-proto, .pf-tog { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 600 12.5px var(--font-body); }
.pf-proto.on { color: var(--up); border-color: color-mix(in oklch, var(--color-up) 50%, transparent); background: color-mix(in oklch, var(--color-up) 8%, transparent); }
.pf-tog { border-radius: 9px; }
.pf-tog.on { color: var(--info); border-color: color-mix(in oklch, var(--color-accent) 60%, transparent); background: color-mix(in oklch, var(--color-accent) 10%, transparent); }
.pf-proto.off, .pf-tog.off, .pf-field.off { opacity: .38; cursor: not-allowed; }
.pf-proto.off.on { opacity: .7; }
.pf-more { border: 0; background: transparent; color: var(--ink-2); font: 600 12.5px var(--font-body); margin-bottom: 14px; display: inline-flex; gap: 6px; align-items: center; }
.pf-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.pf-field.wide { margin-bottom: 12px; }
.pf-mm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-mm label { position: relative; display: block; }
.pf-mm em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 12px; pointer-events: none; }
.pf-mm input::-webkit-outer-spin-button, .pf-mm input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.pf-foot .btn.primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); box-shadow: 0 6px 20px -8px color-mix(in oklch, var(--color-accent) 70%, transparent); border-radius: 99px; padding: 9px 20px; }
img.av[data-pic] { background-size: cover; background-position: center; }
.pcol header h2, .pcol header .prating { white-space: nowrap; }
.pcol header { gap: 6px; }
.pcol-q { width: 62px; flex: 0 1 62px; min-width: 40px; }
.pcol-q:focus { width: 120px; flex-basis: 120px; }
.pslots, .pfbtn { flex: none; }

/* =====================================================================
   v4 terminal pass. Flat, dense, square: colour is for data, not decoration.
   Overrides the v3 theme above; nothing else needs to change.
   ===================================================================== */
body { font-size: 13px; background-image: none; font-feature-settings: "cv11", "ss01", "tnum"; }
::selection { background: color-mix(in oklch, var(--color-accent) 30%, transparent); }
:focus-visible { outline: 1px solid var(--info); outline-offset: 1px; border-radius: 4px; }

/* shell */
.side { background: var(--bg-2); backdrop-filter: none; padding: 14px 8px; gap: 2px; }
.brand { font-size: 14px; font-weight: 700; padding: 2px 10px 14px; letter-spacing: 0; }
.brand img { filter: none; width: 24px; height: 24px; }
.tabs a { padding: 7px 10px; border-radius: 6px; font-size: 13px; gap: 10px; }
.tabs a svg { width: 16px; height: 16px; stroke-width: 1.6; }
.tabs a.on { background: var(--card-2); box-shadow: none; color: var(--ink); }
.tabs a.on svg { color: var(--ink); }
.tabs a.on::before { left: -8px; top: 7px; bottom: 7px; width: 2px; background: var(--info); border-radius: 0; }
.tabs a em { color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 600; }
.live { border-radius: 6px; background: transparent; padding: 8px 10px; }
.live.on i { animation: none; }

/* top strip: one bar with dividers instead of six boxes */
.strip { gap: 0; padding: 0 20px; margin: 12px auto 0; max-width: none; }
.strip .stat { border-radius: 0; background: var(--card); border: 1px solid var(--line); border-left-width: 0; padding: 8px 14px; box-shadow: none; }
.strip .stat:first-child { border-left-width: 1px; border-radius: 8px 0 0 8px; }
.strip .stat:last-child { border-radius: 0 8px 8px 0; }
.stat b { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat span { font-size: 17px; font-weight: 650; letter-spacing: 0; margin-top: 2px; }
.stat small { font-size: 11px; }
.tape { height: 30px; background: var(--bg-2); backdrop-filter: none; }
.tape-item { height: 30px; font-size: 12px; padding: 0 14px; font-weight: 500; }

main { padding: 16px 20px 60px; max-width: none; }
h1 { font-size: 18px; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.page-head { margin-bottom: 14px; align-items: center; }
.page-head p { font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 110ch; }
.page-head p b { color: var(--ink-2); font-weight: 600; }

/* surfaces */
.card { background: var(--card); box-shadow: none; }
.card-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.card-head small { font-size: 11.5px; }
.kpis { gap: 8px; margin-bottom: 12px; }
.kpi { padding: 10px 14px; }
.kpi b { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.kpi span { font-size: 20px; font-weight: 650; letter-spacing: 0; margin-top: 2px; }
.empty { padding: 28px 16px; font-size: 12.5px; }
.empty b { font-size: 13px; }
.note { font-size: 12px; }

/* controls */
.btn { border-radius: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 550; background: var(--card-2); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--color-on-fill); box-shadow: none; }
.btn.primary:hover { background: var(--color-ink); filter: none; }
.btn.sm-btn { border-radius: 5px; padding: 4px 9px; font-size: 11.5px; }
.btn.fomo, .pill.fomo-pill { background: transparent; color: var(--color-caution); border: 1px solid color-mix(in oklch, var(--color-caution) 45%, transparent); box-shadow: none; }
.btn.fomo:hover { background: color-mix(in oklch, var(--color-caution) 10%, transparent); filter: none; }
.input, select.input { border-radius: 6px; padding: 6px 10px; background: var(--bg-2); font-size: 12.5px; }
.input:focus { border-color: var(--info); }
.chip { border-radius: 6px; padding: 4px 10px; font-size: 12px; background: transparent; }
.chip.on, .pill.on { background: var(--card-3); color: var(--ink); border-color: var(--muted); font-weight: 600; }
.pill { border-radius: 4px; padding: 2px 7px; font-size: 11px; }
.tag { border-radius: 4px; }
.grade { border-radius: 4px; height: 22px; min-width: 30px; font-size: 12px; font-weight: 700; }
.grade.lg { border-radius: 5px; } .grade.xl { border-radius: 8px; }
.act { border-radius: 4px; font-weight: 700; padding: 2px 6px; }

/* tables */
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 12px; }
td { padding: 7px 12px; font-size: 12.5px; }
th.sorted { color: var(--ink); }
.coin b { font-size: 13px; font-weight: 600; }
.coin small { font-size: 11.5px; }
img.av, .av { border-radius: 8px; width: 36px; height: 36px; }
img.av.sm, .av.sm { border-radius: 6px; } img.av.xs, .av.xs { border-radius: 4px; }
img.av.lg, .av.lg { border-radius: 10px; } img.av.xl, .av.xl { border-radius: 12px; }

/* signals */
.sig { padding: 10px 14px; }
.sig h3 { font-size: 13px; font-weight: 600; }
.sig p { font-size: 12px; }

/* pulse */
.pulse-head { gap: 12px; margin-bottom: 10px; }
.pulse-title h1 { font-size: 18px; }
.beat { display: none; }
.pulse-live { gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pulse-live span { border-radius: 0; border: 0; border-left: 1px solid var(--line); background: var(--card); padding: 5px 10px; font-size: 11.5px; }
.pulse-live span:first-child { border-left: 0; }
.pulse-live span.hot { background: var(--card); border-color: var(--line); }
.pulse { gap: 8px; height: calc(100vh - 30px - 150px); }
.pcol header { padding: 8px 10px; background: var(--bg-2); }
.pcol header h2 { font-size: 13px; }
.pr { padding: 9px 12px; gap: 10px; }
.pr.is-buy { background: color-mix(in oklch, var(--color-up) 6%, transparent); box-shadow: inset 2px 0 0 var(--up); }
.pr.rating { background: color-mix(in oklch, var(--color-accent) 5%, transparent); box-shadow: inset 2px 0 0 var(--ai); }
.pr-av { width: 52px; height: 52px; border-radius: 10px; padding: 2px; }
.pr-av img.av { width: 48px; height: 48px; border-radius: 8px; }
.pr.buying .pr-av, .pr.selling .pr-av { box-shadow: none; }
.pr-sym { font-size: 13.5px; font-weight: 650; }
.pr-name { font-size: 12px; }
.pr-mc b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.pr-l2 { font-size: 11.5px; gap: 8px; }
.pr-verdict { font-size: 11.5px; color: var(--muted); }
.pslots, .pfbtn, .pcol-q { border-radius: 5px; }
.pf-win { border-radius: 10px; }
.pf-proto { border-radius: 5px; }
.pf-foot .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--color-on-fill); box-shadow: none; border-radius: 6px; }

/* segmented control */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; flex: none; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 550 12px var(--font-body); padding: 5px 11px; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card-3); color: var(--ink); }
.seg.big button { padding: 7px 16px; font-size: 12.5px; }

/* picks ledger */
.kps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-bottom: 10px; }
.kp { padding: 10px 14px; border-left: 1px solid var(--line); min-width: 0; }
.kp:first-child { border-left: 0; }
.kp span { display: block; font: 600 10.5px var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kp b { display: block; font-size: 20px; font-weight: 650; margin: 2px 0 1px; }
.kp small { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk { border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-bottom: 10px; min-width: 0; }
.blk-head { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.blk-head small { color: var(--muted); font-size: 11.5px; }
.blk-head.tools { align-items: center; }
.blk-head.tools h2 { margin-right: auto; }
.blk-head .count { color: var(--muted); font-weight: 500; margin-left: 6px; }
.blk-head .input { width: 170px; }
.eq-wrap { padding: 10px 14px 4px; }
svg.eq { width: 100%; height: 150px; display: block; }
.eq-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 4px 0 6px; font-variant-numeric: tabular-nums; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mini { padding: 10px 14px; border-left: 1px solid var(--line); min-width: 0; }
.mini:first-child { border-left: 0; }
.mini h4 { margin: 0 0 6px; font: 600 10.5px var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mini div { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; font-size: 12px; padding: 3px 0; color: var(--ink-2); }
.mini div b { text-align: right; font-weight: 600; }
.mini div span:nth-child(2) { color: var(--muted); }
.ledger td { vertical-align: middle; }
.ledger td small.sub { display: block; color: var(--muted); font-size: 10.5px; font-weight: 400; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.blk > .table-wrap { max-height: calc(100vh - 220px); overflow: auto; }
.ledger th { background: var(--card); z-index: 1; }
.st2 { font: 600 10.5px var(--font-body); text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); }
.st2.open { color: var(--info); border-color: color-mix(in oklch, var(--color-accent) 40%, transparent); }
.st2.won { color: var(--up); border-color: color-mix(in oklch, var(--color-up) 40%, transparent); }
.st2.lost { color: var(--down); border-color: color-mix(in oklch, var(--color-down) 35%, transparent); }
.tagx { font: 500 10px var(--font-body); color: var(--muted); border: 1px solid var(--line-2); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
@media (max-width: 1100px) { .kps { grid-template-columns: repeat(3, 1fr); } .minis { grid-template-columns: 1fr; } .mini { border-left: 0; border-top: 1px solid var(--line); } }


/* v4 follow-ups */
.btabs { gap: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.btab { border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 6px 12px; font: 550 12.5px var(--font-body); }
.btab:first-child { border-left: 0; }
.btab em { display: none; }
.btab.on { background: var(--card-3); color: var(--ink); border-color: var(--line-2); }
.btab.on span { color: var(--ink-2); opacity: 1; }
.fomo-q { background: transparent !important; color: var(--color-caution) !important; border: 1px solid color-mix(in oklch, var(--color-caution) 40%, transparent) !important; border-radius: 5px !important; box-shadow: none !important; font-weight: 600; }
.fomo-q:hover { background: color-mix(in oklch, var(--color-caution) 10%, transparent) !important; }
.ledger th:nth-child(2), .ledger td:nth-child(2), .ledger th:nth-child(3), .ledger td:nth-child(3), .ledger th:nth-child(10), .ledger td:nth-child(10) { text-align: left; }
.ledger .coin small { max-width: 260px; }
.ledger td b { font-weight: 600; }

.guard { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-left: 2px solid var(--up); border-radius: 8px; background: var(--card); margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.guard b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.guard span { flex: 1; min-width: 0; }
.guard a { white-space: nowrap; }
.guard.held { border-left-color: var(--warn); }
.guard.held b { color: var(--warn); }


/* =====================================================================
   v5: response, materials, type and motion (after Apple's fluid-interface notes).
   - every control answers on the press, not the release
   - floating chrome is a translucent material with content moving under it
   - the side sheet and the filter window move on springs / along one path (see app.js)
   - type: system font, tighter tracking as it gets larger
   - reduced motion, reduced transparency and more-contrast are all honoured
   ===================================================================== */
body { font-family: var(--font-body); font-optical-sizing: auto; line-height: 1.45; }

/* type: tracking follows size */
h1 { letter-spacing: -.02em; line-height: 1.15; }
h2 { letter-spacing: -.005em; }
.p-head h2, .hero h2 { letter-spacing: -.022em; line-height: 1.1; }
.kp b, .kpi span, .stat span { letter-spacing: -.015em; }
th, .stat b, .kp span, .kpi b, .mini h4 { letter-spacing: .045em; }
.page-head p, .note { line-height: 1.5; }

/* response: feedback on the press */
.btn, .chip, .seg button, .pfbtn, .pslots button, .btab, .pf-tog, .pf-proto, .pf-ic, .pf-slots button, .pf-cols button, .pf-tabs button, .tabs a, .close, .tape-item, .fomo-q, th.sortable {
  transition: transform .1s ease-out, background-color .12s ease-out, border-color .12s ease-out, color .12s ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active, .chip:active, .pfbtn:active, .pf-tog:active, .pf-proto:active, .pf-ic:active, .close:active, .fomo-q:active { transform: scale(.96); }
.seg button:active, .pslots button:active, .btab:active, .pf-slots button:active, .pf-cols button:active, .pf-tabs button:active, .tabs a:active, th.sortable:active { background-color: color-mix(in oklch, var(--color-ink) 8%, transparent); }
.pr, tr.row td, .sig, .desk-row, .leader { transition: background-color .12s ease-out; }
.pr:active, .sig:active, .desk-row:active, .leader:active { background-color: color-mix(in oklch, var(--color-ink) 6%, transparent); }
tr.row:active td { background-color: color-mix(in oklch, var(--color-ink) 6%, transparent); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* materials: floating chrome is translucent, content scrolls beneath it */
.tape { background: var(--material); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line), 0 10px 18px -14px color-mix(in oklch, var(--color-shade) 80%, transparent); }
th { background: var(--material); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.ledger th { background: var(--material); }
.pcol header { background: var(--material); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); position: relative; z-index: 2; border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line); }
/* scroll edge: rows fade under the column header instead of meeting a hard line */
.pcol-body { -webkit-mask-image: linear-gradient(180deg, transparent 0, black 12px); mask-image: linear-gradient(180deg, transparent 0, black 12px); padding-top: 4px; }

/* the side sheet: a thick material over a dimmed (not blurred) page; position is driven by the spring */
.scrim { background: color-mix(in oklch, var(--color-shade) 50%, transparent); backdrop-filter: none; animation: none; opacity: 0; will-change: opacity; }
.panel { animation: none; will-change: transform; background: var(--material-thick); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  border-left: 1px solid var(--edge); box-shadow: -24px 0 60px -24px color-mix(in oklch, var(--color-shade) 85%, transparent); overscroll-behavior: contain; }
.panel.dragging { user-select: none; cursor: grabbing; }
.panel .hero, .panel .p-head { cursor: grab; touch-action: pan-y; }
.close { border-radius: 8px; background: color-mix(in oklch, var(--color-ink) 6%, transparent); border-color: var(--edge); }

/* the filter window: materialises out of its button, and goes back into it */
.pf-back { background: color-mix(in oklch, var(--color-shade) 50%, transparent); backdrop-filter: none; }
.pf-win { background: var(--material-thick); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); border-color: var(--edge); box-shadow: 0 1px 0 color-mix(in oklch, var(--color-ink) 6%, transparent) inset, 0 30px 80px -24px color-mix(in oklch, var(--color-shade) 90%, transparent); }
#pfm.enter .pf-win { animation: pf-in .28s var(--ease-out) both; }
#pfm.enter .pf-back { animation: fade .2s ease-out both; }
#pfm.leave { pointer-events: none; }
#pfm.leave .pf-win { animation: pf-out .16s cubic-bezier(.8, 0, .8, .2) both; }
#pfm.leave .pf-back { animation: pf-fade-out .16s ease-in both; }
@keyframes pf-in { from { opacity: 0; transform: scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pf-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.9); filter: blur(6px); } }
@keyframes pf-fade-out { to { opacity: 0; } }

/* toast: a small material that rises and settles */
.toast { background: color-mix(in oklch, var(--color-ink) 92%, transparent); color: var(--color-on-fill); backdrop-filter: blur(16px); border-radius: 10px; font-weight: 600; font-size: 12.5px; padding: 9px 14px; transition: opacity .2s ease-out, transform .32s var(--ease-out); transform: translate(-50%, 12px) scale(.96); }
.toast.show { transform: translate(-50%, 0) scale(1); }

/* focus that is visible but calm */
:focus-visible { outline: 2px solid color-mix(in srgb, var(--info) 70%, transparent); outline-offset: 2px; }

/* reduced motion: keep the feedback, drop the travel */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn:active, .chip:active, .pfbtn:active, .pf-tog:active, .pf-proto:active, .pf-ic:active, .close:active, .fomo-q:active { transform: none; opacity: .7; }
  .toast, .toast.show { transform: translate(-50%, 0); transition: opacity .2s ease; }
  .scrim { transition: opacity .2s ease; }
}
/* reduced transparency: materials become solid */
@media (prefers-reduced-transparency: reduce) {
  .tape, th, .ledger th, .pcol header, .panel, .pf-win { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toast { background: var(--ink); backdrop-filter: none; }
  .pcol-body { -webkit-mask-image: none; mask-image: none; }
}
/* more contrast: solid surfaces, defined edges, brighter secondary text */
@media (prefers-contrast: more) {
    .tape, th, .pcol header, .panel, .pf-win { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pcol-body { -webkit-mask-image: none; mask-image: none; }
}


/* =====================================================================
   v6 Hallmark pass (design.md). Every value here is a token.
   What it settles, in one place:
   - one display face for headings and lead figures, system sans for everything else
   - one accent (cobalt); green, red and amber are data colours only
   - no side stripes, no decorative gradients, no glow, no frosted glass
   - one layer of containment: things inside a card are rows, not more cards
   ===================================================================== */
html, body { overflow-x: clip; }
body { font-family: var(--font-body); background-image: none; }

/* type */
h1, h2, h3, .brand, .p-head h2, .hero h2, .kp b, .kpi span, .stat span, .ceiling, .empty b, .pf-head h2 { font-family: var(--font-display); font-style: normal; }
h1, .p-head h2, .hero h2 { overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.kp b, .kpi span, .stat span { font-variant-numeric: tabular-nums; font-weight: 600; }
code, .mint, .ca { font-family: var(--font-outlier); }

/* solid chrome: no blur, no translucency */
.tape, th, .ledger th, .pcol header, .panel, .pf-win, .side { background: var(--color-paper-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.toast { background: var(--color-ink); color: var(--color-on-fill); backdrop-filter: none; }
.scrim, .pf-back { background: color-mix(in oklch, var(--color-shade) 62%, transparent); }
.panel { border-left: var(--rule-hair) solid var(--color-rule-2); box-shadow: none; }
.pf-win { border: var(--rule-hair) solid var(--color-rule-2); box-shadow: none; }
.tape { box-shadow: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
#pfm { z-index: var(--z-modal); }
@keyframes pf-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pf-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.94); } }

/* flat surfaces: gradients only where they carry data (progress ring, skeleton) */
.card, .pcol header, .p-sec.research, .xbuzz, .call.live, .best-card, .tabs a.on { background-image: none; }
.card { background-color: var(--color-paper-3); }
.tabs a.on { background-color: var(--color-paper-4); }
.best-card { background-color: var(--color-paper-4); }
.best-card:hover, .nar-mini:hover, .call:hover, .pick:hover { transform: none; border-color: var(--color-rule-2); }
.bar i, .bond-bar i, .meter-bar i { background: var(--color-accent); }
.heat i { background: var(--color-warn); }
.pr-av.gold { background: var(--color-warn); }
.sig.raw { background-image: none; }

/* no side stripes: state is a full hairline and a tint, or a small square */
.tabs a.on::before, .sig::before { content: none; }
.sig { padding-left: var(--space-md); }
.pr.is-buy { background: color-mix(in oklch, var(--color-up) 7%, transparent); box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklch, var(--color-up) 40%, transparent); }
.pr.rating { background: color-mix(in oklch, var(--color-accent) 6%, transparent); box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklch, var(--color-accent) 35%, transparent); }
.pr.rating::after { content: none; }
.pr.graded { animation: graded-tint .9s var(--ease-out); }
@keyframes graded-tint { from { background-color: color-mix(in oklch, var(--color-accent) 18%, transparent); } }
.pick, .sig-more, .guard { border-left: var(--rule-hair) solid var(--color-rule); }
.sig-more { border: 0; margin-left: var(--space-md); }
.guard b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: var(--space-xs); background: var(--color-up); vertical-align: 1px; }
.guard.held b::before { background: var(--color-warn); }

/* one accent: the Fomo link is an ordinary outlined control, not a second brand colour */
.btn.fomo, .pill.fomo-pill, .fomo-q, .fomo-mark, .badge.fomo { background: transparent !important; background-image: none !important; color: var(--color-ink) !important; border: var(--rule-hair) solid var(--color-rule-2) !important; box-shadow: none !important; }
.btn.fomo:hover, .fomo-q:hover { background: var(--color-paper-5) !important; filter: none; }
.badge.fomo { background: var(--color-paper-5) !important; }
.pr-mc b { color: var(--color-ink); }

/* one layer of containment: inside a card or the sheet, groups are separated by rules, not boxed again */
.card .nar-mini, .card .call, .card .pick, .card .best-card, .p-sec .r-card, .p-sec .r-list, .p-sec .r-sources, .checklist > * {
  background: transparent; border: 0; border-top: var(--rule-hair) solid var(--color-rule); border-radius: 0; box-shadow: none;
}
.checklist { gap: 0 var(--space-lg); }

/* controls: every state present, focus instant */
.btn.primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-fill); }
.btn.primary:hover { background: color-mix(in oklch, var(--color-ink) 88%, var(--color-paper)); border-color: transparent; }
.btn:disabled, .btn[disabled], .seg button:disabled, .pf-tog:disabled, .pf-proto:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.input, select.input { border-width: var(--rule-hair); outline: 2px solid transparent; outline-offset: 1px; }
.input:focus { border-color: var(--color-rule-2); }
.input:focus-visible { outline-color: var(--color-focus); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.chip.on, .pill.on, .seg button.on, .btab.on, .pslots button.on, .pf-slots button.on { background: var(--color-paper-5); color: var(--color-ink); border-color: var(--color-rule-2); }
.pfbtn.on, .pf-tog.on { color: var(--color-accent); border-color: color-mix(in oklch, var(--color-accent) 55%, transparent); background: color-mix(in oklch, var(--color-accent) 10%, transparent); }
.pf-proto.on { color: var(--color-ink); border-color: var(--color-rule-2); background: var(--color-paper-5); }
.pfbtn i, #pfm button i { background: var(--color-accent); color: var(--color-accent-ink); }
a.linkish, .linkish { color: var(--color-accent); }
.live.on i, .live.on span { color: var(--color-up); }

/* clickable text stays on one line */
.btn, .chip, .seg button, .btab, .tabs a, .pf-tog, .pf-proto, th.sortable { white-space: nowrap; }

/* small screens: one column, nothing wider than the screen */
@media (max-width: 48rem) {
  .pulse { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pcol { max-height: 70vh; }
  .kps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--space-sm); }
  .strip .stat, .strip .stat:first-child, .strip .stat:last-child { border-radius: 0; border-left-width: var(--rule-hair); }
  main { padding: var(--space-sm) var(--space-sm) var(--space-2xl); }
  .blk-head.tools { gap: var(--space-xs); }
  .blk-head .input { width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; }
  .page-head { align-items: flex-start; }
  .pulse-tools { margin-left: 0; width: 100%; }
  .pulse-tools .input { width: 100%; }
  .pulse-live { flex-wrap: wrap; }
  .guard { flex-wrap: wrap; }
  .pf-kw { grid-template-columns: minmax(0, 1fr); }
  .radar-grid { grid-template-columns: minmax(0, 1fr); }
}


/* =====================================================================
   v7 terminal pass. Tokens only (design.md).
   - the live columns no longer carry a mask on their scroll body: Chrome left masked scroll
     containers blank until the first scroll on this PC (the empty "New pairs" column)
   - four live columns (New pairs / Running now / Final stretch / Migrated)
   - holder chips (holders, top 10, dev, snipers, bundle) from the trade-feed ledger
   - a selected row for the keyboard, the watchlist star, the paper-buy buttons, the desk strip
   ===================================================================== */
.pcol-body { -webkit-mask-image: none; mask-image: none; padding-top: 0; contain: content; }
.pcol-body > .pr:first-child { border-top: 0; }
.pr.enter { animation-fill-mode: none; }
.pulse.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1600px) { .pulse.four { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; } .pulse.four .pcol { height: 70vh; } }
@media (max-width: 48rem) { .pulse.four { grid-template-columns: minmax(0, 1fr); } }

/* column header: sort */
.psort { width: auto; max-width: 96px; padding: 3px 6px; font-size: var(--text-2xs); border-radius: var(--radius-control); color: var(--color-muted); background: var(--color-paper-3); }
.psort.on { color: var(--color-accent); border-color: color-mix(in oklch, var(--color-accent) 55%, transparent); }

/* holder chips */
.hl { display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-2xs); color: var(--color-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hl b { font-weight: 600; }
.hl.down { color: var(--color-down); }
.hl.win { color: var(--color-muted); }
.hl.win b { color: var(--color-ink); }
.hl.win.down b { color: var(--color-down); }
.hl-tag { display: inline-block; font: 700 9.5px var(--font-body); letter-spacing: .05em; padding: 1px 5px; border-radius: var(--radius-chip); font-style: normal; white-space: nowrap; }
.hl-tag.ds { color: var(--color-down); border: var(--rule-hair) solid color-mix(in oklch, var(--color-down) 55%, transparent); background: color-mix(in oklch, var(--color-down) 10%, transparent); }
.pill.tag-dev { color: var(--color-warn); border-color: color-mix(in oklch, var(--color-warn) 50%, transparent); }
.pill.tag-sniper { color: var(--color-down); border-color: color-mix(in oklch, var(--color-down) 50%, transparent); }
.pill.tag-bundle { color: var(--color-caution); border-color: color-mix(in oklch, var(--color-caution) 50%, transparent); }

/* the selected row (keyboard) and the watchlist star */
.pr.sel { background: color-mix(in oklch, var(--color-accent) 9%, transparent); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-accent); }
.pr.watched { box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklch, var(--color-warn) 35%, transparent); }
.pr.watched.sel { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-accent); }
.star { font-size: 12px; line-height: 1; color: var(--color-rule-2); padding: 0 2px 0 0; cursor: pointer; align-self: center; }
.star:hover { color: var(--color-ink-2); }
.star.on { color: var(--color-warn); }
.pr-l1 .star { margin-right: -2px; }

/* the read button sits where the AI chip will be */
button.ai.rd { cursor: pointer; border: var(--rule-hair) dashed var(--color-rule-2); }
button.ai.rd:hover { color: var(--color-ink); border-color: var(--color-ink-2); background: var(--color-paper-5); }

/* paper-buy buttons: one visible, the other sizes on hover or when the row is selected */
.pr-quick { display: inline-flex; align-items: center; gap: 3px; }
.qb { font: 700 10.5px var(--font-body); padding: 3px 7px; border-radius: var(--radius-control); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-4); color: var(--color-ink); white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; }
.qb.main { border-color: color-mix(in oklch, var(--color-up) 55%, transparent); color: var(--color-up); }
.qb:hover { background: var(--color-paper-5); }
.qb:disabled { opacity: .5; cursor: progress; }
.qb-more { display: none; gap: 3px; }
.pr:hover .qb-more, .pr.sel .qb-more { display: inline-flex; }

/* the desk strip in the page head */
.desk-wrap { display: flex; }
.desk-strip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); padding: 5px 10px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-paper-3); color: var(--color-ink-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.desk-strip:hover { background: var(--color-paper-4); border-color: var(--color-rule-2); }
.desk-strip b { color: var(--color-ink); font-weight: 600; }
.desk-strip .up { color: var(--color-up); } .desk-strip .down { color: var(--color-down); }
.chips.tog { border-left: var(--rule-hair) solid var(--color-rule); padding-left: var(--space-xs); }

/* the desk: positions */
.p-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.p-head h2 { font-size: var(--text-xl); }
.pos { border-top: var(--rule-hair) solid var(--color-rule); padding: var(--space-xs) 0; }
.pos:first-of-type { border-top: 0; }
.pos-top { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.pos-coin { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-width: 150px; }
.pos-coin small { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-x { font-size: var(--text-md); min-width: 48px; text-align: right; }
.pos.closed { opacity: .8; }
.pos-acts { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-2xs); }
.pos-acts label { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-2xs); color: var(--color-muted); }
.pos-acts .input.num { width: 58px; padding: 3px 6px; font-size: var(--text-xs); }
.pos-acts .grow { flex: 1; }
.pos-top .up, .fact .up { color: var(--color-up); } .pos-top .down, .fact .down { color: var(--color-down); }

/* compact density: no verdict line, smaller pictures, tighter rows */
body.pulse-compact .pr { padding: 5px 10px; gap: 8px; }
body.pulse-compact .pr-verdict { display: none; }
body.pulse-compact .pr-av { width: 34px; height: 34px; border-radius: 7px; padding: 2px; }
body.pulse-compact .pr-av img.av { width: 30px; height: 30px; border-radius: 5px; }
body.pulse-compact .pr-pct { bottom: -6px; font-size: 8.5px; padding: 0 4px; }
body.pulse-compact .pr-l2 { gap: 6px; font-size: var(--text-2xs); }
body.pulse-compact .pr-sym { font-size: var(--text-sm); }
body.pulse-compact .pr-name { display: none; }
body.pulse-compact .pr-mc b { font-size: var(--text-sm); }
body.pulse-compact .pr-side { gap: 2px; }
/* an element marked hidden stays hidden whatever display its class sets (the chips above are inline-flex) */
[hidden] { display: none !important; }
.psort { max-width: 76px; }
.star svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; display: block; }
.star.on svg { fill: currentColor; }
/* A new row must never depend on an animation to become visible: a stalled animation (background tab,
   GPU hiccup) used to leave fresh rows at opacity 0 for good, which read as an empty column. The entrance
   is now a tint and a short slide only, and the class is dropped after it ends. */
@keyframes pr-in { from { transform: translateY(-8px); background: color-mix(in oklch, var(--color-up) 12%, transparent); } }
.pr.enter { opacity: 1; }
.pr-l2 { gap: 7px; }
.pulse.four .bs { display: none; }
@media (max-width: 1800px) { .pulse.four { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; } .pulse.four .pcol { height: 70vh; } }
/* a long AI chip ("Claude Haiku reading") must not widen the side column and squash the chips on the left */
.pr-side { max-width: 58%; }
.pr-act { flex-wrap: wrap; justify-content: flex-end; row-gap: 3px; }
/* launchpad / venue / chain labels: a small coloured square (the launchpad) beside a short tag */
.proto { display: inline-flex; align-items: center; gap: 4px; font: 700 9.5px var(--font-body); letter-spacing: .04em; padding: 1px 5px; border-radius: var(--radius-chip); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink-2); white-space: nowrap; align-self: center; --p: var(--color-muted); }
.proto::before { content: ""; width: 6px; height: 6px; background: var(--p); flex: none; }
.proto.p-pump { --p: oklch(72% 0.17 150); } .proto.p-bonk { --p: oklch(72% 0.17 50); } .proto.p-bags { --p: oklch(70% 0.14 300); } .proto.p-moon { --p: oklch(85% 0.15 95); }
.proto.p-jup { --p: oklch(75% 0.13 190); } .proto.p-blv { --p: oklch(70% 0.15 340); } .proto.p-llab { --p: oklch(70% 0.14 240); } .proto.p-dbc { --p: oklch(70% 0.12 20); } .proto.p-other { --p: var(--color-rule-2); }
.proto[class*=" v-"] { --p: var(--color-accent); color: var(--color-ink); }
.proto.chain { --p: oklch(70% 0.16 290); color: var(--color-muted); }
.pr-l1 .proto { margin-left: 1px; }
.pulse.four .proto.chain { display: none; }           /* four columns: the chain tag is in the tooltip and the sheet */
.pulse.four .pcol-q { width: 54px; flex-basis: 54px; }
.pulse.four .psort { max-width: 70px; padding: 3px 4px; }
.pulse.four .pcol header { gap: 4px; padding: 6px 8px; }
.pulse.four .pcol header h2 { font-size: var(--text-xs); }
body.pulse-compact .proto { display: none; }
/* the side column is capped in pixels: a percentage max-width on a grid item resolves against its own
   track and squashed the action row into three lines */
.pr-side { max-width: 230px; }
.pr-l1 { overflow: hidden; }
.pr-l1 > * { flex: none; }
.pr-l1 .pr-name { flex: 0 1 auto; min-width: 0; }
.pulse.four .pr-ca { display: none; }                 /* four columns: the contract is in the tooltip and the sheet */
/* the action row (triage, AI, paper buy, Fomo) is its own full-width line under the figures, so the
   name line keeps its room and the side column only holds market cap and volume */
.pr { grid-template-rows: auto auto; row-gap: 4px; }
.pr-av { grid-row: 1 / span 2; }
.pr-side { grid-column: 3; grid-row: 1; max-width: none; min-width: 96px; }
.pr-act { grid-column: 2 / 4; grid-row: 2; justify-content: flex-end; margin-top: 0; }
body.pulse-compact .pr { row-gap: 2px; }

/* =====================================================================
   v8 terminal rows (design.md, "Pulse rows"). Tokens only.
   A row is four fixed lines beside a 44px picture. Nothing in a row is a bordered chip: state is
   colour and weight; the only controls are the paper-buy button, the read link and the Fomo link.
   ===================================================================== */
.pr { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto; gap: 0 10px; row-gap: 0; padding: 7px 10px 6px; border-bottom: var(--rule-hair) solid var(--color-rule); transition: background var(--dur-short); }
.pr:hover { background: var(--color-paper-3); }
.pr-av { grid-row: auto; width: 44px; height: 44px; border-radius: 8px; padding: 2px; margin-top: 1px; }
.pr-av img.av { width: 40px; height: 40px; border-radius: 6px; box-shadow: 0 0 0 2px var(--color-paper); }
.pr-pct { bottom: -7px; font-size: 9px; padding: 0 4px; background: var(--color-paper-4); box-shadow: 0 0 0 2px var(--color-paper); }
.pr-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.r1, .r2, .r3, .r4 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.r1 .sym { font-size: var(--text-sm); font-weight: 650; color: var(--color-ink); white-space: nowrap; letter-spacing: -0.01em; }
.r1 .nm { font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.r1 .star { flex: none; }
.r-right { margin-left: auto; display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.r-right small { font-size: 9.5px; font-weight: 600; letter-spacing: .045em; color: var(--color-muted); }
.r1 .mc b { font-size: var(--text-sm); font-weight: 650; color: var(--color-ink); }
.r2 { font-size: var(--text-2xs); color: var(--color-muted); }
.r2 .pr-age { color: var(--color-up); font-weight: 600; }
.r2 .links { display: inline-flex; gap: 5px; }
.r2 .links a { color: var(--color-muted); display: grid; place-items: center; }
.r2 .links a:hover { color: var(--color-ink); }
.r2 .links svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r2 .ca { font-size: 10px; color: var(--color-rule-2); }
.r2 .vol b { font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); }
.r2 .vol i { font-style: normal; font-size: var(--text-2xs); font-weight: 600; }
.r3 { flex-wrap: wrap; gap: 2px 9px; font-size: var(--text-2xs); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.sc { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; color: var(--color-muted); font-size: var(--text-2xs); }
.sc b { font-weight: 600; color: var(--color-ink-2); }
.sc svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc.bad, .sc.down, .sc.bad b, .sc.down b { color: var(--color-down); }
.sc .bs { width: 26px; height: 3px; margin-left: 1px; }
.sc.win b { color: var(--color-ink); }
.flag { font: 700 9px var(--font-body); letter-spacing: .06em; font-style: normal; white-space: nowrap; }
.flag.bad { color: var(--color-down); }
.r4 { font-size: var(--text-2xs); color: var(--color-muted); gap: 7px; }
.r4 .note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; color: var(--color-muted); }
.r4 .note b { color: var(--color-accent); font-weight: 600; }
.rk { font: 700 10.5px var(--font-body); font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; padding: 1px 4px; border-radius: var(--radius-chip); background: var(--color-paper-5); color: var(--color-muted); flex: none; }
.rk.hi { color: var(--color-on-fill); background: var(--color-up); }
.rk.mid { color: var(--color-ink); }
.acts { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.r4 .tri, .r4 .tri.is-rules { padding: 0; border: 0; background: transparent; font: 700 9.5px var(--font-body); letter-spacing: .05em; opacity: 1; box-shadow: none; animation: none; }
.r4 .tri em { opacity: .7; }
.r4 .trc { padding: 0; border: 0; background: transparent; font-size: 10.5px; }
.r4 .ai, .r4 .ai.done, .r4 .ai.queued, .r4 .ai.none, .r4 .ai.reading { padding: 0; background: transparent; box-shadow: none; font: 650 var(--text-2xs) var(--font-body); }
.r4 .ai.done b { font-size: var(--text-2xs); }
.r4 .ai.done.buy { color: var(--color-up); }
.r4 .ai.done .buy-tag { background: var(--color-up); color: var(--color-on-fill); padding: 0 4px; font-size: 9px !important; }
.r4 .ai.done .pw { font-style: normal; opacity: .8; }
.r4 button.ai.rd { border: 0; color: var(--color-accent); padding: 0; cursor: pointer; }
.r4 button.ai.rd::after { content: " \203A"; }
.r4 button.ai.rd:hover { background: transparent; text-decoration: underline; color: var(--color-focus); }
.qb { font: 700 10px var(--font-body); padding: 2px 7px; border-radius: var(--radius-chip); background: transparent; border-color: var(--color-rule-2); color: var(--color-ink-2); }
.qb.main { color: var(--color-ink); }
.qb:hover, .qb.main:hover { background: var(--color-ink); color: var(--color-on-fill); border-color: var(--color-ink); }
.fomo-q { font: 600 10px var(--font-body); padding: 2px 5px; border-radius: var(--radius-chip); border: 0 !important; color: var(--color-muted) !important; background: transparent !important; }
.fomo-q:hover { color: var(--color-ink) !important; text-decoration: underline; }
.pr.is-buy { background: color-mix(in oklch, var(--color-up) 6%, transparent); box-shadow: none; }
.pr.rating { background: color-mix(in oklch, var(--color-accent) 5%, transparent); box-shadow: none; }
.pr.sel { background: color-mix(in oklch, var(--color-accent) 10%, transparent); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-accent); }
.pr.watched { box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklch, var(--color-warn) 40%, transparent); }
.pr.slop { opacity: .6; }
.pr.buying .pr-av, .pr.selling .pr-av { box-shadow: none; }
.pr.is-live .pr-age::before { width: 5px; height: 5px; margin-right: 4px; }
.proto { border: 0; padding: 0; font: 600 10px var(--font-body); letter-spacing: .03em; text-transform: lowercase; color: var(--color-muted); background: transparent; }
.proto::before { width: 5px; height: 5px; }
.proto[class*=" v-"] { color: var(--color-ink-2); }
.pulse.four .proto.chain { display: inline-flex; }
.pulse.four .pr-ca, .pulse.four .r2 .ca { display: none; }

/* columns and the page head: quieter chrome, small capital labels, hairlines */
.pcol { border-radius: 0; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); box-shadow: none; }
.pcol header, .pulse.four .pcol header { padding: 0 8px; min-height: 32px; gap: 6px; background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); box-shadow: none; }
.pcol header h2, .pulse.four .pcol header h2 { font: 600 10.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-2); }
.pcount { font: 600 10.5px var(--font-body); color: var(--color-muted); background: transparent; padding: 0; }
.prating { font-size: 10.5px; }
.pcol-q, .pulse.four .pcol-q { width: 54px; flex-basis: 54px; padding: 3px 6px; font-size: 10.5px; border-radius: var(--radius-chip); background: transparent; }
.pcol-q:focus, .pulse.four .pcol-q:focus { width: 110px; flex-basis: 110px; }
.psort, .pulse.four .psort { font-size: 10.5px; padding: 2px 3px; max-width: 70px; background: transparent; border-radius: var(--radius-chip); }
.pslots button { font-size: 10px; padding: 2px 5px; }
.pfbtn { padding: 2px 5px; }
.pulse { gap: 6px; height: calc(100vh - 30px - 128px); }
.pulse-head { gap: 10px; margin-bottom: 8px; }
.pulse-title h1 { font-size: var(--text-lg); }
.pulse-title .beat { display: none; }
.pulse-live span { font-size: 10.5px; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: var(--radius-chip); }
.btab { font-size: 11.5px; padding: 5px 10px; }
.pulse-tools .input { width: 220px; padding: 5px 10px; font-size: 11.5px; }
.desk-strip { font-size: 10.5px; padding: 4px 8px; }
body.pulse-mode main { padding: 10px 12px 16px; }
.pcol-body .empty { padding: 20px 12px; }

/* compact: three lines, no verdict, smaller picture */
body.pulse-compact .pr { padding: 4px 10px 3px; }
body.pulse-compact .pr-av { width: 34px; height: 34px; margin-top: 2px; }
body.pulse-compact .pr-av img.av { width: 30px; height: 30px; }
body.pulse-compact .pr-pct { bottom: -6px; font-size: 8.5px; }
body.pulse-compact .r4 .note { display: none; }
body.pulse-compact .r2 .ca, body.pulse-compact .proto { display: none; }
body.pulse-compact .r1 .nm { display: inline; }
body.pulse-compact .pr-b { gap: 2px; }

/* v9 lightweight: rows outside the viewport are neither laid out nor painted; no endless animations per row */
.pr { content-visibility: auto; contain-intrinsic-size: auto 90px; transition: none; }
body.pulse-compact .pr { contain-intrinsic-size: auto 62px; }
.pr.is-live .pr-age::before { animation: none; }
.pr-av, .pr-av.gold { transition: none; }
.tape-track { will-change: transform; }
.prating i { animation: none; }

/* Keep phone controls reachable after the wider two-column overrides above. */
@media (max-width: 48rem) {
  .pulse.four { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pulse.four .pcol { height: 70vh; min-height: 360px; }
  .pcol header, .pulse.four .pcol header { flex-wrap: wrap; padding: var(--space-xs); gap: var(--space-xs); }
  .pcol header .pcol-tools { flex-basis: 100%; margin-left: 0; justify-content: space-between; }
  .pf-cols, .pf-tabs { flex-wrap: wrap; }
  .pf-foot { flex-wrap: wrap; }
  .pf-foot > .dim { flex-basis: 100%; }
}

/* API reference page. */
.apidoc td, .apidoc th { text-align: left; }
.apidoc td { white-space: normal; color: var(--ink-2); }
.apidoc td:first-child { width: 1%; white-space: nowrap; font-weight: 600; color: var(--ink); }
.apidoc td:nth-child(2) { white-space: nowrap; }
.apidoc td:nth-child(4) { width: 1%; text-align: right; }
.apidoc code[data-copy], .apidoc .pill[data-copy] { cursor: pointer; }
.apidoc code[data-copy]:hover { color: var(--info); }
.apidoc pre { margin: 0; padding: var(--space-sm) var(--space-md); font: 12px/1.55 var(--font-outlier); color: var(--ink-2); overflow: auto; max-height: 360px; white-space: pre; }
.apidoc .api-res td { background: var(--card-2); padding: 0; text-align: left; width: auto; font-weight: 400; }
.apidoc .api-res small { display: block; padding: var(--space-xs) var(--space-md) 0; color: var(--muted); }
.apidoc pre[data-copy] { cursor: pointer; }
.apidoc pre[data-copy]:hover { color: var(--ink); }
.mcp-setup { padding: var(--space-sm) 0 0; border-bottom: 1px solid var(--line); }
.mcp-setup > b { margin-left: var(--space-md); font-size: 13px; }
.mcp-setup > small { margin-left: var(--space-xs); color: var(--muted); }
.apidoc td:nth-child(2) code { margin-right: 2px; }

/* ---------- public view: read-only line, host-offline line ---------- */
#sitebar { position: fixed; left: 50%; bottom: var(--space-sm); transform: translateX(-50%); z-index: var(--z-toast); max-width: calc(100vw - 2 * var(--space-md));
  padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-control);
  background: var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
#sitebar.stale { border-color: var(--color-warn); color: var(--color-warn); }
/* What a visitor cannot use is not shown: the owner's pages and every control that writes. */
body.readonly a[href="#/settings"], body.readonly a[href="#/wallets"], body.readonly a[href="#/account"],
body.readonly .pr-quick, body.readonly [data-pbuy], body.readonly .desk-strip, body.readonly [data-desk], body.readonly [data-read] { display: none !important; }

/* ---------- brand: liquid chrome on black ---------- */
.brand { padding: 0 6px 10px; justify-content: center; }
.brand img.brand-mark { width: 100%; max-width: 132px; height: auto; filter: drop-shadow(0 0 14px rgba(53, 243, 60, 0.18)); }
.page-head h1, .pulse-title { background: var(--chrome-type); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 800; }
.card, .pcol { box-shadow: inset 0 1px 0 var(--color-edge); }
.pcol-head { background: linear-gradient(180deg, var(--color-paper-5), var(--color-paper-3) 55%, var(--color-paper-2)); box-shadow: inset 0 1px 0 var(--color-edge); }
.seg button.on, .chip.on { background: var(--chrome-soft); color: var(--color-accent-ink); border-color: oklch(98% 0 0 / 0.6); }


/* ---------- ASER.TRADE: brand rail, top bar with the language selector, the about line ---------- */
.brand { padding: 2px 6px 8px; }
.about { margin: 2px 4px 0; font: 500 10px/1.45 var(--font-body); color: var(--color-muted); text-align: center; letter-spacing: .02em; }
.about span { white-space: nowrap; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 28px 0; max-width: 1640px; width: 100%; margin: 0 auto; }
body.pulse-mode .topbar, body.coin-mode .topbar { max-width: none; padding: 6px 18px 0; }
.topbar-brand { font: 600 11px var(--font-body); letter-spacing: .22em; color: var(--color-muted); text-transform: uppercase; }
.lang { display: inline-flex; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-control); overflow: hidden; }
.lang button { padding: 3px 9px; border: 0; border-left: var(--rule-hair) solid var(--color-rule-2); background: transparent; color: var(--color-muted); font: 600 11px var(--font-body); letter-spacing: .04em; cursor: pointer; }
.lang button:first-child { border-left: 0; }
.lang button:hover { color: var(--color-ink); background: var(--color-paper-4); }
.lang button.on { color: var(--color-accent-ink); background: var(--color-accent); }
/* figures in JetBrains Mono (tokens.css --font-outlier); Inter keeps the words */
.num, .stat span, .kpi span, .fact span, .track-row b, .tc-ohlc, .tq-main b, .tq-grid b, .cp-stat b, .cp-m5g b, .cp-posg b, .cp-tile b, .cp-t td.r, .pr .lv-mc, .pr .lv-v, .pr .sc b, .pr-pct, .pr-age, .pcount, .desk-strip, .pos .num { font-family: var(--font-outlier); }
.stat span { font-size: 20px; } .kpi span { font-size: 26px; } .fact span { font-size: 14px; }
.tabs a.on { background: linear-gradient(90deg, color-mix(in oklch, var(--color-up) 14%, transparent), color-mix(in oklch, var(--color-up) 2%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-up) 22%, transparent); }
.page-head h1, .pulse-title h1 { background: var(--chrome-type); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; letter-spacing: .04em; }
.practice { display: inline-flex; align-items: center; font: 700 9.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-warn); border: var(--rule-hair) solid color-mix(in oklch, var(--color-warn) 50%, transparent); border-radius: var(--radius-chip); padding: 1px 5px; white-space: nowrap; }
.acts .practice { font-size: 8.5px; padding: 0 4px; }
body.readonly .practice { opacity: .7; }
@media (max-width: 1100px) { .about { display: none; } .brand img.brand-mark { max-width: 44px; } }
@media (max-width: 700px) { .topbar { padding: 6px 16px 0; } .topbar-brand { display: none; } }

/* ---------- ASER.TRADE: the trending tape as a marquee ---------- */
.tape { height: 38px; position: sticky; top: 0; z-index: 9; overflow: hidden; background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 24px; z-index: 2; pointer-events: none; }
.tape::before { left: 0; background: linear-gradient(90deg, var(--color-paper-2), transparent); }
.tape::after { right: 0; background: linear-gradient(270deg, var(--color-paper-2), transparent); }
.tape-track { display: flex; width: max-content; animation: tape var(--tape-dur, 75s) linear infinite; will-change: transform; }
.tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 20px; border: 0; border-right: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: none; white-space: nowrap; color: var(--color-ink); font: 600 13px var(--font-body); }
.tape-item:hover { background: color-mix(in oklch, var(--color-ink) 5%, transparent); }
.tape-item img.av.xs, .tape-item .av.xs { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-rule); box-shadow: none; }
.tape-item b { color: var(--color-ink); font-weight: 600; font-size: 13px; }
.tape-item .num { font: 500 12px var(--font-outlier); color: var(--color-muted); }
.tape-item .num.up { color: var(--color-up); } .tape-item .num.down { color: var(--color-down); }
/* The tape always moves on its own (Alex, 2026-11-01): no static fallback, even when the OS asks for reduced motion; hover pauses it. */
.tape { overflow: hidden; scrollbar-width: none; }
.tape::-webkit-scrollbar { display: none; }
@media (max-width: 700px) { .tape, .tape-item { height: 34px; } .tape-item { padding: 0 12px; gap: 6px; font-size: 12.5px; } }

/* ---------- ASER.TRADE: a row whose metadata has not arrived yet ---------- */
.pr.meta-pending .sym { color: var(--color-ink-2); font-weight: 600; }
.nm-loading { display: inline-block; width: 84px; height: 10px; border-radius: 3px; vertical-align: middle; background: linear-gradient(90deg, var(--color-paper-4) 25%, var(--color-paper-5) 50%, var(--color-paper-4) 75%); background-size: 200% 100%; animation: sh 1.6s linear infinite; }
.pr.meta-pending .pr-av img.av.gen { animation: skel-av 1.6s ease-in-out infinite; }
@keyframes skel-av { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .nm-loading, .pr.meta-pending .pr-av img.av.gen { animation: none; } }

/* ---------- ASER.TRADE: the global search in the top bar (buscar.js) ---------- */
.topbar { gap: 14px; }
.gsearch { position: relative; flex: 1 1 420px; min-width: 420px; max-width: 680px; }
.gs-toggle { display: none; }
.gs-box { position: relative; }
.gs-ic { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-in { width: 100%; height: 40px; padding: 0 36px; font: 500 14px var(--font-body); color: var(--color-ink); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-control); outline: none; -webkit-appearance: none; appearance: none; }
.gs-in::-webkit-search-cancel-button { display: none; }
.gs-in::placeholder { color: var(--color-muted); }
.gs-in:focus { border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in oklch, var(--color-accent) 25%, transparent); }
.gs-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: var(--radius-chip); background: none; color: var(--color-muted); font-size: 13px; cursor: pointer; }
.gs-clear:hover { color: var(--color-ink); background: var(--color-paper-4); }
.gs-res { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); box-shadow: 0 16px 40px -16px #000; max-height: min(60vh, 480px); overflow-y: auto; }
.gs-head { padding: 8px 12px 4px; font: 600 10.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.gs-none, .gs-busy { padding: 10px 12px; font: 500 12.5px var(--font-body); color: var(--color-muted); }
.gs-busy::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid var(--color-rule-2); border-top-color: var(--color-accent); animation: spin .7s linear infinite; }
.gs-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; border: 0; border-top: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: none; color: var(--color-ink); text-align: left; cursor: pointer; font: 500 13px var(--font-body); }
.gs-row:hover, .gs-row.on { background: var(--color-paper-4); }
.gs-row b { font-weight: 650; white-space: nowrap; }
.gs-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-muted); }
.gs-row .num, .gs-row .mono { font-family: var(--font-outlier); font-size: 12px; white-space: nowrap; }
.gs-row img.av.sm, .gs-row .av.sm { width: 26px; height: 26px; border-radius: 8px; }
.gs-kind { font: 700 9.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); border: var(--rule-hair) solid color-mix(in oklch, var(--color-accent) 50%, transparent); border-radius: var(--radius-chip); padding: 1px 5px; }
.gs-opt-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--color-paper-4); color: var(--color-ink-2); }
.gs-opt-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .gsearch { min-width: 280px; flex-basis: 280px; } }
@media (max-width: 700px) {
  .topbar { position: relative; padding: 6px 12px 0; }
  .gsearch { position: static; flex: 0 0 auto; min-width: 0; }
  .gs-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-control); background: var(--color-paper-3); color: var(--color-ink-2); cursor: pointer; }
  .gs-toggle .gs-ic { position: static; transform: none; color: inherit; }
  .gsearch .gs-box, .gsearch .gs-res { display: none; }
  .gsearch.open .gs-box { display: block; position: absolute; left: 12px; right: 12px; top: 4px; z-index: 61; }
  .gsearch.open .gs-res { display: block; position: absolute; left: 12px; right: 12px; top: 48px; z-index: 61; }
}

/* ---------- ASER.TRADE: the wallet view and the coin thesis ---------- */
.wal-addr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal !important; }
.wal-addr .mono { font: 500 11.5px var(--font-outlier); color: var(--color-ink-2); word-break: break-all; }
.wal-t th, .wal-t td { text-align: left; }
.wal-t td.num, .wal-t th.num { text-align: right; }
.wal-t .coin { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.wal-t .coin b { font-size: 13px; }
.wal-t .coin small { display: block; color: var(--color-muted); font-size: 11.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.sigc { cursor: copy; color: var(--color-muted); font-size: 12px; border-bottom: 1px dotted var(--color-rule-2); }
.sigc:hover { color: var(--color-ink); }
.cp-thesis-list { margin: 0; padding-left: 16px; display: grid; gap: 5px; font-size: 12.5px; line-height: 1.45; color: var(--color-ink-2); }
.cp-thesis-list li::marker { color: var(--color-accent); }

/* ---------- ASER.TRADE: one 56 px header, the tape as its own row under it, air before the work ---------- */
.content { --hdr: 56px; }
.topbar { position: sticky; top: 0; z-index: 21; height: var(--hdr); box-sizing: border-box; max-width: none; margin: 0; padding: 0 20px; align-items: center; gap: 16px; background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
body.pulse-mode .topbar, body.coin-mode .topbar { max-width: none; padding: 0 20px; }
.topbar-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font-body); letter-spacing: .18em; color: var(--color-ink-2); white-space: nowrap; }
.topbar-brand::before { content: ""; width: 26px; height: 21px; background: url("/brand/aser-symbol.svg") center / contain no-repeat; }
.gsearch { margin: 0 auto; }
.topbar-right { display: inline-flex; align-items: center; gap: 12px; }
#wal { min-width: 160px; display: flex; justify-content: flex-end; }
/* the tape: a 38 px band with 7 px of page above and below, painted into the box so nothing shows through when it sticks */
.tape { position: sticky; top: var(--hdr); z-index: 20; height: 52px; margin: 0; padding: 7px 0; box-sizing: border-box; overflow: hidden; scrollbar-width: none; border: 0;
  background: linear-gradient(to bottom, var(--color-paper) 0 6px, var(--color-rule) 6px 7px, var(--color-paper-3) 7px 45px, var(--color-rule) 45px 46px, var(--color-paper) 46px 52px); }
.tape::-webkit-scrollbar { display: none; }
.tape::before, .tape::after { top: 7px; bottom: 7px; }
.tape::before { background: linear-gradient(90deg, var(--color-paper-3), transparent); } .tape::after { background: linear-gradient(270deg, var(--color-paper-3), transparent); }
.tape-item { height: 38px; }
/* always moving: with reduced motion it only slows down, it never turns into a scrollbar */
.tape-track { animation: tape var(--tape-dur, 75s) linear infinite; }
@media (prefers-reduced-motion: reduce) { .tape { overflow: hidden; } .tape-track { animation: tape var(--tape-dur, 75s) linear infinite; } .tape::before, .tape::after { display: block; } }
main { padding-top: 16px; }
body.pulse-mode main { padding: 16px 18px 24px; }
body.coin-mode main { padding: 16px 14px 28px; }
.strip { padding-top: 16px; }
/* Pulse head: title and live figures left, the view chips right */
.pulse-head { justify-content: flex-start; margin-bottom: 12px; }
.pulse-tools { margin-left: auto; }
.pcol header { z-index: 5; }
/* a visitor never sees the pages that belong to the owner */
body.readonly .tabs a[data-r="health"], body.readonly .tabs a[data-r="settings"] { display: none; }
@media (max-width: 1100px) { #wal { min-width: 0; } }
@media (max-width: 700px) {
  .content { --hdr: 52px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-brand { display: none; }
  .tape { height: 48px; padding: 5px 0; background: linear-gradient(to bottom, var(--color-paper) 0 4px, var(--color-rule) 4px 5px, var(--color-paper-3) 5px 43px, var(--color-rule) 43px 44px, var(--color-paper) 44px 48px); }
  .tape::before, .tape::after { top: 5px; bottom: 5px; }
  .tape-item { height: 38px; }
  main { padding-top: 12px; }
}
/* the global reduced-motion rule above (animation-duration .001s on everything) must not freeze the tape: it only slows down */
@media (prefers-reduced-motion: reduce) { .tape-track { animation-name: tape !important; animation-duration: var(--tape-dur, 75s) !important; animation-iteration-count: infinite !important; animation-timing-function: linear !important; } .tape:hover .tape-track { animation-play-state: paused !important; } }

/* ---------- ASER.TRADE: the wallet page (#/wallet/<pubkey>) and the quick-look sheet ---------- */
body.wallet-mode .strip { display: none; }
body.wallet-mode main { max-width: none; padding: 16px 14px 28px; }
.wp { display: grid; gap: 10px; min-width: 0; }
.wp-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: 14px 16px; }
.wp-hero .wav.xl { --s: 64px; }
.wp-id { min-width: 0; flex: 1 1 320px; }
.wp-id h1 { margin: 0 0 4px; font: 600 22px/1.1 var(--font-display); letter-spacing: -0.02em; background: none; -webkit-text-fill-color: var(--color-ink); color: var(--color-ink); }
.wp-id .chips { margin-top: 8px; }
.wp-bal { text-align: right; }
.wp-bal .big { display: block; font: 600 26px/1 var(--font-outlier); color: var(--color-ink); }
.wp-acts { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.wp-card { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: 12px 14px; min-width: 0; }
.wp-card .cp-h { margin-bottom: 10px; }
.wp-card .leader { padding-left: 0; padding-right: 0; }
.wp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: start; }
.wp-col { display: grid; gap: 10px; min-width: 0; }
@media (max-width: 1100px) { .wp-grid { grid-template-columns: minmax(0, 1fr); } }
.skel-line { display: inline-block; width: 64%; height: 12px; border-radius: 3px; vertical-align: middle; background: linear-gradient(90deg, var(--color-paper-4) 25%, var(--color-paper-5) 50%, var(--color-paper-4) 75%); background-size: 200% 100%; animation: sh 1.6s linear infinite; }
.p-head .btn.sm-btn { margin-left: auto; }
/* the quick-look sheet starts under the header and the tape, so both stay usable while it is open */
.drawer { top: 108px; }
@media (max-width: 700px) { .drawer { top: 100px; } }
.wal-t sub, .wp sub { font-size: .72em; line-height: 0; vertical-align: baseline; position: relative; top: .2em; }
/* the end of a column: the rows not yet painted come with a press (or with the scroll) */
.pmore { display: block; width: 100%; padding: 11px 12px; border: 0; border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); color: var(--color-muted); font: 600 11.5px var(--font-body); cursor: pointer; }
.pmore:hover { color: var(--color-ink); background: var(--color-paper-4); }
/* who is online (cuenta.js paints it) and the sign-in gate of the pages tied to a wallet */
#presencia:empty { display: none; }
.gate { max-width: 560px; margin: 48px auto; padding: 28px 24px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.gate h2 { margin: 0; font: 600 18px/1.3 var(--font-display); letter-spacing: -0.01em; }
.gate .note { margin: 0; max-width: 46ch; }
