: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}
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:min(100%,1440px);max-width:1440px;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(36px,4vw,68px)}
  .cards{gap:16px}
  .match-content{padding:14px 15px 16px}
  .bet-card{padding:17px}
}

.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 #a94848;border-radius:999px;background:#4e161c66;color:#ffb1a7;white-space:nowrap;line-height:1.15}
.live-score-leading>span{font-size:11px;font-weight:750}.live-score-leading>b{font-size:20px;font-weight:950;font-variant-numeric:tabular-nums}
.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;font-size:22px;font-weight:950;font-variant-numeric:tabular-nums;white-space:nowrap}
.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}
.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.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{font-size:18px;justify-self:end}
  .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-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}

/* 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}
}

/* Two compact navigation groups replace the former two-row six-tab menu. */
.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;border:0;background:transparent;backdrop-filter:none}
.tab-group{display:grid;grid-template-columns:repeat(2,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 .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 .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(3,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}
.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}
  .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}
}
.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 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}
@media(max-width:520px){.target-profit-item{align-items:stretch;flex-direction:column;gap:6px}.target-profit-item button{width:100%}}

