/* Site-wide appearance. Geometry remains in the established component styles. */
html,body.app-shell{background:var(--brand-bg);color:var(--brand-text);color-scheme:dark}
body.app-shell{
 --ui-bg:var(--brand-bg);--ui-surface:var(--brand-panel);--ui-text:var(--brand-text);--ui-muted:var(--brand-muted);
 --ui-accent:var(--brand-sage);--ui-accent-soft:var(--brand-button);--ui-border:var(--brand-border);
 --bg:var(--brand-bg);--surface:var(--brand-panel);--raised:var(--brand-raised);--text:var(--brand-text);
 --muted:var(--brand-muted);--accent:var(--brand-sage);--border:var(--brand-border);--green:var(--brand-sage);
 font-family:Arial,Helvetica,sans-serif;font-weight:500;
}
body.app-shell :is(p,small,label,legend,summary,dt,dd,td,th,h1,h2,h3,h4){color:var(--brand-text)}
body.app-shell :is(.muted,.metric-label,.receipt-meta,.login-caption){color:var(--brand-muted)!important;opacity:1}
body.app-shell :is(a,a:visited){color:var(--brand-sage-soft)}
body.app-shell a:hover{color:var(--brand-text)}
body.app-shell :is(.app-header,.app-nav,.app-account,.ui07-private,.ui07-account-content){background:var(--brand-panel);color:var(--brand-text)}
body.app-shell .ui07-account-menu>summary{color:var(--brand-text)!important;opacity:1}
body.app-shell .ui07-account-content :is(a,button){color:var(--brand-text)!important}
body.app-shell :is(button,.ui-button,.button-link,.ui07-button),
body.app-shell .app-workspace :is(button,.button-link,.ui07-button),
body.app-shell .app-header button,body.app-shell .ui07-action{
 background:var(--brand-button)!important;color:var(--brand-text)!important;border-color:var(--brand-sage)!important;
 font-family:inherit;font-weight:600;box-shadow:none;
}
body.app-shell :is(button,.ui-button,.button-link):hover:not(:disabled){background:var(--brand-button-hover)!important}
body.app-shell :is(button,.ui-button):disabled{background:var(--brand-raised)!important;color:var(--brand-muted)!important;border-color:var(--brand-border)!important;opacity:1}
body.app-shell :is(input,select,textarea),body.app-shell .app-workspace :is(input,select,textarea){background:var(--brand-raised)!important;color:var(--brand-text)!important;border-color:var(--brand-border)!important;color-scheme:dark}
body.app-shell :is(input,textarea)::placeholder{color:var(--brand-muted)!important;opacity:1}
body.app-shell input::file-selector-button{background:var(--brand-button);color:var(--brand-text);border:1px solid var(--brand-sage);padding:6px 9px;border-radius:4px;font:inherit}
body.app-shell input:autofill{background:var(--brand-raised)!important;color:var(--brand-text)!important}
body.app-shell input:-webkit-autofill{-webkit-text-fill-color:var(--brand-text)!important;-webkit-box-shadow:0 0 0 1000px var(--brand-raised) inset}
body.app-shell :is(.ui02-shortcut,.ui02-action-list a,.ui02-next-actions a,.ui02-link,.ui07-wallet-available){background:var(--brand-raised)!important;color:var(--brand-text)!important;border-color:var(--brand-border)!important}
body.app-shell .ui07-wallet-available :is(.metric-label,.metric-value){color:var(--brand-text)!important}
body.app-shell :is(.intake-tabs,.ui05-tabs,.ui03-tabs,.ui04-tabs){background:var(--brand-panel);color:var(--brand-text)}
body.app-shell :is(.intake-tabs,.ui05-tabs,.ui03-tabs,.ui04-tabs) a{background:var(--brand-raised)!important;color:var(--brand-text)!important;border-color:var(--brand-border)!important}
body.app-shell :is(.intake-tabs,.ui05-tabs,.ui03-tabs,.ui04-tabs,.app-nav) a[aria-current=page]{background:var(--brand-button)!important;color:var(--brand-text)!important}
body.app-shell :is(thead th,.league-divider th,.league-market-headings th){background:var(--brand-raised)!important;color:var(--brand-text)!important;border-color:var(--brand-border)!important}
body.app-shell :is(.ui08-standings-table td,.ui08-standings-table td:nth-child(-n+2)){background:var(--brand-panel)!important;color:var(--brand-text)!important}
body.app-shell :is(.prob-home,.prob-bar span:nth-child(1)){background:var(--brand-chart-home)!important}
body.app-shell :is(.prob-draw,.prob-bar span:nth-child(2)){background:var(--brand-chart-draw)!important}
body.app-shell :is(.prob-away,.prob-bar span:nth-child(3)){background:var(--brand-chart-away)!important}
/* Keep the approved market cells distinct from ordinary action buttons. */
body.app-shell .fr19-workspace .analysed-table button:not(.nominated){background:var(--brand-market)!important;color:var(--brand-text)!important;border-color:var(--brand-market-border)!important}
body.app-shell .fr19-workspace .analysed-table button.nominated{background:var(--brand-success-bg)!important;color:var(--brand-success-text)!important;border-color:var(--brand-sage)!important}
body.app-shell .winning-odds{background:var(--brand-success-bg)!important;color:var(--brand-success-text)!important}
body.app-shell .login-stacked-logo{display:block;width:min(100%,320px);height:auto;margin:-45px auto -20px}
body.app-shell.login-page .app-header{display:none}
body.app-shell.login-page .login{max-width:430px;padding:26px;overflow:hidden}
body.app-shell.login-page .login-workspace{min-height:100vh;display:grid;place-items:center;padding:22px}
body.app-shell .league-list button{text-align:left;white-space:normal}
@media(max-width:500px){body.app-shell.login-page .login{padding:22px}body.app-shell .login-stacked-logo{width:280px;max-width:100%;margin:-35px auto -12px}}

body.app-shell .analysed-table :is(.date-divider,.date-market-headings) th{background:var(--brand-raised)!important;color:var(--brand-text)!important;border-color:var(--brand-border)!important;font-weight:650}
body.app-shell .analysed-table .date-divider th{text-align:left;padding:5px 7px;border-top:2px solid var(--brand-border)}
body.app-shell .analysed-table .date-market-headings th{position:static;padding:5px 3px;font-size:11px;line-height:1.3}

/* Explicit column widths survive the full-width date row in fixed table layout. */
body.app-shell .analysed-table col{width:63px}
body.app-shell .analysed-table col.analysis-column-0{width:70px}
body.app-shell .analysed-table col.analysis-column-1{width:205px}
body.app-shell .analysed-table col.analysis-column-2{width:220px}
body.app-shell .analysed-table col.analysis-column-14{width:50px}
body.app-shell .fr19-workspace .analysed-table .date-divider th{width:auto}
