/* Account first, then comparable bot summaries and their pending bets. */
.header-identity{font-size:20px;font-weight:700;white-space:nowrap}.header-identity span{display:block;font-size:13px;font-weight:400;color:#58695e}
@media(min-width:1150px){.stats-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.stats-kpis small>span{font-size:inherit}.comparison-capital{font-size:14px;line-height:1.8}.stats-kpis strong>span{font-size:20px}
.topbar .account-balance{margin-left:auto;justify-content:flex-end}.top-status #refresh{position:fixed;right:22px;bottom:20px;z-index:9;box-shadow:0 4px 16px #17372d22;background:var(--deep);color:white;border:0;border-radius:24px;padding:12px 18px}.top-status #session-time{font-size:12px}
.market-code{font-size:12px!important;color:#58695e;font-weight:400}.stats-intro{font-size:14px}.stats-kpis{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px}.stats-kpis>div{display:flex;flex-direction:column;gap:6px}.stats-kpis strong{font-size:24px}.stats-kpis span,.stats-kpis small{font-size:14px}.stats-analysis .daily-row{grid-template-columns:95px 1fr 95px;font-size:14px}.stats-analysis td,.stats-analysis th{font-size:14px}.stats-analysis h3{margin:0}.combined-stats{margin:20px 0}.combined-stats>summary{padding:15px;font-size:16px}.upstream-comparison{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:20px}.upstream-comparison h3{margin-top:0}.upstream-comparison strong{font-size:25px}
@media(max-width:680px){.header-identity{display:none}.topbar .top-status #refresh{bottom:80px;right:14px;width:auto;height:auto;font-size:17px;padding:11px 15px}.topbar .top-status #refresh span{display:inline;font-size:13px}.stats-kpis,.upstream-comparison{grid-template-columns:1fr}.account-balance{flex:initial}.topbar .account-balance{margin-left:auto}.top-status{position:absolute;left:12px;top:12px}.topbar{min-height:90px}.stats-analysis .daily-chart{padding:16px 12px}.stats-analysis .daily-row{grid-template-columns:88px 1fr 78px;gap:8px;font-size:12px}}
.topbar{position:sticky;top:0;z-index:6;height:auto;min-height:88px;padding:14px 28px;gap:22px;background:#fff;box-shadow:0 3px 12px #17372d06}
.account-balance{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.account-provider{display:flex;flex-direction:column;min-width:110px;font-size:15px}
.balance-label{font-size:13px;color:#58695e}
.account-amount{font-size:32px;line-height:1.15;letter-spacing:-1px;white-space:nowrap;font-variant-numeric:tabular-nums}
.balance-freshness{font-size:13px;color:#58695e;max-width:270px;line-height:1.35}
.account-balance>div>strong{font-size:28px;margin:0 12px}
.account-balance small{font-size:13px}
.account-balance .icon-button{width:42px;height:42px}
.top-status{flex-shrink:0;gap:16px;font-size:13px}
.top-status .quiet{font-size:14px;min-height:42px}
main#main{padding:22px 28px;max-width:1680px}
.page-heading{margin-bottom:16px;align-items:center}
.page-heading .eyebrow,.page-heading .today-label{display:none}
.page-heading h1{font-size:25px;letter-spacing:-.7px;margin:0 0 5px}
.page-heading p{font-size:14px;color:#58695e}
.overview-view .page-heading p{display:none}
.overview-view .page-heading{margin-bottom:12px}
.filters{padding:0 0 18px;border-top:0;gap:10px}
.filter-caption{font-size:14px;font-weight:600}
.filters input,.filters select,.period-group button{font-size:14px;min-height:38px}
.date-range input{width:140px}
.overview-view .filters #sport,.overview-view .filters #provider{display:none}
.dashboard-summary{display:grid;grid-template-columns:1.1fr 1.25fr .8fr;background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.dashboard-summary .metric{padding:16px 20px}
.dashboard-summary .metric>span{font-size:14px;color:#46594b}
.dashboard-summary .metric>strong{font-size:30px;margin:4px 0}
.dashboard-summary .metric>small{font-size:13px;color:#58695e}
.dashboard-context{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:#58695e;margin:12px 0 18px;line-height:1.4}
.dashboard-context .freshness{font-size:13px;flex-shrink:0}
.dashboard-bots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.intraday-panel{margin-top:18px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:white;min-width:0}.intraday-heading{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}.intraday-heading>span{font-size:12px;color:var(--muted)}.intraday-legend{display:flex;gap:14px;margin-left:auto;font-size:12px}.intraday-legend span{display:inline-flex;align-items:center;gap:5px}.intraday-legend i{display:inline-block;width:17px;border-top:3px solid}.intraday-scroll{overflow-x:auto}.intraday-scroll svg{display:block;width:100%;min-width:680px;max-height:180px}.intraday-football{color:#397da4;stroke:#397da4}.intraday-basketball{color:#bc7630;stroke:#bc7630}.intraday-total{color:#263d32;stroke:#263d32}.intraday-line{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.intraday-line.intraday-total{stroke-width:3}.intraday-dot{fill:white;stroke-width:2}.intraday-panel .chart-readout{margin:3px 0;padding:6px 10px;font-size:12px;min-height:18px}.intraday-method{border:0;padding:0;margin:4px 0 0;font-size:11px;color:var(--muted)}.intraday-method p{font-size:12px;margin:6px 0 0}.intraday-panel .chart-empty{padding:14px 0;margin:0;font-size:13px}@media(max-width:680px){.intraday-panel{padding:12px}.intraday-legend{margin-left:0;width:100%}}
.intraday-controls{display:flex;align-items:center;gap:3px;margin-left:auto}.intraday-controls input{padding:4px 7px;font-size:12px;max-width:145px}.intraday-controls button{padding:4px 7px;min-height:30px;font-size:12px}.intraday-estimate-note{font-size:12px;margin:6px 0 0}.intraday-line.intraday-estimated-line{stroke-dasharray:5 3}@media(max-width:680px){.intraday-controls{margin-left:0}.intraday-legend{width:auto}}
.intraday-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 16px}.intraday-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}.intraday-title>span{font-size:11px;color:var(--muted)}.intraday-heading .intraday-legend{margin:0;justify-self:center;width:auto}.intraday-heading .intraday-controls{margin:0;justify-self:end}.intraday-panel{position:relative}.intraday-tooltip{position:absolute;z-index:4;pointer-events:none;max-width:min(350px,calc(100% - 16px));padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 4px 18px #17372d24;color:var(--ink);font-size:12px;line-height:1.5}.intraday-point:focus{outline:none}.intraday-point:hover .intraday-dot,.intraday-point:focus .intraday-dot{stroke-width:3}.intraday-point:focus-visible .intraday-dot{stroke-width:4}.intraday-scroll .intraday-grid{stroke:#dce4da;stroke-dasharray:3 4}.intraday-scroll .intraday-grid.chart-zero{stroke:#71897a;stroke-dasharray:none;stroke-width:1.4}@media(max-width:900px){.intraday-heading{grid-template-columns:minmax(0,1fr) auto}.intraday-heading .intraday-controls{grid-column:2;grid-row:1}.intraday-heading .intraday-legend{grid-column:1/-1;grid-row:2}.intraday-title h2{font-size:15px}}
.intraday-tooltip{min-width:210px}.intraday-tooltip-time{display:block;font-size:13px;font-weight:750}.intraday-tooltip>small{display:block;margin:2px 0 6px;color:var(--muted);font-size:11px}.intraday-tooltip-row{display:flex;justify-content:space-between;gap:20px;line-height:1.7}.intraday-tooltip-row b{font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}
.comparison-filter{justify-self:end}.comparison-filter select{font-size:12px;padding:5px 10px;min-height:32px}.comparison-matches{color:#8fb4cb}.comparison-match-bar{fill:#8fb4cb;opacity:.4}.comparison-panel .intraday-heading{margin-bottom:8px}#trend-calendar .calendar-panel{margin-bottom:0}@media(max-width:900px){.comparison-filter{grid-column:2;grid-row:1}}
.comparison-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;justify-self:end;flex-wrap:wrap}.comparison-bar-football{fill:#397da4}.comparison-bar-basketball{fill:#bc7630}.comparison-panel .intraday-title>span{font-size:11px}@media(max-width:1100px){.comparison-panel .intraday-heading{grid-template-columns:minmax(0,1fr) auto}.comparison-panel .intraday-legend{grid-row:2;grid-column:1/-1}.comparison-controls{grid-column:2;grid-row:1}}@media(max-width:620px){.comparison-panel .intraday-heading{grid-template-columns:1fr}.comparison-controls{grid-column:1;grid-row:2;justify-self:end}.comparison-panel .intraday-legend{grid-row:3}}
.dashboard-bot{border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}
.dashboard-bot-header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafbf7;border-bottom:1px solid var(--line)}
.dashboard-bot-header .bot-mark{font-size:19px;gap:8px}
.dashboard-bot-header .bot-mark-icon{font-size:21px;width:25px;height:25px}
.dashboard-bot .badge{font-size:13px;padding:5px 9px}
.cycle{display:block;font-size:13px;color:#58695e;margin-top:3px}
.bot-period{padding:16px 20px}
.bot-period-profit{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bot-period-profit>span{font-size:14px;color:#58695e}
.bot-period-profit>strong{font-size:28px;font-variant-numeric:tabular-nums;white-space:nowrap}
.outcome-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.outcome-grid>div{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.outcome-grid strong{font-size:23px;font-variant-numeric:tabular-nums}
.outcome-grid span{font-size:14px;color:#58695e}
.bot-accounting{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:#58695e}
.bot-accounting b{color:var(--ink);margin-left:4px;font-variant-numeric:tabular-nums}
.bot-period>p{font-size:13px;margin:10px 0 0}
.bot-watch-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 20px;background:#fffaf0;border-block:1px solid #eee5d4}
.bot-watch-heading h3{font-size:15px;margin:0}
.bot-watch-heading>span{font-size:14px}
.watch-bet{padding:14px 20px;border-bottom:1px solid var(--line)}
.watch-title{display:flex;align-items:start;justify-content:space-between;gap:12px}
.watch-title>a{font-size:15px;line-height:1.4;text-decoration:none;font-weight:500;color:#46564c}
.watch-title>a:hover{text-decoration:underline}
.watch-market{font-size:16px;font-weight:650;line-height:1.4;margin:7px 0;border-left:3px solid #a3b98b;padding-left:9px}
.watch-money{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:13px;color:#58695e;margin-top:8px}
.watch-money b{color:var(--ink);font-size:16px;font-variant-numeric:tabular-nums}
.watch-live{font-size:13px;color:#58695e;margin-top:8px}
.watch-bet .finish-estimate{font-size:13px;max-width:none;margin-top:2px}
.watch-bet>p{font-size:14px;margin:8px 0 0}
.watch-empty{padding:20px;margin:0;font-size:14px;color:#58695e}
.more-watch{margin:0;padding:0;border:0}
.more-watch>summary{padding:12px 20px;font-size:14px}
.bot-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 20px;margin:0;font-size:14px;background:#fafbf7}
.bot-card-footer .text-button{font-size:14px;min-height:32px}
.bot-card-footer>a,.dashboard-links a{color:var(--green);text-decoration:none}
.bot-card-footer>a:hover,.dashboard-links a:hover{text-decoration:underline}
.dashboard-links{display:flex;gap:25px;font-size:14px;margin:20px 0}
.overview-view footer:not(.bot-card-footer){font-size:12px;margin-top:18px}
.sidebar nav a{font-size:14px}
.notice{font-size:14px}
.dashboard-bot .exposure-value{color:#865914!important}
#custom-dates{display:none}
.bot-watch-list{margin:0;padding:0;border:0}
.bot-watch-heading{list-style:none;cursor:pointer}
.bot-watch-heading::-webkit-details-marker{display:none}
.watch-chevron{font-size:20px!important;margin-left:auto}
.bot-watch-list[open]>.bot-watch-heading .watch-chevron{transform:rotate(180deg)}
.top-status .spinning{animation:none;opacity:.6}
@media(max-width:1150px){
  .topbar{padding:12px 22px;gap:14px}.balance-freshness{flex-basis:100%;max-width:none}.account-balance{gap:5px 12px}
  .top-status{gap:8px}.top-status #session-time{display:none}
  main#main{padding:20px 22px}.dashboard-bots{gap:16px}
  .outcome-grid>div{flex-direction:column;gap:0}.bot-period-profit{align-items:start;flex-direction:column;gap:1px}
}
@media(max-width:850px){
  .sidebar{width:165px;padding-left:8px;padding-right:8px}.app{margin-left:165px}
  .sidebar nav a{font-size:13px}.dashboard-bots{grid-template-columns:1fr}.bot-period-profit{flex-direction:row;align-items:center}
  .outcome-grid>div{flex-direction:row;gap:7px}.dashboard-context{align-items:start;flex-direction:column;gap:5px}
  .dashboard-summary{grid-template-columns:1fr 1fr}.dashboard-summary .attention-metric{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;padding:9px 16px;border-left:0;border-top:1px solid var(--line)}
  .dashboard-summary .attention-metric strong{font-size:20px}.dashboard-summary .metric>strong{font-size:27px}
  .dashboard-summary .metric{padding:14px 16px}
}
@media(max-width:680px){
  .sidebar{width:100%;padding:4px 6px 5px}.app{margin-left:0}.sidebar nav a{font-size:11px}
  .topbar{padding:10px 16px;min-height:84px;gap:8px}.account-balance{gap:4px 10px;flex:1}
  .account-provider{min-width:88px;font-size:14px}.account-provider select{max-width:115px;padding:3px;font-size:14px}
  .account-amount{font-size:28px}.account-balance .icon-button{width:40px;height:40px}
  .balance-label,.balance-freshness{font-size:12px}.balance-freshness{flex-basis:100%}
  .top-status .quiet{width:40px;padding:0;font-size:22px}.top-status .quiet span{display:none}
  main#main{padding:18px 16px}.page-heading h1{font-size:23px}.page-heading p{font-size:14px}
  .filters{gap:8px;padding:0 0 14px}.filter-caption{font-size:13px}.period-group{width:auto;flex:1}
  .overview-view .filter-caption{display:none}.overview-view #custom-dates{display:block;min-height:42px}
  .overview-view .filters:not(.dates-expanded) .date-range{display:none}
  .period-group button{padding:7px 10px;min-height:40px;font-size:13px}
  .date-range{width:100%;gap:10px}.date-range input{font-size:14px;width:calc(50% - 14px);min-height:40px}
  .filters select{font-size:14px;min-height:42px}.dashboard-context{font-size:12px;margin:10px 0 14px}
  .dashboard-context .freshness{font-size:12px}.dashboard-summary .metric{padding:12px}
  .dashboard-summary .metric>span{font-size:13px}.dashboard-summary .metric small{font-size:12px}
  .dashboard-summary .attention-metric{gap:8px}.dashboard-summary .attention-metric small{margin-left:auto;max-width:150px;text-align:right}
  .dashboard-summary .attention-metric{padding:8px 12px}.dashboard-summary .attention-metric strong{font-size:20px}
  .dashboard-bot-header,.bot-period,.watch-bet{padding:14px 16px}.bot-period-profit>span{font-size:13px}
  .bot-period-profit>strong{font-size:26px}.outcome-grid{gap:5px}.outcome-grid>div{flex-direction:column;gap:0}.outcome-grid strong{font-size:22px}
  .outcome-grid span{font-size:13px}.bot-watch-heading{padding:12px 16px}.bot-card-footer{padding:10px 16px;font-size:13px}
  .bot-card-footer .text-button{font-size:13px;min-height:42px}.watch-market{font-size:16px}
  .watch-money{gap:12px}.watch-title>a{font-size:15px}.dashboard-links{font-size:14px;flex-wrap:wrap;gap:12px}
}

@media(min-width:1150px){.stats-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.stats-kpis strong>span{font-size:20px}

/* Compact account header: identity/session left, account and reading right. */
.topbar{min-height:76px;padding-top:10px;padding-bottom:10px}
.header-identity{order:1}
.topbar .top-status{order:2;position:static;margin-right:auto;gap:0}
.topbar .top-status #session-time{display:inline;font-size:12px;color:#58695e}
.topbar .account-balance{order:3;margin-left:auto;flex:initial;display:grid;grid-template-columns:auto auto 38px;gap:2px 14px;align-items:center;justify-content:end}
.account-provider{grid-column:1;grid-row:1;font-size:15px;min-width:0}
.account-amount{grid-column:2;grid-row:1;font-size:30px}
.topbar .account-balance .icon-button{grid-column:3;grid-row:1;width:38px;height:38px}
.topbar .balance-freshness{grid-column:1/-1;grid-row:2;font-size:11px;text-align:right;max-width:420px;line-height:1.25}
@media(max-width:680px){
 .topbar{display:grid;grid-template-columns:auto 1fr;gap:0 10px;padding:9px 14px;min-height:74px}
 .topbar .header-identity{display:block;grid-column:1;grid-row:1;font-size:15px;align-self:end}
 .header-identity>span{display:none}
 .topbar .top-status{grid-column:1;grid-row:2;align-self:start;margin:0}
 .topbar .top-status #session-time{display:block;font-size:10px;max-width:85px}
 .topbar .account-balance{grid-column:2;grid-row:1/3;gap:2px 8px;grid-template-columns:auto auto 32px}
 .account-provider{font-size:12px}.account-provider select{max-width:100px;font-size:12px}.balance-label{font-size:10px}
 .account-amount{font-size:24px}.topbar .account-balance .icon-button{width:32px;height:32px}
 .topbar .balance-freshness{font-size:10px;max-width:250px}
}

/* Balanced header groups with a quiet timestamp beneath the account. */
.topbar{align-items:center}
.topbar .header-identity{line-height:1.25}
.topbar .header-identity>span{margin-top:4px}
.topbar .top-status{align-self:center;margin-left:2px}
.topbar .account-balance{column-gap:14px;row-gap:4px}
.topbar .account-provider{line-height:1.25;align-self:center}
.topbar .account-provider .balance-label{margin-top:4px}
.topbar .account-amount{line-height:38px;align-self:center}
.topbar .balance-freshness{font-style:italic;text-align:center;justify-self:center;line-height:1.2}
@media(max-width:680px){
 .topbar .account-balance{column-gap:8px;row-gap:3px}
 .topbar .top-status{margin-left:0;align-self:start}
 .topbar .account-amount{line-height:32px}
 .topbar .balance-freshness{font-size:10px}
}

/* Session centered in the bar; reading belongs directly to the amount. */
.topbar{display:grid;grid-template-columns:1fr auto 1fr;column-gap:20px}
.topbar .header-identity{grid-column:1;grid-row:1;justify-self:start}
.topbar .top-status{grid-column:2;grid-row:1;justify-self:center;margin:0}
.topbar .account-balance{grid-column:3;grid-row:1;justify-self:end;margin:0}
.topbar .balance-freshness{grid-column:2;grid-row:2;justify-self:center;white-space:nowrap;max-width:none}
@media(min-width:681px) and (max-width:1050px){
 .topbar{grid-template-columns:minmax(80px,1fr) auto minmax(245px,1fr);column-gap:10px;padding:12px 18px}
 .topbar .header-identity{font-size:16px}.topbar .header-identity>span{font-size:11px}
 .topbar .top-status #session-time{font-size:11px}
 .topbar .account-balance{grid-template-columns:minmax(80px,auto) auto 30px;gap:3px 8px}
 .topbar .account-provider,.topbar .account-provider select{font-size:12px;min-width:80px}.topbar .balance-label{font-size:11px;white-space:nowrap}
 .topbar .account-amount{font-size:25px;line-height:30px}.topbar .account-balance .icon-button{width:30px;height:30px}
 .topbar .balance-freshness{font-size:10px}
}

/* Account identity, label and reading form one compact group beside the amount. */
.topbar .account-balance{grid-template-columns:auto auto 38px;align-items:center;row-gap:0}
.topbar .account-provider{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.topbar .account-provider .balance-label{margin:0}
.topbar .account-provider .balance-freshness{display:block;margin:0;font-size:11px;line-height:1.25;text-align:left;font-style:italic;white-space:nowrap}
.topbar .account-amount,.topbar .account-balance>[data-balance]{align-self:center;grid-row:1}
.settings-tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:1px solid #dce4d5;padding-bottom:10px;flex-wrap:wrap}
.settings-tabs a{padding:10px 16px;border-radius:8px;color:#50685b;font-weight:600;text-decoration:none}
.settings-tabs a[aria-current]{background:#dcecb0;color:#203e2e}
.settings-tabs a:focus-visible{outline:2px solid #42664e;outline-offset:2px}
@media(max-width:1050px){.topbar .account-balance{grid-template-columns:auto auto 30px;column-gap:8px}.topbar .account-provider .balance-freshness{font-size:10px}}
@media(max-width:680px){.topbar .account-balance{grid-template-columns:minmax(0,1fr) auto 28px;gap:5px}.topbar .account-provider{min-width:0}.topbar .account-provider .balance-freshness{font-size:9px;white-space:normal;max-width:130px}.settings-tabs a{padding:10px;font-size:13px}}
@media(max-width:680px){
 .topbar{grid-template-columns:auto auto minmax(0,1fr);column-gap:8px;padding-left:10px;padding-right:10px}
 .topbar .header-identity{grid-column:1;grid-row:1;font-size:13px;align-self:center}
 .topbar .top-status{grid-column:2;grid-row:1;align-self:center}
 .topbar .top-status #session-time{font-size:10px;max-width:68px;text-align:center}
 .topbar .account-balance{grid-column:3;grid-row:1;column-gap:5px;grid-template-columns:auto auto 28px}
 .topbar .account-provider{font-size:11px}.topbar .balance-label{font-size:9px}
 .topbar .account-amount{font-size:21px}.topbar .account-balance .icon-button{width:28px;height:28px}
 .topbar .balance-freshness{font-size:9px}
}


/* Pending bets keep their amber identity on dark and selected navigation. */
.sidebar nav #nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:25px;padding:0 7px;margin-left:auto;border-radius:7px;background:#f2d494;color:#50390b;border:1px solid #d3ac54;font-size:12px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums;flex-shrink:0}
.sidebar nav #nav-count:empty{display:none}
.sidebar nav a.active #nav-count,.sidebar nav a:hover #nav-count,.sidebar nav a:focus-visible #nav-count{background:#93621a;color:#fff6de;border-color:#805315}
@media(max-width:680px){.sidebar nav a[data-page="bets"]{position:relative}.sidebar nav #nav-count{position:absolute;top:2px;right:calc(50% - 29px);min-width:19px;height:19px;padding:0 4px;font-size:10px;border-radius:6px;margin:0}}
#provider-form+.notice{margin:16px 0 20px;font-size:13px;line-height:1.6}

/* Calendar precedes the results toolbar so period filters apply visibly below it. */
.overview-view .page-heading{gap:18px;align-items:center;margin:0 0 14px;flex-wrap:wrap}
.overview-view .page-heading h1{margin:0;white-space:nowrap}
.overview-view .page-heading>.filters{flex:1;justify-content:flex-end;margin:0;padding:0;gap:8px}
.overview-view .page-heading>.filters .filter-caption{white-space:nowrap;font-size:12px}
.overview-view .page-heading>.filters .period-group button{padding:6px 9px;font-size:13px;min-height:34px}
.overview-view .page-heading>.filters .date-range input{padding:5px 6px;font-size:13px;min-height:34px;width:130px}
@media(max-width:1100px){.overview-view .page-heading>.filters{flex-basis:100%;justify-content:flex-start}.overview-view .page-heading{gap:10px}}
@media(max-width:680px){.overview-view .page-heading{gap:8px}.overview-view .page-heading>.filters{gap:6px}.overview-view .page-heading>.filters .period-group{min-width:0}.overview-view .page-heading>.filters .period-group button{font-size:12px;padding:6px 7px}.overview-view .page-heading>.filters .date-range input{width:calc(50% - 14px);font-size:14px}}

.metric.exposure .open-bet-count{font-size:1.4em;font-weight:750;line-height:1.2}
.period-group{flex-wrap:wrap}

.direction-config{margin:16px 0 24px}.direction-config>h3{margin-bottom:8px}.direction-config>p{font-size:14px;line-height:1.5}.direction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.direction-card{border:1px solid var(--line);border-radius:12px;background:#fafbf8;padding:14px;min-width:0}.direction-card label{display:grid;gap:5px}.direction-card label b{font-size:16px}.direction-card label span,.direction-card small{font-size:12px;color:var(--muted);line-height:1.5}.direction-context{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0;font-size:11px;color:var(--muted)}.direction-context span{background:#edf1e8;padding:3px 7px;border-radius:6px}.direction-card select{width:100%;min-height:44px;font-size:15px}.direction-shortcuts{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:#f3f6ed;padding:10px;border-radius:10px;font-size:12px}.direction-shortcuts small{width:100%;color:var(--muted)}.direction-config>#reload-directions{margin-top:10px}.direction-technical,.basic-config{margin-top:16px}.direction-technical pre{white-space:pre-wrap;overflow-wrap:anywhere}.basic-config summary{font-weight:650;margin-bottom:12px}@media(max-width:620px){.direction-grid{grid-template-columns:1fr}.direction-card{padding:12px}}

.config-tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:20px}.config-tabs [role=tab]{background:transparent;border:1px solid transparent;border-radius:8px;padding:10px 12px;font-weight:600;color:var(--muted);min-height:44px}.config-tabs [aria-selected=true]{background:#e9efd9;color:var(--ink);border-color:#cbd7b8}.config-tabs [role=tab]:focus-visible{outline:2px solid #4b7159;outline-offset:2px}.config-body [role=tabpanel][hidden]{display:none}.config-body .direction-config{margin-top:0}.other-market-list{list-style:none;padding:0;margin:14px 0}.other-market-list li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.other-market-list b{font-size:12px}@media(max-width:620px){.config-tabs{gap:3px}.config-tabs [role=tab]{padding:8px;font-size:12px}}

.watch-money .watch-placed-at{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.watch-money .watch-placed-at b{font-size:inherit;font-weight:600}

/* Compact watch cards: event, live information, then the wager as one block. */
.watch-title{align-items:center;flex-wrap:wrap;gap:8px 12px}.watch-title>a{flex:1 1 160px;min-width:0}.watch-title-status{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}
.watch-scoreboard{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}.watch-scoreboard>small{font-size:9px;font-weight:700;letter-spacing:.06em;color:var(--muted);margin-right:3px}.watch-score-box{display:inline-grid;place-items:center;min-width:33px;min-height:29px;padding:2px 7px;border:1px solid #dbe1d9;border-radius:6px;background:#f1f4ef;font-size:16px;font-weight:750;color:var(--ink)}.watch-score-box.selected-team{border-color:#60796b;box-shadow:inset 0 0 0 1px #60796b}.watch-score-separator{color:#66756a;font-weight:650}
.watch-live{display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px;margin-top:5px;font-size:12px;color:#67756c}.watch-live>span+span:before{content:'·';margin-right:12px;color:#9aa59d}.watch-event-state{display:inline-flex;align-items:center;gap:5px}.live-dot{width:6px;height:6px;background:#668372;border-radius:50%;display:inline-block}.watch-finish{color:inherit}
.watch-wager{margin-top:12px}.watch-wager .watch-money{margin-top:0;gap:6px 18px}.watch-money b.warning{color:#8a6500}.watch-market{border:0;padding:0;margin:3px 0 0;font-size:15px;line-height:1.55}.watch-threshold{font-weight:750}.watch-threshold.warning{color:#8a6500}.watch-current{display:inline-block;vertical-align:baseline;font-size:12px;font-weight:550;padding:1px 6px;border-radius:5px;background:#f2f4f1;color:#627267}.watch-current.positive{background:#edf5e9}.watch-current.negative{background:#fbeeed}.watch-current.warning{background:#fff7d9;color:#8a6500}.watch-money .watch-placed-at{font-size:12px}
@media(max-width:680px){.watch-title-status{gap:8px}.watch-scoreboard{gap:4px}.watch-scoreboard>small{font-size:8px}.watch-score-box{min-width:29px;min-height:27px;padding:2px 5px;font-size:15px}.watch-wager .watch-money{gap:6px 12px}.watch-live{gap:3px 8px}.watch-live>span+span:before{margin-right:8px}}

@media(max-width:420px){.watch-wager .watch-money{font-size:12px;gap:5px 9px}.watch-wager .watch-money b{font-size:14px}.watch-placed-at .watch-placed-prefix{display:none}.watch-money .watch-placed-at:before{content:"◷";margin-right:4px}.watch-wager .watch-money .watch-placed-at b{font-size:12px}}

.estimate-time{color:#8a6500;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}

.watch-potential{white-space:nowrap}.watch-potential:empty{display:none}

.watch-condition-ok{display:inline-grid;place-items:center;width:19px;height:19px;margin-right:3px;border-radius:50%;background:#edf5e9;font-size:14px;font-weight:800;line-height:1;vertical-align:baseline}
.watch-condition-failed{display:inline-grid;place-items:center;width:19px;height:19px;margin-right:3px;border-radius:50%;background:#fae9e9;font-size:14px;font-weight:800;line-height:1}
.watch-condition-neutral{display:inline-grid;place-items:center;width:19px;height:19px;margin-right:3px;font-size:14px;line-height:1}
.exposure-amount{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.exposure-outlook{display:inline-flex;align-items:center;gap:4px;vertical-align:middle}.exposure-outlook small{font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}.exposure-sports{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:5px;font-size:13px}.exposure-sports>span{display:inline-flex;align-items:center;gap:5px}.exposure-sports .open-bet-count{font-size:16px}.exposure-outlook .watch-outlook{margin-left:0}
.dashboard-summary .exposure-amount>strong{font-size:30px;margin:4px 0}@media(max-width:900px){.dashboard-summary .exposure-amount>strong{font-size:27px}}
.metric.exposure{container-type:inline-size}.exposure-layout{display:grid;gap:5px;min-width:0}.exposure-total{min-width:0}.exposure-total>small{font-size:13px;color:#58695e}.exposure-sports{margin-top:0}
@container(min-width:420px){.exposure-layout{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:18px}.exposure-sports{display:grid;gap:4px;align-content:center}.exposure-sports>span{white-space:nowrap}.exposure-amount{gap:6px}}
.watch-outlook{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;margin-left:4px;padding:0 3px;border-radius:6px;font-size:17px;line-height:1;vertical-align:-3px;cursor:help}
.watch-outlook{background:transparent}

.intraday-controls{flex-wrap:wrap;justify-content:flex-end}@media(max-width:580px){.intraday-heading{display:flex;flex-wrap:wrap}.intraday-heading .intraday-controls{width:100%;justify-content:flex-end}.intraday-heading .intraday-legend{margin:auto}}

.load-error-summary>strong{display:block;font-size:15px}.load-error-summary p{margin:5px 0}.load-error-summary details{margin-top:8px;font-size:12px}.load-error-summary summary{cursor:pointer}.load-error-summary ul{margin:6px 0;padding-left:20px}

.activity-panel{padding:12px 14px;margin:0 0 14px}.activity-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;font-size:12px}.activity-controls input{max-width:140px;padding:4px 6px;font-size:12px}.activity-controls button{padding:4px 8px;min-height:28px;font-size:12px}.activity-controls .selected{background:#e4ecd7;font-weight:700}.activity-scroll{overflow-x:auto;margin-top:8px}.activity-scroll svg{display:block;width:100%;min-width:850px;font-family:inherit}.activity-grid{stroke:#e4e9e0;stroke-width:.7}.activity-axis,.activity-muted{fill:#687d73;font-size:11px}.activity-icon{font-size:23px}.activity-sport{font-size:16px;font-weight:750;fill:#223b32}.activity-side{font-size:12px;fill:#29483b}.activity-bar-count{fill:#223b32;font-size:12px;font-weight:750}.activity-segment-count{fill:white;font-size:11px;font-weight:750}.activity-football{fill:#69a9da;background:#69a9da}.activity-basketball{fill:#efa65e;background:#efa65e}.activity-won{fill:#3c9d65;background:#3c9d65}.activity-lost{fill:#c54559;background:#c54559}.activity-open{fill:#c69a21;background:#c69a21}.activity-other{fill:#727b82;background:#727b82}.activity-none{fill:#bbc0c2;background:#bbc0c2}.activity-positive{fill:#32734c}.activity-negative{fill:#b6384d}.activity-warning{fill:#927300}.activity-now{stroke:#ed526e;stroke-width:1.4;pointer-events:none}.activity-now-dot{fill:white;stroke:#ed526e;stroke-width:1.5;pointer-events:none}.activity-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;font-size:11px;margin-top:6px}.activity-legend span{display:inline-flex;align-items:center;gap:5px}.activity-legend i{display:inline-block;width:13px;height:13px;border-radius:3px}.activity-bin:focus{outline:none}.activity-bin:focus-visible .activity-matches,.activity-bin:hover .activity-matches{stroke:#29483b;stroke-width:1.5}@media(max-width:1100px){.activity-panel .intraday-heading{display:flex;flex-wrap:wrap}.activity-controls{margin-left:auto}.activity-panel .calendar-current-time{margin:auto}}

.activity-matches.activity-football{fill:url(#activity-football-fill)}.activity-matches.activity-basketball{fill:url(#activity-basketball-fill)}

.header-capital{display:flex;flex-direction:column;align-items:center;gap:4px;font-variant-numeric:tabular-nums}
.topbar #capital-comparison{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink);font-size:12px;white-space:nowrap}
.capital-profit{display:flex;align-items:baseline;justify-content:center;gap:8px;line-height:1.25}.capital-profit>span{color:var(--muted);font-size:12px;font-weight:500}.capital-profit strong{font-size:18px;font-weight:750;letter-spacing:-.2px}
.capital-equation{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:baseline;gap:6px;width:100%;padding:0 17px;box-sizing:border-box;font-size:12px;color:var(--muted);line-height:1.3}.capital-available{justify-self:end}.capital-minus{text-align:center}
.topbar #capital-edit-button{position:relative;justify-self:start;display:inline-flex;align-items:baseline;min-height:0;padding:0;border:0;background:transparent;color:var(--muted);font-size:inherit;line-height:inherit;cursor:pointer}.topbar #capital-edit-button b{font-weight:550}.topbar #capital-edit-button:hover{color:var(--ink)}
.capital-edit{position:absolute;left:100%;margin-left:5px;font-size:11px;color:var(--muted);opacity:.7}
.topbar #capital-edit-button:focus-visible{outline:2px solid #42664e;outline-offset:3px}
.topbar .account-funds{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.account-including-open{font-size:11px!important;white-space:nowrap}.account-funds .account-amount{margin:0!important}
.topbar .header-capital #session-time{max-width:none;white-space:nowrap;font-size:10px;line-height:1.2;color:var(--muted)}
@media(max-width:1050px){.topbar #capital-comparison{font-size:11px}.capital-profit strong{font-size:16px}.account-including-open{font-size:10px!important}}
@media(max-width:680px){.topbar{grid-template-columns:minmax(0,1fr);row-gap:8px}.topbar .header-identity{display:none}.topbar .top-status{grid-column:1;grid-row:1;justify-self:center}.topbar .account-balance{grid-column:1;grid-row:2;justify-self:end}.header-capital{gap:3px}.topbar #capital-comparison{font-size:12px}.capital-profit strong{font-size:17px}}

.stats-exposure-details{margin:0 20px 16px}.stats-exposure-details summary{font-size:13px;color:var(--muted);cursor:pointer}.stats-exposure-details p{max-width:1000px;line-height:1.5}.stats-exposure-kpi>strong.warning{color:#927300}
@media(min-width:1400px){.stats-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}}

.date-control{display:inline-flex;flex-direction:row;align-items:center;gap:4px}.date-weekday{font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}.calendar-weekday{text-transform:none!important}.stats-day-details td:first-child,.stats-exposure-details td:first-child{white-space:nowrap}
@media(max-width:680px){.date-range .date-control{flex:1;min-width:0;flex-direction:column;align-items:stretch;gap:2px}.date-range .date-control input{width:100%!important}.date-control .date-weekday{text-align:center}}

.basketball-odds{margin:0 20px 18px;border-top:1px solid var(--line);padding-top:14px}.basketball-odds h3{margin:0 0 10px}.basketball-odds-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.basketball-odds-grid>div{display:flex;flex-direction:column;gap:4px}.basketball-odds-grid strong{font-size:23px;font-variant-numeric:tabular-nums}.basketball-odds-grid small{color:var(--muted)}.basketball-odds details{margin-top:10px;padding:8px 0 0;border:0;font-size:12px;color:var(--muted)}.basketball-odds details p{margin:8px 0}.basketball-odds summary{font-size:12px}@media(max-width:680px){.basketball-odds-grid{grid-template-columns:1fr;gap:12px}}

.daily-highlight,.weekend-day{font-weight:800}.daily-highlight{color:inherit}.daily-highlight-legend{margin:10px 0 0;font-size:11px;color:var(--muted)}

.final-result{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px;margin-top:5px;font-size:12px;line-height:1.4}.final-source{color:var(--muted);font-size:11px}.final-gap{display:inline-block;border-bottom:2px solid currentColor}.final-gap.warning{color:#b06e0d}.final-unavailable{color:var(--muted);font-size:11px}.final-unverified{color:var(--muted)}.final-result>.small{flex-basis:100%;font-weight:400}.final-market-value{font-size:11px;color:var(--muted)}

.bets-table .settlement-cell{min-width:205px;max-width:270px;white-space:normal}.settlement-cell .final-result{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:8px;text-align:left;white-space:normal}.settlement-cell .final-gap{max-width:100%;overflow-wrap:anywhere}.settlement-cell .final-source{overflow-wrap:anywhere}

.diretta-link,.event-search-link{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;padding:4px 6px;border:1px solid var(--line);border-radius:7px;color:var(--green);text-decoration:none;font-size:10px;font-weight:550;line-height:16px}.diretta-link:hover,.event-search-link:hover{background:var(--bg)}.diretta-link svg{flex-shrink:0}.detail-status>.diretta-link{margin-left:auto}.diretta-settings{margin:8px 0 14px;padding:8px 0}.diretta-settings summary{font-size:12px;color:var(--muted)}#diretta-form{display:grid;gap:8px;margin-top:10px}#diretta-form .quiet{justify-self:start}#diretta-form small{color:var(--muted)}#diretta-message{font-size:12px}

.event-links{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}.diretta-link{width:28px;height:26px;padding:3px}.diretta-link img{display:block;width:18px;height:18px;border-radius:4px}.event-search-link{height:26px}.detail-event-actions{display:inline-flex;align-items:center;gap:12px;margin-left:auto}.event-search-link svg{flex-shrink:0}

/* One compact refresh control shared by all pages. */
.top-status .refresh-controls{position:fixed;right:22px;bottom:20px;z-index:9;display:flex;align-items:center;gap:6px}.topbar .top-status .refresh-controls #refresh{position:static;margin:0}.top-status .refresh-settings{font-size:12px;padding:8px 10px;border:1px solid var(--line);border-radius:20px;background:var(--surface,#fff);color:var(--green);white-space:nowrap}
.top-status .refresh-panel{isolation:isolate;overflow:hidden;gap:0;max-width:min(640px,calc(100vw - 28px));border:1px solid var(--deep);border-radius:23px;background:#567966;color:white;box-shadow:0 4px 16px #17372d22}
.refresh-panel #refresh-progress,.refresh-panel .refresh-fill{position:absolute;inset:0;pointer-events:none;z-index:-1}.refresh-panel .refresh-fill{right:auto;background:var(--deep);transition:width .25s ease}
.topbar .top-status .refresh-panel #refresh{background:transparent;border-radius:0;box-shadow:none;text-align:left;min-width:0;padding:12px 15px;font-size:13px;display:flex;align-items:center;gap:8px;color:white}
.refresh-panel #refresh-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:380px}.refresh-panel #refresh:disabled{opacity:1;cursor:wait}
.top-status .refresh-panel .refresh-settings,.refresh-panel #refresh-collapse{border:0;border-left:1px solid #ffffff45;border-radius:0;background:transparent;color:white;white-space:nowrap;padding:12px 10px;font-size:12px;align-self:stretch}
.refresh-panel button:focus-visible{outline:2px solid #d6e9a4;outline-offset:-4px}.refresh-panel.partial{background:#a77c20;border-color:#8a650d}.refresh-panel.partial .refresh-fill{background:#8a650d}
.refresh-panel.compact #refresh-description{display:none}.refresh-panel.compact #refresh-settings{pointer-events:none}.refresh-panel.compact #refresh{padding:10px}.refresh-panel.compact #refresh-collapse{padding:10px}
#main>.request-status{display:none}
@media(max-width:680px){.topbar .top-status .refresh-panel #refresh{padding:10px;font-size:12px}.refresh-panel #refresh-description{max-width:170px}.top-status .refresh-panel .refresh-settings,.refresh-panel #refresh-collapse{padding:10px 8px}}
@media(max-width:680px){.top-status .refresh-controls{right:14px;bottom:80px}}

.watch-load-status{display:flex;align-items:center;gap:10px;padding:14px 20px;font-size:14px;color:var(--muted)}
.watch-load-status.warning{color:#8a6500;flex-wrap:wrap}
.watch-loading-icon{width:15px;height:15px;flex:0 0 15px;border:2px solid #dce5da;border-top-color:#356b48;border-radius:50%;animation:watch-loading .8s linear infinite}
@keyframes watch-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.watch-loading-icon{animation:none}}
