:root {
  --bg: #fffbeb;
  --fg: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 8px;
  --max: 1040px;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
p  { margin: 0 0 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem 0;
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header .brand {
  font-weight: 800; font-size: 1.25rem; color: var(--fg);
}
.site-header .brand span { color: var(--accent); }
.site-header nav a {
  margin-left: 1rem; color: var(--fg); font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.4rem; max-width: 28ch; }
.hero-sub { max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 0.75rem; margin-top: 1rem; }
.btn {
  display: inline-block; padding: 0.6rem 1rem;
  background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600;
}
.btn-ghost {
  display: inline-block; padding: 0.6rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--fg);
}

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.breadcrumbs a { color: var(--muted); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.hero-stats .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.hero-stats .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.hero-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.hero-stats .stat-headline .stat-value { color: var(--accent-dark); }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.consensus-table-wrap { overflow-x: auto; margin: 1rem 0; }
.consensus-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.consensus-table th, .consensus-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.consensus-table th {
  background: #fafaf9;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
}
.consensus-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.consensus-table .small { color: var(--muted); font-size: 0.85rem; }

.chart { margin: 1.5rem 0; }
.chart svg { width: 100%; height: auto; }
.chart figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; }
.chart-empty { color: var(--muted); padding: 2rem; text-align: center; }

.odds-list { list-style: none; padding: 0; margin: 0; }
.odds-list li { border-bottom: 1px solid var(--line); }
.odds-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 0.9rem 0;
  color: var(--fg);
}
.odds-list a:hover { text-decoration: none; background: #fff7ed; }
.odds-list-title { font-weight: 600; }
.odds-list-meta { display: flex; gap: 0.75rem; font-size: 0.85rem; color: var(--muted); align-items: center; }
.odds-list-meta .prob { color: var(--accent-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.odds-list-meta .category {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fef3c7;
  color: var(--accent-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.odds-list-meta .cat-politics { background: #dbeafe; color: #1e40af; }
.odds-list-meta .cat-sports { background: #dcfce7; color: #14532d; }
.odds-list-meta .cat-crypto { background: #fef3c7; color: #92400e; }
.odds-list-meta .cat-economics { background: #fce7f3; color: #9d174d; }

.pagination { margin: 2rem 0; display: flex; justify-content: space-between; }
.meta { color: var(--muted); font-size: 0.85rem; }
.subtitle { color: var(--muted); margin-bottom: 1.5rem; }

/* ===== NEW SECTIONS ===== */

/* Stat bar */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem; margin: 1.5rem 0; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); overflow: hidden;
}
.stat-bar-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.85rem 0.5rem; border-right: 1px solid var(--line); text-align: center;
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-num { font-size: 1.4rem; font-weight: 800; color: var(--accent-dark); }
.stat-bar-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
@media (max-width: 600px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }

/* Homepage sections */
.home-section { margin: 2rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.section-head h2 { margin: 0; }
.section-link { font-size: 0.9rem; color: var(--accent-dark); font-weight: 600; }

/* Mover badge */
.mover-badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.15rem 0.45rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mover-badge.up { background: #dcfce7; color: #14532d; }
.mover-badge.down { background: #fee2e2; color: #7f1d1d; }

/* Spread badge on homepage */
.spread-badge-home {
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #fef9c3; color: #854d0e;
  font-size: 0.75rem; font-weight: 700;
}

/* Feature grid */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin: 2.5rem 0;
}
.feature-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Subscribe toast */
.subscribe-toast {
  margin-top: 1rem; padding: 0.6rem 1rem;
  background: #dcfce7; color: #14532d; border-radius: var(--radius);
  font-weight: 600; display: inline-block;
}

/* Email CTA block */
.email-cta { margin: 3rem 0; }
.email-cta-inner {
  background: var(--accent-dark); color: #fff;
  border-radius: var(--radius); padding: 2rem 2.5rem;
}
.email-cta-inner h2 { color: #fff; margin-top: 0; }
.email-cta-inner p { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.signup-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup-form input[type="email"] {
  flex: 1 1 220px; padding: 0.6rem 0.85rem;
  border: none; border-radius: var(--radius);
  font-size: 1rem; outline: none;
}
.signup-form .btn {
  background: var(--accent); color: #fff;
  border: none; cursor: pointer; font-size: 1rem;
  padding: 0.6rem 1.1rem; border-radius: var(--radius); font-weight: 700;
}
.signup-form .btn:hover { background: #d97706; }

/* Pro CTA */
.pro-cta { margin: 2rem 0; }
.pro-cta-inner {
  background: var(--fg); color: #fff;
  border-radius: var(--radius); padding: 2rem 2.5rem;
}
.pro-cta-inner h2 { color: #fff; margin-top: 0.5rem; }
.pro-cta-inner p { color: rgba(255,255,255,0.8); }
.pro-badge {
  display: inline-block; padding: 0.2rem 0.65rem;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pro-features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem; margin: 1rem 0 1.5rem;
}
.pro-feature {
  color: rgba(255,255,255,0.85); font-size: 0.9rem;
  background: rgba(255,255,255,0.07); border-radius: 6px; padding: 0.5rem 0.75rem;
}
@media (max-width: 600px) { .pro-features { grid-template-columns: 1fr; } }

/* ===== MOVERS PAGE ===== */
.movers-page { padding-bottom: 3rem; }
.page-header { padding: 1.5rem 0 1rem; }

.window-tabs {
  display: flex; gap: 0.4rem; margin: 1rem 0 1.5rem;
  border-bottom: 2px solid var(--line); padding-bottom: 0;
}
.window-tab {
  padding: 0.45rem 1rem; border-radius: 6px 6px 0 0;
  font-weight: 600; color: var(--muted); border: 1px solid transparent;
  border-bottom: none; text-decoration: none; font-size: 0.9rem;
}
.window-tab:hover { color: var(--fg); text-decoration: none; }
.window-tab.active {
  color: var(--accent-dark); border-color: var(--line);
  background: #fff; border-bottom: 2px solid #fff; margin-bottom: -2px;
}

.empty-state {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; color: var(--muted); margin: 1rem 0;
}

.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 2rem; }
@media (max-width: 700px) { .movers-grid { grid-template-columns: 1fr; } }

.col-head { font-size: 1rem; margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.rising-head { color: var(--good); }
.falling-head { color: var(--bad); }
.col-head .arrow { font-size: 1.1rem; }
.col-empty { color: var(--muted); font-size: 0.9rem; }

.mover-list { list-style: none; padding: 0; margin: 0; }
.mover-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; }
.mover-card a { display: block; padding: 0.75rem 1rem; text-decoration: none; color: var(--fg); }
.mover-card a:hover { background: #fafaf9; border-radius: var(--radius); }
.mover-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.mover-stats { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; font-size: 0.82rem; }
.mover-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.mover-delta.up { color: var(--good); }
.mover-delta.down { color: var(--bad); }
.mover-now { font-weight: 600; color: var(--accent-dark); }
.mover-from { color: var(--muted); }
.mover-vol { color: var(--muted); }
.cat {
  padding: 0.1rem 0.4rem; border-radius: 999px;
  background: #fef3c7; color: var(--accent-dark);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.cat-politics { background: #dbeafe; color: #1e40af; }
.cat-sports { background: #dcfce7; color: #14532d; }
.cat-crypto { background: #fef3c7; color: #92400e; }
.cat-economics { background: #fce7f3; color: #9d174d; }

/* Spread section */
.spreads-section { margin: 2rem 0; }
.spread-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.spread-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; }
.spread-card a { display: block; padding: 0.75rem 1rem; text-decoration: none; color: var(--fg); }
.spread-card a:hover { background: #fafaf9; border-radius: var(--radius); }
.spread-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.spread-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; font-size: 0.82rem; }
.spread-badge { padding: 0.15rem 0.5rem; border-radius: 999px; background: #dcfce7; color: #14532d; font-weight: 700; font-size: 0.78rem; }
.spread-badge.low { background: #fee2e2; color: #7f1d1d; }
.spread-vs { color: var(--muted); }
.spread-pp { font-weight: 700; color: var(--accent-dark); }
.spread-vol { color: var(--muted); }

/* ===== DAILY PAGE ===== */
.daily-page { padding-bottom: 3rem; }
.daily-header { padding: 2rem 0 1.25rem; border-bottom: 2px solid var(--accent); margin-bottom: 2rem; }
.daily-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--accent-dark); margin-bottom: 0.35rem;
}
.daily-header h1 { margin: 0 0 0.25rem; }
.daily-date { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.daily-sub { color: var(--muted); max-width: 60ch; margin: 0; }

.brief-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.brief-section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.brief-section-head h2 { margin: 0; font-size: 1.1rem; }
.brief-icon { font-size: 1.3rem; }
.brief-badge {
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #fef3c7; color: var(--accent-dark);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.brief-empty { color: var(--muted); font-size: 0.9rem; }

.brief-movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .brief-movers-grid { grid-template-columns: 1fr; } }
.brief-col-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.brief-col-label.up { color: var(--good); }
.brief-col-label.down { color: var(--bad); }

.brief-list { list-style: none; padding: 0; margin: 0; }
.brief-list li { border-bottom: 1px solid var(--line); }
.brief-list li:last-child { border-bottom: none; }
.brief-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; gap: 1rem; text-decoration: none; color: var(--fg); font-size: 0.9rem;
}
.brief-row:hover { color: var(--accent-dark); text-decoration: none; }
.brief-row-title { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-row-right { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.brief-rank { color: var(--muted); font-size: 0.8rem; width: 1.5rem; flex-shrink: 0; }

.delta { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.82rem; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.now { font-weight: 600; color: var(--accent-dark); font-size: 0.82rem; }
.vol { color: var(--muted); font-size: 0.82rem; }

.spread-row { flex-wrap: wrap; gap: 0.4rem; }
.spread-platforms { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; }
.sp-high { color: var(--good); font-weight: 700; }
.sp-low { color: var(--bad); font-weight: 700; }
.sp-sep { color: var(--muted); }
.spread-gap { font-weight: 700; color: var(--accent-dark); font-size: 0.82rem; }

.closing-soon { font-size: 0.78rem; color: var(--muted); background: #fef3c7; padding: 0.1rem 0.4rem; border-radius: 4px; }

/* ===== PROSE PAGES (About, Methodology) ===== */
.prose-page { max-width: 65ch; padding: 1.5rem 0 3rem; }
.prose-page h1 { margin-top: 0.5rem; }
.prose-page .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.prose-page ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose-page li { margin-bottom: 0.4rem; }
.prose-page pre {
  background: #1c1917; color: #fef3c7; padding: 0.85rem 1rem;
  border-radius: var(--radius); overflow-x: auto; margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
}
.prose-page code { font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace; }

/* ===== EDGES PAGE ===== */
.edges-page { padding-bottom: 3rem; }

.signal-legend {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; margin: 1.25rem 0 2rem;
}
.legend-card {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem;
}
.legend-icon { font-size: 1.5rem; flex-shrink: 0; }
.legend-card strong { display: block; margin-bottom: 0.25rem; }
.legend-card p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.arb-legend { border-left: 3px solid var(--accent); }
.vel-legend { border-left: 3px solid #6366f1; }
.close-legend { border-left: 3px solid #f59e0b; }
.conv-legend { border-left: 3px solid #10b981; }
@media (max-width: 640px) { .signal-legend { grid-template-columns: 1fr; } }

.edge-section { margin-bottom: 2.5rem; }
.edge-section-head {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem;
}
.edge-section-head h2 { margin: 0; font-size: 1.2rem; }
.edge-icon { font-size: 1.3rem; }
.edge-count {
  margin-left: auto; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); background: var(--line); padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.edge-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.75rem; }
.edge-empty {
  background: #fafaf9; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; color: var(--muted); font-size: 0.9rem;
}

.edge-list { list-style: none; padding: 0; margin: 0; }
.edge-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.edge-card > a { display: block; padding: 0.85rem 1.1rem; text-decoration: none; color: var(--fg); }
.edge-card > a:hover { background: #fafaf9; border-radius: var(--radius); }
.edge-title { font-weight: 600; font-size: 0.93rem; margin-bottom: 0.45rem; }
.edge-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.edge-signals { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* Arbitrage */
.arb-sides { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.arb-high { font-weight: 700; color: var(--good); }
.arb-low { font-weight: 700; color: var(--bad); }
.arb-arrow { color: var(--muted); }
.sig-spread { background: #fef3c7; color: var(--accent-dark); padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.sig-net { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.sig-net.positive { background: #dcfce7; color: #14532d; }
.sig-net.negative { background: #fee2e2; color: #7f1d1d; }
.sig-vol { color: var(--muted); font-size: 0.82rem; }
.sig-vel { background: #ede9fe; color: #4c1d95; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

/* Velocity */
.vel-trend { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.vel-arrow { font-size: 1.1rem; font-weight: 700; }
.vel-arrow.up { color: var(--good); }
.vel-arrow.down { color: var(--bad); }
.vel-delta { font-weight: 700; }
.vel-delta.up { color: var(--good); }
.vel-delta.down { color: var(--bad); }
.vel-now { color: var(--muted); }
.news-link {
  padding: 0.15rem 0.5rem; border-radius: 999px; background: #dbeafe;
  color: #1e40af; font-size: 0.78rem; font-weight: 600;
}

/* Closing urgency */
.close-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.close-urgency { font-weight: 700; color: var(--accent-dark); }
.close-prob { font-weight: 700; color: var(--fg); }
.uncertainty-bar-wrap { width: 80px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.uncertainty-bar { height: 100%; background: var(--accent); border-radius: 3px; }
.uncertainty-label { font-size: 0.78rem; color: var(--muted); }

/* Conviction */
.conv-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.conv-platform { font-weight: 700; text-transform: capitalize; color: var(--fg); }
.conv-prob { font-weight: 700; color: var(--good); }
.conv-vs { color: var(--muted); }
.conv-consensus { font-weight: 600; color: var(--muted); }
.conv-gap { font-weight: 700; color: var(--good); font-size: 0.82rem;
  background: #dcfce7; padding: 0.15rem 0.4rem; border-radius: 999px; }

/* Kelly section */
.kelly-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 2rem 0;
}
.kelly-calculator, .kelly-mini { margin-top: 1rem; }
.kelly-inputs, .kelly-mini-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
.kelly-inputs label, .kelly-mini-inputs label { font-weight: 600; font-size: 0.9rem; display: block; }
.input-wrap { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
.input-wrap input[type=range] { flex: 1; accent-color: var(--accent); }
.input-val { font-weight: 700; min-width: 3rem; text-align: right; }
.kelly-result, .kelly-mini-result {
  background: #fafaf9; border-radius: var(--radius); padding: 1rem; font-size: 0.9rem;
}
.kelly-mini-result { padding: 0.6rem 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.kelly-line { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.kelly-line:last-of-type { border: none; }
.kelly-label { color: var(--muted); font-size: 0.85rem; }
.kelly-num { font-weight: 700; font-size: 1rem; }
.kelly-note { color: var(--muted); font-size: 0.82rem; margin: 0.75rem 0 0; }
@media (max-width: 600px) { .kelly-inputs, .kelly-mini-inputs { grid-template-columns: 1fr; } }

/* Edge badges on market pages */
.edge-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.edge-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; text-decoration: none;
}
.arb-badge { background: #fef9c3; color: #854d0e; border: 1px solid #fcd34d; }
.urgency-badge { background: #fef3c7; color: var(--accent-dark); border: 1px solid #fcd34d; }
.conv-badge { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }

/* Context links on market page */
.context-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.context-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.85rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 600;
  color: var(--fg); text-decoration: none; background: #fff;
}
.context-link:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* Kelly mini on market page */
.kelly-mini { background: #fafaf9; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
