﻿/* â”€â”€ Reset & Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* palette */
  --bg:         #f5f6f8;
  --surface:    #ffffff;
  --border:     #e5e7eb;
  --border-mid: #d1d5db;
  --text:       #111827;
  --muted:      #6b7280;
  --muted-lt:   #9ca3af;

  /* brand */
  --brand:      #4f46e5;
  --brand-lt:   #eef2ff;
  --green:      #16a34a;
  --green-lt:   #dcfce7;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --amber:      #d97706;

  /* layout */
  --max:        1180px;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 12px rgba(0,0,0,.08);

  /* type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { display: flex; align-items: flex-end; gap: 0.55rem; flex-shrink: 0; text-decoration: none; }

.logo-icon { width: 46px; height: 34px; display: block; flex-shrink: 0; }

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.18rem;
  justify-content: flex-end;
}

.logo-name {
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-form {
  flex: 1; max-width: 500px; margin: 0 auto;
  position: relative; display: flex; align-items: center;
}

.search-form input {
  width: 100%; height: 36px;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 0 2.5rem 0 2.4rem;
  font-size: 0.875rem; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.search-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.search-icon {
  position: absolute; left: 0.65rem;
  width: 15px; height: 15px;
  color: var(--muted-lt); pointer-events: none;
}

.search-form kbd {
  position: absolute; right: 0.65rem;
  font-size: 0.7rem; font-family: var(--font);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 4px; padding: 1px 5px;
  color: var(--muted); pointer-events: none;
}

.header-nav { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.header-nav a {
  font-size: 0.875rem; color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.header-nav a:hover { color: var(--text); background: var(--bg); }
.btn-outline { border: 1px solid var(--border-mid) !important; color: var(--text) !important; }
.btn-primary { background: var(--brand) !important; color: #fff !important; font-weight: 600 !important; }
.btn-primary:hover { opacity: 0.88; background: var(--brand) !important; }

.nav-link { color: var(--muted); }
.nav-link.nav-active {
  color: var(--text) !important;
  font-weight: 600;
  background: var(--bg);
  position: relative;
}
.nav-link.nav-active::after {
  content: '';
  position: absolute; bottom: -2px; left: 0.75rem; right: 0.75rem;
  height: 2px; border-radius: 2px;
  background: var(--brand);
}



/* â”€â”€ Main layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.page-main { flex: 1; padding-bottom: 4rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* â”€â”€ Featured card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.featured-wrap {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  padding: 2rem 1.25rem;
  margin-bottom: 2rem;
}

.featured-card {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
}

.fc-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  margin-bottom: 0.85rem;
  background: rgba(255,255,255,.15); color: #fff;
}

.fc-title {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 700; line-height: 1.3; color: #fff;
  margin-bottom: 1.5rem; letter-spacing: -0.02em;
}

.fc-options { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }

.fc-opt {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 110px; padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}

.fc-opt:hover { opacity: 0.88; }
.opt-yes { background: rgba(22,163,74,.2);  color: #4ade80; border: 1px solid rgba(22,163,74,.4); }
.opt-no  { background: rgba(220,38,38,.2);  color: #f87171; border: 1px solid rgba(220,38,38,.4); }
.opt-label { font-size: 0.75rem; opacity: 0.8; }
.opt-pct   { font-size: 1.25rem; font-weight: 800; }

.fc-meta { display: flex; gap: 0.6rem; }

.vol-pill, .end-pill {
  font-size: 0.78rem; padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
}

.fc-right {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.fc-big-hist .histogram-wrap { width: 100%; }
.fc-big-hist .hist-svg { width: 100%; height: 140px; display: block; }

.fc-hist-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.75rem;
}

.fc-sim-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.hist-prob {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  display: flex; align-items: baseline; gap: 0.5rem;
}

.hist-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .05em;
}

.live-dot {
  width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.chg { font-size: 0.78rem; font-weight: 600; }
.chg.up   { color: var(--green); }
.chg.dn   { color: var(--red); }
.chg.flat { color: var(--muted); }

/* â”€â”€ Section header + tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.forecasts-section { padding-top: 1.5rem; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem;
}

.section-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }

.section-tabs {
  display: flex; gap: 0.25rem;
  overflow-x: auto; scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 0.3rem 0.85rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s; white-space: nowrap;
}

.tab:hover { background: var(--border); color: var(--text); }
.tab.active { background: var(--border); color: var(--text); font-weight: 600; }

/* â”€â”€ Forecast card grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.fc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  cursor: pointer;
}

.fc-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* ── Card meta row ───────────────────────────────────────────────────────── */

.fcc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fcc-badge {
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 0.18rem 0.55rem; border-radius: 20px;
}

.badge-economy    { background: #fef9c3; color: #854d0e; }
.badge-technology { background: #ede9fe; color: #5b21b6; }
.badge-geopolitics{ background: #fee2e2; color: #991b1b; }
.badge-science    { background: #dbeafe; color: #1e40af; }
.badge-climate    { background: #dcfce7; color: #166534; }
.badge-culture    { background: #ffedd5; color: #9a3412; }

/* Sport badges */
.badge-nba     { background: #c8102e; color: #fff; }
.badge-nfl     { background: #013369; color: #fff; }
.badge-mlb     { background: #002d72; color: #fff; }
.badge-nhl     { background: #0033a0; color: #fff; }
.badge-cricket { background: #006400; color: #fff; }
.badge-default { background: #e5e7eb; color: #374151; }

/* External link in card footer */
.fcc-ext-link {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.fcc-ext-link:hover { color: var(--accent); text-decoration: underline; }

.fcc-vol-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Card title ──────────────────────────────────────────────────────────── */

.fcc-title {
  font-size: 0.875rem; font-weight: 600; line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Probability display ─────────────────────────────────────────────────── */

.fcc-team-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: -0.5rem;
}

.fcc-probs {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.fcc-side { display: flex; flex-direction: column; gap: 0.05rem; }
.fcc-side-yes { align-items: flex-end; }
.fcc-side-yes .fcc-pct-row { align-items: flex-end; }

.fcc-pct-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fcc-pct {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fcc-pct-no { color: #dc2626; }

.fcc-side-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.fcc-mkt-line {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: var(--muted-lt);
}
.fcc-mkt-at { /* at-run prob */ }
.fcc-mkt-arrow { font-size: 0.6rem; color: var(--muted-lt); }
.fcc-mkt-live  { color: var(--muted); font-weight: 600; }

/* Edge badge (centered between probs and histogram) */
/* ── Edge label ───────────────────────────────────────────────────────── */
.fcc-edge-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  align-self: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── LIVE badge (in-progress games) ─────────────────────────────────────── */
.fcc-live-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dc2626;
}
.fcc-live-badge::first-letter {
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ── Resolution checkmark ───────────────────────────────────────────────── */
.fcc-winner {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── Title-as-picker (market selector) ────────────────────────────────────── */

.fcc-title-dd {
  position: relative;
}

.fcc-title-dd--multi {
  cursor: pointer;
}

.fcc-title-dd--multi .fcc-title {
  padding-right: 1rem;        /* room for caret */
}

.fcc-title-dd--multi:hover .fcc-title {
  color: var(--brand);
}

.fcc-title-caret {
  position: absolute;
  right: 0; top: 0.15rem;
  font-size: 0.85rem;
  color: var(--text);
  pointer-events: none;
}

.fcc-title-menu {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: 100%;
  margin-top: 2px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  list-style: none;
  padding: 0.25rem 0;
  max-height: 16rem;
  overflow-y: auto;
}

.fcc-title-menu.fcc-tm-open {
  display: block;
}

.fcc-title-menu li {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
  color: var(--fg);
}

.fcc-title-menu li:hover {
  background: var(--hover, rgba(255,255,255,.06));
}

.fcc-title-menu li.fcc-tm-active {
  color: var(--brand);
  font-weight: 700;
}

/* ── Distribution chart ──────────────────────────────────────────────────── */

.dist-wrap { margin: 0.1rem 0; }

.dist-svg { width: 100%; height: auto; display: block; overflow: visible; }

.histogram-wrap { position: relative; }
.hist-label { position: absolute; bottom: 4px; right: 4px; font-size: 0.65rem; color: var(--muted); }

/* ── Card footer ─────────────────────────────────────────────────────────── */

.fcc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: auto;
}

.fcc-sim { color: var(--muted); white-space: nowrap; }

/* ── Page-level odds toggle ─────────────────────────────────────────────── */
.section-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}


.fcc-report {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.72rem;
  white-space: nowrap;
}
.fcc-report:hover { text-decoration: underline; }


/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); }

.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted);
}

/* â”€â”€ Markdown & 404 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.markdown-body { max-width: var(--max); margin: 2rem auto; padding: 0 1.25rem; }

.markdown-body article {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  max-width: 680px; margin-bottom: 1.5rem;
}

.markdown-body h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.markdown-body h2 { font-size: 1.3rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.markdown-body h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.markdown-body p  { margin-bottom: 1rem; color: #374151; }
.markdown-body a  { color: var(--brand); text-decoration: underline; }
.markdown-body ul, .markdown-body ol { margin: 0 0 1rem 1.5rem; }

.back-link { display: inline-block; margin-top: .5rem; color: var(--brand); font-size: .85rem; }

/* ── Report viewer (iframe wrapper) ─────────────────────────────────────── */
.report-viewer-wrap {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  height: calc(100vh - var(--header-h, 56px) - 3.25rem);
  min-height: 600px;
}
.report-viewer-header {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.report-viewer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.report-iframe {
  flex: 1;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.error-page { text-align: center; padding: 6rem 0; }
.error-page h1 { font-size: 6rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: .75rem; }
.error-page p  { color: var(--muted); margin-bottom: 1.5rem; }
.error-page a  { color: var(--brand); font-weight: 600; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .logo-words { display: none; }
  .header-nav .btn-outline { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .forecast-grid { grid-template-columns: 1fr; }
}

/* ── Auth controls ───────────────────────────────────────────────────────── */

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  transition: opacity .15s;
}

.btn-create:hover,
.header-nav a.btn-create:hover { opacity: 0.88; background: var(--brand); }

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-mid);
  transition: border-color .15s;
}

.avatar-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-mid);
}

.user-menu:hover .avatar,
.user-menu:hover .avatar-initial { border-color: var(--brand); }

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  min-width: 180px;
  background: transparent;
  z-index: 300;
}

.user-dropdown-inner {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown { display: block; }

.user-name {
  display: block;
  padding: 0.65rem 0.85rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--border);
}

.dropdown-item {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background .12s, color .12s;
}

.dropdown-item:hover { background: var(--bg); color: var(--text); }
.logout-item { color: var(--red); }
.logout-item:hover { background: var(--red-lt); color: var(--red); }

/* ── Account / MCP tokens ───────────────────────────────────────────────── */

.account-page {
  width: 100%;
  padding: 2rem 1.25rem 2.5rem;
}

.account-shell {
  max-width: 980px;
  margin: 0 auto;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.account-header h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.account-sub,
.account-copy,
.account-help,
.account-user-email {
  color: var(--muted);
}

.account-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.9rem;
}

.account-user-name {
  font-weight: 700;
  color: var(--text);
}

.account-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.account-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fcfcfd;
}

.account-panel h2 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.account-panel-docs {
  margin-top: 1rem;
}

.account-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.account-doc-block + .account-doc-block {
  margin-top: 1rem;
}

.account-doc-block h3 {
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

.account-list {
  margin: 0.65rem 0 0 1.15rem;
  color: var(--text);
}

.account-list li + li {
  margin-top: 0.35rem;
}

.account-list-tight {
  margin-top: 0.85rem;
}

.account-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.account-kv dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.account-kv dd {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.account-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.account-alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.account-alert-success {
  background: var(--green-lt);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.account-alert-error {
  background: var(--red-lt);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.account-form,
.account-form-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.account-select,
.token-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 0.8rem;
  color: var(--text);
}

.token-reveal {
  margin: 1rem 0 1.2rem;
}

.token-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.token-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.token-copy-btn,
.account-danger-btn {
  white-space: nowrap;
}

.token-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.token-meta dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.token-meta dd {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.account-empty {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--surface);
}

.account-code-block {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #111827;
  overflow: hidden;
}

.account-code-title {
  padding: 0.45rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: #1f2937;
}

.account-code-block pre {
  margin: 0;
  padding: 0.85rem 0.9rem;
  color: #f8fafc;
  font-size: 0.82rem;
  overflow-x: auto;
}

@media (max-width: 860px) {
  .account-header,
  .account-user-meta {
    align-items: flex-start;
  }

  .account-header {
    flex-direction: column;
  }

  .account-doc-grid,
  .account-kv {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .token-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .token-row {
    flex-direction: column;
  }
}

/* ── Toast banner ────────────────────────────────────────────────────────── */

.toast-banner {
  background: var(--green-lt);
  color: var(--green);
  border-bottom: 1px solid #bbf7d0;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Create form ─────────────────────────────────────────────────────────── */

.create-section { max-width: 680px; padding-top: 2.5rem; padding-bottom: 4rem; }

.create-header { margin-bottom: 2rem; }

.create-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}

.create-sub { font-size: 0.875rem; color: var(--muted); }

.create-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--red); }

.field-hint { font-size: 0.75rem; color: var(--muted); }

.field input[type="text"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
  background: var(--surface);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-row input[type="range"] { flex: 1; accent-color: var(--brand); }

.range-display {
  min-width: 3rem;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.btn-cancel {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s, color .15s;
}

.btn-cancel:hover { background: var(--bg); color: var(--text); }

.btn-submit {
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity .15s;
}

.btn-submit:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .create-form { padding: 1.25rem; }
}

/* ── Auth / invite-code page ─────────────────────────────────────────────── */

.auth-section {
  display: flex;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-logo { margin-bottom: 1.25rem; }

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.auth-error {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-lt);
  color: var(--red);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: left;
  margin-bottom: 1.25rem;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.auth-submit { width: 100%; justify-content: center; font-size: 0.925rem; padding: 0.65rem; }

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.825rem;
  color: var(--muted);
}

.auth-footer a { color: var(--brand); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Featured card prob pair ─────────────────────────────────────────────── */

.fc-prob-pair {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.fc-prob-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fc-prob-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}

.fc-prob-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.fc-prob-mkt { color: rgba(255,255,255,.65) !important; font-size: 1.3rem !important; }

.fc-prob-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.fc-gap-badge {
  align-self: center;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.6rem !important;
}

/* ── Gap badges ──────────────────────────────────────────────────────────── */

.gap-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.gap-above {
  background: var(--brand-lt);
  color: var(--brand);
  border: 1px solid #c7d2fe;
}

.gap-below {
  background: var(--red-lt);
  color: var(--red);
  border: 1px solid #fecaca;
}

.gap-flat {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* dark context (featured card) */
.fc-gap-badge.gap-above { background: rgba(99,102,241,.25); color: #a5b4fc; border-color: rgba(99,102,241,.4); }
.fc-gap-badge.gap-below { background: rgba(220,38,38,.25);  color: #fca5a5; border-color: rgba(220,38,38,.4); }
.fc-gap-badge.gap-flat  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.2); }

/* ── Dual-bar partial ────────────────────────────────────────────────────── */

.dual-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.db-row {
  display: grid;
  grid-template-columns: 64px 1fr 38px;
  align-items: center;
  gap: 0.5rem;
}

.db-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.db-label.db-research { color: var(--brand); }
.db-label.db-market   { color: var(--muted); }

.db-track {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.db-fill {
  height: 100%;
  border-radius: 20px;
  transition: width .4s ease;
}

.db-fill-market {
  background: var(--muted-lt);
}

.db-pct {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.db-pct-market { color: var(--muted); }

.db-gap-row {
  display: flex;
  margin-top: 0.15rem;
}

/* ── Section header layout ───────────────────────────────────────────────── */

.section-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ── Open / Closed segmented toggle ─────────────────────────────────────── */

.status-toggle {
  display: flex;
  width: fit-content;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.stog {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.stog:hover { color: var(--text); }

.stog-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* When open tab is active, animate the dot */
.stog-active .open-dot,
.etag-active .open-dot {
  animation: pulse 1.8s infinite;
}

/* ── Resolved badge ──────────────────────────────────────────────────────── */

.fcc-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.resolved-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
}

.resolved-yes { background: var(--green-lt); color: var(--green); }
.resolved-no  { background: var(--red-lt);   color: var(--red);   }

.hidden { display: none !important; }

/* ── Ingest wizard ─────────────────────────────────────────────────────── */
.ingest-section { max-width: 720px; padding-top: 2rem; padding-bottom: 4rem; }

.ingest-header { margin-bottom: 1.5rem; }

/* Step progress */
.ingest-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.ingest-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
}
.ingest-step.active { opacity: 1; }
.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ingest-step.active .step-num {
  background: var(--brand);
  color: #fff;
}
.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ingest-step.active .step-label { color: var(--text); }
.ingest-step-sep {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.75rem;
  min-width: 2rem;
}

/* Main card */
.ingest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.ingest-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.event-confirm-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}
.event-confirm-meta {
  font-size: .8rem;
  color: var(--text-muted, #888);
}

/* Mode toggle */
.ingest-mode-toggle {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.mode-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mode-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.mode-btn:not(.active):hover {
  border-color: var(--muted);
  color: var(--text);
}

/* Panels */
.ingest-panel.hidden { display: none; }

.ingest-input-row {
  display: flex;
  gap: 0.5rem;
}
.ingest-input-row input {
  flex: 1;
  padding: 0.55rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.ingest-input-row input:focus { border-color: var(--brand); }

.btn-ingest-action {
  padding: 0.55rem 1.125rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-ingest-action:hover { opacity: 0.88; }

.ingest-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Slug type radios */
.slug-type-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}
.slug-radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text);
  cursor: pointer;
}
.slug-radio input { cursor: pointer; accent-color: var(--brand); }

/* Status */
.ingest-status {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.ingest-status.hidden { display: none; }
.ingest-status.error  { color: var(--red); border-color: var(--red-lt); }

/* Results */
.ingest-results { display: flex; flex-direction: column; gap: 1rem; }

.results-summary {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

/* Event grouping */
.result-event {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.result-event-header {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}
.result-event-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.result-event-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text);
}
.result-event-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tag-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: var(--brand-lt);
  color: var(--brand);
}

.result-markets { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* Market card */
.market-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.875rem 1rem;
  background: var(--bg);
  transition: border-color 0.15s;
}
.market-card.selected { border-color: var(--brand); background: rgba(99,102,241,.04); }

.market-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.market-card-question {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* Open / closed badges */
.market-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.market-badge.open   { background: var(--green-lt); color: var(--green); }
.market-badge.closed { background: var(--border);   color: var(--muted); }

/* Outcomes row */
.market-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}
.outcome-chip {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.outcome-chip em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

/* Footer row */
.market-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.market-end-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.market-select-btn {
  padding: 0.35rem 0.875rem;
  border-radius: 7px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.market-select-btn:hover,
.market-select-btn.selected {
  background: var(--brand);
  color: #fff;
}

/* Continue bar */
.ingest-continue {
  margin-top: 1.5rem;
  position: sticky;
  bottom: 1.5rem;
}
.ingest-continue.hidden { display: none; }
.ingest-continue-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.selected-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text);
  min-width: 0;
}
.selected-check {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.selected-summary #selected-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Ingest step: done state ─────────────────────────────────────────────── */
.ingest-step.done { opacity: 1; }
.ingest-step.done .step-num {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.ingest-step.done .step-label { color: var(--green); }

/* ── Configure page ──────────────────────────────────────────────────────── */
.cfg-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.cfg-section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 .6rem;
}

/* Group rows */
.cfg-group-row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cfg-group-row:hover { border-color: var(--brand); }
.cfg-group-primary {
  border-color: var(--brand);
  background: var(--brand-lt, #ede9fe);
  cursor: default;
}
.cfg-group-check-col {
  flex-shrink: 0;
  padding-top: .15rem;
}
.cfg-group-cb { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.cfg-group-check-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}
.cfg-group-body { flex: 1 1 0; min-width: 0; }
.cfg-group-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.cfg-primary-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  border-radius: 20px;
  padding: .1rem .45rem;
}
.cls-shape-badge {
  display: inline-block;
  margin-top: .5rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
}
.cls-reasoning {
  margin-top: .75rem;
  font-size: .84rem;
  color: var(--text-muted, #aaa);
  line-height: 1.5;
}
.cfg-group-plugin {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cfg-group-goal {
  font-size: .78rem;
  color: var(--text-muted, #888);
  margin-bottom: .3rem;
  font-style: italic;
}
.cfg-group-questions {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: disc;
}
.cfg-group-questions li {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.cfg-group-cost-col {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: .1rem;
  white-space: nowrap;
}

/* Footer */
.cfg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0;
}
.cfg-cost {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.cfg-cost-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cfg-cost-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.cfg-cost-breakdown {
  font-size: .75rem;
  color: var(--muted);
}
.cfg-raw-json {
  margin-top: 1.25rem;
}
.cfg-raw-json summary {
  cursor: pointer;
  font-size: .78rem;
  color: var(--text-muted, #888);
  user-select: none;
}
.cfg-raw-json pre {
  margin-top: .6rem;
  padding: .85rem 1rem;
  background: var(--surface-2, #111);
  color: var(--text-muted, #ccc);
  border-radius: 6px;
  font-size: .72rem;
  overflow-x: auto;
  white-space: pre;
  max-height: 420px;
  overflow-y: auto;
}

/* Spinner (shared) */
.normalise-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
}
.normalise-loading-label { font-size: .9rem; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* Error */
.normalise-error {
  padding: 1rem 1.25rem;
  background: var(--red-lt, #fff0f0);
  border: 1px solid var(--red, #e53e3e);
  border-radius: 8px;
  color: var(--red, #e53e3e);
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* Event header */
.norm-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.norm-event-header-text { flex: 1 1 0; min-width: 0; }
.norm-event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.norm-event-meta {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}
.norm-family-badge {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .25rem .6rem;
  border-radius: 20px;
  background: var(--brand-lt, #ede9fe);
  color: var(--brand);
  white-space: nowrap;
}
.norm-family-sports_market_family   { background: #e8f5e9; color: #2e7d32; }
.norm-family-binary_opposition_family { background: #ede9fe; color: var(--brand); }
.norm-family-path_extreme_family    { background: #fff3e0; color: #e65100; }
.norm-family-categorical_multi_outcome { background: #e3f2fd; color: #1565c0; }
.norm-family-scalar_threshold_family { background: #f3e5f5; color: #6a1b9a; }

/* Group cards */
.norm-group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.norm-group-primary { border-color: var(--brand); }
.norm-group-inner { padding: 1.25rem 1.5rem; }

.norm-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}
.norm-group-label {
  font-size: .93rem;
  font-weight: 700;
  color: var(--text);
  flex: 1 1 0;
  min-width: 0;
}
.norm-group-header-right {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.norm-scale-type-pill, .norm-scale-unit-pill, .norm-market-count {
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: 20px;
  white-space: nowrap;
}
.norm-scale-type-pill { background: var(--brand-lt, #ede9fe); color: var(--brand); }
.norm-scale-unit-pill { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.norm-market-count    { color: var(--muted); }

.norm-scale-direction {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .75rem;
  line-height: 1.45;
}

/* Anchors */
.norm-scale-anchors {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .9rem;
  margin-bottom: .9rem;
}
.norm-anchor {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1 1 0;
}
.norm-anchor.mid { align-items: center; text-align: center; }
.norm-anchor.high { align-items: flex-end; text-align: right; }
.norm-anchor-val {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.norm-anchor-label {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Primary note */
.norm-primary-note {
  font-size: .78rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: .75rem;
}

/* Markets list */
.norm-markets-list { display: flex; flex-direction: column; gap: .4rem; }
.norm-market {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid transparent;
}
.norm-market-selected {
  border-color: var(--brand);
  background: var(--brand-lt, #ede9fe);
}
.norm-market-left {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1 1 0;
  min-width: 0;
}
.norm-market-pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.norm-market-pip.selected { background: var(--brand); }
.norm-market-question {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.3;
}
.norm-market-selected .norm-market-question { font-weight: 600; }
.norm-market-right {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.norm-mtype-badge {
  font-size: .65rem;
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.norm-price-chip {
  font-size: .72rem;
  padding: .18rem .5rem;
  border-radius: 20px;
  white-space: nowrap;
}
.norm-price-chip em { font-style: normal; font-weight: 700; }
.norm-price-yes { background: var(--green-lt, #f0fdf4); color: var(--green, #16a34a); }
.norm-price-no  { background: var(--red-lt,  #fff0f0);  color: var(--red,   #e53e3e); }

/* Notes */
.norm-notes { margin-top: .85rem; display: flex; flex-direction: column; gap: .3rem; }
.norm-note {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
  padding-left: .15rem;
}

/* Extra groups */
.norm-extra-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin: .25rem 0 .75rem;
}
.norm-extra-hint { font-size: .75rem; font-weight: 400; color: var(--muted); }
.norm-extra-check {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.norm-extra-check input { cursor: pointer; }

/* Unsupported */
.norm-unsupported-heading {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  margin: .5rem 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.norm-unsupported-list { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.norm-unsupported-item {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .75rem;
  color: var(--muted);
}
.norm-unsupported-id { font-weight: 600; }

/* Continue row */
.norm-continue-row { margin-top: 1.5rem; display: flex; justify-content: flex-end; }


/* ── Top progress bar ───────────────────────────────────────────────────── */
#nprogress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease, opacity .4s ease;
  opacity: 0;
  pointer-events: none;
}
#nprogress.loading {
  opacity: 1;
  animation: nprog 1.8s ease-in-out infinite;
}
@keyframes nprog {
  0%   { transform: scaleX(0);   opacity: 1; }
  70%  { transform: scaleX(0.85); opacity: 1; }
  100% { transform: scaleX(0.95); opacity: 1; }
}
#nprogress.done {
  transform: scaleX(1);
  opacity: 0;
  transition: transform .15s ease, opacity .3s ease .1s;
}

/* ── Events page ─────────────────────────────────────────────────────────── */

/* Two-column layout: sidebar + main */
.events-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 1.5rem;
}

@media (max-width: 700px) {
  .events-layout { grid-template-columns: 1fr; }
  .events-sidebar { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .events-sidebar-title { width: 100%; }
}

/* Sidebar */
.events-sidebar {
  position: sticky;
  top: calc(var(--header-h, 56px) + 1rem);
}

.events-sidebar-title {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  border-top: 1px solid var(--border); padding-top: 0.75rem;
}

.events-tag-nav {
  display: flex; flex-direction: column; gap: 1px;
}

.etag-group { margin-top: 0.25rem; }

.etag-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 700; color: var(--text);
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: background .12s, color .12s;
}

.etag-group-header:hover { background: var(--bg); }

.etag-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  transition: background .12s, color .12s;
}

.etag-child { padding-left: 1.2rem; }

.etag-item:hover { background: var(--bg); color: var(--text); }

.etag-active {
  background: var(--border) !important;
  color: var(--text) !important;
  font-weight: 600;
}

.etag-count {
  font-size: 0.7rem; font-weight: 600;
  background: rgba(0,0,0,.06); border-radius: 20px;
  padding: 0.1rem 0.45rem; min-width: 1.5rem; text-align: center;
}

.etag-active .etag-count { background: rgba(255,255,255,.15); }

/* Main content area */
.events-main { min-width: 0; }

.events-count {
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
  margin-left: 0.5rem;
}

/* Events search bar */
.events-search { margin-bottom: 1rem; }

.events-search-inner {
  position: relative; display: flex; align-items: center;
}

.events-search-icon {
  position: absolute; left: 0.55rem;
  width: 13px; height: 13px; color: var(--muted); pointer-events: none;
}

.events-search-input {
  width: 100%; font-size: 0.8rem; font-family: var(--font);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.38rem 1.8rem 0.38rem 1.8rem;
  transition: border-color .15s, box-shadow .15s;
}

.events-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.events-search-clear {
  position: absolute; right: 0.55rem;
  font-size: 0.7rem; color: var(--muted);
  line-height: 1; cursor: pointer;
  transition: color .12s;
}
.events-search-clear:hover { color: var(--text); }

.events-sort { display: flex; align-items: center; gap: 0.4rem; }

.events-sort-label {
  font-size: 0.78rem; color: var(--muted); font-weight: 500;
}

.events-sort-select {
  font-size: 0.8rem; font-family: var(--font);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  padding: 0.28rem 0.6rem; cursor: pointer;
}

.events-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; border-radius: var(--radius);
  padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.875rem;
}

.events-empty {
  text-align: center; color: var(--muted);
  padding: 4rem 1rem; font-size: 0.9rem;
}
.events-empty code {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.85em;
}

.events-pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.research-cta {
  margin-bottom: 1.25rem;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--brand);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
}
.research-cta a {
  font-weight: 700;
  text-decoration: underline;
  color: var(--brand);
}
.research-cta a:hover { opacity: 0.8; }


.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}

.game-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* Header row: badge + date */
.gc-header {
  display: flex; align-items: center; justify-content: space-between;
}

.gc-badge {
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 0.18rem 0.55rem; border-radius: 20px;
}

.gc-badge--nba  { background: #fde8cc; color: #c25a00; }
.gc-badge--nfl  { background: #d4edda; color: #1a5c2e; }
.gc-badge--mlb  { background: #d1e7ff; color: #0a3d7a; }
.gc-badge--nhl  { background: #e8d5f5; color: #5a1a7a; }
.gc-badge--cricket         { background: #d4edda; color: #14532d; }
.gc-badge--earnings_eps_beat { background: #fef9c3; color: #854d0e; }
.gc-badge--default         { background: #e5e7eb; color: #374151; }
.gc-badge--      { background: #eef; color: #445; }  /* fallback */

.gc-date {
  font-size: 0.7rem; color: var(--muted); font-weight: 500;
}

/* Title */
.gc-title {
  font-size: 0.875rem; font-weight: 600; line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Moneyline odds */
.gc-odds {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
}

.gc-odds-side {
  display: flex; flex-direction: column; align-items: flex-start;
  flex: 1; min-width: 0;
}

.gc-odds-side--right { align-items: flex-end; text-align: right; }

.gc-odds-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%;
}

.gc-odds-pct {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}

.gc-odds-yes { color: #16a34a; }
.gc-odds-no  { color: #dc2626; }

.gc-odds-divider {
  width: 1px; height: 2rem; background: var(--border); flex-shrink: 0;
}

/* Spread */
.gc-spread {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem;
}

.gc-spread-team {
  color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 9rem;
}

.gc-spread-val {
  font-weight: 700; color: var(--muted);
  white-space: nowrap;
}

.gc-spread-pct {
  color: var(--brand); font-weight: 600;
  font-size: 0.72rem;
  margin-left: 0.1rem;
}

/* Footer row */
.gc-footer {
  display: flex; flex-direction: column;
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
  gap: 0.25rem;
}

.gc-footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}

.gc-footer-meta {
  display: flex; gap: 0.5rem; align-items: center; min-width: 0;
}

.gc-footer-dates {
  display: flex; gap: 0.6rem; align-items: center;
}

.gc-date-meta {
  font-size: 0.68rem; color: var(--muted-lt);
}

.gc-liq, .gc-vol {
  font-size: 0.72rem; color: var(--muted); font-weight: 500;
}

.gc-vol { color: var(--muted-lt); }

.gc-analyze {
  font-size: 0.78rem; font-weight: 600; color: var(--brand);
  transition: opacity .15s;
}

.gc-analyze:hover { opacity: 0.7; }

/* ── Boost stepper ────────────────────────────────────────────────────────── */

.gc-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  overflow: hidden;
  height: 24px;
}

.gc-step-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.55rem;
  cursor: pointer;
  transition: background .12s, color .12s;
  line-height: 1;
  padding: 0;
}

.gc-step-btn:hover:not(:disabled) {
  background: var(--surface);
  color: var(--brand);
}

.gc-step-btn:disabled,
.gc-step-btn.gc-boost-disabled {
  opacity: 0.35;
  cursor: default;
}

.gc-step-count {
  min-width: 20px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 24px;
  padding: 0 0.25rem;
}

.gc-step-count.gc-step-active {
  color: var(--brand);
}

.gc-boost-your {
  color: var(--brand) !important;
}

/* ── Simulation status badges ────────────────────────────────────────────── */

.gc-sim-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  white-space: nowrap;
}

.gc-sim-running {
  background: rgba(234, 179, 8, 0.15);
  color: #b8860b;
}
@keyframes gc-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.gc-sim-running { animation: gc-pulse 2s ease-in-out infinite; }

.gc-sim-ready {
  background: rgba(34, 197, 94, 0.13);
  color: #16a34a;
  text-decoration: none;
}
.gc-sim-ready:hover {
  background: rgba(34, 197, 94, 0.22);
  text-decoration: none;
}

.gc-sim-queued {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

/* ── Sidebar credits ─────────────────────────────────────────────────────── */

.sidebar-credits {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.sidebar-credits-label {
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}

.sidebar-credits-val {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
}

.pg-btn {
  font-size: 0.875rem; font-weight: 600;
  color: var(--brand); padding: 0.4rem 1rem;
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.pg-btn:hover { background: var(--brand); color: #fff; }

.pg-info {
  font-size: 0.82rem; color: var(--muted);
}

/* ── Research page ─────────────────────────────────────────────────────── */

.rc-page { padding-top: 2rem; padding-bottom: 3rem; }

.rc-page-header {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.rc-page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0; }
.rc-page-sub   { font-size: 0.85rem; color: var(--muted); }

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.rc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: border-color .15s, box-shadow .15s;
}
.rc-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.rc-card-header { display: flex; align-items: center; justify-content: space-between; }

.rc-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .07em;
  padding: 0.15rem 0.45rem; border-radius: 3px;
  background: var(--brand); color: #fff;
  text-transform: uppercase;
}
.rc-badge-nba    { background: #c8102e; }
.rc-badge-nfl    { background: #013369; }
.rc-badge-mlb    { background: #002d72; }
.rc-badge-nhl    { background: #000; }
.rc-badge-cricket { background: #006400; }

.rc-game-date { font-size: 0.75rem; color: var(--muted); }

.rc-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin: 0; line-height: 1.35;
}

.rc-hist-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.rc-hist-svg  {
  width: 100%; height: 52px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rc-hist-labels {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--muted);
}

.rc-stats {
  display: flex; gap: 1.1rem;
}
.rc-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.rc-stat-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.rc-stat-val   { font-size: 1rem; font-weight: 700; color: var(--text); }
.rc-edge-pos   { color: #22c55e; }
.rc-edge-neg   { color: #f87171; }

.rc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.rc-run-date { font-size: 0.72rem; color: var(--muted); }
.rc-links    { display: flex; gap: 0.75rem; }
.rc-link-report, .rc-link-ext {
  font-size: 0.78rem; font-weight: 600;
  color: var(--brand);
  transition: opacity .15s;
}
.rc-link-report:hover, .rc-link-ext:hover { opacity: 0.75; }
.rc-link-ext { color: var(--muted); }

.rc-empty {
  color: var(--muted); font-size: 0.9rem; padding: 2rem 0;
}

/* ── Scorecard page ────────────────────────────────────────────────────── */

.sc-page { max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 4rem; }

.sc-hero { text-align: center; margin-bottom: 1.5rem; }
.sc-hero h1 { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.sc-subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* Filter pills */
.sc-filters { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.sc-pill {
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; transition: all .15s;
}
.sc-pill:hover { border-color: var(--brand); color: var(--brand); }
.sc-pill--active { background: var(--brand); color: #fff; border-color: var(--brand); }
.sc-pill--child  { margin-left: 0.5rem; font-size: 0.8rem; opacity: 0.85; }
.sc-pill--toggle { cursor: pointer; font-family: inherit; }

/* ── Research page two-row filter ────────────────────────────────── */
.rsch-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
}
.rsch-filters--sub {
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt, #f9fafb);
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
}
.rsch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border, #d1d5db);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text, #374151);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rsch-pill:hover { border-color: var(--brand); color: var(--brand); }
.rsch-pill--active { background: var(--brand); color: #fff; border-color: var(--brand); }
.rsch-pill--sub { font-size: 0.8rem; padding: 0.2rem 0.65rem; }
.rsch-pill--sub.rsch-pill--active { background: var(--brand); color: #fff; border-color: var(--brand); }
.rsch-pill-count { opacity: 0.65; font-size: 0.8em; font-weight: 400; }

/* Summary stat cards */
.sc-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.sc-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.2rem;
  box-shadow: var(--shadow-sm);
}
.sc-stat-val { font-size: 1.6rem; font-weight: 800; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }
.sc-stat-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sc-stat-sub { font-size: 0.72rem; color: var(--muted-lt); }

/* Section titles */
.sc-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

/* Per-sport breakdown */
.sc-sport-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sc-sport-card {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.6rem 1rem; box-shadow: var(--shadow-sm);
}
.sc-sport-acc { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.sc-sport-sub { font-size: 0.75rem; color: var(--muted); }

/* Results table */
.sc-table-wrap { overflow-x: auto; }
.sc-table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.sc-table thead { background: var(--bg); }
.sc-table th {
  text-align: left; padding: 0.45rem 0.5rem; font-weight: 700; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--border);
}
.sc-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sc-table tbody tr:last-child td { border-bottom: none; }
.sc-table tbody tr:hover { background: var(--brand-lt); }

.sc-td-date { white-space: nowrap; color: var(--muted); }
.sc-td-game a { color: var(--brand); text-decoration: none; font-weight: 600; }
.sc-td-game a:hover { text-decoration: underline; }
.sc-td-num { text-align: right; font-variant-numeric: tabular-nums; }
.sc-td-pick { text-align: left; font-variant-numeric: tabular-nums; }
.sc-td-winner { font-weight: 600; }
.sc-td-result { text-align: center; font-weight: 700; font-size: 0.9rem; }
.sc-pick-label { font-size: 0.65rem; color: var(--muted); margin-left: 0.15rem; }
.sc-bet-cell--suppressed {
  color: transparent !important;
  position: relative;
}
.sc-bet-cell--suppressed .sc-pick-label {
  color: transparent !important;
}
.sc-bet-cell--suppressed::after {
  content: '—';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.sc-row-right .sc-td-result { color: var(--green); }
.sc-row-wrong .sc-td-result { color: var(--red); }
.sc-row-value-bet { opacity: .8; }
.sc-row-value-bet td:first-child { border-left: 3px solid #f59e0b; padding-left: calc(1rem - 3px); }

.sc-error { color: var(--red); padding: 2rem 0; text-align: center; }
.sc-empty { color: var(--muted); padding: 3rem 0; text-align: center; font-size: 0.95rem; }

/* ── Report viewer tabs ───────────────────────────────────────────────────── */
.rv-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}
.rv-tab {
  background: none;
  border: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.rv-tab:hover { color: var(--text); }
.rv-tab--active { color: var(--brand); border-bottom-color: var(--brand); }

.rv-panel { display: none; flex: 1; min-height: 0; }
.rv-panel--active { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* ── Odds Panel ───────────────────────────────────────────────────────────── */
.odds-panel {
  padding: 1.25rem 0;
  flex: 1;
  overflow-y: auto;
}
.odds-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.odds-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  background: var(--border);
  color: var(--muted);
}
.odds-badge--active  { background: #16a34a22; color: #16a34a; }
.odds-badge--closed  { background: #71717a22; color: var(--muted); }
.odds-badge--resolved{ background: #2563eb22; color: #2563eb; }
.odds-loading { color: var(--muted); font-size: 0.9rem; padding: 2rem 0; }
.odds-error   { color: #ef4444; font-size: 0.88rem; padding: 1rem 0; }
.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.odds-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.odds-table tbody tr { border-bottom: 1px solid var(--border); }
.odds-table tbody tr:last-child { border-bottom: none; }
.odds-table td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
}
.ot-question {
  color: var(--text);
  max-width: 28rem;
  font-weight: 500;
}
.odds-line { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.ot-outcome { color: var(--muted); white-space: nowrap; }
.ot-prob    { font-weight: 600; color: var(--text); white-space: nowrap; }
.ot-american{ font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot-american.ot-fav { color: var(--brand); font-weight: 600; }
.ot-decimal { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.odds-empty { text-align: center; color: var(--muted); padding: 2rem; font-size: 0.9rem; }
.odds-markets-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 1.75rem 0 0.6rem;
}

/* ── Similar events panel ─────────────────────────────────────────────────── */
.similar-panel {
  padding: 1.25rem 0;
  flex: 1;
  overflow-y: auto;
}
.similar-loading { color: var(--muted); font-size: 0.9rem; padding: 2rem 0; }
.similar-error   { color: #ef4444; font-size: 0.88rem; padding: 1rem 0; }
.similar-intro   { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.1rem; line-height: 1.5; }
.similar-list    { display: flex; flex-direction: column; gap: 0.8rem; }
.similar-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sim-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.sim-date  { font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.sim-score { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sim-title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.sim-probs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}
.sim-label       { font-weight: 600; color: var(--text); }
.sim-prob-sim    { color: var(--brand); }
.sim-prob-mkt    { color: var(--muted); }
.sim-outcome     { font-size: 0.75rem; color: #16a34a; font-weight: 600; background: #16a34a14; padding: 0.1em 0.5em; border-radius: 3px; align-self: flex-start; }
.sim-report-link { font-size: 0.78rem; color: var(--brand); text-decoration: none; margin-top: auto; padding-top: 0.3rem; }
.sim-report-link:hover { text-decoration: underline; }
.sim-spark-wrap { margin: 0.35rem 0 0.2rem; }
.sim-sparkline { display: block; width: 100%; height: 32px; }
.sim-spark-legend { display: flex; gap: 0.75rem; margin-top: 0.15rem; }
.sim-spark-src  { font-size: 0.68rem; color: #9ca3af; }
.sim-spark-match { font-size: 0.68rem; color: #4f46e5; }
.sim-hist-wrap { margin: 0.4rem 0 0.2rem; }
.sim-hist { display: block; width: 100%; height: 83px; }
.sim-hist-legend { display: flex; gap: 1rem; margin-top: 0.2rem; }
.sim-hist-src   { font-size: 0.68rem; color: #9ca3af; }
.sim-hist-match { font-size: 0.68rem; color: #4f46e5; }
.sim-hist-labels { display: flex; flex-direction: column; gap: 0; margin-bottom: 0.1rem; }
.sim-hist-lbl { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.sim-hist-lbl--src   { color: #9ca3af; }
.sim-hist-lbl--match { color: #4f46e5; }
.similar-mirror-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1em 0.45em;
  border-radius: 3px;
  background: #7c3aed1a;
  color: #7c3aed;
}
.sim-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1em 0.45em;
  border-radius: 3px;
  background: var(--border);
  color: var(--muted);
}

/* ── Odds compare: three-tier slot layout ─────────────────────────────────
   Purple = LLM-generated, static (mesh values)
   Blue   = computed live (market prices, gaps, Kelly fractions)
   Pink   = lookup phrases (deterministic conditional text)
 ─────────────────────────────────────────────────────────────────────────── */

/* ── Odds prose layout ─────────────────────────────────────────────────── */
.oc-prose {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}
.oc-prose p {
  margin: 0.65rem 0;
}
.oc-prose strong {
  font-weight: 700;
}
.oc-dim {
  color: var(--muted);
  font-size: 0.84em;
  font-variant-numeric: tabular-nums;
}
.oc-aside {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
}
.oc-footnote {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
  margin-top: 1rem;
}

.oc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.oc-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.oc-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.oc-tog {
  background: none;
  border: none;
  padding: 0.28rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.oc-tog + .oc-tog { border-left: 1px solid var(--border); }
.oc-tog--active { background: var(--brand); color: #fff; }

.oc-resolved {
  background: #2563eb0d;
  border: 1px solid #2563eb33;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.oc-resolved strong { color: #2563eb; }

@media (max-width: 600px) {
  .ot-decimal { display: none; }
  .ot-question { max-width: 10rem; }
}


/* ── Scenario Explorer ────────────────────────────────────────────────────── */
.sx-loading {
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.sx-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sx-spin 0.7s linear infinite;
}
@keyframes sx-spin { to { transform: rotate(360deg); } }

.sx-error { color: var(--red); padding: 1.5rem 0; font-size: 0.9rem; }

/* body: scrollable questionnaire column */
.sx-body {
  flex-direction: column;
  overflow-y: auto;
  padding: 0 0 3rem;
  gap: 0;
  max-width: 640px;
}

/* ---- Sticky header (mini bar + worlds) ---- */
.sx-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0.75rem 0 0.45rem;
  margin-bottom: 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.sx-sticky-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.sx-sticky-prob {
  font-weight: 800;
  color: var(--brand);
}
.sx-sticky-vs {
  color: var(--muted);
  font-size: 0.7rem;
}
.sx-sticky-base {
  font-weight: 600;
  color: var(--muted);
}

/* ---- Intro ---- */
.sx-intro {
  margin-bottom: 1.75rem;
}
.sx-intro p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- Question cards ---- */
.sx-questions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sx-question {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.sx-question:first-child { padding-top: 0; }

.sx-q-number {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  transition: background .15s, color .15s;
}
.sx-question--answered .sx-q-number {
  background: var(--brand);
  color: #fff;
}

.sx-q-body {
  flex: 1;
  min-width: 0;
}

.sx-q-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.sx-q-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Options within a question */
.sx-q-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sx-opt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s;
}
.sx-opt:hover {
  border-color: var(--brand);
  background: var(--brand-lt);
}
.sx-opt--on {
  border-color: var(--brand);
  background: var(--brand-lt);
  box-shadow: 0 0 0 1px var(--brand);
}
.sx-opt-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.sx-opt-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.sx-opt-prior {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.sx-opt-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- Worlds (inside sticky header) ---- */
.sx-worlds-toggle {
  margin-top: 0.5rem;
}
.sx-worlds-summary {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem 0;
  list-style: none;
}
.sx-worlds-summary::-webkit-details-marker { display: none; }
.sx-worlds-summary::before {
  content: '\25B8';
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform .15s;
}
.sx-worlds-toggle[open] > .sx-worlds-summary::before {
  transform: rotate(90deg);
}

.sx-worlds { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.6rem; }
.sx-world  { display: flex; flex-direction: column; gap: 0.25rem; }
.sx-world-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.sx-world-name { font-size: 0.8rem; color: var(--text); }
.sx-world-prob { font-size: 0.76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sx-world-bar-wrap { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.sx-world-bar { height: 100%; border-radius: 3px; transition: width .3s ease; }
.sx-world-bar--pos { background: var(--brand); }
.sx-world-bar--neg { background: var(--red); }

/* ---- Reset ---- */
.sx-reset-btn {
  display: block;
  margin-top: 1.25rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0.45rem 1rem;
  transition: color .12s, border-color .12s;
}
.sx-reset-btn:hover { color: var(--text); border-color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .sx-question { gap: 0.6rem; }
  .sx-q-number { width: 20px; height: 20px; font-size: 0.65rem; }
}


