/* One mobile grid for controls, quotes and their corresponding amounts. */
@media (max-width:699px) {
  html:has(body.customer-borderless) { min-width:0; }
  body.customer-borderless {
    min-width:0;
    --mobile-gap:6px;
    --mobile-control-height:36px;
    --mobile-label-size:11px;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  body.customer-borderless .app-shell {
    padding:calc(env(safe-area-inset-top,0px) + 64px) max(10px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));
  }
  body.customer-borderless .topbar { height:calc(env(safe-area-inset-top,0px) + 54px);gap:6px; }
  body.customer-borderless .brand { min-width:0;gap:7px; }
  body.customer-borderless .brand-mark { width:32px;height:32px;flex:none; }
  body.customer-borderless .brand h1 { font-size:15px;white-space:nowrap; }
  body.customer-borderless .brand p { font-size:10px;margin-top:2px; }
  body.customer-borderless .top-actions { gap:4px;flex:none; }
  body.customer-borderless .top-actions .icon-button { width:30px;height:32px;font-size:16px;border-radius:5px; }
  body.customer-borderless .top-actions .license-action { width:auto;min-width:56px;padding:4px 5px;font-size:11px; }
  body.customer-borderless .top-actions .install-button { min-width:0;min-height:32px;padding:4px;font-size:10px; }
  body.customer-borderless .summary-bar { margin:0 0 8px;padding:0;gap:7px; }
  body.customer-borderless .summary-status-row { gap:3px 6px; }
  body.customer-borderless .summary-status-row .connection { font-size:11px; }
  body.customer-borderless .summary-status-row #updatedAt { font-size:10px;line-height:1.35;font-variant-numeric:tabular-nums; }
  body.customer-borderless .summary-controls-row { position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--mobile-gap);align-items:stretch; }
  body.customer-borderless .summary-controls-row .settings-pills,
  body.customer-borderless .summary-controls-row .notify-control { display:contents; }
  body.customer-borderless .summary-controls-row :is(.pill,.yesterday-button,.notify-button) {
    display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap;width:100%;min-width:0;min-height:34px;height:auto;margin:0;padding:5px 4px;font-size:10.5px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip;border-radius:4px;font-variant-numeric:tabular-nums;
  }
  body.customer-borderless .summary-controls-row [data-setting-field="rebatePct"] { grid-area:1 / 1; }
  body.customer-borderless .summary-controls-row [data-dual-rebate] { grid-area:1 / 2; }
  body.customer-borderless .summary-controls-row [data-usage-guide] { grid-area:1 / 3; }
  body.customer-borderless .summary-controls-row [data-personal-profit-targets] { grid-area:2 / 1 / auto / span 2; }
  body.customer-borderless .summary-controls-row [data-setting-field="recommendationLiveProfitPct"] { grid-area:2 / 3; }
  body.customer-borderless #resultsShortcut { grid-area:3 / 1;min-height:34px;font-size:10.5px; }
  body.customer-borderless #yesterdayButton { grid-area:3 / 2; }
  body.customer-borderless #notifyButton { grid-area:3 / 3; }
  body.customer-borderless .summary-controls-row .sound-level-menu { top:calc(100% + 6px);right:0;width:min(100%,360px);max-width:100%;z-index:110; }
  body.customer-borderless .tabs { margin:0 0 10px;padding:0;gap:4px; }
  body.customer-borderless .tabs .tab { min-height:34px;padding:5px 3px;font-size:10px;line-height:1.2; }
  body.customer-borderless .tabs .tab b { font-size:inherit;font-variant-numeric:tabular-nums; }

  body.customer-borderless #combinationView { padding:0;margin:0; }
  body.customer-borderless .pair-comparison { margin:0;font-size:12px;line-height:1.45; }
  body.customer-borderless .pair-heading { align-items:center;gap:8px;margin:0 0 8px; }
  body.customer-borderless .pair-heading h2 { font-size:15px;line-height:1.35; }
  body.customer-borderless [data-pair-count] { font-size:12px;font-variant-numeric:tabular-nums; }
  body.customer-borderless .pair-settings { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 8px;padding:10px;align-items:end; }
  body.customer-borderless .pair-settings label { min-width:0;gap:4px;font-size:var(--mobile-label-size);line-height:1.3; }
  body.customer-borderless .pair-settings input { height:var(--mobile-control-height);min-height:var(--mobile-control-height);padding:5px 8px;font-size:16px;line-height:1.25;font-variant-numeric:tabular-nums; }
  body.customer-borderless .pair-comparison button { min-height:var(--mobile-control-height);padding:6px 8px;font-size:11px;line-height:1.25; }
  body.customer-borderless .pair-alert-setting { display:contents; }
  body.customer-borderless .pair-alert-setting label { display:grid;grid-template-columns:minmax(0,1fr);grid-area:1 / 1;gap:4px; }
  body.customer-borderless .pair-alert-setting button { grid-area:2 / 1; }
  body.customer-borderless .pair-settings > label:first-of-type { grid-area:1 / 2; }
  body.customer-borderless .pair-settings > label:nth-of-type(2) { grid-area:1 / 3; }
  body.customer-borderless .pair-settings > button[type="submit"] { grid-area:2 / 2;width:100%; }
  body.customer-borderless .pair-settings > .pair-records-button { grid-area:2 / 3;width:100%; }
  body.customer-borderless .pair-settings:not(:has(.pair-records-button)) > button[type="submit"] { grid-column:2 / -1; }
  body.customer-borderless .pair-range-label-full { display:none; }
  body.customer-borderless .pair-range-label-compact { display:inline; }
  body.customer-borderless .pair-detail-toolbar { gap:6px;margin:4px 0 7px;font-size:10px; }
  body.customer-borderless .pair-detail-toolbar button { min-height:32px;padding:4px 8px;font-size:10.5px; }
  body.customer-borderless .pair-empty { padding:12px 10px;font-size:12px;line-height:1.6; }
  body.customer-borderless .pair-list { gap:10px; }
  body.customer-borderless .pair-card { padding:10px; }
  body.customer-borderless .pair-card > header { gap:6px;flex-wrap:wrap; }
  body.customer-borderless .pair-card .pair-match-identity { flex:1 1 200px; }
  body.customer-borderless .pair-card h3 { margin:3px 0;font-size:13px;line-height:1.4; }
  body.customer-borderless .pair-card .pair-match-live { font-size:15px; }
  body.customer-borderless .pair-card-warnings { display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px; }
  body.customer-borderless .pair-badge { padding:0;font-size:10px; }
  body.customer-borderless .pair-metrics,
  body.customer-borderless .pair-metrics.has-allocation { grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto;gap:var(--mobile-gap);margin:8px 0; }
  body.customer-borderless .pair-quotes > div,
  body.customer-borderless .pair-allocation > div:not(.pair-card-actions) { grid-column:auto;min-height:60px;min-width:0;gap:3px;padding:7px;align-content:start; }
  body.customer-borderless .pair-quotes > div > span,
  body.customer-borderless .pair-allocation > div > span { display:block;min-height:26px;font-size:10px;line-height:13px;overflow-wrap:anywhere; }
  body.customer-borderless .pair-quotes .pair-quote-team { display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:13px; }
  body.customer-borderless .pair-quotes .pair-quote-line { display:block;white-space:nowrap;font-size:10px;line-height:13px; }
  body.customer-borderless .pair-quotes .pair-quote-value { display:grid;align-content:start;gap:2px;min-height:0; }
  body.customer-borderless .pair-quotes b,
  body.customer-borderless .pair-allocation b { font-size:16px;line-height:1.2;letter-spacing:-.2px;white-space:nowrap;font-variant-numeric:tabular-nums; }
  body.customer-borderless .pair-quotes [data-pair-roi] { font-size:clamp(13px,4vw,16px); }
  body.customer-borderless .pair-allocation .pair-amount-long { font-size:clamp(10px,3vw,13px);letter-spacing:-.35px; }
  body.customer-borderless .pair-quotes .pair-quote-meta { display:grid;gap:1px;line-height:1.35; }
  body.customer-borderless .pair-quotes .pair-quote-meta small { font-size:9px;line-height:1.35; }
  body.customer-borderless .pair-allocation > .pair-card-actions { grid-column:1 / -1;display:flex;gap:6px;min-height:0;padding:0;margin:0;background:transparent; }
  body.customer-borderless .pair-card-actions button { flex:1 1 0;min-width:0;margin:0; }
  body.customer-borderless .pair-registered { margin:6px 0 8px;padding:7px 8px;font-size:11px;line-height:1.5; }
  body.customer-borderless .pair-registered .pair-registration-number { font-size:14px; }
  body.customer-borderless .pair-detail-summary { padding-top:6px;font-size:11px;gap:3px 6px; }
  body.customer-borderless .pair-fold-risk { flex-basis:auto;font-size:10px; }

  body.customer-borderless .pair-participation-dialog { padding:12px; }
  body.customer-borderless .pair-entry-columns { gap:6px; }
  body.customer-borderless .pair-entry-columns fieldset { padding:7px; }
  body.customer-borderless .pair-entry-columns input { min-height:36px;padding:5px 7px;font-size:16px; }
  body.customer-borderless .pair-record-legs { grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
  body.customer-borderless .pair-record-legs > div { padding:7px;gap:3px; }
  body.customer-borderless .pair-record-legs > .pair-record-net { grid-column:auto; }
  body.customer-borderless .pair-record-legs strong { font-size:14px;line-height:1.35;overflow-wrap:anywhere; }
  body.customer-borderless .pair-record-legs span { min-height:26px;font-size:10px;line-height:13px; }
  body.customer-borderless .pair-record-legs small { font-size:10px; }
  body.customer-borderless .pair-record { margin:7px 0;padding:9px; }
  body.customer-borderless .pair-record-reference { font-size:10px;line-height:1.5; }
  body.customer-borderless .pair-daily-summary { gap:6px;margin:8px 0 12px; }
  body.customer-borderless .pair-record-pnl { font-size:16px; }
  body.customer-borderless .dual-rebate-form { padding:14px;gap:12px; }
  body.customer-borderless .dual-rebate-columns { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  body.customer-borderless .dual-rebate-columns input { min-height:36px;padding:6px 8px;font-size:16px; }
  body.customer-borderless .dual-rebate-columns label { font-size:11px;gap:5px; }
  body.customer-borderless .dual-rebate-presets { flex-direction:row; }
  body.customer-borderless .dual-rebate-presets button { flex:1 1 100px;padding:6px;font-size:10px;min-height:34px; }
  body.customer-borderless .usage-guide-card { padding:16px 12px 12px; }
  body.customer-borderless .usage-guide-card h2 { margin:0 30px 8px 0;font-size:16px; }
  body.customer-borderless .usage-guide-intro { padding:8px 9px;font-size:11px!important; }
  body.customer-borderless .usage-guide-section { margin:6px 0;padding:0 10px;border-radius:5px; }
  body.customer-borderless .usage-guide-section summary { min-height:40px;display:flex;align-items:center;padding:8px 0;font-size:12px;font-weight:700; }
  body.customer-borderless .usage-guide-fold-body { padding:0 0 10px; }
  body.customer-borderless .usage-guide-fold-body :is(p,li) { font-size:12px;line-height:1.65; }
}
@media (max-width:359px) {
  body.customer-borderless .brand-mark { width:28px;height:28px; }
  body.customer-borderless .brand { gap:5px; }
  body.customer-borderless .brand h1 { font-size:13px; }
  body.customer-borderless .brand p { font-size:9px; }
  body.customer-borderless .pair-quotes b,
  body.customer-borderless .pair-allocation b { font-size:14px; }
}

/* Fixed strategy reporting: aligned columns and compact mobile totals. */
.strategy-profit{grid-column:1/-1;display:grid;gap:10px;min-width:0;margin:4px 0 12px;padding:14px;border:1px solid #3c403a;border-radius:10px;background:#151914;color:#c7c9c1;font-size:12px}
.strategy-profit header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.strategy-profit header>b{font-size:15px}.strategy-profit label{display:flex;align-items:center;gap:6px}
.strategy-profit input[type=date]{min-width:0;max-width:142px;min-height:32px;padding:4px 6px;font-size:12px}
.strategy-profit small{display:block;font-size:11px;line-height:1.6;color:var(--muted,#adb4ac)}
.strategy-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.strategy-metric{display:grid;align-content:start;gap:5px;min-width:0;padding:10px;background:#20251e;border-radius:6px}
.strategy-metric>strong{font-size:21px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}.strategy-metric>span{font-size:12px}.strategy-profit .is-win,.strategy-replay .is-win{color:#ff737b}.strategy-profit .is-loss,.strategy-replay .is-loss{color:#e3b45b}
.strategy-ranges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.strategy-range{display:grid;gap:4px;min-width:0;padding:7px 0}.strategy-range span{font-size:11px}.strategy-range strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.strategy-profit-filters{display:flex;gap:6px;margin:10px 0}.strategy-profit .is-selected{border-color:#b6a477;color:#f2dc9f;background:#302c23}
.strategy-profit-row{display:grid;gap:4px;min-width:0;padding:10px 0;border-top:1px solid #30362f}.strategy-profit-row>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.strategy-profit-row b{min-width:0;overflow-wrap:anywhere}.strategy-profit-row strong{flex:none;font-variant-numeric:tabular-nums}.strategy-profit-row span{font-size:12px}
.strategy-profit details>summary{cursor:pointer;padding:6px 0;font-size:12px}.strategy-quote{display:grid;gap:5px;padding:8px;background:#20251e;border-radius:6px}
.strategy-profit-dialog{width:min(780px,calc(100% - 16px))}.strategy-profit-dialog-card{max-height:calc(100dvh - 24px);overflow:auto;padding:18px}.strategy-profit-dialog-card>.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.strategy-profit-dialog-card .close-button{position:static;flex:none}.strategy-profit-dialog-card .strategy-profit{border:0;padding:0;background:transparent}
@media(max-width:699px){.strategy-profit{padding:10px;gap:8px}.strategy-metric{padding:8px 6px;gap:5px}.strategy-metric>span{font-size:10px}.strategy-metric>strong{font-size:clamp(11px,3.5vw,18px)}.strategy-metric>small{font-size:10px}.strategy-profit header>b{font-size:13px}.strategy-profit-dialog-card{padding:14px 10px}.strategy-profit .action-button{min-height:34px;padding:6px 9px;font-size:11px}.strategy-ranges{gap:8px}.strategy-profit-row>div{font-size:12px}}

.fixture-search{display:flex;align-items:center;gap:6px;width:clamp(135px,16vw,220px);min-height:34px;margin:0;padding:0 8px;border:1px solid #4a463a;border-radius:5px;background:#191913;color:var(--text);box-sizing:border-box}
.fixture-search:focus-within{border-color:#9d8c65}
.fixture-search>span{flex:none;font-size:12px}
.fixture-search input[type="search"]{flex:1;min-width:0;width:100%;padding:6px 0;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:13px}
.fixture-search input::placeholder{color:#b2ad9e}
.fixture-search input::-webkit-search-cancel-button{appearance:none}
.fixture-search button{flex:none;min-width:24px;min-height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font-size:18px}
.fixture-search button:focus-visible{outline:2px solid #9d8c65}
.fixture-search-status{margin:10px 0;color:var(--muted);font-size:13px}
.fixture-search-stage{margin:12px 0 8px;font-size:14px}
body.fixture-search-active #prematchView>:not(#prematchList,.fixture-search-stage),
body.fixture-search-active #liveView>:not(#liveList,.fixture-search-stage){display:none!important}
@media(max-width:699px){
  body.customer-borderless #yesterdayButton{grid-area:3 / 1}
  body.customer-borderless #notifyButton{grid-area:3 / 2 / auto / span 2;min-height:30px}
  body.customer-borderless .fixture-search{grid-column:1/-1;grid-row:4;width:100%;min-height:44px}
  .fixture-search input[type="search"]{font-size:16px}
  .fixture-search button{min-width:34px;min-height:36px}
}
/* Compact results share the live-relay card rhythm; figures align by column. */
#recommendedView .practice-banner{padding:10px 12px;margin-bottom:10px;min-height:0;align-items:center}
#recommendedView .practice-banner>div:first-child{display:flex;align-items:center;gap:10px}
#recommendedView #practiceStatus{font-size:12px;color:var(--muted,#adb4ac)}
#recommendedView .practice-banner-actions button{min-height:32px;padding:5px 12px}
.compact-results-toolbar{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 3px;min-width:0}
.compact-results-toolbar input[type=date]{width:142px;min-width:0;min-height:34px;padding:5px 8px;border:1px solid var(--line,#3c403a);border-radius:5px;background:var(--panel,#20251e);color:inherit;font-size:12px}
.compact-results-toolbar .auto-review-filters{flex:1 1 auto;display:flex;gap:5px;flex-wrap:wrap}
.compact-results-toolbar .action-button{min-height:34px;padding:5px 12px;font-size:12px}
.compact-results-card{min-width:0;border-radius:9px}
.compact-results-card>summary.match-head{display:block;padding:13px 14px;list-style:none;min-width:0}
.compact-results-card>summary::-webkit-details-marker{display:none}
.results-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.results-card-top .teams{font-size:15px;line-height:1.5;margin:0;min-width:0;overflow-wrap:anywhere}
.results-card-score{display:inline-block;margin-left:6px;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.results-card-top time{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.results-card-status{flex:none;font-size:11px;line-height:1.5;padding-top:3px;color:var(--muted,#adb4ac);white-space:nowrap}
.results-card-outcomes{display:grid;gap:5px;margin-top:9px}
.results-card-outcome{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0;line-height:1.5;font-size:13px}
.results-card-outcome>b{font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.compact-results-card .is-win,#strategyProfitButton .is-win{color:#ff737b}.compact-results-card .is-loss,#strategyProfitButton .is-loss{color:#e3b45b}
.compact-results-card>.match-content{padding:10px 14px;border-color:#30362f}
.results-card-league{font-size:12px;color:var(--muted,#adb4ac);margin-bottom:9px}
.compact-result-detail{padding:2px 0 10px;min-width:0}.compact-result-detail+.compact-result-detail{padding-top:12px;border-top:1px solid #30362f}
.compact-result-detail h4{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 9px;font-size:13px;line-height:1.5}
.results-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin:0 0 12px;min-width:0}
.results-detail-grid>div{min-width:0}.results-detail-grid dt{font-size:11px;line-height:1.6;color:var(--muted,#adb4ac)}
.results-detail-grid dd{margin:2px 0 0;font-size:13px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.results-goal-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid #30362f;font-size:12px}
.results-goal-row.is-cancelled{opacity:.65}.results-goal-row>.goal-replay-options{grid-column:1/-1}
.compact-result-detail table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.compact-result-detail th,.compact-result-detail td{text-align:right;padding:6px;border-bottom:1px solid #30362f}.compact-result-detail th:first-child,.compact-result-detail td:first-child{text-align:left}
.compact-strategy-profit{margin:0}.compact-profit-cards{display:grid;gap:8px}.compact-strategy-profit .strategy-profit-filters{margin:0}.compact-strategy-profit .strategy-metric{gap:7px;padding:10px}.compact-strategy-profit .strategy-metric>strong{font-size:21px}
.results-statistics{margin-top:4px;border-top:1px solid #30362f}.results-statistics>summary{padding:9px 0;cursor:pointer}.results-statistics .results-detail-grid{grid-template-columns:1fr 1fr;margin-top:6px}
#strategyProfitButton{display:inline-flex;align-items:center;justify-content:center;gap:5px}#strategyProfitButton>strong{font-size:inherit;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(min-width:1000px){#recommendedList{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){#recommendedView .practice-banner{flex-direction:row;padding:8px 10px}.compact-results-toolbar{gap:7px}.compact-results-toolbar input[type=date]{width:132px}.compact-results-toolbar .auto-review-filters{flex:1 1 100%;gap:4px}.compact-results-toolbar .action-button{flex:1 1 0;min-width:0;padding:5px 7px;font-size:11px}.compact-results-card>summary.match-head{padding:11px 10px}.results-card-top .teams{font-size:13px}.results-card-score{font-size:15px;margin-left:4px}.results-card-top time{font-size:12px}.results-card-status{font-size:10px}.results-card-outcome{font-size:12px}.results-card-outcome>b{font-size:15px}.compact-results-card>.match-content{padding:10px}.results-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}.compact-strategy-profit .strategy-metric{padding:8px 6px}.compact-strategy-profit .strategy-metric>strong{font-size:clamp(11px,3.5vw,18px)}}

/* Prematch movements, monitoring reminders and cross-entry summaries. */
.tab-group .tab{min-width:0;white-space:normal;overflow-wrap:anywhere}
.prematch-orders-page{min-width:0}
.prematch-orders-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:12px 0 8px}
.prematch-orders-heading h2{font-size:clamp(16px,2.2vw,21px);line-height:1.3;margin:0}
.prematch-orders-heading span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.prematch-order-sort{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,400px);margin:0 0 10px}
.prematch-order-sort button{min-width:0;min-height:40px;white-space:normal}
.live-filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.live-list-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,480px);margin:0}
#liveMarginFilter{min-width:112px;min-height:44px;padding:5px 8px}
.live-list-switch button{min-height:40px;min-width:0}
.live-list-switch b{margin-left:3px;font-variant-numeric:tabular-nums}
#liveList .live-visibility-button{min-height:26px;padding:3px 7px;border:1px solid #50534e;border-radius:4px;background:#242724;color:#d2d5ce;font-size:11px;font-weight:600;white-space:nowrap}
#liveList .live-visibility-button:hover{background:#303630;border-color:#899089}
#liveList .live-visibility-button:focus-visible{outline:2px solid #9ca59c;outline-offset:2px}
#betsList .bet-card,#betsList .bet-details,#betsList .record-live-market>*{min-width:0}
#betsList .record-live-markets{container-type:inline-size}
#betsList .record-live-market:not(.original-unavailable){
  grid-template-columns:minmax(0,1fr) minmax(0,.65fr) minmax(0,.65fr) minmax(0,1fr);
  grid-template-areas:"line over under tags" "metrics metrics results results";
}
#betsList .record-live-market-line{grid-area:line}
#betsList .record-live-market-odds:nth-child(2){grid-area:over}
#betsList .record-live-market-odds:nth-child(3){grid-area:under}
#betsList .record-live-market-tags{grid-area:tags}
#betsList .record-live-market-metrics{grid-area:metrics}
#betsList .record-live-market-results{grid-area:results}
#betsList .record-live-market :is(.record-live-market-line,.record-live-market-odds,.record-live-market-hedge,.record-live-market-floor,.outcome-inline-item){
  white-space:normal;overflow-wrap:anywhere
}
#betsList .record-live-market.original-unavailable{display:flex;flex-wrap:wrap}
@container (min-width:630px){
  #betsList .record-live-market:not(.original-unavailable){
    grid-template-columns:minmax(0,.85fr) minmax(0,.6fr) minmax(0,.6fr) minmax(0,.9fr) minmax(0,1.2fr) minmax(0,1.8fr);
    grid-template-areas:"line over under tags metrics results";
  }
}
@media(max-width:699px){
  .prematch-order-sort button{min-height:44px}
  .live-list-switch button{min-height:44px}
  #liveList .live-visibility-button{min-height:36px}
  #betsList .record-live-market:not(.original-unavailable){
    grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.8fr);
    grid-template-areas:"line over under" "tags tags tags" "metrics metrics metrics" "results results results";
  }
  #betsList .record-live-market-metrics{justify-content:flex-start}
}
.prematch-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:12px 0}
.prematch-pagination button,.prematch-movement-notice button,.prematch-kickoff-notice button{border:1px solid #494332;border-radius:6px;background:#272419;color:#eddfbd;padding:7px 10px;min-height:36px;cursor:pointer}
.prematch-pagination button:disabled{opacity:.4;cursor:default}
.prematch-move-badge{display:inline-block;margin:1px 5px 1px 0;color:#bfb8a5;font-size:11px;white-space:nowrap}
.prematch-move-badge[data-prematch-signal^="line"]{color:#ead09a;font-weight:600}
.prematch-move-details{margin:0 0 10px;padding:10px;border:1px solid #31332b;border-radius:8px;background:#171813}
.prematch-move-details h4,.prematch-move-details p{margin:0 0 5px}
.prematch-move-details p,.prematch-move-details time{color:#bcb9ad;font-size:11px}
.prematch-move-details ul,.prematch-move-details ol{list-style:none;padding:0;margin:0 0 6px}
.prematch-move-details li{display:flex;align-items:baseline;gap:3px 12px;flex-wrap:wrap;padding:4px 0;font-variant-numeric:tabular-nums}
.prematch-move-details summary{cursor:pointer;color:#d9c89c}
.prematch-move-details ol{max-height:12rem;overflow-y:auto}
.prematch-kickoff-notice{padding:8px 12px;background:#292417;color:#f1e6c8;z-index:12}
.prematch-kickoff-notice h2{margin:0 0 4px;font-size:13px;line-height:1.3}
.prematch-kickoff-notice ul{margin:0;padding:0;list-style:none}
.prematch-kickoff-notice li{display:flex;justify-content:space-between;align-items:center;gap:6px 12px}
.prematch-kickoff-notice li>div:first-child{min-width:0;overflow-wrap:anywhere}
.prematch-kickoff-notice li span{display:block;font-size:12px;line-height:1.4}
.prematch-kickoff-notice .prematch-notice-meta{color:#d4c9a9}
.prematch-kickoff-notice button{flex:none;white-space:nowrap;background:#3b3221;font-size:12px}
.market-notice-stack{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:155;display:flex;flex-direction:column;gap:6px;width:min(460px,calc(100vw - 24px));max-height:65dvh;pointer-events:none}
.prematch-movement-notice{max-height:45dvh;min-height:0;overflow:auto;box-sizing:border-box;border:1px solid #706144;border-radius:12px;background:#1d1b15;padding:10px 12px;box-shadow:0 5px 18px #0008;color:#eddfbd;pointer-events:auto}
.prematch-movement-notice h2{font-size:13px;margin:0 0 8px}
.prematch-movement-notice ul{margin:0;padding:0;list-style:none}
.prematch-movement-notice li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #3b3528}
.prematch-movement-notice li>div:first-child{min-width:0;overflow-wrap:anywhere}
.prematch-movement-notice li span{display:block;margin-top:3px;font-size:11px;line-height:1.4}
.prematch-movement-notice button{flex:none;white-space:nowrap}
.market-notice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.late-under-card-note{margin:0 0 10px;padding:8px 10px;border-left:2px solid #a78a4b;background:#252017;color:#eddfbd;line-height:1.5;font-size:13px}
@media(max-width:699px){
  #prematchList .match-card .teams{font-size:15px;margin-block:4px 2px}
  #liveList .match-card.live-match .teams{font-size:14px;margin-block:3px 2px}
  #prematchList .match-card .compact,#liveList .match-card .compact{font-size:10px}
  #betsList .bet-title-line .teams{font-size:13px}
  .prematch-kickoff-notice{top:calc(env(safe-area-inset-top,0px) + 56px);padding:6px 8px;font-size:11px}
  .prematch-kickoff-notice h2{font-size:12px;margin-bottom:3px}
  .prematch-kickoff-notice li{flex-wrap:wrap}
  .prematch-kickoff-notice li span,.prematch-kickoff-notice button{font-size:11px}
  .prematch-kickoff-notice button{padding:4px 8px}
  .prematch-move-details li{font-size:11px;gap:2px 8px;padding:3px 0}
}
@media(max-width:520px){
  .prematch-movement-notice .market-notice-actions{flex-direction:column;align-items:stretch}
}
.order-origin-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(144px,1fr));gap:7px;margin:0 0 10px}
.order-origin-summary>div{display:grid;gap:3px;min-width:0;background:#191a15;border:1px solid #30322a;border-radius:8px;padding:8px;color:#ded1b4}
.order-origin-summary>div span{font-size:11px;font-variant-numeric:tabular-nums}
.order-origin-summary .archive-total{border-color:#665d44}
@media(max-width:480px){.order-origin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.prematch-movement-notice button{min-height:40px}}
#marketMonitorControls{display:flex;width:auto}
#marketMonitorControls[hidden],#marketMonitorControls [hidden],.movement-sort-strip button[hidden]{display:none!important}
#marketMonitorControls .market-monitor-control{padding:0;border:0;background:transparent}
.prematch-move-badges:empty{display:none}

#resultsShortcut[hidden],#strategyProfitButton[hidden]{display:none!important}
