/* Nova Ledger · a restrained design system: one typeface, one accent, generous space */
:root {
  --ink:#182c4b; --muted:#8092ab; --soft:#5d7493;
  --navy:#0c2140; --navy2:#122e56;
  --indigo:#245bb2; --indigo-light:#eef5ff;
  --green:#245bb2; --red:#b45464;
  --bg:#f7faff; --line:#e2eaf5; --card:#fff;
  --shadow:0 3px 16px rgba(15,43,86,.045);
  font-family:Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}
a{color:var(--green)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a6b8aa;outline-offset:2px}
.shell{min-height:100vh;display:flex}
.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:260px;background:var(--navy);color:#afc0b3;padding:31px 17px 20px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:11px;margin:0 13px 39px}
.brand-mark{width:39px;height:39px;display:grid;place-items:center;background:#255ab1;color:#e5eee6;border:1px solid #3c6cc0;border-radius:11px}
.brand strong{display:block;font-size:19px;font-weight:660;letter-spacing:-.85px;color:#f2f4ef;line-height:1.2}
.brand-period{color:#8cbd9c}
.brand small{display:block;color:#778f80;font-size:9px;letter-spacing:2px;font-weight:700;margin-top:5px}
.workspace{display:flex;align-items:center;gap:11px;border-radius:10px;background:#173762;border:1px solid #2b4c78;padding:12px 11px;margin:0 0 39px}
.workspace-icon{width:35px;height:35px;flex-shrink:0;border-radius:10px;background:#2c61a8;display:grid;place-items:center;color:#e4efe5;font-size:14px;font-weight:600}
.workspace b{font-size:12px;font-weight:650;color:#ebf0e8;display:block;max-width:141px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.workspace small{display:block;font-size:10px;color:#8b9e91;margin-top:5px}
.workspace-chevron{color:#788f7d;font-size:17px;margin-left:auto}
.menu-heading{font-size:9px;letter-spacing:1.9px;font-weight:700;color:#718577;margin:0 16px 13px}
.menu-heading.second{margin-top:27px}
.nav-item{border:0;background:transparent;color:#a9baad;width:100%;text-align:left;padding:12px 15px;display:flex;align-items:center;gap:13px;border-radius:9px;margin:3px 0;font-size:12px;font-weight:530;transition:background .14s,color .14s}
.nav-item:hover{background:#1a416e;color:#f6f8f3}
.nav-item.active{background:#2458a5;color:#fbfcf8;font-weight:650}
.nav-ico{width:18px;height:19px;display:grid;place-items:center;flex-shrink:0}
.sidebar-bottom{margin-top:auto}
.sidebar-tip{position:relative;overflow:hidden;border:1px solid #345780;border-radius:12px;background:#16345c;padding:20px 16px 25px;margin-bottom:23px}
.sidebar-tip-heading{color:#e9f2ff;font-size:12px;letter-spacing:-.2px;font-weight:650}
.sidebar-tip p{color:#92a999;font-size:11px;line-height:1.75;margin:8px 0 17px;max-width:180px}
.sidebar-tip-art{height:34px;display:flex;align-items:end;gap:9px;border-bottom:1px solid #63816940}
.sidebar-tip-art span{display:block;width:21px;border-radius:3px 3px 0 0;background:#3469b1;height:15px}
.sidebar-tip-art span:nth-child(2){height:25px;background:#5b91db}.sidebar-tip-art span:nth-child(3){height:18px}.sidebar-tip-art span:nth-child(4){height:31px;background:#80b5ef}.sidebar-tip-art span:nth-child(5){height:26px}
.sidebar-footer{display:flex;align-items:center;gap:10px;padding:0 11px;color:#a0b0a4;font-size:11px}
.status-dot{width:7px;height:7px;border-radius:50%;background:#6bb7ec;box-shadow:0 0 0 3px #6bb7ec22;display:inline-block;flex-shrink:0}
.status-dot.local{background:#bdb49a;box-shadow:0 0 0 3px #bdb49a22}
.status-dot.error{background:#d27870}
.content-wrap{flex:1;min-width:0;margin-left:260px;display:flex;flex-direction:column}
.topbar{height:81px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 48px}
.breadcrumb{font-size:10px;color:#87928a;letter-spacing:1.6px;font-weight:700}
.breadcrumb span{margin:0 12px;color:#c4cac1}.breadcrumb b{color:#254c83;font-weight:700}
.top-actions{display:flex;gap:23px;align-items:center}
.today-date{font-size:11px;color:#8b948b}
.vertical-rule{width:1px;height:20px;background:#e6e9e2}
.sync-indicator{display:flex;align-items:center;gap:9px;color:#7e8c83;font-size:11px}
.avatar{width:34px;height:34px;border:1px solid #d9e2d7;border-radius:50%;background:#e6efe5;color:#35533e;font-size:12px;font-weight:650}
.mobile-menu{display:none}.icon-btn{border:0;background:transparent;color:var(--ink);font-size:20px}
.content-main{width:100%;max-width:1510px;margin:0 auto;padding:47px 49px 68px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:29px}
.eyebrow{margin:0 0 11px;font-size:10px;font-weight:700;letter-spacing:2px;color:#72917c}
.page-head h1{font-size:clamp(26px,2.3vw,34px);line-height:1.2;letter-spacing:-1.5px;font-weight:660;color:#213128;margin:0 0 10px}
.page-head p{margin:0;color:#89958b;font-size:12px;line-height:1.65}
.head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.btn{border:1px solid #e2e8de;background:#fff;border-radius:9px;padding:11px 16px;display:inline-flex;justify-content:center;align-items:center;gap:8px;color:#45564b;font-size:11px;font-weight:650;white-space:nowrap;min-height:40px;transition:background .15s,transform .15s}
.btn:hover{background:#f3f6f1;transform:translateY(-1px)}
.btn.primary{color:#fff;background:#255ab1;border-color:#255ab1;box-shadow:0 4px 9px #255ab111}
.btn.primary:hover{background:#274d3b}
.btn.danger{color:#a85050}.btn.tiny{padding:7px 10px;min-height:30px;font-size:11px}.btn.wide{width:100%}
.grid{display:grid;gap:18px}
.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.card{background:#fff;border:1px solid #e7ebe5;border-radius:13px;box-shadow:var(--shadow)}
.kpi{min-height:160px;padding:23px 22px 21px}
.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kpi-label{font-size:11px;letter-spacing:.05px;color:#79877d;font-weight:580}
.kpi-icon{width:33px;height:33px;display:grid;place-items:center;color:#577862;border:1px solid #e3ece2;border-radius:9px;background:#eef5ff}
.kpi-icon.green,.kpi-icon.amber,.kpi-icon.rose{background:#eef5ff;color:#577862}
.kpi-num{margin:17px 0 10px;font-weight:680;letter-spacing:-1.45px;font-size:clamp(20px,2.3vw,30px);white-space:nowrap}
.kpi-foot{color:#9ba69d;font-size:11px}.kpi-foot b{color:#50745b}
.two-col{grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr);margin-bottom:20px}
.card-pad{padding:24px}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:23px}
.card-heading h2,.table-heading h2{font-size:13px;letter-spacing:-.15px;color:#2a3830;font-weight:660;margin:0}
.card-heading small{color:#9ba69e;font-size:11px}
.card-sub{font-size:11px;color:#9da89d;margin:6px 0 0}
.pill{background:#f9faf7;border:1px solid #e7ebe5;border-radius:7px;padding:7px 10px;color:#829284;font-size:10px}
.legend{display:flex;align-items:center;gap:15px;font-size:10px;color:#819084}
.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;vertical-align:middle}
.chart-area{height:242px}
.chart-area svg{width:100%;height:100%;overflow:visible}
.chart-area text{font-family:Inter,ui-sans-serif,system-ui,sans-serif;fill:#9eaaa1;font-size:10px}
.chart-empty{height:100%;display:grid;place-items:center;color:#a4b0a4;font-size:12px}
.breakdown-row{margin:0 0 22px}.breakdown-row:last-child{margin-bottom:0}
.breakdown-meta{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:11px;color:#69776d}
.breakdown-meta b{font-size:11px;color:#3c5042;font-weight:670;white-space:nowrap}
.breakdown-track{height:6px;background:#edf1eb;border-radius:10px;overflow:hidden}
.breakdown-track>div{height:100%;border-radius:10px;background:#3378d2}
.table-card{overflow:hidden}.table-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:24px 25px}
.table-heading small{font-size:11px;color:#9ba89e;display:block;margin-top:6px}
.text-link{color:#3378d2;font-size:11px;font-weight:650;background:none;border:0;padding:6px}
.table-scroll{width:100%;overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:625px}
thead{background:#fafbf8}
th{padding:15px 23px;text-align:left;color:#97a399;text-transform:uppercase;letter-spacing:.9px;font-size:9px;font-weight:700;white-space:nowrap}
td{border-top:1px solid #e8f1fd;padding:17px 23px;font-size:11px;color:#58695e;white-space:nowrap}
td strong{color:#2a3b31;font-size:11px;font-weight:640}
td small{color:#a4aea5;font-size:10px;display:block;margin-top:5px;max-width:245px;overflow:hidden;text-overflow:ellipsis}
.type-badge{display:inline-flex;padding:6px 9px;border-radius:7px;font-size:10px;font-weight:630;background:#f0f3ee;color:#688070}
.type-badge.sale,.type-badge.other_income{background:#eaf3eb;color:#397251}
.type-badge.expense,.type-badge.fee{background:#faf0ee;color:#a66b62}
.type-badge.refund{background:#f8f2e9;color:#a78354}
.type-badge.payout{background:#eff2f6;color:#647c91}
.amount-pos{color:#3d7953;font-weight:670}.amount-neg{color:#b46d65;font-weight:670}.muted{color:#99a79a}
.empty-state{padding:52px 22px;text-align:center;color:#8e9a8f}
.empty-illustration{margin:0 auto 18px;width:55px;height:55px;display:grid;place-items:center;border:1px solid #e4ede2;border-radius:13px;background:#eef5ff;color:#3c6cc0;font-size:25px}
.empty-state h3{color:#254c83;font-size:14px;font-weight:670;margin:0 0 8px}.empty-state p{font-size:12px;line-height:1.8;max-width:370px;margin:0 auto 19px}
.filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:19px}
.input,.select{border:1px solid #e2e8df;background:#fff;color:#4d6052;border-radius:9px;padding:10px 13px;font-size:11px;min-height:42px;outline:none}
.search-input{flex:1;min-width:190px}
.input:focus,.select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#8aaf96;box-shadow:0 0 0 3px #527d5d12}
.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-card{padding:27px}
.settings-card h2{font-weight:660;font-size:14px;letter-spacing:-.1px;margin:0 0 8px}
.settings-card p{color:#8a968b;font-size:11px;line-height:1.8;margin:0 0 20px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.field label{color:#64766a;font-size:11px;font-weight:640}
.field input,.field select,.field textarea{width:100%;padding:12px 13px;border:1px solid #e1e7df;border-radius:9px;outline:0;background:#fff;color:#2d4034;font-size:12px}
.field input[readonly]{background:#f6f8f4;color:#7f9483}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.notice{padding:14px 15px;border-radius:9px;border:1px solid #e4ede0;background:#f0f6ff;color:#5a7560;font-size:11px;line-height:1.75;margin:17px 0}
.notice.warning{background:#fbf8f0;border-color:#ede7d8;color:#87795d}
.notice.success{background:#eef6ef;border-color:#d9eade;color:#477c56}
.divider{height:1px;background:#e9f2ff;margin:22px 0}
.inline-actions{display:flex;flex-wrap:wrap;gap:8px}.inline-stat{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#7e8b80;padding:12px 0;border-bottom:1px solid #e8f1fd}
.inline-stat b{font-weight:660;color:#374b3d}.details{font-size:11px;line-height:1.9;color:#819084;margin-top:18px}.details summary{color:#3c6e4d;font-weight:650;cursor:pointer}
.help-list{font-size:11px;line-height:1.9;color:#7e8b80;padding-left:18px}
.lock-note,.payout-note{color:#9aa59c;font-size:11px;line-height:1.75;margin:16px 0}.upload-hidden{display:none}
.actions-cell{display:flex;gap:6px}.mini-list{display:flex;flex-direction:column;gap:11px}.mini-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}
.mini-row b{font-size:11px}.mini-row small{display:block;font-size:11px;color:#94a198}.chart-summary{display:flex;gap:16px;margin:12px 0;color:#8a998d;font-size:11px}
.footer{margin-top:auto;padding:18px 45px 30px;text-align:center;color:#a2ada4;font-size:10px}.footer span{padding:0 7px}
.modal-backdrop{position:fixed;inset:0;z-index:90;background:#1221199c;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}
.modal{background:#fff;width:100%;max-width:580px;padding:31px;border-radius:15px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 70px #001b0d30}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.modal-head h2{font-size:19px;font-weight:660;letter-spacing:-.5px;margin:0}
.close-btn{background:#f5f7f3;border:1px solid #eaede8;width:31px;height:31px;border-radius:9px;color:#627567;font-size:20px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:9px}
.toast{position:fixed;right:25px;bottom:24px;background:#263e30;color:#fff;font-size:12px;padding:14px 18px;border-radius:9px;box-shadow:0 12px 40px #102a152e;z-index:200;max-width:420px}.toast.error{background:#934c47}
.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all;font-size:10px}
.month-select{min-width:135px}
@media(max-width:1200px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.content-main{padding:37px 34px 55px}}
/* Real clickable backdrop; unlike a large box-shadow, this catches outside taps. */
.sidebar-backdrop{display:none}
@media(max-width:880px){
 .sidebar-backdrop{position:fixed;inset:0;z-index:29;display:block;border:0;margin:0;padding:0;background:rgba(8,21,10,.52);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease;touch-action:manipulation}
 .sidebar-backdrop.active{opacity:1;visibility:visible;pointer-events:auto;cursor:pointer}
 body.sidebar-open{overflow:hidden}
 .sidebar{overflow-y:auto;overscroll-behavior:contain;transform:translateX(-100%);transition:transform .22s ease}
 .sidebar.open{transform:translateX(0);box-shadow:0 10px 36px rgba(0,0,0,.2)}.content-wrap{margin-left:0}.mobile-menu{display:block}.topbar{height:69px;padding:0 22px}.content-main{padding:30px 22px 55px}.today-date,.vertical-rule{display:none}}
@media(max-width:620px){.content-main{padding:27px 15px 40px}.page-head{flex-direction:column;align-items:stretch;margin-bottom:21px}.page-head h1{font-size:29px}.head-actions{width:100%}.head-actions .btn{flex:1}.kpis,.settings-grid{grid-template-columns:1fr}.kpi{min-height:125px;padding:19px}.kpi-num{font-size:27px}.topbar{padding:0 15px}.breadcrumb{font-size:9px}.sync-indicator{font-size:10px}.top-actions{gap:13px}.form-grid{grid-template-columns:1fr}.card-pad{padding:19px}.table-heading{padding:20px}.chart-area{height:210px}.modal{padding:21px}.footer{padding:17px}}
@media print{.sidebar,.topbar,.footer,.head-actions,.filters,.btn,.text-link,.actions-cell{display:none!important}.content-wrap{margin:0}.content-main{padding:0}.card{break-inside:avoid;box-shadow:none}.kpis{grid-template-columns:repeat(4,1fr)}body{background:#fff}}

/* Managed multi-user sign-in: access is gated until cloud authentication is confirmed. */
[hidden]{display:none!important}
.auth-gate{min-height:100vh;position:relative;z-index:999;background:#f7faff;display:flex;align-items:center;justify-content:center;padding:26px;font-family:inherit;color:#17355d}
.auth-card{background:white;border:1px solid #e4e9e2;box-shadow:0 17px 60px rgba(29,54,40,.05);border-radius:20px;padding:34px;width:min(100%,450px)}
.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:35px}.auth-logo{width:46px;height:46px;display:grid;place-items:center;background:#173e78;color:#fff;font-size:23px;border-radius:12px;font-weight:700}.auth-brand strong{display:block;font-size:23px;letter-spacing:-1px}.auth-brand small{display:block;font-size:9px;letter-spacing:1.5px;color:#8a978e;margin-top:2px}
.auth-eyebrow{font-size:10px;letter-spacing:1.5px;color:#56816a;font-weight:700;margin-bottom:12px}
.auth-card h1{font-size:28px;letter-spacing:-1px;line-height:1.15;margin:0 0 12px}.auth-card p{color:#78857b;font-size:13px;line-height:1.65;margin:0 0 22px}
.auth-card label{display:block;font-weight:600;font-size:12px;margin:17px 0 8px}.auth-card input{width:100%;padding:12px 13px;border-radius:10px;border:1px solid #dce9f9;background:#fbfdff;font:inherit;font-size:14px;box-sizing:border-box;color:#173e78}.auth-card input:focus{border-color:#4c8062;outline:2px solid #d6e9db}
.auth-card button{width:100%;border-radius:10px;padding:13px;font:inherit;font-size:14px;cursor:pointer}.auth-submit{background:#173e78;border:1px solid #173e78;color:white;margin-top:22px;font-weight:650}.auth-register{background:white;border:1px solid #dce9f9;color:#173e78;margin-top:9px;font-weight:600}.auth-message{font-size:12px;line-height:1.5;margin:12px 0 0;color:#7b857b}.auth-message.error{color:#a13535}.auth-message.success{color:#347c50}.auth-card .auth-foot{font-size:11px;margin:21px 0 0;text-align:center}

/* Google-only authentication: restrained button matches the original Nova Ledger visual system */
.google-signin{margin-top:26px;width:100%;display:flex;align-items:center;justify-content:center;gap:14px;background:#fff;color:#253d31;border:1px solid #d6ded5;border-radius:11px;padding:14px 16px;font-family:inherit;font-size:14px;font-weight:650;cursor:pointer;box-shadow:0 2px 5px rgba(24,52,37,.03);transition:background .15s,border-color .15s,transform .15s}
.google-signin svg:last-child{margin-left:auto;color:#748979}.google-signin svg:first-child{flex:0 0 20px}
.google-signin:hover{background:#f4f7f3;border-color:#88aa91;transform:translateY(-1px)}
.google-signin:focus-visible{outline:3px solid #b4d6c1;outline-offset:3px}
.google-signin:disabled{opacity:.65;cursor:wait}
.auth-card .auth-hint{margin:12px 0 4px;font-size:12px;line-height:1.65;text-align:center}

/* App installation controls — same palette and typography as Nova Ledger. */
.install-link{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:18px;padding:12px 14px;border:1px solid #cbd9cd;border-radius:10px;background:#f0f6ff;color:#2b5140;font-size:12px;font-weight:650;letter-spacing:0;transition:background .15s ease}
.install-link:hover{background:#e9f1e9}
.install-sidebar{width:100%;margin:0 0 19px;border:1px solid #4b6553;border-radius:9px;background:#294638;color:#e8f3e9;padding:12px 13px;display:flex;gap:10px;align-items:center;justify-content:center;font-size:11px;font-weight:650}
.install-sidebar:hover{background:#315642}
.install-link[hidden],.install-sidebar[hidden]{display:none!important}

/* Personalized account identity + visible error state */
.workspace-label{min-width:0;flex:1}
.workspace-label small{letter-spacing:.55px;font-size:8px;font-weight:600}
.workspace-icon{font-size:12px;letter-spacing:-.3px}
.save-alert[hidden]{display:none!important}
.save-alert{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 40px;background:#fff4e9;border-bottom:1px solid #ebc2a5;color:#6f4531}
.save-alert strong{display:block;font-size:12px}
.save-alert p{margin:4px 0 0;font-size:11px;line-height:1.65;max-width:800px}
.save-alert-actions{display:flex;gap:8px;flex-shrink:0}
.save-alert button{font-size:11px;padding:9px 12px;background:white;border:1px solid #e8b799;border-radius:8px;color:#70472f}
.field-hint{display:block;font-size:10px;color:#88958b;margin-top:7px;line-height:1.45}
@media(max-width:880px){.save-alert{padding:13px 20px;flex-direction:column;align-items:flex-start}.save-alert-actions{flex-wrap:wrap}}

.mobile-account-name{display:none}
@media(max-width:880px){.mobile-account-name{display:block;flex:1;min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:660;color:#314c3c;margin-left:10px}.breadcrumb{display:none}}
@media(max-width:420px){.mobile-account-name{max-width:105px}.top-actions{gap:9px}.sync-indicator{max-width:97px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}

/* Nova Ledger premium logo overrides */
.auth-logo,.brand-mark{overflow:hidden;padding:0;background:#0A2456;border:0}
.auth-logo img,.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}

/* Nova Ledger customer help, FAQs, and privacy — shared visual system */
.auth-legal-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin:13px 0 2px;font-size:11px;color:#9cab9e}
.auth-legal-links a,.auth-hint a{color:#38684d;text-decoration:underline;text-underline-offset:3px}
.footer-links{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:9px;flex-wrap:wrap}
.footer-links a,.footer-links button{font:inherit;font-size:11px;color:#537c60;text-decoration:none;cursor:pointer;border:0;background:none;padding:4px}
.footer-links a:hover,.footer-links button:hover,.auth-legal-links a:hover{color:#1b4430;text-decoration:underline}
.legal-panel{padding:30px 34px;margin-bottom:20px}
.legal-panel-head{padding-bottom:20px;border-bottom:1px solid #e8eee7;margin-bottom:24px}
.legal-panel-head h2{font-size:23px;letter-spacing:-.5px;margin:7px 0 4px;color:#203a2d;font-weight:690}
.legal-panel-head p{font-size:12px;color:#829284;line-height:1.6}
.legal-contact-card{display:flex;gap:20px;padding:29px 33px;margin-bottom:20px;background:linear-gradient(125deg,#fff,#f0f6ff);border:1px solid #dce9dd}
.legal-contact-icon{border-radius:13px;background:#e1ece2;color:#34664c;display:grid;place-items:center;width:47px;height:47px;flex:0 0 47px;font-size:22px}
.legal-contact-card h2{font-size:19px;color:#203c2e;letter-spacing:-.4px;margin:5px 0 7px}
.legal-contact-card p{font-size:12px;max-width:650px;line-height:1.85;color:#6c7c70;margin:0 0 15px}
.legal-support-link{display:inline-flex;align-items:center;text-decoration:none;width:max-content;max-width:100%;overflow-wrap:anywhere}
.contact-note{font-size:10px;color:#87968a;line-height:1.6;margin-top:10px}
.legal-support-small{margin-top:14px!important}.legal-support-small a{color:#2c6645}
.faq-list{display:flex;flex-direction:column;gap:9px}
.faq-item{border:1px solid #e5ece4;border-radius:11px;background:#fbfdff;overflow:hidden}
.faq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;color:#294335;font-size:13px;font-weight:650;line-height:1.5}
.faq-item summary::-webkit-details-marker{display:none}
.faq-plus{font-size:19px;line-height:1;color:#698775;font-weight:400}
.faq-item[open] .faq-plus{transform:rotate(45deg)}
.faq-answer{border-top:1px solid #e8eee8;padding:14px 19px 19px;color:#627468;font-size:12px;line-height:1.95}
.faq-answer a,.legal-body a{color:#277345;text-decoration:underline;overflow-wrap:anywhere}
.legal-body{font-size:12px;color:#63746a;line-height:1.92}
.legal-lead{font-size:11px;color:#6c8773;font-weight:650;margin-bottom:14px}
.legal-intro{font-size:13px;line-height:1.8;color:#425e4c;margin-bottom:25px}
.legal-block{padding:18px 0;border-top:1px solid #e8f1fd}
.legal-block h2{font-size:14px;font-weight:680;color:#2b4b35;margin:0 0 8px}
.legal-block ul{margin:8px 0 0;padding-left:19px}.legal-block li{margin:5px 0}
.public-page{min-height:100vh;background:#f7faff;color:#17355d;padding:20px}
.public-top{max-width:930px;margin:0 auto 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.public-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:680;text-decoration:none;color:#243c30}
.public-brand img{width:40px;height:40px;border-radius:11px}
.public-back{font-size:12px;color:#3d7150;text-decoration:none}
.public-content{max-width:930px;margin:0 auto 50px}.public-content .legal-panel{margin:0}
.public-footer{text-align:center;padding:0 20px 25px;color:#97a399;font-size:11px}
@media(max-width:620px){.legal-panel{padding:20px 18px}.legal-contact-card{padding:20px 18px;gap:12px}.legal-contact-icon{width:36px;height:36px;flex-basis:36px}.faq-item summary{padding:15px 13px}.faq-answer{padding:12px 13px 15px}.legal-panel-head h2{font-size:20px}.footer-links{gap:8px}}

@media(prefers-reduced-motion:reduce){.sidebar,.sidebar-backdrop{transition:none!important}}
@media print{.sidebar-backdrop{display:none!important}}

/* Blue subscription edition */
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}
.plan-card{border:1px solid #dce7f5;background:#fff;border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 8px 28px #102d5509}
.plan-card.featured{border:2px solid #3474d0;background:linear-gradient(165deg,#fff,#f2f7ff)}
.plan-tag{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;color:#4a6b9b;font-weight:800}
.plan-price{font-size:33px;font-weight:750;letter-spacing:-1.4px;color:#153c75}
.plan-price small{font-size:12px;color:#7086a4;letter-spacing:0;font-weight:500}
.plan-limit{font-size:14px;color:#496386}
.plan-card ul{padding-left:18px;line-height:2;color:#5a708e;font-size:12px;flex:1}
.plan-current{display:inline-flex;align-self:flex-start;background:#dcecff;color:#184b90;border-radius:100px;padding:7px 11px;font-size:11px;font-weight:700}
.usage-meter{height:9px;background:#e3edfb;border-radius:99px;overflow:hidden;margin:14px 0}.usage-meter>div{height:100%;background:#3176d3;border-radius:99px}
.plan-notice{border:1px solid #d7e5f7;border-radius:14px;padding:17px;background:#f4f8ff;color:#456384;font-size:13px;line-height:1.7}
@media(max-width:1000px){.plan-grid{grid-template-columns:1fr}}

/* 2026 blue app-icon alignment */
.auth-brand small{color:#7087A5}
.brand-period{color:#60A5FA}

/* Verified billing checkout styles */
.billing-actions{display:flex;flex-direction:column;gap:9px;margin-top:15px}
.billing-actions .btn{width:100%;justify-content:center;white-space:normal}
.billing-unavailable{display:block;font-size:13px;line-height:1.45;color:var(--muted,#64748b);padding:10px 0}


/* Nova Ledger · accessible, blue branded operation and navigation feedback. */
.app-loading-screen{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:24px;background:rgba(5,22,49,.55);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.app-loading-panel{width:min(100%,385px);background:linear-gradient(145deg,#fff,#f0f6ff);border:1px solid #cfdef6;border-radius:24px;padding:34px 29px 30px;text-align:center;box-shadow:0 25px 90px rgba(2,20,52,.28)}
.app-loading-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 25px;color:#174479;letter-spacing:2px;font-size:11px;font-weight:800}
.app-loading-brand img{width:50px;height:50px;border-radius:14px;box-shadow:0 7px 19px rgba(12,58,137,.16)}
.app-loading-spinner{width:44px;height:44px;margin:0 auto 21px;border:4px solid #d8e7ff;border-top-color:#226bcb;border-right-color:#569ff5;border-radius:50%;animation:nova-loading-spin .8s linear infinite}
.app-loading-panel h2{font-size:19px;line-height:1.35;color:#122f59;letter-spacing:-.35px;font-weight:700;margin:0 0 9px}
.app-loading-panel p{color:#597394;line-height:1.65;font-size:12px;margin:0}
.app-loading-panel .app-loading-long{font-size:11px;color:#795e38;margin:17px 0 4px}
.app-loading-dismiss{border:1px solid #b1c9ee;border-radius:9px;background:white;color:#215caa;padding:10px 15px;font-weight:700;margin-top:16px;font-size:12px;cursor:pointer}
.app-loading-dismiss:focus-visible{outline:3px solid #6aabf8;outline-offset:3px}
@keyframes nova-loading-spin{to{transform:rotate(360deg)}}
@media(max-width:480px){.app-loading-panel{padding:27px 20px;border-radius:20px}.app-loading-panel h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.app-loading-spinner{animation:none;border-top-color:#236bc9;border-right-color:#236bc9}.app-loading-screen{backdrop-filter:none;-webkit-backdrop-filter:none}}
@media print{.app-loading-screen{display:none!important}}


/* Nova Ledger 2.1 — connected business workspace / stock release */
:root{--ink:#172c4a;--muted:#7084a0;--soft:#4b6280;--navy:#071c3a;--navy2:#0e2a54;--indigo:#1666c5;--indigo-light:#eef5ff;--green:#1666c5;--bg:#f3f7fd;--line:#dfe8f5;--shadow:0 7px 30px rgba(24,56,111,.048)}
body{background:radial-gradient(ellipse at 75% 0,rgba(84,149,237,.08),transparent 37%),var(--bg)}
.sidebar{background:linear-gradient(180deg,#061a38 0%,#0a2b59 65%,#061b3b 100%);border-right:1px solid #163862;padding-top:23px}
.brand.new-brand{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:0 3px 32px}
.brand-full-image{display:block;width:100%;height:59px;object-fit:contain;background:#fff;border-radius:12px;padding:8px 7px;border:1px solid #eaf1fc}
.brand-caption{font-size:8px;letter-spacing:1.35px;color:#95afcf;font-weight:750;margin-left:8px}
.auth-brand-new{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.auth-brand-new img{width:100%;max-width:295px;height:65px;object-fit:contain;object-position:left center}
.auth-brand-new small{color:#5578a0;font-size:10px;letter-spacing:1.2px;font-weight:750;margin-left:2px}
.workspace{background:#113461;border-color:#274d7f;margin-bottom:26px}
.menu-heading{color:#97b0d1}
.nav-item{border-radius:11px;transition:background .17s ease,color .17s ease,transform .17s ease}
.nav-item:hover{transform:translateX(2px)}
.nav-item.active{background:linear-gradient(95deg,#2059a7,#245eb8);color:#fff}
.topbar{box-shadow:0 1px 0 rgba(31,70,121,.035);background:rgba(255,255,255,.97);padding:0 37px}
.top-quick{background:#eaf3ff;color:#1c62ba;border:1px solid #d2e4fd;border-radius:9px;padding:9px 13px;font-weight:750;font-size:11px}
.top-quick:hover{background:#dcecff}
.content-main{padding-top:34px}
.page-head h1{color:#152d51;font-size:clamp(29px,2.4vw,36px);letter-spacing:-1.2px}
.eyebrow{color:#2e70c7;letter-spacing:1.55px}
.page-head p{color:#7489a2;font-size:12px}
.card{border-color:#e1eafa;border-radius:16px;box-shadow:var(--shadow)}
.kpi{border-radius:15px;min-height:148px}
.kpi-icon{background:#eaf3ff;color:#2a70c7;border-color:#d8e9fe}
.kpi-icon.green,.kpi-icon.amber,.kpi-icon.rose{color:#2d73c3;background:#edf5ff}
.kpi-label{color:#6b829c}.kpi-num{color:#17365e}.kpi-foot{color:#8698ae}
.card-heading h2,.table-heading h2,.settings-card h2{color:#1c3b62}
.btn{border-color:#dce7f5;color:#294d7b;border-radius:10px;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.btn:hover{background:#eef5fe;box-shadow:0 4px 12px #215aab12}
.btn.primary{background:linear-gradient(125deg,#1263c8,#2756bc);border-color:#2166c9;box-shadow:0 5px 17px #155ac026}
.btn.primary:hover{background:linear-gradient(125deg,#0d54ac,#1a48a7)}
.input,.select,.field input,.field select,.field textarea{border-color:#dce6f4;color:#24466e;background:#fff}
.input:focus,.select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#4387db;box-shadow:0 0 0 3px #347bce20}
tr:hover td{background:#f9fbff}
th{background:#f4f8fd;color:#7890ac}td{color:#58718e;border-color:#ebf0f8}td strong{color:#1d3c61}
.type-badge.sale,.type-badge.other_income{background:#e7f6f0;color:#187558}
.type-badge.expense,.type-badge.fee{background:#fff0f0;color:#ad5757}
.amount-pos{color:#157959}.amount-neg{color:#ad5860}
.notice{background:#edf5ff;border-color:#dceafb;color:#446185}
.welcome-ribbon{position:relative;background:linear-gradient(110deg,#082754 0%,#124b98 55%,#2973d0 100%);border-radius:19px;padding:28px 31px;color:white;margin:0 0 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;overflow:hidden;box-shadow:0 14px 32px #1559a326}
.welcome-ribbon:before,.welcome-ribbon:after{content:"";position:absolute;border:1px solid #ffffff24;width:340px;height:340px;border-radius:50%;right:-90px;top:-180px;pointer-events:none}
.welcome-ribbon:after{width:250px;height:250px;right:-42px;top:-120px}
.ribbon-kicker{display:block;font-size:9px;letter-spacing:1.8px;font-weight:850;color:#bdd8ff;margin-bottom:10px}
.welcome-ribbon h2{font-size:21px;line-height:1.3;letter-spacing:-.5px;margin:0 0 9px;font-weight:750}
.welcome-ribbon p{font-size:11px;line-height:1.6;color:#d2e5ff;margin:0;max-width:460px}
.ribbon-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:relative;z-index:1}
.ribbon-btn{background:#ffffffed!important;color:#1154a9!important;border:1px solid #ffffff!important}
.ribbon-btn:hover{background:#e1edff!important}
.sales-status-bar{display:flex;align-items:center;gap:20px;padding:12px 16px;margin:0 0 19px;border:1px solid #dceafa;background:#f4f9ff;border-radius:12px;font-size:11px;color:#527195}
.sales-status-bar span:first-child{font-weight:750;color:#205eaa}.sales-status-bar i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#f2a548;margin-right:6px}
.inventory-alert{background:#fff7e7;border:1px solid #f2dfb6;color:#895b24;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-radius:12px;padding:14px 18px;font-size:12px;margin-bottom:19px}
.inventory-alert strong{font-weight:800}.inventory-alert span{color:#886d41}
.kpis-compact .kpi{min-height:135px}
.field-help{font-size:11px;color:#607a99;line-height:1.7;margin:-4px 0 17px}
.sale-fields{padding:15px 17px 0;border:1px solid #dce9fb;background:#f7faff;border-radius:12px;margin-bottom:14px}
.sale-fields[hidden]{display:none}
.checkline{display:flex;align-items:flex-start;gap:11px;font-size:12px;line-height:1.65;padding:13px 15px;background:#eff6ff;border-radius:11px;color:#33577e;margin:8px 0 15px}
.checkline input{width:17px;height:17px;flex:none;margin-top:1px;accent-color:#206ac6}
.bottom-tabs{display:none}
@media(max-width:1200px){.welcome-ribbon{align-items:flex-start;flex-direction:column}.topbar{padding:0 23px}}
@media(max-width:880px){.top-quick{display:none}.sidebar{padding-top:19px}.brand.new-brand{margin-bottom:20px}.bottom-tabs{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));background:#fffefa;border-top:1px solid #dce7f5;box-shadow:0 -7px 25px #18396712}.bottom-tabs button{background:transparent;border:0;color:#6d88a9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:9px;font-weight:700;min-height:47px;border-radius:10px}.bottom-tabs button span{font-size:22px;line-height:1}.bottom-tabs button.active{color:#145bb4;background:#eef5ff}.bottom-tabs .bottom-add{background:#1b63c0;color:white;border-radius:12px;max-width:64px;justify-self:center;width:100%}.bottom-tabs .bottom-add span{font-size:25px}.footer{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}}
@media(max-width:620px){.welcome-ribbon{padding:22px 19px;gap:17px}.welcome-ribbon h2{font-size:19px}.ribbon-actions{width:100%}.ribbon-actions .btn{flex:1;font-size:10px;min-width:86px;padding:10px 7px}.sales-status-bar{flex-direction:column;align-items:flex-start;gap:6px}.inventory-alert{align-items:flex-start;flex-direction:column}.kpis-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis-compact .kpi{min-height:118px;padding:15px}.kpis-compact .kpi-num{font-size:21px}.modal{padding:19px}}
@media(prefers-reduced-motion:reduce){.btn,.nav-item{transition:none}}
@media print{.bottom-tabs,.welcome-ribbon,.inventory-alert,.top-quick{display:none!important}}

/* October 2026 feature-based plans, improved filtering & premium financial reports */
.report-filter-panel{background:linear-gradient(130deg,#fff,#f6faff);border:1px solid #dbe7f8;border-radius:16px;padding:17px 19px;margin:0 0 20px;box-shadow:0 5px 18px #123f8010}
.filter-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:12px}.filter-panel-heading strong{color:#183a66;font-size:13px}.filter-panel-heading span{font-size:11px;color:#8096af}
.filter-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:5px}.filter-row label{display:flex;flex-direction:column;gap:5px;min-width:138px;flex:1;color:#5d7697;font-size:10px;font-weight:750}.filter-row .input,.filter-row .select{margin:0;min-height:38px;width:100%;font-size:12px}.filter-row .btn{min-height:38px}
.advanced-filter-row{padding-top:12px;margin-top:11px;border-top:1px solid #e5eef9;gap:10px}.advanced-filter-row label{min-width:145px}
.filter-upgrade{border-top:1px solid #e5edf9;padding:11px 1px 0;margin-top:11px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#6b809a;font-size:11px}.filter-upgrade .btn{min-width:auto}
.premium-report-dates{border-color:#b6d0f2;background:linear-gradient(115deg,#eff7ff,#fff)}
.report-result-grid{margin-top:16px}.report-result-grid .settings-card{padding:23px}.report-section-top{margin-bottom:16px}.report-section-top h2{font-size:20px;margin:10px 0 5px}.report-section-top p{font-size:11px;color:#7187a1}
.report-total{background:#ecf5ff;padding:11px;border-radius:9px;margin:7px -8px;border:1px solid #dceafd}.report-total b{color:#1255a0;font-size:14px}
.report-footnote{font-size:10px;line-height:1.65;color:#7990a7;margin-top:16px}.reconcile{border-radius:10px;padding:14px 12px;margin:12px 0;display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px}.reconcile.ok{background:#eaf8f2;border:1px solid #bce5d1;color:#176d4b}.reconcile.needs-work{background:#fff3e9;border:1px solid #f2d4bd;color:#9a5324}
.report-caveats{margin-top:16px;border-color:#f0e0bc}.report-caveats ul{padding-left:18px;color:#8a693a;font-size:12px;line-height:1.8}.report-caveats li{margin-bottom:4px}.report-await{padding:26px 14px;text-align:center;color:#7b8ca6;font-size:12px}.report-await h3{color:#193d6c;margin:10px 0}.report-icon{font-size:32px;color:#2b75c9}
.feature-lock{display:flex;align-items:center;gap:25px;padding:28px 30px;margin:10px 0 20px;background:linear-gradient(120deg,#eff6ff,#fff);border-color:#d3e6fd}.feature-lock h2{font-size:20px;color:#173a69;margin:12px 0 6px}.feature-lock p{font-size:12px;line-height:1.65;color:#6b829d;max-width:530px;margin-bottom:15px}.lock-symbol{display:grid;place-items:center;border-radius:17px;min-width:75px;height:75px;font-size:35px;background:linear-gradient(125deg,#194b9a,#3784d8);color:#fff;box-shadow:0 9px 27px #1b62c032}
.plan-limit small{display:block;margin-top:6px;font-size:10px;color:#8295b1}.plan-limit b{font-size:13px}
@media(max-width:620px){.report-filter-panel{padding:15px}.filter-panel-heading{display:block}.filter-panel-heading span{display:block;margin-top:5px}.filter-row label{min-width:calc(50% - 7px)}.filter-row .btn{flex:1}.advanced-filter-row label{min-width:calc(50% - 7px)}.feature-lock{padding:19px;gap:15px}.lock-symbol{min-width:52px;height:52px;font-size:24px}}
@media print{.report-filter-panel,.feature-lock,.filter-upgrade{display:none!important}.report-result-grid{display:grid!important}}

/* Double-entry journals */
.journal-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(90px,1fr);gap:8px;margin:9px 0}.journal-line input,.journal-line select{min-width:0}.journal-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 8px}.journal-editor-heading span{font-size:12px;color:var(--muted,#68788d)}
@media(max-width:580px){.journal-line{grid-template-columns:minmax(0,1fr) 82px 82px;gap:4px}.journal-line select,.journal-line input{font-size:12px;padding:9px 5px}}
/* Nova Ledger bookkeeping extension — cash/bank, parties, returns, reports & settings */
.bk-panel{padding:24px 26px;margin:18px 0;border:1px solid #dae7f7;border-radius:17px;background:#fff}
.bk-panel h2{font-size:17px;color:#183d70;margin:0 0 9px}.bk-panel p{font-size:12px;line-height:1.7;color:#6e829e;margin:0 0 14px}
.bk-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.bk-toolbar label{font-size:11px;font-weight:750;color:#58779f;display:flex;flex-direction:column;gap:7px;min-width:190px;flex:1}.bk-toolbar .select{min-height:39px}
.bk-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:13px 15px;background:#f4f8ff;border:1px solid #e2ecfb;border-radius:12px;margin:14px 0}
.bk-filter label{display:flex;flex-direction:column;gap:5px;color:#61799b;font-size:10px;font-weight:750;min-width:145px;flex:1}.bk-filter .input{min-height:38px;margin:0}.bk-filter .btn{min-height:38px}
.bk-lock{padding:25px;border:1px solid #d7e8ff;border-radius:13px;background:linear-gradient(145deg,#eef5ff,#fff)}.bk-lock h2{font-size:17px;color:#174b94;margin:0 0 10px}.bk-lock p{color:#65809e;font-size:12px;line-height:1.7;margin-bottom:15px}
.bk-inline{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 0;font-size:12px;color:#31567d}.bk-inline b{color:#0e4b9e;font-size:13px}
.bk-details{padding:10px 0}.bk-details>b{font-size:16px;color:#123c79}.bk-details p{font-size:11px;color:#647c9b;line-height:1.6;margin:9px 0 14px}
.bk-avatar-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.bk-avatar-large{width:88px;height:88px;border-radius:50%;border:3px solid #e3eefc;object-fit:cover;flex:none}.bk-avatar-fallback{display:grid;place-items:center;color:#fff;font-size:28px;font-weight:750;background:#194c9b}
.bk-avatar-row input[type=file]{display:block;max-width:100%;font-size:12px;margin:10px 0}
.avatar,.workspace-icon{background-size:cover!important;background-position:center!important}
.bk-panel .table-scroll{margin-top:12px}.bk-panel .btn{white-space:normal}.bk-panel .kpis{margin:17px 0}
@media(max-width:720px){.bk-panel{padding:19px 14px}.bk-filter label{min-width:calc(50% - 7px)}.bk-filter .btn{width:100%}.bk-avatar-row{align-items:flex-start}}
@media print{.bk-filter,.bk-toolbar,.bk-panel .btn,.bk-lock{display:none!important}.bk-panel{box-shadow:none;border:1px solid #ddd}}

/* Scrolling navigation for extended accounting menus on desktop and mobile */
.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#386397 transparent}
.sidebar-bottom{margin-top:20px;flex-shrink:0}
@media(max-height:780px){.sidebar-tip{display:none}}
/* Privacy center - accessible form controls, readable request IDs on small screens. */
#privacy-center-panel .suite-table td code{font-size:.76rem;word-break:break-all}
#privacy-center-panel textarea.field,#privacy-center-panel select.field{box-sizing:border-box;min-height:40px;padding:10px 12px;border:1px solid var(--border,#ced7e4);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit}
#privacy-center-panel button:focus-visible,#privacy-center-panel textarea:focus-visible,#privacy-center-panel select:focus-visible{outline:3px solid #4583d3;outline-offset:2px}

/* Nova Ledger account access: responsive email/password, verification and recovery */
.auth-gate{overflow-y:auto;padding:18px 14px;align-items:flex-start}
.auth-card{margin:auto;width:min(100%,480px);padding:clamp(20px,4vw,32px)}
.auth-card .auth-brand{margin-bottom:20px}
.auth-card .auth-divider{margin:17px 0 12px;display:flex;align-items:center;gap:10px;color:#69788d;font-size:12px;text-align:center}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#dfe8f3;flex:1}
.auth-modes{display:flex;background:#eff5fb;border:1px solid #dce8f4;border-radius:11px;padding:3px;gap:4px}
.auth-card .auth-mode-btn{flex:1;width:50%;padding:10px 8px;border:0;background:transparent;color:#34577b;font-weight:700;font-size:13px}
.auth-card .auth-mode-btn.is-active{background:#fff;color:#102f5b;box-shadow:0 2px 8px #132d4d19}
.auth-card form label{margin-top:12px;margin-bottom:5px}
.auth-card form .auth-submit{margin-top:14px}
.auth-card .auth-text-button{background:transparent;border:0;color:#1b5390;font-size:12px;font-weight:600;padding:10px 2px;text-decoration:underline;margin-top:3px}
.auth-card form h2{font-size:19px;color:#173e78;margin:17px 0 6px}
.auth-card form p{margin:6px 0 10px}
.auth-card .auth-small-note{margin:9px 0;font-size:11px;color:#6c7b91;line-height:1.5}
.auth-card .auth-checkbox{display:flex;align-items:flex-start;gap:9px;margin:14px 0 3px;line-height:1.55;font-weight:400;color:#334e70}
.auth-card .auth-checkbox input{width:16px;height:16px;margin-top:2px;flex:none;accent-color:#173e78}
.auth-card .auth-checkbox a{color:#1459a1;text-decoration:underline}
.auth-card .auth-message{min-height:14px;overflow-wrap:anywhere}
.auth-card [data-auth-panel][hidden]{display:none!important}
.auth-card .google-signin{margin-top:12px}
.auth-card form input:focus-visible,.auth-card form button:focus-visible{outline:2px solid #467fca;outline-offset:2px}
@media(max-width:520px){.auth-card{padding:21px 17px}.auth-card h1{font-size:25px}.auth-brand.auth-brand-new{margin-bottom:12px}}

/* Autopsy: keyboard access, narrow-screen safety and legal navigation. */
.skip-link{position:fixed;z-index:10000;top:8px;left:8px;background:#fff;color:#173e78;border:3px solid #173e78;border-radius:9px;padding:12px 16px;transform:translateY(-180%);text-decoration:none;font-weight:750}
.skip-link:focus,.skip-link:focus-visible{transform:translateY(0)}
a:focus-visible,[tabindex="0"]:focus-visible{outline:3px solid #2872ce;outline-offset:3px}
.brand-home{text-decoration:none}.brand-home:hover{opacity:.92}
img,svg,video,canvas{max-width:100%}
html,body{max-width:100%;overflow-x:clip}
.public-page,.public-content,.legal-panel,.auth-gate,.auth-card{max-width:100%;min-width:0}
.legal-body,.legal-block,.footer,.auth-legal-links,.public-footer{overflow-wrap:anywhere}
.auth-legal-links,.public-footer,.footer-links{flex-wrap:wrap}
.auth-legal-links a,.public-footer a,.footer-links a{text-decoration:underline;text-underline-offset:2px}
@media(max-width:420px){.public-content{padding-inline:12px}.auth-card{padding-inline:14px}.footer-links{gap:10px}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Contrast improvements for legal, login and footer text on white backgrounds. */
.auth-card p,.auth-card .auth-small-note,.auth-card .auth-foot,.auth-legal-links,.legal-panel-head p,.legal-body,.public-footer{color:#485a74}
.legal-body a,.public-footer a,.public-back,.auth-legal-links a{color:#164f8d}
.legal-panel-head h1{font-size:clamp(24px,3vw,32px);line-height:1.22;letter-spacing:-.035em;color:#17365d;margin:8px 0 10px}
.public-brand{color:#17365d}

/* Video 20-point usability improvements: progressive enhancement, no tracking. */
#nova-scroll-progress{position:fixed;top:0;left:0;right:0;height:3px;background:#3d88dd;z-index:1100;transform-origin:left center;transform:scaleX(0);pointer-events:none}
.topbar{position:sticky;top:0;z-index:22;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.public-top{position:sticky;top:0;z-index:26;background:var(--bg);padding:6px 0 9px;min-height:58px;flex-wrap:wrap}
.ux-tool-btn{background:transparent;border:1px solid #ccd9eb;color:#274f84;border-radius:9px;padding:9px 10px;font-size:12px;font-weight:650;min-height:38px;white-space:nowrap}
.ux-tool-btn:hover{background:#e9f2ff;border-color:#8bafdc}
.ux-auth-tools{display:flex;gap:7px;justify-content:flex-end;margin:-7px 0 5px}
.auth-card .ux-auth-tools button{width:auto;min-width:82px;padding:8px;font-size:12px}
.ux-public-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ux-password-field{position:relative}.ux-password-field input{padding-right:76px!important}
.auth-card .ux-password-show{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:auto;min-width:58px;padding:8px 6px;font-size:12px;font-weight:700;background:#e8f2ff;border:0;color:#234c84}
.auth-card input[aria-invalid="true"]{border-color:#be4242!important;outline-color:#be4242!important}
.ux-search-dialog{border:1px solid #cddbed;border-radius:16px;max-width:min(92vw,540px);width:540px;max-height:85vh;overflow:auto;padding:23px;background:#fff;color:#18365d;box-shadow:0 20px 70px #0a26494d}
.ux-search-dialog::backdrop{background:#081d3fb3}
.ux-search-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.ux-search-head label{font-size:17px;font-weight:730}
.ux-search-close{width:36px;height:36px;font-size:23px;border:0;background:#eff4fb;border-radius:8px;color:inherit}
.ux-search-dialog input{width:100%;padding:13px 14px;border:1px solid #c6d8ec;border-radius:9px;background:#fafcff;color:inherit;font-size:14px}
.ux-search-results{display:flex;flex-direction:column;margin-top:10px;gap:3px;max-height:50vh;overflow:auto}
.ux-search-result{display:block;width:100%;text-align:left;background:transparent;color:inherit;border:0;border-radius:8px;padding:11px 13px;font-size:13px;cursor:pointer}
.ux-search-result:hover,.ux-search-result:focus-visible{background:#e9f2ff;color:#13396a}
.ux-search-results p,.ux-search-foot{font-size:12px;color:#60738e}.ux-search-foot{margin:13px 0 0}
.ux-back-to-top{position:fixed;right:19px;bottom:102px;width:43px;height:43px;border-radius:50%;border:1px solid #bcd0e9;box-shadow:0 4px 16px #09244930;background:#fff;color:#164b95;font-size:23px;z-index:38}
.ux-back-to-top[hidden]{display:none!important}
.ux-storage-notice{position:fixed;z-index:1005;left:18px;bottom:18px;max-width:420px;background:#fff;color:#26436c;border:1px solid #c9d9ea;box-shadow:0 10px 38px #163a5c25;border-radius:12px;padding:15px;display:flex;gap:12px;align-items:center}
.ux-storage-notice p{font-size:12px;line-height:1.5;margin:0}.ux-storage-notice a{color:#245bb2;font-weight:650}
.ux-storage-dismiss{border:0;background:#245bb2;color:#fff;padding:9px 12px;border-radius:9px;white-space:nowrap;font-size:12px;cursor:pointer}
.ux-contact{position:fixed;right:17px;bottom:18px;z-index:35;display:flex;gap:6px;align-items:center;background:#fff;border:1px solid #cad9e9;border-radius:12px;box-shadow:0 5px 23px #193e682a;padding:8px}
.ux-contact a,.ux-copy-email{display:inline-block;color:#174e91;font-size:12px;font-weight:700;padding:8px;border-radius:8px}
.ux-copy-email{background:#eaf2fc;border:0;cursor:pointer}
/* Dark mode prioritizes dashboard legibility and does not alter exported/printed financial data. */
html[data-theme="dark"]{color-scheme:dark;--bg:#0d1729;--ink:#e9f0ff;--muted:#a7b9d3;--soft:#b4c5dc;--line:#32455f;--card:#17283f;--shadow:0 4px 22px #0004;--indigo-light:#203c63}
html[data-theme="dark"] body,html[data-theme="dark"] .public-page,html[data-theme="dark"] .auth-gate{background:#0d1729;color:#e9f0ff}
html[data-theme="dark"] .content-wrap,html[data-theme="dark"] .content-main,html[data-theme="dark"] main{color:#e9f0ff}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .card,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .legal-panel,html[data-theme="dark"] .public-top,html[data-theme="dark"] .ux-search-dialog,html[data-theme="dark"] .ux-storage-notice,html[data-theme="dark"] .ux-contact,html[data-theme="dark"] .modal,html[data-theme="dark"] .modal-head,html[data-theme="dark"] .table-card{background:#17283f;color:#e9f0ff;border-color:#34506d}
html[data-theme="dark"] .welcome-ribbon{background:#17375d!important;color:#f1f7ff!important}
html[data-theme="dark"] .page-head h1,html[data-theme="dark"] .card h2,html[data-theme="dark"] .table-heading h2,html[data-theme="dark"] .legal-panel-head h1,html[data-theme="dark"] .legal-body h2,html[data-theme="dark"] .auth-card h1,html[data-theme="dark"] .auth-card h2,html[data-theme="dark"] .auth-brand,html[data-theme="dark"] .public-brand,html[data-theme="dark"] .kpi-num,html[data-theme="dark"] .breadcrumb b,html[data-theme="dark"] .modal h2{color:#edf4ff}
html[data-theme="dark"] .page-head p,html[data-theme="dark"] .card p,html[data-theme="dark"] .legal-body,html[data-theme="dark"] .auth-card p,html[data-theme="dark"] .auth-card label,html[data-theme="dark"] .auth-card .auth-small-note,html[data-theme="dark"] .auth-card .auth-foot,html[data-theme="dark"] .auth-legal-links,html[data-theme="dark"] .kpi-label,html[data-theme="dark"] .kpi-foot,html[data-theme="dark"] .public-footer,html[data-theme="dark"] .today-date,html[data-theme="dark"] .sync-indicator,html[data-theme="dark"] .footer{color:#b9cbe3}
html[data-theme="dark"] .btn:not(.primary),html[data-theme="dark"] .pill,html[data-theme="dark"] .ux-tool-btn,html[data-theme="dark"] .ux-back-to-top,html[data-theme="dark"] .ux-copy-email,html[data-theme="dark"] .auth-modes,html[data-theme="dark"] .auth-card .auth-mode-btn.is-active,html[data-theme="dark"] .ux-search-close{background:#213958;color:#e6f1ff;border-color:#486281}
html[data-theme="dark"] .btn:not(.primary):hover,html[data-theme="dark"] .ux-tool-btn:hover,html[data-theme="dark"] .ux-search-result:hover{background:#2b486d;color:#fff}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .auth-card input,html[data-theme="dark"] .ux-search-dialog input{background:#101e33!important;color:#f3f8ff!important;border-color:#45607f!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9db0ca}
html[data-theme="dark"] th,html[data-theme="dark"] thead,html[data-theme="dark"] .table-scroll thead{background:#203650;color:#cbd9eb}
html[data-theme="dark"] td,html[data-theme="dark"] td strong,html[data-theme="dark"] .legal-lead,html[data-theme="dark"] .field label,html[data-theme="dark"] .form-grid label{color:#d7e4f5;border-color:#35516d}
html[data-theme="dark"] .notice,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .auth-hint{color:#bacce2}
html[data-theme="dark"] a,html[data-theme="dark"] .auth-legal-links a,html[data-theme="dark"] .legal-body a,html[data-theme="dark"] .ux-storage-notice a{color:#85bdff}
html[data-theme="dark"] .bottom-tabs{background:#162740;border-color:#405776}
html[data-theme="dark"] .bottom-tabs button{color:#b4c9e5}
html[data-theme="dark"] .sidebar{background:#07172d}
html[data-theme="dark"] .ux-password-show{background:#2d4a6b;color:#fff}
html[data-theme="dark"] .auth-card .auth-mode-btn{color:#d5e2f6}
html[data-theme="dark"] .ux-search-result{color:#e9f0ff}
@media(max-width:720px){.ux-storage-notice{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));max-width:none;display:flex}.ux-contact{right:9px;bottom:calc(10px + env(safe-area-inset-bottom,0px))}.ux-public-tools{margin-left:auto}.ux-public-tools .ux-tool-btn{padding:7px}.top-actions .ux-tool-btn{padding:7px;font-size:11px}.ux-search-dialog{padding:16px}.ux-back-to-top{right:12px;bottom:calc(82px + env(safe-area-inset-bottom,0px))}}
@media(max-width:480px){.ux-storage-notice{align-items:flex-start}.ux-storage-notice p{font-size:11px}.ux-storage-dismiss{padding:8px}.ux-public-tools{width:100%;justify-content:flex-end}}
@media print{#nova-scroll-progress,.ux-tool-btn,.ux-auth-tools,.ux-storage-notice,.ux-contact,.ux-back-to-top,.ux-search-dialog{display:none!important}html[data-theme="dark"]{color-scheme:light}html[data-theme="dark"] body,html[data-theme="dark"] .card,html[data-theme="dark"] .legal-panel{background:white!important;color:black!important}html[data-theme="dark"] .legal-body,html[data-theme="dark"] .legal-panel h1{color:black!important}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}.ux-back-to-top{transition:none}}
html[data-theme="dark"] .faq-item,html[data-theme="dark"] .faq-item summary,html[data-theme="dark"] .faq-answer{background:#223850;color:#e0eaf8;border-color:#3c5573}
html[data-theme="dark"] .faq-item summary:hover{background:#2b4461}
html[data-theme="dark"] .faq-plus{color:#91c1ff}
html[data-theme="dark"] .public-footer a{color:#9ac5fa}

/* Transparent original brand wordmark: distinct light/dark variants on the shared login/sign-up panel. */
.auth-brand-new .auth-logo-dark{display:none}
html[data-theme="dark"] .auth-brand-new .auth-logo-light{display:none}
html[data-theme="dark"] .auth-brand-new .auth-logo-dark{display:block}

/* Razorpay CTA status should be visually unambiguous. */
.plan-card .plan-pay-button:not(:disabled){display:flex;width:100%;justify-content:center;min-height:46px;background:#087f53;color:#fff;border:1px solid #076b45;box-shadow:0 5px 13px rgba(8,127,83,.22);font-weight:800;cursor:pointer}
.plan-card .plan-pay-button:not(:disabled):hover,.plan-card .plan-pay-button:not(:disabled):focus-visible{background:#065f46;box-shadow:0 5px 18px rgba(8,127,83,.35)}
.plan-card .plan-pay-button:disabled{display:flex;width:100%;justify-content:center;min-height:46px;background:#dbe3eb;color:#475569;border:1px solid #b8c7d7;opacity:1;cursor:not-allowed;box-shadow:none}
.plan-card .billing-recheck{display:inline-flex;justify-content:center;align-items:center;margin-top:8px;min-height:39px;border:1px solid #6798cd;color:#19599e;font-weight:700;background:transparent}
.plan-card .billing-unavailable{padding:12px 13px;background:rgba(145,165,190,.08);border-radius:10px}
