/* Nova Ledger | Inter + 16px base + compact, tactile tabs | 2026-11-10
 * Last-in cascade layer; preserves existing app functionality and payment rules.
 * Inter is loaded by the HTML; system sans fallback works offline.
 */
:root{--nova-font:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;--nova-tab-navy:#1F3A5F;--nova-tab-sky:#5AA9E6;--nova-tab-ice:#EAF4F4;--nova-tab-charcoal:#222831}
html{font-size:16px!important}
body,button,input,textarea,select,option,summary{font-family:var(--nova-font)!important}
body{font-size:16px!important;line-height:1.5!important;font-weight:400}
:where(.shell,.auth-gate,.home-header,.home-section,.home-footer,.legal-panel,.layout,.owner-app){font-family:var(--nova-font)!important}
:where(h1,h2,h3,h4,h5,h6,.auth-editorial h2,.page-head h1,.studio-welcome h2,.card h2,.studio-card-head h2,.nova-custom-sidebar-name,.nova-custom-brand-name,.home-brand-text strong,.home-showcase){font-family:var(--nova-font)!important;letter-spacing:-.025em}
:where(pre,code,kbd,samp,.mono){font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}
/* 16px reading baseline, compact hierarchy in operational surfaces. */
.shell .content-main{font-size:14px}
.shell :is(.page-head h1,.nova-dashboard-head h1){font-size:clamp(21px,2vw,27px)!important;font-weight:750;letter-spacing:-.03em}
.shell :is(.card-heading h2,.table-heading h2,.settings-card h2){font-size:14px!important;font-weight:740}
.shell .kpi-num{font-size:clamp(19px,1.9vw,24px)!important}
.shell :is(.kpi-label,.kpi-foot,.card-sub,.table-heading small){font-size:11.5px!important;line-height:1.35}
.shell :is(.btn,.top-quick,.text-link,.nav-item,.nav-item.active,.nova-nav-toggle){font-size:12px!important;letter-spacing:0}
.shell :is(.btn,.top-quick){min-height:39px;padding:7px 12px;border-radius:9px}
.shell .nav-item{min-height:39px!important;padding-block:8px!important;border-radius:9px!important;transition:background-color .17s ease,color .17s ease,box-shadow .17s ease}
.shell .nav-item:hover{background:#e9f4fa!important;color:#1F3A5F!important}
.shell .nav-item.active{box-shadow:inset 3px 0 0 #5AA9E6;background:#e3f1fb!important;color:#1F3A5F!important;font-weight:760}
.shell :is(.input,.select,.field input,.field select,.field textarea){font-size:13px!important}
/* Account access tabs: compact segmented choices with clear selection. */
.auth-gate{font-size:14px!important}
.auth-gate :is(h1,h2){font-size:clamp(22px,2.4vw,28px)!important}
.auth-gate :is(input,button,label,.auth-small-note,.auth-message){font-size:13px}
.auth-gate .auth-modes{display:flex;gap:5px;padding:4px;background:#e6eff7;border:1px solid #cee0ec;border-radius:11px;box-shadow:inset 0 1px 3px rgba(31,58,95,.055)}
.auth-gate .auth-card .auth-mode-btn{flex:1;min-height:38px!important;padding:7px 11px!important;font-size:12.5px!important;font-weight:730;border:1px solid transparent!important;border-radius:8px!important;line-height:1.2;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.auth-gate .auth-card .auth-mode-btn:hover:not(.is-active){background:rgba(255,255,255,.7);color:#1F3A5F}
.auth-gate .auth-card .auth-mode-btn.is-active{background:#fff!important;color:#1F3A5F!important;border-color:#d8e6ef!important;box-shadow:0 2px 7px rgba(31,58,95,.11),inset 0 -2px 0 #5AA9E6!important}
/* Generic app tabs / chart ranges remain compact but usable on mobile. */
.shell :is([role='tab'],.tab-btn,.tabs button,.segmented button,.pulse-range button,.time-range button){min-height:38px!important;padding:7px 11px!important;font-size:12px!important;font-weight:675;line-height:1.25;border-radius:9px!important;transition:color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease}
.shell :is([role='tab'],.tab-btn,.tabs button,.segmented button,.pulse-range button):hover:not(:disabled){box-shadow:0 2px 9px rgba(31,58,95,.09)}
.shell :is([role='tab'][aria-selected='true'],.tab-btn.active,.tabs button.active,.segmented button.active,.pulse-range button.is-selected){background:#1F3A5F!important;color:#fff!important;box-shadow:0 2px 10px rgba(31,58,95,.22)!important}
/* Compact mobile bottom navigation with gentle tactile states and clear active marker. */
@media(max-width:880px){
 .shell .bottom-tabs{padding:5px 7px calc(6px + env(safe-area-inset-bottom,0px));gap:3px;box-shadow:0 -5px 17px rgba(18,45,72,.09)}
 .shell .bottom-tabs button{position:relative;min-height:46px!important;padding:5px 1px;font-size:10px!important;font-weight:670;gap:2px;border-radius:9px;transition:background .18s ease,color .18s ease,transform .18s ease}
 .shell .bottom-tabs button span{font-size:18px!important;line-height:1.1}
 .shell .bottom-tabs button.active:not(.bottom-add){color:#1F3A5F!important;background:#e6f3fc!important;font-weight:800}
 .shell .bottom-tabs button.active:not(.bottom-add)::after{content:'';position:absolute;left:30%;right:30%;bottom:2px;height:2px;border-radius:3px;background:#5AA9E6}
 .shell .bottom-tabs .bottom-add{min-height:46px!important;max-width:54px;border-radius:10px;background:#1F3A5F!important;color:#fff!important;box-shadow:0 3px 10px rgba(31,58,95,.19)}
 .shell .bottom-tabs .bottom-add span{font-size:20px!important}
}
/* Marketing: retain expressive hierarchy while keeping body font at 16px. */
.home-header nav,.home-header nav a{font-size:13px!important}
.home-hero h1{font-size:clamp(34px,4vw,58px)!important;line-height:1.12}
.home-hero p,.home-hero-text>p,.home-about p,.home-features p,.steps p{font-size:15px!important;line-height:1.57}
.home-section h2,.section-heading h2,.home-about h2{font-size:clamp(25px,3vw,40px)!important}
.home-cta,.home-login,.home-quiet,.plan-link{font-size:13px!important}
.home-cta{min-height:42px!important;padding:10px 15px!important;border-radius:10px!important}
.home-preview-tabs{font-size:12px}
/* Keep preview as a banner, not a small tab. */
.nova-preview-banner{font-size:12px!important}
/* Dark surface: selected and unselected controls are visibly different. */
html[data-theme='dark'] .auth-gate .auth-modes{background:#21374b!important;border-color:#4a6780!important}
html[data-theme='dark'] .auth-gate .auth-card .auth-mode-btn:not(.is-active){color:#c6dcec!important}
html[data-theme='dark'] .auth-gate .auth-card .auth-mode-btn:not(.is-active):hover{background:#34546b!important;color:#fff!important}
html[data-theme='dark'] .auth-gate .auth-card .auth-mode-btn.is-active{color:#f7fbff!important;background:#315472!important;border-color:#527b9b!important;box-shadow:inset 0 -2px 0 #5AA9E6,0 2px 8px #0002!important}
html[data-theme='dark'] .shell .nav-item:hover{background:#263d56!important;color:#eaf4f4!important}
html[data-theme='dark'] .shell .nav-item.active{background:#2b4b65!important;color:#f3faff!important;box-shadow:inset 3px 0 0 #5AA9E6}
html[data-theme='dark'] .shell :is([role='tab'][aria-selected='true'],.tab-btn.active,.tabs button.active,.segmented button.active,.pulse-range button.is-selected){background:#5AA9E6!important;color:#132a40!important;box-shadow:0 2px 9px #0003!important}
html[data-theme='dark'] .shell :is([role='tab'],.tab-btn,.tabs button,.segmented button,.pulse-range button):not(.active):not(.is-selected):not([aria-selected='true']){color:#eaf4f4}
html[data-theme='dark'] .shell .bottom-tabs button.active:not(.bottom-add){color:#eaf4f4!important;background:#304b62!important}
html[data-theme='dark'] .shell .bottom-tabs .bottom-add{background:#5AA9E6!important;color:#152c43!important}
/* Focus and motion safety. */
:where(.auth-mode-btn,.bottom-tabs button,.nav-item,[role='tab'],.tab-btn):focus-visible{outline:2px solid #5AA9E6!important;outline-offset:2px!important}
@media(prefers-reduced-motion:reduce){.auth-mode-btn,.bottom-tabs button,.nav-item,[role='tab'],.tab-btn{transition:none!important;transform:none!important}}
/* Contrast guard for compact dark financial status icons and mobile identity. */
html[data-theme='dark'] .shell .kpi-icon{background:#304c61!important;color:#c1e4fc!important;border-color:#476b83!important}
html[data-theme='dark'] .shell .kpi-icon.green{background:#244e45!important;color:#b7f1dc!important}
html[data-theme='dark'] .shell .kpi-icon.rose{background:#593a43!important;color:#ffc6d0!important}
html[data-theme='dark'] .shell .kpi-icon.amber{background:#534834!important;color:#ffe0a9!important}
html[data-theme='dark'] .shell .type-badge.sale{background:#244e45!important;color:#b7f1dc!important}
html[data-theme='dark'] .shell :is(.type-badge.expense,.type-badge.fee,.type-badge.refund){background:#593a43!important;color:#ffd2dc!important}
html[data-theme='dark'] .shell :is(.mobile-account-name,#mobile-account-name){color:#eaf4f4!important}
html[data-theme='dark'] .shell :is(.sync-indicator,#top-status){color:#cce4f4!important}
html[data-theme='dark'] .shell .sync-indicator{background:#263e52!important;border:1px solid #4c6b80!important}
