:root {
  /* brand: indigo #5448D7, ink #332C58, teal #33C0A1 (the logo) */
  --bg: #f6f5fa;
  --bg-2: #eeedf5;
  --panel: #ffffff;
  --panel-2: #f9f8fc;
  --line: #e5e3ef;
  --line-2: #d2cfe2;
  --text: #211b40;
  --text-2: #4e4969;
  --text-3: #6c6788;
  --brand-ink: #332c58;
  --accent: #5448d7;
  --accent-strong: #5448d7;
  --accent-soft: rgba(84, 72, 215, .1);
  --on-accent: #ffffff;
  --good: #0b7f67;
  --good-fill: #33c0a1;
  --good-soft: rgba(51, 192, 161, .16);
  --warn: #a8660a;
  --warn-soft: rgba(214, 140, 30, .14);
  --bad: #cf3a52;
  --bad-soft: rgba(207, 58, 82, .11);
  --info: #2d74bb;
  --info-soft: rgba(45, 116, 187, .11);
  --shadow: 0 1px 2px rgba(33, 27, 64, .05), 0 4px 16px rgba(33, 27, 64, .06);
  --backdrop: rgba(22, 18, 44, .5);
  --radius: 14px;
  --radius-s: 9px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0c1d; --bg-2: #141229; --panel: #181530; --panel-2: #1d1a38; --line: #29254a; --line-2: #38335e;
    --text: #edebf9; --text-2: #b4b0d0; --text-3: #8c87ad; --brand-ink: #edebf9;
    --accent: #a09aff; --accent-strong: #5f55ea; --accent-soft: rgba(124, 115, 255, .17); --on-accent: #ffffff;
    --good: #3fcfac; --good-fill: #33c0a1; --good-soft: rgba(51, 192, 161, .16);
    --warn: #f2b65a; --warn-soft: rgba(242, 182, 90, .14);
    --bad: #ff6f84; --bad-soft: rgba(255, 111, 132, .14);
    --info: #72b3f5; --info-soft: rgba(114, 179, 245, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(4, 2, 16, .35);
    --backdrop: rgba(4, 3, 12, .62);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0c1d; --bg-2: #141229; --panel: #181530; --panel-2: #1d1a38; --line: #29254a; --line-2: #38335e;
  --text: #edebf9; --text-2: #b4b0d0; --text-3: #8c87ad; --brand-ink: #edebf9;
  --accent: #a09aff; --accent-strong: #5f55ea; --accent-soft: rgba(124, 115, 255, .17); --on-accent: #ffffff;
  --good: #3fcfac; --good-fill: #33c0a1; --good-soft: rgba(51, 192, 161, .16);
  --warn: #f2b65a; --warn-soft: rgba(242, 182, 90, .14);
  --bad: #ff6f84; --bad-soft: rgba(255, 111, 132, .14);
  --info: #72b3f5; --info-soft: rgba(114, 179, 245, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(4, 2, 16, .35);
  --backdrop: rgba(4, 3, 12, .62);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark { display: block; height: 26px; width: auto; }
.wordmark { display: block; height: 19px; aspect-ratio: 443 / 128; background: var(--brand-ink);
  -webkit-mask: url(/static/wordmark.png) center / contain no-repeat; mask: url(/static/wordmark.png) center / contain no-repeat; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-logo .brand-mark { height: 40px; }
.auth-logo .wordmark { height: 29px; }
.tabs { display: flex; gap: 4px; }
.tabs a { text-decoration: none; color: var(--text-2); padding: 7px 12px; border-radius: 999px; font-weight: 550; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--bg-2); }
.tabs a.active { color: var(--text); background: var(--panel); box-shadow: var(--shadow); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.pill.ok .dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.pill.busy .dot { background: var(--info); animation: pulse 1.2s infinite; }
.pill.err .dot { background: var(--bad); }
@keyframes pulse { 50% { opacity: .35; } }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 80px; outline: none; }

/* ---------- generic ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.btn { border: 1px solid var(--line-2); background: var(--panel); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 550; font-size: 14px; }
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--accent-strong); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-2); color: var(--text-2); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 650; }
.empty { padding: 48px 20px; text-align: center; color: var(--text-2); }
.empty h2 { margin-bottom: 6px; color: var(--text); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- picks page ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero p { margin: 6px 0 0; max-width: 640px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .v { font-size: 24px; font-weight: 680; letter-spacing: -.02em; margin-top: 2px; }
.kpi .s { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .sp { flex: 1; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.select { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 550; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }

.list { display: grid; gap: 10px; }
.list-head, .pick { display: grid; grid-template-columns: 56px minmax(0, 1fr) 92px 84px 84px 90px 110px 96px; gap: 14px; align-items: center; }
.list-head { padding: 0 18px 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; }
.list-head span:not(:nth-child(2)) { text-align: right; }
.pick { padding: 14px 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.pick:hover { border-color: var(--line-2); }
.pick .cell { text-align: right; }
.pick .cell .v { font-weight: 650; font-size: 15px; }
.pick .cell .l { display: none; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.pick .cell .sub { font-size: 12px; color: var(--text-3); }
.pick .title { min-width: 0; }
.pick .q { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick .meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.pick .bet { font-weight: 650; color: var(--text); }
.pick.dim { opacity: .72; }
.ring { position: relative; width: 48px; height: 48px; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.thumb { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; background: var(--bg-2); flex: none; }

/* ---------- detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-2); font-weight: 550; margin-bottom: 14px; font-size: 14px; }
.back:hover { color: var(--text); }
.detail-head { display: flex; gap: 16px; align-items: flex-start; }
.detail-head img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--bg-2); flex: none; }
.detail-head h1 { font-size: 21px; line-height: 1.25; }
.trade { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.trade.caution { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.trade.against { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.trade .big { font-size: 18px; font-weight: 700; }
.trade .sp { flex: 1; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.metric { background: var(--panel); padding: 12px 14px; }
.metric .l { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.metric .v { font-size: 18px; font-weight: 680; margin-top: 3px; }
.metric .s { font-size: 12px; color: var(--text-3); }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-3); font-size: 11px; }
.signal { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.signal:first-of-type { border-top: 0; }
.signal .name { font-weight: 600; font-size: 13.5px; }
.signal .why { font-size: 12.5px; color: var(--text-3); grid-column: 2 / 4; margin-top: -4px; }
.bar { position: relative; height: 8px; border-radius: 99px; background: var(--bg-2); }
.bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.bar.meter::after { display: none; }
.signal .val { text-align: right; font-weight: 650; font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 650; color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rules { white-space: pre-wrap; font-size: 13.5px; color: var(--text-2); max-height: 280px; overflow: auto; margin: 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; color: var(--text-3); }
details[open] summary::before { content: "▾ "; }
.ai-box ul { margin: 6px 0 0; padding-left: 18px; }
.ai-box li { margin: 3px 0; }
.ai-prob { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0; }
.note { font-size: 13px; color: var(--text-2); background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }

/* ---------- model + track ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text-2); }
.prose h2 { margin: 26px 0 8px; }
.prose code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }

/* ---------- dialog ---------- */
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10, 6, 30, .35); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
.settings-form { padding: 20px; display: grid; gap: 12px; }
.settings-form p { margin: 0; font-size: 13.5px; }
.settings-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.settings-form input, .settings-form select { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 10px; padding: 9px 11px; font-size: 15px; font-weight: 500; color: var(--text); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- guide ---------- */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.guide-toc { position: sticky; top: 76px; display: grid; gap: 2px; }
.guide-toc .kicker { margin: 0 0 8px 10px; }
.guide-toc a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 550; line-height: 1.3; }
.guide-toc a span { color: var(--text-3); font-size: 12px; min-width: 14px; }
.guide-toc a:hover { background: var(--bg-2); color: var(--text); }
.guide-toc a.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.guide-toc a.on span { color: var(--accent); }
.guide-body { max-width: 760px; }
.guide-body section { scroll-margin-top: 84px; padding-bottom: 8px; }
.guide-body section + section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 6px; }
.guide-body h1 { font-size: 28px; margin: 6px 0 10px; }
.guide-body h2 { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; font-size: 20px; }
.guide-body h2 .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; flex: none; }
.guide-body p, .guide-body li, .guide-body dd { line-height: 1.6; }
.guide-body .lead { font-size: 17px; color: var(--text); }
.callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.callout b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14.5px; }
.facts, .checks { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.facts li, .checks li { position: relative; padding-left: 26px; }
.facts li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.checks li::before { content: "\2715"; position: absolute; left: 3px; top: 0; color: var(--bad); font-weight: 700; font-size: 13px; }
.example { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.example p { margin: 6px 0; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.good-box, .bad-box { border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.good-box { background: var(--good-soft); } .bad-box { background: var(--bad-soft); }
.good-box b:first-child, .bad-box b:first-child { display: block; color: var(--text); margin-bottom: 3px; }
.anatomy { margin: 18px 0 8px; padding: 26px 14px 14px; border-radius: 16px; background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 8px, transparent 8px, transparent 16px); }
.anatomy .pick { cursor: default; }
.anatomy .marked { position: relative; }
.marker { position: absolute; top: -12px; left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--panel); z-index: 2; }
.marker.inline { position: static; display: inline-grid; width: 17px; height: 17px; font-size: 10.5px; margin-right: 6px; vertical-align: 1px; box-shadow: none; letter-spacing: 0; text-transform: none; }
.legend-list { padding-left: 0; list-style: none; counter-reset: lg; display: grid; gap: 10px; }
.legend-list li { counter-increment: lg; position: relative; padding-left: 32px; }
.legend-list li::before { content: counter(lg); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.glossary { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.glossary dt, .glossary dd { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); }
.glossary dt:first-of-type, .glossary dt:first-of-type + dd { border-top: 0; }
.glossary dt { font-weight: 650; color: var(--text); background: var(--panel-2); font-size: 14px; }
.glossary dd { color: var(--text-2); font-size: 14px; }
.steps { padding-left: 0; list-style: none; counter-reset: st; display: grid; gap: 14px; }
.steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 56px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text-2); }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; box-sizing: border-box; }
.steps li b:first-child { color: var(--text); }
.btn.small { padding: 4px 10px; font-size: 12.5px; margin-left: 6px; vertical-align: 1px; }
.ledger { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; margin: 14px 0; max-width: 460px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.ledger-row:first-child { border-top: 0; }
.ledger-row span:last-child { font-weight: 700; }
.ledger-row.total { background: var(--panel-2); font-weight: 650; }
.calc { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); overflow: hidden; margin: 14px 0; }
.calc-in { display: grid; gap: 12px; padding: 18px; background: var(--panel-2); border-right: 1px solid var(--line); }
.calc-in label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.calc-in input, .calc-in select { border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 9px 11px; font-size: 15px; color: var(--text); width: 100%; }
.calc-out { padding: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.calc-grid .l { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; }
.calc-grid .v { font-size: 21px; font-weight: 700; margin-top: 2px; }
.calc-grid .s { font-size: 12.5px; color: var(--text-3); }
.calc-verdict { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.guide-body details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.guide-body details p { margin: 8px 0 2px; color: var(--text-2); }
.guide-end { margin-top: 30px; }
.guide-end p { margin: 6px 0 14px; }
.row-start { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-banner { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.guide-banner > div { flex: 1; font-size: 14px; color: var(--text-2); }
.guide-banner b { color: var(--text); }
.help { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-3); font-size: 10.5px; text-decoration: none; margin-left: 4px; letter-spacing: 0; vertical-align: 1px; }
.help:hover { color: var(--text); border-color: var(--text-3); }
.trade-help { margin: 10px 2px 0; font-size: 13px; }
.trade-help a { color: var(--text-2); }
@media (max-width: 1080px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .guide-toc { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .guide-toc::-webkit-scrollbar { display: none; }
  .guide-toc .kicker { display: none; }
  .guide-toc a { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
  .guide-body section { scroll-margin-top: 110px; }
}
@media (max-width: 760px) {
  .callouts, .outcomes { grid-template-columns: minmax(0, 1fr); }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .glossary dd { border-top: 0; padding-top: 0; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .guide-body h1 { font-size: 24px; }
  .guide-body h2 { font-size: 18px; }
  .guide-banner { flex-wrap: wrap; }
  .guide-banner > div { flex-basis: calc(100% - 50px); }
  .steps li { padding-left: 50px; }
  .steps li::before { left: 13px; }
}

/* the guide's example card always uses the compact layout (the guide column is too narrow for the table row) */
.pick .lean-inline { display: none; }
.anatomy .pick { grid-template-columns: 52px repeat(5, minmax(0, 1fr)); grid-template-areas: "ring title title title title title" "ring c1 c2 cr c3 c4"; row-gap: 10px; }
.anatomy .pick .ring { grid-area: ring; align-self: start; }
.anatomy .pick .title { grid-area: title; }
.anatomy .pick .cell { text-align: left; }
.anatomy .pick .cell .l { display: block; }
.anatomy .pick .c1 { grid-area: c1; } .anatomy .pick .c2 { grid-area: c2; } .anatomy .pick .c-ret { grid-area: cr; display: block; }
.anatomy .pick .c3 { grid-area: c3; } .anatomy .pick .c4 { grid-area: c4; }
.anatomy .pick .c-lean { display: none; }
.anatomy .pick .lean-inline { display: inline; }

/* ---------- sign-in ---------- */
body.anon .tabs, body.anon .top-right .pill, body.anon #settings-btn { display: none; }
.auth-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: min(420px, 100%); padding: 30px 28px 24px; text-align: center; }
.auth-card h1 { font-size: 22px; margin: 14px 0 6px; }
.auth-card > p.muted { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.auth-form input, .auth-form select { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 10px; padding: 11px 12px; font-size: 16px; color: var(--text); width: 100%; }
.auth-form input:focus, .auth-form select:focus, .calc-in input:focus, .settings-form input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: transparent; }
.auth-form .hint { font-weight: 450; font-size: 12.5px; color: var(--text-3); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 13.5px; }
.btn.wide { width: 100%; padding: 12px 14px; font-size: 15px; display: block; text-align: center; text-decoration: none; }
.auth-foot { font-size: 13px; margin: 18px 0 0; line-height: 1.5; }
.inline-form { margin-top: 12px; }
.inline-form input, .inline-form select { font-size: 15px; padding: 9px 11px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.small-select { padding: 4px 8px; font-size: 12.5px; }
td.actions { white-space: nowrap; }
td.actions .btn + .btn { margin-left: 4px; }
.link-box { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); display: grid; gap: 10px; }
.link-input { width: 100%; border: 1px solid var(--line-2); background: var(--panel); border-radius: 9px; padding: 9px 10px; font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text); }
.pill.warn .dot { background: var(--warn); }
/* user menu */
.user-wrap { position: relative; }
.user-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.user-btn:hover { border-color: var(--accent); }
.user-btn[hidden] { display: none; }
.menu { position: absolute; right: 0; top: 42px; min-width: 220px; padding: 6px; display: grid; z-index: 30; }
.menu[hidden] { display: none; }
.menu-head { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; }
.menu-head .faint { font-size: 12px; }
.menu a, .menu button { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 550; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg-2); color: var(--text); }

/* ---------- simple pick cards ---------- */
.pcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 16px 20px; text-decoration: none; align-items: start; transition: border-color .15s; }
.pcard:hover { border-color: var(--line-2); }
.pcard:focus-visible, .pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcard.dim { opacity: .8; }
.pcard .q { font-weight: 650; font-size: 16px; line-height: 1.35; }
.pcard .meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.plain { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 760px; }
.plain b { color: var(--text); font-weight: 650; }
.plain .side { color: var(--accent); }
.outcome-pair { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 14px; }
.outcome-pair .win, .outcome-pair .win b { color: var(--good); }
.outcome-pair .lose, .outcome-pair .lose b { color: var(--bad); }
.why-not { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.small-seg button { padding: 5px 11px; font-size: 12.5px; }
@media (max-width: 760px) {
  .pcard { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .pcard .ring { width: 40px; height: 40px; }
  .pcard .ring svg { width: 40px; height: 40px; }
  .pcard .ring b { font-size: 12.5px; }
  .pcard .q { font-size: 15px; }
  .plain { font-size: 14.5px; }
}

/* ---------- how to place it ---------- */
.howto { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--panel-2); }
.howto summary { font-size: 15px; }
.howto-steps { margin: 10px 0 4px; padding-left: 0; list-style: none; counter-reset: hs; display: grid; gap: 8px; }
.howto-steps li { counter-increment: hs; position: relative; padding-left: 32px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.howto-steps li::before { content: counter(hs); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; box-sizing: border-box; }
.howto-steps b { color: var(--text); }

/* ---------- bankroll prompt ---------- */
.bankroll-prompt { display: flex; align-items: center; gap: 12px 16px; padding: 14px 18px; margin-bottom: 16px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--info) 35%, var(--line)); }
.bankroll-prompt > div { flex: 1 1 280px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.bankroll-prompt b { color: var(--text); }
.bp-field { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--panel-2); color: var(--text-3); font-weight: 600; }
.bp-field input { border: 0; background: transparent; width: 110px; padding: 10px 0; font-size: 16px; color: var(--text); }
.bp-field input:focus { outline: none; }
.bp-field:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }

/* ---------- my bets ---------- */
.bet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 22px; align-items: center; padding: 14px 18px; }
.bet-row.closed { opacity: .85; }
.bet-row .q { font-weight: 650; line-height: 1.35; }
.bet-row .q a { text-decoration: none; }
.bet-row .q a:hover { text-decoration: underline; }
.bet-row .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--text-3); }
.bet-nums { display: flex; gap: 22px; text-align: right; }
.bet-nums .l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; }
.bet-nums .v { font-weight: 700; font-size: 16px; }
.bet-actions { display: flex; gap: 6px; }
.trade-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.held-note { margin: 10px 0 0; font-size: 13.5px; color: var(--good); }
.mini-dialog { width: min(440px, calc(100vw - 32px)); }
.mini-dialog p.muted { line-height: 1.5; }
.calc-line { margin: 0; font-size: 14px; color: var(--text-2); min-height: 1.4em; }
@media (max-width: 760px) {
  .bet-row { grid-template-columns: minmax(0, 1fr); }
  .bet-nums { text-align: left; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .list-head { display: none; }
  .pick { grid-template-columns: 52px repeat(4, minmax(0, 1fr)); grid-template-areas: "ring title title title title" "ring c1 c2 c3 c4"; row-gap: 10px; }
  .pick .ring { grid-area: ring; align-self: start; }
  .pick .title { grid-area: title; }
  .pick .cell { text-align: left; }
  .pick .cell .l { display: block; }
  .pick .c-ret, .pick .c-lean { display: none; }
  .pick .lean-inline { display: inline; }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .top { gap: 10px; flex-wrap: wrap; padding-bottom: 0; }
  .tabs { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 6px 12px 8px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .pill #status-text { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  main { padding-top: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .v { font-size: 20px; }
  .pick { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); grid-template-areas: "ring title title title title" "c1 c1 c2 c3 c4"; padding: 14px; gap: 10px 8px; }
  .ring { width: 42px; height: 42px; }
  .ring svg { width: 42px; height: 42px; }
  .ring b { font-size: 13px; }
  .pick .c1 { grid-area: c1; } .pick .c2 { grid-area: c2; } .pick .c3 { grid-area: c3; } .pick .c4 { grid-area: c4; }
  .pick .cell .v { font-size: 14px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .detail-head img { width: 44px; height: 44px; }
  .detail-head h1 { font-size: 18px; }
  .pad { padding: 16px; }
  .signal { grid-template-columns: 82px minmax(0, 1fr) 40px; }
  .toolbar .sp { display: none; }
  .anatomy .pick { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); grid-template-areas: "ring title title title title" "c1 c1 c2 c3 c4"; }
  .anatomy .pick .c-ret { display: none; }
  .anatomy { padding: 22px 0 8px; }
  .anatomy .cell .marker.inline { display: grid; margin: 0 0 4px; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .pick .c1 { grid-area: c1; } .pick .c2 { grid-area: c2; } .pick .c3 { grid-area: c3; } .pick .c4 { grid-area: c4; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.wf-panel { margin-bottom: 14px; }

/* ---------- copy bot ---------- */
.tabs a[hidden] { display: none; }
.bot-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bot-hero h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-badge { font-size: 13px; padding: 3px 10px; }
.bot-status { font-size: 13px; margin: 6px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kill { flex: none; font-weight: 650; }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); }
.mode-card { display: grid; gap: 12px; margin-bottom: 16px; }
.mode-seg { justify-self: start; }
.mode-seg button { min-width: 96px; }
.mode-seg button[data-mode="live"].on { background: var(--bad); color: #fff; }
.mode-help { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.arm-box { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.arm-box p { margin: 0; line-height: 1.5; }
.arm-box label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; max-width: 260px; }
.arm-box input { border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--text); letter-spacing: .08em; }
.kpi-of { font-size: 15px; font-weight: 550; color: var(--text-3); }
.bot-two { align-items: start; }
.stack { display: grid; gap: 14px; }
.small-p { font-size: 13px; margin: 4px 0 12px; }
.small-h { font-size: 12.5px; font-weight: 500; margin-left: 4px; }
.section-gap { margin-top: 14px; }
.bot-form { display: grid; gap: 12px; }
.bot-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bot-form small { font-weight: 450; font-size: 12px; color: var(--text-3); }
.bot-form .in { position: relative; display: block; }
.bot-form input { width: 100%; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 10px; padding: 9px 11px; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.bot-form .in.usd input { padding-left: 24px; }
.bot-form .in.usd::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 15px; font-weight: 500; }
.bot-form .in i { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-style: normal; font-weight: 500; pointer-events: none; }
.bot-form input:focus, .keys-form input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: transparent; }
#bot-settings { grid-template-columns: 1fr 1fr; column-gap: 14px; }
#bot-settings .row-end { grid-column: 1 / -1; align-items: center; gap: 12px; }
.steps { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.reasons { display: grid; gap: 10px; }
.reason { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.reason .bar { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .bot-hero { flex-direction: column; }
  .kill { align-self: stretch; }
  #bot-settings { grid-template-columns: minmax(0, 1fr); }
  .mode-seg { justify-self: stretch; display: flex; }
  .mode-seg button { flex: 1; min-width: 0; }
}
.reason .bar i { left: 0; background: var(--text-3); opacity: .55; }
.arm-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; gap: 8px 18px; flex-wrap: wrap; counter-reset: arm; }
.arm-steps li { counter-increment: arm; display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.arm-steps li::before { content: counter(arm); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.arm-steps li.done { color: var(--text-3); text-decoration: line-through; }
.arm-steps li.done::before { content: "✓"; background: var(--good-soft); color: var(--good); }

/* ---------- bot liveness: header chip and the Bot page strip ---------- */
.bot-pill { text-decoration: none; }
.bot-pill[hidden] { display: none; }
.bot-pill:hover { color: var(--text); border-color: var(--line-2); }
.bot-pill .dot { position: relative; }
.bot-pill.s-running { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.bot-pill.s-live { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); font-weight: 650; }
.bot-pill.s-running .dot { background: var(--accent); }
.bot-pill.s-live .dot { background: var(--bad); }
.bot-pill.s-stalled .dot, .bot-pill.s-starting .dot, .bot-pill.s-waiting .dot { background: var(--warn); animation: pulse 1.2s infinite; }
.bot-pill.s-stalled { color: var(--warn); }
.bot-pill.s-running .dot::after, .bot-pill.s-live .dot::after,
.s-running .live-dot::after, .s-live .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }

.bot-live { display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.bot-live.s-running { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.bot-live.s-live { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.bot-live.s-stalled { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.bot-live.s-running::after, .bot-live.s-live::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 9%, transparent) 50%, transparent 70%);
  transform: translateX(-100%); animation: sweep 4s ease-in-out infinite; }
.bot-live.s-live::after { background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--bad) 9%, transparent) 50%, transparent 70%); }
@keyframes sweep { 55%, 100% { transform: translateX(100%); } }
.bot-face { position: relative; flex: none; width: 74px; height: 60px; display: grid; place-items: center; }
.bot-face-svg { width: 74px; height: 60px; position: relative; z-index: 1; overflow: visible; transition: filter .3s, opacity .3s; }
.bot-face::before, .bot-face::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.s-live .bot-face::before, .s-live .bot-face::after { border-color: var(--bad); }
.s-running .bot-face::before, .s-running .bot-face::after, .s-live .bot-face::before, .s-live .bot-face::after { animation: sonar 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.s-running .bot-face::after, .s-live .bot-face::after { animation-delay: 1.4s; }
@keyframes sonar { 0% { transform: scale(.75); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.bot-face-svg .eye { fill: var(--good-fill); transform-box: fill-box; transform-origin: center; transition: transform .3s, fill .3s; }
.s-running .eyes, .s-live .eyes { animation: glance 7s ease-in-out infinite; }
.s-running .eye, .s-live .eye { animation: blink 5.5s ease-in-out infinite; }
@keyframes glance { 0%, 12% { transform: translateX(0); } 20%, 38% { transform: translateX(-26px); } 46%, 64% { transform: translateX(26px); } 72%, 100% { transform: translateX(0); } }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
.s-starting .eye, .s-waiting .eye { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; } }
.s-stalled .eye { fill: var(--warn); }
.s-off .bot-face-svg, .s-disabled .bot-face-svg { filter: grayscale(1); opacity: .45; }
.s-off .eye, .s-disabled .eye { transform: scaleY(.14); }
.bot-live-text { min-width: 0; display: grid; gap: 3px; position: relative; z-index: 1; }
.bot-live-title { display: flex; align-items: center; gap: 9px; font-size: 16.5px; }
.s-running .bot-live-title b { color: var(--accent); }
.s-live .bot-live-title b { color: var(--bad); }
.s-stalled .bot-live-title b { color: var(--warn); }
.live-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.s-running .live-dot { background: var(--accent); }
.s-live .live-dot { background: var(--bad); }
.s-stalled .live-dot, .s-starting .live-dot, .s-waiting .live-dot { background: var(--warn); }
.live-dot.beat { animation: beat .45s ease-out; }
@keyframes beat { 35% { transform: scale(1.8); } }
.bot-live-sub { font-size: 13.5px; color: var(--text-2); }
.bot-live-sub b { color: var(--text); font-weight: 650; }
.bot-live-sub .count { border-radius: 4px; padding: 0 2px; margin: 0 -2px; }
.bot-live-sub .count.bump { animation: bump .7s ease-out; }
@keyframes bump { 0% { background: var(--accent-soft); color: var(--accent); } 100% { background: transparent; } }
.bot-live-tape { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.45em; }
.bot-live-tape.fresh { animation: tape .45s ease-out; }
@keyframes tape { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .bot-pill .bp-mode { display: none; }
  .bot-pill { padding: 5px 10px; }
  .bot-live { gap: 12px; padding: 14px; align-items: flex-start; }
  .bot-face, .bot-face-svg { width: 54px; height: 44px; }
  .bot-face::before, .bot-face::after { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .bot-live-tape { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .bot-live *, .bot-live::after, .bot-face::before, .bot-face::after, .bot-pill .dot, .bot-pill .dot::after { animation: none !important; }
}
