:root{color-scheme:dark;--bg:#09111b;--panel:#101c2a;--panel2:#142235;--line:#26394e;--text:#edf4fa;--muted:#9aadc0;--teal:#48d6aa;--red:#ff7a7a;--green:#41d49b;--gold:#f6cc72;--shadow:0 12px 30px #0003;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% -20%,#16364a 0,#09111b 55%);color:var(--text);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}button,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}.app-shell{width:min(100%,920px);margin:0 auto;padding:12px 14px 26px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px 12px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{display:block;width:44px;height:44px;object-fit:cover;border-radius:12px;border:1px solid #ffffff30;box-shadow:0 8px 25px #0004}.modal-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#16483e,#17384c);border:1px solid #28765f;color:#8cf0ce;font-weight:950;font-size:14px;letter-spacing:-.5px;box-shadow:0 8px 25px #0aa87820}.brand h1{font-size:17px;line-height:1.2;margin:0;font-weight:850;letter-spacing:.1px}.brand p{margin:3px 0 0;color:#b0c4d5;font-size:12px}.top-actions{display:flex;align-items:center;gap:9px}.connection{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;white-space:nowrap}.connection i{width:8px;height:8px;border-radius:50%;background:#65768a}.connection.ok{color:#8ce8c8}.connection.ok i{background:var(--green);box-shadow:0 0 10px #41d49b99}.connection.warn{color:var(--gold)}.connection.warn i{background:var(--gold)}.icon-button{width:36px;height:36px;border:1px solid var(--line);background:var(--panel);border-radius:11px;font-size:17px}.summary-bar{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 10px;border:1px solid var(--line);border-radius:11px;background:#0c1724;color:#c2d1de;font-size:12px}.separator{color:#567085}.summary-bar #todayPnl{font-weight:800}.pnl-positive{color:var(--red)!important}.pnl-negative{color:var(--green)!important}.muted{color:var(--muted)!important}.notify-button{margin-left:auto;border:1px solid #2d715e;background:#102e29;border-radius:8px;padding:6px 9px;color:#8de9c9;font-weight:750;font-size:11px;white-space:nowrap}.alert-banner{margin:9px 0;padding:11px 12px;border:1px solid #9b4d4d;background:#411e23;color:#ffd7d7;border-radius:10px;font-weight:850;box-shadow:0 0 24px #ff555522;animation:pulse 1.1s infinite alternate}@keyframes pulse{from{box-shadow:0 0 8px #ff555522}to{box-shadow:0 0 22px #ff555566}}.settings-pills{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 12px}.pill{border:1px solid var(--line);background:var(--panel);padding:7px 9px;border-radius:999px;color:#cbd8e3;font-size:11px;font-weight:700}.pill.total{color:#d3e1ed}.pill.total.positive{color:var(--red)}.pill.total.negative{color:var(--green)}.tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 12px;padding:4px;border:1px solid #243448;border-radius:13px;background:#0b1522;position:sticky;top:0;z-index:3;backdrop-filter:blur(14px)}.tab{min-width:0;min-height:44px;border:1px solid transparent;border-radius:9px;background:transparent;color:#a9bacb;font-size:11px;font-weight:800;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15;white-space:nowrap}.tab b{font-size:11px;color:#d5e4ef}.tab.active{background:#174236;border-color:#286b58;color:#a2f1d4}.tab.active b{color:#fff}.view{min-height:40vh}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 10px;flex-wrap:wrap}.segmented{display:flex;padding:3px;border:1px solid var(--line);background:#0d1927;border-radius:9px}.segmented button{border:0;border-radius:7px;padding:7px 10px;color:var(--muted);font-weight:800;font-size:11px;background:transparent}.segmented button.active{background:#1b3d37;color:#94e9ca}.hint,.section-caption{font-size:11px;color:var(--muted)}.section-caption{padding:3px 2px 10px}.cards{display:grid;gap:10px}.match-card,.bet-card,.empty{border:1px solid var(--line);background:linear-gradient(145deg,#111f2e,#0e1926);border-radius:13px;overflow:hidden;box-shadow:var(--shadow)}.match-card[open],.match-card.open{border-color:#31536b}.match-head{padding:12px 12px 10px;cursor:pointer;list-style:none}.match-head::-webkit-details-marker{display:none}.headline{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:10px}.kickoff{white-space:nowrap}.teams{font-size:16px;font-weight:850;line-height:1.25;margin:8px 0 5px}.compact{font-size:12px;font-weight:760;color:#cbd9e5;line-height:1.4}.match-content{border-top:1px solid #213247;padding:9px 10px 11px}.status-pill{font-size:10px;font-weight:850;padding:3px 7px;border:1px solid #33516d;border-radius:999px;color:#bdd8f4;white-space:nowrap}.status-pill.good{color:#89efc6;border-color:#2c7059;background:#10332d}.status-pill.registered{color:#ff9da4;border-color:#a94b56;background:#421d26;font-size:11px}.status-pill.live{color:#ffc5ad;border-color:#8e4f43;background:#3a211f}.status-pill.warn{color:#f9d58a;border-color:#785d2e;background:#382c17}.market-row{display:grid;grid-template-columns:minmax(72px,1.1fr) repeat(3,minmax(0,1fr));gap:6px;align-items:center;border:1px solid #22364b;border-radius:9px;background:#0a1420;padding:8px;margin:6px 0}.market-name{font-size:12px;font-weight:850;line-height:1.3}.market-name small{display:block;color:var(--muted);font-size:10px;font-weight:500;margin-top:2px}.quote{text-align:center;min-width:0}.quote label{display:block;color:#8298ae;font-size:9px}.quote strong{font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}.quote.under strong{color:#bfe9da}.market-extra{text-align:right;color:var(--muted);font-size:9px;grid-column:1/-1;padding-top:1px}.register-button,.action-button,.primary-button{width:100%;min-height:42px;border:0;border-radius:10px;background:linear-gradient(120deg,#41d5a5,#70e2bb);color:#06251c;font-weight:900;font-size:13px;margin-top:8px;box-shadow:0 8px 18px #27a98220}.action-button.secondary{background:#1d3142;color:#dbeaf4;border:1px solid #35516c;box-shadow:none}.action-button.danger{background:#3d2228;color:#ffd4d4;border:1px solid #70424a;box-shadow:none}.bet-card{padding:12px}.bet-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.bet-teams{font-size:16px;font-weight:850;margin:8px 0}.bet-sub{font-size:11px;color:var(--muted);margin-top:-4px;margin-bottom:9px}.bet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.metric{border:1px solid #25384c;background:#0b1623;border-radius:9px;padding:8px}.metric label{display:block;color:var(--muted);font-size:9px;margin-bottom:2px}.metric strong{font-size:13px;font-weight:850;overflow-wrap:anywhere}.pnl-line{margin-top:9px;border-top:1px solid #26384a;padding-top:9px;font-size:12px;font-weight:850}.outcome-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:7px}.outcome{display:flex;justify-content:space-between;gap:4px;border:1px solid #22364b;border-radius:7px;background:#0a1420;padding:6px 7px;font-size:10px}.odds-time{margin-top:7px;color:#8297ab;font-size:9px}.empty{padding:26px 16px;text-align:center;color:var(--muted);font-size:12px;border-style:dashed;background:#0d1825;box-shadow:none}.error{color:#ffaaaa!important}.ok-text{color:#88eac6!important}footer{display:flex;justify-content:space-between;gap:10px;margin-top:20px;padding:10px 2px;color:#667e94;font-size:9px} .dialog{width:min(100% - 22px,460px);max-height:calc(100dvh - 26px);border:1px solid #304860;border-radius:17px;background:#111e2b;color:var(--text);padding:0;box-shadow:0 18px 80px #000b}.dialog::backdrop{background:#02070dbb;backdrop-filter:blur(3px)}.dialog-card{position:relative;padding:21px 18px 18px}.dialog-card h2{font-size:20px;margin:0 32px 5px 0}.dialog-card p{font-size:12px;color:var(--muted);margin:0 0 13px}.dialog-match{color:#d5e3ee!important;font-weight:750}.modal-mark{margin-bottom:13px}.field{display:block;margin:11px 0}.field span{display:block;font-size:11px;font-weight:800;color:#b8c8d7;margin-bottom:5px}.field input{width:100%;height:44px;border:1px solid #34495e;border-radius:9px;background:#09131e;color:#fff;padding:0 11px;font-size:15px;outline:none}.field input:focus{border-color:#49d6aa;box-shadow:0 0 0 2px #49d6aa22}.field input[readonly]{color:#b5c7d8}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.note{padding:9px 10px;border:1px solid #263b51;border-radius:9px;background:#0b1723;color:#a8bacb!important}.form-error{min-height:18px;color:#ff9898;font-size:11px;margin:5px 0}.primary-button{margin-top:5px}.dialog-card small{display:block;color:#6f8499;font-size:10px;margin-top:10px;text-align:center}.close-button{position:absolute;top:11px;right:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#172637;color:#c4d5e3;font-size:22px;line-height:1}.loading{opacity:.65}
@media(min-width:650px){.app-shell{padding:24px 22px 40px}.topbar{padding:12px 2px 18px}.brand-mark{width:50px;height:50px}.brand h1{font-size:20px}.tabs{position:static}.tab{font-size:13px;flex-direction:row;gap:5px}.tab b{font-size:12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.match-card{align-self:start}.bet-card{align-self:start}.summary-bar{font-size:13px}.market-row{grid-template-columns:minmax(100px,1.2fr) repeat(3,minmax(70px,1fr))}.teams,.bet-teams{font-size:18px}}
@media(max-width:360px){.app-shell{padding-left:10px;padding-right:10px}.tab{font-size:10px}.teams{font-size:14px}.market-row{grid-template-columns:minmax(64px,.9fr) repeat(3,minmax(0,1fr));gap:3px;padding:7px 5px}.quote strong{font-size:12px}.quote label{font-size:8px}.hint{font-size:10px}}
.install-button{border:1px solid #2d715e;background:#102e29;border-radius:8px;padding:6px 9px;color:#8de9c9;font-weight:800;font-size:11px}
.dialog{width:min(460px,calc(100% - 22px))}
.filter-strip{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:4px 1px 7px;margin:0 0 2px;scrollbar-width:thin}.filter-strip b{flex:none;font-size:10px;color:#91a7ba;margin-right:2px}.filter-strip button{flex:none;border:1px solid #2a3e52;border-radius:7px;background:#101c2a;color:#aebfd0;padding:6px 8px;font-size:10px;font-weight:800;white-space:nowrap}.filter-strip button.active{border-color:#337d66;background:#15352e;color:#91e8c9}
.movement-sort-strip .coexisting-filter-button{border-color:#367760;background:#12352d;color:#9be8c8}
.movement-sort-strip .coexisting-filter-button.active{border-color:#62a98a;background:#194638;color:#d7ffed}
.movement-sort-strip #coexistingMatchCount{display:inline-grid;place-items:center;min-width:18px;height:18px;margin:0 0 0 3px;padding:0 4px;border-radius:999px;background:#1b473b;color:#f0fff8;font-size:11px;font-variant-numeric:tabular-nums;line-height:1}
footer{flex-wrap:wrap}
.action-row{display:flex;flex-wrap:wrap;gap:8px}.action-row .action-button{flex:1 1 calc(50% - 4px);min-width:130px;min-height:46px;margin-top:8px;padding:7px 9px;line-height:1.2;text-align:center}.ceiling-banner{margin:9px 0;padding:13px 14px;border:2px solid #ff505b;background:linear-gradient(110deg,#651820,#40131c);border-radius:11px;color:#fff2f2;font-size:13px;font-weight:900;line-height:1.45;box-shadow:0 0 25px #ff374655;animation:ceilingPulse 1.15s ease-in-out infinite alternate}.bet-card.ceiling-alert{border:2px solid #ff4d58;background:linear-gradient(145deg,#321923,#191722);box-shadow:0 0 22px #ff334044;animation:cardCeilingPulse 1.15s ease-in-out infinite alternate}.ceiling-note{margin-top:8px;padding:9px 10px;border:1px solid #a23943;border-radius:8px;background:#371b22;color:#ffd7d9;font-size:12px;font-weight:850;line-height:1.4}.action-button.ceiling-action{background:linear-gradient(115deg,#ff414f,#c91f37);border:1px solid #ff9198;color:#fff;font-weight:950;box-shadow:0 0 16px #ff334066;animation:buttonCeilingPulse 1.1s ease-in-out infinite alternate}.emergency-active{background:radial-gradient(ellipse at 50% -20%,#581923 0,#201019 50%,#09111b 100%)}body.emergency-active::after{content:"";position:fixed;inset:0;z-index:20;border:4px solid #ff4352;box-shadow:inset 0 0 42px #ff203144;pointer-events:none;animation:frameCeilingPulse 1.15s ease-in-out infinite alternate}@keyframes ceilingPulse{from{border-color:#c83240;box-shadow:0 0 10px #ff374422}to{border-color:#ff6470;box-shadow:0 0 28px #ff374477}}@keyframes cardCeilingPulse{from{border-color:#a9313d;box-shadow:0 0 8px #ff334022}to{border-color:#ff5964;box-shadow:0 0 25px #ff334066}}@keyframes buttonCeilingPulse{from{filter:brightness(.88)}to{filter:brightness(1.25);box-shadow:0 0 22px #ff334099}}@keyframes frameCeilingPulse{from{border-color:#a61f30;box-shadow:inset 0 0 18px #ff203122}to{border-color:#ff4352;box-shadow:inset 0 0 54px #ff203155}}
@media(prefers-reduced-motion:reduce){.ceiling-banner,.bet-card.ceiling-alert,.action-button.ceiling-action,body.emergency-active::after{animation:none}}
@media(prefers-reduced-motion:reduce){.ceiling-banner,.bet-card.ceiling-alert,.action-button.ceiling-action,body.emergency-active::after{animation:none}}

/* Same customer workspace, adapted to the available screen width. */
html{min-width:320px;scrollbar-gutter:stable}
html,body{touch-action:pan-x pan-y}
body{overflow-x:clip}
.app-shell{width:100%;max-width:none;margin-inline:auto;min-width:0}
.topbar,.top-actions,.summary-bar,.toolbar,.market-row,.bet-card,.match-card{min-width:0}
button,.tab,.filter-strip button,.segmented button{touch-action:manipulation}
.tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.tab{min-width:0;min-height:46px}
.cards{grid-template-columns:minmax(0,1fr)}
.summary-bar{flex-wrap:wrap;line-height:1.4}
.market-row{grid-template-columns:minmax(0,.95fr) repeat(3,minmax(0,1fr))}
.quote label,.market-extra,.metric label,.odds-time{font-size:11px}
.filter-strip b,.filter-strip button,.segmented button{font-size:12px}
footer{font-size:11px;line-height:1.5}

@media(min-width:700px){
  .app-shell{padding:22px clamp(20px,3vw,42px) 40px}
  .topbar{align-items:center;padding:12px 2px 17px}
  .top-actions{width:auto;justify-content:flex-end}
  .brand h1{font-size:22px}
  .brand p{font-size:14px}
  .connection{font-size:13px}
  .icon-button,.install-button{min-height:44px}
  .summary-bar{min-height:48px;padding:9px 13px;font-size:14px;gap:10px}
.notify-button{font-size:13px;padding:8px 12px}
  .settings-pills{gap:9px;margin:12px 0 14px}
  .pill{font-size:13px;padding:8px 11px}
  .tabs{gap:8px;padding:5px;margin-bottom:14px}
  .tab{min-height:50px;font-size:13px;padding:8px 6px}
  .tab b{font-size:13px}
  /* One match per full-width row keeps outcome labels and live comparison
     columns readable on desktop and iPad landscape. */
  .cards{grid-template-columns:minmax(0,1fr);gap:14px}
  .match-head{padding:15px 16px 13px}
  .headline{font-size:12px}
  .teams,.bet-teams{font-size:19px}
  .compact,.section-caption{font-size:13px}
  .match-content{padding:12px 13px 14px}
  .market-row{grid-template-columns:minmax(105px,1.1fr) repeat(3,minmax(0,1fr));gap:8px;padding:10px;margin:8px 0}
  .market-name{font-size:14px}
  .market-name small{font-size:12px}
  .quote label{font-size:12px}
  .quote strong{font-size:16px}
  .market-extra{font-size:11px}
  .register-button,.action-button{min-height:46px;font-size:14px}
  .bet-card{padding:15px}
  .bet-top{font-size:12px}
  .metric{padding:10px}
  .metric label{font-size:12px}
  .metric strong{font-size:14px}
  .pnl-line{font-size:14px}
  .outcome{font-size:12px;padding:8px}
  .odds-time{font-size:12px}
  .filter-strip{gap:7px;padding:6px 2px 9px}
  .filter-strip b,.filter-strip button,.segmented button{font-size:13px}
  .filter-strip button{padding:8px 11px}
  .toolbar{margin:9px 0 12px}
  .hint{font-size:13px}
  footer{font-size:12px}
}

@media(max-width:699px){
  .app-shell{padding:10px 12px calc(28px + env(safe-area-inset-bottom))}
  .topbar{flex-wrap:wrap;gap:8px;padding:6px 1px 10px}
  .brand-mark{width:42px;height:42px}
  .top-actions{width:100%;justify-content:space-between;gap:8px}
  .connection{flex:1;font-size:12px}
  .icon-button,.install-button{min-width:42px;min-height:42px}
  .summary-bar{gap:6px 8px;padding:8px 9px;font-size:12px}
  .summary-bar #updatedAt{flex:1 1 145px;min-width:0;overflow-wrap:anywhere}
  .summary-bar #todayPnl{white-space:nowrap}
  .notify-button{min-height:40px;margin-left:auto;font-size:12px}
  .settings-pills{gap:6px;margin:9px 0 11px}
  .pill{min-height:36px;padding:8px 9px;font-size:12px}
  .tabs{gap:3px;padding:4px;margin-bottom:10px}
  .tab{min-height:46px;padding:5px 2px;font-size:11px;white-space:normal;line-height:1.2}
  .tab b{font-size:11px}
  .toolbar{align-items:flex-start}
  .segmented{max-width:100%}
  .segmented button{min-height:38px;padding:8px 10px;font-size:12px}
  .hint{width:100%;font-size:12px;line-height:1.45}
  .filter-strip{gap:5px;padding:6px 1px 8px}
  .filter-strip b{font-size:11px}
  .filter-strip button{min-height:36px;padding:7px 9px;font-size:11px}
  .match-head{padding:11px 11px 9px}
  .headline,.status-pill{font-size:11px}
  .teams,.bet-teams{font-size:16px}
  .compact{font-size:12px}
  .match-content{padding:8px 8px 10px}
  .market-row{grid-template-columns:minmax(60px,.9fr) repeat(3,minmax(0,1fr));gap:4px;padding:8px 6px}
  .market-name{font-size:11px}
  .market-name small{font-size:10px}
  .quote label{font-size:10px}
  .quote strong{font-size:13px}
  .market-extra{font-size:10px;line-height:1.4}
  .bet-card{padding:11px}
  .metric{padding:7px}
  .metric label{font-size:10px}
  .metric strong{font-size:12px}
  .record-summary{gap:6px 11px;padding:9px 1px;font-size:12px}
  .record-summary b{font-size:14px}
  .current-quote>div:first-child{font-size:13px}
  .current-quote small{font-size:10px}
  .current-quote>div:nth-child(2) strong{font-size:19px}
  .pnl-line{font-size:12px}
  .profit-line,.settlement-line{font-size:13px}
  .outcome-inline{gap:4px;font-size:11px}
  .outcome-inline-item b{font-size:14px}
  .outcome{font-size:10px}
  .odds-time{font-size:10px;line-height:1.4}
  footer{display:grid;gap:5px;font-size:10px}
}

.modal-mark{display:block;object-fit:cover;background:#fff}

.sporttery-nav{display:inline-flex;align-items:center;justify-content:center;min-height:40px;flex:0 0 auto;padding:0 11px;border:1px solid #327c66;border-radius:10px;background:linear-gradient(135deg,#14392f,#102b2b);color:#a2f1d4;text-decoration:none;font-size:12px;font-weight:900;white-space:nowrap;box-shadow:0 5px 18px #0aa87818}
.sporttery-nav:hover,.sporttery-nav:focus-visible{border-color:#59ddb2;background:#1a493b;color:#e1fff3;outline:none}

@media(max-width:370px){
  .app-shell{padding-inline:9px}
  .tabs{gap:2px;padding:3px}
  .tab{font-size:10px}
  .market-row{grid-template-columns:minmax(54px,.85fr) repeat(3,minmax(0,1fr));gap:3px;padding:7px 5px}
  .quote strong{font-size:12px}
  .filter-strip button{padding-inline:8px}
}

@media(min-width:1200px){
  .app-shell{padding-inline:clamp(18px,1.5vw,34px)}
  .cards{gap:16px}
  .match-content{padding:14px 15px 16px}
  .bet-card{padding:17px}
}

/* Use the wide desktop canvas for match cards, while keeping the phone layout intact. */
@media(min-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.toolbar-options{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.kickoff-banner{margin:9px 0;padding:12px;border:2px solid #e34b58;background:linear-gradient(110deg,#54151e,#35131b);border-radius:11px;color:#fff1f2;box-shadow:0 0 22px #ff374044;animation:kickoffPulse 1.15s ease-in-out infinite alternate}
.kickoff-title{font-size:13px;font-weight:950;margin-bottom:6px}
.kickoff-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #ffffff20}
.kickoff-item>div{display:grid;gap:2px;min-width:0}
.kickoff-item b{font-size:13px}
.kickoff-item span{font-size:11px;color:#ffd7da}
.kickoff-item button{flex:none;min-height:38px;border:1px solid #ffa2a8;border-radius:8px;background:#a52635;color:white;padding:7px 10px;font-size:11px;font-weight:900}
@keyframes kickoffPulse{from{border-color:#a9303e;box-shadow:0 0 9px #ff374022}to{border-color:#ff6d78;box-shadow:0 0 25px #ff374066}}
@media(max-width:480px){.toolbar-options{width:100%}.kickoff-item{align-items:flex-start;flex-direction:column}.kickoff-item button{width:100%}}
@media(prefers-reduced-motion:reduce){.kickoff-banner{animation:none}}

/* Clearer hierarchy shared by the extension workspace and customer web client. */
.tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
.top-actions{flex-wrap:wrap}
.icon-button{display:inline-grid;place-items:center;flex:0 0 auto}
.workspace-toolbar{align-items:flex-start;padding:10px;border:1px solid #23384d;border-radius:12px;background:#0b1724}
.workspace-toolbar .toolbar-options{width:100%;align-items:stretch}
.search-wrap{display:block;flex:1 1 190px;min-width:min(100%,190px)}
.search-wrap input{width:100%;height:39px;border:1px solid #30465d;border-radius:9px;background:#09131e;color:#fff;padding:0 11px;outline:none}
.search-wrap input:focus{border-color:#49d6aa;box-shadow:0 0 0 2px #49d6aa22}
.sort-controls{flex:1 1 500px;flex-wrap:wrap;gap:3px}
.sort-controls button{flex:1 1 118px;white-space:nowrap}
.risk-warning{margin:2px 3px 10px;color:#efc876;font-size:11px;font-weight:750}
.market-row{grid-template-columns:minmax(92px,1.15fr) repeat(5,minmax(66px,.8fr));gap:7px}
.market-row .quote{min-width:0}
.market-row .quote strong{display:block;white-space:nowrap}
.market-action{grid-column:1/-1;display:flex;justify-content:flex-end}
.market-row .register-button{width:auto;min-width:190px;min-height:38px;margin:1px 0 0;padding:7px 13px}
.register-button.force-register{background:linear-gradient(110deg,#722833,#4a2028);color:#ffe0e1;border:1px solid #b6505c;box-shadow:none}
.market-action-note{color:#80dfbb;font-size:12px;font-weight:850}.market-action-note.registered{color:#ff9da4;font-size:13px}
.odds-movement{display:block;margin-top:2px;font-size:11px;font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums}
.odds-movement.rise{color:#ff7777}.odds-movement.fall{color:#57d6a0}
.match-identity{display:flex;align-items:center;gap:11px;min-width:0}
.match-identity-copy{min-width:0;flex:1}
.live-score-leading{display:inline-flex;align-items:center;gap:6px;flex:none;padding:4px 9px;border:1px solid #5b4932;border-radius:999px;background:rgba(42,34,26,.42);color:#d6c9ad;white-space:nowrap;line-height:1.15}
.live-score-leading>span{color:#cbb990;font-size:11px;font-weight:750}.live-score-leading>b{padding:2px 7px;border:1px solid #5b4932;border-radius:5px;background:#2a221a;color:#dfbc6c;font-size:20px;font-weight:950;font-variant-numeric:tabular-nums}
.live-score-simulation{display:inline-flex;align-items:center;justify-content:center;min-height:23px;margin-left:6px;padding:3px 8px;border:1px solid rgba(255,225,145,.82);border-radius:999px;background:rgba(105,73,20,.72);color:#ffe89e;font-size:11px;font-style:normal;font-weight:950;letter-spacing:.15px;white-space:nowrap;box-shadow:0 0 10px rgba(255,207,92,.24)}
.match-card.live-match .match-identity{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.match-card.live-match .match-identity-copy{width:100%}
.live-score-stack{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;min-width:0;max-width:100%}
.live-score-stack>.live-score-leading{width:100%;justify-content:flex-start}
.goal-history{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;max-width:100%;padding:1px 2px;color:#91a7bb;font-size:10px;line-height:1.25}
.goal-history-label{color:#9eb2c6;font-weight:800;white-space:nowrap}
.goal-history-item{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid #33485d;border-radius:7px;background:#0b1623;font-variant-numeric:tabular-nums;white-space:nowrap}
.goal-history-item time{color:#c2d4e4}.goal-history-item b{color:#ffd2bd;font-weight:900}
.status-pill.halftime{color:#ffe1a0;border-color:#886d36;background:#3d3019}
.bet-card{padding:0;overflow:hidden}
.bet-summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"main status profit" "stats stats stats";align-items:center;gap:10px 14px;list-style:none;cursor:pointer;padding:14px}
.bet-summary::-webkit-details-marker{display:none}
.bet-summary::after{content:"⌄";position:absolute;right:10px;bottom:5px;color:#7189a0;font-size:12px;pointer-events:none}
.bet-card[open]>.bet-summary::after{content:"⌃"}
.bet-summary-main{grid-area:main;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
.bet-summary-main .match-identity-copy{min-width:0}
.bet-summary-stats{grid-area:stats;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;color:#c6d5e2;line-height:1.35}
.bet-summary-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:11px 13px;border:1px solid #2d4962;border-radius:10px;background:linear-gradient(110deg,#0d1e2c,#0b1724);font-variant-numeric:tabular-nums}
.bet-summary-entry{border-color:#3c566d;background:linear-gradient(110deg,#132532,#0c1925)}
.bet-summary-current{border-color:#28634f;background:linear-gradient(110deg,#102b25,#0c1c20)}
.bet-summary-label{flex:none;color:#9fb4c7;font-size:12px;font-weight:800}
.bet-summary-stat strong{min-width:0;color:#f4f8fb;font-size:17px;line-height:1.35;font-weight:950;letter-spacing:.1px;text-align:right;overflow-wrap:anywhere}
.summary-status{grid-area:status;max-width:none;color:#d4e0eb;font-size:13px;font-weight:900;text-align:right}
.summary-profit{grid-area:profit;display:inline-flex;align-items:baseline;justify-content:flex-end;gap:6px;font-size:22px;font-weight:950;font-variant-numeric:tabular-nums;white-space:nowrap}
.summary-profit b{font:inherit}.summary-profit .summary-profit-amount{color:#4dd9c8!important}.summary-profit small{font-size:.62em;font-weight:850;opacity:.92}
.bet-details{padding:0 12px 12px;border-top:1px solid #22364b}
.record-summary{display:flex;align-items:center;gap:7px 17px;flex-wrap:wrap;padding:12px 1px;color:#c9d8e5;font-size:13px;line-height:1.4}
.record-summary b{color:#fff;font-size:15px;font-weight:950;font-variant-numeric:tabular-nums}
.current-quote{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:11px;border:1px solid #2b435b;border-radius:10px;background:#0a1521}
.current-quote>div:first-child{display:grid;gap:3px;font-size:15px;font-weight:900;font-variant-numeric:tabular-nums}
.current-quote small{color:#91a7bb;font-size:12px;font-weight:700}
.current-quote>div:nth-child(2){display:grid;justify-items:end;gap:1px;color:#9eb2c5;font-size:10px}
.current-quote>div:nth-child(2) strong{color:#fff;font-size:22px;font-weight:950;font-variant-numeric:tabular-nums}
.profit-line,.settlement-line{grid-column:1/-1;padding-top:8px;border-top:1px solid #26394d;font-size:15px;font-weight:950;font-variant-numeric:tabular-nums}
.profit-line.pnl-positive,.settlement-line.pnl-positive{color:var(--red)!important}.profit-line.pnl-negative,.settlement-line.pnl-negative{color:var(--green)!important}
.outcome-inline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%;min-width:0;max-width:100%;padding:10px 1px;color:#d6e3f4;font-size:13px;line-height:1.4}
.outcome-inline-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.outcome-inline-item b{font-size:17px;font-weight:950;font-variant-numeric:tabular-nums}
.outcome-divider{color:#64748b;font-weight:700;padding:0 2px}
.hedge-entry-list{display:grid;gap:6px;padding:8px 0}
.hedge-entry-summary{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:9px 10px;border:1px solid #334763;border-radius:8px;background:#0b1422;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.hedge-entry-summary b{font-size:15px;font-weight:950;color:#fff}
.bet-review-timeline{margin:2px 0 10px;padding:10px 11px;border:1px solid #2b4057;border-radius:9px;background:#0b1422}
.bet-review-timeline h3{margin:0 0 8px;color:#dce8f6;font-size:13px;font-weight:950}
.bet-review-timeline>p{margin:0 0 8px;color:#91a2b5;font-size:11px;line-height:1.45}
.bet-review-timeline ol{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.review-timeline-item{display:grid;grid-template-columns:minmax(88px,125px) 1fr;gap:8px;align-items:start;padding:7px 8px;border-left:3px solid #52677e;border-radius:4px;background:#101d2c;color:#c9d6e3;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
.review-timeline-item time{color:#f0c867;font-weight:900;white-space:nowrap}
.review-timeline-item.hedge{border-left-color:#58a3ff}.review-timeline-item.hedge b{color:#8dc3ff}
.review-timeline-item.goal{border-left-color:#48c995}.review-timeline-item.goal time{color:#73ddb0}
.review-timeline-empty{padding:7px 8px;color:#91a2b5;font-size:12px}
.settlement-line{margin-top:7px}
.action-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.action-row .action-button{flex:1 1 150px;margin:0}
.ceiling-note{margin-top:9px;padding:9px 10px;border:1px solid #a23943;border-radius:8px;background:#371b22;color:#ffd7d9;font-size:12px;font-weight:850;line-height:1.4}
.record-live-markets{margin:8px -12px 0;padding:10px 12px;border-block:1px solid #223149;background:#0b142299}
.record-live-markets h3{margin:0 0 4px;color:#a8bbcf;font-size:14px;font-weight:900}
.record-live-markets>p{margin:0 0 8px;color:#8095aa;font-size:11px;line-height:1.4}
.record-live-market-list{display:grid;gap:5px}
.record-live-market{display:grid;grid-template-columns:minmax(100px,1fr) minmax(64px,.6fr) minmax(64px,.6fr) minmax(110px,.9fr) minmax(132px,1fr) minmax(240px,2.2fr);gap:8px;align-items:center;width:100%;padding:10px 11px;border:1px solid #1e2e43;border-radius:8px;background:#0b1422;color:#c4d1e0;font:inherit;font-size:14px;text-align:left;font-variant-numeric:tabular-nums}
.record-live-market.selectable{cursor:pointer}.record-live-market.selectable:hover{border-color:#5b8dc4;background:#12233a}
.record-live-market[data-select-market]:disabled{opacity:1}
.record-live-market.is-selected{border-color:#4c91ef;background:#122b49;box-shadow:inset 0 0 0 1px #4c91ef55}
.record-live-market.is-original{border-color:#d7a640;background:#332b19;color:#fff0c2;box-shadow:inset 3px 0 #f5b942}
.record-live-market.is-original.is-selected{border-color:#f5b942;box-shadow:inset 3px 0 #f5b942,inset 0 0 0 1px #72b4ff}
.record-live-market.is-ceiling{border:2px solid #ff434b;background:#43141d;box-shadow:inset 3px 0 #ff3945}
.record-live-market.original-unavailable{border-style:dashed;border-color:#a87535;background:#2a2115;grid-template-columns:minmax(100px,1fr) minmax(95px,.75fr) minmax(220px,3fr)}
.record-live-market-line{white-space:nowrap;font-size:16px;font-weight:950;color:#e5eefb}
.record-live-market-odds,.record-live-market-tags{white-space:nowrap}
.record-live-market-odds b{color:#f3f7ff;font-size:18px;font-weight:950}
.record-live-market-tags{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.rank{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #344a60;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}
.rank.original{border-color:#a98331;background:#392e17;color:#ffe28a}.rank.best{border-color:#9b5861;color:#ffabb2;background:#3c2027}.rank.worst{border-color:#39785e;color:#9ce5c5;background:#102e25}.rank.middle,.rank.neutral{color:#aab9c8}.rank.ceiling{border-color:#ffdf48;background:#67151e;color:#fff081}
.record-live-market-metrics{display:grid;gap:2px;min-width:0;font-size:13px;font-weight:800;line-height:1.2}
.record-live-market-hedge,.record-live-market-floor{white-space:nowrap;color:#cbd8e8}.record-live-market-hedge b{font-size:17px;font-weight:950;color:#fff}.record-live-market-floor{font-size:13px;color:#bfccda}.record-live-market-floor b{font-size:17px;font-weight:950}
.record-live-market-results{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;color:#cbd8e8;font-size:13px;font-variant-numeric:tabular-nums}
.record-live-market-results .outcome-inline{gap:5px;padding:0;font-size:13px}.record-live-market-results .outcome-inline .outcome-inline-item b{font-size:15px}
.record-live-market-floor.pnl-positive,.record-live-market-results .pnl-positive b{color:#ff6b75!important}.record-live-market-floor.pnl-negative,.record-live-market-results .pnl-negative b{color:#52d09b!important}
.market-no-safe-hedge{margin:7px 0 9px;padding:11px 13px;border:2px solid #ff525e;border-radius:9px;background:linear-gradient(100deg,#691821,#42141d);color:#fff;font-size:19px;font-weight:950;line-height:1.3;text-align:center;box-shadow:0 0 18px #ff364044}
.live-line-drop-list{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.live-line-drop{display:inline-flex;align-items:center;gap:5px;padding:3px 6px;border:1px solid #834046;border-radius:7px;background:#30191e;color:#ffbac0;font-size:10px;white-space:nowrap}
.live-line-drop b{color:#ff5968;font-size:12px;font-weight:950}.live-line-drop small{color:#bf9297;font-size:9px}
.target-profit-hit{border-color:#ef6872;background:linear-gradient(145deg,#39212b,#151e2e);box-shadow:0 0 0 1px #ef687255,0 8px 24px #ef687222}
.target-profit-hit .bet-summary{background:#311c26}.strong-profit-hit{border-color:#d7a640;background:linear-gradient(145deg,#30291a,#111d2b)}
.target-profit-hit .summary-status,.strong-profit-hit .summary-status{color:#ffb8bc}
.force-register{border-color:#b84a52!important;background:linear-gradient(110deg,#722833,#4a2028)!important;color:#ffe0e1!important}
.force-register:hover{background:#632432!important;border-color:#ef6b73!important}
.summary-bar #todayPnl,.summary-bar #totalPnl{font-weight:900;white-space:nowrap}
.summary-bar #activeRecordCount{white-space:nowrap}
.toast-notice{position:sticky;top:6px;z-index:8;margin:8px 0;padding:12px 14px;border:1px solid #3d8068;border-radius:10px;background:#10352d;color:#c9ffe9;font-size:12px;font-weight:850;line-height:1.5;box-shadow:0 8px 24px #0005}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.record-live-market{grid-template-columns:minmax(90px,1fr) minmax(58px,.6fr) minmax(58px,.6fr) minmax(112px,.8fr)}.record-live-market-metrics,.record-live-market-results{grid-column:1/-1}}
@media(max-width:699px){
  .cards{grid-template-columns:minmax(0,1fr);gap:10px}
  .tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .workspace-toolbar{padding:8px}
  .sort-controls{flex-basis:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
  .sort-controls button{flex:0 0 auto;min-width:116px}
  .market-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px}
  .market-name{grid-column:1/-1;padding-bottom:5px;border-bottom:1px solid #22364b;font-size:12px}
  .market-action{justify-content:stretch}
  .market-row .register-button{width:100%;min-width:0}
  .bet-summary{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main main" "status profit" "stats stats";gap:7px 9px;padding:10px}
  .bet-summary-stats{grid-template-columns:minmax(0,1fr);gap:7px;padding-right:18px}
  .bet-summary-stat{align-items:flex-start;flex-direction:column;gap:4px;padding:9px 10px}
  .bet-summary-label{font-size:11px}
  .bet-summary-stat strong{width:100%;font-size:15px;text-align:left}
  .summary-status{font-size:11px;text-align:left}
  .summary-profit{gap:4px;font-size:17px;justify-self:end}
  .summary-profit small{font-size:11px}
  .record-live-markets{margin-inline:-11px;padding-inline:10px}
  .record-live-market{grid-template-columns:minmax(90px,1fr) minmax(58px,.65fr) minmax(58px,.65fr);gap:6px;padding:9px;font-size:13px}
  .record-live-market-line{font-size:14px}
  .record-live-market-odds b{font-size:16px}
  .record-live-market-metrics{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
  .record-live-market-hedge b,.record-live-market-floor b{font-size:15px}
  .record-live-market-floor{font-size:12px}
  .record-live-market-results{grid-column:1/-1;font-size:12px}
  .record-live-market-results .outcome-inline{font-size:11px}
  .record-live-market-results .outcome-inline .outcome-inline-item b{font-size:14px}
  .record-live-market-tags{grid-column:1/-1}
  .record-live-market.original-unavailable{grid-template-columns:1fr}
  .record-live-market.original-unavailable .record-live-market-results{grid-column:auto}
  .market-no-safe-hedge{font-size:16px;padding:10px}
}
@media(max-width:380px){
  .tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tab{font-size:10px}
  .market-row{gap:5px;padding:7px}
  .quote strong{font-size:12px}
  .summary-bar{font-size:11px}
  .record-live-market-odds{font-size:10px}
  .bet-summary-stat strong{font-size:14px}
  .summary-profit{font-size:17px}
  .outcome-inline{font-size:11px;gap:4px}
  .outcome-inline-item b{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.record-live-market,.force-register{transition:none}}
.bet-title-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;min-width:0;margin-top:4px}
.bet-title-line .teams{margin:0;min-width:0}
.bet-match-meta{min-width:0;color:#7dc9f4;font-size:14px;font-weight:650;line-height:1.3}
.bet-match-meta .kickoff-adjustment{color:#ffd477;font-weight:900;white-space:normal}
.bet-sub{font-size:11px;color:var(--muted);margin:3px 0 0}
@media(min-width:650px){.bet-match-meta{font-size:16px}}
@media(max-width:360px){.bet-match-meta{font-size:12px}}
.notify-control{position:relative;z-index:4;display:flex;align-items:center;margin-left:auto}
.summary-bar .notify-control .notify-button{margin-left:0}
.sound-level-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:6;display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #31536b;border-radius:10px;background:#101e2c;box-shadow:0 10px 28px #0009;white-space:nowrap}
.sound-level-menu{max-width:min(92vw,360px);flex-wrap:wrap;white-space:normal}
.sound-level-menu[hidden]{display:none}
.sound-level-menu>span{padding:0 4px;color:#a9bacb;font-size:11px;font-weight:700}
.sound-level-option{min-width:34px;min-height:32px;border:1px solid #31485d;border-radius:7px;background:#142537;color:#bfd0de;font-size:12px;font-weight:850}
.sound-level-option.active{border-color:#2d8a6d;background:#174337;color:#9bf0d0;box-shadow:inset 0 0 0 1px #49d6aa33}
.sound-level-option:focus-visible,.notify-button:focus-visible{outline:2px solid #8de9c9;outline-offset:2px}
.notification-permission-option{padding-inline:9px;color:#ffe16a}
.notification-support-hint{flex:1 0 100%;padding:3px 4px 0;color:#a9bacb;font-size:10px;font-weight:650;line-height:1.4;white-space:normal}
.vibration-option{display:flex;align-items:center;gap:5px;padding:0 5px;color:#bfd0de;font-size:11px;font-weight:750;white-space:nowrap}
.vibration-option input{accent-color:#49d6aa}
.aligned-filter-strip>b{width:62px;margin-right:4px}
.sporttery-feed-status{color:#9aafc2;font-size:11px}.sporttery-feed-status.online{color:#8de9c9}

/* Date buttons reflect the multi-tab early-market snapshot on both desktop and mobile. */
.early-weekday-filter{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
.early-weekday-filter>b,.early-weekday-filter button{flex:0 0 auto;white-space:nowrap}
.date-filter-feedback{margin:0 0 6px;padding:0 3px;color:#8899a6;font-size:11px;line-height:1.4}

/* Keep the paired threshold controls readable on narrow phones without
   requiring horizontal swipes or clipping the last option. */
@media(max-width:699px){
  .aligned-filter-strip{flex-wrap:wrap;overflow:visible;row-gap:5px}
  .aligned-filter-strip>b{flex:0 0 62px}
  .aligned-filter-strip button{white-space:normal;min-width:0;padding-inline:7px;line-height:1.2}
}

/* Mobile app chrome: a pinned, lightly transparent header that leaves the
   scrolling page visible underneath instead of creating an opaque black bar. */
@media(max-width:699px){
  body{padding:0}
  .app-shell{padding:calc(env(safe-area-inset-top,0px) + 66px) 12px calc(28px + env(safe-area-inset-bottom,0px))}
  .topbar{position:fixed;inset:0 0 auto;z-index:100;height:calc(env(safe-area-inset-top,0px) + 58px);display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0;padding:calc(env(safe-area-inset-top,0px) + 4px) max(10px,env(safe-area-inset-right,0px)) 3px max(10px,env(safe-area-inset-left,0px));background:transparent;border:0;box-shadow:none;isolation:isolate}
  .topbar::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(9,17,27,.17),rgba(9,17,27,.13) 78%,rgba(9,17,27,.05));backdrop-filter:blur(3px) saturate(118%);-webkit-backdrop-filter:blur(3px) saturate(118%);pointer-events:none}
  .brand{flex:1 1 auto;min-width:0;gap:7px}
  .brand-mark{width:36px;height:36px;border-radius:11px;flex:none}
  .brand>div{min-width:0}
  .brand h1{font-size:14px;line-height:1.15;white-space:nowrap}
  .brand p{margin:2px 0 0;font-size:9px;line-height:1.1;white-space:nowrap}
  .top-actions{width:auto;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end;gap:4px}
  .top-actions .icon-button{width:31px;min-width:31px;height:31px;min-height:31px;padding:0;border:1px solid rgba(184,207,224,.23);border-radius:9px;background:rgba(12,25,37,.3);font-size:15px;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
  .top-actions .license-action{width:auto;min-width:0;padding:0 7px;color:#a2f1d4;font-size:10px;font-weight:850;white-space:nowrap}
  .top-actions .install-button{min-width:0;min-height:31px;padding:0 7px;font-size:10px}
  .summary-bar{align-items:center}
  .summary-bar .connection{font-size:10px}
  .summary-bar .sporttery-nav{min-height:30px;padding:0 9px;border-radius:8px;font-size:10px;box-shadow:none}
  .summary-bar #todayPnl,.summary-bar #totalPnl{white-space:nowrap}
  .tabs{position:static;top:auto;z-index:auto;backdrop-filter:none;-webkit-backdrop-filter:none}
}

.top-actions .license-action{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:86px;height:36px;padding:0 9px;border-color:rgba(255,214,93,.36);background:rgba(46,38,14,.12);color:#ffe16a;font-size:11px;font-weight:900;line-height:1;white-space:nowrap;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}
.top-actions .license-action:hover,.top-actions .license-action:focus-visible{border-color:#ffe16a;background:rgba(46,38,14,.18);outline:none}
.top-actions .license-action.authorized{border-color:rgba(73,214,170,.38);background:rgba(14,53,43,.09);color:#8df0c9}
.top-actions .license-action.expiring,.top-actions .license-action.expired{border-color:rgba(255,111,123,.5);background:rgba(72,22,30,.09);color:#ff929b}
.settings-pills .pill-sporttery{display:inline-flex;align-items:center;min-height:36px;padding:7px 10px;border-radius:999px;font-size:11px;box-shadow:none}
.settings-pills .pill[data-settings]{border-color:rgba(255,91,101,.56);background:linear-gradient(135deg,rgba(107,25,34,.72),rgba(66,19,27,.8));color:#ffb2b7;box-shadow:inset 0 0 0 1px rgba(255,100,110,.08)}
.settings-pills .pill[data-settings]:hover,.settings-pills .pill[data-settings]:focus-visible{border-color:#ff7a84;background:linear-gradient(135deg,rgba(128,31,41,.85),rgba(78,20,29,.9));color:#fff0f1;outline:2px solid rgba(255,91,101,.2);outline-offset:2px}
html[data-theme="night"] .settings-pills .pill[data-settings]{border-color:rgba(255,91,101,.55);background:linear-gradient(135deg,#341115,#1d090c);color:#ffadb3}
.license-contact{margin:10px 0 4px;padding:9px 10px;border:1px solid #31516b;border-radius:9px;background:#0b1723;color:#b9cbd9;font-size:12px;line-height:1.55}
.license-contact a,.auth-contact a{color:#ffe16a;text-decoration:none;font-weight:850}
.license-contact a:hover,.license-contact a:focus-visible,.auth-contact a:hover,.auth-contact a:focus-visible{text-decoration:underline;outline:none}
.license-status-card .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-right:42px}
.license-status-card .dialog-head h2{margin-right:0}
.license-status-card .dialog-head p{margin-top:5px}
.license-status-summary{margin:14px 0;padding:14px;border:1px solid #287b62;border-radius:12px;background:rgba(7,39,34,.78);color:#c5d7e2}
.license-status-summary strong{display:block;margin-bottom:8px;color:#8ef0ce;font-size:16px;font-weight:900}
.license-status-summary p{margin:4px 0;color:#c6d7e2;font-size:13px;overflow-wrap:anywhere}
.license-status-summary.expiring,.license-status-summary.expired{border-color:#a24754;background:rgba(56,22,30,.76)}
.license-status-summary.expiring strong,.license-status-summary.expired strong{color:#ff929b}
.license-status-description{margin:8px 0 14px!important;color:#aebfce!important;font-size:12px!important;line-height:1.5}
.license-status-warning{margin:8px 0!important;color:#ff737e!important;font-size:13px!important;font-weight:900;line-height:1.5}
.license-status-contact{margin-top:14px;padding-top:12px;border-top:1px solid #26394d;color:#c0d0dd;font-size:12px;line-height:1.7}
.license-status-contact strong{color:#eff6fb}
.license-status-contact p{margin:4px 0 0!important;color:#c0d0dd!important;font-size:12px!important}
.license-status-contact a{color:#ffe16a;text-decoration:none;font-weight:850}
.license-status-contact a:hover,.license-status-contact a:focus-visible{text-decoration:underline;outline:none}
.license-status-actions{display:flex;justify-content:flex-end;margin-top:12px}
.license-status-actions .action-button{width:auto;min-height:36px;margin:0;padding:0 12px;font-size:11px}

@media(max-width:699px){
  .topbar::before{background:linear-gradient(180deg,rgba(9,17,27,.045),rgba(9,17,27,.024) 78%,rgba(9,17,27,.006));backdrop-filter:blur(1px) saturate(105%);-webkit-backdrop-filter:blur(1px) saturate(105%)}
  .top-actions .license-action{min-width:84px;height:31px;min-height:31px;padding:0 7px;font-size:10px}
  .top-actions .icon-button:not(.license-action){background:rgba(12,25,37,.11);backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}
  .settings-pills .pill-sporttery{min-height:36px;padding:7px 9px;font-size:10px}
}

.top-actions .theme-toggle{color:#ffe16a;font-size:18px;font-weight:850}
.top-actions .theme-toggle:hover,.top-actions .theme-toggle:focus-visible{border-color:rgba(255,225,106,.7);outline:2px solid rgba(255,225,106,.22);outline-offset:2px}

/* Optional OLED-style night mode: pure black canvas with readable charcoal cards. */
html[data-theme="night"]{color-scheme:dark;--bg:#000;--panel:#080808;--panel2:#101010;--line:#292929;--text:#f5f5f5;--muted:#a8a8a8;--shadow:0 12px 30px #0009}
html[data-theme="night"] body{background:#000;color:var(--text)}
html[data-theme="night"] .topbar::before{background:linear-gradient(180deg,rgba(0,0,0,.20),rgba(0,0,0,.14) 78%,rgba(0,0,0,.04))}
html[data-theme="night"] .summary-bar,
html[data-theme="night"] .workspace-toolbar,
html[data-theme="night"] .tabs,
html[data-theme="night"] .segmented,
html[data-theme="night"] .settings-pills .pill{background:#050505;border-color:#242424}
html[data-theme="night"] .match-card,
html[data-theme="night"] .bet-card,
html[data-theme="night"] .empty{background:linear-gradient(145deg,#101010,#050505);border-color:#292929}
html[data-theme="night"] .market-row,
html[data-theme="night"] .metric,
html[data-theme="night"] .outcome,
html[data-theme="night"] .filter-strip,
html[data-theme="night"] .license-contact,
html[data-theme="night"] .note{background:#080808;border-color:#292929}
html[data-theme="night"] .dialog{background:#090909;border-color:#303030}
html[data-theme="night"] .dialog::backdrop{background:#000d}
html[data-theme="night"] .field input{background:#030303;border-color:#333}
html[data-theme="night"] .sound-level-menu{background:#090909;border-color:#303030}
html[data-theme="night"] .top-actions .icon-button:not(.license-action){background:rgba(0,0,0,.35);border-color:rgba(220,220,220,.2)}
html[data-theme="night"] .top-actions .license-action{background:rgba(0,0,0,.24)}
html[data-theme="night"] .summary-status-row .summary-sporttery-nav{background:rgba(0,0,0,.25)}
html[data-theme="night"] .tab{color:#b8b8b8}
html[data-theme="night"] .tab.active{background:#15372e;border-color:#286b58;color:#a2f1d4}
html[data-theme="night"] .toolbar,
html[data-theme="night"] .market-name,
html[data-theme="night"] .teams,
html[data-theme="night"] .bet-teams{color:var(--text)}
@media(max-width:699px){html[data-theme="night"] .topbar::before{background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.04) 78%,transparent)}}

/* Compact, ordered client controls: feed status, P&L, then settings and sound. */
.summary-bar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:7px 12px}
.summary-status-row,.summary-metrics-row,.summary-controls-row{display:flex;align-items:center;gap:7px;min-width:0}
.summary-status-row{flex-wrap:wrap;line-height:1.3}
.summary-status-row #updatedAt{white-space:nowrap}
.summary-status-row .summary-sporttery-nav{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 9px;border:1px solid rgba(83,160,139,.24);border-radius:8px;background:rgba(12,34,31,.1);color:#a9f3d6;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}
.summary-metrics-row{flex-wrap:wrap;gap:4px 8px;font-size:12px;line-height:1.3}
.summary-metrics-row #activeRecordCount,.summary-metrics-row #todayPnl,.summary-metrics-row #totalPnl{white-space:nowrap}
.summary-controls-row{justify-content:space-between;gap:8px}
.summary-controls-row .settings-pills{flex:1 1 auto;flex-wrap:nowrap;gap:6px;min-width:0;margin:0}
.summary-controls-row .pill{min-height:32px;padding:6px 8px;font-size:11px;white-space:nowrap}
.summary-controls-row .notify-control{flex:0 0 auto;margin:0}
.summary-controls-row .notify-button{min-height:32px;margin:0;padding:6px 8px;font-size:11px}
.workspace-toolbar .toolbar-options{align-items:center}
.sort-controls{flex:0 0 auto;flex-wrap:nowrap;gap:4px}
.sort-controls button{flex:0 0 auto;white-space:nowrap}
.risk-warning{margin:5px 3px 12px;color:#efc876;font-size:13px;font-weight:850;line-height:1.5;text-align:center}
@media(min-width:1100px){
  .summary-bar{grid-template-columns:minmax(360px,1fr) auto auto;gap:8px 16px}
  .summary-status-row{flex-wrap:nowrap}
  .summary-controls-row{justify-content:flex-end}
}
@media(max-width:699px){
  .summary-bar{gap:6px 8px}
  .summary-status-row,.summary-metrics-row{gap:4px 7px}
  .summary-status-row #updatedAt{font-size:10px}
  .summary-status-row .summary-sporttery-nav{min-height:29px;padding-inline:8px;font-size:10px}
  .summary-metrics-row{font-size:10px;gap:3px 7px}
  .summary-controls-row{gap:6px}
  .summary-controls-row .settings-pills{gap:5px}
  .summary-controls-row .pill{min-height:30px;padding:5px 7px;font-size:10px}
  .summary-controls-row .notify-button{min-height:30px;padding:5px 7px;font-size:10px}
  .sort-controls button{min-width:104px}
}

/* Keep match navigation on the first row and personal records on the next. */
.tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:0;border:0;background:transparent;backdrop-filter:none}
.tab-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-width:0;padding:5px;border:1px solid #26394e;border-radius:13px;background:rgba(11,21,34,.72)}
.tab-group-primary{border-color:#3d604e;background:rgba(14,31,27,.78)}
.tab-group-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}
.tab-group .tab{min-height:48px;flex-direction:row;gap:5px;padding:7px 5px;border:1px solid transparent;border-radius:9px;font-size:12px;white-space:nowrap}
.tab-group-secondary .tab{gap:3px;padding-inline:2px;font-size:11px}
.tab-group .tab b{font-size:11px;color:#d5e4ef}
.tab-group .tab.active{background:#174236;border-color:#286b58;color:#a2f1d4}
.tab-group .tab.active b{color:#fff}
.toolbar-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:6px;width:100%}
.toolbar-options>.segmented{display:contents}
.toolbar-options>.segmented button{min-width:0;min-height:38px;padding:6px 4px;border:1px solid #2a3e52;border-radius:8px;background:#101c2a;color:#aebfd0;font-size:10px;line-height:1.2;white-space:nowrap}
.toolbar-options>.segmented button.active{border-color:#337d66;background:#15352e;color:#91e8c9}
#liveVisibilityControls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1;gap:5px}
#liveVisibilityControls[hidden]{display:none}
#liveVisibilityControls[hidden],.sort-controls[hidden]{display:none}
#liveVisibilityControls button{white-space:normal!important;min-width:0;min-height:38px;padding:5px 3px!important;font-size:10px!important;line-height:1.15}
#liveVisibilityControls #hideUnbetLiveButton{border-color:#a22f3d;background:#421a23;color:#ff9da7;box-shadow:inset 0 0 0 1px rgba(255,120,140,.08)}
.unbet-notice-message{margin:16px 0!important;padding:14px 10px;border:1px solid #a22f3d;border-radius:10px;background:#421a23;color:#ff9da7!important;text-align:center;font-size:14px!important;font-weight:900;line-height:1.6}
.empty{min-height:88px;padding:22px 16px;border-color:#41566c;background:linear-gradient(145deg,#121e2d,#101a27);color:#e0e9f2;font-size:14px;font-weight:800;line-height:1.6;letter-spacing:.1px;box-shadow:inset 0 0 22px rgba(90,125,160,.07)}
.notify-control{gap:6px}
.summary-controls-row .yesterday-button{min-height:32px;padding:6px 9px;border:1px solid #8d7132;border-radius:8px;background:linear-gradient(135deg,#3a301a,#292313);color:#ffe28a;font-size:11px;font-weight:900;white-space:nowrap}
.yesterday-button .yesterday-pnl-value{margin-left:3px;color:#ffe28a;font-size:inherit;font-weight:950;font-variant-numeric:tabular-nums}
.yesterday-button .yesterday-pnl-value.pnl-positive{color:#ff737b}.yesterday-button .yesterday-pnl-value.pnl-negative{color:#58d4a1}
.yesterday-dialog{width:min(720px,calc(100% - 18px))}
.yesterday-card{max-height:calc(100dvh - 24px);overflow:auto}
.yesterday-card .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-right:0}
.yesterday-card .yesterday-dialog-head .close-button{position:relative;inset:auto;z-index:3;flex:0 0 44px;width:44px;height:44px;margin:-2px -2px 0 0;pointer-events:auto;touch-action:manipulation}
.yesterday-card .yesterday-dialog-head .close-button:active{background:#2b4053;transform:scale(.96)}
.yesterday-card .dialog-head h2{margin:0}
.yesterday-card .dialog-head p{margin:5px 0 12px}
.yesterday-pnl-total{padding:12px;border:1px solid #806a36;border-radius:10px;background:#302815;color:#ffe28a;font-size:16px;font-weight:950;text-align:center}
.yesterday-groups{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
.yesterday-group{min-height:42px;border:1px solid #31465a;border-radius:9px;background:#101c29;color:#b9c9d7;font-size:13px;font-weight:850}
.yesterday-group.active{border-color:#c2a14d;background:#443719;color:#ffe28a}
.yesterday-group b{margin-left:5px;font-size:12px}
.yesterday-history-list{display:grid;gap:8px}
.history-record{padding:12px;border:1px solid #2d4358;border-radius:11px;background:linear-gradient(145deg,#111e2d,#0c1723)}
.history-record>header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding-bottom:9px;border-bottom:1px solid #283b4e}
.history-record>header strong{display:block;font-size:14px;font-weight:900;color:#e8f1f8}
.history-record>header small{display:block;margin-top:4px;font-size:10px;color:#91a6ba}
.history-score{padding:4px 7px;border-radius:7px;background:#17352e;color:#9befd0;font-size:12px;font-weight:900;white-space:nowrap}
.history-hedge,.history-best,.history-events,.history-reason,.history-result{display:flex;flex-wrap:wrap;gap:4px 8px;padding:8px 0;border-bottom:1px solid #223548;color:#cfdae4;font-size:11px;line-height:1.55}
.history-hedge{display:grid}
.history-hedge b,.history-events b,.history-reason b{color:#e6c76a;font-size:11px}
.history-best{color:#9ee7cb;font-weight:750}
.history-reason{display:grid}
.history-reason.possible-human{padding:9px;border:1px solid #80515a;border-radius:8px;background:#301b22;color:#ffb3b8}
.history-events span{color:#b8c9d8}
.history-result{font-weight:900;border-bottom:0}
.yesterday-pending-note{margin:10px 0 0;padding:9px;border:1px solid #6e5a32;border-radius:8px;background:#282115;color:#efd28a;font-size:11px;line-height:1.5}
@media(max-width:699px){.summary-controls-row .notify-control{gap:5px}.summary-controls-row .yesterday-button{min-height:30px;padding:5px 7px;font-size:10px}.yesterday-card{padding:18px 13px 14px}.history-record{padding:10px}.history-record>header strong{font-size:13px}}
.summary-controls-row{min-width:0}
.summary-bar{grid-template-columns:minmax(0,1fr);}
.summary-metrics-row{display:none!important}
@media(max-width:380px){
  .tabs{gap:5px}
  .tab-group{gap:3px;padding:3px}
  .tab-group .tab{font-size:10px;gap:3px;padding-inline:2px}
  .tab-group .tab b{font-size:10px}
  .tab-group-secondary .tab{font-size:9px;gap:2px}
  .tab-group-secondary .tab b{font-size:8px}
  .toolbar-options{gap:4px}
  .toolbar-options>.segmented button{font-size:9px;padding-inline:2px}
}
@media(max-width:360px){
  .summary-bar{gap:5px;padding:7px}
  .summary-status-row,.summary-metrics-row{gap:4px}
  .summary-status-row #updatedAt{font-size:9px}
  .summary-status-row .summary-sporttery-nav{padding-inline:6px;font-size:9px}
  .summary-controls-row{gap:4px}
  .summary-controls-row .settings-pills{gap:3px}
  .summary-controls-row .pill,.summary-controls-row .notify-button{padding-inline:5px;font-size:9px}
}
@media(min-width:700px){
  .tab-group .tab{font-size:13px}
  .tab-group-secondary .tab{font-size:12px}
  .tab-group .tab b{font-size:12px}
  .summary-status-row .connection{font-size:14px}
  .summary-status-row .summary-sporttery-nav{font-size:12px}
  .summary-controls-row .pill,.summary-controls-row .notify-button,.summary-controls-row .yesterday-button{font-size:12px}
  .top-actions .install-button,.top-actions .license-action{font-size:12px}
  .toolbar-options>.segmented button{font-size:11px}
  #liveVisibilityControls button{font-size:11px!important}
}
.target-profit-banner{margin:9px 0;padding:12px;border:1px solid #b95f32;border-radius:11px;background:linear-gradient(120deg,#55251a,#382017);color:#ffe0c2;box-shadow:0 0 24px #ff873322;animation:pulse 1.1s infinite alternate}
.target-profit-title{margin-bottom:7px;font-weight:950}
.target-profit-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #ffbc7050}
.target-profit-item>div{min-width:0;display:grid;gap:3px}
.target-profit-details{font-size:11px;line-height:1.45;color:#ffd6b2}
.target-profit-item-actions{display:flex;flex:none;gap:6px}
.target-profit-item button{flex:none;min-height:36px;border:1px solid #ffbf7a;border-radius:8px;background:#69381f;color:#ffe4c7;font-size:11px;font-weight:850;padding:6px 9px}
.target-profit-item button.target-profit-hedge{border-color:#72cba6;background:#174837;color:#d9fff0}
@media(max-width:520px){.target-profit-item{align-items:stretch;flex-direction:column;gap:6px}.target-profit-item-actions{flex-direction:column}.target-profit-item button{width:100%}}

.usage-guide-dialog{width:min(700px,calc(100% - 18px));max-height:calc(100dvh - 20px)}
.usage-guide-card{max-height:calc(100dvh - 22px);overflow:auto;overscroll-behavior:contain;padding:20px 18px 16px}
.usage-guide-intro{margin:0 0 12px!important;padding:10px 11px;border:1px solid #31465a;border-radius:9px;background:#0b1723;color:#c8d7e4!important;font-size:12px!important;line-height:1.6}
.usage-guide-section{margin:9px 0;padding:11px 12px;border:1px solid #263b51;border-radius:10px;background:rgba(9,19,30,.65)}
.usage-guide-section h3{margin:0 28px 6px 0;color:#e6c76a;font-size:13px;line-height:1.45}
.usage-guide-section p,.usage-guide-section li{color:#c5d2df;font-size:12px;line-height:1.65}
.usage-guide-section p{margin:5px 0 0}
.usage-guide-section ol,.usage-guide-section ul{margin:5px 0 0;padding-left:20px}
.usage-guide-section li+li{margin-top:3px}
.usage-guide-section .usage-guide-example{margin-top:8px;padding:8px 9px;border-left:3px solid #8e793f;background:#171a1c;color:#d7e0e7}
.usage-guide-footnote{margin:11px 2px 0!important;color:#9aabba!important;font-size:11px!important;line-height:1.55}
.usage-guide-pill{flex:0 0 auto;color:#9ee8cc!important;border-color:#2c7059!important}
@media(max-width:699px){.summary-controls-row .settings-pills{flex-wrap:wrap}.usage-guide-card{padding:17px 13px 14px}.usage-guide-section{padding:10px}.usage-guide-section h3{font-size:12px}.usage-guide-section p,.usage-guide-section li{font-size:11px}}

.coexisting-filter{display:flex;align-items:center;gap:10px;flex:1 1 100%;width:100%;flex-wrap:wrap;margin:4px 0 2px;padding:7px 9px;border:1px solid #27463e;border-radius:10px;background:linear-gradient(115deg,rgba(15,48,41,.72),rgba(13,25,37,.76))}
.coexisting-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto;min-width:0}
.coexisting-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:6px 9px;border:1px solid #327c66;border-radius:9px;background:#102b29;color:#a7edd3;font-size:11px;font-weight:900;white-space:nowrap}
.coexisting-button b{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#1b473b;color:#f0fff8;font-size:12px;font-variant-numeric:tabular-nums}
.coexisting-button.has-matches{border-color:#43a783;box-shadow:0 0 15px rgba(51,203,151,.1)}
.coexisting-button.active{background:linear-gradient(120deg,#1b604c,#174238);border-color:#62d3a8;color:#e0fff2;box-shadow:inset 0 0 0 1px rgba(154,255,212,.12)}
.all-matches-button{border-color:#806643;background:#2a241a;color:#efd4a0}
.all-matches-button.active{background:linear-gradient(120deg,#614a28,#46371f);border-color:#d6b36a;color:#fff0c9;box-shadow:inset 0 0 0 1px rgba(255,225,161,.12)}
.coexisting-button:disabled{opacity:.48;cursor:not-allowed}
.restore-all-matches{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin-top:10px;padding:6px 12px;border:1px solid #527660;border-radius:8px;background:#20342b;color:#d8eddc;font-size:12px;font-weight:850}
.unmatched-filter-button{border-color:#8a6740;background:#30271c;color:#e8c98e}
.unmatched-filter-button b{background:#594126;color:#ffe8b9}
.unmatched-filter-button.active{background:#4a351e;border-color:#e3b969;color:#ffebbf}
.sporttery-upcoming-count{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:5px 10px;border:1px solid rgba(246,204,114,.42);border-radius:8px;background:rgba(93,67,22,.24);color:#f2d58f;font-size:12px;font-weight:850;white-space:nowrap}
.sporttery-upcoming-count b{color:#ffe7a9;font-size:16px;font-variant-numeric:tabular-nums}
.coexisting-status{min-width:0;color:#9aafc2;font-size:10px;line-height:1.5}
.coexisting-status.stale{color:#e9c777}
.match-head-badges{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.coexisting-card-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border:1px solid #367760;border-radius:999px;background:#12352d;color:#9be8c8;font-size:9px;font-weight:850;white-space:nowrap}
.manual-match-badge{border-color:#93733e;background:#342d1e;color:#f0d28f}
.sporttery-match-panel{margin-top:9px;padding:10px;border:1px solid rgba(72,143,119,.42);border-radius:10px;background:linear-gradient(135deg,rgba(14,43,37,.76),rgba(10,24,33,.88))}
.sporttery-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#a4efd2;font-size:12px}
.sporttery-panel-head{list-style:none;cursor:pointer}
.sporttery-panel-head::-webkit-details-marker{display:none}
.sporttery-panel-head strong{font-size:13px;font-weight:900}
.sporttery-panel-head span,.sporttery-panel-meta{color:#8ca99f;font-size:9px;line-height:1.45}
.sporttery-panel-meta{margin:3px 0 8px;color:#8298a9}
.unmatched-sporttery-card{min-width:0;padding:12px;border:1px solid rgba(173,132,64,.46);border-radius:10px;background:linear-gradient(140deg,rgba(49,39,25,.78),rgba(18,25,29,.9));color:#d8e1e3}
.unmatched-sporttery-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#c7b48b;font-size:10px;font-weight:800}
.unmatched-sporttery-badge{padding:3px 7px;border:1px solid rgba(213,164,82,.5);border-radius:999px;color:#f0cf88;white-space:nowrap}
.unmatched-sporttery-teams{display:block;margin-top:8px;color:#f0f4f3;font-size:16px;font-weight:900;line-height:1.35}
.unmatched-sporttery-teams span{color:#a0aaa9;font-size:11px;font-weight:700}
.unmatched-sporttery-detail{margin-top:5px;color:#a9b7bd;font-size:11px;line-height:1.5}
.unmatched-sporttery-card p{margin:8px 0 0;color:#d6bd88;font-size:10px;line-height:1.5}
.league-time-candidates{display:grid;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid rgba(213,164,82,.2)}
.league-time-candidates>header{display:flex;align-items:center;gap:6px;color:#f0d28f;font-size:11px;font-weight:900}
.league-time-candidates>header b{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#594126;color:#ffe8b9;font-size:10px}
.league-time-candidates>p,.league-time-no-candidate{margin:0!important;color:#9eabb0!important;font-size:10px!important;line-height:1.5}
.league-time-candidate{display:grid;gap:5px;padding:9px;border:1px solid rgba(128,145,133,.24);border-radius:8px;background:rgba(6,17,21,.48)}
.league-time-candidate-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#a4b3b5;font-size:9px;line-height:1.4}
.league-time-candidate-meta b{flex:none;color:#e3cb91;font-weight:850}
.league-time-candidate>strong{color:#e6efec;font-size:13px;line-height:1.35}
.league-time-candidate>strong i{color:#83948f;font-size:10px;font-style:normal}
.league-team-hint{justify-self:start;padding:2px 6px;border:1px solid rgba(143,164,154,.26);border-radius:999px;color:#aab9b7;font-size:9px;line-height:1.35}
.league-time-candidate button,.manual-sporttery-match button{justify-self:start;min-height:32px;padding:6px 9px;border:1px solid #98753e;border-radius:7px;background:#3a301e;color:#f1d696;font-size:10px;font-weight:850}
.manual-pair-picker{display:grid;gap:7px;margin-top:10px;padding:10px;border:1px solid rgba(213,164,82,.25);border-radius:8px;background:rgba(6,17,21,.38)}
.manual-pair-picker>header{color:#f0d28f;font-size:11px;font-weight:900}
.manual-pair-picker>p{margin:0!important;color:#aab8b8!important;font-size:10px!important;line-height:1.5}
.manual-pair-select-label{display:grid;gap:5px;color:#c8d1d1;font-size:10px;font-weight:750}
.manual-pair-select-label select{width:100%;min-width:0;min-height:38px;padding:7px 9px;border:1px solid rgba(169,141,86,.55);border-radius:7px;background:#151c1d;color:#e7ece8;font:inherit;line-height:1.4}
.manual-pair-select-label select:focus{outline:2px solid rgba(220,176,94,.55);outline-offset:1px}
.manual-pair-select-label select:disabled{opacity:.65}
.manual-pair-picker .manual-pair-confirm{justify-self:start;min-height:34px;padding:7px 11px;border:1px solid #98753e;border-radius:7px;background:#3a301e;color:#f1d696;font-size:10px;font-weight:850}
.manual-pair-picker .manual-pair-confirm:disabled{opacity:.55}
.manual-pair-storage-note{display:block;margin-top:8px;color:#798b91;font-size:9px;line-height:1.4}
.manual-sporttery-match{display:grid;gap:5px;margin:8px 0;padding:9px;border:1px solid rgba(165,130,68,.34);border-radius:8px;background:rgba(46,38,23,.32)}
.manual-sporttery-match>strong{color:#f0d28f;font-size:10px;font-weight:900}
.manual-sporttery-match>span{color:#b9c3c3;font-size:10px;line-height:1.4}
.automatic-sporttery-match{display:grid;gap:4px;margin:7px 0;padding:8px 9px;border:1px solid rgba(64,139,117,.28);border-radius:8px;background:rgba(20,57,47,.22)}
.automatic-sporttery-match>strong{color:#a5dbc7;font-size:10px;font-weight:900}
.automatic-sporttery-match>span{color:#aebdb9;font-size:10px;line-height:1.4}
.manual-sporttery-match button{min-height:28px;padding:4px 8px;border-color:#765f3c;background:rgba(47,39,27,.7);color:#dfc68f;font-size:9px}
.sporttery-market-group{padding-top:7px;margin-top:7px;border-top:1px solid rgba(90,130,119,.22)}
.sporttery-market-group>strong{display:block;margin-bottom:5px;color:#b5c8d3;font-size:10px;font-weight:850}
.sporttery-odds-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.sporttery-odd-chip{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:4px 7px;border:1px solid rgba(72,115,104,.4);border-radius:7px;background:rgba(7,18,24,.48);color:#b9cbd5;font-size:10px;white-space:nowrap}
.sporttery-odd-chip b{color:#d9f4e8;font-size:11px;font-variant-numeric:tabular-nums}
.sporttery-extra-markets{margin-top:8px;border-top:1px solid rgba(90,130,119,.22);color:#a9c4b9}
.sporttery-extra-markets>summary{padding:8px 1px 2px;cursor:pointer;font-size:10px;font-weight:800}
.sporttery-score-market .sporttery-odds-chips{max-height:120px;overflow:auto;padding-right:3px}
.strategy-comparison{margin-top:8px;border:1px solid rgba(243,197,112,.34);border-radius:9px;background:rgba(12,23,28,.68);color:#d9e6e9}
.strategy-comparison>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;color:#f2d38c;font-size:11px;font-weight:900}
.strategy-comparison>header span{color:#c5d8dc;font-size:10px;white-space:nowrap}
.strategy-comparison>*:not(header){margin-left:9px;margin-right:9px}
.strategy-opening{display:flex;justify-content:space-between;gap:8px;padding:7px 0 6px;border-top:1px solid rgba(90,130,119,.2);color:#b7d4cb;font-size:10px;font-weight:800}
.strategy-allocations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:3px 0 8px}
.strategy-allocation{display:grid;gap:2px;padding:5px 4px;border:1px solid rgba(72,115,104,.32);border-radius:6px;background:rgba(7,18,24,.44);text-align:center;color:#a9bfcb;font-size:9px}
.strategy-allocation b{color:#e2f0e8;font-size:10px;font-variant-numeric:tabular-nums}
.strategy-allocation small{color:#9fcab9;font-size:8px}
.strategy-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.strategy-result{min-width:0;padding:7px;border:1px solid rgba(73,111,104,.34);border-radius:7px;background:rgba(8,17,23,.5)}
.strategy-result header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;font-size:10px}
.strategy-result header strong{color:#cadbdc;font-weight:850}
.strategy-result header span{flex:none;font-size:10px;font-weight:900;font-variant-numeric:tabular-nums}
.strategy-result>p{margin:5px 0 0;color:#9fb3be;font-size:9px;line-height:1.45}
.strategy-result>p.strategy-target{color:#f2d38c;font-weight:800}
.strategy-preferred{margin:7px 0 0;color:#a7e2c9;font-size:10px;font-weight:850}
.strategy-disclaimer{margin-top:5px!important;margin-bottom:9px!important;color:#7f929b;font-size:8px;line-height:1.5}
html[data-theme="night"] .coexisting-filter{background:rgba(8,18,17,.76)}
html[data-theme="night"] .sporttery-match-panel{background:linear-gradient(135deg,rgba(8,24,20,.86),rgba(7,14,19,.94))}
@media(max-width:520px){
  .coexisting-filter{align-items:flex-start;gap:6px;padding:7px}
  .coexisting-actions{display:grid;width:100%;max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .coexisting-button{width:100%;min-width:0;min-height:36px;padding:5px 4px;gap:3px;font-size:9px}
  .sporttery-upcoming-count{justify-content:center;width:100%;min-height:36px}
  .coexisting-status{flex:1 0 100%;text-align:left;font-size:9px}
  .unmatched-sporttery-teams{font-size:15px}
  .league-time-candidate-meta{flex-direction:column;gap:2px}
  .league-time-candidate button{width:100%;justify-self:stretch}
  .sporttery-match-panel{padding:8px}
  .sporttery-panel-head{align-items:flex-start;flex-direction:column;gap:1px}
  .sporttery-odds-chips{gap:4px}
  .sporttery-odd-chip{min-height:25px;padding:4px 6px}
  .strategy-results{grid-template-columns:1fr}
  .strategy-result header{font-size:10px}
}

/* My Bets shows all four equal-width controls without horizontal scrolling. */
.toolbar-options.my-bets-view>.sort-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-column:1/-1;width:100%;min-width:0;gap:4px;overflow:visible;scrollbar-width:none}
.toolbar-options.my-bets-view>.sort-controls button{flex:none;width:100%;min-width:0;max-width:100%;padding:6px 1px;font-size:clamp(8px,2.5vw,9px);letter-spacing:-.2px;line-height:1.15;text-align:center;white-space:nowrap}
.toolbar-options>.sort-controls button.simulation-toggle{border-color:#6b5933;background:#272317;color:#e5ca86}
.toolbar-options>.sort-controls button.simulation-toggle.active{border-color:#a67e2f;background:#493716;color:#ffe49a;box-shadow:inset 0 0 0 1px rgba(255,216,132,.08)}
.simulation-mode-hint{flex:1 1 100%;padding:8px 10px;border:1px solid #80652f;border-radius:8px;background:rgba(49,38,17,.62);color:#efd48e;font-size:11px;font-weight:750;line-height:1.45}
.simulation-dialog{width:min(100% - 22px,480px)}
.simulation-dialog-card .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-right:0}
.simulation-dialog-card .dialog-head h2{margin:0}
.simulation-dialog-card .dialog-head p{margin:5px 0 0}
.simulation-dialog-card .close-button{position:relative;inset:auto;z-index:1;flex:0 0 42px;width:42px;height:42px;margin:-2px -2px 0 0;touch-action:manipulation}
.simulation-dialog-summary{margin:16px 0 12px;padding:14px;border:1px solid #287b62;border-radius:12px;background:rgba(7,39,34,.78);color:#c5d7e2}
.simulation-dialog-summary strong{display:block;margin-bottom:7px;color:#8ef0ce;font-size:15px;font-weight:900}
.simulation-dialog-summary p{margin:0!important;color:#c6d7e2!important;font-size:12px!important;line-height:1.55}
.simulation-dialog-details{display:grid;gap:7px}
.simulation-dialog-details p{display:flex;align-items:baseline;gap:8px;margin:0!important;padding:9px 10px;border:1px solid #26394d;border-radius:9px;background:rgba(9,19,29,.68);font-size:12px!important;line-height:1.45}
.simulation-dialog-details b{flex:0 0 72px;color:#e8d08e;font-size:12px}
.simulation-dialog-details span{color:#bac9d7}
.simulation-dialog-card .simulation-dialog-note{margin:12px 0 0!important;color:#91a4b5!important;font-size:11px!important;line-height:1.5}
.simulation-dialog-actions{display:grid;grid-template-columns:1fr 1.12fr;gap:9px;margin-top:15px}
.simulation-dialog-actions .action-button,.simulation-dialog-actions .primary-button{width:100%;min-width:0;min-height:42px;margin:0;padding:7px 8px;font-size:12px}
@media(max-width:360px){.simulation-dialog-card{padding-inline:14px}.simulation-dialog-details b{flex-basis:64px}.simulation-dialog-actions{gap:7px}}
.simulation-dialog-card{max-height:calc(100dvh - 42px);overflow-y:auto;overscroll-behavior:contain}
.recommendation-simulation-confirm-card{padding:22px 19px 18px}
.recommendation-simulation-confirm-card h2{margin-right:38px;font-size:20px}
.recommendation-simulation-confirm-text{margin:12px 0 14px!important;padding:13px 14px;border:1px solid #2c465d;border-radius:11px;background:#0b1723;color:#c6d5e2!important;font-size:13px!important;line-height:1.65}
.recommendation-simulation-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.recommendation-simulation-confirm-actions .action-button,.recommendation-simulation-confirm-actions .primary-button{width:100%;min-width:0;min-height:44px;margin:0;padding:8px;font-size:13px}
@media(max-width:390px){.recommendation-simulation-confirm-card{padding:19px 15px 15px}.recommendation-simulation-confirm-text{font-size:12px!important}.recommendation-simulation-confirm-actions{gap:7px}}
.storage-cleanup-panel{margin-top:13px;padding:10px;border:1px solid #263b51;border-radius:10px;background:#0b1723}
.storage-cleanup-panel .action-button{margin:0;min-height:40px}
.storage-cleanup-panel small{margin-top:8px;text-align:left;line-height:1.5}
.storage-cleanup-status{min-height:0;margin-top:5px;color:#8ce8c8;font-size:11px;line-height:1.45}
.storage-cleanup-status.error{color:#ffaaaa!important}
.cache-recovery-button{margin:0 0 8px;width:100%;min-height:40px}
.simulation-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:4px}
.simulation-config-field{display:block;min-width:0;margin:8px 0}
.simulation-config-field>span{display:block;margin:0 0 5px;color:#b8c8d7;font-size:11px;font-weight:800;line-height:1.35}
.simulation-config-field input{width:100%;height:42px;border:1px solid #34495e;border-radius:9px;background:#09131e;color:#fff;padding:0 10px;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;outline:none}
.simulation-config-field input:focus{border-color:#49d6aa;box-shadow:0 0 0 2px #49d6aa22}
.simulation-config-field input:disabled{opacity:.5}
.simulation-config-caption{margin:1px 0 10px!important;color:#93a7ba!important;font-size:10px!important;line-height:1.45}
.simulation-config-option{display:flex;align-items:flex-start;gap:9px;margin:8px 0;padding:10px;border:1px solid #2b4054;border-radius:9px;background:#0b1723;cursor:pointer}
.simulation-config-option>input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;accent-color:#49d6aa}
.simulation-config-option>span{display:grid;gap:3px;min-width:0}
.simulation-config-option b{color:#dce8f1;font-size:11px;line-height:1.4}
.simulation-config-option small{color:#91a5b8;font-size:10px;line-height:1.4}
.simulation-live-target{margin:4px 0 8px 27px}
.simulation-mode-hint{line-height:1.55}
.simulation-dialog-actions{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr)}
.simulation-dialog-actions .primary-button{line-height:1.25;white-space:normal}
@media(max-width:390px){.simulation-dialog{max-height:calc(100dvh - 18px)}.simulation-dialog-card{padding:16px 13px 14px}.simulation-config-grid{gap:6px}.simulation-config-field>span{font-size:10px}.simulation-config-field input{height:39px;font-size:14px}.simulation-config-option{gap:7px;padding:8px}.simulation-dialog-actions .action-button,.simulation-dialog-actions .primary-button{font-size:11px;min-height:44px}}

.customer-recommendation-simulation-note{margin-top:8px!important;color:#a9ada5!important;font-size:10px!important;line-height:1.5!important}
.customer-recommendation-simulation-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:9px;padding:7px 8px;border:1px solid #36372f;border-radius:7px;background:rgba(10,14,13,.42)}
.customer-recommendation-simulation-label{margin-right:auto;color:#c4c4b8;font-size:11px;font-weight:800}
.customer-recommendation-simulation-button{min-height:34px;padding:6px 12px;border:1px solid #6a5740;border-radius:6px;background:#2a241c;color:#e1c99a;font-size:11px;font-weight:800;cursor:pointer}
.customer-recommendation-simulation-button:hover,.customer-recommendation-simulation-button:focus-visible{border-color:#a78a5d;background:#342a1e;color:#f1d9a7;outline:none}
.customer-recommendation-simulation-button.active{border-color:#6a8c67;background:#202b20;color:#b9d5aa}
.customer-recommendation-simulation-button:disabled{opacity:.68;cursor:default}
.customer-recommendation-register-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px}
.customer-recommendation-register-actions>small{color:#9a9f9f;font-size:10px;line-height:1.45}
.customer-recommendation-register-button{min-width:108px;min-height:38px;padding:7px 14px;border:1px solid #7d3439;border-radius:7px;background:linear-gradient(135deg,#4c1e24,#34171d);color:#ffb1b4;font-size:12px;font-weight:900;cursor:pointer}
.customer-recommendation-register-button.force{border-color:#8e3c43;background:linear-gradient(135deg,#572128,#3c171d);color:#ffb8bb}
.customer-recommendation-register-button.eligible{border-color:#2c795a;background:linear-gradient(135deg,#174d39,#12382d);color:#a8f0cc}
.customer-recommendation-register-button:disabled{border-color:#41473f;background:#242923;color:#9a9d94;opacity:.8;cursor:default}
.recommendation-simulation-record{border-color:#514633!important}
@media(max-width:480px){.customer-recommendation-simulation-actions{margin-top:7px}.customer-recommendation-simulation-button{min-height:36px;padding-inline:14px;font-size:12px}}
.market-row.handicap-market{grid-template-columns:minmax(92px,1.15fr) repeat(2,minmax(0,1fr));border-color:#34506a;background:#0d1b29}
.handicap-market .market-name{color:#c7def0}
.record-handicap-markets{margin-top:12px}
.record-handicap-markets h3{margin:0 0 8px;font-size:12px;color:#c7def0}
@media(max-width:480px){.market-row.handicap-market{grid-template-columns:minmax(82px,1fr) repeat(2,minmax(0,1fr));gap:5px;padding:8px 6px}.handicap-market .quote label{font-size:9px}}
.early-caution{color:#ff737b;font-weight:950}
.handicap-register-button{display:block;width:100%;min-height:32px;margin-top:6px;padding:5px 4px;border:1px solid #326f60;border-radius:7px;background:#12312b;color:#92eacb;font-size:10px;font-weight:850;line-height:1.2;white-space:normal}
.field select{width:100%;height:44px;border:1px solid #34495e;border-radius:9px;background:#09131e;color:#fff;padding:0 11px;font-size:15px;outline:none}
.field select:focus{border-color:#49d6aa;box-shadow:0 0 0 2px #49d6aa22}
.filter-feedback{margin:0 0 7px;padding:7px 9px;border:1px solid #6a5630;border-radius:8px;background:#251f14;color:#f0d69a;font-size:11px;line-height:1.45}
.handicap-register-button:disabled{border-color:#35495a;background:#172433;color:#8297a9}
.handicap-bets-heading{margin:18px 0 8px;padding-top:13px;border-top:1px solid #293c50;color:#c9d9e6;font-size:13px;font-weight:900}
.handicap-bet-card{border-color:#37526c}
.handicap-bet-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:var(--muted)}
.handicap-bet-title{margin:7px 0 4px;font-size:15px;font-weight:900}
.handicap-bet-meta{color:#8fa7bb;font-size:10px}
.handicap-position{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:10px;padding:9px 10px;border:1px solid #263b51;border-radius:9px;background:#0a1420;font-size:11px}
.handicap-position b{color:#eef5fb}
.handicap-opportunity{margin-top:9px;padding:10px;border:1px solid #3a4c60;border-radius:9px;background:#0a1420;color:#b7c8d7;font-size:11px;line-height:1.5}
.handicap-opportunity.safe{border-color:#28795f;background:#0d2a24;color:#bdf4dc}
.handicap-opportunity strong{display:block;margin-bottom:3px;color:#f1d38a;font-size:12px}
.handicap-opportunity.safe strong{color:#84edc5}
.handicap-bet-actions{display:flex;justify-content:flex-end;margin-top:8px}
.handicap-bet-actions button{min-height:34px;padding:6px 11px;border:1px solid #69434a;border-radius:8px;background:#312027;color:#e6b8bf;font-size:10px;font-weight:800}
@media(max-width:480px){.handicap-register-button{font-size:9px;padding-inline:2px}.handicap-opportunity{font-size:10px}}

.status-pill.advisory{color:#f0cf91;border-color:#746044;background:#332719}
.goal-reminder-panel{margin:10px 0;padding:10px;border:1px solid #69523a;border-radius:9px;background:linear-gradient(140deg,#211c17,#151b1d);color:#dfd8c9;font-size:11px;line-height:1.5}
.goal-reminder-panel.active{border:2px solid #bf7650;background:linear-gradient(140deg,#3a2118,#1c2021);box-shadow:0 0 20px #cf683633}.goal-reminder-panel.active .goal-reminder-heading b{color:#ffd18a}.goal-reminder-panel.active p{color:#fff0d7;font-size:12px;font-weight:750}
.goal-reminder-panel.registered{border-color:#426a59;background:linear-gradient(140deg,#13251f,#121d22)}
.goal-reminder-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#f0d392;font-size:12px;font-weight:850}
.goal-reminder-heading span{color:#c3b9a5;font-size:10px;font-variant-numeric:tabular-nums;text-align:right}
.goal-reminder-panel p{margin:6px 0;color:#d3d0c5}
.goal-reminder-panel small{display:block;margin-top:6px;color:#9eabb0;font-size:9px;line-height:1.45}
.goal-reminder-entry{width:100%;min-height:36px;margin-top:4px;border:1px solid #8c6344;border-radius:8px;background:#372619;color:#f2d4a1;font-size:11px;font-weight:850}
.goal-reminder-panel.registered .goal-reminder-heading{color:#a6e2c7}
.goal-reminder-panel.hedged{border-color:#5d9679;background:linear-gradient(140deg,#17352a,#121d22)}
.goal-reminder-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.goal-reminder-action{flex:1 1 180px;min-height:38px;padding:7px 10px;border:1px solid #4e8f73;border-radius:8px;background:#173d30;color:#d6ffed;font-size:11px;font-weight:850}
.goal-reminder-action.dismiss{border-color:#8e664e;background:#38271e;color:#f5d8bf}
@media(max-width:480px){.goal-reminder-panel{padding:9px;font-size:10px}.goal-reminder-heading{align-items:flex-start;flex-direction:column;gap:2px}.goal-reminder-heading span{text-align:left}.goal-reminder-entry{min-height:39px}}
.recommendation-ignore-row{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:0 0 8px;padding:0 1px}.recommendation-ignore-row small{color:#8d9ba6;font-size:10px}.recommendation-ignore-button{min-height:32px;padding:5px 11px;border:1px solid #74504b;border-radius:8px;background:#2b1c1b;color:#e3c3bc;font-size:11px;font-weight:750}.recommendation-ignore-button:hover{border-color:#a76c62;background:#3a2220;color:#ffe1d8}.restore-ignored-recommendations{width:auto;min-height:34px;margin-top:0;padding:6px 10px;font-size:11px}
/* Timestamped market movement history shown inside each expanded fixture. */
.market-movement-panel{margin-top:10px;padding:10px;border:1px solid #34485d;border-radius:10px;background:linear-gradient(145deg,#101c29,#0b1520)}
.market-movement-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:#d7e4ee;font-size:12px}
.market-movement-panel>header span{color:#8fa4b8;font-size:10px;font-weight:650;white-space:nowrap}
.market-movement-list{display:grid;gap:5px;max-height:360px;overflow:auto;overscroll-behavior:contain}
.market-movement-row{display:grid;grid-template-columns:minmax(92px,.85fr) minmax(95px,1.15fr) minmax(45px,.55fr) minmax(145px,1fr);gap:5px;align-items:center;padding:7px 8px;border:1px solid #25384a;border-radius:8px;background:#0b1420;font-size:10px;line-height:1.35}
.market-movement-row time{color:#96aabd;font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.market-movement-label{min-width:0;color:#d8e4ed;font-weight:750;overflow-wrap:anywhere}
.market-movement-side{color:#b5c8d8;text-align:center;overflow-wrap:anywhere}
.market-movement-change{color:#d9e5ee;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.market-movement-change.rise{color:#ff7e87}.market-movement-change.fall{color:#e8c56d}
.market-movement-change small{display:inline-block;margin-left:4px;color:inherit;font-size:9px;font-weight:700}
.market-movement-empty{padding:10px;border:1px dashed #31465b;border-radius:8px;color:#8da2b6;text-align:center;font-size:10px;line-height:1.5}
.market-movement-note{display:block;margin-top:6px;color:#8297ab;font-size:9px}
.market-movement-summary{display:flex;align-items:flex-start;gap:6px;margin:0 0 5px;color:#a9bac9;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.market-movement-summary b{flex:0 0 auto;color:#89a7bd;font-size:9px;font-weight:750}
.market-movement-summary span{min-width:0;color:#a7b6c3;font-variant-numeric:tabular-nums}
.market-monitor-controls{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
.market-monitor-control{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;padding:5px 7px;border:1px solid var(--line);border-radius:9px;background:#0d1927}
.market-monitor-control>b{color:#d3dfeb;font-size:11px;font-weight:850;white-space:nowrap}
.market-monitor-toggle,.market-monitor-settings{min-height:32px;padding:5px 9px;border:1px solid #655337;border-radius:8px;background:#241e13;color:#dec992;font-size:10px;font-weight:850;white-space:nowrap}
.market-monitor-toggle{min-width:56px}
.market-monitor-toggle.active{border-color:#347c63;background:#15372e;color:#9be9ca;box-shadow:inset 0 0 0 1px #347c6340}
.market-monitor-settings{border-color:#33485d;background:#111e2b;color:#bdcddd}
.market-monitor-status{grid-column:1/-1;display:flex;align-items:center;gap:7px;min-width:0;width:100%;margin:0 0 3px;padding:7px 9px;border:1px solid #33465a;border-radius:8px;background:#101a25;color:#a9bac9;font-size:10px;line-height:1.35}
.market-monitor-status>i{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#7d8791}
.market-monitor-status.active{border-color:#376b58;background:#11261f;color:#c8e9db}
.market-monitor-status.active>i{background:#54d6a6;box-shadow:0 0 8px #54d6a666}
.market-monitor-status.stale{border-color:#806340;background:#2a2116;color:#efd4a0}
.market-monitor-status.stale>i{background:#e5b65c;box-shadow:none}
.market-monitor-status>span{flex:1;min-width:0;overflow-wrap:anywhere}
.market-monitor-status>time{flex:0 0 auto;color:#d2bd8a;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:699px){
  .market-movement-row{grid-template-columns:82px minmax(0,1fr) auto;gap:4px 6px;padding:7px}
  .market-movement-row time{grid-column:1;grid-row:1}
  .market-movement-label{grid-column:2;grid-row:1}
  .market-movement-side{grid-column:3;grid-row:1}
  .market-movement-change{grid-column:2/4;grid-row:2}
  .market-movement-summary{font-size:9px;gap:5px}
  .market-movement-summary b{font-size:8px}
}
@media(max-width:480px){
  .market-monitor-controls{gap:5px}
  .market-monitor-control{gap:4px;padding:4px}
  .market-monitor-control>b{font-size:10px}
  .market-monitor-toggle,.market-monitor-settings{min-height:30px;padding:4px 6px;font-size:9px}
  .market-monitor-toggle{min-width:48px}
  .market-monitor-status{align-items:flex-start;flex-wrap:wrap;font-size:9px}
  .market-monitor-status>time{margin-left:14px;font-size:9px}
}

/* Temporary archive: preserve handicap data while hiding its UI. */
.handicap-archived #marketMonitorControls{grid-template-columns:minmax(0,1fr)}
.handicap-archived #marketMonitorControls>.market-monitor-control:nth-child(2){display:none!important}

/* Keep personal bets in one chronological column instead of a masonry-like two-column grid. */
#betsList.cards{grid-template-columns:minmax(0,1fr)!important}
.hedged-trade-details{margin:8px 0 2px}
.hedged-trade-details>summary{display:inline-flex;align-items:center;list-style:none;cursor:pointer;padding:6px 10px;border:1px solid #5c5037;border-radius:5px;background:#1a1c1a;color:#e2c683;font-size:12px;font-weight:750}
.hedged-trade-details>summary::-webkit-details-marker{display:none}
.hedged-trade-details .hedged-detail-open{display:none}
.hedged-trade-details[open] .hedged-detail-open{display:inline}
.hedged-trade-details[open] .hedged-detail-closed{display:none}
.hedged-detail-body{display:grid;gap:7px;margin-top:8px;padding:10px;border:1px solid #484132;border-radius:6px;background:rgba(29,29,25,.72)}
.hedged-detail-item{padding:7px 8px;border-left:3px solid #ad9460;background:rgba(10,14,14,.38);line-height:1.5}
.hedged-detail-title{color:#e3c884;font-size:12px;font-weight:800}
.hedged-detail-values{display:flex;flex-wrap:wrap;gap:4px 14px;color:#e6e8e0;font-size:12px}
.hedged-detail-values b{color:#f1dfb4}
.hedged-detail-item small{display:block;color:#a9b3ad;font-size:11px}
.hedge-mode-field{display:flex;flex-wrap:wrap;gap:10px 18px;margin:12px 0;padding:10px 12px;border:1px solid #3a413d;border-radius:7px}
.hedge-mode-field legend{padding:0 5px;color:#c7c9bd;font-size:13px}
.hedge-mode-field label{display:flex;align-items:center;gap:5px;color:inherit;font-size:13px;cursor:pointer}
.hedge-mode-field input{accent-color:#d2ac60}
.partial-hedge-summary{margin:8px 0 10px;padding:10px 12px;border:1px solid #72603c;border-radius:7px;background:#211d16;color:#f0dfb7;font-size:12px;line-height:1.6}
.partial-hedge-summary strong{font-size:13px}.partial-hedge-summary small{display:block;color:#b2b8ad}
