/* v4.10.0.5 — full dashboard and theme overhaul */
:root{
 --mml-positive:#38c776;
 --mml-negative:#ef5e68;
 --mml-neutral:#e9eee9;
}
body.theme-dark{
 --bg:#070a08;--panel:#111612;--panel-2:#171d18;--text:#f5f8f5;--muted:#a9b5ac;--line:#303a32;--input:#0b100c;--accent:#91e52c;
 background:var(--bg)!important;color:var(--text)!important;
}
body.theme-light{
 --bg:#ffffff;--panel:#eef1f3;--panel-2:#e4e8eb;--text:#111417;--muted:#58616a;--line:#cbd2d8;--input:#ffffff;--accent:#1769aa;
 background:#fff!important;color:#111417!important;
}
body.theme-slate{
 --bg:#101722;--panel:#1a2634;--panel-2:#223247;--text:#f5f8fc;--muted:#b9c6d3;--line:#40536a;--input:#111c29;--accent:#26c6c9;
 background:var(--bg)!important;color:var(--text)!important;
}
body.theme-light .beta-shell,body.theme-light .beta-main,body.theme-light .content,body.theme-light #page{background:#fff!important;color:#111417!important}
body.theme-light .beta-sidebar,body.theme-light .sidebar{background:#eef1f3!important;color:#111417!important;border-right:1px solid #cbd2d8!important}
body.theme-light .app-brand,body.theme-light .club-card,body.theme-light .beta-club-card,body.theme-light .sidebar-foot{color:#111417!important}
body.theme-light .nav-leaf,body.theme-light .nav-group-toggle,body.theme-light .admin-center-link{color:#20262b!important}
body.theme-light .nav-leaf:hover,body.theme-light .nav-leaf.active,body.theme-light .nav-group-toggle:hover{background:#dde4e9!important;color:#0f4f82!important}
body.theme-light .nav-submenu{border-color:#cbd2d8!important}
body.theme-light .topbar,body.theme-light .beta-topbar{background:rgba(255,255,255,.96)!important;color:#111417!important;border-color:#d8dde1!important}
body.theme-light .panel,body.theme-light .card,body.theme-light article,body.theme-light .season-timeline-v410,body.theme-light .dashboard-welcome,body.theme-light .dashboard-view-toolbar,body.theme-light .dashboard-quick-stats article,body.theme-light .cockpit-grid>.panel{
 background:#eef1f3!important;color:#111417!important;border-color:#cbd2d8!important;box-shadow:none!important;
}
body.theme-light h1,body.theme-light h2,body.theme-light h3,body.theme-light h4,body.theme-light b,body.theme-light strong,body.theme-light label,body.theme-light span{color:inherit}
body.theme-light p,body.theme-light small,body.theme-light .note,body.theme-light .hint{color:#58616a!important}
body.theme-light input,body.theme-light select,body.theme-light textarea,body.theme-light button.secondary,body.theme-light button.ghost{
 background:#fff!important;color:#111417!important;border-color:#aeb8c0!important;
}
body.theme-light .status-item,body.theme-light .financial-breakdown-v41004 .status-item{background:#fff!important;border-color:#cbd2d8!important;color:#111417!important}
body.theme-light .financial-breakdown-v41004 .status-item span{color:#111417!important}
body.theme-light .timeline-current-v410,body.theme-light .timeline-node-v410,body.theme-light .timeline-eos-v410{background:#e4e8eb!important;border-color:#cbd2d8!important;color:#111417!important}
body.theme-light .timeline-node-v410 h3,body.theme-light .timeline-node-v410 p,body.theme-light .timeline-deadline-v410 b{color:#111417!important}
body.theme-light .timeline-node-v410.is-active{border-color:#1769aa!important;box-shadow:0 0 0 1px rgba(23,105,170,.18)!important}
body.theme-light .timeline-dot-v410,body.theme-light .is-active .timeline-dot-v410{background:#1769aa!important;color:#fff!important}
body.theme-light .club-cockpit-v41004 .cockpit-alert-v41004{color:#8b1e28!important;background:#f8dfe2!important;border-color:#e5aab0!important}
body.theme-light .club-cockpit-v41004 .cockpit-ok-v41004{color:#176438!important;background:#dbf2e4!important;border-color:#9fd3b1!important}

/* Slate is a complete navy/cyan visual identity. */
body.theme-slate .beta-sidebar,body.theme-slate .topbar,body.theme-slate .beta-topbar{background:#152131!important;border-color:#40536a!important}
body.theme-slate .nav-leaf:hover,body.theme-slate .nav-leaf.active,body.theme-slate .nav-group-toggle:hover{background:#253a50!important;color:#73f0f2!important}
body.theme-slate .panel,body.theme-slate .card,body.theme-slate article,body.theme-slate .season-timeline-v410{background:#1a2634!important;border-color:#40536a!important;color:#f5f8fc!important}
body.theme-slate input,body.theme-slate select,body.theme-slate textarea{background:#111c29!important;color:#f5f8fc!important;border-color:#506680!important}
body.theme-slate .primary{background:#26c6c9!important;color:#071416!important}

/* Account belongs at the very bottom of the navigation, below Info. */
.beta-nav .nav-account{margin-top:auto!important;border-top:1px solid var(--line);padding-top:12px}
.beta-nav{display:flex!important;flex-direction:column!important;min-height:0}

/* Dashboard order and density. */
.dashboard-welcome{margin-bottom:12px!important}
.dashboard-view-toolbar{margin-bottom:10px!important;padding:8px 12px!important}
.season-timeline-v410{padding:12px!important;margin-bottom:12px!important}
.timeline-heading-v410{margin-bottom:9px!important;align-items:center!important}
.timeline-heading-v410 h2{font-size:1.15rem!important}.timeline-heading-v410 p{font-size:.78rem!important}
.timeline-current-v410{padding:7px 10px!important;min-width:160px!important}
.timeline-track-v410{display:grid!important;grid-template-columns:repeat(7,minmax(120px,1fr))!important;gap:7px!important;overflow-x:auto!important}
.timeline-node-v410{min-height:142px!important;padding:9px!important;border-radius:11px!important}
.timeline-node-v410 h3{font-size:.78rem!important;margin:8px 0 4px!important}.timeline-node-v410 p{font-size:.68rem!important;min-height:27px!important}.timeline-dot-v410{width:23px!important;height:23px!important;font-size:.72rem!important}.timeline-deadline-v410{margin-top:7px!important;padding-top:6px!important}.timeline-deadline-v410 span,.timeline-deadline-v410 b{font-size:.66rem!important}
.dashboard-squad-strip-v41005,.dashboard-finance-strip-v41005{display:grid;gap:10px;margin:0 0 12px}
.dashboard-squad-strip-v41005{grid-template-columns:repeat(6,minmax(0,1fr))}
.dashboard-finance-strip-v41005{grid-template-columns:repeat(5,minmax(0,1fr))}
.dashboard-squad-strip-v41005>.card,.dashboard-finance-strip-v41005>.card{margin:0!important;min-width:0!important;padding:12px!important}
.dashboard-squad-strip-v41005 b,.dashboard-finance-strip-v41005 b{font-size:1.25rem!important;white-space:nowrap}
.dashboard-primary-bottom-v41005{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.8fr) minmax(240px,.7fr);gap:12px;align-items:start;margin-top:4px}
.dashboard-primary-bottom-v41005>.panel{margin:0!important;min-width:0}
.preseason-wishes-panel,.preseason-warning-link-v463,.compact-preseason-summary,.dashboard-bottom-preseason{display:none!important}
.dashboard-optional-lab-v41005[hidden],.dashboard-optional-lab-v41004[hidden]{display:none!important}
.money-positive-v41005,.finance-positive-v41004,.status-item .ok,.card.kpi b.ok{color:var(--mml-positive)!important}
.money-negative-v41005,.finance-negative-v41004,.status-item .bad,.card.kpi b.bad{color:var(--mml-negative)!important}
.money-neutral-v41005{color:var(--mml-neutral)!important}
body.theme-light .money-neutral-v41005{color:#111417!important}
.financial-breakdown-v41004 .status-item:last-child,.financial-breakdown-panel .status-item:last-child{font-weight:800}
.financial-breakdown-v41004>small,.financial-breakdown-panel>small,.financial-breakdown-v41004 .hint,.financial-breakdown-panel .hint{background:var(--panel-2)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:10px;padding:10px!important;display:block}

@media(max-width:1350px){
 .dashboard-squad-strip-v41005{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dashboard-finance-strip-v41005{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dashboard-primary-bottom-v41005{grid-template-columns:1fr 1fr}.dashboard-primary-bottom-v41005>:first-child{grid-column:1/-1}
 .timeline-track-v410{grid-template-columns:repeat(7,145px)!important}
}
@media(max-width:760px){
 .dashboard-squad-strip-v41005,.dashboard-finance-strip-v41005,.dashboard-primary-bottom-v41005{grid-template-columns:1fr!important}
 .dashboard-primary-bottom-v41005>:first-child{grid-column:auto}
 .timeline-heading-v410{display:block!important}.timeline-current-v410{margin-top:8px!important;text-align:left!important}
}

/* v4.10.0.6 dashboard repair */
.dashboard-club-identity,.hero{order:-10;margin-top:0!important;margin-bottom:12px!important}
.dashboard-welcome{margin-bottom:12px!important}
.dashboard-financial-layout-v41006{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:14px;align-items:start;margin-top:14px}
.dashboard-financial-layout-v41006>.panel,.dashboard-financial-side-v41006>.panel{margin:0!important;min-width:0!important}
.dashboard-financial-side-v41006{display:grid;gap:14px;min-width:0}
.financial-breakdown-v41006 .status-list{display:grid!important;gap:8px!important}
.financial-breakdown-v41006 .status-item{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:12px 14px!important;min-height:46px!important;white-space:normal!important}
.financial-breakdown-v41006 .status-item span{min-width:0!important;color:var(--text)!important;background:transparent!important}
.financial-breakdown-v41006 .status-item b{margin-left:auto!important;white-space:nowrap!important;background:transparent!important}
.financial-breakdown-v41006 .status-item.total-balance{margin-top:5px!important;border-width:2px!important}
.club-cockpit-v41006{display:grid;gap:10px}
.cockpit-link-v41006{width:100%;display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;align-items:center;padding:12px 13px;border-radius:10px;border:1px solid rgba(239,94,104,.6);background:rgba(239,94,104,.12);color:var(--text);font:inherit;font-weight:700;cursor:pointer}
.cockpit-link-v41006:hover{border-color:var(--accent);transform:translateY(-1px)}
.cockpit-link-v41006 span{color:var(--accent)!important;white-space:nowrap;background:transparent!important}
.dashboard-view-toolbar--bottom-v41006{margin-top:18px!important;margin-bottom:0!important;order:100}
body.theme-light .financial-breakdown-v41006 .status-item{background:#fff!important;color:#111417!important}
body.theme-light .financial-breakdown-v41006 .status-item span{color:#111417!important}
body.theme-light .cockpit-link-v41006{background:#fff1f2!important;color:#721c24!important;border-color:#e3a2a8!important}
body.theme-light .cockpit-link-v41006 span{color:#1769aa!important}
@media(max-width:1050px){.dashboard-financial-layout-v41006{grid-template-columns:1fr}.dashboard-financial-side-v41006{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.dashboard-financial-side-v41006{grid-template-columns:1fr}.financial-breakdown-v41006 .status-item{padding:10px!important;gap:10px!important}.financial-breakdown-v41006 .status-item b{font-size:.88rem!important}}
