/* memebot desk: harbour slate ground, bone text, one gold flare for Prime. Archivo for everything,
   wide Archivo for tickers, mono only for contract addresses. */
:root {
  --bg: #141a26;
  --surface: #1b2232;
  --surface-2: #232b3e;
  --line: #2a3349;
  --line-2: #36405a;
  --text: #edeae3;
  --muted: #9aa3b5;
  --faint: #6b7590;
  --green: #4ade9a;
  --green-bg: rgba(74, 222, 154, .12);
  --amber: #ffb020;
  --amber-bg: rgba(255, 176, 32, .13);
  --gold: #ffb020;
  --red: #ff6b6b;
  --red-bg: rgba(255, 107, 107, .12);
  --blue: #7cc4ff;
  --blue-bg: rgba(124, 196, 255, .12);
  --violet: #b9a4ff;
  --violet-bg: rgba(185, 164, 255, .12);
  --radius: 12px;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.error { color: var(--red); font-size: 14px; }

/* ---------- shell ---------- */
.shell { max-width: 680px; margin: 0 auto; min-height: 100vh; }
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(20, 26, 38, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.sol { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill.live i { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.pill.paused i { background: var(--amber); }
.pill.off i { background: var(--red); }
.pill b { font-weight: 600; }

main { padding: 14px 16px calc(96px + var(--safe-b)); }
.h { font-size: 17px; font-weight: 700; margin: 6px 0 4px; letter-spacing: -.01em; }
.h .muted { font-size: 13px; margin-left: 4px; }
.tab > .h:not(:first-child) { margin-top: 26px; }

/* ---------- bottom tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(24, 30, 44, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabs button {
  position: relative; flex: 1; max-width: 136px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; background: none; border: 0; color: var(--faint);
  font-size: 11px; font-weight: 600;
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { color: var(--text); }
.tabs em {
  position: absolute; top: 1px; left: calc(50% + 6px);
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #1a1405; font: 700 10.5px/17px var(--font); font-style: normal;
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { min-width: 0; }
.row > input { flex: 1 1 auto; width: auto; }
.row > input + .seg { flex: 0 0 auto; }
.row > input + .seg button { flex: 0 0 auto; width: 40px; padding: 0; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

input, select {
  width: 100%; height: 44px; padding: 0 13px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px;
  outline: none; font-size: 16px; /* 16px stops iOS zooming on focus */
}
input:focus, select:focus { border-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
select { width: auto; flex: 0 0 auto; padding-right: 8px; }

.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600;
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; flex: 1; }
.seg button { flex: 1; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- cards ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 12px 17px;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--line-2)); }
.card.fresh { animation: flash 1.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 2px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  color: var(--accent);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.when { color: var(--faint); font-size: 12px; font-weight: 500; margin-left: 6px; letter-spacing: 0;  }
.upd { color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: 0;  }
.title { margin: 6px 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; word-break: break-word; }
.title small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }

.score {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--tier) calc(var(--p) * 1%), var(--line) 0);
}
.score::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.score b { position: relative; z-index: 1; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

.ca {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  margin: 6px 0 10px; padding: 5px 9px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  font: 500 12.5px var(--mono);
}
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.ca.copied { color: var(--green); border-color: var(--green); }

.thesis { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.thesis b { font-weight: 600; }

.narr { margin: 0 0 12px; padding: 10px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.narr-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.narr-head .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.narr-head .bar i { display: block; height: 100%; background: var(--violet); }
.narr-head b { color: var(--text); font-variant-numeric: tabular-nums; }
.hook { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; margin-top: 4px; }
.hook em { flex: 0 0 auto; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--violet-bg); color: var(--violet); }
.hook.gap em { background: var(--red-bg); color: var(--red); }
.hook span { color: var(--text); }
.hook.soc span { color: var(--muted); }

.mkt { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 9px 0 10px; margin-bottom: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mkt small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 600; }
.mkt b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.perf { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.perf span { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.perf .up { color: var(--green); background: var(--green-bg); }
.perf .down { color: var(--red); background: var(--red-bg); }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; }
.links a {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 8px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.links a.main { background: var(--text); color: var(--bg); border-color: var(--text); }

details.more { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
details.more summary { cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; font-weight: 600; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }
details.more ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
details.more li { margin: 3px 0; }
details.more h4 { margin: 10px 0 0; font-size: 11px; color: var(--faint); }
details.more h4.risk { color: var(--red); }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.banner.bad { background: var(--red-bg); color: var(--red); }
.banner.good { background: var(--green-bg); color: var(--green); }
.banner b { font-weight: 700; }

.empty { text-align: center; color: var(--muted); padding: 44px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 14px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* exit note */
.note { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px; background: var(--red-bg); color: var(--red); font-size: 13.5px; font-weight: 600; }

/* ---------- waves ---------- */
.wave-meta { display: flex; gap: 14px; margin: 8px 0 12px; }
.wave-meta div small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 600; }
.wave-meta div b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.leader { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 8px; }
.leader .l1 { font-weight: 700; }
.leader .l2 { color: var(--muted); font-size: 12.5px; }
.others { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.meta { padding: 10px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.meta b { display: block; font-size: 14px; }
.meta small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.meta .up { color: var(--green); }
.meta .down { color: var(--red); }

/* ---------- check ---------- */
.check-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.check-form input { font-family: var(--mono); font-size: 14px; }
.check-form input::placeholder { font-family: var(--font); font-size: 15px; }
.push-row { margin-top: 10px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; font-size: 14px; }

/* ---------- stats ---------- */
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stats-head .seg { flex: 0 0 auto; }
.stats-head .seg button { height: 30px; font-size: 13px; }
.strat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.strat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; }
.strat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.strat-top small { color: var(--muted); font-size: 12.5px; }
.big { display: flex; gap: 18px; margin-bottom: 10px; }
.big div small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 600; }
.big div b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.meter .track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter .track i { display: block; height: 100%; border-radius: 3px; }
.meter b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tr { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 13px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tr:first-child { border-top: 0; }
.tr .s1 { font-weight: 600; }
.tr .s2 { color: var(--muted); font-size: 12px; }
.tr .x { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 52px; }
.tr .x small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 600; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- more ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 4px; font-size: 15px; }
.panel .sub { margin-bottom: 10px; }
.switch-row, .slider-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.switch-row small, .slider-row small { display: block; color: var(--muted); font-size: 12.5px; }
.slider-row output { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="checkbox"][role="switch"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 50px; height: 30px; padding: 0; border-radius: 15px; border: 0;
  background: var(--line-2); position: relative; transition: background .15s;
}
input[type="checkbox"][role="switch"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
input[type="checkbox"][role="switch"]:checked { background: var(--green); }
input[type="checkbox"][role="switch"]:checked::after { transform: translateX(20px); }
input[type="range"] { height: 28px; padding: 0; border: 0; background: none; accent-color: var(--green); }

.rows { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .grow b { display: block; font-weight: 600; word-break: break-word; }
.item .grow small { color: var(--muted); font-size: 12.5px; }
.w { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--violet-bg); color: var(--violet); }
.x-btn { flex: 0 0 auto; height: 32px; min-width: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.x-btn.arm { color: var(--red); border-color: var(--red); }
.none { color: var(--faint); font-size: 13.5px; padding: 6px 0 2px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 8px 0 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-card h1 { margin: 12px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.login-card p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(80px + var(--safe-b)); z-index: 20;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.toast.tap { cursor: pointer; }

@media (min-width: 720px) {
  main { padding-top: 20px; }
  .title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .card.fresh, .spinner { animation: none; }
}

/* ---------- desktop app additions ---------- */
.setup-banner {
  display: block; width: 100%; text-align: left; margin-bottom: 12px; padding: 12px 14px;
  border-radius: var(--radius); border: 1px solid rgba(124, 196, 255, .35); background: var(--blue-bg); color: var(--text);
}
.setup-banner b { display: block; color: var(--blue); font-size: 14.5px; margin-bottom: 2px; }
.setup-banner span { color: var(--muted); font-size: 13.5px; }
.state { font-size: 12px; font-weight: 600; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.state.on { background: var(--green-bg); color: var(--green); }
.state.off { background: var(--amber-bg); color: var(--amber); }
.howto { margin: 6px 0 4px; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.howto li { margin: 4px 0; }
.howto b { color: var(--text); font-weight: 600; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 4px 0; list-style: none; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: "+ "; }
details.adv[open] summary::before { content: "− "; }
details.adv .stack { margin-top: 6px; }
.phone { display: flex; gap: 14px; align-items: center; padding: 6px 0 14px; }
.phone small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.qr { flex: 0 0 auto; padding: 8px; background: #fff; border-radius: 10px; line-height: 0; }
.qr img, .qr canvas { width: 116px !important; height: 116px !important; }
.stopped { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.stopped h1 { color: var(--text); font-size: 22px; margin: 12px 0 6px; }

/* ---------- model ---------- */
.mlbox { margin: 0 0 12px; padding: 10px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.ml-head { display: flex; align-items: center; gap: 10px; }
.ml-prob { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ml-head small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ml-tag { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.ml-tag.pass { background: var(--green-bg); color: var(--green); }
.ml-tag.fail { background: var(--red-bg); color: var(--red); }
.ml-tag.shadow { background: var(--surface-2); color: var(--muted); }
.ml-line { font-size: 13.5px; margin-top: 7px; color: var(--muted); }
.ml-line b { color: var(--text); font-weight: 600; }
.plan { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.plan span { font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.plan .tp { background: var(--green-bg); color: var(--green); }
.plan .sl { background: var(--red-bg); color: var(--red); }
.sim-list { margin-top: 8px; display: grid; gap: 4px; }
.sim-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); }
.sim-row:first-child { border-top: 0; }
.sim-row .s2 { color: var(--faint); font-size: 12px; }
.prog { margin: 8px 0 12px; }
.prog-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.prog-top b { font-weight: 600; }
.prog-top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar2 { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar2 i { display: block; height: 100%; border-radius: 3px; background: var(--violet); }
.bar2 i.done { background: var(--green); }
.cmp { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 8px 14px; align-items: center; font-size: 13.5px; margin-top: 10px; }
.cmp .h2 { color: var(--faint); font-size: 10.5px; font-weight: 700; text-align: right; }
.cmp .h2:first-child { text-align: left; }
.cmp b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cmp .lbl { color: var(--muted); }
.cmp .win { color: var(--green); }
.drv { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; font-size: 13px; margin-top: 6px; }
.drv .track2 { position: relative; height: 8px; }
.drv .track2::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-2); }
.drv .track2 i { position: absolute; top: 0; height: 100%; border-radius: 3px; }
.mini { margin: 14px 0 4px; font-size: 11px; color: var(--faint); }
.cluster { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cluster:first-child { border-top: 0; }
.cluster small { display: block; color: var(--muted); font-size: 12px; }
.wave-names { color: var(--muted); font-size: 12.5px; margin: -4px 0 10px; }
.badge { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--blue-bg); color: var(--blue); vertical-align: 3px; margin-left: 6px; }
.tabs button { max-width: 112px; }

.meta-grid .none { grid-column: 1 / -1; }
#importance .meter { grid-template-columns: 140px 1fr 44px; }
.weak { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--red); }

/* ---------- grok + autopilot ---------- */
.xbox { margin: 0 0 12px; padding: 10px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.xbox.flagged { border-color: rgba(248, 113, 113, .5); }
.x-top { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.x-buzz { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.x-top small { color: var(--muted); font-size: 12.5px; }
.x-sum { font-size: 13.5px; margin-top: 6px; }
.x-line { font-size: 13px; color: var(--muted); margin-top: 5px; }
.x-flag { font-size: 13px; color: var(--red); margin-top: 5px; font-weight: 600; }
.x-wait { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.x-wait .spinner { width: 14px; height: 14px; }
.explain { margin: -2px 0 12px; padding: 9px 11px; border-radius: 10px; background: var(--blue-bg); font-size: 13.5px; }
.explain b { color: var(--blue); }
.report h5 { margin: 12px 0 4px; font-size: 11px; color: var(--faint); }
.report ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.report li { margin: 3px 0; }
.report .big { margin: 8px 0 4px; }
.apt { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px 12px; font-size: 13px; margin: 6px 0 2px; align-items: center; }
.apt .h2 { color: var(--faint); font-size: 10.5px; font-weight: 700; text-align: right; }
.apt .h2:first-child { text-align: left; }
.apt b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pill-s { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-align: center; }
.pill-s.on { background: var(--green-bg); color: var(--green); }
.pill-s.off { background: var(--red-bg); color: var(--red); }
.chg .grow small { display: block; }
.chg.undone b { text-decoration: line-through; color: var(--muted); }

/* ---------- health, prime, radar ---------- */
.hb { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; margin-bottom: 10px; font-size: 13.5px; border: 1px solid; }
.hb.bad { background: var(--red-bg); border-color: rgba(248,113,113,.35); }
.hb.warn { background: var(--amber-bg); border-color: rgba(251,191,36,.3); }
.hb.info { background: var(--blue-bg); border-color: rgba(96,165,250,.3); }
.hb b { display: block; font-size: 14px; margin-bottom: 2px; }
.hb.bad b { color: var(--red); } .hb.warn b { color: var(--amber); } .hb.info b { color: var(--blue); }
.hb span { color: var(--muted); }
.hb .grow { flex: 1; }
.hb button { flex: 0 0 auto; }
.prime-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; margin-right: 6px;
  background: linear-gradient(90deg, rgba(251,146,60,.2), rgba(248,113,113,.2)); color: #fb923c; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.card.prime { box-shadow: 0 0 0 1px rgba(251,146,60,.45); }
.why { font-size: 13px; margin: -4px 0 12px; color: var(--muted); }
.why b { color: #fb923c; }
.why.no b { color: var(--faint); }
.radar-coin { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.radar-coin:first-of-type { border-top: 0; }
.radar-coin small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- keys + exits + security ---------- */
.keyrow { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.keyrow:first-of-type { border-top: 0; }
.key-top { display: flex; align-items: center; gap: 6px; }
.key-top a { margin-left: auto; text-decoration: none; }
.keyrow small { color: var(--muted); font-size: 12.5px; }
.test-out { margin: 0; font-size: 13px; }
.test-out.ok { color: var(--green); } .test-out.bad { color: var(--red); }
.sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px 14px; margin: 0 0 12px; padding: 10px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.sec small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 600; }
.sec b { font-size: 14px; font-variant-numeric: tabular-nums; }
.sec .wide { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.signals { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.signals div { padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; background: var(--surface-2); }
.signals .tp1, .signals .tp2 { background: var(--green-bg); color: var(--green); }
.signals .trail, .signals .stop, .signals .insiders, .signals .dev, .signals .smartout { background: var(--red-bg); color: var(--red); }
.watchbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.watchbar .btn { margin-left: auto; }

/* ---------- shared additions ---------- */
.faint { color: var(--faint); }
.caution { margin: -4px 0 10px; padding: 7px 10px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }
.card.prime { box-shadow: 0 0 0 1px rgba(255, 176, 32, .5); }
.prime-badge { background: var(--gold) !important; color: #1a1405 !important; }
.title { font-stretch: 112%; font-weight: 800; }
.statusbar, .rowhead, .detail, .keys-hint { display: none; }
.desk-list { min-width: 0; }

/* ---------- PC layout ---------- */
@media (min-width: 1000px) {
  body { font-size: 14px; overflow: hidden; }
  .shell {
    max-width: none; height: 100vh; min-height: 0;
    display: grid; grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  }
  .top {
    grid-column: 1 / -1; position: static; padding: 10px 18px; gap: 18px;
    background: var(--surface); backdrop-filter: none;
  }
  .brand { font-stretch: 125%; font-weight: 800; font-size: 18px; min-width: 160px; }
  .statusbar { display: flex; flex: 1; gap: 6px; flex-wrap: wrap; }
  .sb {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 7px;
    border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  }
  .sb i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
  .sb.ok i { background: var(--green); } .sb.warn i { background: var(--amber); } .sb.bad i { background: var(--red); }
  .sb.bad { color: var(--red); border-color: rgba(255,107,107,.4); }
  .sb.warn { color: var(--amber); }
  button.sb:hover { border-color: var(--line-2); color: var(--text); }

  /* sidebar */
  .tabs {
    grid-column: 1; grid-row: 2; position: static; flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 14px 10px; background: var(--bg); backdrop-filter: none; border-top: 0; border-right: 1px solid var(--line);
  }
  .tabs button {
    flex: 0 0 auto; max-width: none; flex-direction: row; gap: 11px; padding: 9px 11px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--muted); justify-content: flex-start;
  }
  .tabs svg { width: 18px; height: 18px; }
  .tabs button:hover { background: var(--surface); color: var(--text); }
  .tabs button.on { background: var(--surface-2); color: var(--text); }
  .tabs em { position: static; margin-left: auto; }
  .keys-hint { display: block; margin: auto 6px 4px; color: var(--faint); font-size: 12px; line-height: 1.7; }

  main { grid-column: 2; grid-row: 2; overflow-y: auto; padding: 18px 22px 28px; }
  .tab { max-width: 1500px; }
  .h { font-size: 19px; font-stretch: 112%; font-weight: 800; }
  .chips { margin: 0 0 10px; padding: 0; }
  .chip { height: 28px; font-size: 12.5px; }

  /* plays: list + detail */
  #tab-feed { max-width: none; height: 100%; display: flex; flex-direction: column; }
  main:has(#tab-feed:not([hidden])) { overflow: hidden; padding-bottom: 0; }
  .desk { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 34%); gap: 18px; }
  .desk-list { overflow-y: auto; padding-bottom: 24px; }
  .rowhead, .prow {
    display: grid; align-items: center; gap: 10px;
    grid-template-columns: 4px minmax(150px, 2.2fr) minmax(90px, 1.1fr) 46px 70px 58px 58px 62px 58px 70px;
  }
  .rowhead {
    position: sticky; top: 0; z-index: 2; padding: 6px 10px 6px 0; background: var(--bg);
    color: var(--faint); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line);
  }
  .rowhead span:nth-child(n+4) { text-align: right; }
  #feed-list.list { gap: 0; }
  .prow {
    width: 100%; padding: 9px 10px 9px 0; text-align: left; background: none; border: 0;
    border-bottom: 1px solid var(--line); color: var(--text); font-size: 13.5px;
  }
  .prow:hover { background: var(--surface); }
  .prow.sel { background: var(--surface-2); }
  .prow .bar { align-self: stretch; border-radius: 2px; background: transparent; }
  .prow.sel .bar { background: var(--accent); }
  .prow.prime .bar { background: var(--gold); }
  .prow.fresh { animation: rowflash 2s ease-out; }
  @keyframes rowflash { from { background: rgba(255, 176, 32, .18); } to { background: transparent; } }
  .prow .coin { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
  .prow .coin b { font-stretch: 118%; font-weight: 800; font-size: 14.5px; white-space: nowrap; }
  .prow.prime .coin b { color: var(--gold); }
  .prow .coin small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
  .prow .play { color: var(--accent); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prow.prime .play { color: var(--gold); }
  .prow .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
  .prow .score-n { font-weight: 800; }
  .prow .xcall { color: var(--blue); }
  .empty { margin-top: 12px; }

  .detail { display: block; overflow-y: auto; padding-bottom: 24px; }
  .detail .card { border-radius: 14px; padding: 18px 18px 16px 21px; }
  .detail .card.prime { box-shadow: 0 0 0 1px rgba(255,176,32,.55), 0 0 40px -18px rgba(255,176,32,.6); }
  .detail .title { font-size: 34px; font-stretch: 125%; line-height: 1.05; margin-top: 8px; }
  .detail .card.prime .title { color: var(--gold); }
  .detail .title small { display: block; margin: 4px 0 0; font-stretch: 100%; font-size: 14px; }
  .detail-empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 40px 24px; color: var(--muted); }
  .detail-empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

  /* other pages: panels in columns */
  #tab-more { columns: 2 440px; column-gap: 16px; max-width: 1200px; }
  #tab-more .panel, #tab-model .panel { break-inside: avoid; }
  #tab-model { columns: 2 460px; column-gap: 16px; }
  #tab-model > .stats-head, #tab-model > .sub, #tab-model > .banner { column-span: all; }
  #waves-list.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
  #tab-check { max-width: 760px; }
  .check-form { flex-direction: row; }
  .check-form .row { flex: 0 0 auto; }
  input, select { height: 40px; font-size: 14px; }
  .btn { height: 38px; font-size: 14px; }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .prow.fresh, .card.fresh { animation: none; } }
@media (min-width: 1000px) { .setup-banner { display: none; } }

/* ---------- popular ---------- */
.pop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pop-head .sub { max-width: 640px; }
.pop-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 14px; cursor: pointer; }
.pop-toggle input { width: 16px; height: 16px; accent-color: var(--gold); }
.stage { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.stage.s-ve { background: rgba(74, 222, 154, .16); color: var(--green); }
.stage.s-e { background: rgba(124, 196, 255, .14); color: var(--blue); }
.stage.s-m { background: var(--amber-bg); color: var(--amber); }
.stage.s-l { background: var(--surface-2); color: var(--muted); }
.heat { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 6px; font-weight: 800; text-align: center;
  background: color-mix(in srgb, var(--gold) calc(var(--h) * 0.4%), transparent); color: var(--text); }
.why-list { margin: 4px 0 12px; padding-left: 18px; color: var(--text); font-size: 13.5px; }
.why-list li { margin: 3px 0; }
.spark { display: block; width: 100%; height: 46px; margin: 0 0 12px; }
.popcard .tag { gap: 8px; }
.poprow.unsafe { opacity: .55; }
.poprow small.up { font-size: 11.5px; font-weight: 600; }
#pop-list.list { gap: 12px; }
@media (min-width: 1000px) {
  #tab-popular { max-width: none; height: 100%; display: flex; flex-direction: column; }
  main:has(#tab-popular:not([hidden])) { overflow: hidden; padding-bottom: 0; }
  .rowhead.pophead, .poprow { gap: 8px; grid-template-columns: 4px minmax(120px, 1.6fr) 84px 66px 54px 46px 60px 96px 62px 58px 48px; }
  #tab-popular .desk { grid-template-columns: minmax(0, 1fr) minmax(340px, 30%); }
  #pop-list.list { gap: 0; }
  .detail .popcard .title { font-size: 34px; }
}
.pop-record { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pop-record:empty { display: none; }
.pop-record small { display: block; color: var(--faint); font-size: 12px; font-weight: 600; }
.pop-record b { font-size: 20px; font-weight: 800; font-stretch: 112%; margin-right: 6px; }
.pop-record span { color: var(--muted); font-size: 12.5px; }
.pop-record .wide { grid-column: span 2; }
.odds { margin: 0 0 10px; padding: 8px 10px; border-radius: 9px; background: var(--amber-bg); font-size: 13px; color: var(--muted); }
.odds b { color: var(--gold); font-size: 16px; margin-right: 4px; }

.setup { font-style: normal; color: var(--gold); margin-left: 4px; font-size: 13px; }
.setup-badge { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--gold); color: #1a1405; }

/* ---------- communities ---------- */
.com-form { min-width: 320px; margin-bottom: 14px; }
.com-list { display: grid; gap: 14px; }
@media (min-width: 1000px) { .com-list { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); } #tab-communities { max-width: none; } }
.com-table { overflow-x: auto; }
.com-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.com-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.com-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.com-table td small { display: block; color: var(--muted); font-size: 11.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.com-table .soc { color: var(--muted); font-size: 12px; }
.com-table .soc a { color: var(--blue); }
.com-table .acts { white-space: nowrap; text-align: right; }
.com-table .acts .btn { height: 28px; padding: 0 9px; font-size: 12px; text-decoration: none; }

.bo { font-style: normal; color: var(--gold); margin-left: 4px; font-size: 13px; }
.bo-badge { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--gold); color: #1a1405; }

/* ---------- narratives ---------- */
.nb-list { display: grid; gap: 14px; }
@media (min-width: 1000px) { .nb-list { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); } #tab-waves { max-width: none; } .nb-side { max-width: 560px; margin-top: 16px; } }
.nb-pick { margin: 0 0 10px; padding: 8px 10px; border-radius: 9px; background: var(--green-bg); font-size: 13.5px; }
.nb-pick.none { background: var(--surface-2); color: var(--muted); }
.nb-links { display: flex; gap: 6px; flex-shrink: 0; }
.nb-str { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; margin-right: 8px; border-radius: 6px;
  background: var(--accent, var(--muted)); color: #141a26; font: 700 12px var(--mono); vertical-align: 3px; }
.nb-head { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.nb-head a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.nb-head a:hover { border-color: var(--accent, var(--blue)); }
.nb-head small { display: block; color: var(--faint); margin-top: 2px; }
.nb-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.nb-stats b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.nb-stats b.up { color: var(--green); } .nb-stats b.down { color: var(--red); }
.nb-ex { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nb-ex span { padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 12px; }
.com-table tr.unsafe td { opacity: .6; }

/* callouts: what real people are saying */
.callouts { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13.5px; }
.callouts h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.co-tweet { margin: 0 0 8px; padding: 0 0 0 12px; border-left: 3px solid var(--blue); }
.co-who b { color: var(--text); } .co-who span { color: var(--muted); margin-left: 4px; } .co-who small { display: block; margin: 1px 0 0; color: var(--faint); }
.co-who em { color: var(--blue); font-style: normal; }
.co-tweet p { margin: 6px 0; line-height: 1.45; white-space: pre-wrap; }
.co-eng { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; } .co-rt b { color: var(--text); }
.co-line { margin: 0 0 6px; color: var(--muted); } .co-line b { color: var(--text); }
.co-msg { margin: 4px 0; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.05); } .co-msg small { display: block; color: var(--faint); margin-top: 2px; }
.co-warn { margin: 6px 0 0; padding: 7px 10px; border-radius: 8px; background: var(--blue-bg); color: var(--text); }
.co-warn.bad { background: var(--red-bg); }
.co-quote { margin: 0 0 8px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 12.5px; } .co-quote b { color: var(--text); }
.co-note { margin: 0 0 8px; padding: 6px 9px; border-radius: 8px; background: var(--amber-bg); font-size: 12.5px; } .co-tweet.two { border-left-color: var(--violet); }

/* new pairs */
.pairs-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pairs-controls .pop-toggle { margin: 0; }
#pairs-list.list { gap: 8px; }
.pairrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.pairrow .coin { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.pairrow .coin b { font-stretch: 118%; font-weight: 800; font-size: 15px; } .pairrow .coin small { color: var(--muted); }
.pairrow .num, .pairrow .soc { font-variant-numeric: tabular-nums; }
.pairrow [data-l]::before { content: attr(data-l); display: block; color: var(--faint); font-size: 11px; font-weight: 600; }
.pairrow .acts { grid-column: 1 / -1; display: flex; gap: 6px; }
.pairrow.unsafe { opacity: .55; } .pairrow.noidx .num { color: var(--faint); }
.pairrow .chip { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; }
.pairrow .chip.x { color: var(--blue); }
.subsect { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 1000px) {
  #tab-pairs { max-width: none; }
  .pairhead, .pairrow { gap: 8px; grid-template-columns: minmax(170px, 2fr) 56px 70px 80px 90px 86px 62px 100px 112px; align-items: center; }
  .pairhead { position: sticky; top: 0; z-index: 2; padding: 6px 14px; background: var(--bg); color: var(--faint); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .pairhead span:nth-child(n+2):nth-child(-n+7) { text-align: right; }
  #pairs-list.list { gap: 0; }
  .pairrow { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 14px; }
  .pairrow:hover { background: var(--surface); }
  .pairrow .coin, .pairrow .acts { grid-column: auto; }
  .pairrow .num { text-align: right; }
  .pairrow [data-l]::before { display: none; }
  .pairrow .acts { justify-content: flex-end; }
}
@media (max-width: 999px) { .pairhead { display: none; } }
.adv > summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 4px 0 12px; color: var(--text); }
.adv:not([open]) > summary { color: var(--muted); }

/* thesis + scoreboard */
.thesis-box { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--muted); background: rgba(255,255,255,.03); }
.thesis-box.hold { border-left-color: var(--green); } .thesis-box.flip { border-left-color: var(--gold); } .thesis-box.gamble { border-left-color: var(--red); }
.th-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.th-verdict { font-stretch: 118%; font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.hold .th-verdict { color: var(--green); } .flip .th-verdict { color: var(--gold); } .gamble .th-verdict { color: var(--red); }
.th-grade, .th-entry { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.08); }
.th-entry.e-early { color: var(--green); } .th-entry.e-fair { color: var(--gold); } .th-entry.e-late { color: var(--red); }
.th-lead { margin: 4px 0 6px; font-weight: 600; }
.th-why, .th-risk { margin: 4px 0 6px; padding-left: 18px; font-size: 13.5px; }
.th-risk li::marker { color: var(--red); } .th-why li::marker { color: var(--green); }
.th-line { margin: 4px 0; font-size: 13.5px; } .th-rec { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.vbadge { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; margin-left: 4px; letter-spacing: .04em; background: rgba(255,255,255,.1); }
.vbadge.hold { color: var(--green); } .vbadge.flip { color: var(--gold); } .vbadge.gamble { color: var(--red); }
.sb-box { margin: 10px 0 26px; }
.sb-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sb-top > div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sb-top small, .sb-grp > small { color: var(--faint); font-size: 12px; font-weight: 600; } .sb-top b { font-size: 22px; } .sb-top span { font-size: 12.5px; color: var(--muted); }
.sb-grp { margin: 14px 0; } .sb-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 70px 2fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.th-card { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.th-card span { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--faint); }
.th-card span.on { color: var(--green); background: rgba(80,200,120,.12); }

.th-score { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.th-checks { display: grid; gap: 4px; margin: 6px 0 8px; }
.th-check { display: grid; grid-template-columns: 128px 1fr; gap: 8px; font-size: 13px; align-items: baseline; }
.th-check b { font-weight: 700; } .th-check.ok b { color: var(--green); } .th-check.no b { color: var(--faint); } .th-check.no span { color: var(--faint); }
@media (max-width: 520px) { .th-check { grid-template-columns: 1fr; gap: 0; margin-bottom: 4px; } }
.thesis-box.community { border-left-color: var(--violet); } .community .th-verdict { color: var(--violet); } .vbadge.community { color: var(--violet); }

.tunnel { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 14px; }
.tunnel small { color: var(--muted); font-size: 12.5px; }
.tunnel input { width: 100%; font-size: 12px; }
.tunnel .qr { align-self: flex-start; margin: 6px 0; }

.goated { border: 1px solid #e0b43a; background: linear-gradient(180deg, rgba(224,180,58,.12), rgba(224,180,58,.04)); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.gt-head { display: flex; flex-direction: column; gap: 2px; }
.gt-head small, .gt-row small { color: var(--muted); font-size: 12.5px; display: block; }
.gt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gt-buy { background: #e0b43a; color: #1a1400; font-weight: 700; padding: 12px 22px; border-radius: 12px; text-decoration: none; font-size: 15px; flex: 0 0 auto; }
@media (max-width: 560px) { .gt-row { flex-direction: column; align-items: stretch; } .gt-buy { text-align: center; } }

.tradeplan{margin:8px 0;padding:8px 10px;border:1px solid var(--line,#2a3140);border-radius:8px;background:rgba(255,255,255,.03)}
.tradeplan ol{margin:6px 0 0;padding-left:20px;font-size:13px;line-height:1.5}
.thesis-box.fast { border-left-color: #38bdf8; } .fast .th-verdict { color: #38bdf8; } .vbadge.fast { color: #38bdf8; }

.trend { padding: 12px 14px; margin: 8px 0; border-left: 3px solid #38bdf8; }
.trend.won { border-left-color: var(--green); }
.trend-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.trend-x { font-size: 20px; font-weight: 800; }
.trend .kv { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2px 10px; font-size: 13px; margin: 6px 0; }
.trend .kv span { color: var(--muted); }
.trend-state { margin: 4px 0 8px; font-size: 13px; }
.trend-state em { font-style: normal; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.1); margin-right: 6px; }
.trend-state em.st-watching { color: #38bdf8; }
.trend .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tabs button { min-width: 0; }
.trend .coin small { margin-left: 6px; color: var(--muted); }

.mover { padding: 12px 14px; margin: 8px 0; border-left: 3px solid var(--gold); }
.mover.warn { border-left-color: var(--red); }
.mv-score { font-size: 20px; font-weight: 800; color: var(--gold); min-width: 34px; text-align: right; }
.mv-size { color: var(--muted); }
.mv-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 10px; font-size: 13px; margin: 8px 0; }
.mv-grid span { color: var(--muted); }
.mv-why { margin: 4px 0; font-size: 12.5px; color: var(--muted); }
.mv-bad { margin: 4px 0; font-size: 12.5px; color: var(--red); }
.mover .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 2px 4px; }
.mover .coin small { margin-left: 6px; color: var(--muted); } .mv-grid small { white-space: nowrap; }

.mv-flag { margin: 4px 0; font-size: 12.5px; }
.mv-flag.danger { color: var(--red); font-weight: 700; }
.mv-flag.warn { color: var(--amber, #f59e0b); }
.mv-flag.good { color: var(--green); }

/* brain */
.brainmap { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.bstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.bstat { background: var(--card, var(--bg)); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; }
.bstat b { display: block; font-size: 18px; }
.bstat small { color: var(--muted); font-size: 11px; }
.lesson { padding: 9px 12px; margin: 6px 0; border-left: 3px solid #fbbf24; background: var(--bg); border-radius: 0 8px 8px 0; }
.lesson small { display: block; color: var(--muted); margin-top: 2px; }
.bver { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bcoin { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.bcoin i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.bcoin small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
