/* viewer.allsitestheme.com — a calm trading-desk look: dense tables, tabular numbers, green / red P/L, light + dark. */
:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f8fafc; --line: #e3e8ef; --line-2: #eef1f5;
  --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --brand: #4f46e5; --brand-ink: #ffffff; --brand-soft: #eef2ff;
  --side: #0f172a; --side-text: #cbd5e1; --side-muted: #64748b; --side-on: #1e293b;
  --pos: #059669; --neg: #dc2626; --pos-soft: #ecfdf5; --neg-soft: #fef2f2; --warn: #b45309; --warn-soft: #fffbeb;
  --back: #a6d8ff; --back-ink: #0b3a5c; --lay: #fac9d1; --lay-ink: #5c0b1e;
  --tg: #229ed9;
  --radius: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111827; --surface-2: #0f172a; --line: #1f2937; --line-2: #172033;
    --text: #e5e7eb; --muted: #94a3b8; --faint: #64748b;
    --brand: #818cf8; --brand-ink: #0b1120; --brand-soft: #1e1b4b;
    --side: #070b14; --side-on: #111827;
    --pos: #34d399; --neg: #f87171; --pos-soft: #052e22; --neg-soft: #3b0d0d; --warn: #fbbf24; --warn-soft: #3a2a05;
    --back: #1d4f73; --back-ink: #dbeafe; --lay: #6b2433; --lay-ink: #ffe4e9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111827; --surface-2: #0f172a; --line: #1f2937; --line-2: #172033;
  --text: #e5e7eb; --muted: #94a3b8; --faint: #64748b;
  --brand: #818cf8; --brand-ink: #0b1120; --brand-soft: #1e1b4b;
  --side: #070b14; --side-on: #111827;
  --pos: #34d399; --neg: #f87171; --pos-soft: #052e22; --neg-soft: #3b0d0d; --warn: #fbbf24; --warn-soft: #3a2a05;
  --back: #1d4f73; --back-ink: #dbeafe; --lay: #6b2433; --lay-ink: #ffe4e9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .zero { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; }
[hidden] { display: none !important; }

/* ---- buttons / inputs ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--faint); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: var(--neg); border-color: var(--neg); color: #fff; }
.btn.ghost { background: transparent; }
.btn.tg { background: var(--tg); border-color: var(--tg); color: #fff; height: 44px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.btn.dep { background: var(--pos-soft); color: var(--pos); border-color: transparent; font-weight: 700; min-width: 30px; }
.btn.wd { background: var(--neg-soft); color: var(--neg); border-color: transparent; font-weight: 700; min-width: 30px; }
.danger-text { color: var(--neg); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; position: relative; font-size: 15px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 13px var(--font); cursor: pointer; padding: 6px; }
.link-btn:hover { color: var(--text); }
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
input, select { display: block; width: 100%; margin-top: 5px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: 14px var(--font); outline: none; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input.invalid, select.invalid { border-color: var(--neg); }
input[type=checkbox] { display: inline-block; width: 16px; height: 16px; margin: 0; accent-color: var(--brand); vertical-align: -3px; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
label.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; margin: 0; cursor: pointer; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row2 .hint { grid-column: 1 / -1; }
.form-error { background: var(--neg-soft); color: var(--neg); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 4px 0 12px; }
.notice { background: var(--brand-soft); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }

/* ---- states ---- */
.state { display: grid; place-items: center; gap: 10px; padding: 48px 16px; color: var(--muted); text-align: center; }
.state i { font-size: 28px; color: var(--faint); }
.state p { margin: 0; max-width: 420px; }
.state.err i { color: var(--neg); }
.state.ok i { color: var(--pos); font-size: 40px; }
.state.boot { min-height: 100vh; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- login / setup ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.auth-card h1 { font-size: 20px; margin: 18px 0 8px; }
.auth-card .muted { margin: 0 0 16px; }
.auth-foot { display: flex; justify-content: center; margin-top: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 16px; }
.brand small { color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 16px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 12px; color: var(--muted); }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; }
.steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 11px; flex: none; }
.steps li.on { color: var(--text); font-weight: 600; } .steps li.on span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.steps li.done span { background: var(--pos); border-color: var(--pos); color: #fff; }
.manual { margin: 14px 0; font-size: 13px; color: var(--muted); }
.manual summary { cursor: pointer; }
.manual code { display: block; margin: 6px 0; padding: 10px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line); font-family: var(--mono); font-size: 12.5px; word-break: break-all; cursor: copy; color: var(--text); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 14px 0 4px; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 8px 18px; }
.side .brand b { color: #fff; } .side .brand small { color: var(--side-muted); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--side-text); font-weight: 500; text-decoration: none; }
.side nav a i { width: 18px; text-align: center; color: var(--side-muted); }
.side nav a:hover { background: var(--side-on); }
.side nav a.on { background: var(--side-on); color: #fff; } .side nav a.on i { color: #a5b4fc; }
.side nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #1e293b; }
.pool small { display: block; color: var(--side-muted); }
.pool b { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--neg); color: #fff; font: 600 10.5px var(--font); font-style: normal; }
.bell .badge { position: absolute; top: 2px; right: 0; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h2 { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .menu { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip.ok { color: var(--pos); background: var(--pos-soft); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: 500 13px var(--font); }
.user-btn i { font-size: 10px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; }
.role-tag { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.role-tag.admin { background: var(--warn-soft); color: var(--warn); }
.dropdown { position: absolute; right: 0; top: 42px; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .15); padding: 6px; z-index: 30; }
.dd-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.dd-head b { display: block; } .dd-head small { color: var(--muted); }
.dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; color: var(--text); font: 13.5px var(--font); border-radius: 6px; cursor: pointer; text-align: left; }
.dropdown button:hover { background: var(--surface-2); }
.dropdown button i { width: 16px; color: var(--muted); }
#page { padding: 20px 24px 40px; max-width: 1500px; width: 100%; }
.scrim { display: none; }

/* ---- toolbar ---- */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.seg button { height: 30px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 500 13px var(--font); border-radius: 6px; cursor: pointer; }
.seg button.on { background: var(--brand-soft); color: var(--brand); }
.seg em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 3px; }
.dates { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.dates input { width: 150px; margin: 0; height: 36px; }
.search { position: relative; min-width: 220px; }
.search.grow { flex: 1; }
.search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; }
.search input { margin: 0; padding-left: 32px; height: 36px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pos); font-weight: 600; margin-left: auto; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pos) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { font-size: 14.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cards .card { margin: 0; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat small { color: var(--muted); font-weight: 500; }
.stat b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.stat.hero { background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); }
.stat .split { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.foot-note { margin: 0; padding: 10px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); }
.group { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 2px 8px; }
.group:first-child { margin-top: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 0; }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl.hover tbody tr { cursor: pointer; }
.tbl.hover tbody tr:hover td { background: var(--surface-2); }
.acc-name { color: var(--text); }
.flags { display: inline-flex; gap: 4px; }
.flag { height: 26px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 11.5px var(--font); display: inline-flex; align-items: center; gap: 4px; }
.flag.on { background: var(--pos-soft); border-color: transparent; }
.flag.on { color: var(--pos); } .flag.off { color: var(--neg); background: var(--neg-soft); border-color: transparent; }
.flag:hover { border-color: var(--faint); }

/* ---- markets ---- */
.match .card-h { align-items: baseline; }
.match-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.match-name i { font-size: 10px; color: var(--faint); margin-left: 4px; }
.mtables { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; padding: 12px; }
.tbl.mini { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.tbl.mini td { padding: 6px 10px; }
.tbl.mini th { text-transform: none; font-size: 12.5px; color: var(--text); letter-spacing: 0; }
.match-title { font-size: 16px; flex: 1; min-width: 0; }
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.bets { position: sticky; top: 74px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; }
.bets .card-h input { width: 130px; margin: 0; height: 30px; }
.bets > div { overflow: auto; }
.bets-tbl tr.back td:first-child { box-shadow: inset 3px 0 var(--back); }
.bets-tbl tr.lay td:first-child { box-shadow: inset 3px 0 var(--lay); }
.bets-tbl tr.back td { background: color-mix(in srgb, var(--back) 18%, transparent); }
.bets-tbl tr.lay td { background: color-mix(in srgb, var(--lay) 20%, transparent); }
.market.closed { opacity: .8; }
.tbl.book td { padding: 6px 12px; }
.tbl.book td.px { width: 78px; padding: 3px; }
.px b, .px small { display: block; line-height: 1.2; }
.px b { font-size: 14px; } .px small { font-size: 10.5px; opacity: .75; }
.px.back { background: var(--back); color: var(--back-ink); }
.px.lay { background: var(--lay); color: var(--lay-ink); }
.tbl.book tr.susp td.px { opacity: .4; }
.tbl.book td.px + td.px { border-left: 2px solid var(--surface); }

/* ---- accounts ---- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs > i { font-size: 9px; color: var(--faint); }
.crumbs small { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.found { margin-bottom: 16px; }
.found-list { list-style: none; margin: 0; padding: 4px; }
.found-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 6px; }
.found-list li:hover { background: var(--surface-2); }
.found-list a { color: var(--text); }
.pick { width: 100%; border: 0; background: none; text-align: left; padding: 4px 0; font: 14px var(--font); color: var(--text); cursor: pointer; }
.pick-list { max-height: 340px; overflow: auto; margin-top: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-2); }
.kv { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.kv b { color: var(--text); font-variant-numeric: tabular-nums; }
.menu-list { display: grid; gap: 4px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 14px var(--font); cursor: pointer; text-decoration: none; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); text-decoration: none; }
.menu-list i { width: 18px; color: var(--muted); }

/* ---- feed ---- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed li.unseen { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.feed li > i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.feed p, .feed pre { margin: 0 0 2px; font-size: 13px; }
.feed pre { font: 13px/1.5 var(--font); white-space: pre-wrap; word-break: break-word; }
.feed small { color: var(--muted); }
.feed li > div { min-width: 0; }
i.k-bet { color: var(--brand) !important; } i.k-result { color: var(--pos) !important; } i.k-money { color: var(--warn) !important; } i.k-login { color: var(--tg) !important; }
.tag.k-bet { color: var(--brand); } .tag.k-result { color: var(--pos); } .tag.k-money { color: var(--warn); } .tag.k-login { color: var(--tg); }

/* ---- modal ---- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .5); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 860px; }
.modal form { display: flex; flex-direction: column; min-height: 0; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.modal header h3 { font-size: 16px; }
.modal-body { padding: 16px 18px 6px; overflow: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.confirm-text { margin: 0 0 12px; }
@keyframes fade { from { opacity: 0; } }

/* ---- toasts ---- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transform: translateY(10px); opacity: 0; transition: .25s; }
.toast.in { transform: none; opacity: 1; }
.toast i { margin-top: 2px; }
.toast.ok i { color: #34d399; } .toast.error { background: var(--neg); color: #fff; } .toast.info i { color: #818cf8; }

/* ---- small screens ---- */
@media (max-width: 1100px) {
  .grid-2, .match-grid { grid-template-columns: 1fr; }
  .bets { position: static; max-height: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .scrim.on { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40; }
  .top { padding: 0 12px; gap: 6px; }
  .top .menu { display: inline-grid; }
  .pool-chip, .user-btn .uname, .user-btn .role-tag { display: none; }
  #page { padding: 14px 16px 32px; }
  .dates input { width: 132px; }
  .search { min-width: 0; flex: 1 1 180px; }
  .live { margin-left: 0; }
  .stat b { font-size: 19px; }
  .row2, .checks { grid-template-columns: 1fr; }
  .match-title { display: none; }
}

/* ---- statement / bet history ---- */
.filters { padding: 14px 16px 2px; overflow: visible; }
.frow { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.frow.segs { gap: 8px; padding-bottom: 12px; }
.fcol { min-width: 150px; position: relative; }
.fcol.grow { flex: 1 1 260px; }
.fcol.end { padding-bottom: 12px; }
.fcol select, .fcol input { margin-top: 5px; }
.picker { margin-top: 5px; }
.pick-pop { position: absolute; left: 0; right: 0; top: 66px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .15); max-height: 320px; overflow: auto; }
.pad { padding: 10px 14px; margin: 0; }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.size-sel { width: auto; height: 30px; margin: 0; padding: 0 8px; font-size: 12.5px; }
.card-h.sub { padding: 10px 16px; }
.card-h.sub .search input { height: 32px; }
.foot-note.top { border-top: 0; border-bottom: 1px solid var(--line-2); }
.pager.quiet { justify-content: flex-end; font-size: 12px; }
.tbl.stmt td.c-desc { min-width: 300px; max-width: 420px; white-space: normal; word-break: break-word; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--surface-2); }
.tbl tr.clickable td.c-desc { color: var(--brand); }
.det-head { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); margin-bottom: 12px; font-size: 13.5px; display: grid; gap: 6px; }
.det-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.det-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.det-tot { margin-left: auto; font-size: 13.5px; }
@media (max-width: 820px) { .fcol { flex: 1 1 140px; min-width: 0; } .det-tot { margin-left: 0; } }
