/* Statroom — design system (shared look with the Match Centre in js/watch.js) */
:root {
  --bg: #07090C;
  --bg2: #0C0F14;
  --card: rgba(17, 20, 26, 0.86);
  --card-solid: #11141A;
  --inset: rgba(4, 6, 9, 0.62);
  --line: rgba(148, 163, 184, 0.12);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #E2E8F0;
  --text-hi: #F8FAFC;
  --muted: #94A3B8;
  --dim: #64748B;
  --accent: #C6F24E;
  --accent-hi: #D9FF6B;
  --accent-ink: #0B1105;
  --display: 'Archivo', Inter, ui-sans-serif, system-ui, sans-serif;
  --warn: #FBBF24;
  --bad: #F87171;
  --violet: #A78BFA;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --home: #3B82F6;
  --away: #EF4444;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(198, 242, 78, 0.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 120, 255, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 12, 0.8); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 38px; height: 38px; flex-shrink: 0; display: block; border-radius: 10px; box-shadow: 0 8px 24px -10px rgba(198, 242, 78, 0.55); }
.logo img, .logo svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; font-stretch: 112%; letter-spacing: -0.02em; color: var(--text-hi); white-space: nowrap; line-height: 1.1; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 11px; color: var(--dim); font-weight: 600; letter-spacing: 0.02em; }
.brand-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border-radius: 11px; background: var(--inset); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.switch { position: relative; width: 34px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #1E293B; border: 1px solid var(--line-2); transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #94A3B8; transition: .2s; }
.switch input:checked + span { background: rgba(198, 242, 78, 0.25); border-color: rgba(198, 242, 78, 0.6); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--accent-hi); }
.switch input:disabled + span { opacity: .45; }
.ctl .short { display: none; }
@media (max-width: 700px) { .ctl .short { display: inline; } }
.ctl label { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sims-input {
  width: 74px; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2);
  background: #0B1222; color: var(--text-hi); font: 700 12.5px var(--mono); text-align: right;
}
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--inset); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; font-size: 12px; transition: .15s; white-space: nowrap; }
.seg button:hover { color: var(--text-hi); }
.seg button.on { background: var(--text); color: #0B1220; }
.seg.small button { height: 24px; padding: 0 8px; font-size: 11px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-2); background: rgba(15, 23, 42, 0.85); color: var(--text-hi);
  font-weight: 700; font-size: 13px; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: rgba(148, 163, 184, 0.45); background: #1E293B; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.glow { box-shadow: 0 10px 30px -8px rgba(198, 242, 78, 0.55); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.timing { font: 600 11px var(--mono); color: var(--dim); padding: 0 4px; }

/* ---------- layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 18px 20px 0; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.card-b { padding: 16px 18px 18px; }
.eyebrow { font-family: var(--display); font-stretch: 110%; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.title { font-size: 17px; font-weight: 800; color: var(--text-hi); letter-spacing: -0.01em; margin: 2px 0 0; }
.sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 1060px) { .grid-main { grid-template-columns: 1fr; } }

/* ---------- fixtures rail ---------- */
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 6px; } .rail::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 3px; }
.fx {
  flex: 0 0 196px; scroll-snap-align: start; text-align: left; padding: 12px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); transition: .15s; position: relative; overflow: hidden;
}
.fx:hover { border-color: var(--line-2); transform: translateY(-1px); }
.fx.on { border-color: rgba(198, 242, 78, 0.7); background: linear-gradient(180deg, rgba(198, 242, 78, 0.12), rgba(15, 22, 38, 0.9)); box-shadow: 0 0 0 1px rgba(198, 242, 78, 0.25), 0 14px 30px -14px rgba(198, 242, 78, 0.5); }
.fx-teams { display: grid; gap: 6px; }
.fx-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text-hi); }
.fx-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row .pc { font: 700 12px var(--mono); color: var(--muted); }
.fx-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11px; color: var(--dim); }
.fx-bar { display: flex; height: 4px; gap: 2px; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.fx-bar i { display: block; flex-basis: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.pill.ok { background: rgba(198, 242, 78, 0.14); color: var(--accent-hi); border: 1px solid rgba(198, 242, 78, 0.3); }
.pill.mute { background: rgba(148, 163, 184, 0.1); color: var(--muted); border: 1px solid var(--line); }
.pill.warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); }

/* ---------- crest ---------- */
.crest {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  font-weight: 900; font-size: 9.5px; letter-spacing: .03em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 4px 12px -4px rgba(0, 0, 0, 0.6);
}
.crest.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 17px; }
.crest.md { width: 36px; height: 36px; border-radius: 11px; font-size: 11px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(500px 220px at 0% 0%, var(--home-glow, transparent), transparent 70%), radial-gradient(500px 220px at 100% 0%, var(--away-glow, transparent), transparent 70%);
}
.hero-in { position: relative; padding: 22px 24px 20px; display: grid; gap: 20px; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.side.away { flex-direction: row-reverse; text-align: right; }
.side .tn { font-size: 24px; font-weight: 850; font-weight: 800; letter-spacing: -0.02em; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .ts { font-size: 12px; color: var(--muted); margin-top: 2px; }
.xg { text-align: center; }
.xg .vals { display: flex; align-items: baseline; justify-content: center; gap: 14px; font-weight: 900; font-size: 44px; letter-spacing: -0.03em; color: var(--text-hi); line-height: 1; }
.xg .vals .sep { font-size: 20px; color: #334155; font-weight: 400; }
.xg .lab { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 800; margin-top: 8px; }
.wp { display: grid; gap: 10px; }
.wp-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; }
.wp-bar i { display: block; flex-basis: 0; transition: flex-grow .5s ease; min-width: 3px; }
.wp-l { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 12px; color: var(--muted); }
.wp-l b { display: block; font-size: 22px; font-weight: 800; color: var(--text-hi); letter-spacing: -0.01em; }
.wp-l .c { text-align: center; } .wp-l .r { text-align: right; }
.wp-l small { font: 600 11px var(--mono); color: var(--dim); margin-left: 6px; }
.edge { font: 700 11px var(--mono); margin-left: 6px; }
.edge.pos { color: var(--accent-hi); } .edge.neg { color: var(--dim); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chip b { color: var(--text-hi); font-size: 13px; }
.chip .f { font: 600 11px var(--mono); color: var(--dim); }
.note { font-size: 11.5px; color: var(--dim); }
.note.warn { color: rgba(251, 191, 36, 0.85); }
@media (max-width: 700px) {
  .hero-in { padding: 18px 16px; }
  .matchup { gap: 8px; }
  .side { gap: 10px; flex-direction: column; text-align: center; }
  .side.away { flex-direction: column; text-align: center; }
  .side .tn { font-size: 15px; }
  .crest.lg { width: 48px; height: 48px; font-size: 13px; border-radius: 14px; }
  .xg .vals { font-size: 32px; gap: 8px; }
  .wp-l b { font-size: 18px; }
  .hero-foot > div, .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- pitch ---------- */
.pitch {
  position: relative; width: 100%; aspect-ratio: 105 / 64; border-radius: 14px; overflow: hidden; user-select: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 7.142%, transparent 7.142% 14.285%),
    radial-gradient(120% 90% at 50% 50%, #0F5132 0%, #0B3D26 70%, #082C1C 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch.vert { aspect-ratio: 68 / 100; max-width: 520px; margin: 0 auto; background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 7.142%, transparent 7.142% 14.285%),
    radial-gradient(90% 120% at 50% 50%, #0F5132 0%, #0B3D26 70%, #082C1C 100%); }
.pitch .layer { position: absolute; inset: 0; }
.pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; border: 0; background: none; padding: 0; }
.pl .dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--mono);
  border: 2.5px solid; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.7); transition: transform .15s, box-shadow .15s;
}
.pl:hover .dot { transform: scale(1.12); }
.pl.sel .dot { transform: scale(1.18); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 24px 4px rgba(255, 255, 255, 0.35); }
.pl .nm { font-size: 10px; font-weight: 700; color: #F1F5F9; padding: 1px 6px; border-radius: 6px; background: rgba(2, 6, 23, 0.82); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.pl .nm .w { color: var(--warn); }
@media (max-width: 700px) {
  .pl .dot { width: 26px; height: 26px; font-size: 9px; border-width: 2px; }
  .pl .nm { font-size: 8px; padding: 0 3px; max-width: 54px; overflow: hidden; text-overflow: ellipsis; }
}
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- inspector ---------- */
.insp { display: flex; flex-direction: column; }
.insp-head { padding: 18px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.insp-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--team-glow, transparent), transparent 55%); opacity: .35; pointer-events: none; }
.insp-head > * { position: relative; }
.pname { font-size: 20px; font-weight: 800; color: var(--text-hi); letter-spacing: -0.015em; margin: 6px 0 4px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.news { margin-top: 10px; font-size: 12px; color: var(--warn); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25); padding: 7px 10px; border-radius: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 18px 4px; }
.tile { text-align: left; padding: 10px 11px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); transition: .15s; position: relative; overflow: hidden; }
.tile:hover { border-color: var(--line-2); }
.tile.on { border-color: rgba(198, 242, 78, 0.7); background: rgba(198, 242, 78, 0.08); }
.tile .tl { font-size: 11px; color: var(--muted); display: block; }
.tile .tv { font-size: 18px; font-weight: 800; color: var(--text-hi); letter-spacing: -0.01em; }
.tile .tf { font: 600 10.5px var(--mono); color: var(--dim); margin-left: 4px; }
.tile .tb { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); opacity: .7; border-radius: 0 3px 3px 0; }
.bet { margin: 12px 18px; padding: 14px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); display: grid; gap: 10px; }
.bet-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-hi); }
.bet-row { display: flex; gap: 8px; align-items: center; }
.odds-in {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0B1222;
  color: var(--text-hi); font: 700 14px var(--mono);
}
.odds-in:focus, .sims-input:focus { outline: none; border-color: rgba(198, 242, 78, 0.7); box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.15); }
.ev { font-size: 12.5px; color: var(--muted); }
.ev b { font-size: 15px; }
.ev .pos { color: var(--accent-hi); } .ev .neg { color: var(--bad); }
.mins { padding: 4px 18px 18px; font-size: 12px; color: var(--muted); }
.mins-h { display: flex; justify-content: space-between; margin-bottom: 8px; }
.mins-h b { color: var(--text-hi); font-family: var(--mono); font-size: 12px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: 11.5px; }
.linkbtn:hover { color: var(--text-hi); }
.empty { padding: 28px 18px; color: var(--dim); font-size: 13px; text-align: center; }

/* ---------- slip ---------- */
.slip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
@media (max-width: 900px) { .slip-grid { grid-template-columns: 1fr; } }
.legs { display: grid; gap: 8px; align-content: start; }
.leg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.leg .ln { font-weight: 700; color: var(--text-hi); display: flex; align-items: center; gap: 8px; }
.leg .lm { font-size: 12px; color: var(--accent-hi); margin-top: 2px; }
.leg .lm span { color: var(--dim); font-family: var(--mono); }
.leg .odds-in { width: 84px; height: 32px; font-size: 13px; }
.x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--dim); }
.x:hover { color: var(--bad); border-color: rgba(248, 113, 113, 0.4); }
.dashed { padding: 22px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 13px; text-align: center; }
.summary { padding: 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(198, 242, 78, 0.08), var(--inset)); border: 1px solid rgba(198, 242, 78, 0.22); display: grid; gap: 8px; align-content: start; font-size: 12.5px; }
.summary .big { font-family: var(--display); font-size: 30px; font-weight: 900; color: var(--accent-hi); letter-spacing: -0.02em; line-height: 1.05; }
.kv { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.kv b { color: var(--text-hi); font-family: var(--mono); }
.kv.v b { color: var(--violet); }
.hr { height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
thead th {
  position: sticky; top: 0; text-align: left; padding: 10px 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); font-weight: 800; border-bottom: 1px solid var(--line); background: var(--card-solid); white-space: nowrap;
}
thead th.r, tbody td.r { text-align: right; }
tbody td { padding: 10px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.06); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: rgba(148, 163, 184, 0.05); }
tbody tr.sel { background: rgba(198, 242, 78, 0.08); box-shadow: inset 3px 0 0 var(--accent); }
.pcell { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-hi); }
.tdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.poschip { font: 700 10.5px var(--mono); color: var(--muted); padding: 2px 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.08); }
.heat { font-family: var(--mono); border-radius: 6px; padding: 2px 6px; }

/* ---------- footer ---------- */
.foot { font-size: 11.5px; color: var(--dim); line-height: 1.7; padding: 4px 4px 0; }
.foot code { font-family: var(--mono); color: var(--muted); background: rgba(148, 163, 184, 0.08); padding: 1px 5px; border-radius: 5px; }

@media (max-width: 700px) {
  .topbar-in, .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar-in { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .controls { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .controls .ctl { padding: 0 8px; gap: 6px; height: 36px; }
  .controls .ctl.sims { flex: 1; justify-content: center; }
  .controls .ctl.sims > span:first-child, .controls .sims-input, .controls .timing, #marketStatus { display: none; }
  .controls #runBtn { flex: 0 0 auto; width: 44px; padding: 0; }
  .controls .long { display: none; }
  .card-h { padding: 14px 14px 0; } .card-b { padding: 14px; }
  .tbl-wrap { margin: 0 -14px; padding: 0 14px; }
}

/* ---------- pages, status, toast ---------- */
.pages button { height: 32px; padding: 0 14px; font-size: 13px; }
@media (max-width: 700px) { .pages { width: 100%; overflow-x: auto; scrollbar-width: none; } .pages button { flex: 1 0 auto; padding: 0 10px; font-size: 12.5px; } }
.statusbar { display: flex; flex-wrap: wrap; gap: 8px; }
.statusbar .pill { padding: 4px 10px; font-size: 11.5px; font-weight: 700; cursor: default; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(198, 242, 78, 0.1); border: 1px solid rgba(198, 242, 78, 0.4); color: var(--text-hi); font-size: 13px; }
.slipfab { position: fixed; right: 18px; bottom: 18px; z-index: 60; height: 46px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; box-shadow: 0 12px 30px -8px rgba(198, 242, 78, 0.7); }
.slipfab b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin: 0 4px; border-radius: 99px; background: #04130A; color: var(--accent-hi); font-size: 12px; }

/* ---------- best bets ---------- */
.bets-filters { display: grid; gap: 12px; margin-bottom: 14px; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.fchip { flex-shrink: 0; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--inset); color: var(--muted); font-weight: 700; font-size: 12.5px; }
.fchip:hover { color: var(--text-hi); }
.fchip.on { background: var(--text); color: #0B1220; border-color: var(--text); }
.bets-ctl { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.sel { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #0B1222; color: var(--text-hi); font-weight: 600; font-size: 13px; max-width: 100%; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.bets { display: grid; gap: 6px; }
.bb-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 140px 64px 110px 72px 40px; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.bb-row.head { background: none; border: 0; padding: 0 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.bb-row.value { border-color: rgba(198, 242, 78, 0.35); background: linear-gradient(90deg, rgba(198, 242, 78, 0.07), var(--inset) 60%); }
.bb-row .r { text-align: right; justify-self: end; }
.bb-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bb-row .bn { min-width: 0; display: block; }
.bb-row .bn b { color: var(--text-hi); font-size: 13.5px; }
.bb-row .bn small { display: block; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.bb-row .mkt { font-size: 13px; color: var(--text); }
.plink { background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.plink:hover b { text-decoration: underline; }
.chance { display: inline-flex; align-items: center; gap: 8px; }
.chance b { font-variant-numeric: tabular-nums; color: var(--text-hi); min-width: 46px; text-align: right; }
.cbar { width: 60px; height: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.cbar i { display: block; height: 100%; background: linear-gradient(90deg, #9BC72E, #D9FF6B); }
.price { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.price b { font-family: var(--mono); color: var(--text-hi); font-size: 14px; }
.price small { font-size: 10.5px; color: var(--dim); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-row .odds-in { width: 90px; height: 32px; font-size: 13px; }
.edgeb { display: inline-block; min-width: 54px; text-align: center; padding: 4px 8px; border-radius: 8px; font: 800 12.5px var(--mono); }
.edgeb.pos { background: rgba(198, 242, 78, 0.18); color: var(--accent-hi); border: 1px solid rgba(198, 242, 78, 0.45); }
.edgeb.neg { background: rgba(148, 163, 184, 0.08); color: var(--dim); }
.edgeb.none { color: var(--dim); }
.addb { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(198, 242, 78, 0.5); background: rgba(198, 242, 78, 0.12); color: var(--accent-hi); font-weight: 900; font-size: 16px; }
.addb:hover { background: rgba(198, 242, 78, 0.25); }
.addb.done { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) {
  .bb-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'who who add' 'mkt mkt edge' 'chance fair price'; row-gap: 8px; }
  .bb-row.head { display: none; }
  .bb-row .who { grid-area: who; } .bb-row .mkt { grid-area: mkt; font-weight: 700; }
  .bb-row > span:nth-child(3) { grid-area: chance; justify-self: start; }
  .bb-row > span:nth-child(4) { grid-area: fair; } .bb-row > span:nth-child(4)::before { content: 'fair '; color: var(--dim); font-size: 11px; }
  .bb-row > span:nth-child(5) { grid-area: price; } .bb-row > span:nth-child(6) { grid-area: edge; } .bb-row > span:nth-child(7) { grid-area: add; }
}

/* ---------- line-up editor ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 15, 0.8); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-card { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card-solid); }
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .lu-grid { grid-template-columns: 1fr; } }
.lu-h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text-hi); margin-bottom: 8px; }
.lu-n { margin-left: auto; font: 800 12px var(--mono); }
.lu-p { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.lu-p:hover { background: rgba(148, 163, 184, 0.06); }
.lu-p input { accent-color: var(--accent); width: 16px; height: 16px; }
.lu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 700px) { .topbar { position: static; } }

/* ---------- player stats ---------- */
.stats-tbl td, .stats-tbl th { padding: 9px 10px; }
.stats-tbl th.sortable { cursor: pointer; user-select: none; }
.stats-tbl th.sortable:hover, .stats-tbl th.on { color: var(--text-hi); }
.stats-tbl td.z { color: #334155; }
.stats-tbl .pcell small { font-size: 11px; }
.res { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 800 11px var(--mono); margin-right: 4px; }
.res.W { background: rgba(198, 242, 78, 0.2); color: var(--accent-hi); }
.res.D { background: rgba(148, 163, 184, 0.18); color: var(--muted); }
.res.L { background: rgba(248, 113, 113, 0.18); color: var(--bad); }
.st-card { width: min(1100px, 100%); padding: 22px; position: relative; }
.st-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--inset); color: var(--muted); font-size: 16px; }
.st-x:hover { color: var(--text-hi); }
.st-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.st-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(198, 242, 78, 0.08); border: 1px solid rgba(198, 242, 78, 0.3); font-size: 13px; color: var(--muted); }
.st-next b { color: var(--text-hi); }
.st-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 860px) { .st-grid { grid-template-columns: 1fr; } .st-card { padding: 16px; } }
.shotcard { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line-2); font-size: 13px; }
.kvs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.kvs b { color: var(--text-hi); }
.st-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 10px 0 6px; padding-right: 44px; }
.st-score .side { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.st-score .side.away { justify-content: flex-end; text-align: right; }
.st-score .side { min-width: 0; }
.st-score .sc { text-align: center; }
.st-score .sc b { display: block; font-size: 34px; font-weight: 900; color: var(--text-hi); letter-spacing: -0.02em; }
.st-score .sc small { color: var(--dim); font-family: var(--mono); }
.st-card .mc-h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- track record */
#pageTrack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
#pageTrack.hidden { display: none; }
.tr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 16px 18px 4px; }
.tr-tile .tv { display: block; font-size: 22px; margin-top: 2px; }
.tr-tile .tv.pos, #pageTrack .pos { color: var(--accent-hi); }
.tr-tile .tv.neg, #pageTrack .neg { color: var(--bad); }
.tr-foot { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.tr-explain { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.tr-explain b { color: var(--text-hi); }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px; }
.cal-svg { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.cal-svg text { font: 600 9px var(--mono); fill: var(--dim); }
.cal-svg .ax { font-family: inherit; font-size: 10px; fill: var(--muted); }
.cal-svg .grid { stroke: var(--line); }
.cal-svg .diag { stroke: var(--muted); stroke-dasharray: 4 4; }
.cal-svg .dot { fill: rgba(198, 242, 78, 0.55); stroke: var(--accent-hi); }
.pill.bad { background: rgba(248, 113, 113, 0.12); color: var(--bad); border: 1px solid rgba(248, 113, 113, 0.35); }
#pageTrack .dim { color: var(--dim); }
#pageTrack tr.clickable { cursor: pointer; }
#pageTrack tr.clickable:hover td, #pageTrack tr.clickable.on td { background: rgba(198, 242, 78, 0.06); }
.tr-tbl td { white-space: nowrap; }
.tr-empty { padding: 10px 14px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); margin-bottom: 12px; color: var(--muted); }
@media (max-width: 860px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } }
a.btn { text-decoration: none; }
/* --- best bets: "why" panel */
.bb-row.clickable { cursor: pointer; }
.bb-row.clickable:hover { border-color: var(--line-2); }
.bb-row.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.why { margin-top: -6px; padding: 12px 14px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: rgba(15, 23, 42, 0.6); display: grid; gap: 7px; font-size: 12.5px; color: var(--text); }
.why-l { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.why-l > span { color: var(--dim); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding-top: 2px; }
@media (max-width: 700px) { .why-l { grid-template-columns: 1fr; gap: 2px; } }
.whyhint { font-size: 11px; color: var(--dim); margin-left: 6px; white-space: nowrap; } .bb-row:hover .whyhint { color: var(--accent-hi); }
/* --- bet slip: what happened across the sims */
.simgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 6px; }
.sg-cell { padding: 9px 10px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); }
.sg-cell b { display: block; font: 800 17px var(--mono); color: var(--text-hi); }
.sg-cell span { font-size: 11px; color: var(--muted); }
.sg-cell.on { border-color: rgba(198, 242, 78, 0.45); background: rgba(198, 242, 78, 0.08); }
.sg-cell.on b { color: var(--accent-hi); }
.simbars { display: grid; gap: 5px; margin: 10px 0 6px; }
.sb-row { display: grid; grid-template-columns: 80px 1fr 64px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.sb-row i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #9BC72E, #D9FF6B); min-width: 2px; }
.sb-row b { font: 700 12px var(--mono); color: var(--text-hi); text-align: right; }
.sim-n { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
/* --- clearer numbers */
.tile .tc { display: block; font: 600 10.5px var(--mono); color: var(--dim); margin-top: 2px; }
.dist { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); display: grid; gap: 5px; }
.dist-h { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 4px; }
.dist-h b { color: var(--text-hi); }
.dist-row { display: grid; grid-template-columns: 112px 1fr 58px 46px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.dist-row i { display: block; height: 8px; border-radius: 99px; background: rgba(148, 163, 184, 0.35); min-width: 2px; }
.dist-row.hit i { background: linear-gradient(90deg, #9BC72E, #D9FF6B); }
.dist-row.hit span { color: var(--text-hi); }
.dist-row b { font: 700 11.5px var(--mono); color: var(--text-hi); text-align: right; }
.dist-row em { font: 600 11px var(--mono); color: var(--dim); text-align: right; font-style: normal; }
.pl .dot { font-size: 10.5px; letter-spacing: -0.02em; }
.lu-sub { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 800; margin: 10px 0 4px; }
.price-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price-wrap small { font-size: 10px; color: var(--dim); white-space: nowrap; }
/* --- live match centre */
#pageLive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
#pageLive.hidden { display: none; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; margin-right: 6px; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: livepulse 1.6s infinite; vertical-align: middle; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.pages .nb { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #EF4444; color: #fff; font-size: 10.5px; margin-left: 4px; }
.lc-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lc-chip { flex: 0 0 auto; min-width: 190px; display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); color: var(--text); }
.lc-chip.on { border-color: rgba(198, 242, 78, .55); background: rgba(198, 242, 78, .07); }
.lc-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.lc-t b { margin-left: auto; font: 800 15px var(--mono); color: var(--text-hi); }
.lc-s { font-size: 11px; color: var(--muted); }
.lc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 22px 22px 12px; }
.lc-team { display: flex; align-items: center; gap: 14px; }
.lc-team.r { justify-content: flex-end; text-align: right; }
.lc-team .nm { font-size: 22px; font-weight: 900; color: var(--text-hi); }
.lc-mid { text-align: center; }
.lc-mid .sc { font: 900 46px var(--mono); color: var(--text-hi); letter-spacing: -0.03em; }
.lc-mid .clk { font-size: 13px; color: var(--muted); font-weight: 700; }
.lc-probs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 6px 18px 12px; }
.lc-p { padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); display: grid; gap: 1px; }
.lc-p span { font-size: 11.5px; color: var(--muted); }
.lc-p b { font: 800 19px var(--mono); color: var(--text-hi); }
.lc-p small { font-size: 10.5px; color: var(--dim); font-family: var(--mono); }
.lc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.lc-ts { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 4px 8px; margin-bottom: 10px; font-size: 12.5px; }
.lc-ts > b { font: 800 14px var(--mono); color: var(--text-hi); }
.lc-ts > b:last-of-type { text-align: right; }
.lc-ts > span { text-align: center; color: var(--muted); }
.lc-ts small { color: var(--dim); font-family: var(--mono); }
.lc-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(148, 163, 184, .35); overflow: hidden; }
.lc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #C6F24E, #D9FF6B); }
.lc-ins p { margin: 0 0 9px; font-size: 13px; line-height: 1.5; color: var(--text); }
.lc-close, .lc-leg { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.lc-close b, .lc-leg b { font-family: var(--mono); color: var(--text-hi); }
.lc-close small { font-family: var(--mono); color: var(--dim); }
.lc-leg { grid-template-columns: 1fr auto; }
.lc-leg.won b { color: var(--accent-hi); } .lc-leg.lost b { color: var(--bad); }
.mom { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 160px; }
.mom-c { display: grid; grid-template-rows: 1fr 1fr auto; gap: 2px; }
.mom-h, .mom-a { display: flex; justify-content: center; }
.mom-h { align-items: flex-end; } .mom-a { align-items: flex-start; }
.mom-h i, .mom-a i { display: block; width: 70%; border-radius: 4px; min-height: 2px; }
.mom-h i { background: #3B82F6; } .mom-a i { background: #F59E0B; }
.mom-c span { font-size: 10px; color: var(--dim); text-align: center; }
.lc-pitch { width: 100%; border-radius: 10px; display: block; }
.lc-th { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 12px 0 6px; }
.lc-pt td.chips { white-space: normal; min-width: 280px; }
.pchip { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 7px; border-radius: 999px; font-size: 11px; background: var(--inset); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pchip b { color: var(--text-hi); font-family: var(--mono); }
.pchip.hit { background: rgba(198, 242, 78, .14); border-color: rgba(198, 242, 78, .45); color: var(--accent-hi); font-weight: 700; }
.lc-evs { display: grid; gap: 6px; }
.lc-ev { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 13px; }
.lc-ev .m { font-family: var(--mono); color: var(--dim); }
.lc-ev.away { color: var(--muted); }
.lc-com { max-height: 420px; overflow-y: auto; }
.lc-com p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.lc-com b { color: var(--text-hi); font-family: var(--mono); margin-right: 4px; }
@media (max-width: 860px) {
  .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-score { padding: 16px 12px 8px; gap: 6px; }
  .lc-team { gap: 6px; flex-direction: column; align-items: flex-start; }
  .lc-team.r { align-items: flex-end; }
  .lc-team .nm { font-size: 15px; }
  .lc-mid .sc { font-size: 32px; }
}
.lgs { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.lgs.won { color: var(--accent-hi); border-color: rgba(198, 242, 78, .45); background: rgba(198, 242, 78, .12); }
.lgs.lost { color: var(--bad); border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .1); }
.lgs.live { color: var(--text-hi); }
.lgs .live-dot { width: 6px; height: 6px; margin-right: 2px; }

/* ---------- live agent ---------- */
.ag { display: flex; flex-direction: column; max-width: 920px; margin: 0 auto; height: calc(100vh - 170px); min-height: 520px; }
.ag-title { margin: 2px 0 0; font-size: 20px; color: var(--text-hi); letter-spacing: -0.01em; }
.ag-tools { display: flex; gap: 6px; }
.ag-thread { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ag-hello { color: var(--muted); max-width: 620px; margin: auto; text-align: center; }
.ag-hello b { color: var(--text-hi); font-size: 15px; }
.ag-msg { max-width: 92%; border-radius: 14px; padding: 10px 14px; line-height: 1.5; }
.ag-msg p { margin: 0 0 8px; } .ag-msg p:last-child { margin-bottom: 0; }
.ag-msg ul, .ag-msg ol { margin: 4px 0 8px; padding-left: 20px; }
.ag-msg.me { align-self: flex-end; background: rgba(198, 242, 78, 0.14); border: 1px solid rgba(198, 242, 78, 0.3); color: var(--text-hi); }
.ag-msg.bot { align-self: flex-start; background: var(--inset); border: 1px solid var(--line); }
.ag-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .ag-imgs img { max-height: 120px; border-radius: 8px; }
.ag-err { color: var(--bad); }
.ag-typing { display: flex; gap: 5px; padding: 14px; }
.ag-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: agdot 1s infinite ease-in-out; }
.ag-typing span:nth-child(2) { animation-delay: .15s; } .ag-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes agdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ag-card { background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ag-card-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; color: var(--text-hi); }
.ag-card-h .mono { color: var(--dim); font-size: 12px; }
.ag-probs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-bottom: 10px; }
.ag-probs div { background: var(--inset); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; min-width: 0; }
.ag-probs span { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-probs b { color: var(--text-hi); font: 700 15px var(--mono); }
.ag-probs i { font-style: normal; font-size: 11px; color: var(--muted); }
.ag-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ag-tbl th { text-align: left; color: var(--dim); font-weight: 600; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.ag-tbl td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ag-tbl .r { text-align: right; } .ag-tbl .pos { color: var(--accent-hi); font-weight: 700; }
.ag-sel { color: var(--text-hi); font-weight: 600; } .ag-book { font-size: 10.5px; color: var(--dim); }
.ag-warn { color: var(--warn); cursor: help; }
.ag-none { color: var(--muted); font-size: 12.5px; padding: 4px 2px; }
.ag-foot { color: var(--dim); font-size: 11px; margin-top: 8px; }
.ag-attach { display: flex; gap: 8px; padding: 0 18px; flex-wrap: wrap; }
.ag-thumb { position: relative; } .ag-thumb img { height: 56px; border-radius: 8px; border: 1px solid var(--line-2); }
.ag-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 13px; line-height: 1; }
.ag-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px 18px 6px; border-top: 1px solid var(--line); }
.ag-input textarea { flex: 1; resize: none; background: var(--inset); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--text-hi); font: inherit; min-height: 44px; max-height: 160px; }
.ag-input textarea:focus { outline: none; border-color: var(--accent); }
.ag-file { cursor: pointer; display: inline-flex; align-items: center; height: 44px; }
.ag-send { height: 44px; }
.ag-disc { color: var(--dim); font-size: 11px; padding: 2px 18px 12px; }
@media (max-width: 640px) { .ag { height: calc(100vh - 210px); } .ag-msg { max-width: 100%; } .ag-thread, .ag-input { padding-left: 12px; padding-right: 12px; } }
/* --- team form & context */
.ctx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ctx-h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text-hi); margin-bottom: 8px; }
.ctx-form { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.ctx-form small { margin-left: 6px; color: var(--dim); font-size: 10.5px; }
.ff { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 11px var(--mono); }
.ff.W { background: rgba(198, 242, 78, .2); color: var(--accent-hi); } .ff.D { background: rgba(148, 163, 184, .2); color: var(--text); } .ff.L { background: rgba(248, 113, 113, .18); color: var(--bad); }
.ctx-tim { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.ctx-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 64px; margin-top: 6px; }
.ctx-bars > div { display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; padding-bottom: 14px; }
.ctx-bars i { display: block; width: 9px; border-radius: 3px 3px 0 0; min-height: 2px; }
.ctx-bars i.f { background: var(--accent); } .ctx-bars i.a { background: rgba(248, 113, 113, .6); }
.ctx-bars small { position: absolute; bottom: 0; font-size: 9.5px; color: var(--dim); }
@media (max-width: 760px) { .ctx-grid { grid-template-columns: minmax(0, 1fr); } }
#pageLive .dim { color: var(--dim); }

.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.ag-suggest { cursor: pointer; color: var(--text-hi); }
.ag-suggest:hover { border-color: var(--accent); }

/* ---------- brand footer ---------- */
.brandfoot { margin-top: 28px; padding: 22px 4px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; justify-content: space-between; }
.brandfoot .bf-l { display: flex; gap: 12px; align-items: center; }
.brandfoot .bf-l img { width: 30px; height: 30px; border-radius: 8px; }
.brandfoot .bf-name { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 16px; color: var(--text-hi); letter-spacing: -0.02em; }
.brandfoot .bf-name span { color: var(--accent); }
.brandfoot .bf-tag { font-size: 12px; color: var(--muted); }
.brandfoot .bf-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.brandfoot .bf-links a { color: var(--muted); text-decoration: none; cursor: pointer; }
.brandfoot .bf-links a:hover { color: var(--accent); }
.brandfoot .bf-legal { flex-basis: 100%; font-size: 11px; color: var(--dim); line-height: 1.6; }

/* ---------- first-visit welcome ---------- */
.welcome { position: relative; margin-bottom: 16px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid rgba(198, 242, 78, 0.28);
  background: radial-gradient(600px 260px at 0% 0%, rgba(198, 242, 78, 0.14), transparent 70%), var(--card); overflow: hidden; }
.welcome-in { display: flex; gap: 22px; align-items: flex-start; }
.welcome-mark { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: 0 16px 40px -16px rgba(198, 242, 78, 0.7); }
.welcome h1 { margin: 0 0 8px; font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; color: var(--text-hi); }
.welcome h1 span { color: var(--accent); }
.welcome p { margin: 0 0 16px; max-width: 760px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.welcome-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); }
@media (max-width: 700px) {
  .welcome { padding: 20px 16px; }
  .welcome-in { flex-direction: column; gap: 12px; }
  .welcome-mark { width: 46px; height: 46px; border-radius: 12px; }
  .welcome h1 { font-size: 22px; padding-right: 26px; }
  .welcome-btns .btn { flex: 1 1 auto; }
}
