/* Nova Ledger: focused financial workspace, Nov 2026. CSS-only theme and screen refinement. */
:root{--nova-ice:#EAF4F4;--nova-navy:#1F3A5F;--nova-sky:#5AA9E6;--nova-ink:#222831;--nova-paper:#fff;--nova-stroke:#c9dce8;--nova-subtext:#56697a;--nova-elev:0 5px 19px rgba(31,58,95,.055)}
/* Preview is an informational release-state banner, not a tab that changes account state. */
.nova-preview-banner{display:flex;align-items:center;justify-content:center;gap:12px;min-height:55px;padding:10px 18px;background:#1F3A5F;color:#fff;font-size:14px;line-height:1.35;text-align:center;border-bottom:3px solid #5AA9E6}
.nova-preview-banner strong{padding:5px 10px;border:1px solid #a8d9f3;border-radius:6px;color:#eaf4f4;background:#325b82;letter-spacing:.12em;font-size:12px;font-weight:800}
.nova-preview-banner span{font-weight:560}
.nova-preview-banner a{display:inline-flex;align-items:center;justify-content:center;color:#fff;border:1px solid #8fc9eb;border-radius:9px;padding:7px 12px;text-decoration:none;font-weight:700}
.nova-preview-banner a:hover{background:#365e83}
.nova-preview-auth{margin:-10px -10px 16px;border-radius:12px;min-height:56px}
.nova-preview-workspace{flex:0 0 auto;min-height:52px}
/* Leave base UI typography readable, avoiding oversized hero text in everyday ledger screens. */
.shell{--bg:#EAF4F4;--line:#d6e4eb;--card:#fff;--ink:#222831;--muted:#627489}
.shell .content-main{padding:31px clamp(17px,3.15vw,48px) 60px}
.shell .topbar{background:#fff;min-height:72px;height:auto;padding:15px clamp(17px,3.15vw,48px)}
.shell :is(.page-head h1,.nova-dashboard-head h1){font-size:clamp(24px,2.15vw,32px);line-height:1.17;letter-spacing:-.035em;color:var(--ink);margin:0}
.shell :is(.page-head p,.nova-dashboard-head p){font-size:13px;color:#597082;line-height:1.5;margin:6px 0 0}
.shell :is(.card,.panel){border:1px solid #d8e6ed;background:#fff;border-radius:16px;box-shadow:var(--nova-elev)}
.shell .kpis{gap:14px;margin-bottom:18px}
.shell .kpi{padding:20px;min-height:143px}
.shell .kpi-label{font-size:12px;color:#597083}
.shell .kpi-num{font-size:clamp(20px,2vw,29px);margin-top:12px;color:#1F3A5F}
.shell .kpi-foot{font-size:11px;color:#5d7081}
.shell :is(.card-heading h2,.table-heading h2){font-size:16px;font-weight:750;line-height:1.25;color:#1F3A5F}
.shell :is(.card-sub,.table-heading small){color:#5e7488;font-size:12px}
.shell .card-pad{padding:21px}
.shell .two-col{gap:15px;margin-bottom:17px}
.shell :is(.btn,.top-quick,.text-link){font-size:13px}
.shell .table-heading{padding:19px 22px}
.shell .table-card th{font-size:10px;color:#526879}
.shell .table-card td{font-size:12px;color:#3f5364;padding:13px 20px}
.shell .table-card td strong{font-size:12px;color:#203d60}
.shell .table-card td small{font-size:11px;color:#5d7282}
.shell .table-card thead{background:#f2f8fa}
.shell .breakdown-meta{font-size:12px;color:#4d6479}
.shell .breakdown-meta b{font-size:12px;color:#243f60}
.shell .breakdown-track{background:#dceaf3}
.shell .nav-item{color:#bfd3e8;font-size:14px;line-height:1.35}
.shell .nav-item.active{color:#fff}
/* Overview: a clear content hierarchy without promotional ribbons or clutter. */
.nova-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 17px}
.nova-dashboard-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.nova-dashboard-actions .btn{white-space:normal}
body[data-nova-page='overview'] .top-quick{display:none}
body[data-nova-page='overview'] .studio-hero,body[data-nova-page='overview'] .studio-upsell{display:none!important}
.nova-dashboard-filter{border:1px solid #d7e5ed;background:#fff;border-radius:13px;margin-bottom:16px;box-shadow:var(--nova-elev);overflow:hidden}
.nova-dashboard-filter>summary{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#1F3A5F;cursor:pointer;padding:13px 17px;list-style:none}
.nova-dashboard-filter>summary::-webkit-details-marker{display:none}
.nova-dashboard-filter>summary::after{content:'+';margin-left:auto;font-size:22px;line-height:1;font-weight:400}
.nova-dashboard-filter[open]>summary::after{content:'−'}
.nova-dashboard-filter[open]>summary{border-bottom:1px solid #e4edf2}
.nova-dashboard-filter .filter-panel,.nova-dashboard-filter .studio-filter-panel{margin:0;border:0;box-shadow:none;border-radius:0}
.nova-filter-active{font-size:11px;color:#3176b2;background:#eaf4f4;padding:4px 8px;border-radius:6px}
.nova-primary-charts{align-items:stretch}
.nova-recent{margin:0 0 15px}
.nova-table-actions{display:flex;gap:12px;align-items:center}
.nova-insights-section{margin:17px 0 26px}
.nova-insights-toggle{width:100%;min-height:49px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:12px;border:1px solid #aecbdc;background:#eaf4f4;color:#1F3A5F;font-weight:750;font-size:14px}
.nova-insights-toggle:hover{background:#d8ecf6}
.nova-insights-toggle svg{color:currentColor}
.nova-insights-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:15px;margin:15px 0}
/* Checkbox stays next to its explanation, never stretches to entire panel width. */
:where(.auth-checkbox,.checkline,.nova-payment-check){display:inline-flex!important;align-items:flex-start;gap:10px;max-width:100%;line-height:1.45;text-align:left;cursor:pointer}
:where(.auth-checkbox,.checkline,.nova-payment-check)>input[type='checkbox']{flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px;margin:2px 0 0;accent-color:#1F3A5F}
:where(.auth-checkbox,.checkline,.nova-payment-check)>span{flex:0 1 auto;font-size:13px}
.nova-payment-check{padding:10px 4px;margin:0}
/* Transparent interaction on active mobile nav tabs. */
.shell .bottom-tabs button{color:#3f5970}
.shell .bottom-tabs button.active{color:#1F3A5F;background:#e1eff8;font-weight:800}
/* Dark theme tokens applied across tables, modals, inputs, diagrams, navigation and callouts. */
html[data-theme='dark']{color-scheme:dark;--nova-paper:#222831;--nova-elev:0 6px 18px rgba(0,0,0,.14)}
html[data-theme='dark'] body:has(.shell){background:#161f2a;color:#EAF4F4}
html[data-theme='dark'] .shell{--bg:#161f2a;--card:#222831;--ink:#EAF4F4;--muted:#b3c7d9;--line:#41576b}
html[data-theme='dark'] .shell .content-wrap{background:#161f2a;color:#EAF4F4}
html[data-theme='dark'] .shell :is(.topbar,.card,.panel,.nova-dashboard-filter,.table-heading,.filters,.settings-card){background:#222831!important;border-color:#41576b!important;color:#EAF4F4!important}
html[data-theme='dark'] .shell :is(.kpi-num,.page-head h1,.nova-dashboard-head h1,.card-heading h2,.table-heading h2,.table-card td strong,.breakdown-meta b){color:#EAF4F4!important}
html[data-theme='dark'] .shell :is(.page-head p,.nova-dashboard-head p,.kpi-label,.kpi-foot,.card-sub,.table-heading small,.table-card td,.table-card td small,.breakdown-meta,.legend,.today-date,.sync-indicator){color:#b7cbd9!important}
html[data-theme='dark'] .shell :is(.table-card thead,.table-scroll thead){background:#2d4053!important}
html[data-theme='dark'] .shell :is(.table-card th,.table-scroll th){color:#c3d9e8!important}
html[data-theme='dark'] .shell :is(.table-card td,.table-scroll td){border-color:#40566a!important}
html[data-theme='dark'] .shell :is(input,select,textarea,.input,.select){background:#27384a!important;color:#EAF4F4!important;border-color:#506b80!important}
html[data-theme='dark'] .shell :is(.btn:not(.primary),.text-link){background:#2b4155;color:#eaf4f4;border-color:#52728a}
html[data-theme='dark'] .shell .btn.primary{background:#5AA9E6!important;color:#10273e!important;border-color:#5AA9E6!important}
html[data-theme='dark'] :is(.nova-dashboard-filter>summary,.nova-insights-toggle,.nova-payment-check,.auth-checkbox){color:#EAF4F4!important}
html[data-theme='dark'] :is(.nova-dashboard-filter,.nova-insights-toggle){background:#24394c;border-color:#587993}
html[data-theme='dark'] .nova-insights-toggle:hover{background:#2b4961}
html[data-theme='dark'] .nova-filter-active{background:#314f64;color:#cdeaff}
html[data-theme='dark'] .shell :is(.nav-item,.nav-ico,.icon-btn,.bottom-tabs button,.avatar) :is(svg,path,rect,circle,line,polyline){stroke:currentColor}
html[data-theme='dark'] .shell :is(.nav-item,.nav-ico,.icon-btn,.bottom-tabs button){color:#e4f3ff}
html[data-theme='dark'] .shell .bottom-tabs button.active{color:#9ad7ff;background:#2d455a}
html[data-theme='dark'] .nova-preview-banner{background:#5AA9E6;color:#182f45;border-bottom-color:#EAF4F4}
html[data-theme='dark'] .nova-preview-banner strong{color:#EAF4F4;background:#1F3A5F;border-color:#1F3A5F}
html[data-theme='dark'] .nova-preview-banner a{color:#142c44;border-color:#284e6b}
/* Marketing site can be dark if the user selected the system-wide theme. */
html[data-theme='dark'] body:has(.home-header){background:#172332;color:#EAF4F4}
html[data-theme='dark'] :is(.home-header,.home-footer,.home-features article,.home-plans article:not(.highlight),.steps>div){background:#222831!important;color:#EAF4F4;border-color:#435f77!important}
html[data-theme='dark'] :is(.home-brand-text strong,.home-header nav,.home-hero h1,.home-features h3,.steps h3,.home-section h2,.home-price){color:#EAF4F4}
html[data-theme='dark'] :is(.home-hero p,.home-about p,.home-features p,.steps p,.home-plans p,.home-footer){color:#bad0dc}
html[data-theme='dark'] .home-login{color:#EAF4F4!important}
/* Small-screen reading order, compact banner and usable tab targets. */
@media(max-width:1050px){.nova-insights-grid{grid-template-columns:1fr}}
@media(max-width:800px){.nova-dashboard-head{align-items:stretch;flex-direction:column}.nova-dashboard-actions{justify-content:flex-start}.nova-dashboard-head .btn{flex:1 1 auto}.shell .content-main{padding:18px 15px 66px}.nova-preview-banner{gap:8px;min-height:58px;padding:10px 12px;font-size:12px}.nova-preview-banner strong{font-size:11px;padding:5px 8px}.nova-preview-banner a{padding:6px 9px}.shell .kpis{gap:9px}.shell .kpi{min-height:127px;padding:15px}.shell .card-pad{padding:16px}.nova-table-actions{gap:6px}}
@media(max-width:390px){.nova-preview-banner{flex-wrap:wrap}.nova-preview-banner span{max-width:160px}.nova-preview-workspace{gap:7px}}
@media(prefers-reduced-motion:reduce){.nova-dashboard-head *,.nova-insights-toggle{transition:none!important}}

/* Marketing homepage: simple visual preference control; same key as PWA. */
.nova-home-theme-switch{flex:0 0 43px;display:grid;place-items:center;width:43px;height:43px;border:1px solid #97bad4;border-radius:11px;background:#fff;color:#1F3A5F;font-size:23px;line-height:1;cursor:pointer}
.nova-home-theme-switch:hover{background:#ddecf5}
html[data-theme='dark'] .nova-home-theme-switch{background:#283f55;color:#EAF4F4;border-color:#5d809b}
html[data-theme='dark'] .nova-home-theme-switch:hover{background:#34526c}
@media(max-width:650px){.nova-home-theme-switch{width:39px;height:39px;flex-basis:39px;font-size:21px}.home-auth{gap:5px}}
