/* Sage: blue, black and white. A clean, modern layout (white panels with
   dividers, big tabular figures) that follows the phone's light or dark mode. */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --background: #f3f5f9;
  --card: #ffffff;
  --muted: #eef1f6;
  --muted-fg: #5d6779;
  --border: #dde2ea;
  --border-soft: #e6eaf0;
  --ink: #0b0f19;
  --title: #05070d;
  --icon: #9aa4b5;
  --accent: #1f5eff;
  --accent-press: #1849cc;
  --accent-soft: #e8efff;
  --accent-border: #c7d6ff;
  --accent-ring: rgb(31 94 255 / .25);
  --success: #0e9f5a;
  --gain-soft: rgb(14 159 90 / .1);
  --destructive: #e0323c;
  --loss-soft: rgb(224 50 60 / .08);
  --loss-border: rgb(224 50 60 / .3);
  --gold: #e3a008;
  --bar-bg: rgb(255 255 255 / .9);
  --shadow-lg: 0 10px 30px rgb(11 15 25 / .12);
  --hero-bg: linear-gradient(135deg, #0b1220 0%, #10234d 60%, #1f5eff 140%);
  --hero-fg: #ffffff;
  --hero-muted: rgb(255 255 255 / .7);
  --heading: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #05070b;
    --card: #0d121a;
    --muted: #151c27;
    --muted-fg: #8b95a7;
    --border: #232c3a;
    --border-soft: #1a222e;
    --ink: #eef2f8;
    --title: #ffffff;
    --icon: #5f6b7e;
    --accent: #4d8bff;
    --accent-press: #2f6fef;
    --accent-soft: rgb(77 139 255 / .14);
    --accent-border: rgb(77 139 255 / .35);
    --accent-ring: rgb(77 139 255 / .35);
    --success: #2fd27f;
    --gain-soft: rgb(47 210 127 / .12);
    --destructive: #ff5a63;
    --loss-soft: rgb(255 90 99 / .1);
    --loss-border: rgb(255 90 99 / .35);
    --bar-bg: rgb(13 18 26 / .88);
    --shadow-lg: 0 10px 30px rgb(0 0 0 / .5);
    --hero-bg: linear-gradient(135deg, #0d1626 0%, #102a5c 65%, #1f5eff 150%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--ink);
  font: 15px/1.45 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
input {
  font: inherit; font-size: 16px; width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input::placeholder { color: var(--muted-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 16px; height: 16px; }
.tnum, .balance, .stat, .amount { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted-fg); }
.hint { color: var(--muted-fg); font-size: 13px; }
.center { text-align: center; }
.gain { color: var(--success); }
.loss { color: var(--destructive); }
.error { color: var(--destructive); min-height: 1.4em; font-size: 14px; }
.wordmark { font-weight: 800; color: var(--title); font-size: 22px; letter-spacing: -.03em; line-height: 1; display: inline-flex; align-items: center; gap: 8px; }
.wordmark::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--accent) url("/icon-mark.svg") center / 16px no-repeat; }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 500; transition: background .15s;
}
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--card); color: var(--accent); border-color: var(--border); }
.btn-ghost { background: none; color: var(--accent); }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 500; padding: 4px 0; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--icon); }
.icon-btn:active { background: var(--accent-soft); }

/* --- sign in ----------------------------------------------------------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-mark { font-size: 34px; margin-bottom: 22px; }
.login-mark::before { width: 34px; height: 34px; border-radius: 10px; background-size: 24px; }
.login-card .muted { margin: 6px 0 28px; }
.login-card form { text-align: left; display: grid; gap: 10px; margin-top: 16px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--title); }

/* --- frame ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center;
  padding: env(safe-area-inset-top) 8px 0 16px; height: calc(56px + env(safe-area-inset-top));
  background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .wordmark { font-size: 22px; }
.top-actions { display: flex; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pill-champagne { background: var(--accent-soft); color: var(--accent); }
.pill-lilac { background: var(--muted); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; }

main { max-width: 640px; margin: 0 auto; padding: 20px 16px calc(env(safe-area-inset-bottom) + 104px); }
.page-title { font-family: var(--heading); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.025em; color: var(--title); margin-bottom: 4px; }
.greeting { font-family: var(--heading); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--title); margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; margin: 28px 0 8px; }
.section-head h2 { font-size: 15px; font-weight: 600; color: var(--title); }
.tab > .hint { padding: 0 4px; margin-bottom: 10px; }

/* Panels: related things sit on one white panel with dividers. */
.card, .list, .hero, .stats { background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.card { padding: 14px 16px; }
.list > * + * { border-top: 1px solid var(--border-soft); }
.empty { padding: 18px 16px; color: var(--muted-fg); font-size: 14px; text-align: center; }
.empty-box { border: 1px dashed var(--icon); border-radius: 16px; padding: 28px 20px; text-align: center; }
.empty-box h3 { font-family: var(--heading); font-weight: 500; font-size: 19px; color: var(--title); }
.empty-box p { color: var(--muted-fg); margin: 4px auto 0; max-width: 300px; font-size: 14px; }
.empty-box .btn { margin-top: 14px; }

/* --- home -------------------------------------------------------------- */
.hero { padding: 20px 20px 14px; }
.hero.compact { padding: 18px 20px; margin-top: 12px; }
.label { font-size: 13px; color: var(--muted-fg); }
.balance { font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.035em; color: var(--title); margin-top: 2px; }
.change { margin-top: 6px; font-size: 14px; font-weight: 500; }
.change .chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; margin-right: 6px; }
.chip.gain { background: var(--gain-soft); }
.chip.loss { background: var(--loss-soft); }
.chip.flat { background: var(--muted); color: var(--muted-fg); }
.spark { height: 72px; margin: 14px -4px 4px; }
.spark svg { width: 100%; height: 100%; display: block; }
.hero .hint { margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.stats > div { padding: 12px 14px; }
.stats > div + div { border-left: 1px solid var(--border-soft); }
.stat { font-size: 17px; font-weight: 600; margin-top: 2px; color: var(--ink); }

.todo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; margin-top: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 16px; color: var(--title); }
.todo .todo-icon { width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.todo .todo-icon .ic { width: 18px; height: 18px; }
.todo strong { display: block; font-weight: 600; }
.todo span.sub { font-size: 13px; color: var(--muted-fg); }
.todo .chev { margin-left: auto; color: var(--accent); }

.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .sub { font-size: 13px; color: var(--muted-fg); }
.row .right { text-align: right; flex-shrink: 0; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--muted); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: .02em; flex-shrink: 0; }
.avatar.buy { background: var(--gain-soft); color: var(--success); }
.avatar.sell { background: var(--accent-soft); color: var(--accent); }
.avatar .ic { width: 18px; height: 18px; }

.kill-wrap { margin-top: 32px; }
.kill { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--loss-border); background: var(--card); color: var(--destructive); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.kill.on { background: var(--destructive); color: #fff; border-color: var(--destructive); }

.banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--loss-border); background: var(--loss-soft); color: var(--destructive); font-size: 14px; }
.banner .btn { margin-top: 10px; min-height: 40px; }

/* --- picks ------------------------------------------------------------- */
.wl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.wl-head .hint { font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; cursor: pointer; }
.pick .grow { flex: 1; min-width: 0; }
.pick .top { display: flex; justify-content: space-between; gap: 8px; }
.pick .why { font-size: 13px; color: var(--muted-fg); margin-top: 2px; }
.pick .tags { margin-top: 6px; }
.check { position: relative; width: 24px; height: 24px; flex-shrink: 0; margin-top: 8px; }
.check input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 24px; height: 24px; cursor: pointer; }
.check span { position: absolute; inset: 0; border-radius: 8px; border: 1.5px solid var(--icon); background: var(--card); display: grid; place-items: center; color: transparent; }
.check input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:disabled + span { opacity: .55; }
.check .ic { width: 16px; height: 16px; stroke-width: 2.5; }
.wl-foot { padding: 12px 16px 16px; border-top: 1px solid var(--border-soft); }
.wl-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.wl-foot .hint { margin-top: 8px; text-align: center; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--success); }
.status-line.neutral { color: var(--muted-fg); }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  position: relative; text-align: left; padding: 14px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 4px; min-height: 128px;
  transition: border-color .15s, box-shadow .15s;
}
.mode strong { font-family: var(--heading); font-weight: 600; font-size: 17px; color: var(--title); line-height: 1.2; padding-right: 26px; }
.mode .desc { font-size: 12.5px; color: var(--muted-fg); line-height: 1.35; }
.mode .badge { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--border); display: grid; place-items: center; color: transparent; background: var(--card); }
.mode .badge .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.mode .order { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-top: auto; }
.mode.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.mode.on .badge { background: var(--accent); border-color: var(--accent); color: #fff; }
.mode.dim { opacity: .5; }
.save-bar {
  position: sticky; bottom: calc(env(safe-area-inset-bottom) + 76px); z-index: 20; margin-top: 12px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px; border-radius: 16px;
  background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
}
.disclosure { margin-top: 14px; }
.disclosure summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 4px; color: var(--accent); font-size: 14px; font-weight: 500; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .ic { transition: transform .15s; }
.disclosure[open] summary .ic { transform: rotate(90deg); }
.disclosure form { display: flex; gap: 8px; margin-top: 6px; }
.disclosure form .btn { flex-shrink: 0; }
.locked-row .avatar { background: var(--muted); color: var(--icon); }

.idea { padding: 16px; margin-bottom: 10px; }
.idea-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.idea-head h3 { font-family: var(--heading); font-weight: 600; font-size: 24px; color: var(--title); line-height: 1.1; }
.idea .reason { margin-top: 8px; }
.idea ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted-fg); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; background: var(--muted); border-radius: 12px; }
.facts > div { padding: 10px 12px; }
.facts > div + div { border-left: 1px solid var(--border); }
.facts .v { font-weight: 600; margin-top: 1px; }
.projection { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.projection .big { font-family: var(--heading); font-size: 20px; font-weight: 600; color: var(--success); }
.idea-foot { margin-top: 14px; }
.idea-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 10px; }

/* --- performance ------------------------------------------------------- */
.segmented { display: flex; background: var(--muted); border-radius: 12px; padding: 4px; margin-top: 12px; }
.segmented button { flex: 1; min-height: 38px; border: 0; background: none; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted-fg); }
.segmented button[aria-checked="true"] { background: var(--card); color: var(--title); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.bucket { padding: 12px 16px; }
.bucket .top { display: flex; justify-content: space-between; gap: 12px; }
.bar { height: 6px; border-radius: 999px; background: var(--muted); margin-top: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.score { padding: 14px 16px; margin-bottom: 10px; }
.score h3 { font-family: var(--heading); font-weight: 600; font-size: 18px; color: var(--title); }
.score .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.score p { font-size: 14px; margin-top: 6px; }

/* --- settings ---------------------------------------------------------- */
.row-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; background: none; border: 0; text-align: left; font-size: 15px; }
.row-btn .row-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.row-btn .row-icon .ic { width: 18px; height: 18px; }
.row-btn .chev { margin-left: auto; color: var(--icon); }
.row-btn.danger { color: var(--destructive); }
.row-btn.danger .row-icon { background: var(--loss-soft); color: var(--destructive); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; }
.kv span:first-child { color: var(--ink); }
.kv strong { font-weight: 600; }

/* --- tab bar ----------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-soft); padding: 0 8px env(safe-area-inset-bottom);
}
.tabbar button {
  position: relative; flex: 1; max-width: 140px; min-height: 58px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 500; color: var(--muted-fg);
}
.tabbar button .ic { color: var(--icon); }
.tabbar button.active { color: var(--accent); }
.tabbar button.active .ic { color: var(--accent); stroke-width: 2.25; }
.dot-count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--destructive); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 78px); z-index: 50;
  max-width: 480px; margin: 0 auto; background: var(--title); color: var(--background);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* The balance card is the one dark-blue moment on Home. */
#tab-home .hero { background: var(--hero-bg); border: 0; color: var(--hero-fg); box-shadow: var(--shadow-lg); }
#tab-home .hero .label, #tab-home .hero .hint, #tab-home .hero .change .muted { color: var(--hero-muted); }
#tab-home .hero .balance { color: var(--hero-fg); }
#tab-home .hero .chip.flat { background: rgb(255 255 255 / .12); color: var(--hero-fg); }
#tab-home .hero .chip.gain { background: rgb(47 210 127 / .18); color: #5ff0a0; }
#tab-home .hero .chip.loss { background: rgb(255 90 99 / .18); color: #ff9aa0; }

/* Scanner picks: the numbers you choose by. */
.sortbar { display: flex; gap: 6px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar button { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-fg); font-size: 13px; font-weight: 500; }
.sortbar button[aria-pressed="true"] { background: var(--title); border-color: var(--title); color: var(--background); }
.outlook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; background: var(--border-soft); border-radius: 12px; overflow: hidden; }
.outlook > * { background: var(--muted); padding: 8px 10px; min-width: 0; }
.outlook .label { font-size: 11px; }
.outlook .v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.outlook .s { font-size: 11px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.odds-bar { height: 4px; border-radius: 999px; background: var(--border); margin-top: 6px; overflow: hidden; }
.odds-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pick-foot { font-size: 12px; color: var(--muted-fg); margin-top: 6px; }

/* --- editable guardrails ----------------------------------------------- */
.note { padding: 8px 4px 0; }
.guard-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 64px; }
.guard-row .grow { flex: 1; min-width: 0; }
.guard-row .sub { font-size: 12px; color: var(--muted-fg); }
.guard-row.changed { background: var(--accent-soft); }
.unit-input { position: relative; width: 108px; flex-shrink: 0; }
.unit-input input { height: 44px; padding: 0 30px 0 12px; text-align: right; font-variant-numeric: tabular-nums; }
.unit-input input:invalid, .unit-input input.bad { border-color: var(--destructive); }
.unit-input .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-fg); font-size: 14px; pointer-events: none; }
.unit-input.prefix input { padding: 0 12px 0 26px; }
.unit-input.prefix .unit { left: 12px; right: auto; }
.kv .lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-fg); font-weight: 500; }
.kv .lock .ic { width: 14px; height: 14px; }
.kv .was { color: var(--muted-fg); font-weight: 400; text-decoration: line-through; margin-right: 6px; }
.tag-looser { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--destructive); text-transform: uppercase; letter-spacing: .04em; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; background: var(--background);
  border-radius: 20px 20px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 16px);
  display: grid; gap: 12px; box-shadow: var(--shadow-lg);
}
.sheet-title { font-size: 18px; font-weight: 700; color: var(--title); }
.sheet-warn { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--loss-border); background: var(--loss-soft); color: var(--destructive); font-size: 14px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.unit-input input::-webkit-outer-spin-button, .unit-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* --- pick box: shares and explanations ---------------------------------- */
.outlook > * { display: block; }
.outlook .label, .outlook .s, .outlook .odds-bar { display: block; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--muted); }
.share-row .share-label { font-size: 13px; color: var(--muted-fg); }
.share-row .s { font-size: 12px; color: var(--muted-fg); font-variant-numeric: tabular-nums; margin-left: auto; }
.share-row strong { font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--accent); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; }
.pick-foot { display: block; }
.info-btn { background: none; border: 0; padding: 4px 0; margin-left: 4px; color: var(--accent); font-size: 12px; font-weight: 600; }
.pick-info { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border-soft); font-size: 13px; line-height: 1.45; cursor: default; }
.pick-info b { color: var(--title); }

/* --- news and Sage's take ------------------------------------------------ */
.news-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; margin-top: 10px;
  border-radius: 10px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.news-sheet { max-height: 90vh; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -20px;
  margin: -20px -16px 0; padding: 16px 16px 10px; background: var(--background); z-index: 1; }
.news-h { font-size: 13px; font-weight: 600; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .05em; margin: 14px 4px 8px; }
.story { display: block; padding: 12px 16px; color: inherit; text-decoration: none; }
.story .title { display: block; font-weight: 600; color: var(--title); line-height: 1.35; }
.story .sub { display: block; font-size: 12px; color: var(--muted-fg); margin-top: 3px; }
.story .sum { display: block; font-size: 13px; color: var(--muted-fg); margin-top: 4px; }
.take { display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.take h3 { font-size: 14px; font-weight: 700; color: var(--title); margin-top: 4px; }
.take ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.verdict { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--border-soft); }
.verdict .verdict-label { display: inline-block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.verdict.good { background: var(--gain-soft); } .verdict.good .verdict-label { color: var(--success); }
.verdict.mid { background: var(--accent-soft); } .verdict.mid .verdict-label { color: var(--accent); }
.verdict.bad { background: var(--loss-soft); } .verdict.bad .verdict-label { color: var(--destructive); }
.horizons { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-soft); border-radius: 12px; overflow: hidden; }
.horizons > div { background: var(--card); padding: 10px 12px; }
.horizons .label { display: block; font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.horizons p { font-size: 13px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proscons > div { background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; }
.proscons .pros h3 { color: var(--success); } .proscons .cons h3 { color: var(--destructive); }
.proscons li { font-size: 13px; }
.take-wait { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-soft); font-size: 14px; }
.spinner { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 360px) { .proscons, .horizons { grid-template-columns: 1fr; } }
