        :root {
            --bg: #f2f3f6;
            --surface: #ffffff;
            --surface2: #f8f8fb;
            --surface3: #eef0f5;
            --ink: #0e1117;
            --ink2: #374151;
            --ink3: #6b7280;
            --ink4: #9ca3af;
            --border: #e5e7ed;
            --border2: #d1d5db;
            --brand: #0f4fff;
            --brand-dark: #0a35cc;
            --brand-light: #eff3ff;
            --brand-mid: #bfcffe;
            --green: #059669;
            --green-bg: #ecfdf5;
            --green-bd: #6ee7b7;
            --red: #dc2626;
            --red-bg: #fef2f2;
            --red-bd: #fca5a5;
            --amber: #d97706;
            --amber-bg: #fffbeb;
            --amber-bd: #fcd34d;
            --violet: #7c3aed;
            --violet-bg: #f5f3ff;
            --violet-bd: #c4b5fd;
            --morning: #f59e0b;
            --afternoon: #0f4fff;
            --evening: #7c3aed;
            --safe-grad: linear-gradient(135deg,#059669 0%,#10b981 100%);
            --solid-grad: linear-gradient(135deg,#0f4fff 0%,#6366f1 100%);
            --ambitious-grad: linear-gradient(135deg,#7c3aed 0%,#db2777 100%);
            --r: 10px;
            --r-sm: 6px;
            --r-lg: 16px;
            --r-xl: 22px;
            --s0: 0 1px 2px rgba(0,0,0,.06);
            --s1: 0 1px 4px rgba(0,0,0,.07),0 2px 8px rgba(0,0,0,.04);
            --s2: 0 4px 20px rgba(0,0,0,.09),0 2px 6px rgba(0,0,0,.04);
            --s3: 0 12px 48px rgba(0,0,0,.14),0 4px 12px rgba(0,0,0,.05);
            --ease: cubic-bezier(.4,0,.2,1);
            --spring: cubic-bezier(.34,1.56,.64,1);
            --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
            --f-body: 'DM Sans', system-ui, sans-serif;
            --text: var(--ink);
            --text2: var(--ink2);
            --text3: var(--ink3);
            --accent: var(--brand);
            --accent-light: var(--brand-light);
            --accent-mid: var(--brand-mid);
            --green-light: var(--green-bg);
            --green-mid: var(--green-bd);
            --red-light: var(--red-bg);
            --amber-light: var(--amber-bg);
            --amber-mid: var(--amber-bd);
            --slate: var(--ink3);
            --shadow-sm: var(--s0);
            --shadow: var(--s1);
            --shadow-lg: var(--s3);
            --font: var(--f-body);
        }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; font-size: 14px; }
        body { background: var(--bg); color: var(--ink); font-family: var(--f-body); line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
        a { color: inherit; text-decoration: none; }
        .topbar {
            position: sticky;
            top: 0;
            z-index: 300;
            height: 54px;
            display: flex;
            align-items: center;
            background: rgba(255,255,255,.96);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border);
        }
        .topbar-brand {
            display: flex; align-items: center; gap: 8px;
            padding: 0 20px; border-right: 1px solid var(--border);
            height: 100%; text-decoration: none; flex-shrink: 0;
        }
        .topbar-brand img { height: 30px; width: 30px; border-radius: 8px; object-fit: cover; }
        .brand-name { font-family: var(--f-display); font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; }
        .brand-name em { color: var(--accent); font-style: normal; }
        .nav-scroll { display: flex; align-items: center; gap: 0; overflow-x: auto; flex: 1; height: 100%; -ms-overflow-style: none; scrollbar-width: none; }
        .nav-scroll::-webkit-scrollbar { display: none; }
        .nav-item {
            flex-shrink: 0; height: 100%; padding: 0 14px;
            display: flex; align-items: center; gap: 6px;
            font-size: 13px; font-weight: 500; color: var(--ink3);
            cursor: pointer; border-bottom: 2px solid transparent;
            transition: all .15s var(--ease); white-space: nowrap; border-top: none; border-left: none; border-right: none;
            background: none;
        }
        .nav-item:hover { color: var(--ink2); background: var(--bg); }
        .nav-item.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
        .topbar-end { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-left: 1px solid var(--border); height: 100%; flex-shrink: 0; }
        .live-pill { display: flex; align-items: center; gap: 5px; background: var(--green-bg); border: 1px solid var(--green-bd); border-radius: 20px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: var(--green); }
        .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.8s infinite; }
        .tz-chip { font-size: 11px; font-weight: 500; color: var(--ink3); background: var(--surface3); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
        @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

        .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 132px; }
        .pg-head, .pg-hd { padding: 22px 0 16px; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
        .pg-title { font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: -0.5px; line-height:1.2; }
        .pg-sub { font-size: 12px; color: var(--ink3); margin-top: 3px; }

        .two-col { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
        .three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
        .two-even { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        .split { display: grid; grid-template-columns: minmax(250px, 290px) 1fr; gap: 16px; }

        .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
        .card-pad { padding: 16px; }
        .card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
        .card-title { font-size: 13px; font-weight: 600; color: var(--text); }
        .card-link { font-size: 12px; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: none; }

        .stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
        .stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-sm); }
        .stat-lbl { font-size: 11px; font-weight: 500; color: var(--text3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
        .stat-val { font-size: 26px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
        .stat-val.blue { color: var(--accent); }
        .stat-val.green { color: var(--green); }
        .stat-val.amber { color: var(--amber); }
        .stat-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }

        .badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 600; line-height: 1.4; }
        .badge-blue { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-mid); }
        .badge-green { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }
        .badge-amber { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber-mid); }
        .badge-red { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
        .badge-slate { background: var(--surface3); color: var(--slate); border: 1px solid var(--border2); }

        .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
        .chip {
            background: var(--surface3); border: 1px solid var(--border); border-radius: 20px;
            padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--text2);
        }
        .chip.ok { background: var(--green-light); color: var(--green); border-color: var(--green-mid); }
        .chip.warn { background: var(--amber-light); color: var(--amber); border-color: var(--amber-mid); }
        .chip.bad { background: var(--red-light); color: var(--red); border-color: #fecaca; }

        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: var(--r-sm); padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: var(--font); text-decoration: none; }
        .btn-primary { background: var(--accent); color: #fff; }
        .btn-primary:hover { background: #1648c2; box-shadow: 0 0 0 3px rgba(26,86,219,.15); }
        .btn-green { background: var(--green); color: #fff; }
        .btn-green:hover { background: #047857; }
        .btn-outline { background: var(--surface); border: 1px solid var(--border2); color: var(--text); }
        .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
        .btn-ghost { background: none; border: none; color: var(--text3); padding: 6px 10px; }
        .btn-ghost:hover { color: var(--text2); background: var(--surface3); border-radius: var(--r-sm); }
        .btn-sm { padding: 5px 11px; font-size: 12px; }
        .btn-lg { padding: 11px 24px; font-size: 14px; }
        .btn-block { width: 100%; }
        .btn.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

        .slot-tabs {
            display: flex;
            gap: 0;
            background: var(--surface3);
            border: 1px solid var(--border);
            border-radius: var(--r-lg);
            padding: 4px;
            margin-bottom: 14px;
            width: fit-content;
        }
        .slot-tab {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 8px 16px;
            border-radius: 10px;
            border: none;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink3);
            background: none;
            transition: all .18s var(--ease);
            white-space: nowrap;
            cursor: pointer;
        }
        .slot-tab.on {
            background: var(--surface);
            color: var(--ink);
            font-weight: 700;
            box-shadow: var(--s1);
        }
        .slot-tab.on[data-slot="morning"] { color: var(--morning); }
        .slot-tab.on[data-slot="afternoon"] { color: var(--afternoon); }
        .slot-tab.on[data-slot="evening"] { color: var(--evening); }
        .slot-pip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
        .slot-pip.m { background: var(--morning); }
        .slot-pip.a { background: var(--afternoon); }
        .slot-pip.e { background: var(--evening); }
        .slot-banner {
            border: 1px solid var(--border);
            background: var(--surface);
            border-radius: var(--r);
            padding: 12px 14px;
            margin-bottom: 16px;
            box-shadow: var(--s0);
        }
        .meridianbet-banner-wrap {
            width: 100%;
            display: flex;
            justify-content: center;
            margin: 0 0 16px;
        }
        .meridianbet-banner-slot {
            width: min(100%, 970px);
            min-height: 90px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 0;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
            padding: 0;
        }

        .ready-slip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
        .ready-slip-card { border-radius: var(--r-lg); color: #fff; border: none; box-shadow: var(--s2); }
        .ready-slip-card.safe { background: var(--safe-grad); }
        .ready-slip-card.balanced { background: var(--solid-grad); }
        .ready-slip-card.aggressive { background: var(--ambitious-grad); }
        .ready-slip-card .text-muted { color: rgba(255,255,255,.85); }
        .ready-slip-card .slip-leg-row { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
        .ready-slip-card .slip-leg-num { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.2); color: #fff; }
        .ready-slip-card .slip-leg-fixture,
        .ready-slip-card .slip-leg-pick,
        .ready-slip-card .slip-leg-reason,
        .ready-slip-card .slip-leg-odd-label,
        .ready-slip-card .slip-leg-odd-value { color: #fff; }
        .ready-slip-card .slip-leg-odd { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }

        .field { margin-bottom: 12px; }
        .field label { display: block; margin-bottom: 5px; font-size: 12px; color: var(--text2); font-weight: 600; }
        .field input, .field select, .field textarea {
            width: 100%; background: var(--surface2); border: 1px solid var(--border2); color: var(--text);
            border-radius: var(--r-sm); padding: 9px 11px; font-size: 13px; font-family: var(--font); outline: none;
            transition: all .15s;
        }
        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.08);
        }

        .trace-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
        .trace-item { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px; background: var(--surface2); }
        .text-sm { font-size: 12px; }
        .text-xs { font-size: 11px; }
        .text-muted { color: var(--text3); }

        .fixture-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
        .fixture-line.is-large { gap: 12px; }
        .team-logo {
            width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border);
            background: var(--surface2); object-fit: cover; flex-shrink: 0;
        }
        .team-logo.is-large { width: 30px; height: 30px; border-radius: 8px; }
        .team-logo-fallback {
            width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border);
            background: var(--surface3); display: inline-flex; align-items: center; justify-content: center;
            font-size: 10px; font-weight: 700; color: var(--text3); flex-shrink: 0;
        }
        .team-logo-fallback.is-large { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }

        .match-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
        .match-group-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            background: var(--surface2);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .match-group-header > * { min-width: 0; }
        .match-group-header.is-large { padding: 16px 18px; }
        .match-group-summary { cursor: pointer; }
        .match-group-collapsible > summary { list-style: none; }
        .match-group-collapsible > summary::-webkit-details-marker { display: none; }
        .match-group-summary-meta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
        .match-group-chevron { color: var(--text3); font-size: 12px; transition: transform .15s ease; }
        .match-group-collapsible[open] .match-group-chevron { transform: rotate(180deg); }
        .mg-fixture { font-size: 14px; font-weight: 700; letter-spacing: -.3px; flex: 1; min-width: 0; }
        .fixture-line-compact { justify-content: flex-start; flex-wrap: nowrap; }
        .fixture-line-compact .mg-fixture { flex: 0 1 auto; min-width: 0; }
        .mg-fixture-tight { overflow-wrap: anywhere; }
        .mg-fixture.is-large { font-size: 19px; line-height: 1.3; letter-spacing: -.45px; }
        .match-group-header-static { cursor: default; }
        .fixture-meta-large .chip,
        .fixture-meta-large .mg-league,
        .fixture-meta-large .mg-time { font-size: 12px; }
        .mg-league { font-size: 11px; font-weight: 500; color: var(--text3); background: var(--surface3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; }
        .mg-time { font-size: 11px; color: var(--text3); white-space: nowrap; }
        .mg-picks-row { padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; }
        .pick-row {
            border: 1px solid var(--border); border-radius: var(--r-sm);
            padding: 11px 14px; display: flex; align-items: center; gap: 12px;
            transition: all .15s; position: relative; background: var(--surface);
            min-width: 0;
            flex-wrap: wrap;
        }
        .pick-row:hover { border-color: var(--accent-mid); background: var(--accent-light); }
        .pick-row.in-slip { border-color: var(--green); background: var(--green-light); }
        .pick-market-name {
            font-size: 11px;
            font-weight: 500;
            color: var(--text3);
            width: 120px;
            min-width: 90px;
            max-width: 180px;
            flex-shrink: 0;
            overflow-wrap: anywhere;
        }
        .pick-outcome-pill {
            background: var(--surface3);
            border: 1px solid var(--border2);
            border-radius: 5px;
            padding: 3px 9px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text);
            min-width: 0;
            overflow-wrap: anywhere;
        }
        .pick-row:hover .pick-outcome-pill { background: var(--accent); border-color: var(--accent); color: #fff; }
        .pick-row.in-slip .pick-outcome-pill { background: var(--green); border-color: var(--green); color: #fff; }
        .pick-odds-val { font-size: 14px; font-weight: 700; color: var(--amber); margin-left: auto; white-space: nowrap; }
        .pick-conf-wrap {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 120px;
            min-width: 96px;
            flex-shrink: 0;
        }
        .pick-conf-bar { flex: 1; height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
        .pick-conf-fill { height: 100%; border-radius: 3px; }
        .pick-conf-fill.hi { background: var(--green); }
        .pick-conf-fill.md { background: var(--amber); }
        .pick-conf-fill.lo { background: var(--red); }
        .pick-conf-pct { font-size: 11px; font-weight: 600; color: var(--text2); width: 40px; text-align: right; }
        .add-slip-btn { flex-shrink: 0; background: var(--surface3); border: 1px solid var(--border2); border-radius: 999px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; cursor: pointer; transition: all .15s; color: var(--text3); font-weight: 700; }
        .add-slip-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
        .add-slip-btn.added { background: var(--green); border-color: var(--green); color: #fff; }
        .why-row { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 14px 10px; }
        .why-tag { font-size: 10px; font-weight: 500; background: var(--surface3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; color: var(--text3); }

        .trend-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 16px; display: flex; align-items: center; gap: 14px; transition: all .15s; box-shadow: var(--shadow-sm); }
        .trend-row:hover { border-color: var(--accent-mid); transform: translateX(2px); }
        .trend-arrow { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
        .trend-arrow.up { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }
        .trend-arrow.dn { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
        .trend-info { flex: 1; min-width: 0; }
        .trend-fix { font-size: 13px; font-weight: 600; }
        .trend-mkt { font-size: 11px; color: var(--text3); margin-top: 2px; }
        .trend-insight { font-size: 11px; color: var(--text2); margin-top: 4px; line-height: 1.35; }
        .trend-move { text-align: right; }
        .trend-move-val { font-size: 16px; font-weight: 800; letter-spacing: -.5px; }
        .trend-move-val.up { color: var(--green); }
        .trend-move-val.dn { color: var(--red); }
        .trend-move-lbl { font-size: 10px; color: var(--text3); font-weight: 500; }

        .slip-builder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); position: static; }
        .sb-head { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--accent); display: flex; align-items: center; justify-content: space-between; }
        .sb-title { font-size: 14px; font-weight: 700; color: #fff; }
        .sb-count { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
        .sb-body { max-height: 380px; overflow-y: auto; }
        .sb-leg { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
        .sb-leg-fix { font-size: 12px; font-weight: 600; flex: 1; }
        .sb-leg-pick { font-size: 11px; color: var(--text3); }
        .sb-leg-odds { font-size: 13px; font-weight: 700; color: var(--amber); }
        .sb-leg-rm { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 16px; padding: 2px 4px; }
        .sb-empty { padding: 28px 16px; text-align: center; color: var(--text3); font-size: 12px; }
        .sb-empty-icon { font-size: 28px; display: block; margin-bottom: 6px; }
        .sb-foot { padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface2); }
        .sb-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
        .sb-total-lbl { font-size: 12px; color: var(--text3); }
        .sb-total-val { font-size: 18px; font-weight: 800; color: var(--green); letter-spacing: -.5px; }
        .sb-actions { display: flex; gap: 8px; }
        .floating-slip-compiler {
            position: fixed;
            right: 16px;
            bottom: 14px;
            left: auto;
            width: min(360px, calc(100vw - 26px));
            z-index: 260;
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-end;
        }
        .compiler-toggle {
            border: 1px solid var(--accent-mid);
            border-radius: 999px;
            background: linear-gradient(135deg, #2a67f6, #1d4ed8);
            color: #fff;
            font-size: 34px;
            font-weight: 700;
            width: 56px;
            height: 56px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
        }
        .compiler-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
        .floating-slip-compiler .slip-builder { box-shadow: var(--shadow-lg); }
        .floating-slip-compiler .sb-body { max-height: min(280px, 36vh); }
        .floating-slip-compiler.is-collapsed .slip-builder { display: none; }
        .floating-slip-compiler.is-expanded .compiler-toggle { background: #fff; color: var(--accent); border-color: var(--accent-mid); }

        .provider-action-bar { padding: 13px 16px; background: #f8faff; border-top: 2px solid var(--accent-mid); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        .provider-chip {
            display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--border2);
            background: var(--surface); padding: 6px 12px; font-size: 12px; font-weight: 600;
        }
        .sponsor-cta-btn { display: inline-flex; align-items: center; gap: 8px; }
        .provider-chip.disabled { opacity: .6; cursor: not-allowed; }
        .risk-choice { text-align: left; cursor: pointer; transition: all .15s; border: 2px solid var(--border); }
        .risk-choice:hover { border-color: var(--accent-mid); background: var(--accent-light); }
        .risk-choice.is-on { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 3px rgba(26,86,219,.08); }

        .table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
        table { width: 100%; border-collapse: collapse; }
        th, td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
        th { font-size: 11px; text-transform: uppercase; color: var(--text3); letter-spacing: .5px; background: var(--surface2); }

        .pub-slip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: all .15s; }
        .pub-slip:hover { box-shadow: var(--shadow); border-color: var(--accent-mid); }
        .pub-slip-head { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
        .pub-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #6b7ee8); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
        .btn-heart-like { display: inline-flex; align-items: center; gap: 6px; min-width: 66px; justify-content: center; }
        .btn-heart-like .heart-icon { font-size: 15px; line-height: 1; color: #e11d48; }
        .fixture-comments-panel { border-top: 1px dashed var(--border); background: var(--surface2); }
        .fixture-comment-row { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin-bottom: 6px; }
        .fixture-comment-meta { font-size: 11px; color: var(--text3); margin-bottom: 3px; font-weight: 600; }
        .fixture-comment-body { font-size: 12px; color: var(--text1); line-height: 1.35; }
        .fixture-comment-icon {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid var(--border2);
            background: var(--surface2);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            color: var(--text2);
            flex-shrink: 0;
        }
        .fixture-comment-form-compact textarea { font-size: 12px; }

        .slip-legs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
        .slip-leg-row {
            display: grid;
            grid-template-columns: 28px minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            border: 1px solid var(--border);
            border-radius: var(--r-sm);
            background: var(--surface);
            padding: 10px 11px;
        }
        .slip-leg-num {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1px solid var(--accent-mid);
            background: var(--accent-light);
            color: var(--accent);
            font-size: 11px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .slip-leg-main { min-width: 0; }
        .slip-leg-fixture {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.35;
        }
        .slip-leg-pick {
            margin-top: 2px;
            font-size: 11px;
            color: var(--text2);
            line-height: 1.4;
        }
        .slip-leg-reason {
            margin-top: 3px;
            font-size: 11px;
            color: var(--text3);
            line-height: 1.35;
            overflow-wrap: anywhere;
        }
        .slip-leg-odd {
            border: 1px solid var(--amber-mid);
            background: var(--amber-light);
            border-radius: 999px;
            padding: 4px 10px;
            white-space: nowrap;
            line-height: 1;
        }
        .slip-leg-odd-label {
            font-size: 10px;
            font-weight: 600;
            color: var(--text3);
            margin-right: 4px;
        }
        .slip-leg-odd-value {
            font-size: 12px;
            font-weight: 800;
            color: var(--amber);
        }

        .res-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 14px; position: relative; }
        .res-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--r-lg) 0 0 var(--r-lg); }
        .res-card.won::before { background: var(--green); }
        .res-card.lost::before { background: var(--red); }
        .res-card.pend::before { background: var(--amber); }

        .modal-bg {
            position: fixed;
            inset: 0;
            z-index: 500;
            background: rgba(0,0,0,.35);
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s;
        }
        .modal-bg.show { opacity: 1; pointer-events: all; }
        .modal {
            background: var(--surface);
            border-radius: var(--r-lg);
            box-shadow: var(--shadow-lg);
            width: 100%;
            overflow: hidden;
            transform: translateY(16px);
            transition: transform .2s;
        }
        .modal-bg.show .modal { transform: translateY(0); }
        .modal-hd {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .modal-title { font-size: 15px; font-weight: 700; }
        .modal-body { padding: 16px; }

        .mb-4 { margin-bottom: 16px; }
        .mb-6 { margin-bottom: 24px; }

        .mob-nav {
            display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
            background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
            padding: 6px 0 max(6px,env(safe-area-inset-bottom)); justify-content: space-around;
        }
        .mob-item { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 4px 10px; }
        .mob-icon { font-size: 18px; }
        .mob-lbl { font-size: 10px; font-weight: 500; color: var(--text3); }
        .mob-item.on .mob-lbl { color: var(--brand); }

        .flash-wrap { margin-top: 14px; }
        .flash { padding: 10px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; }
        .flash.ok { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }

        .hide-mobile { display: table-cell; }
        @media(max-width:1024px) {
            .two-col, .split { grid-template-columns: 1fr; }
            .three-col { grid-template-columns: repeat(2,1fr); }
        }
        @media(max-width:900px) {
            .stat-strip { grid-template-columns: repeat(2,1fr); }
            .match-group-header { align-items: flex-start; }
            .match-group-summary-meta { width: 100%; margin-left: 0; justify-content: flex-start; }
            .mg-fixture.is-large { font-size: 17px; }
            .pick-row { gap: 10px; }
            .pick-market-name {
                width: 100%;
                max-width: none;
                min-width: 0;
                flex: 1 1 100%;
            }
            .pick-outcome-pill { flex: 1 1 auto; }
            .pick-odds-val { margin-left: 0; }
            .pick-conf-wrap { width: 100%; min-width: 0; flex: 1 1 100%; }
            .add-slip-btn { margin-left: auto; }
            .floating-slip-compiler {
                right: 12px;
                width: min(360px, calc(100vw - 24px));
            }
        }
        @media(max-width:680px) {
            .wrap { padding: 0 12px 228px; }
            .three-col, .two-even, .stat-strip { grid-template-columns: 1fr; }
            .topbar .nav-scroll { display: none; }
            .topbar-end { display: none; }
            .mob-nav { display: flex; }
            th.hide-mobile, td.hide-mobile { display: none; }
            .match-group-header .mg-time { min-width: 0 !important; }
            .match-group-header .btn { width: 100%; justify-content: center; }
            .pick-row { padding: 10px 11px; }
            .pick-market-name { width: 100%; flex: 1 1 100%; }
            .pick-outcome-pill { flex: 1 1 100%; }
            .pick-odds-val { order: 3; }
            .pick-conf-wrap {
                order: 4;
                width: 100%;
                min-width: 0;
                flex: 1 1 100%;
            }
            .add-slip-btn { order: 5; margin-left: auto; }
            .fixture-line { flex-wrap: wrap; }
            .fixture-line .mg-fixture { flex: 1 1 100%; }
            .fixture-line.fixture-line-compact { flex-wrap: nowrap; }
            .fixture-line.fixture-line-compact .mg-fixture { flex: 0 1 auto; }
            .mg-fixture.is-large { font-size: 16px; }
            .team-logo.is-large, .team-logo-fallback.is-large { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
            .match-group-summary-meta { width: 100%; margin-left: 0; justify-content: flex-start; margin-top: 6px; }
            .slip-leg-row { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
            .slip-leg-num { width: 24px; height: 24px; font-size: 10px; }
            .slip-leg-odd {
                grid-column: 2;
                justify-self: start;
                margin-top: 4px;
                padding: 3px 8px;
            }
            .topbar-brand { padding: 0 12px; }
            .floating-slip-compiler { left: auto; right: 8px; width: calc(100vw - 16px); bottom: 68px; }
            .floating-slip-compiler .sb-body { max-height: min(230px, 34vh); }
            .ready-slip-grid { grid-template-columns: 1fr; }
            .slot-tabs { width: 100%; overflow-x: auto; }
        }
