/* Nova Ledger | alignment + controlled glass | 2026-11-10
   Presentation only: never intercept touch/scroll or persist finance data. */
:root { --nl-glass:rgba(255,255,255,.86); --nl-glass-border:rgba(160,191,211,.54); --nl-glass-shadow:0 8px 30px rgba(31,58,95,.065); }
html,body { overscroll-behavior-y:none; }
html { scroll-padding-top:80px; }
body { min-width:0; }
:where(.shell,.content-wrap,.content-main,.card,.kpi,.page-head,.nova-dashboard-head,.home-section,.public-content) { min-width:0; }
.shell .sidebar { overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; touch-action:auto; }
.shell .content-wrap { min-width:0; }
.shell .content-main { width:100%; margin-inline:auto; }
.shell :is(.page-head,.nova-dashboard-head,.card-heading,.table-heading) { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 18px; }
.shell :is(.head-actions,.nova-dashboard-actions,.actions-cell) { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.shell :is(.head-actions,.nova-dashboard-actions) > * { margin:0; }
.shell :is(.field,.form-field) { min-width:0; }
.shell :is(.field label,.form-field label) { display:block;margin-bottom:6px; }
.shell :is(.form-grid,.filters,.kpis,.two-col,.settings-grid) > * { min-width:0; }
.shell :is(input,select,textarea,.input,.select) { max-width:100%; box-sizing:border-box; }
.shell .table-scroll { max-width:100%; }
.shell .topbar { gap:12px; }
.shell .top-actions { display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0; }
.shell .top-actions .sync-indicator[hidden] {display:none!important}
.shell .breadcrumb { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
/* Sidebar: logo and wordmark sit on one baseline, not stacked. */
#sidebar.sidebar .brand.new-brand {
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
 gap:10px!important;margin:0 6px 20px!important;padding:7px 7px!important;text-decoration:none;min-width:0;
}
#sidebar.sidebar .nova-custom-sidebar-logo { flex:none;width:38px!important;height:38px!important;border-radius:11px!important;object-fit:cover!important;box-shadow:0 3px 13px #0003; }
#sidebar.sidebar .nova-custom-sidebar-name { display:block;flex:1;min-width:0;font-family:'Inter',system-ui,sans-serif!important;font-size:17px!important;font-weight:780!important;line-height:1.2;letter-spacing:-.03em!important;white-space:nowrap;color:#f5fbff; }
#sidebar.sidebar .nova-sidebar-legal { display:flex;flex-direction:column;gap:2px; }
#sidebar.sidebar .nova-sidebar-legal .nav-item { display:flex;align-items:center;width:100%;text-align:left;text-decoration:none;line-height:1.4; }
#sidebar.sidebar .nova-side-copyright { font-size:10px;line-height:1.4;color:#a9c3d5;letter-spacing:.01em;margin:10px 11px 0; }
#sidebar.sidebar .sidebar-bottom {padding-top:10px;}
/* Restrained glass: solid enough to preserve table contrast, no blur applied to scrolling sidebar. */
.shell .topbar {background:var(--nl-glass)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--nl-glass-border)!important;}
.shell :is(.card,.kpi,.plan-card,.nova-dashboard-filter) { background:var(--nl-glass)!important;border-color:var(--nl-glass-border)!important;box-shadow:var(--nl-glass-shadow); }
.shell :is(.card,.kpi,.plan-card) {backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.shell .kpi { display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px; }
.shell .kpi :is(.kpi-label,.kpi-num,.kpi-foot) { margin-inline:0; }
.shell .content-wrap {background:linear-gradient(135deg,#eaf4f4 0%,#f4f9fc 50%,#e9f3f9 100%)!important;}
.auth-gate .auth-card {background:rgba(255,255,255,.92)!important;backdrop-filter:blur(10px);}
.home-features article,.home-plans article:not(.highlight) {background:rgba(255,255,255,.78)!important;backdrop-filter:blur(8px);border-color:rgba(164,195,215,.65)!important;box-shadow:0 12px 28px rgba(31,58,95,.065)!important;}
/* Remove redundant page footers: legal links now live in the sidebar or compact site info drawer. */
.shell .footer,.public-footer,.home-footer {display:none!important;}
/* Bottom dock: plus icon only, preserved accessible button label. */
@media(max-width:880px) {
 .shell .bottom-tabs .bottom-add { display:grid!important;place-items:center!important;align-self:center!important;justify-self:center!important;width:45px!important;min-width:45px!important;max-width:45px!important;height:45px!important;min-height:45px!important;padding:0!important;border-radius:14px!important; }
 .shell .bottom-tabs .bottom-add .bottom-tab-icon {width:24px!important;height:24px!important;}
 .shell .bottom-tabs { isolation:isolate; }
 .shell .content-main {padding-bottom:calc(95px + env(safe-area-inset-bottom,0px))!important;}
 .shell .page-head,.shell .nova-dashboard-head { align-items:stretch; }
 .shell :is(.head-actions,.nova-dashboard-actions) {width:100%;}
 .shell :is(.head-actions,.nova-dashboard-actions) .btn { flex:1 1 auto; }
}
/* Public/legal links stay discoverable without repetitive footers. */
.nova-site-menu { position:relative;display:inline-block;flex:none;z-index:60; }
.nova-site-menu > summary { list-style:none;display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 12px;border-radius:10px;border:1px solid #bed5e5;background:rgba(255,255,255,.82);color:#1F3A5F;font:650 12px/1.2 'Inter',system-ui,sans-serif;cursor:pointer;user-select:none;white-space:nowrap; }
.nova-site-menu > summary::-webkit-details-marker{display:none}
.nova-site-menu > summary::after {content:'☰';margin-left:7px;font-size:14px;}
.nova-site-menu > summary:focus-visible {outline:3px solid #5AA9E6;outline-offset:3px;}
.nova-site-menu[open] > summary {background:#1F3A5F;color:#fff;}
.nova-site-menu-panel {position:fixed;right:0;top:0;bottom:0;z-index:58;width:min(300px,85vw);height:100dvh;overflow-y:auto;box-sizing:border-box;padding:72px 20px 28px;background:rgba(23,44,67,.96);border-left:1px solid rgba(180,210,228,.4);color:#eff8ff;box-shadow:-20px 0 50px #0d25374d;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overscroll-behavior:contain;}
.nova-site-menu-panel strong{display:block;font-size:14px;margin:2px 0 16px;letter-spacing:.02em;}
.nova-site-menu-panel nav{display:flex!important;flex-direction:column!important;align-items:stretch;gap:3px!important;}
.nova-site-menu-panel nav a{display:block;color:#f0f8ff!important;border-radius:9px;font:550 13px/1.35 'Inter',system-ui,sans-serif;padding:12px;text-decoration:none;}
.nova-site-menu-panel nav a:hover,.nova-site-menu-panel nav a:focus-visible{background:#335d7f;color:#fff!important;}
.nova-site-menu-panel small {display:block;color:#b4cbdd;margin-top:20px;font-size:11px;}
.nova-site-menu[open]>summary{position:relative;z-index:61;}
.public-top .nova-site-menu{margin-left:auto;}
.public-top .public-back{margin-left:auto;}
.home-header .home-auth{min-width:0;}
.home-header .nova-site-menu{align-self:center;}
@media(max-width:650px){
 .home-header {gap:8px!important;}
 .home-header .home-auth{flex-wrap:wrap;justify-content:flex-end;}
 .home-header .nova-site-menu>summary{padding:8px 10px;font-size:11px;min-height:36px;}
 .public-top .public-brand{min-width:0;font-size:15px;}
 .public-top .public-brand img{width:34px;height:34px;}
 .public-top .public-back{font-size:11px;white-space:nowrap;}
}
html[data-theme='dark'] {--nl-glass:rgba(32,47,63,.91);--nl-glass-border:rgba(96,127,152,.48);--nl-glass-shadow:0 10px 25px rgba(0,0,0,.15);}
html[data-theme='dark'] .shell .content-wrap{background:linear-gradient(155deg,#172330,#1b2a3a 65%,#182c3e)!important;}
html[data-theme='dark'] .shell :is(.card,.kpi,.plan-card,.nova-dashboard-filter){color:#EAF4F4;}
html[data-theme='dark'] .auth-gate .auth-card{background:rgba(29,45,61,.96)!important;}
html[data-theme='dark'] .home-features article,html[data-theme='dark'] .home-plans article:not(.highlight){background:rgba(34,40,49,.92)!important;border-color:#415b73!important;}
html[data-theme='dark'] .nova-site-menu>summary{background:#2b4358;border-color:#537590;color:#ecf7ff;}
@media(prefers-reduced-motion:reduce){.shell :is(.card,.kpi,.plan-card){backdrop-filter:none;}.nova-site-menu-panel{backdrop-filter:none;}}
@media print {.nova-site-menu{display:none!important}.shell .topbar{backdrop-filter:none}.shell .card,.shell .kpi{backdrop-filter:none;box-shadow:none!important;}}

/* Public header keeps company + Menu on row one, actions balanced on row two. */
@media(max-width:650px){
 .home-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:10px 12px;}
 .home-header .home-brand{grid-column:1;grid-row:1;justify-self:start;}
 .home-header>.nova-site-menu{grid-column:2;grid-row:1;justify-self:end;}
 .home-header .home-auth{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:6px;}
 .home-header .home-auth .nova-home-theme-switch{flex:0 0 39px;}
 .home-header .home-auth .home-login{flex:0 1 auto;padding:10px 9px!important;}
 .home-header .home-auth .home-cta{flex:0 1 auto;gap:6px;min-width:0;white-space:nowrap;}
}
/* Auth requires public policy access, but the links are no longer repeated below the form. */
.auth-gate .auth-card{position:relative;}
.auth-gate .nova-site-auth-menu{position:absolute;right:17px;top:18px;z-index:70;}
.auth-gate .nova-site-auth-menu>summary{font-size:11px;padding:6px 9px;min-height:34px;}
@media(max-width:420px){.auth-gate .nova-site-auth-menu{right:12px;top:14px;}}
