:root {
  --bg: #060a13; --bg2: #0a101c; --panel: #0e1626; --panel2: #131d31; --hover: #18243b;
  --line: #1c2840; --line2: #273654; --text: #e8edf6; --muted: #8995ab; --dim: #5f6b82;
  --accent: #3b82f6; --accent2: #60a5fa; --accent-bg: rgba(59, 130, 246, .14);
  --good: #10b981; --good-bg: rgba(16, 185, 129, .13); --bad: #f43f5e; --bad-bg: rgba(244, 63, 94, .13);
  --warn: #f59e0b; --warn-bg: rgba(245, 158, 11, .14); --gold: #eab308;
  --us: #3b82f6; --them: #f97316;
  --r: 12px; --r-sm: 8px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 15px; } h4 { font-size: 14px; }
p { margin: .4em 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--panel2); padding: 1px 5px; border-radius: 5px; }
kbd { font-family: var(--mono); font-size: 10px; background: rgba(255,255,255,.08); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--muted); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 12.5px; } .xs { font-size: 11px; }
.mono { font-family: var(--mono); }
.center { text-align: center; } .right { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.accent { color: var(--accent2); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }
.boot.inline { min-height: 40vh; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--text); text-decoration: none !important; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: #34466b; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #2f72e0; }
.btn.danger { background: var(--bad-bg); border-color: rgba(244,63,94,.4); color: #fda4af; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; justify-content: center; height: 42px; margin-top: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--muted); text-decoration: none !important; }
.icon-btn:hover { background: var(--panel2); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.link { background: none; border: 0; padding: 0; color: var(--accent2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link.xs { font-size: 11px; font-weight: 500; }
.input { width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; transition: border-color .12s; }
textarea.input { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { outline: none; border-color: var(--accent); }
.input.sm { height: 30px; font-size: 12.5px; padding: 0 9px; }
select.input.sm { padding-right: 24px; }
textarea.input.sm { height: auto; padding: 6px 9px; }
.input.num { text-align: right; width: 80px; }
.input.code { font-family: var(--mono); letter-spacing: .15em; text-transform: uppercase; font-size: 16px; }
.input:disabled { opacity: .7; }
.title-input { font-size: 22px; font-weight: 700; height: 48px; border-color: transparent; background: transparent; padding: 0 4px; margin-bottom: 6px; }
.title-input:hover { border-color: var(--line2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.field > .input, .field > select, .field > textarea { color: var(--text); font-weight: 400; }
.field-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 16px 0 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 8px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.toggle input { accent-color: var(--accent); }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 1px 3px rgba(0,0,0,.4); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); white-space: nowrap; }
.chip.xs { height: 18px; font-size: 10.5px; padding: 0 6px; }
.chip.muted { color: var(--muted); }
.chip.good { background: var(--good-bg); border-color: rgba(16,185,129,.35); color: #6ee7b7; }
.chip.bad { background: var(--bad-bg); border-color: rgba(244,63,94,.35); color: #fda4af; }
.chip.warn { background: var(--warn-bg); border-color: rgba(245,158,11,.35); color: #fcd34d; }
.chip.us { background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.4); }
.chip.them { background: rgba(249,115,22,.18); border-color: rgba(249,115,22,.4); }
.chip.match { color: #93c5fd; } .chip.training { color: #6ee7b7; } .chip.scout { color: #fdba74; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; text-align: left; }
.chip-btn:hover { border-color: var(--accent); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; flex: none; font-weight: 700; color: #fff; background: hsl(var(--av) 55% 42%); letter-spacing: .02em; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-t { font-weight: 700; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty.small { padding: 24px 12px; }
.empty .btn { margin-top: 12px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); margin-bottom: 16px; font-size: 13px; }
.banner.info { background: linear-gradient(90deg, rgba(59,130,246,.15), rgba(59,130,246,.04)); border-color: rgba(59,130,246,.35); }
.banner > span { flex: 1; }

/* ---------- toasts / modal / popover ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #1c2840; border: 1px solid var(--line2); color: var(--text); padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 13px; max-width: min(560px, 92vw); animation: tin .18s ease-out; transition: opacity .3s, transform .3s; }
.toast.bad { border-color: rgba(244,63,94,.5); }
.toast.good { border-color: rgba(16,185,129,.5); }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast-btn { background: none; border: 0; color: var(--accent2); font-weight: 700; padding: 0; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.modal-wrap { position: fixed; inset: 0; background: rgba(2,5,12,.7); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal.wide { width: min(760px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 8px 18px 12px; overflow: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.modal-f .left { margin-right: auto; }
.pop { position: fixed; z-index: 150; min-width: 220px; max-width: 340px; background: #142037; border: 1px solid var(--line2); border-radius: 10px; padding: 5px; box-shadow: 0 16px 40px rgba(0,0,0,.55); animation: fade .1s; }
.pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 7px; text-align: left; font-size: 13px; color: var(--text); }
.pop button:hover:not(:disabled) { background: var(--hover); }
.pop button.danger { color: #fda4af; }
.pop button .ic { color: var(--muted); }
.pop hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 2px; }
.pop-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 6px 10px 4px; font-weight: 700; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; height: 100vh; }
.side { display: flex; flex-direction: column; background: var(--bg2); border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: transparent; border-radius: 10px; text-align: left; width: 100%; margin-bottom: 10px; }
.brand:hover { background: var(--panel); }
.crest { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, #1e3a8a, #3b82f6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); flex: none; }
.crest.big { width: 46px; height: 46px; font-size: 16px; border-radius: 12px; }
.brand-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.brand-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.brand-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 700; padding: 16px 10px 6px; }
.navlink { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: #c3cbda; font-weight: 500; text-decoration: none !important; position: relative; }
.navlink:hover { background: var(--panel); color: var(--text); }
.navlink.on { background: var(--panel2); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.navlink.on .ic { color: var(--accent2); }
.count { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 18px; }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.ask-btn { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid rgba(96,165,250,.35); background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(139,92,246,.12)); font-weight: 600; margin-bottom: 6px; }
.ask-btn:hover { border-color: var(--accent2); }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none !important; margin-top: 4px; }
.me-btn:hover, .me-btn.on { background: var(--panel); }
.main { overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; background: rgba(6,10,19,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-t { font-size: 15px; font-weight: 600; }
.save { font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.save::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.save.saving::before { background: var(--warn); animation: pulse 1s infinite; }
.save.error { color: #fda4af; } .save.error::before { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }
.mobile-only { display: none; }
.scrim { display: none; }
.view { flex: 1; }
.page { max-width: 1240px; margin: 0 auto; padding: 26px 28px 60px; }
.page.narrow { max-width: 900px; }
.page-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h p { margin: 4px 0 0; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { max-width: 260px; }

/* ---------- cards / grids ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; min-width: 0; }
.card > h3 { margin-bottom: 12px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; }
.card.tint-good { background: linear-gradient(160deg, rgba(37,99,235,.18), var(--panel) 70%); border-color: rgba(59,130,246,.35); }
.card.tint-bad { background: linear-gradient(160deg, rgba(225,29,72,.16), var(--panel) 70%); border-color: rgba(244,63,94,.32); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tiles.compact { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.card .tile { background: var(--bg2); }
.tile-l { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.tile-v { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.divider-t { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); }
.divider-t::before, .divider-t::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.sub-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 16px 0 8px; }
.table-wrap { overflow-x: auto; }
.tbl, .kpi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .kpi-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td, .kpi-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover, .kpi-table tbody tr:hover { background: rgba(255,255,255,.02); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover, .sorted { color: var(--text) !important; }
.clickable { cursor: pointer; }
.jn { font-family: var(--mono); color: var(--muted); width: 36px; }
td.pl a { color: var(--text); font-weight: 500; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.hbar-l b { font-variant-numeric: tabular-nums; }
.hbar-l small { color: var(--muted); font-weight: 500; }
.hbar-t { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.hbar-t div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #38bdf8); }
.hbar.good .hbar-t div { background: linear-gradient(90deg, #059669, #34d399); }
.hbar.bad .hbar-t div { background: linear-gradient(90deg, #be123c, #fb7185); }
.big-n { font-size: 34px; font-weight: 700; }
.details summary { cursor: pointer; font-weight: 600; }
.legend { display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg.good { background: var(--good); } .lg.bad { background: var(--bad); } .lg.a { background: var(--accent); } .lg.b { background: var(--them); } .lg.bench { background: var(--gold); border-radius: 2px; height: 3px; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--line2); stroke-dasharray: 5 5; }
.chart .axl { fill: var(--muted); font-size: 13px; font-family: var(--mono); }
.chart .tkline { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .tkline.strong { stroke: var(--line2); }
.chart .mline { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.chart .mline.good { stroke: var(--good); } .chart .mline.bad { stroke: var(--bad); }
.chart .hit { cursor: crosshair; }
.chart.line .ln { fill: none; stroke-width: 2.6; stroke: var(--accent); }
.chart.line .ln.b { stroke: var(--them); stroke-dasharray: 6 5; }
.chart.line .pt { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart.line .pt.b { fill: var(--them); }
.chart .bench { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 2 4; }
.chart-card { padding: 16px 16px 12px; }
.spark polyline { stroke: var(--accent2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent2); }
.periods { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; }
.period { text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pbar { height: 90px; width: 100%; max-width: 34px; background: var(--bg2); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.pbar span { display: block; width: 100%; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 6px 6px 0 0; }
.period b { font-size: 12px; } .period small { font-size: 10px; color: var(--muted); font-family: var(--mono); }

/* pitch */
.pitch { width: 100%; height: auto; display: block; }
.pitch .pitch-bg { fill: #0b3d2c; }
.pitch .ingoal { fill: #0a3326; }
.pitch .pl { fill: none; stroke: rgba(255,255,255,.55); stroke-width: .35; }
.pitch .pl.thin { stroke: rgba(255,255,255,.28); stroke-width: .25; }
.pitch .pt-l { fill: rgba(255,255,255,.6); font-size: 3px; font-family: var(--mono); }
.pitch .pt-l.dir { font-size: 2.8px; fill: rgba(255,255,255,.75); }
.pitch .dot { fill: #e2e8f0; stroke: #0b3d2c; stroke-width: .3; opacity: .9; }
.pitch .dot.good { fill: #34d399; } .pitch .dot.bad { fill: #fb7185; }
.pitch .heat { fill: #facc15; }
.pitch.interactive .pick { cursor: crosshair; }
.pitch.interactive:hover .pitch-bg { fill: #0d4733; }

/* ---------- session shell ---------- */
.sshell { display: grid; grid-template-columns: 84px 1fr; height: 100vh; }
.rail { display: flex; flex-direction: column; align-items: stretch; gap: 4px; background: var(--bg2); border-right: 1px solid var(--line); padding: 10px 8px; overflow-y: auto; }
.rail-i { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none !important; border: 0; background: transparent; text-align: center; }
.rail-i:hover { color: var(--text); background: var(--panel); }
.rail-i.on { color: #fff; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); }
.rail-i.on .ic { color: var(--accent2); }
.rail-i.back { margin-bottom: 8px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.smain { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.stop { display: flex; align-items: center; gap: 14px; padding: 10px 22px; border-bottom: 1px solid var(--line); min-height: 60px; }
.stop-t { min-width: 0; }
.stop-t h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-t small { color: var(--muted); }
.scoreline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; white-space: nowrap; }
.scoreline b { color: var(--text); font-size: 18px; font-family: var(--mono); }
.sview { flex: 1; min-height: 0; overflow: auto; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { padding: 56px; background: radial-gradient(circle at 20% 20%, rgba(59,130,246,.25), transparent 50%), radial-gradient(circle at 80% 90%, rgba(16,185,129,.12), transparent 50%), var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand b { display: block; font-size: 18px; } .auth-brand small { color: var(--muted); }
.auth-hero h1 { font-size: 40px; line-height: 1.12; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; color: #c3cbda; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points .ic { color: var(--accent2); margin-top: 2px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-tabs { margin-bottom: 22px; align-self: flex-start; }
.auth-foot { margin-top: 28px; text-align: center; }
.field small { font-weight: 400; }
.auth-form h2 { margin-bottom: 2px; }
.auth-form > p { margin-bottom: 18px; }
.form-err { background: var(--bad-bg); border: 1px solid rgba(244,63,94,.4); color: #fecdd3; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin: 6px 0; }
.code-info { margin-bottom: 6px; }
.code-ok { display: flex; align-items: center; gap: 8px; color: #6ee7b7; background: var(--good-bg); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.code-bad { color: #fda4af; font-size: 13px; margin-bottom: 10px; }

/* ---------- video view ---------- */
.vv { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; min-height: 0; }
.vv-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; gap: 10px; }
.stage-wrap { background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); flex: none; }
.stage-wrap:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.stage-wrap:fullscreen .stage { flex: 1; aspect-ratio: auto; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; max-height: 62vh; width: 100%; cursor: pointer; }
.is-viewer .stage { max-height: 70vh; }
.phost, .phost > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.phost video { object-fit: contain; background: #000; }
.phost iframe { pointer-events: none; border: 0; }
.draw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.draw.on { pointer-events: auto; cursor: crosshair; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(0,0,0,.75); color: #fecdd3; font-weight: 600; }
.stage-badge { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(10,16,28,.88); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; font-size: 13px; cursor: default; width: fit-content; max-width: calc(100% - 24px); }
.recap-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(37,99,235,.92); color: #fff; border-radius: 999px; padding: 5px 6px 5px 14px; font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; cursor: default; }
.recap-badge button { border: 0; background: rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.drawbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 4px; background: rgba(10,16,28,.92); border: 1px solid var(--line2); border-radius: 10px; padding: 5px; flex-wrap: wrap; max-width: calc(100% - 24px); cursor: default; }
.drawbar button { border: 0; background: transparent; padding: 5px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: #cbd5e1; }
.drawbar button:hover { background: var(--hover); }
.drawbar button.on { background: var(--panel2); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.drawbar button.primary { background: var(--accent); color: #fff; }
.drawbar .swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.4); }
.drawbar .swatch.on { box-shadow: 0 0 0 2px #fff; }
.drawbar .sep { width: 1px; height: 20px; background: var(--line2); margin: 0 4px; }
.controls { background: var(--bg2); padding: 8px 12px 10px; }
.timeline { padding: 6px 0 8px; cursor: pointer; touch-action: none; }
.tl-track { position: relative; height: 8px; background: #1a2438; border-radius: 99px; }
.tl-prog { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(96,165,250,.45); border-radius: 99px; }
.tl-marks { position: absolute; inset: -3px 0; pointer-events: none; }
.mk { position: absolute; top: 2px; width: 2px; height: 10px; margin-left: -1px; background: var(--us); opacity: .8; border-radius: 1px; }
.mk.them { background: var(--them); }
.mk.big { width: 4px; height: 14px; top: 0; background: #fde047; opacity: 1; }
.tl-head { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(59,130,246,.5); }
.ctrl-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; color: #cbd5e1; }
.cbtn:hover { background: var(--panel2); color: #fff; }
.cbtn.on { background: var(--accent-bg); color: var(--accent2); }
.cbtn.play { width: 42px; height: 42px; background: #fff; color: #0b1220; border-radius: 50%; margin: 0 4px; }
.cbtn.play:hover { background: #e2e8f0; color: #0b1220; }
.time { font-family: var(--mono); font-size: 12.5px; color: #cbd5e1; margin-left: 10px; white-space: nowrap; }
.mclock { font-family: var(--mono); font-size: 12px; color: var(--accent2); margin-left: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; font-size: 12.5px; }
.pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cselect { height: 32px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; color: var(--text); padding: 0 6px; font: inherit; font-size: 12.5px; }
.live { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.live b { color: var(--text); }
.live-score { font-family: var(--mono); font-size: 16px; }
.codepanel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.codepanel.stepping { border-color: rgba(96,165,250,.5); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.cp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.team-seg button.on.us { background: var(--us); color: #fff; }
.team-seg button.on.them { background: var(--them); color: #fff; }
.hint { font-size: 11.5px; color: var(--dim); }
.cp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; }
.cp-gl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 700; margin-bottom: 5px; }
.cp-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.tagbtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); font-size: 12.5px; font-weight: 600; transition: transform .05s, background .1s; }
.tagbtn:hover { background: var(--hover); border-color: #3a4f78; }
.tagbtn:active { transform: scale(.97); }
.step-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.step-l { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opts.grow .input { flex: 1; min-width: 200px; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); font-weight: 600; }
.opt:hover { background: var(--accent-bg); border-color: var(--accent); }
.opt.ghost { color: var(--muted); }
.opt .input.sm, .opts .input.sm { width: 90px; }
.jerseys { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.jersey { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); line-height: 1.15; }
.jersey b { font-size: 16px; font-family: var(--mono); }
.jersey small { font-size: 10px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.jersey.sub { opacity: .8; }
.jersey:hover { background: var(--accent-bg); border-color: var(--accent); }
.buf { font-family: var(--mono); color: var(--accent2); font-size: 15px; min-width: 20px; display: inline-block; }
.pitch-pick { max-width: 560px; }
.viewer-tip { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.vv-side { border-left: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; }
.side-head { padding: 12px; border-bottom: 1px solid var(--line); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filters .input[data-f="q"] { grid-column: 1 / -1; }
.side-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; }
.evlist { flex: 1; overflow-y: auto; padding: 6px; }
.ev { display: flex; align-items: center; gap: 2px; border-radius: 9px; padding: 2px 2px 2px 0; border-left: 3px solid transparent; }
.ev:hover { background: var(--panel); }
.ev.good { border-left-color: rgba(16,185,129,.6); }
.ev.bad { border-left-color: rgba(244,63,94,.6); }
.ev.now { background: var(--accent-bg); box-shadow: inset 0 0 0 1px rgba(96,165,250,.35); }
.ev-main { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; }
.ev-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.tdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.tdot.us { background: var(--us); } .tdot.them { background: var(--them); } .tdot.good { background: var(--good); } .tdot.bad { background: var(--bad); }
.ev-icons { display: flex; gap: 3px; color: var(--gold); }
.ev-cm { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--dim); padding: 4px 6px; border-radius: 6px; font-size: 11px; }
.ev-cm.has { color: var(--accent2); }
.ev-cm:hover { background: var(--panel2); color: var(--text); }
.clip { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.clip .back { align-self: flex-start; }
.clip-t { font-size: 17px; font-weight: 700; }
.clip-h .chip { margin: 6px 4px 0 0; }
.clip-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.coach-note { display: flex; gap: 10px; background: var(--warn-bg); border: 1px solid rgba(245,158,11,.3); border-radius: 10px; padding: 10px 12px; color: #fde68a; }
.coach-note p { margin: 2px 0 0; color: var(--text); }
.thread { display: flex; flex-direction: column; gap: 12px; }
.cmt { display: flex; gap: 10px; }
.cmt-b { flex: 1; min-width: 0; }
.cmt-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.cmt-b p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.comment-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.comment-box.sm { flex-direction: row; align-items: center; }
.comment-box.sm .input { flex: 1; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100%; }
.subnav { border-right: 1px solid var(--line); padding: 12px 10px 30px; background: var(--bg2); overflow-y: auto; }
.subnav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 700; padding: 14px 10px 6px; }
.subnav-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #c3cbda; font-size: 13.5px; text-decoration: none !important; }
.subnav-i:hover { background: var(--panel); color: var(--text); }
.subnav-i.on { background: var(--panel2); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.subnav-i.on .ic { color: var(--accent2); }
.ic-sp { width: 16px; display: inline-block; }
.stats-main { padding: 20px 26px 50px; min-width: 0; }
.stats-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.scorecard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-bottom: 16px; }
.sc-team { display: flex; align-items: baseline; gap: 12px; }
.sc-team.r { justify-content: flex-end; flex-direction: row-reverse; }
.sc-team span { font-weight: 600; color: var(--muted); }
.sc-team b { font-size: 36px; font-family: var(--mono); }
.sc-team small { color: var(--dim); }
.sc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.sk { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sk:last-child { border-bottom: 0; }
.sk-l { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.tint-good .sk-l .ic { color: var(--accent2); } .tint-bad .sk-l .ic { color: var(--bad); }
.sk-v { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sk b { font-size: 18px; font-family: var(--mono); }
.exec { display: flex; flex-direction: column; gap: 8px; }
.exec-h { display: flex; justify-content: space-between; align-items: center; }
.exec .num { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 7px; }
.exec p { color: #c3cbda; flex: 1; }
.ask-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.kpi-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kpi-table td { padding: 13px 10px; }
.kpi-table .bar-col { width: 38%; }
.dbar { position: relative; height: 12px; }
.dbar .mid { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1px; background: var(--gold); opacity: .7; }
.dbar span { position: absolute; top: 2px; height: 8px; border-radius: 99px; }
.dbar span.good { background: linear-gradient(90deg, #059669, #34d399); }
.dbar span.bad { background: linear-gradient(90deg, #fb7185, #be123c); }
.moments { display: flex; flex-direction: column; }
.moment { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; color: var(--text); text-decoration: none !important; border-bottom: 1px solid var(--line); }
.moment:last-child { border-bottom: 0; }
.moment:hover { background: var(--panel2); }
.mm { font-family: var(--mono); color: var(--muted); width: 38px; flex: none; }
.clips-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.clips-players { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.clip-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; text-align: left; }
.clip-p:hover { background: var(--panel); }
.clip-p.on { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); }
.clip-p .jn { width: 26px; } .clip-p span:nth-child(2) { flex: 1; } .clip-p small { color: var(--muted); }
.clips-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.clip-group { margin-bottom: 14px; }
.clip-gh { display: flex; gap: 8px; margin-bottom: 6px; }
.clip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.clip-chip { font-size: 12px; padding: 4px 9px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); text-decoration: none !important; }
.clip-chip:hover { border-color: var(--accent); }
.clip-chip.good { border-color: rgba(16,185,129,.45); } .clip-chip.bad { border-color: rgba(244,63,94,.45); }
.podiums { margin-bottom: 8px; }
.podium { position: relative; border-radius: 16px; padding: 26px 18px 16px; border: 2px solid; margin-bottom: 16px; }
.podium.p1 { border-color: #b8860b; background: linear-gradient(160deg, rgba(234,179,8,.22), rgba(14,22,38,.95)); }
.podium.p2 { border-color: #64748b; background: linear-gradient(160deg, rgba(148,163,184,.18), rgba(14,22,38,.95)); }
.podium.p3 { border-color: #b45309; background: linear-gradient(160deg, rgba(234,88,12,.2), rgba(14,22,38,.95)); }
.place { position: absolute; top: -12px; left: 18px; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--bg); border: 1px solid currentColor; }
.p1 .place { color: #facc15; } .p2 .place { color: #cbd5e1; } .p3 .place { color: #fb923c; }
.pod-h { display: flex; align-items: center; gap: 12px; }
.pod-h > div:nth-child(2) { flex: 1; min-width: 0; }
.pod-h b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.pod-h small { color: var(--muted); }
.pts { text-align: right; } .pts b { font-size: 24px; font-family: var(--mono); } .pts small { display: block; color: var(--muted); font-size: 10px; }
.pod-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; margin-top: 16px; text-align: center; }
.pod-g b { display: block; font-size: 18px; } .pod-g small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mover { color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; gap: 10px; }
.mover:hover { border-color: var(--line2); }
.mover-h { display: flex; align-items: center; gap: 10px; }
.mover-h > div:nth-child(2) { flex: 1; min-width: 0; } .mover-h b { display: block; } .mover-h small { color: var(--muted); }
.mover-r { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- sessions ---------- */
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; transition: border-color .12s, transform .12s; }
.scard:hover { border-color: var(--line2); transform: translateY(-1px); }
.scard-main { padding: 16px; color: var(--text); text-decoration: none !important; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.scard-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.scard-t { font-size: 16px; font-weight: 700; }
.scard-b { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.score-pill { font-family: var(--mono); font-weight: 600; background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 2px 9px; }
.score-pill.good { border-color: rgba(16,185,129,.5); color: #6ee7b7; } .score-pill.bad { border-color: rgba(244,63,94,.45); color: #fda4af; }
.src { display: inline-flex; align-items: center; gap: 5px; }
.scard-f { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding: 6px 8px; }
.scard-f a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; color: #c3cbda; font-weight: 600; font-size: 12.5px; text-decoration: none !important; }
.scard-f a:hover { background: var(--panel2); color: #fff; }
.scard-f .icon-btn { margin-left: auto; }
.src-tabs { margin-bottom: 12px; }
.src-pane[hidden] { display: none; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 2px dashed var(--line2); border-radius: var(--r); cursor: pointer; background: var(--bg2); transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop.small { padding: 16px; }
.drop small { color: var(--muted); max-width: 420px; }
.drop-i { color: var(--accent2); }
.steps { margin: 0 0 12px; padding-left: 20px; color: #c3cbda; }
.steps li { margin: 4px 0; }
.upload-dock { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.upload-dock[hidden] { display: none; }
.up { display: grid; grid-template-columns: 1fr 110px auto; align-items: center; gap: 10px; background: #142037; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 420px; }
.up span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.up-bar { height: 6px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.up-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .2s; }

/* ---------- squad / profile ---------- */
.avail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.avail-c { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; }
.avail-c b { font-size: 22px; } .avail-c span { font-size: 12px; color: var(--muted); }
.avail-c.good b { color: var(--good); } .avail-c.warn b { color: var(--warn); } .avail-c.bad b { color: var(--bad); } .avail-c.muted b { color: var(--muted); }
.avail-c.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.avail.mini { gap: 6px; margin-bottom: 10px; } .avail.mini .avail-c { padding: 8px 10px; background: var(--bg2); } .avail.mini b { font-size: 17px; } .avail.mini span { font-size: 10.5px; }
.pl-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.status-sel { width: auto; min-width: 150px; }
.status-sel.good { border-color: rgba(16,185,129,.35); } .status-sel.warn { border-color: rgba(245,158,11,.45); } .status-sel.bad { border-color: rgba(244,63,94,.45); }
.profile-h { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.profile-chips { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.goal { padding: 12px 0; border-bottom: 1px solid var(--line); }
.goal:last-child { border-bottom: 0; }
.goal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.goal-v { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.goal-bar { height: 8px; background: var(--bg2); border-radius: 99px; margin: 8px 0; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); border-radius: 99px; }
.goal.hit .goal-bar span { background: linear-gradient(90deg, #059669, #34d399); }
.goal-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lineup tr.grp td { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; background: var(--bg2); }

/* ---------- season / results / leaders ---------- */
.form { display: inline-flex; gap: 4px; }
.f { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 11.5px; font-weight: 800; font-style: normal; background: var(--panel2); color: var(--muted); flex: none; }
.f.W { background: var(--good-bg); color: #6ee7b7; } .f.L { background: var(--bad-bg); color: #fda4af; } .f.D { background: var(--warn-bg); color: #fcd34d; }
.f.big { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.results { display: flex; flex-direction: column; }
.result { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; border-radius: 6px; }
.result:last-child { border-bottom: 0; }
.result:hover { background: var(--panel2); }
.r-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.r-s { font-family: var(--mono); font-weight: 700; }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 16px; }
.leaders.compact { grid-template-columns: 1fr; margin-top: 12px; }
.leader { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--text); text-decoration: none !important; }
a.leader:hover { background: var(--panel2); }
.rank { width: 20px; color: var(--dim); font-family: var(--mono); text-align: right; }
.ld-n { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ld-v { font-family: var(--mono); font-size: 16px; }

/* ---------- opposition ---------- */
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.opp { color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; gap: 10px; }
.opp:hover { border-color: var(--line2); }
.opp-h { display: flex; align-items: center; gap: 10px; } .opp-h b { display: block; }
.opp .crest { background: linear-gradient(135deg, #7c2d12, #f97316); }

/* ---------- presentations ---------- */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; padding: 0; }
.pcard-main { padding: 16px; color: var(--text); text-decoration: none !important; flex: 1; }
.pcard-t { font-weight: 700; font-size: 15px; }
.pcard-f { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 10px 12px; }
.aud-row { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 16px; flex-wrap: wrap; font-size: 13px; }
.aud-picker { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.aud-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 10px; max-height: 180px; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.aud-users[hidden] { display: none; }
.pitems { display: flex; flex-direction: column; gap: 8px; }
.pitem { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.pitem .num { font-family: var(--mono); color: var(--muted); width: 22px; text-align: right; padding-top: 2px; }
.pitem-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pitem-t { display: flex; align-items: center; gap: 8px; }
.pitem-b textarea { margin-top: 4px; }
.pitem-a { display: flex; gap: 2px; }
.present { display: flex; flex-direction: column; height: 100vh; background: #000; }
.pr-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.pr-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.pr-stage-wrap { display: flex; flex-direction: column; min-height: 0; padding: 14px; gap: 10px; background: var(--bg); }
.pr-stage-wrap:fullscreen { padding: 0; background: #000; }
.pr-stage { position: relative; flex: 1; min-height: 200px; background: #000; border-radius: var(--r); overflow: hidden; }
.pr-cap { min-height: 60px; }
.pr-n { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.pr-t { font-size: 20px; font-weight: 700; }
.pr-s { color: var(--muted); font-size: 13px; }
.pr-note { margin-top: 8px; background: var(--warn-bg); border: 1px solid rgba(245,158,11,.3); color: #fde68a; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.pr-ctrl { display: flex; align-items: center; gap: 6px; }
.pr-list { background: var(--bg2); border-left: 1px solid var(--line); overflow-y: auto; padding: 8px; }
.pr-item { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 8px; }
.pr-item:hover { background: var(--panel); }
.pr-item.on { background: var(--accent-bg); box-shadow: inset 0 0 0 1px rgba(96,165,250,.4); }
.pr-item .num { font-family: var(--mono); color: var(--muted); width: 20px; }
.pr-item small { display: block; color: var(--muted); font-size: 11.5px; }

/* ---------- classroom ---------- */
.stream-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px; border-radius: 16px; margin-bottom: 18px; min-height: 150px; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 40%), linear-gradient(120deg, #1e3a8a, #2563eb 55%, #0ea5e9); }
.stream-hero h2 { font-size: 28px; color: #fff; } .stream-hero p { color: rgba(255,255,255,.85); margin: 2px 0 0; }
.hero-code { background: rgba(2,6,23,.35); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hero-code small { color: rgba(255,255,255,.8); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-code b { font-family: var(--mono); font-size: 22px; letter-spacing: .14em; color: #fff; }
.stream-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.todo { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.todo small { font-size: 12px; color: var(--muted); } .todo small.warn { color: var(--warn); } .todo small.bad { color: var(--bad); } .todo small.good { color: var(--good); }
.composer-r { display: flex; gap: 12px; }
.composer-f { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.composer-f select { max-width: 320px; }
.post-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-h b { margin-right: 4px; } .post-h small { display: block; }
.post-t { white-space: pre-wrap; font-size: 14.5px; margin: 0 0 10px; }
.post .thread { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.attach { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); color: var(--text); text-decoration: none !important; margin-bottom: 10px; }
.attach:hover { border-color: var(--accent); }
.attach span { display: flex; flex-direction: column; } .attach small { color: var(--muted); }
.attach .ic { color: var(--accent2); }
.attach.big { padding: 14px 16px; }
.attach-row { display: grid; gap: 10px; margin: 14px 0 18px; }
.cw-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cw { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none !important; margin: 0; padding: 14px 16px; }
.cw:hover { border-color: var(--line2); }
.cw-i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent2); flex: none; }
.cw-i.big { width: 52px; height: 52px; }
.cw-b { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cw-stats { display: flex; gap: 18px; }
.cw-stats span { display: flex; flex-direction: column; align-items: center; } .cw-stats b { font-size: 18px; } .cw-stats small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cw-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.cw-instr { white-space: pre-wrap; color: #c3cbda; font-size: 14.5px; }
.sec-h { margin: 10px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stars { display: flex; gap: 4px; margin-top: 4px; }
.star { border: 0; background: transparent; font-size: 26px; color: var(--line2); padding: 0 2px; line-height: 1; }
.star.on { color: var(--gold); }
.feedback { display: flex; gap: 10px; background: var(--good-bg); border: 1px solid rgba(16,185,129,.3); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.feedback p { margin: 4px 0 0; white-space: pre-wrap; }
.answer { padding: 10px 0; border-bottom: 1px solid var(--line); } .answer p { white-space: pre-wrap; color: #c3cbda; margin: 4px 0 0; }
.q-row { display: flex; gap: 6px; margin-bottom: 6px; }
.codes .code-card { display: flex; flex-direction: column; gap: 6px; }
.code-card small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.code-big { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .16em; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.person:last-child { border-bottom: 0; }
.person-l { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.person-l span { display: flex; flex-direction: column; } .person-l small { font-size: 12px; }
.person-a { display: flex; gap: 6px; align-items: center; }
.person-a select { width: 220px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; border-radius: 6px; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--panel2); }
.notif span { flex: 1; }
.notif.new { background: var(--accent-bg); }
.notif .ic { color: var(--accent2); }

/* ---------- settings ---------- */
.set-h { margin-bottom: 12px; } .set-h p { margin: 2px 0 0; }
.ai-status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); margin-bottom: 14px; font-size: 13px; }
.ai-status.ok { background: var(--good-bg); border-color: rgba(16,185,129,.35); }
.ai-status.ok .ic { color: var(--good); }
.code-form { align-items: end; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }

/* ---------- home ---------- */
.hello { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hello h1 { margin: 4px 0 2px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent2); font-weight: 700; font-family: var(--mono); }
.setup .progress { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin: 2px 0 14px; }
.setup .progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.steps-list { display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; padding: 10px 12px; border-radius: 10px; align-items: flex-start; }
.step.next { background: var(--panel2); }
.step-c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; margin-top: 1px; }
.step.done .step-c { border-color: var(--good); color: var(--good); }
.step.done .step-b b { color: var(--muted); font-weight: 500; }
.step-b p { margin: 2px 0 6px; } .step-b .btn { margin-top: 6px; }
.latest { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.latest > div { display: flex; flex-direction: column; }
.latest-s { font-family: var(--mono); font-size: 24px; }
.latest-s small { font-size: 11px; color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mini-kpis div { background: var(--bg2); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.mini-kpis small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mini-kpis b { font-size: 16px; font-variant-numeric: tabular-nums; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; border-radius: 6px; }
.mini-row:last-child { border-bottom: 0; }
a.mini-row:hover { background: var(--panel2); }
.mini-row > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mini-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row small.warn { color: var(--warn); } .mini-row small.bad { color: var(--bad); }
.mini-row .ic { color: var(--accent2); }
.me-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.me-card > div { display: flex; flex-direction: column; }
.goal-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; }
.goal-dot.good { border-color: var(--good); color: var(--good); }
.mini-post { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-post p { margin: 2px 0 0; color: #c3cbda; white-space: pre-wrap; }

/* ---------- ask drawer ---------- */
.ask { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--panel); border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0,0,0,.5); z-index: 90; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; }
.ask.open { transform: none; }
.ask-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.ask-h .ic { color: var(--accent2); }
.ask-h b { display: block; } .ask-h small { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.ask-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ask-empty { text-align: center; color: var(--muted); margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ask-empty > .ic { color: var(--accent2); }
.ask-sugg { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.ai { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line2); border-bottom-left-radius: 4px; }
.msg.ai p { margin: 0 0 8px; } .msg.ai p:last-child { margin: 0; }
.msg.ai ul, .msg.ai ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.ai h4 { margin: 8px 0 4px; }
.msg.err { border-color: rgba(244,63,94,.45); color: #fecdd3; }
.msg.thinking { display: flex; gap: 5px; padding: 14px; }
.msg.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.msg.thinking span:nth-child(2) { animation-delay: .15s; } .msg.thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.ask-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ask-f textarea { flex: 1; }
.ask-f .btn { height: 42px; }
.ask-foot { padding: 0 14px 10px; }
.import-preview { margin-top: 12px; }

/* ---------- printable report (light) ---------- */
.light-page { background: #fff; color: #0f172a; min-height: 100vh; }
.report { max-width: 900px; margin: 0 auto; padding: 24px 32px 60px; color: #0f172a; }
.report .muted { color: #64748b; }
.report-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.report .btn { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
.report .btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.rep-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 3px solid #0f172a; padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.rep-club { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #2563eb; font-weight: 700; }
.rep-h h1 { font-size: 28px; color: #0f172a; }
.rep-score { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rep-score b { font-size: 32px; font-family: var(--mono); }
.report h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; color: #0f172a; }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.report ul { margin: 0; padding-left: 18px; }
.rep-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-t th, .rep-t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; }
.rep-t th { font-size: 11px; text-transform: uppercase; color: #64748b; }
.rep-t.small { font-size: 12px; }
.rep-t .good { color: #047857; font-weight: 700; } .rep-t .bad { color: #be123c; font-weight: 700; }
.report .chart .gl { stroke: #e2e8f0; } .report .chart .axl { fill: #64748b; } .report .chart .zero { stroke: #94a3b8; }
.rep-moments { font-size: 12px; color: #475569; margin-top: 6px; }
.rep-f { margin-top: 30px; font-size: 11px; color: #94a3b8; border-top: 1px solid #e2e8f0; padding-top: 10px; }
.teamsheet .jn { width: 40px; font-weight: 700; color: #0f172a; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .no-print, #toasts, .ask, .upload-dock { display: none !important; }
  .report { padding: 0; max-width: none; }
  .avoid-break { break-inside: avoid; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .vv { grid-template-columns: minmax(0, 1fr) 320px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: 264px; transform: translateX(-102%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .side.open ~ .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .page { padding: 18px 16px 50px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px 24px; }
  .auth-hero h1 { font-size: 28px; }
  .auth-card { padding: 28px 20px 48px; }
  .sshell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .rail { order: 2; flex-direction: row; padding: 4px; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; }
  .rail .spacer { display: none; }
  .rail-i { flex: 1; min-width: 64px; padding: 6px 4px; }
  .rail-i.back { margin: 0; border: 0; }
  .smain { height: auto; min-height: 0; }
  .sshell { height: 100vh; }
  .stop { padding: 8px 12px; flex-wrap: wrap; }
  .vv { grid-template-columns: 1fr; height: auto; }
  .vv-main { overflow: visible; padding: 10px; }
  .vv-side { border-left: 0; border-top: 1px solid var(--line); max-height: 70vh; }
  .stats { grid-template-columns: 1fr; }
  .subnav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .subnav-h { display: none; }
  .subnav-i { white-space: nowrap; flex: none; }
  .subnav-i .ic, .subnav-i .ic-sp { display: none; }
  .stats-main { padding: 16px 14px 40px; }
  .scorecard { grid-template-columns: 1fr; text-align: center; }
  .sc-team, .sc-team.r { justify-content: center; flex-direction: row; }
  .kpi-table .bar-col { display: none; }
  .clips-layout { grid-template-columns: 1fr; }
  .clips-players { flex-direction: row; overflow-x: auto; max-height: none; }
  .clip-p { flex: none; }
  .stream-grid { grid-template-columns: 1fr; }
  .stream-side { order: 2; }
  .pr-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pr-list { border-left: 0; border-top: 1px solid var(--line); max-height: 30vh; }
  .avail { grid-template-columns: repeat(2, 1fr); }
  .cw { flex-wrap: wrap; }
  .cw-stats { width: 100%; justify-content: space-around; }
  .rep-grid { grid-template-columns: 1fr; }
  .mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .tiles.compact { grid-template-columns: repeat(3, 1fr); }
  .pod-g { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  h1 { font-size: 24px; }
  .hello .btn { flex: 1; justify-content: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .time { margin-left: 4px; }
  .mclock { display: none; }
}

/* ---------- AI scan & suggestions ---------- */
.pill.ai { border-color: rgba(96,165,250,.45); background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(139,92,246,.14)); }
.pill.ai:hover { border-color: var(--accent2); }
.side-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.side-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 8px 6px 9px; font-weight: 600; font-size: 12.5px; border-bottom: 2px solid transparent; }
.side-tabs button:hover { color: var(--text); }
.side-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.side-tabs .count { margin-left: 0; }
.dotpulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); display: inline-block; animation: pulse 1s infinite; }
.ai-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.scan-card { margin: 10px 10px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.scan-card.running { border-color: rgba(96,165,250,.45); }
.scan-card.error { border-color: rgba(244,63,94,.45); }
.scan-card.done { border-color: rgba(16,185,129,.4); }
.scan-h { display: flex; align-items: center; gap: 8px; }
.scan-h .ic { color: var(--accent2); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.sglist { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.sg { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.sg.hi { border-left-color: var(--good); } .sg.mid { border-left-color: var(--warn); } .sg.lo { border-left-color: var(--bad); }
.sg-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sg-h b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-h .mm { width: auto; font-size: 12px; }
.conf { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--bg2); }
.conf.hi { color: #6ee7b7; } .conf.mid { color: #fcd34d; } .conf.lo { color: #fda4af; }
.sg-m { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg-m .chip { cursor: pointer; }
.sg-no { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.sg-no .input { width: 58px; text-align: center; }
.sg-no small { font-family: var(--mono); font-size: 10.5px; }
.sg-note { font-size: 11.5px; color: var(--muted); }
.sg-a { display: flex; flex-wrap: wrap; gap: 5px; }
.opt.sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.opt.suggested { border-color: var(--accent); background: var(--accent-bg); color: #fff; }
.opt:disabled { opacity: .45; }
.scan-lineup { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(245,158,11,.4); background: var(--warn-bg); margin: 8px 0 14px; font-size: 13px; }
.scan-lineup span { flex: 1; }
.scan-lineup.ok { border-color: rgba(16,185,129,.35); background: var(--good-bg); }
.scan-est { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); font-size: 13px; margin: 10px 0; }
.ts-actions { margin-bottom: 10px; }
