:root{--ink:#193432;--muted:#778785;--green:#176852;--deep:#102b29;--gold:#dab979;--bg:#f5f7f6;--border:#e3eae7;--red:#b54141}*{box-sizing:border-box}body{margin:0;font-family:Arial,'Noto Sans Myanmar',sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.7}button,input,select{font:inherit}button{cursor:pointer;transition:background .16s,transform .16s;white-space:nowrap}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}button,input,select{border-radius:9px;border:1px solid var(--border)}button{padding:10px 16px;font-weight:600;background:white;color:var(--ink)}input,select{padding:9px 10px;min-width:0;background:white;color:var(--ink);width:100%;outline:none}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #17685212}input:invalid:not(:placeholder-shown){border-color:#d9a29a}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#11523f}.secondary:hover{background:#edf4f0}.ghost{background:none;border:0;color:inherit}.icon{padding:6px 12px}.hidden{display:none!important}aside{position:fixed;inset:0 auto 0 0;width:235px;background:var(--deep);color:#c6d4cc;display:flex;flex-direction:column;padding:30px 19px;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:#f5eddd;text-decoration:none;font-weight:700;letter-spacing:1.5px;font-size:16px}.brand small{display:block;font-size:9px;color:#849d91;letter-spacing:2px;margin-top:4px}.brand-mark{background:#d6b16f;color:#163a32;display:inline-grid;place-items:center;width:43px;height:46px;border-radius:11px;font-size:30px}.aside-caption{font-size:11px;color:#789489;margin:48px 13px 15px}nav{display:grid;gap:8px}nav button{text-align:left;background:transparent;border:0;color:#aec4b8;padding:12px 14px;font-weight:400;display:flex;align-items:center;gap:15px}nav button span{font-size:18px;width:21px;text-align:center}nav button.active{background:#28463d;color:#f7e2b5;border-left:3px solid var(--gold);padding-left:11px}nav button:hover{background:#203e35}.aside-bottom{margin-top:auto;font-size:12px;padding:24px 12px 0;border-top:1px solid #315047}.aside-bottom p{color:#789489;font-size:10px}.aside-bottom button{padding:10px 0;font-size:12px}.dot{display:inline-block;width:7px;height:7px;background:#78c9a5;border-radius:50%;margin-right:6px}.workspace{margin-left:235px}header{height:86px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px}header small{font-size:9px;letter-spacing:1.6px;color:#97a49f;display:block}header strong{font-size:14px;font-weight:500}.header-right{display:flex;gap:18px;align-items:center}.avatar{background:#f0ebe1;color:#887039;border:1px solid #e8ddc9;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:11px}.badge{border-radius:20px;padding:4px 10px;background:#e9f3ec;color:#3e8064;font-size:11px;white-space:nowrap}.badge.closed{background:#f1eee6;color:#957637}.badge.settled,.badge.void{background:#eef0f3;color:#6d7a88}main{padding:33px 38px 0;max-width:1600px;margin:auto}.eyebrow{font-size:10px;letter-spacing:2.4px;color:#8d9d94;font-weight:700}h1{font-size:28px;font-weight:600;letter-spacing:-.5px;margin:5px 0 4px}p{margin:0;color:var(--muted)}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.actions{display:flex;gap:10px}.page-head p{font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{background:white;border:1px solid var(--border);border-radius:12px;padding:18px 22px;position:relative}.stat small{display:block;color:var(--muted);font-size:11px}.stat b{font-size:28px;line-height:1.6;font-weight:500;display:block;letter-spacing:-.5px}.stat .mini{position:absolute;right:20px;top:21px;color:#7ca08d;background:#f0f6f2;border-radius:9px;padding:2px 8px}.stat em{font-style:normal;font-size:10px;color:#9ca9a1}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips button{font-size:11px;padding:7px 13px;border-radius:7px;background:transparent;border-color:transparent;color:#7b8d83}.chips button.active{background:#e5efe8;border-color:#d8e8dc;color:#245d44}.search{background:white;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;padding-left:12px;max-width:300px;width:100%}.search span{font-size:24px;line-height:1;color:#8b9e93}.search input{border:0;font-size:11px;background:transparent;box-shadow:none}.panel{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:21px 23px}h2{font-size:15px;font-weight:600;margin:0}.panel-head p{font-size:11px;margin-top:3px}.panel-head button{font-size:11px}.fixture-head,.fixture{display:grid;grid-template-columns:minmax(210px,2fr) minmax(105px,1fr) 85px 85px 75px 120px;gap:14px;align-items:center;padding:15px 23px}.fixture-head{background:#f8faf8;border-block:1px solid var(--border);font-size:10px;color:#8b9d92}.fixture{border-bottom:1px solid #edf1ee;position:relative}.fixture.dirty{background:#fffaf0;box-shadow:inset 3px 0 var(--gold)}.fixture:last-child{border:0}.match-meta{font-size:9px;color:#91a096;letter-spacing:.5px}.teams{font-weight:600;font-size:13px;margin:4px 0}.teams i{font-size:10px;font-style:normal;color:#a6b0a9;padding:0 7px;font-weight:400}.match-time{display:flex;align-items:center;gap:8px;font-size:10px;color:#87978c}.fixture select{font-size:11px;padding:8px}.fixture .odds{font-family:Arial,sans-serif;text-align:center;color:#215b42;font-size:16px;font-weight:600;background:#f7faf7;letter-spacing:.2px;padding:8px 5px}.fixture label>small{display:none}.fixture .fee{font-family:Arial,sans-serif;font-size:13px;text-align:center}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions button{padding:5px 8px;font-size:10px}.row-actions .more{border-color:transparent;padding:3px 5px;color:#8b9a91}.panel-foot{padding:13px 23px;display:flex;justify-content:space-between;font-size:10px;color:#91a096;border-top:1px solid var(--border)}footer{display:flex;justify-content:space-between;padding:28px 0;font-size:9px;letter-spacing:1.4px;color:#a2afa7}footer span{letter-spacing:0}.notice{padding:10px 15px;background:#fff5d9;border:1px solid #ecdeae;border-radius:8px;color:#907234;font-size:12px;margin-bottom:20px}.empty{text-align:center;padding:60px 20px;color:#8a9c90}.empty b{display:block;font-size:18px;color:#486855;margin-bottom:10px}dialog{border:1px solid var(--border);border-radius:16px;max-width:1120px;width:calc(100% - 36px);padding:0;color:var(--ink);box-shadow:0 20px 100px #0d2c3340}dialog::backdrop{background:#102b2980;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--border)}.dialog-head h2{font-size:20px;margin-top:4px}#dialogBody{padding:24px;max-height:75vh;overflow:auto}.dialog-help{margin-bottom:18px;font-size:12px}.draft{background:#f7f9f7;border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:12px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.draft label,.form-grid label{font-size:11px;color:#748b7c;display:flex;flex-direction:column;gap:4px}.draft .wide{grid-column:span 2}.draft .draft-top{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;color:#6c8a76;font-size:11px}.dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173f31;color:white;padding:13px 24px;border-radius:10px;box-shadow:0 8px 30px #0002;z-index:99;max-width:90%;font-size:13px}.toast.error{background:#923f34}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}.data-table th{background:#f6f9f6;color:#809686;font-size:10px;text-align:left;font-weight:500}.data-table th,.data-table td{padding:14px 20px;border-bottom:1px solid var(--border)}.data-table button{font-size:10px;padding:5px 9px}.positive{color:var(--green)}.negative{color:var(--red)}.login{min-height:100vh;display:grid;place-items:center;background:#102b29}.login-card{background:#fff;padding:42px;border-radius:18px;width:min(450px,92%)}.login-card small{display:block;margin-top:20px;letter-spacing:2px;color:#8b9b91}.login-card h1{font-size:23px;margin:12px 0}.login-card label{display:block;margin:25px 0 18px;font-size:12px}.login-card input{margin-top:8px}.login-card button{width:100%}#loginError{color:var(--red);margin-top:12px;font-size:12px}.report-head{display:flex;gap:12px;align-items:center;margin-bottom:20px}.report-head input{width:175px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.summary-grid .stat b{font-size:22px}.hint{font-size:11px;margin-top:15px;color:#8a9c90}pre{white-space:pre-wrap;word-break:break-word;background:#f6f8f6;padding:15px;font-size:12px} .spinner{opacity:.6;pointer-events:none}
@media(min-width:1450px){.fixture-head,.fixture{grid-template-columns:minmax(260px,2fr) 160px 110px 110px 95px 150px}}
@media(max-width:1150px){aside{width:195px;padding-inline:12px}.workspace{margin-left:195px}main{padding:25px 22px 0}header{padding-inline:22px}.page-head{align-items:flex-start;flex-direction:column}.fixture-head{display:none}.fixture{grid-template-columns:1.5fr 1fr 1fr;gap:12px}.fixture>div:first-child{grid-column:1/-1}.fixture label>small{display:block;font-size:10px;color:#8c9d90;margin-bottom:4px}.row-actions{grid-column:span 2;align-self:end}.stats{gap:10px}.stat{padding:15px}.stat .mini{display:none}.toolbar{flex-wrap:wrap}.search{max-width:100%}}
@media(max-width:700px){aside{position:sticky;top:0;width:100%;height:auto;padding:10px 14px;flex-direction:row;align-items:center;gap:15px;overflow:auto}.brand{font-size:11px;flex-shrink:0;gap:8px;letter-spacing:1px}.brand-mark{width:30px;height:32px;font-size:23px}.brand small,.aside-caption,.aside-bottom{display:none}nav{display:flex;gap:4px}nav button{padding:8px;font-size:11px;white-space:nowrap;gap:5px}nav button span{font-size:14px;width:auto}nav button.active{border:0;border-radius:6px;padding-left:8px}.workspace{margin:0}header{height:62px;padding-inline:18px}main{padding:22px 15px 0}.page-head{gap:16px;margin-bottom:22px}h1{font-size:25px}.page-head p{font-size:11px}.actions{width:100%}.actions button{font-size:11px;flex:1}.stats{grid-template-columns:1fr 1fr;margin-bottom:20px}.stat b{font-size:25px}.stat small{font-size:10px}.stat em{font-size:9px}.chips{gap:3px}.chips button{font-size:10px;padding:6px 9px}.panel-head{padding:17px;align-items:flex-start;flex-direction:column}.panel-head button{width:100%}.fixture{padding:18px 17px}.fixture .odds{font-size:17px}.teams{font-size:15px}.match-meta{font-size:10px}.panel-foot{padding:12px 17px;flex-direction:column;gap:4px}.draft{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.draft .wide{grid-column:span 1}.draft label{font-size:10px}.draft input,.draft select{font-size:12px}.dialog-head{padding:17px}.dialog-head h2{font-size:18px}#dialogBody{padding:16px}dialog{width:calc(100% - 20px)}.dialog-actions{position:sticky;bottom:-16px;background:white;padding-block:12px}.dialog-actions button{font-size:11px}.summary-grid{grid-template-columns:1fr 1fr}.form-grid{gap:12px}footer{font-size:8px}.header-right{gap:8px}.badge{font-size:9px}}

/* Compact odds board: one fixture, one row. */
.odds-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b9cec3 #f1f5f2}
.odds-table{min-width:1015px}
.fixture-head,.fixture{display:grid;grid-template-columns:96px 78px minmax(175px,1fr) minmax(175px,1fr) 78px 65px 75px 112px;gap:12px;padding:13px 20px;align-items:center}
.fixture-head{font-family:Arial,'Noto Sans Myanmar',sans-serif;font-size:11px;color:#657b6f;font-weight:600;min-height:47px}
.fixture{min-height:78px}
.fixture>div:first-child{grid-column:auto}
.fixture label>small{display:none}
.fixture-time{display:flex;flex-direction:column;align-items:center;line-height:1.6;gap:1px}
.fixture-time b{font-size:12px;font-weight:500;color:#38584b;white-space:nowrap}
.fixture-time>small{font-size:9px;color:#9aaba1}
.status-text{font-size:9px;color:#73958a}.status-text.closed{color:#a78b52}.status-text.settled,.status-text.void{color:#8798a0}
.fixture .odds{font-family:Arial,sans-serif;font-size:15px;background:#eef2ef;color:#345747;border-radius:5px;border-color:#e3eae5;padding:7px 4px;font-weight:600}
.fixture .fee{font-family:Arial,sans-serif;border-radius:5px;font-size:12px;padding:8px 3px}
.team-cell{min-width:0;align-self:center}
.team-choice{border-radius:5px;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 8px;width:100%;min-height:39px;background:#fff;color:#365349;border:1px solid #dce5df;font-size:12px;line-height:1.3;font-weight:500;white-space:normal;text-align:center}
.team-choice small{font-size:8px;font-weight:400;opacity:.65;flex-shrink:0}
.team-choice.favorite{background:#216c57;border-color:#216c57;color:#fff;box-shadow:0 2px 5px #174e3410}
.team-choice:hover{border-color:#2e8a67;background:#f0f7f2}.team-choice.favorite:hover{background:#155940}
.team-choice:disabled{opacity:.8}
.team-league{display:block;font-size:9px;line-height:1.2;margin-top:6px;color:#9baba1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}
.status-cell{display:flex;align-items:center;flex-direction:column;gap:4px}
.status-cell small{font-size:9px;color:#8a9e91;line-height:1.3}
.status-switch{display:flex;align-items:center;width:34px;height:20px;padding:2px;border-radius:20px;background:#d9e2dc;border:1px solid #ccd8cf}
.status-switch span{height:14px;width:14px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}
.status-switch.on{background:#4b9772;border-color:#4b9772}.status-switch.on span{transform:translateX(13px)}
.row-actions{grid-column:auto;align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:3px 4px}
.row-actions button{font-size:9px;padding:5px 5px;line-height:1.5;border-radius:5px}.row-actions .more:last-child{grid-column:1/-1;font-size:9px;padding:3px}
.fixture.dirty .team-choice.favorite{background:#216c57}
@media(min-width:1450px){.odds-table{min-width:1100px}.fixture-head,.fixture{grid-template-columns:100px 85px minmax(190px,1fr) minmax(190px,1fr) 85px 75px 80px 120px;gap:15px}}
@media(max-width:700px){.odds-table{min-width:1015px}.fixture-head,.fixture{grid-template-columns:90px 75px minmax(180px,1fr) minmax(180px,1fr) 75px 65px 70px 110px;gap:12px;padding:14px 15px}.fixture-head{display:grid}.panel-head p{font-size:11px}.odds-scroll{border-top:1px solid var(--border)}.panel-foot:before{content:'↔ ဘေးသို့ဆွဲပြီး ပွဲတစ်တန်းလုံး ကြည့်နိုင်ပါသည်။';color:#63816f}.team-choice{font-size:13px}.fixture .odds{font-size:16px}}
/* Trading desk */
.board-mode{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 20px;background:#f3f7f4;border-bottom:1px solid var(--border)}.board-mode>span{font-size:9px;color:#809588;white-space:nowrap}.mode-buttons{display:flex;gap:5px;background:#e6eee8;padding:4px;border-radius:9px}.mode-buttons button{border:0;background:none;font-size:11px;padding:7px 14px;color:#728c79}.mode-buttons button.selected{background:#fff;color:#1b6649;box-shadow:0 2px 6px #1b4e2410}.trade-layout{display:block}.trade-layout.trading{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.trade-layout>.panel{min-width:0}.trading .panel-head{flex-direction:column;align-items:flex-start}.trading .board-mode{align-items:flex-start;flex-direction:column}.trading .panel-head button{width:100%}.odds-table{min-width:1220px}.fixture-head,.fixture{grid-template-columns:90px 76px minmax(170px,1fr) minmax(170px,1fr) 76px 68px 108px 108px 65px 100px;gap:11px;padding:12px 18px}.fixture-head{font-size:10px}.ou-picks{display:flex;gap:3px}.ou-picks button{padding:7px 6px;font-size:11px;border-radius:5px}.over-pick{background:#faeae6;border-color:#f2d8d1;color:#b66a56}.under-pick{background:#e9f4e9;border-color:#d6e8d8;color:#5d925d}.exposure-cell{text-align:center;font-family:Arial,sans-serif;font-size:13px;font-variant-numeric:tabular-nums}.exposure-cell b{font-weight:600}.exposure-cell small{font-size:10px;margin-left:2px}.home-net{color:#35669a}.away-net{color:#b56464}.net-zero{color:#a1ada6}.sale-panel{border:1px solid var(--border);border-radius:12px;background:#fff;position:sticky;top:15px;overflow:hidden}.sale-heading{background:linear-gradient(130deg,#173d32,#276a4c);color:#fff;padding:21px}.sale-heading>span{font-size:9px;letter-spacing:2.1px;color:#d2b980}.sale-heading h2{font-size:18px;margin:6px 0}.sale-heading p{font-size:10px;color:#a9c7b2}.sale-body{padding:18px;display:grid;gap:12px}.sale-body>label{font-size:11px;color:#789180}.sale-body input,.sale-body select{margin-top:5px;font-size:12px}.text-link{background:none;border:0;padding:0;text-align:left;font-size:11px;color:#377c56}.cash-hint{font-size:9px;line-height:1.8;color:#93a396}.cart-list{display:grid;gap:10px}.cart-item{border:1px solid #dce8df;border-radius:8px;background:#f8fbf8;padding:12px}.cart-item>div{display:flex;justify-content:space-between;align-items:center}.cart-item>div>span{font-size:9px;letter-spacing:1px;color:#72957e}.cart-item>div>button{padding:0 3px;border:0;background:none;color:#b09486;font-size:12px}.cart-item>b{display:block;font-size:14px;color:#24603f;margin-top:3px}.cart-item>small{display:block;font-size:9px;color:#9bac9e}.cart-item>label{font-size:10px;display:block;margin-top:10px;color:#819787}.cart-item input{font-family:Arial,sans-serif;font-size:18px;font-weight:600;color:#25563c}.cart-empty{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #d6e4d8;border-radius:9px;margin-block:6px}.cart-empty>span{font-size:30px;color:#b7cbb8;line-height:1.5}.cart-empty b{font-size:13px;color:#76957c}.cart-empty p{font-size:10px;color:#a1b1a4;margin-top:5px}.sale-summary{padding-top:15px;border-top:1px solid var(--border)}.sale-summary>span{font-size:11px;color:#7b9383}.sale-summary>b{display:block;font-size:27px;font-weight:500;font-family:Arial,sans-serif;color:#285f40}.sale-summary small{font-size:12px;color:#8fa194}.sale-summary p{font-size:10px;margin-top:4px;color:#91a396}.settings-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.settings-card,.rule-card{padding:30px}.settings-card>h2{font-size:22px;margin:8px 0}.settings-card>p{font-size:12px}.settings-card form{margin-top:25px}.section-kicker{font-size:10px;letter-spacing:2px;color:#9aab9f}.rule-card{background:#eef4ed;border-color:#dce8d9}.rule-card>span{font-size:11px;color:#6d8e73}.rule-card h2{font-size:20px;margin:13px 0}.rule-card p{font-size:12px;line-height:2;color:#79907d}.rule-card hr{border:0;border-top:1px solid #d5e2d0;margin:20px 0}.result-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.result-top h2{font-size:20px;margin:7px 0}.result-top p{font-size:12px}.result-top>label{font-size:10px;color:#8fa194}.result-top input{margin-top:5px;max-width:200px}.result-scroll{overflow:auto}.result-table{min-width:850px}.result-head,.result-row{display:grid;grid-template-columns:100px minmax(180px,1fr) 70px 70px minmax(180px,1fr) 80px 100px;gap:14px;align-items:center;padding:19px 24px}.result-head{background:#1b4336;color:#c5d8c8;font-family:Arial,sans-serif;font-size:11px;min-height:53px}.result-row{border-bottom:1px solid #eaf0e9;min-height:92px;transition:background .15s}.result-row>b{font-family:Arial,sans-serif;font-size:13px;font-weight:500}.result-time{font-family:Arial,sans-serif;font-size:12px;color:#65816f}.result-time small{display:block;font-size:9px;color:#9fb0a0}.result-row .score{font-family:Arial,sans-serif;background:#f6faf5;border:1px solid #dce8d8;border-radius:7px;text-align:center;font-size:21px;font-weight:600;padding:7px 3px;color:#315f40}.result-row.checked{background:#f2f8ef;box-shadow:inset 3px 0 #72a65a}.result-row.completed{background:#f7f8f7}.result-row.completed>b{color:#94a99a}.result-row.completed input{background:#edf1ec;border-color:#e5eae2;color:#98ab9c}.result-check{display:flex;justify-content:center}.result-check input{width:22px;height:22px;accent-color:#478859;cursor:pointer}.result-check input:disabled{cursor:default}.settle-bar{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 25px;border-top:1px solid #dce7d8;background:#fffefa;box-shadow:0 -8px 25px #255b3a05}.settle-bar b{font-size:15px;color:#54704e}.settle-bar p{font-size:10px;color:#99aa96;margin-top:5px}.settle-bar button{padding:13px 22px;font-size:13px}.result-row .score:focus{background:#fffbe9;border-color:#b69c4b;box-shadow:0 0 0 3px #e0c16b20}
@media(min-width:1450px){.odds-table{min-width:1230px}.fixture-head,.fixture{grid-template-columns:90px 76px minmax(175px,1fr) minmax(175px,1fr) 76px 68px 110px 110px 65px 100px;gap:12px}.trade-layout.trading{grid-template-columns:320px minmax(0,1fr)}}
@media(max-width:900px){.trade-layout.trading{grid-template-columns:1fr}.sale-panel{position:static}.sale-body{grid-template-columns:1fr 1fr}.sale-body .cart-list,.sale-summary,.sale-body>#saveSale,.sale-body>.cash-hint{grid-column:1/-1}.cart-list{grid-template-columns:repeat(2,1fr)}.settings-layout{grid-template-columns:1fr}.board-mode{align-items:flex-start;flex-direction:column}.result-top{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.odds-table{min-width:1220px}.fixture-head,.fixture{grid-template-columns:90px 76px minmax(170px,1fr) minmax(170px,1fr) 76px 68px 108px 108px 65px 100px;gap:11px;padding:12px 18px}.mode-buttons{width:100%}.mode-buttons button{flex:1;padding:8px 7px;font-size:10px}.board-mode{padding:12px}.cart-list{grid-template-columns:1fr}.sale-body{grid-template-columns:1fr}.sale-heading h2{font-size:20px}.settle-bar{align-items:stretch;flex-direction:column;padding:18px;gap:13px}.settle-bar button{width:100%;font-size:12px}.result-top h2{font-size:18px}.settings-card,.rule-card{padding:22px}.result-head,.result-row{padding:16px 18px}.stats{margin-bottom:20px}}
/* v4 compact keyboard workspace */
#stats{display:none!important}.page-heading{margin-bottom:14px}.page-heading h1{font-size:28px}#subtitle{font-size:13px}.board-mode{padding:8px 0 12px;border:0;background:transparent}.mode-buttons{max-width:540px}.panel-head{padding:12px 16px;gap:14px}.panel-head h2{font-size:17px}.panel-head p{font-size:12px;margin:3px 0}.panel-head .primary{padding:9px 14px;min-height:38px}.toolbar{margin-bottom:10px}.fixture{min-height:92px}.team-choice{min-height:44px}.favorite-check{display:flex;gap:5px;align-items:center;white-space:nowrap;font-size:10px}.favorite-check input{width:16px;height:16px;accent-color:#176b54}.ou-picks{display:flex;flex-direction:column;gap:7px;align-items:center}.ou-picks>div{display:flex;gap:4px}.ou-picks button{padding:4px 7px}.odds:focus,[data-line-part]:focus{outline:2px solid #9b84df;outline-offset:2px}::selection{background:#258bdb;color:white}
.trade-layout.trading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:14px;align-items:stretch}.trading #salePanel{display:contents}.trading>.panel{grid-column:2;grid-row:2;min-width:0;margin:0;align-self:start}.sale-entry{grid-column:1/-1;grid-row:1;border:1px solid #cee1d8;border-radius:12px;background:#f6fbf8;padding:14px 16px}.sale-tickets{grid-column:1;grid-row:2;min-width:0;border:1px solid #dce5df;border-radius:12px;background:white;display:flex;flex-direction:column;overflow:hidden;min-height:380px}.desk-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:#176950}.desk-heading b{font-size:16px}.desk-heading span{font-size:12px;color:#6d8179}.sale-controls{display:grid;grid-template-columns:minmax(130px,1.1fr) minmax(170px,1.6fr) 95px minmax(130px,1fr) 90px minmax(100px,1fr) auto;gap:10px;align-items:end}.sale-entry label{font-size:11px;display:flex;flex-direction:column;gap:5px;color:#526d62}.sale-entry input,.sale-entry select{height:39px;min-height:39px;padding:7px 9px;font-size:13px;background:white;width:100%;border-radius:6px}.owner-row{display:flex;gap:4px;min-width:0}.owner-row select{min-width:0}.owner-row button{padding:5px 10px;border-radius:6px}.sale-controls>.primary{height:39px;padding:5px 12px;white-space:nowrap;font-size:12px}.sale-secondary{display:flex;align-items:center;gap:20px;margin-top:11px;padding-top:11px;border-top:1px solid #dfebe3;color:#688174;font-size:11px}.sale-secondary label{flex-direction:row;align-items:center;white-space:nowrap}.sale-secondary select{width:160px;height:32px;min-height:32px}.sale-secondary label:last-child{margin-left:auto}.sale-secondary input{max-width:280px;height:32px;min-height:32px}.sale-tickets .desk-heading{padding:13px 15px;margin:0;border-bottom:1px solid #e4ebe7}.cart-table-wrap{overflow-x:auto;flex:1}.cart-table{width:100%;border-collapse:collapse;font-size:12px}.cart-table th{text-align:left;background:#f5f8f6;padding:10px;color:#708077;font-weight:500}.cart-table td{padding:10px;border-bottom:1px solid #edf0ee}.cart-table small{display:block;color:#819087;margin-top:5px;font-size:10px}.cart-table input{width:100px;min-height:34px;padding:4px 7px;border-radius:5px}.cart-table button{padding:3px 6px;min-height:28px;border:0}.desk-empty{height:210px;text-align:center!important;color:#98a99f}.desk-footer{display:flex;gap:10px;align-items:center;justify-content:space-between;border-top:1px solid #e2e8e4;padding:14px;font-size:12px;background:#fafcfb}.desk-footer span b{display:block;font-size:20px;color:#185a44;margin-top:4px}.desk-footer .primary{font-size:12px;padding:10px 12px}.trading .panel-head{display:none}.trading .odds-table{min-width:850px}.trading .fixture,.trading .fixture-head{grid-template-columns:75px 64px minmax(140px,1fr) minmax(140px,1fr) 64px 72px 85px 85px;gap:6px;padding:10px}.trading .status-cell,.trading .row-actions,.trading .fixture-head>span:nth-last-child(-n+2){display:none}.trading .team-choice{font-size:12px;min-height:38px;padding:7px}.trading .team-league{font-size:9px}.trading .fixture-time b{font-size:11px}.trading .odds{font-size:14px;padding:5px}.trading .favorite-check{display:none}.trading .exposure-cell b{font-size:12px}.trading .fixture{min-height:76px}.trading .fixture-head{font-size:10px}.trading .panel-foot{font-size:10px;padding:10px}.trading .panel-foot span:last-child{display:none}
.dealer-mode .sale-entry{background:#f1f6ff;border-color:#cbdcf4}.dealer-mode .sale-entry .desk-heading,.dealer-mode .sale-tickets .desk-heading{color:#245bab}.dealer-mode .sale-entry .primary,.dealer-mode #saveSale{background:#2867c2;border-color:#2867c2}.dealer-mode .sale-tickets{border-color:#cfdef2}.dealer-mode .desk-footer{background:#f4f8ff}.dealer-mode .desk-footer b{color:#245bab}.dealer-mode [data-mode=dealer].selected{background:#2867c2;color:white}.dealer-mode .sale-secondary{border-color:#dbe5f7}.dealer-mode .sale-controls input:focus,.dealer-mode .sale-controls select:focus{outline-color:#2867c2}
#dialog:has(.match-entry){width:min(900px,94vw);max-width:94vw}.match-entry{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px}.match-fields{padding:4px}.entry-meta{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px}.match-entry label{font-size:12px;display:flex;flex-direction:column;gap:6px}.match-entry input,.match-entry select{min-height:39px;height:39px;border-radius:6px;font-size:13px;padding:7px 10px}.entry-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:end;margin:18px 0}.entry-teams>b{align-self:center;margin-top:20px;font-size:12px;color:#99a99f}.line-entry{display:grid;grid-template-columns:1fr 100px 100px;gap:9px;align-items:center;background:#f5f9f6;padding:14px;border:1px solid #dfe9e1;border-radius:8px}.line-entry input{text-align:center;font-size:18px;font-weight:700}.line-entry small{font-size:11px;color:#7d9185;text-align:center}.line-entry b{font-size:13px}.match-entry .entry-favorite{display:flex;flex-direction:row;align-items:center;gap:8px;margin:15px 0;font-size:13px}.entry-favorite input{width:18px;height:18px;min-height:18px;accent-color:#19664e}.entry-favorite small{font-size:10px;color:#85968b;margin-left:auto}.entry-queue{border-left:1px solid #e3ebe5;padding-left:18px;font-size:12px}.entry-queue>div{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #e7eee8}.entry-queue small{display:block;font-size:10px;color:#899b90;margin-top:4px}.entry-queue p{margin:0;flex:1}.entry-queue button{padding:4px 7px}.entry-queue>div>span{font-size:10px;color:#9bafa1}.result-state{display:flex;flex-direction:column;align-items:center;gap:6px}.result-state button{font-size:11px;padding:5px 8px;min-height:28px}.result-state .badge{font-size:10px}
@media(max-width:1150px){.sale-controls{grid-template-columns:1fr 1.5fr 1fr 1.3fr}.sale-controls>label:nth-last-of-type(2){grid-column:1}.sale-controls>.primary{align-self:end}.sale-secondary{flex-wrap:wrap}.sale-secondary label:last-child{margin-left:0}}
@media(max-width:900px){.trade-layout.trading{grid-template-columns:minmax(0,1fr)}.trading .sale-entry{grid-column:1;grid-row:1}.trading .sale-tickets{grid-column:1;grid-row:2;min-height:230px}.trading>.panel{grid-column:1;grid-row:3}.sale-controls{grid-template-columns:1fr 1fr}.sale-controls label:nth-child(2){grid-column:auto}.sale-controls>label:nth-last-of-type(2){grid-column:auto}.sale-controls>.primary{grid-column:2}.sale-secondary{gap:9px}.sale-secondary input{max-width:170px}.sale-entry{padding:12px}.sale-entry .desk-heading{margin-bottom:10px}.desk-footer{padding:10px}.cart-table-wrap{min-height:120px}.desk-empty{height:110px}.match-entry{grid-template-columns:1fr}.entry-queue{border-left:0;border-top:1px solid #e3ebe5;padding:12px 0 0;max-height:130px;overflow:auto}.entry-meta{grid-template-columns:1fr 1fr}.entry-meta label:first-child{grid-column:1/-1}.line-entry{grid-template-columns:1fr 75px 85px}.entry-favorite small{display:none}.entry-teams{gap:6px}.match-entry .dialog-actions{flex-wrap:wrap}.mode-buttons{width:100%}.board-mode{padding:5px 0 10px}.panel-head{padding:10px}.panel-head h2{font-size:15px}.panel-head p{font-size:10px}.panel-head .primary{width:auto;font-size:11px}.intro h1{font-size:25px}.intro p{display:none}.intro{margin-bottom:10px}.page-heading{margin-bottom:10px}footer{padding:18px 0}}
/* Compact credit sales and auditable statements */
.compact-sale{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;padding:16px 20px}.sale-left,.sale-right{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.sale-left label:nth-child(-n+2){grid-column:1/-1}.sale-right label:first-child{grid-column:1/-1}.sale-right input[readonly]{background:#eef4f0;font-weight:700}.sale-right button{align-self:end}.trading .sale-panel{grid-column:1/-1}.trading .sale-entry{margin:0}.sale-panel .sale-tickets{margin-top:14px}.people-tabs{display:flex;gap:10px;margin-bottom:18px}.blue{background:#225ea8;color:white}.compact-filter{display:flex;gap:14px;align-items:end;padding:18px;margin-bottom:20px;flex-wrap:wrap}.compact-filter label{min-width:170px}.compact-filter button{min-height:42px}.data-table tfoot{background:#e8f1eb;font-weight:750;border-top:2px solid #c9dcd2}.data-table th{white-space:nowrap}.slip-table tbody tr{cursor:pointer}.slip-table tbody tr:hover,.selected-slip{background:#edf6f0}.slip-table td:nth-last-child(-n+2),.slip-table th:nth-last-child(-n+2),.slip-table tfoot td:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums}.slip-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 12px}.danger{color:#a63137;border-color:#eccbd0;background:#fff7f7}.fee-total{display:flex;justify-content:space-between;padding:20px 24px;background:#e5efe9;border-radius:10px;margin-top:16px}.fee-total strong{font-size:22px}.accounts-table td:not(:first-child){text-align:right;white-space:nowrap}.accounts-table th{font-size:12px}.settings-v5{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-v5 .settings-card:last-child{grid-column:1/-1}.amount-toggle{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.amount-toggle label{position:relative;display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#f4f8f5;border:1px solid #dbe7df;border-radius:10px;padding:18px}.amount-toggle label:has(input:checked){border:2px solid #216953;background:#e9f3ed}.amount-toggle input{width:16px;height:16px}.amount-toggle small{width:100%;padding-left:26px;color:#80948c}input.odds::selection{background:#2473ce;color:white}#otherView .match-entry{background:white;border:1px solid #dce6e0;border-radius:12px;padding:24px}#otherView .entry-queue{position:static}.dealer-mode .sale-entry{border-top:4px solid #3375bd}.dealer-mode .desk-heading{background:#eaf1fc;color:#235b95}.settings-v5 p{line-height:1.9;color:#75877f}.data-table button{white-space:nowrap}@media(max-width:800px){.compact-sale{grid-template-columns:1fr;gap:16px}.settings-v5{grid-template-columns:1fr}.settings-v5 .settings-card:last-child{grid-column:auto}.fee-total{gap:15px;flex-wrap:wrap}.compact-filter label{flex:1}.compact-filter{padding:14px}.slip-heading{align-items:start}.slip-heading h2{font-size:18px}} 
/* v6: short labels, daily person statements */
#subtitle:empty,.panel-head p:empty{display:none}.eyebrow,.section-kicker{display:none}.sale-right #appendSaleItem{grid-column:1/-1}.sale-right #saleQuote{background:#fff;font-weight:700}.person-kind{display:inline-block;font-size:10px;padding:3px 7px;margin-left:8px;border-radius:5px;background:#e9f2ed;color:#357359;white-space:nowrap}.person-kind.dealer{background:#e8effb;color:#2b61a3}.row-share{display:flex;gap:7px}.row-share button{padding:7px 12px;min-height:32px}.copy-text{display:block;width:100%;min-height:230px;padding:18px;line-height:2;border:1px solid #dce7df;border-radius:8px;font-family:inherit}#demoBanner{font-size:11px;padding:7px 12px;margin-bottom:20px}.page-head{margin-bottom:20px}.accounts-table td:first-child{min-width:170px}.settings-v5 .settings-card:last-child{padding:20px 24px}.sale-tickets:focus-within{outline:2px solid #b6d2c6;outline-offset:3px}.cart-stake::selection,#saleQuote::selection{background:#2473ce;color:#fff}

/* v2.1: centered notices, staged opening, exposure colors and split slips. */
.toast{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:min(420px,calc(100vw - 32px));text-align:center;padding:18px 24px;border:1px solid #ffffff30;line-height:1.9;overflow-wrap:anywhere;z-index:1000}
#dialog{width:min(620px,calc(100% - 32px));max-height:90vh}
#dialog:has(.data-table),#dialog:has(pre){width:min(1000px,calc(100% - 32px))}
#dialog:has(.match-entry){width:min(900px,94vw)}
.match-open-check{display:flex;align-items:center;gap:7px;cursor:pointer}
.fixture .match-open-check input{width:18px;height:18px;min-width:18px;padding:0;accent-color:var(--green)}
.mode-buttons{flex-wrap:wrap;gap:6px}
#saveOpen.primary{background:var(--green);color:white}
.exposure-cell .exposure-upper{color:#b54141;font-weight:750}
.exposure-cell .exposure-lower{color:#176852;font-weight:750}
.exposure-cell small{display:block;font-size:10px}
#slipHeaders>.table-wrap{max-height:clamp(180px,35vh,360px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.slip-table thead{position:sticky;top:0;z-index:1;background:#f6f9f6}
.slip-table tfoot{position:sticky;bottom:0;z-index:1;background:#e8f1eb}
#slipDetails{border-top:3px solid #b9cec3;margin-top:16px;padding-top:2px}
#slipDetails:empty{display:none}
#slipDetails>.table-wrap{max-height:42vh;overflow:auto}
#slipDetails .slip-heading{margin-top:14px}
#accountResult tfoot td:last-child{text-align:right;font-weight:750;font-size:15px;white-space:nowrap}
.owner-row input{flex:1;min-width:0}

/* 2.2 compact sales, independent scroll panes, fixture cards and modal. */
#matchesView .toolbar{flex-direction:column;align-items:stretch;gap:9px}
#matchesView .search{max-width:none}
#matchesView .chips{order:2}
.page-head .actions{align-items:end}
#fixtureDateWrap{font-size:11px;color:var(--muted)}
#fixtureDay{display:block;width:165px;padding:7px 10px}
.trade-layout.trading .sale-entry{padding:12px 16px}
.trading .compact-sale{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;padding:8px 0 0}
.compact-sale .sale-left,.compact-sale .sale-right{gap:8px 12px}
.compact-sale .sale-right{grid-template-columns:minmax(0,1fr);align-content:start}
.compact-sale .sale-right label:first-child{grid-column:auto}
.compact-sale .sale-right label{max-width:180px}
.compact-sale .sale-right button{grid-column:auto;margin-top:3px;width:100%}
.sale-entry .desk-heading{margin-bottom:5px}
.sale-entry .desk-heading b{font-size:14px}
.sale-entry .desk-heading span{font-size:10px}
.trading .sale-tickets,.trading>.panel{height:clamp(320px,49vh,560px);min-height:0;margin:0;display:flex;flex-direction:column;align-self:stretch}
.sale-tickets .cart-table-wrap,.trading .odds-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.cart-table thead,.trading .fixture-head{position:sticky;top:0;background:#f5f8f6;z-index:2}
.desk-footer,.trading .panel-foot{flex-shrink:0}
.trading .panel-head{display:flex;padding:10px 12px;flex-wrap:wrap;border-bottom:1px solid var(--border)}
.trading .panel-head h2{font-size:13px}
.odds-actions{display:flex;gap:6px;flex-wrap:wrap}
.odds-actions button{font-size:11px;padding:7px 10px;min-height:34px}
.trading .favorite-check{display:flex;font-size:9px}
.trading .odds-table{min-width:840px}
.fixture-search{max-width:480px;margin-bottom:12px}
.fixture-summary{color:var(--muted);font-size:12px;margin-bottom:14px}
.fixture-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.fixture-card{padding:17px;border:1px solid var(--border);background:white;border-radius:12px}
.fixture-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}
.fixture-card h2{margin:14px 0;font-size:16px}
.fixture-card h2 small{font-size:11px;color:var(--muted);margin:0 8px}
.fixture-card-lines{display:flex;gap:20px;padding:10px 0;border-block:1px solid var(--border);margin-bottom:8px;font-size:12px}
.fixture-card-lines b{margin-left:8px;color:var(--green)}
.fixture-card>small{color:var(--muted);font-size:11px}
.fixture-card-actions{display:flex;justify-content:end;gap:7px;margin-top:12px}
.fixture-card-actions button{padding:6px 14px;font-size:12px}
#dialog:has(.match-entry){width:min(700px,calc(100vw - 32px));max-height:88vh;border-radius:16px}
#dialog .match-entry.single-entry{display:block}
#dialog .match-entry:not(.single-entry){grid-template-columns:minmax(0,1fr);gap:16px}
#dialog .entry-queue{position:static;border-left:0;border-top:1px solid var(--border);padding:12px 0 0;max-height:120px;overflow:auto}
#dialog .entry-meta{grid-template-columns:1.3fr 1fr 1fr}
#dialog .entry-meta label:first-child{grid-column:auto}
#dialog .entry-teams{margin:14px 0}
#dialog .line-entry{grid-template-columns:minmax(100px,1fr) 100px 110px;padding:12px}
#closeDialog{border-radius:50%;width:36px;height:36px;display:grid;place-items:center;padding:0;font-size:23px;background:#f0f3f1;color:#35483e}
@media(max-width:900px){.trading .compact-sale{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}.trading .sale-tickets,.trading>.panel{height:380px}.trading>.panel{grid-row:3}.trading .sale-tickets{grid-row:2}}
@media(max-width:520px){.page-head{align-items:start;gap:8px}.page-head .actions{flex-wrap:wrap;justify-content:end;gap:6px}.page-head .actions button{padding:7px 10px;font-size:11px}#fixtureDay{width:145px}.trading .compact-sale{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px}.compact-sale .sale-left{gap:7px}.compact-sale .sale-left label:nth-child(n+3){grid-column:1/-1}.sale-entry input,.sale-entry select{font-size:12px}.sale-entry .desk-heading span{display:none}.trading .sale-entry{padding:12px}#dialog .entry-meta{grid-template-columns:1fr 1fr}#dialog .entry-meta label:first-child{grid-column:1/-1}#dialog .line-entry{grid-template-columns:minmax(80px,1fr) 70px 80px}.fixture-cards{grid-template-columns:1fr}}

/* 2.3 fixture rows for the complete selected calendar day. */
.fixture-table-scroll{max-height:65vh;overflow:auto;overscroll-behavior:contain}
.fixture-manager-table{width:100%;min-width:800px;border-collapse:collapse}
.fixture-manager-table th,.fixture-manager-table td{border:1px solid var(--border);padding:12px 14px;vertical-align:middle}
.fixture-manager-table thead{position:sticky;top:0;background:#eff5f1;z-index:1}
.fixture-manager-table th:first-child,.fixture-manager-table td:first-child{width:55px;text-align:center}
.fixture-manager-table td small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.fixture-clock,.fixture-line{white-space:nowrap;font-variant-numeric:tabular-nums}
.fixture-line{color:var(--green);font-weight:700}
.fixture-table-actions{display:flex;gap:6px;white-space:nowrap}
.fixture-table-actions button{padding:6px 10px;font-size:12px}

.fixture-manager-table{min-width:900px}.fixture-score{text-align:center;white-space:nowrap;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--green)}

/* 2.5: consistent bordered tables outside sales/settings. */
#otherView .data-table{width:100%;border-collapse:collapse;min-width:600px;background:#fff}
#otherView .data-table th,#otherView .data-table td{border:1px solid #d2dfd7;padding:12px 14px;vertical-align:middle}
#otherView .data-table thead th{background:#e7f0ea;color:#205240;font-weight:700}
#otherView .data-table tbody tr:nth-child(even){background:#f4f8f5}
#otherView .data-table tbody tr:hover{background:#eaf3ed}
#otherView .data-table tfoot td{background:#dfeee4;color:#174e38;font-weight:750;border-top:2px solid #a9c6b5}
#otherView .table-wrap{overflow:auto}
#otherView .result-table{display:table;min-width:860px}
#otherView .result-row{display:table-row;padding:0;min-height:0}
#otherView .result-table .score{width:66px;min-width:55px}
#otherView .result-table td:first-child{text-align:center;width:55px}
#otherView .result-row.checked{background:#e8f3df}
#otherView .result-row.completed{background:#f0f3f1}
#otherView .result-scroll{max-height:65vh;overflow:auto}
#otherView .result-table thead{position:sticky;top:0;z-index:1}
#otherView .result-table tfoot{position:sticky;bottom:0}
.entry-book-day{font-size:12px;color:var(--green);margin-bottom:12px;padding:6px 10px;background:#edf5ef;border-radius:6px}

/* Member controls stay inside the existing people table. */
.member-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.member-status{display:inline-block;border-radius:20px;padding:4px 10px;font-size:12px;white-space:nowrap}
.member-status.enabled{background:#e6f3ec;color:#19694f}
.member-status.blocked{background:#fae9e8;color:#9b3935}

/* 2.7: give the odds table most of the trading workspace. */
.trade-layout.trading{grid-template-columns:minmax(220px,.28fr) minmax(0,1fr);gap:14px}
.trading>.panel{grid-column:2;grid-row:2;overflow:hidden}
.trading .sale-tickets{grid-column:1;grid-row:2}
.trading .sale-tickets .desk-heading{padding:10px;flex-wrap:wrap;gap:3px}
.trading .sale-tickets .desk-heading b{font-size:13px}
.trading .cart-table{table-layout:fixed;font-size:11px}
.trading .cart-table th,.trading .cart-table td{padding:7px 5px;overflow-wrap:anywhere}
.trading .cart-table th:nth-child(1){width:15%}.trading .cart-table th:nth-child(2){width:35%}.trading .cart-table th:nth-child(3){width:19%}.trading .cart-table th:nth-child(4){width:23%}.trading .cart-table th:last-child{width:8%}
.trading .desk-footer{padding:10px;align-items:stretch;flex-direction:column;gap:8px}
.trading .desk-footer span b{display:inline;font-size:17px;margin-left:6px}
.trading .desk-footer .primary{width:100%;white-space:normal;padding:9px 6px;font-size:11px}
.trading .odds-scroll{overflow:auto;scrollbar-gutter:auto}
.trading table.odds-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0}
.trading .time-col{width:8%}.trading .line-col{width:8%}.trading .team-col{width:18%}.trading .pick-col{width:14%}.trading .net-col{width:13%}
.trading .fixture-head,.trading .fixture{display:table-row;padding:0;min-height:0}
.trading .fixture-head>th{position:sticky;top:0;z-index:2;background:#eaf2ee;color:#46695b;font-size:11px;font-weight:600}
.trading .fixture-head>th,.trading .fixture>td{padding:11px 6px;border-right:1px solid #e0e9e3;border-bottom:1px solid #e0e9e3;text-align:center;vertical-align:middle;overflow-wrap:anywhere}
.trading .fixture-head>th:nth-last-child(-n+2){display:table-cell}
.trading .fixture-head>th:last-child,.trading .fixture>td:last-child{border-right:0}
.trading .fixture:nth-child(even){background:#f5f9f6}.trading .fixture:nth-child(odd){background:#fff}
.trading .fixture:hover{background:#edf5f0}.trading .fixture.dirty{background:#fff9e7;box-shadow:inset 3px 0 #c4a152}
.trading .fixture .team-cell,.trading .fixture .fixture-time{min-width:0;display:table-cell}
.trading .team-choice{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:8px 5px;line-height:1.5;font-size:12px;min-height:43px}
.trading .team-choice small{display:none}.trading .team-league{white-space:normal;line-height:1.45;font-size:9px;margin-top:5px}
.trading .fixture .odds{width:100%;min-width:0;text-align:center;font-size:13px;font-weight:650;padding:7px 2px;border-radius:6px;background:#eef5f0}
.trading .fixture-time b{font-size:10px;white-space:normal}.trading .match-open-check{display:flex;flex-direction:column;gap:4px;align-items:center}
.trading .fixture-time>small{font-size:8px;white-space:normal;line-height:1.4;margin-top:4px}
.trading .status-text{font-size:9px}.trading .favorite-check{font-size:9px;white-space:normal;justify-content:center;gap:3px;line-height:1.5}
.trading .favorite-check input{width:14px;height:14px;flex-shrink:0}.trading .ou-picks{gap:5px}
.trading .ou-picks button{font-size:10px;padding:4px 5px;min-height:27px}.trading .ou-picks .row-save{font-size:9px;background:#fff;border-color:#cddfd5}
.trading .exposure-cell b{font-size:12px;overflow-wrap:anywhere}.trading .exposure-cell small{display:block;font-size:9px}
.trading .panel-head{flex-direction:row;justify-content:space-between;align-items:center;padding:12px;gap:8px}
.trading .panel-head h2{font-size:14px}.trading .panel-head .odds-actions{margin-left:auto}.trading .panel-head button{width:auto}
.trading .panel-foot:before{content:none}
@media(min-width:1200px){aside{width:200px;padding-left:14px;padding-right:14px}.workspace{margin-left:200px}main{padding-left:20px;padding-right:20px}header{padding-left:20px;padding-right:20px}}
@media(max-width:1199px){.trade-layout.trading{grid-template-columns:minmax(0,1fr)}.trading>.panel{grid-column:1;grid-row:2}.trading .sale-tickets{grid-column:1;grid-row:3;height:260px}.trading .sale-tickets .desk-footer{flex-direction:row;align-items:center}.trading .sale-tickets .desk-footer .primary{width:auto}.trading .cart-table th:nth-child(2){width:35%}}
@media(max-width:700px){.trading table.odds-table{min-width:720px}.trading .panel-head{align-items:flex-start}.trading .panel-head .odds-actions{margin-left:0}}

.trading .cart-table th:first-child,.trading .cart-table td:first-child{white-space:nowrap;overflow-wrap:normal}
.trading .fixture-time>small,.trading .fixture-time>.status-text{display:block;white-space:nowrap}
.trading .ou-picks .row-save:disabled{display:none}

/* 2.8: the two desktop panes share available width in a 35 : 65 ratio. */
@media(min-width:1200px){.trade-layout.trading{grid-template-columns:minmax(0,35fr) minmax(0,65fr)}}
#salesDateWrap{font-size:11px;color:var(--muted)}#salesDay{display:block;width:158px;padding:7px 10px}#salesVouchers{min-height:38px;font-size:12px}
.trading .cart-table th,.trading .cart-table td{border-right:1px solid #e0e9e3;border-bottom:1px solid #e0e9e3}
.trading .cart-table th:last-child,.trading .cart-table td:last-child{border-right:0}
.trading .cart-table tbody tr:nth-child(even){background:#f2f7f4}.trading .cart-table thead th{font-weight:650;background:#eaf2ee}
.bot-permission{display:inline-flex;align-items:center;gap:9px;border-radius:9px;padding:7px 10px;font-size:12px;white-space:nowrap}
.bot-permission.on{background:#edf7f0;color:#176852;border-color:#bcdaca}.bot-permission.off{background:#fff4f2;color:#a4443c;border-color:#edcdc9}
.switch-track{display:inline-flex;align-items:center;width:32px;height:19px;border-radius:20px;background:#b58a84;padding:3px;flex-shrink:0}.switch-track i{display:block;width:13px;height:13px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.bot-permission.on .switch-track{background:#278765}.bot-permission.on .switch-track i{transform:translateX(13px)}
@media(min-width:1200px){.trading .exposure-cell b{font-size:10px;white-space:nowrap;letter-spacing:-.1px}.trading .fixture-time b{font-size:9px}}

/* ROYAL_KICK_WHITE_GREEN_COMPACT_BEGIN */
/* Colours only. Existing layout and behaviour are preserved. */
:root{color-scheme:light;--ink:#111111;--muted:#444444;--green:#226a58;--deep:#ffffff;--gold:#22865b;--bg:#ffffff;--border:#d9dfd8;--red:#b54141}
body,.workspace,main{background:var(--bg);color:var(--ink)}
aside{background:#ffffff;color:#111111}header{background:#ffffff;border-color:var(--border)}
.brand{color:#285f4b}.brand small,.aside-caption,.aside-bottom p,header small{color:#7b867d}.brand-mark{background:#dce8df;color:#24634b}
nav button{background:transparent;color:#5c695f}nav button:hover{background:#e2e7df;color:#285f4b}nav button.active{background:#22865b;color:#ffffff;border-color:#22865b}.aside-bottom{border-color:#d6ddd3}.avatar{background:#edf7ef;color:#111111;border-color:#c4decf}
.panel,.stat,.login-card,dialog,.draft,.sale-panel,.sale-entry,.sale-tickets,.fixture-card,.settings-card,.rule-card,.match-entry,#otherView .match-entry{background:#fff;border-color:#d9e0d8;color:var(--ink)}
.login{background:#edf1eb}.login-card{box-shadow:0 16px 60px #23483216}dialog::backdrop{background:#293b3066}
button{background:#fff;color:#3c4e42;border-color:#d4dcd2}button:hover,.secondary:hover{background:#eaf0e8}
.primary,.trading .primary,.dealer-mode .sale-entry .primary,.dealer-mode #saveSale,#saveOpen.primary{background:#226a58;color:#fff;border-color:#226a58}.primary:hover,.trading .primary:hover{background:#18513f;color:#fff}
h1,h2,.desk-heading b,.slip-heading h2{color:#315e47}
input,select,textarea,.sale-entry input,.sale-entry select,.sale-right input[readonly],.compact-sale .sale-right input[readonly],.compact-sale .sale-right #saleQuote,.sale-right #saleQuote{background:#fff;color:#39483e;border-color:#d4dcd2}
input::placeholder,textarea::placeholder{color:#8c968d}input:focus,select:focus,textarea:focus{border-color:#22865b;box-shadow:0 0 0 3px #22865b18}
input[type=checkbox],input[type=radio],.favorite-check input,.result-check input,.fixture .match-open-check input{accent-color:#22865b}
.search{background:#fff;border-color:#d9e0d8}.search input{background:transparent}.search span{color:#87958b}
.mode-buttons{background:#e5ebe2}.mode-buttons button{background:transparent;color:#6b7a6d}.mode-buttons button.selected{background:#fff;color:#22634b}.chips button.active{background:#e3ebe0;color:#315f43;border-color:#d0ddcc}
.sale-entry,.trading .sale-entry{background:#fafcf8;border-color:#d7e2d2}.desk-footer,.settle-bar{background:#f1f5ef;border-color:#d6dfd1}.desk-footer span b,.sale-summary>b{color:#22634b}
.data-table,.cart-table,.trading table.odds-table,#otherView .data-table{background:#fff;color:#3c4c40}
.data-table th,.cart-table th,.fixture-head,.trading .fixture-head>th,#otherView .data-table thead th,.trading .cart-table thead th{background:#e9eee5;color:#53694f;border-color:#d8e0d3}
.data-table th,.data-table td,.cart-table th,.cart-table td,.trading .fixture-head>th,.trading .fixture>td,#otherView .data-table th,#otherView .data-table td,.trading .cart-table th,.trading .cart-table td{border-color:#dce3d7}
.fixture,.trading .fixture:nth-child(odd),#otherView .data-table tbody tr:nth-child(odd),.cart-table tbody tr:nth-child(odd){background:#fff}
.trading .fixture:nth-child(even),#otherView .data-table tbody tr:nth-child(even),.trading .cart-table tbody tr:nth-child(even){background:#f4f6f1}
.trading .fixture:hover,#otherView .data-table tbody tr:hover,.slip-table tbody tr:hover,.selected-slip{background:#eaf0e5}
.fixture.dirty,.trading .fixture.dirty{background:#fff9e9;box-shadow:inset 3px 0 #b6a46b}
.data-table tfoot,.data-table tfoot td,#otherView .data-table tfoot td,.fee-total{background:#e5eee0;color:#2d5d3d;border-color:#c3d5ba}
.team-choice,.trading .team-choice{background:#fff;color:#3b4c40;border-color:#d2dcd0}.team-choice.favorite,.fixture.dirty .team-choice.favorite,.trading .team-choice.favorite{background:#226a58;color:#fff;border-color:#226a58;box-shadow:none}.team-choice:hover{background:#edf3e9}.team-choice.favorite:hover{background:#19523f;color:#fff}
.fixture .odds,.trading .fixture .odds{background:#e0e3dc;color:#485345;border-color:#d4d8cf}
.fixture-time b,.trading .fixture-time b{color:#465342}.team-league,.trading .team-league{color:#7e8b79}
.fixture-line,.fixture-score{color:#226a50}.exposure-cell .exposure-upper,.negative{color:#b54141}.exposure-cell .exposure-lower,.positive{color:#176852}.net-zero{color:#8b9786}
.odds-scroll,.table-wrap,.cart-table-wrap,.result-scroll{scrollbar-color:#a9b9a3 #edf1e9}


/* Neutral text stays black; primary and selected controls use white on green. */
h1,h2,p,label,header strong,.brand,.brand small,.aside-caption,.aside-bottom p,.page-head p,.desk-heading,.desk-heading b,.desk-heading span,.sale-entry .desk-heading span,.sale-entry label,.fixture-time b,.trading .fixture-time b,.team-league,.trading .team-league,.fixture-time>small,.cart-table small,footer,.panel-foot,.desk-empty,.empty,.empty b,.settings-v5 p,.rule-card p{color:#111111}
input,select,textarea,.sale-entry input,.sale-entry select,.sale-right #saleQuote,.compact-sale .sale-right #saleQuote,.trading .fixture .odds,.trading .team-choice{color:#111111}
.data-table,.cart-table,.trading table.odds-table,#otherView .data-table,.data-table th,.cart-table th,.trading .fixture-head>th,#otherView .data-table thead th,.trading .cart-table thead th{color:#111111}
.data-table th,.cart-table th,.trading .fixture-head>th,#otherView .data-table thead th,.trading .cart-table thead th{background:#edf7ef}
.sale-entry,.trading .sale-entry,.desk-footer,.panel,.sale-tickets{background:#ffffff}
.primary,.trading .primary,.dealer-mode .sale-entry .primary,.dealer-mode #saveSale,#saveOpen.primary,.team-choice.favorite,.trading .team-choice.favorite,.fixture.dirty .team-choice.favorite{background:#22865b;border-color:#22865b;color:#ffffff}
nav button{color:#111111}nav button.active{color:#ffffff}.mode-buttons button.selected{background:#22865b;color:#ffffff}.chips button.active{background:#edf7ef;color:#111111;border-color:#b8d8c4}
/* Desktop: compact entry above two tall tables, with independent vertical scrolling. */
@media(min-width:1200px) and (min-height:600px){
  .workspace:has(#matchesView:not(.hidden))>header{height:44px}
  main:has(#matchesView:not(.hidden)){height:calc(100dvh - 44px);max-width:none;padding:6px 20px 0;display:grid;grid-template-rows:34px minmax(0,1fr) 18px;gap:4px;overflow:hidden}
  main:has(#matchesView:not(.hidden))>.page-head{margin:0;gap:12px;min-height:0;align-items:center}
  main:has(#matchesView:not(.hidden)) .page-head h1{font-size:22px;line-height:1.35;margin:0}
  main:has(#matchesView:not(.hidden)) .page-head .actions{gap:7px;align-items:center}
  #salesDateWrap{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px}
  #salesDay{height:30px;width:145px;padding:3px 7px}
  #salesVouchers,main:has(#matchesView:not(.hidden)) #refresh{min-height:30px;padding:3px 10px;font-size:11px}
  #matchesView:not(.hidden){display:grid;grid-template-rows:30px 26px minmax(0,1fr);gap:4px;min-height:0}
  #matchesView .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0}
  #matchesView .chips{order:0;flex-wrap:nowrap;gap:5px}
  #matchesView .chips button{padding:3px 9px;font-size:10px}
  #matchesView .search{height:30px}#matchesView .search input{padding:4px 8px;font-size:11px}
  #boardModes{padding:0;margin:0;min-height:0;gap:6px;align-items:center}
  #boardModes .mode-buttons{padding:2px;gap:4px}
  #boardModes .mode-buttons button{padding:2px 12px;font-size:11px;line-height:1.6}
  .trade-layout.trading{min-height:0;height:100%;grid-template-columns:minmax(0,35fr) minmax(0,65fr);grid-template-rows:clamp(80px,calc(30dvh - 160px),110px) minmax(0,1fr);gap:8px 12px}
  .trade-layout.trading .sale-entry{padding:6px 10px;min-height:0;overflow:visible}
  .sale-entry .desk-heading{margin:0 0 3px;line-height:1.4}.sale-entry .desk-heading b{font-size:12px}.sale-entry .desk-heading span{font-size:9px}
  .trading .compact-sale{display:grid;grid-template-columns:minmax(120px,1.35fr) minmax(160px,1.8fr) minmax(75px,.7fr) minmax(90px,.8fr) minmax(65px,.65fr) minmax(80px,.85fr) minmax(90px,.85fr);align-items:end;gap:8px;padding:0}
  .trading .compact-sale .sale-left,.trading .compact-sale .sale-right{display:contents}
  .trading .compact-sale label{max-width:none;min-width:0;gap:2px;font-size:10px;line-height:1.5;grid-column:auto}
  .trading .compact-sale .sale-left label:first-child,.trading .compact-sale .sale-left label:nth-child(2){grid-column:auto}
  .trading .sale-entry input,.trading .sale-entry select{height:32px;min-height:32px;padding:4px 6px;font-size:12px}
  .trading .owner-row{gap:3px}.trading .owner-row button{height:32px;padding:2px 7px}
  .trading .compact-sale .sale-right #appendSaleItem{grid-column:auto;margin:0;height:32px;padding:4px 7px;font-size:11px;width:100%}
  .trading .sale-tickets,.trading>.panel{height:100%;min-height:0;align-self:stretch}
  .trading .panel-head{padding:7px 9px;min-height:38px;flex-shrink:0}.trading .panel-head h2{font-size:13px}
  .trading .panel-head button{min-height:28px;padding:3px 7px;font-size:10px}
  .trading .sale-tickets .desk-heading{padding:7px 10px;min-height:38px;flex-shrink:0}
  .trading .fixture-head>th,.trading .fixture>td{padding:7px 5px}
  .trading .team-choice{min-height:34px;padding:5px 4px;font-size:11px}
  .trading .fixture .odds{padding:5px 2px;font-size:12px}
  .trading .desk-footer{padding:8px;gap:5px}.trading .desk-footer .primary{padding:6px;min-height:30px}
  .trading .panel-foot{padding:5px 10px}
  main:has(#matchesView:not(.hidden))>footer{padding:0;margin:0;align-items:center;font-size:8px}
}


/* 2.10: readable typography without browser zoom or changes to stored data. */
.trading .fixture-head>th{font-size:12px;line-height:1.6}
.trading .team-choice{font-size:14px;line-height:1.5;min-height:40px;font-weight:600}
.trading .fixture .odds{font-size:14px;font-weight:700}
.trading .fixture-time b{font-size:12px;line-height:1.5}
.trading .fixture-time>small,.trading .status-text,.trading .team-league{font-size:11px;line-height:1.5}
.trading .favorite-check{font-size:11px;line-height:1.6}
.trading .ou-picks button,.trading .ou-picks .row-save{font-size:11px}
.trading .exposure-cell b{font-size:13px;white-space:normal;overflow-wrap:anywhere;letter-spacing:0}
.trading .cart-table{font-size:13px}.trading .cart-table small{font-size:11px}
.trading .cart-table th{font-size:12px}.trading .desk-empty{font-size:14px}
.trading .sale-tickets .desk-heading b,.trading .panel-head h2{font-size:15px}
.trading .sale-tickets .desk-heading span{font-size:12px}
.trading .desk-footer{font-size:13px}.trading .desk-footer .primary{font-size:13px}
@media(min-width:1200px) and (min-height:600px){
 .trade-layout.trading{grid-template-rows:clamp(94px,calc(30dvh - 160px),110px) minmax(0,1fr)}
 .sale-entry .desk-heading b{font-size:14px}.sale-entry .desk-heading span{font-size:11px}
 .trading .compact-sale label{font-size:12px;line-height:1.5}
 .trading .sale-entry input,.trading .sale-entry select{height:36px;min-height:36px;font-size:14px}
 .trading .owner-row button{height:36px;font-size:14px}
 .trading .compact-sale .sale-right #appendSaleItem{height:36px;font-size:12px}
 #matchesView .search input{font-size:13px}#matchesView .chips button{font-size:12px;padding:2px 8px}
 #boardModes .mode-buttons button{font-size:12px}
 #salesDateWrap{font-size:12px}#salesDay,#salesVouchers{font-size:13px}
 .trading .team-choice{font-size:14px;min-height:40px}
 .trading .fixture .odds{font-size:14px;padding:5px 0;letter-spacing:0;font-family:Arial,sans-serif}
 .trading .fixture-time b{font-size:12px}
 .trading .exposure-cell b{font-size:13px;white-space:normal;overflow-wrap:anywhere;letter-spacing:0}
 .trading .panel-head h2{font-size:15px}.trading .panel-head button{font-size:12px}
 .trading .desk-footer .primary{font-size:13px}
}
/* ROYAL_KICK_WHITE_GREEN_COMPACT_END */

/* 2.11: compact match rows and full-cell Over / Under targets. */
.trading .time-col{width:12%}.trading .line-col{width:8%}.trading .team-col{width:19%}.trading .pick-col{width:5%}.trading .net-col{width:12%}
.trading .fixture>td{padding:4px;vertical-align:middle;height:44px}
.trading .fixture .team-choice{min-height:32px;padding:4px 3px;line-height:1.6;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px}
.trading .team-choice span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trading .fixture .match-open-check{flex-direction:row;justify-content:center;gap:5px;white-space:nowrap}
.trading .fixture .match-open-check input{width:15px;height:15px;min-width:15px;flex-shrink:0}
.trading .fixture-time b{white-space:nowrap;font-size:12px;font-weight:500}
.trading .fixture .odds{height:32px;min-height:32px;padding:3px 0;font-size:14px;letter-spacing:0}
.trading .fixture>td.ou-cell{padding:0;position:relative}
.trading .fixture .full-pick{position:absolute;inset:0;width:100%;height:100%;min-height:32px;border:0;border-radius:0;padding:0;font-size:27px;line-height:1;display:grid;place-items:center;font-weight:700}
.trading .fixture .over-pick{background:#e84c4c;color:#fff}.trading .fixture .over-pick:hover{background:#ce3333}
.trading .fixture .under-pick{background:#29a961;color:#fff}.trading .fixture .under-pick:hover{background:#1a8d4d}
.trading .fixture .full-pick:disabled{opacity:.4}
.trading .fixture .row-save{font-size:10px;padding:2px 4px;min-height:24px;margin-top:3px}
.trading .fixture .row-save:disabled{display:none}
.trading .exposure-cell b{font-size:12px;line-height:1.4}.trading .exposure-cell small{font-size:10px;line-height:1.4}
#dialog:has(.team-price-check){width:min(340px,calc(100vw - 32px))}
.team-price-check{display:flex;align-items:center;gap:10px;color:#111;font-size:15px}.team-price-check input{width:20px;height:20px;accent-color:#22865b}
#otherView .result-table .result-row>td{padding:5px 7px;height:44px}
#otherView .result-table .score{height:32px;min-height:32px;width:60px;max-width:100%;padding:2px 4px;font-size:16px;color:#111;border-radius:4px}
#otherView .result-table .result-time small{display:none}
#otherView .result-table .result-row b{font-size:14px;line-height:1.5}
#otherView .result-table .result-state button{padding:3px 6px;font-size:11px}
input.score::selection,#saleQuote::selection{background:#2473ce;color:#fff}
.trading .fixture-head>th:nth-child(6),.trading .fixture-head>th:nth-child(7){padding:7px 1px;font-size:11px;white-space:nowrap}

/* Paper-like per-match betting sheet and compact ticket price editor. */
#dialog:has(.match-sheet){width:min(1100px,calc(100vw - 32px));max-height:92vh}
.match-sheet{font-size:15px;color:#171d19}.match-sheet-head{display:flex;gap:20px;align-items:center;margin-bottom:18px}.match-sheet-head label{display:grid;gap:6px;font-size:13px}.match-sheet-head b{font-size:16px}.match-sheet-title{flex:1}.match-sheet-head select{min-width:140px}
.match-sheet-tables{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.match-sheet-side{border:1px solid #cfdcd3;border-radius:8px;overflow:hidden}.match-sheet-side h3{background:#176048;color:#fff;text-align:center;margin:0;padding:12px;font-size:19px}.match-sheet-scroll{max-height:52vh;min-height:260px;overflow:auto}.match-sheet table{border-collapse:collapse;width:100%;table-layout:fixed}.match-sheet th,.match-sheet td{border:1px solid #e0e6e1;padding:10px 8px;font-size:14px;text-align:right;vertical-align:middle;overflow-wrap:anywhere}.match-sheet th:first-child,.match-sheet td:first-child{text-align:left;width:34%}.match-sheet th:nth-child(2){width:28%}.match-sheet thead th{background:#edf3ef;position:sticky;top:0;z-index:1}.match-sheet tfoot{position:sticky;bottom:0;background:#edf3ef;font-weight:700}.match-sheet small{display:block;font-size:11px;color:#66746b}.match-sheet tbody tr[data-match-bet]{cursor:pointer}.match-sheet tbody tr[data-match-bet]:hover,.match-sheet tbody tr[data-match-bet]:focus{background:#d9eee1;outline:2px solid #75a88a;outline-offset:-2px}.match-sheet .dealer-bet{background:#eef3ff}.match-sheet .void-bet{opacity:.6}.match-sheet-empty{height:190px;text-align:center!important;color:#718078}.match-sheet-difference{text-align:center;padding-top:18px;color:#176048;font-size:17px}.match-sheet-hint{text-align:center;color:#6a776d;font-size:13px}
#matchOddsDialog{width:min(360px,calc(100vw - 28px));padding:24px;border:1px solid #cfdcd3;border-radius:12px;max-height:90vh;color:#171d19;background:#fff}#matchOddsDialog::backdrop{background:#172e2355}#matchOddsForm h3{margin:0;font-size:20px}#matchOddsForm>p{font-size:13px}#matchOddsForm>label{display:grid;gap:6px;margin:14px 0}#matchOddsForm input,#matchOddsForm select{font-size:17px}#matchOddsForm input:focus{outline:2px solid #3685db}#matchOddsForm input::selection{color:#fff;background:#2574cf}.match-price-input{display:flex;gap:8px}.match-price-input select{width:75px}.match-price-input input{min-width:0;flex:1}#matchOddsForm>.match-odd-upper{display:flex;align-items:center;gap:10px}#matchOddUpper{width:20px;height:20px;accent-color:#176048}#matchOddsError{color:#bb3434;min-height:1em}#matchOddsDialog .dialog-actions{justify-content:flex-end}
@media(max-width:650px){.match-sheet-head{flex-wrap:wrap;gap:12px}.match-sheet-title{flex-basis:60%}.match-sheet-tables{grid-template-columns:minmax(0,1fr)}.match-sheet-scroll{min-height:180px;max-height:34vh}.match-sheet th,.match-sheet td{font-size:13px;padding:8px 6px}#dialog:has(.match-sheet){padding:16px;width:calc(100vw - 16px)}.match-sheet-difference{font-size:14px}}

/* Copy/paste fixture review and keyboard row selection. */
.fixture-manager-table tr.selected-fixture>td{background:#dbefe2}.fixture-manager-table tr[data-fixture]:focus{outline:2px solid #2b8660;outline-offset:-2px}.fixture-manager-table tr[data-fixture]{cursor:pointer}
#dialog:has(.copy-fixtures){width:min(1320px,calc(100vw - 24px));max-height:94vh}.copy-fixtures{font-size:14px}.copy-fixtures>p{margin:0 0 14px}.copy-fixtures textarea{display:block;width:100%;resize:vertical;min-height:100px;font:inherit;margin:8px 0}.copy-parse-actions{display:flex;align-items:center;gap:14px;margin:12px 0}.copy-bulk{padding:12px;background:#eef5ef;border-radius:8px;margin:14px 0}.copy-bulk summary{cursor:pointer;font-weight:600}.copy-bulk-fields{display:grid;grid-template-columns:1fr 1.8fr 1fr 1fr;gap:12px;margin-top:12px}.copy-bulk-fields label{display:grid;gap:5px}.copy-preview-scroll{max-height:48vh;overflow:auto;border:1px solid #d7e3da;border-radius:8px}.copy-preview{min-width:1040px;table-layout:fixed;width:100%;border-collapse:collapse}.copy-preview th,.copy-preview td{padding:8px 6px;border:1px solid #e1e8e2;vertical-align:top}.copy-preview thead th{position:sticky;top:0;background:#eaf2ed;z-index:1}.copy-preview th:first-child{width:45px}.copy-preview th:nth-child(2),.copy-preview th:nth-child(3){width:195px}.copy-preview th:nth-child(4){width:215px}.copy-preview th:nth-child(5),.copy-preview th:nth-child(6){width:105px}.copy-preview th:nth-child(7){width:115px}.copy-preview th:last-child{width:42px}.copy-preview input{width:100%;min-width:0;font-size:14px;padding:8px}.copy-preview input[type=checkbox],.copy-check input{width:20px;height:20px;accent-color:#187250}.copy-preview td>input[type=checkbox]{display:block;margin:8px auto}.copy-preview .copy-issue{background:#fff6df}.copy-warning{display:block;font-size:11px;color:#895309;margin-top:5px}.copy-preview details{font-size:11px;overflow-wrap:anywhere}.copy-unread{margin-top:14px;padding:10px;background:#fff6df;overflow-wrap:anywhere}.copy-fixtures .copy-check{display:flex;align-items:center;gap:10px}.copy-reviewed{margin:18px 0}#copyFixtureError{color:#b32929;white-space:pre-line}.copy-preview input:focus,.copy-fixtures textarea:focus{outline:2px solid #3086cf}
@media(max-width:700px){.copy-bulk-fields{grid-template-columns:1fr 1fr}.copy-preview-scroll{max-height:45vh}.copy-parse-actions{flex-wrap:wrap}.copy-fixtures{font-size:13px}.copy-fixtures .copy-check{align-items:flex-start}.copy-check input{flex-shrink:0}}

/* Segmented dates: arrow keys move between pieces; AM/PM uses up/down. */
.copy-preview{min-width:1160px}.copy-preview th:nth-child(4){width:310px}.copy-bulk-fields{grid-template-columns:1fr minmax(310px,1.8fr) 1fr 1fr}.copy-datetime{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;border:1px solid #d7e2da;border-radius:7px;background:#fff;padding:3px;max-width:100%}.copy-datetime:focus-within{border-color:#3685ce;box-shadow:0 0 0 2px #3685ce22}.copy-datetime[aria-invalid=true]{border-color:#bc3434}.copy-datetime .copy-date-piece{display:inline-block;width:32px;flex:0 0 32px;min-width:0;border:0;border-radius:3px;background:transparent;padding:7px 1px;text-align:center;font-size:14px;line-height:1.4;box-shadow:none}.copy-datetime .copy-date-year{width:51px;flex-basis:51px}.copy-datetime .copy-date-hour{margin-left:7px}.copy-datetime .copy-date-period{width:38px;flex-basis:38px;margin-left:3px;cursor:pointer;font-weight:600;color:#195e46}.copy-date-separator{color:#7a897f;font-size:12px}.copy-datetime .copy-date-piece:focus{outline:2px solid #3286cf;outline-offset:-1px;background:#edf5ff}.copy-date-piece::selection{background:#2775cc;color:#fff}
@media(max-width:700px){.copy-bulk-fields{grid-template-columns:minmax(0,1fr)}.copy-datetime .copy-date-piece{font-size:13px}}

/* One fixed, gridded viewport per side; total stays below the scroll area. */
#dialog:has(.match-sheet){width:min(1240px,calc(100vw - 32px));max-height:92vh}.match-sheet-tables{align-items:stretch;gap:12px}.match-sheet-side{display:flex;flex-direction:column;min-width:0;border-radius:6px;border:1px solid #c8d8ce}.match-sheet-side h3{font-size:17px;padding:9px 10px}.match-sheet-scroll{height:clamp(190px,40vh,360px);min-height:0;max-height:none;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;background-color:#fff;background-image:linear-gradient(to right,transparent calc(18% - .5px),#dce5de calc(18% - .5px),#dce5de calc(18% + .5px),transparent calc(18% + .5px),transparent calc(45% - .5px),#dce5de calc(45% - .5px),#dce5de calc(45% + .5px),transparent calc(45% + .5px),transparent calc(69% - .5px),#dce5de calc(69% - .5px),#dce5de calc(69% + .5px),transparent calc(69% + .5px),transparent calc(87% - .5px),#dce5de calc(87% - .5px),#dce5de calc(87% + .5px),transparent calc(87% + .5px)),repeating-linear-gradient(to bottom,transparent 0,transparent 35px,#dce5de 35px,#dce5de 36px)}.match-sheet table{table-layout:fixed;min-width:0}.match-sheet col.bet-col-time{width:18%}.match-sheet col.bet-col-name{width:27%}.match-sheet col.bet-col-stake{width:24%}.match-sheet col.bet-col-line{width:18%}.match-sheet col.bet-col-comm{width:13%}.match-sheet th,.match-sheet td{height:36px;padding:3px 6px;font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;border:1px solid #d6e1d9;text-align:right;overflow-wrap:normal}.match-sheet th:first-child,.match-sheet td:first-child{width:auto;text-align:left}.match-sheet th:nth-child(2){width:auto;text-align:left}.match-sheet thead th{height:36px;background:#eaf2ed;font-size:12px}.match-sheet .bet-name{text-align:left}.match-sheet .bet-time{font-size:12px;line-height:1.1;text-align:center}.match-sheet .bet-time time{display:block}.match-sheet .bet-time small{font-size:10px;color:#738078;line-height:1.15}.match-sheet .bet-tag{display:inline-block;margin-left:4px;padding:1px 3px;border-radius:3px;background:#e6edf7;font-size:10px}.match-sheet .dealer-bet>td{background:#eef3ff}.match-sheet .void-bet>td{color:#7c8780}.match-sheet tbody tr[data-match-bet]:hover>td,.match-sheet tbody tr[data-match-bet]:focus>td{background:#dbefe2}.match-sheet .match-sheet-empty{height:36px;text-align:center!important;font-size:12px;color:#78847c}.match-sheet-total{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:8px 12px;border-top:1px solid #c8d8ce;background:#eaf2ed;font-size:14px}.match-sheet-difference{padding-top:13px;font-size:15px}.match-sheet-hint{margin:7px 0;font-size:12px}
@media(max-width:650px){.match-sheet-scroll{height:240px;max-height:32vh}.match-sheet table{min-width:460px}.match-sheet-side{overflow:hidden}.match-sheet-total{font-size:13px}.match-sheet-head b{font-size:14px}.match-sheet-difference{font-size:13px}}
#dialog:has(.copy-fixtures){max-width:calc(100vw - 24px)}
#matchOddsForm button[type=submit]:focus-visible{outline:3px solid #3286cf;outline-offset:3px}#matchOddGoal::selection,#matchOddPrice::selection{background:#2473ce;color:#fff}

.exposure-pick{width:100%;border:0;background:transparent;padding:6px 2px;cursor:pointer;box-shadow:none;color:inherit;font:inherit}.exposure-pick:hover{background:#e7f3ed}.exposure-pick:focus-visible{outline:2px solid #23875f;outline-offset:-2px}#resetSaleEntry{flex-shrink:0;border-radius:4px;padding:5px 16px;color:#176b50;background:#edf6f1;border:1px solid #bad3c6}.trading .sales-odds-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.sales-odds-heading .odds-actions{justify-self:end}#slipHeaders [data-slip]:focus-visible{outline:2px solid #23875f;outline-offset:-2px}@media(max-width:700px){.trading .sales-odds-heading{grid-template-columns:1fr auto}.sales-odds-heading .odds-actions{grid-column:1/-1}}

/* 2.27: animated side menu, vertical owner tools and compact day sheet. */
#shell{--sidebar-width:200px;overflow-x:clip}#shell>#sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100dvh;display:flex;flex-direction:column;align-items:stretch;gap:0;overflow-y:auto;padding:24px 14px;transition:transform .28s ease,opacity .28s ease,visibility .28s}#shell>#sidebar nav{display:grid;gap:7px}#shell>#sidebar .brand{font-size:14px}#shell>#sidebar .brand small{display:block}#shell>#sidebar .aside-caption{display:block;margin-top:32px}#shell>#sidebar .aside-bottom{display:block}#shell>.workspace{margin-left:var(--sidebar-width);min-width:0;transition:margin-left .28s ease}#shell.menu-collapsed>#sidebar{transform:translateX(-100%);opacity:0;visibility:hidden}#shell.menu-collapsed>.workspace{margin-left:0}#shell .workspace>header{position:sticky;top:0;z-index:6}.header-left{display:flex;align-items:center;gap:14px;min-width:0}.menu-toggle{display:grid;place-items:center;width:36px;height:36px;min-width:36px;flex-shrink:0;padding:0;border-radius:6px;font:22px/1 Arial;color:#176852;background:#f2f7f4;border:1px solid #cbded3}.menu-toggle:hover{background:#deeee4}.owner-row .owner-tools{display:flex;flex-direction:column;gap:3px;flex:0 0 30px;align-self:center}.owner-row .owner-tools button{width:30px;min-width:30px;height:27px;min-height:27px;padding:0;border-radius:4px;line-height:1;font-size:17px}.owner-row .owner-tools #ownerDayBets{font-size:12px;letter-spacing:1px}.owner-row input{align-self:center}
.rk-date-control{display:flex;align-items:center;position:relative;min-width:140px;max-width:100%;gap:0}.rk-date-control .rk-date-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0;pointer-events:none;left:0;bottom:0}.rk-date-control .rk-date-text{width:100%;min-width:0;padding-right:32px}.rk-date-control .rk-date-picker{position:absolute;right:2px;top:2px;bottom:2px;width:28px!important;min-width:28px;flex:none;padding:0!important;border:0;border-radius:5px;background:transparent;color:#4b7360;font-size:18px;line-height:1}.rk-date-text[aria-invalid=true]{border-color:#bb3434}.rk-date-control:has(input[type=datetime-local]){min-width:220px}
#dialog:has(.person-day-sheet){width:min(780px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:85dvh;border-radius:10px}#dialog:has(.person-day-sheet) .dialog-head{padding:12px 16px}#dialog:has(.person-day-sheet) .dialog-head h2{font-size:15px}#dialog:has(.person-day-sheet) .eyebrow{display:none}#dialog:has(.person-day-sheet) #dialogBody{padding:12px 16px;max-height:72dvh}.person-day-sheet{font-size:12px;min-width:0}.person-sheet-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.person-sheet-meta span{color:#6d7c72;font-size:11px}.person-sheet-scroll{max-height:45dvh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #cedcd2;border-radius:5px}.person-sheet-scroll table{table-layout:fixed;border-collapse:collapse;width:720px;min-width:720px}.person-sheet-scroll th,.person-sheet-scroll td{padding:4px 6px;height:34px;border:1px solid #dae4dd;text-align:left;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis}.person-sheet-scroll th{position:sticky;top:0;z-index:1;background:#eaf3ed;font-size:11px}.person-sheet-scroll tbody tr:nth-child(even){background:#f6f9f6}.person-sheet-scroll td>small,.person-sheet-scroll td>b,.person-sheet-scroll time small{display:block}.person-sheet-scroll small{color:#7a877e;font-size:10px}.person-sheet-scroll .person-amount{display:flex;align-items:center;justify-content:space-between;gap:4px}.person-sheet-scroll button{padding:2px 6px;font-size:11px;border-radius:4px}.person-sheet-scroll input,.person-sheet-scroll select{font-size:12px;padding:4px;min-height:28px;border-radius:4px}.person-row-actions{display:flex;gap:4px;margin-top:3px}.person-sheet-scroll #personFavorite{margin-top:4px;font-size:10px}.person-sheet-total{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:#eaf3ed;border:1px solid #cedcd2;border-top:0;font-size:14px}.person-sheet-help{display:block;color:#6a7c70;font-size:10px;margin-top:5px}#personSheetError{color:#b32c2c;font-size:12px}.person-sheet-scroll .person-empty{height:65px;text-align:center}.person-editing{background:#eff6fd!important}
@media(max-width:700px){#shell{--sidebar-width:180px}#shell>#sidebar nav button{font-size:12px;white-space:normal;gap:10px}#shell>#sidebar .brand small{font-size:7px}#shell>#sidebar .aside-bottom{font-size:10px}.header-left{gap:9px}.header-left strong{font-size:12px}.person-sheet-meta{align-items:flex-start}.person-sheet-meta span{max-width:60%;text-align:right}#dialog:has(.person-day-sheet) #dialogBody{padding:10px}.person-sheet-scroll{max-height:43dvh}}
@media(prefers-reduced-motion:reduce){#shell>#sidebar,#shell>.workspace{transition:none}}

#dialog:has(.person-day-sheet) #closeDialog{font:22px/1 Arial,sans-serif;width:32px;height:32px;padding:0;border-radius:5px}

.menu-arrow-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.menu-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 2.28: the original summary and a compact, read-only wager breakdown. */
.profit-tabs{display:flex;gap:5px;margin-bottom:14px;background:#edf3ef;border:1px solid #dce7df;border-radius:7px;padding:4px;width:max-content;max-width:100%}.profit-tabs button{padding:6px 16px;font-size:13px;border-radius:5px;border-color:transparent}.profit-tabs button:not(.primary){background:transparent}.profit-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:12px}.profit-filter label{display:grid;gap:4px;font-size:11px;min-width:132px;flex:1}.profit-filter label:nth-child(4){min-width:165px}.profit-filter input,.profit-filter select{font-size:12px;padding:6px 8px;min-height:34px}.profit-filter .rk-date-control{min-width:128px}.profit-filter>button{font-size:12px;padding:7px 16px;min-height:34px}.profit-help{font-size:11px;line-height:1.7;color:#617768;margin:10px 0}.profit-caption{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#607765;margin:10px 0 7px}.profit-scroll{overflow:auto;max-height:62dvh;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:6px}.profit-table{border-collapse:separate;border-spacing:0;min-width:1450px;width:100%;table-layout:fixed;font-size:12px}.profit-table th,.profit-table td{padding:5px 7px;height:39px;line-height:1.4;border-right:1px solid #dce6df;border-bottom:1px solid #dce6df;vertical-align:middle;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff}.profit-table th{background:#eaf3ed;font-weight:600;font-size:11px}.profit-table thead th{position:sticky;top:0;z-index:2}.profit-table tfoot th{position:sticky;bottom:0;z-index:2;background:#e5f0e8;font-size:12px;padding-block:10px;border-top:1px solid #bfd1c4}.profit-table tbody tr:nth-child(even)>td{background:#f6f9f6}.profit-table th:nth-child(1){width:100px}.profit-table th:nth-child(2){width:100px}.profit-table th:nth-child(3){width:130px}.profit-table th:nth-child(4){width:190px}.profit-table th:nth-child(5){width:145px}.profit-table th:nth-child(6){width:90px}.profit-table th:nth-child(7){width:75px}.profit-table th:nth-child(8){width:70px}.profit-table th:nth-child(9){width:110px}.profit-table th:nth-child(10){width:110px}.profit-table th:nth-child(11),.profit-table th:nth-child(12){width:100px}.profit-table th:nth-child(13){width:130px}.profit-table th:nth-child(14){width:105px}.profit-table td:nth-child(-n+7),.profit-table thead th:nth-child(-n+7){text-align:left}.profit-table b,.profit-table small{display:block;overflow:hidden;text-overflow:ellipsis}.profit-table small{font-size:10px;color:#7b8a7e}.profit-table td:first-child b{font-size:12px}.profit-table time{font-size:11px}.profit-table .profit-pending td,.profit-table .profit-void td{color:#7f8982}.profit-table .positive{color:#18714b}.profit-table .negative{color:#b43333}.profit-zero{color:#7e8981}.profit-table .profit-empty{height:100px;text-align:center}.profit-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;font-size:11px;color:#6b7c70}.profit-pagination>div{display:flex;gap:7px}.profit-pagination button{font-size:12px;padding:5px 12px;border-radius:5px}.profit-error{padding:14px;background:#fff0ed;border:1px solid #edc5bc;border-radius:6px;color:#a33727;font-size:13px}.profit-loading{padding:20px;color:#6b7d70;font-size:13px}
@media(max-width:700px){.profit-filter{gap:8px;padding:10px}.profit-filter label{min-width:calc(50% - 8px);flex:1 1 calc(50% - 8px)}.profit-filter label:nth-child(4){min-width:calc(50% - 8px)}.profit-filter>button{min-width:100%;margin-top:2px}.profit-tabs button{font-size:12px;padding:6px 11px}.profit-scroll{max-height:57dvh}.profit-help{font-size:10px}.profit-pagination{align-items:flex-start;flex-direction:column}.profit-pagination>div{align-self:flex-end}.profit-caption{flex-wrap:wrap;gap:4px}.profit-table{font-size:11px}}

.profit-mobile-total{display:none}@media(max-width:700px){.profit-mobile-total{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;padding:10px;background:#eaf3ed;border:1px solid #c9dccf;border-radius:5px;font-size:12px;margin-top:7px}}
.profit-mobile-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;padding:10px 12px;background:#eaf3ed;border:1px solid #c9dccf;border-radius:5px;font-size:13px;margin-top:8px}@media(max-width:700px){.profit-table tfoot{display:none}.profit-mobile-total{font-size:12px;padding:10px}}
/* Crown pre-match controls: contain long tables within the panel/dialog. */
.crown-panel{padding:18px;min-width:0}.crown-top,.crown-controls,.crown-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.crown-top{justify-content:space-between}.crown-panel p,.crown-dialog p{font-size:12px;line-height:1.8}.crown-panel>label{display:block;max-width:340px;margin:14px 0}.crown-scroll{overflow:auto;max-height:62vh;overscroll-behavior:contain;max-width:100%;border:1px solid #dce5df;border-radius:10px}.crown-scroll table{width:100%;min-width:720px;font-size:12px;border-collapse:collapse}.crown-scroll td,.crown-scroll th{padding:9px;vertical-align:top;border-bottom:1px solid #e5ebe7}.crown-scroll th{position:sticky;top:0;background:#edf6ef;z-index:1;text-align:left}.crown-scroll small{display:block;font-size:10px;line-height:1.7;color:#61726b}.crown-note{background:#fff8e8;padding:8px 10px;border-radius:8px;color:#665329}.crown-dialog{width:min(860px,calc(100vw - 64px));max-width:100%}.crown-dialog .crown-scroll{max-height:50vh}.crown-row-actions button{white-space:nowrap}@media(max-width:600px){.crown-panel{padding:12px}.crown-dialog{width:calc(100vw - 64px)}.crown-scroll{max-height:58vh}}

/* Display-only match controls, under the counts on both phone and desktop. */
#filters{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.match-summary,.match-display-options{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.match-count{font-size:12px;padding:5px 10px;background:#edf6ef;border:1px solid #dbe8dd;border-radius:8px;color:#315d4b}
.match-count b{margin-left:5px}
.match-display-options label{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer;padding:5px 9px;border:1px solid #dbe8dd;border-radius:8px;background:#fff}
.match-display-options input{accent-color:#238561;width:15px;height:15px;margin:0}
@media(max-width:650px){#filters{align-items:flex-start}.match-summary,.match-display-options{gap:5px}.match-count,.match-display-options label{padding:5px 7px}}
@media(min-width:1200px) and (min-height:600px){
 #matchesView:not(.hidden){grid-template-rows:minmax(74px,auto) 26px minmax(0,1fr)}
 .trading .compact-sale:has(#saleFavorite){grid-template-columns:minmax(110px,1.1fr) minmax(150px,1.6fr) minmax(70px,.65fr) minmax(80px,.8fr) minmax(105px,1fr) minmax(65px,.65fr) minmax(75px,.75fr) minmax(80px,.8fr)}
}

/* Sports365: compact connection bar; stable form fields during polling. */
.sp-panel{max-width:none;margin:auto}
.sp-top{margin-bottom:10px!important;align-items:center!important}
.sp-top h2{margin:0;font-size:18px;display:flex;align-items:center;gap:10px}
.sp-kicker{font-size:11px;font-weight:600;color:#60756e;letter-spacing:0}
.sp-connect{border:1px solid #d4e1da;border-radius:12px;background:#f4f8f5;margin:0 0 10px;padding:10px 14px}
.sp-auth-bar{display:flex;align-items:center;gap:10px;min-height:30px;flex-wrap:wrap}
.sp-auth-bar strong{font-size:13px}.sp-account{font-size:12px;color:#60756e;margin-right:auto}
.sp-panel button{font-size:12px;padding:7px 11px;white-space:nowrap}
.sp-lamp{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:#c55d57;box-shadow:0 0 0 3px #c55d5715}
.sp-lamp.connected{background:#21825d;box-shadow:0 0 0 3px #21825d15}
#spLoginForm{display:grid;grid-template-columns:minmax(130px,220px) minmax(130px,220px) 125px 92px max-content max-content;gap:10px;align-items:end;border-top:1px solid #dce7df;padding-top:12px;margin-top:10px}
.sp-fields,.sp-code-row{display:contents}
.sp-panel label{display:grid;gap:5px;font-size:11px;font-weight:700}
.sp-panel input{min-width:0;width:100%;height:35px;padding:7px 9px;box-sizing:border-box;font-size:13px}
.sp-code-picture{height:35px;box-sizing:border-box;background:white;border:1px solid #d4e1da;border-radius:7px;display:flex;align-items:center;justify-content:center;padding:2px 5px;overflow:hidden}
.sp-code-picture img{width:auto;max-width:100%;height:29px;object-fit:contain}
.sp-code-picture span{font-size:10px;color:#60756e;text-align:center}
.sp-small{font-size:11px;line-height:1.65;color:#60756e}
#spAuthNote{grid-column:1/-1;margin:0;font-size:11px;line-height:1.5}
.sp-source-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;border-bottom:1px solid #e2e9e5;padding:0 0 10px;margin-bottom:12px}
.sp-source-status p{font-size:11px;margin:0}.sp-source-status .crown-controls{margin:0}
.sp-list-head{display:flex;justify-content:space-between;gap:14px;align-items:center}
.sp-list-head h3{margin:0;font-size:15px}.sp-list-head input{width:230px;max-width:100%}
.sp-panel table small{display:block;font-size:11px;line-height:1.6;color:#6c7b75}
.sp-panel .profit-error{flex-basis:100%;padding:9px;background:#fff1ee;border-radius:7px;color:#9d3e32}
@media(max-width:1150px){#spLoginForm{grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) 125px 90px}.sp-code-row button{min-height:34px}#spNewCode,#spLogin{grid-row:2}#spNewCode{grid-column:3}#spLogin{grid-column:4}#spAuthNote{grid-row:2;grid-column:1/3}}
@media(max-width:650px){.sp-connect{padding:10px}.sp-auth-bar{gap:7px}.sp-auth-bar strong{font-size:12px}.sp-auth-bar button{padding:6px 9px}.sp-account{font-size:11px}#spLoginForm{grid-template-columns:minmax(100px,1fr) minmax(100px,1fr);gap:10px}.sp-code-picture{grid-row:2;grid-column:1}.sp-code-row label{grid-row:2;grid-column:2}#spNewCode,#spLogin{grid-row:3}#spNewCode{grid-column:1}#spLogin{grid-column:2}#spAuthNote{grid-row:4;grid-column:1/-1}.sp-list-head input{width:160px}.sp-source-status{gap:8px}.sp-top h2{font-size:16px}}

/* Sports365 picker: all four columns fit, with a single vertical scroller. */
#dialog:has(.sp-link-dialog){width:min(1060px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#dialog:has(.sp-link-dialog) #dialogBody{padding:16px;overflow-x:hidden}
.sp-link-dialog.crown-dialog{width:100%;min-width:0}
.sp-link-dialog>p{margin-bottom:10px}
.sp-link-dialog .crown-scroll{max-height:60vh;scrollbar-gutter:stable;overflow-x:hidden}
.sp-link-dialog .crown-scroll table{min-width:0;width:100%;table-layout:fixed}
.sp-link-dialog th:first-child{width:32%}.sp-link-dialog th:nth-child(2),.sp-link-dialog th:nth-child(3){width:23%}.sp-link-dialog th:last-child{width:22%}
.sp-link-dialog td,.sp-link-dialog th{overflow-wrap:anywhere;white-space:normal;padding:10px 8px}
.sp-link-dialog td>b{font-size:15px}.sp-link-dialog td>button{white-space:normal;width:100%;padding:8px;font-size:12px}
.sp-link-dialog tbody tr:nth-child(even){background:#f6f9f7}
#spMatches .crown-scroll{scrollbar-gutter:stable;overflow-anchor:none}
@media(max-width:560px){#dialog:has(.sp-link-dialog){width:calc(100vw - 12px);max-width:calc(100vw - 12px)}#dialog:has(.sp-link-dialog) #dialogBody{padding:8px}.sp-link-dialog td,.sp-link-dialog th{padding:7px 4px;font-size:11px}.sp-link-dialog small{font-size:9px}.sp-link-dialog td>b{font-size:12px}.sp-link-dialog td>button{font-size:10px;padding:6px 3px}}

#otherView .result-table [data-source-result]{white-space:nowrap;min-height:30px;padding:4px 9px;font-size:12px;background:#edf6f0;color:#205d40;border:1px solid #bcd9c7;border-radius:5px}
#otherView .result-table td>small{display:block;max-width:210px;white-space:normal;font-size:11px;color:#426954}

/* Compact results: source status and settled actions never stack vertically. */
#otherView .result-table .result-row{height:40px}
#otherView .result-table .result-row>td{height:40px;padding:4px 7px;vertical-align:middle;line-height:1.4}
#otherView .result-table .result-row .score{height:28px;min-height:28px;width:52px;min-width:48px;padding:1px 4px;font-size:15px;line-height:24px}
#otherView .result-table .result-row b{font-size:13px;line-height:1.4}
#otherView .result-table .result-check{margin:0;align-items:center;min-height:28px}
#otherView .result-table .result-check input{width:18px;height:18px;min-height:18px;margin:0;padding:0}
#otherView .result-table .result-status-cell{white-space:nowrap}
#otherView .result-table .result-state{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;max-width:100%;vertical-align:middle}
#otherView .result-table .result-state .badge{display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:20px;padding:1px 6px;vertical-align:middle}
#otherView .result-table .result-state button,#otherView .result-table [data-source-result]{height:28px;min-height:28px;padding:2px 7px;font-size:11px;line-height:22px;white-space:nowrap;margin:0;border-radius:5px}
#otherView .result-table .result-state button{flex-shrink:0}

#otherView .result-table .result-row b{white-space:nowrap}

/* 368 Copy has a league column: keep the date in column 5, with no overlap. */
.sp-copy .copy-preview{min-width:1280px;table-layout:fixed}
.sp-copy .copy-preview th:nth-child(1){width:48px}
.sp-copy .copy-preview th:nth-child(2),.sp-copy .copy-preview th:nth-child(3){width:180px}
.sp-copy .copy-preview th:nth-child(4){width:180px}
.sp-copy .copy-preview th:nth-child(5){width:250px}
.sp-copy .copy-preview th:nth-child(6),.sp-copy .copy-preview th:nth-child(7){width:110px}
.sp-copy .copy-preview th:nth-child(8){width:105px}
.sp-copy .copy-preview td{overflow:hidden}
.sp-copy .rk-date-control:has(input[type=datetime-local]){min-width:0;width:100%}
.sp-copy .rk-date-control .rk-date-text{font-size:13px}
#spCopyError{color:#b32929;white-space:pre-line}
