:root{--navy:#102746;--ink:#142940;--muted:#718096;--line:#e5ebf1;--bg:#f4f7fa;--teal:#078a91;--green:#087b62;--red:#b83d52;--white:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #69cbd0;outline-offset:2px}button{border:0;border-radius:10px;padding:11px 15px;font-weight:650;background:var(--navy);color:white}button.secondary{background:#eaf0f5;color:var(--ink)}button.danger{background:#fbe9ed;color:var(--red)}button.link{background:none;color:var(--teal);padding:7px}button.small{font-size:12px;padding:8px 11px}a{color:var(--teal)}input,select,textarea{width:100%;background:white;border:1px solid #d9e2ea;padding:11px 12px;border-radius:9px;color:var(--ink);min-width:0}textarea{min-height:75px;resize:vertical}label{display:grid;gap:6px;font-size:12px;font-weight:650;color:#52677b}h1,h2,h3,p{margin:0}h1{font-size:25px;font-weight:690;letter-spacing:-.7px}h2{font-size:17px;font-weight:670}h3{font-size:14px}p,.muted{color:var(--muted)}small{font-size:11px}.logo{font-size:22px;font-weight:820;letter-spacing:-1px;white-space:nowrap}.logo span{font-weight:400;letter-spacing:-.5px;color:#83d6d8}.loading{position:fixed;inset:0;display:grid;place-content:center;text-align:center;font-size:26px;font-weight:800;background:var(--navy);color:white}.loading span{color:#83d6d8}.loading p{font-size:13px;margin-top:10px;color:#bacbd9}.layout{min-height:100dvh;display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{background:var(--navy);color:white;position:sticky;top:0;height:100dvh;padding:26px 15px;display:flex;flex-direction:column;gap:25px}.sidebar .logo{padding:0 10px}.nav{display:grid;gap:5px;overflow:auto}.nav button{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;color:#bdcbd9;font-weight:520;padding:12px}.nav button.active{background:#284766;color:white}.ico{display:inline-grid;place-content:center;min-width:23px;font-size:18px;font-weight:500}.sidebar footer{margin-top:auto;font-size:11px;color:#aabaca;padding:0 10px}.main{min-width:0}.top{min-height:72px;padding:14px 30px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.top .company{width:auto;max-width:300px;font-weight:650}.topright{display:flex;align-items:center;gap:12px}.avatar{width:35px;height:35px;border-radius:50%;background:#e4f3f2;display:grid;place-content:center;color:var(--teal);font-weight:750}.content{padding:29px;max-width:1500px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.heading p{margin-top:6px;font-size:13px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel,.metric{background:white;border:1px solid var(--line);border-radius:15px;padding:20px;min-width:0}.panel{margin-top:16px}.metric .value{font-size:24px;font-weight:720;letter-spacing:-.8px;margin:12px 0 5px;overflow-wrap:anywhere}.metric p{font-size:12px}.metric.primary{background:var(--navy);color:white;border:0}.metric.primary p{color:#c1cfdd}.pos{color:var(--green)}.neg{color:var(--red)}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.filters input,.filters select{width:auto;flex:1;min-width:120px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:11px;color:var(--muted);font-weight:650;padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #eef2f5;font-size:13px}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{text-align:right}tr:last-child td{border-bottom:0}.pill{display:inline-block;border-radius:20px;background:#edf3f7;color:#536a80;font-size:11px;padding:5px 9px}.empty{padding:32px 10px;text-align:center;color:var(--muted)}.listrow{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line)}.listrow:last-child{border:0}.listrow .left{display:grid;gap:5px;min-width:0}.listrow strong{overflow-wrap:anywhere}.currency{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px}.currency button{background:white;border:1px solid var(--line);color:var(--muted);padding:8px 15px}.currency button.active{background:var(--navy);color:white;border-color:var(--navy)}.mobile-nav{display:none}.auth{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at top left,#28536d,#102746 70%)}.authbox{background:white;width:min(100%,440px);border-radius:22px;padding:32px;display:grid;gap:20px;box-shadow:0 25px 90px #00162d55}.authbox .logo{color:var(--navy)}.authbox .logo span{color:var(--teal)}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.full{grid-column:1/-1}.auth form{display:grid;gap:13px}.error{color:var(--red);font-size:13px;white-space:pre-wrap}.notice{border:1px solid #d9e9e9;background:#edf8f7;color:#22676b;border-radius:12px;padding:12px;line-height:1.6;margin-bottom:14px}dialog{border:0;border-radius:18px;padding:0;width:min(760px,calc(100% - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 24px 90px #081d3e55}dialog::backdrop{background:#10274699;backdrop-filter:blur(2px)}.modalhead{padding:18px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.modalbody{padding:20px 22px}.modalfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.close{background:#eef2f5;color:var(--ink);font-size:20px;padding:3px 10px}.lineedit{border:1px solid var(--line);border-radius:12px;padding:13px;margin:10px 0}.lineedit .formgrid{grid-template-columns:repeat(3,1fr)}#toast{position:fixed;bottom:25px;right:25px;background:var(--navy);color:white;padding:14px 20px;border-radius:12px;max-width:calc(100% - 30px);z-index:100;display:none;box-shadow:0 8px 30px #0003}#toast.show{display:block}.docprint{background:white;padding:25px}.docprint h1{margin-bottom:18px}.bar{height:7px;background:#edf1f4;border-radius:8px;overflow:hidden}.bar span{display:block;height:100%;background:var(--teal)}.quick{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.quick button{background:#eaf5f5;color:#126d72}.mobilelogo{display:none}.install{font-size:12px;color:var(--muted);line-height:1.6}.search{max-width:300px}.rowbuttons{display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap}.badge{font-size:10px;padding:5px 8px;background:#e8f5ed;color:var(--green);border-radius:20px}.badge.red{background:#fcecf0;color:var(--red)}
@media(max-width:1050px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:190px minmax(0,1fr)}.content{padding:22px}.top{padding:14px 22px}.two{grid-template-columns:1fr}}
@media(max-width:720px){:root{font-size:14px}.layout{display:block}.sidebar{display:none}.top{min-height:60px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));gap:8px}.top .company{max-width:48%;font-size:12px;padding:9px}.topright .username{display:none}.topright{gap:5px}.mobilelogo{display:block;font-size:17px;letter-spacing:-.8px}.mobilelogo span{color:var(--teal)}.content{padding:17px 13px calc(96px + env(safe-area-inset-bottom))}.heading{align-items:flex-start;margin-bottom:15px}.heading h1{font-size:22px}.heading p{font-size:12px}.heading button{padding:10px 11px;font-size:12px}.grid{gap:9px}.metric{padding:14px;border-radius:13px}.metric .value{font-size:19px;margin-top:10px}.metric p{font-size:11px}.panel{padding:14px;border-radius:13px;margin-top:12px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:9;padding:6px 3px calc(6px + env(safe-area-inset-bottom))}.mobile-nav button{background:transparent;color:var(--muted);display:grid;gap:4px;justify-items:center;padding:5px 0;font-size:10px}.mobile-nav button.active{color:var(--teal)}.mobile-nav button.add .ico{background:var(--navy);color:white;width:35px;height:35px;border-radius:13px;font-size:24px;margin-top:-14px}.mobile-nav .ico{font-size:21px}.formgrid{gap:10px}.modalbody{padding:15px}.modalhead{padding:14px 15px}.lineedit .formgrid{grid-template-columns:1fr 1fr}.authbox{padding:24px}#toast{bottom:90px;right:12px}.quick{gap:6px}.quick button{font-size:12px;padding:9px}.tablewrap{margin-right:-3px}.filters input,.filters select{min-width:100px}.rowbuttons button{font-size:11px}.docprint{padding:5px}}
@media print{body{background:white}.layout,#toast,.modalhead,.modalfoot,.noprint{display:none!important}dialog{position:static!important;display:block!important;max-height:none!important;max-width:none!important;width:100%!important;box-shadow:none!important;overflow:visible}dialog::backdrop{display:none}.modalbody{padding:0}.docprint{padding:0}table{white-space:normal}button{display:none!important}}
:root{--navy:#10253f;--ink:#15263d;--teal:#087f80;--bg:#f5f7fa;--line:#e4e9ef}button{font-weight:600}.brand-image{display:block;max-width:100%;height:auto}.login-layout{grid-template-columns:1fr 1fr;place-items:stretch;padding:0;background:white}.login-story{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;padding:48px clamp(32px,5.3vw,90px);color:white;background:radial-gradient(ellipse at 95% 100%,#13696f 0,transparent 51%),linear-gradient(145deg,#0b1c33,#132e48 65%,#174c58);min-height:100dvh}.login-story:before,.login-story:after{content:'';position:absolute;border:1px solid #ffffff19;border-radius:50%;width:620px;height:620px;right:-310px;top:10%;z-index:-1}.login-story:after{width:820px;height:820px;right:-400px;top:0}.story-brand,.login-brand,.sidebar-brand,.mobile-brand{display:flex;align-items:center;gap:11px}.story-brand .brand-image,.sidebar-brand .brand-image,.mobile-brand .brand-image{background:transparent;border-radius:0;padding:6px;width:148px}.story-brand>span,.sidebar-brand>span{font-size:10px;letter-spacing:3px;color:#91d8d4}.story-copy{margin:auto 0;padding:40px 0;max-width:490px}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:650;display:flex;align-items:center;gap:8px;color:#087f80}.eyebrow i{width:7px;height:7px;border-radius:50%;background:#2dc1b3}.story-copy .eyebrow{color:#8ce2d9}.story-copy h1{font-size:clamp(35px,4.3vw,65px);line-height:1.12;letter-spacing:-2.2px;margin:20px 0;font-weight:600}.story-copy h1 span{color:#51d4c7}.story-copy p{color:#becdd9;line-height:1.75;font-size:15px;max-width:390px}.story-preview{margin-top:36px;border:1px solid #ffffff24;border-radius:17px;background:#ffffff0c;padding:22px;max-width:440px}.story-preview-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#dae8f0}.story-chip{font-size:10px;border:1px solid #ffffff25;padding:4px 8px;border-radius:30px;color:#b5e3df}.story-metrics{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:21px 0 12px}.story-metrics small{color:#b4ccd8;display:block;margin-bottom:7px}.story-metrics strong{font-size:22px;font-weight:600;letter-spacing:-.7px}.story-bars{height:116px;display:flex;align-items:end;gap:8px;border-bottom:1px solid #ffffff25;background:repeating-linear-gradient(to top,transparent 0 28px,#ffffff0a 28px 29px)}.story-bars span{flex:1;background:linear-gradient(#71dfd1,#09918f);border-radius:4px 4px 0 0}.story-axis{display:flex;justify-content:space-between;color:#aac3cf;font-size:10px;padding-top:8px}.story-footer{color:#a6bfcd;font-size:11px;letter-spacing:.4px}.story-footer span{margin:0 7px;color:#52c7c0}.login-main{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:42px 35px 76px;min-width:0}.login-box{width:min(100%,400px);box-shadow:none;padding:0;gap:27px;border-radius:0}.login-brand .brand-image{width:186px}.login-brand>span{letter-spacing:2.5px;font-size:11px;color:var(--teal);border-left:1px solid var(--line);padding-left:12px}.login-intro h1{font-size:35px;letter-spacing:-1.1px;margin:10px 0 8px}.login-intro p{font-size:14px;line-height:1.6}.login-box form{gap:17px}.login-box label{font-size:13px;color:var(--ink);font-weight:550;gap:8px}.login-input{display:flex;align-items:center;gap:10px;border:1px solid #dce3e9;border-radius:10px;padding:0 13px;background:#fff;color:#7a8a9a;min-height:53px}.login-input:focus-within{border-color:#0a9292;box-shadow:0 0 0 3px #0a929213}.login-input input{border:0;outline:none!important;background:transparent;padding:14px 0;flex:1;min-width:0;font-size:14px}.login-input svg,.login-security svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.password-toggle{background:transparent;color:#7a8a9a;padding:4px;display:grid;place-items:center}.remember{display:flex!important;align-items:center;gap:10px!important}.remember input{width:18px;height:18px;accent-color:var(--teal);margin:0}.remember small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:3px}.login-submit{background:linear-gradient(100deg,#087f80,#076967);height:53px;display:flex;justify-content:center;align-items:center;position:relative;font-size:15px;box-shadow:0 6px 16px #087f801c}.login-submit span{position:absolute;right:19px;font-size:22px;font-weight:400}.login-security{border-top:1px solid var(--line);padding-top:18px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px}.login-security svg{color:var(--teal)}.login-footer{position:absolute;bottom:23px;color:#8994a1;font-size:11px}.login-box .error:empty{display:none}.sidebar{background:#0d2038}.sidebar-brand{flex-wrap:wrap;gap:7px;padding:0 5px}.sidebar-brand .brand-image{width:145px}.nav button.active{background:linear-gradient(100deg,#0b777c,#125861)}.ico svg{width:20px;height:20px}.metric-icon{display:inline-grid;place-items:center;background:#e4f4f0;color:#087f80;width:34px;height:34px;border-radius:10px;margin-bottom:9px}.metric-icon svg{width:19px;height:19px}.metric.primary{background:white;color:var(--ink);border:1px solid var(--line)}.metric.primary p{color:var(--muted)}.dashboard-metrics .metric:nth-child(2) .metric-icon,.dashboard-metrics .metric:nth-child(4) .metric-icon{background:#fcecef;color:#b83d52}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px}.panel,.metric{box-shadow:0 3px 10px #12263b05}.cash-summary{text-align:right}.cash-summary small{display:block;color:var(--muted);margin-bottom:4px}.cash-summary strong{font-size:15px}.chart-legend{display:flex;gap:16px;justify-content:flex-end;color:var(--teal);font-size:11px;margin:8px 0}.chart-legend span+span{color:var(--navy)}.flow-chart{display:flex;gap:13px;height:182px;background:repeating-linear-gradient(to top,transparent 0 38px,#e8edf1 38px 39px);padding-top:9px}.flow-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;align-items:center}.flow-pair{display:flex;align-items:end;justify-content:center;gap:5px;flex:1;width:100%}.flow-pair span{width:32%;max-width:28px;background:linear-gradient(#5cc5ab,#179a83);border-radius:3px 3px 0 0}.flow-pair span+span{background:#173654}.flow-col small{color:var(--muted);font-size:10px}.mobile-brand{display:none}.quick button{background:#e9f5f3;color:#087777}.quick button:first-child{background:#087f80;color:white}.dashboard-columns .panel:first-child{margin-top:0}
@media(max-width:900px){.dashboard-columns{grid-template-columns:1fr}.login-story{padding:36px}.story-metrics strong{font-size:18px}}
@media(max-width:700px){.login-layout{display:flex;flex-direction:column;background:white}.login-story{min-height:0;padding:25px 25px 30px;border-radius:0 0 26px 26px}.story-brand .brand-image{width:133px}.story-brand>span{font-size:9px}.story-copy{padding:25px 0 0;margin:0}.story-copy h1{font-size:34px;letter-spacing:-1.3px;margin:9px 0}.story-copy h1 br{display:none}.story-copy p{font-size:12px;line-height:1.5;max-width:310px}.story-copy .eyebrow{font-size:8px}.story-preview,.story-footer{display:none}.login-main{flex:1;justify-content:flex-start;padding:28px 25px 55px}.login-box{gap:20px;max-width:420px}.login-brand{display:none}.login-intro h1{font-size:29px;margin:8px 0}.login-intro p{font-size:13px}.login-box form{gap:15px}.login-security{padding-top:14px}.login-footer{bottom:17px}.mobile-brand{display:flex;gap:4px;flex-direction:column;align-items:flex-start}.mobile-brand .brand-image{width:92px;padding:3px}.mobile-brand>span{color:#9ce4dc;font-size:8px;letter-spacing:2px}.top{background:#10253f;color:white;padding:10px 12px;gap:6px}.top .company{max-width:42%;font-size:11px;padding:8px 5px}.topright .username,.topright .avatar{display:none}.topright .small{background:#28425b;color:white;padding:8px}.mobile-nav{background:#10253f;border:0}.mobile-nav button{color:#c3d0dd}.mobile-nav button.active{color:#76dfd2}.mobile-nav button.add .ico{background:#087f80}.dashboard-columns .panel:first-child{margin-top:12px}.metric-icon{width:28px;height:28px;margin-bottom:5px}.metric .value{font-size:19px}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-chart{height:145px}.login-layout .authbox{padding:0}}
@media(max-width:360px){.login-story{padding:20px}.login-main{padding:22px 20px 50px}.story-copy h1{font-size:29px}.story-copy p{font-size:11px}.login-box{gap:16px}}
@media(max-width:700px){.story-copy h1 br{display:block}.story-copy h1{font-size:30px;line-height:1.13}.story-copy{padding-top:19px}.login-story{padding-bottom:23px}.login-main{padding-top:23px}.login-input input{font-size:16px}.login-box{gap:17px}.login-box form{gap:13px}}
/* V3 notification center — existing visual system */
.bell-button{padding:8px;background:transparent;color:inherit;border:1px solid rgba(128,145,160,.25);border-radius:10px;display:grid;place-items:center;min-width:40px;min-height:40px}.bell-button svg{width:21px;height:21px}.notice-row{border-bottom:1px solid #e4eaf0;padding:14px 0;display:flex;gap:12px;justify-content:space-between;align-items:center}.notice-row p{margin:5px 0;overflow-wrap:anywhere}.notice-row:last-child{border-bottom:0}.notice-row>div:first-child{min-width:0}.sidebar .nav{overflow-y:auto;min-height:0}.notice-row .actions{flex-wrap:wrap}@media(max-width:700px){.notice-row{align-items:flex-start;flex-direction:column}.bell-button{min-width:36px;min-height:36px;padding:6px}}
.statement-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:2px solid #158c88;padding:0 0 16px;margin-bottom:16px}.statement-head img{width:145px;height:auto;object-fit:contain}.statement h3{font-size:16px;margin:16px 0 8px}.statement .tablewrap{margin:8px 0}.statement p{margin:8px 0;overflow-wrap:anywhere}@media print{.statement-head img{width:130px}.statement .tablewrap{overflow:visible}.statement table{min-width:0}.statement td{white-space:normal}}
/* v3.1: existing geometry and brand assets are unchanged. Dark theme is optional. */
.login-extra{justify-content:space-between;margin-top:8px}.login-extra .small{font-size:11px}.login-extra button{white-space:normal}.panel .actions{flex-wrap:wrap}
:root[data-theme=dark]{--ink:#e1edf6;--muted:#a7bdce;--line:#30445a;--bg:#101d2e;--teal:#68d7d2;--green:#75e0ba;--red:#ff9eae;--white:#182b40;color-scheme:dark}
[data-theme=dark] .main,[data-theme=dark] .top,[data-theme=dark] .panel,[data-theme=dark] .stat,[data-theme=dark] .metric,[data-theme=dark] .card,[data-theme=dark] .mobile-nav,[data-theme=dark] dialog,[data-theme=dark] .modalhead,[data-theme=dark] .modalfoot,[data-theme=dark] .login-main,[data-theme=dark] .authbox,[data-theme=dark] .login-box,[data-theme=dark] .login-input{background:#182b40!important;color:var(--ink);border-color:var(--line)}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] button.secondary,[data-theme=dark] th,[data-theme=dark] .notice,[data-theme=dark] .empty{background:#23374e!important;color:var(--ink);border-color:var(--line)}
[data-theme=dark] label,[data-theme=dark] .muted,[data-theme=dark] p,[data-theme=dark] .login-intro h1,[data-theme=dark] .login-intro p{color:var(--ink)}
[data-theme=dark] .login-brand img{content:url('brand-dark-v34.png')}[data-theme=dark] .login-brand span{color:var(--ink)}

/* V3.2 — authenticated UI refinement; login, API and PWA logic unchanged. */
@media screen {
.layout, #modal, #toast {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
.layout button, #modal button {font-weight: 500;}
.layout label, #modal label, .layout th, #modal th {font-weight: 500;}
.layout h1 {font-size: 25px; font-weight: 600; letter-spacing: -.55px; line-height: 1.25;}
.layout h2, #modal h2 {font-size: 16px; font-weight: 600; letter-spacing: -.18px; line-height: 1.4;}
.layout h3, #modal h3, .layout strong, #modal strong {font-weight: 600;}
.layout .muted, .layout p, .layout small, .layout .empty {font-weight: 400;}
.layout .top {min-height: 64px; padding: 10px 26px;}
.layout .top .company {font-weight: 500;}
.layout .avatar {font-weight: 500;}
.layout .sidebar {padding: 23px 14px 16px; gap: 22px;}
.layout .sidebar-brand {display: flex; flex-direction: column; align-items: flex-start; padding: 0 10px; gap: 5px;}
.layout .sidebar-brand .brand-image {width: 142px;}
.layout .sidebar-brand > span {font-size: 9px; letter-spacing: 3px; font-weight: 500; color: #8bdbd3;}
.layout .sidebar .nav {gap: 3px;}
.layout .nav button {padding: 10px 11px; min-height: 40px; gap: 10px; font-size: 13px; font-weight: 400; border-radius: 8px; color: #c5d2df;}
.layout .nav button.active {background: #164a59; color: #fff; font-weight: 500;}
.layout .nav button:not(.active):hover {background: #ffffff0d; color: #fff;}
.layout .nav .ico svg {width: 18px; height: 18px;}
.layout .sidebar footer {line-height: 1.5; font-weight: 400;}
.layout .content {padding: 24px 28px; max-width: 1530px;}
.layout .heading {margin-bottom: 16px;}
.layout .heading p {margin-top: 5px;}
.layout .currency {margin-bottom: 13px;}
.layout .currency button {font-size: 12px; padding: 7px 14px; border-radius: 7px;}
.layout .panel, .layout .metric {border-radius: 12px; padding: 17px; box-shadow: 0 2px 8px #12263b04;}
.layout .panel {margin-top: 14px;}
.layout .panelhead {margin-bottom: 10px;}
.layout .metric-icon {width: 31px; height: 31px; border-radius: 9px; margin-bottom: 7px;}
.layout .metric .value {font-size: 25px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.55px; margin: 7px 0 4px;}
.layout .metric p {font-size: 12px; line-height: 1.4;}
.layout .metric p:last-child {font-size: 11px;}
.layout .quick {margin: 13px 0 14px; gap: 7px;}
.layout .quick button {font-size: 12px; border-radius: 8px; padding: 9px 13px;}
.layout .dashboard-columns {gap: 14px;}
.layout .dashboard-columns .panel:first-child {margin-top: 0;}
.layout .dashboard-columns .empty {padding: 24px 5px; font-size: 13px; line-height: 1.5;}
.layout .flow-chart {height: 158px;}
.layout .chart-legend {margin: 5px 0 8px;}
.layout .cash-summary strong {font-weight: 600;}
.layout .listrow {padding: 11px 0;}
.layout td {font-weight: 400;}
.layout button.small {font-size: 12px; padding: 7px 10px; border-radius: 7px;}
.layout .topright .bell-button {border-radius: 9px;}
@media (min-width:1051px) {.layout {grid-template-columns: 218px minmax(0,1fr);}}
@media (min-width:721px) and (max-height:850px) {
  .layout .sidebar {gap: 15px; padding-top: 18px;}
  .layout .nav button {min-height: 35px; padding: 7px 10px;}
  .layout .content {padding-top: 20px;}
  .layout .dashboard-columns .empty {padding-block: 18px;}
  .layout .flow-chart {height: 140px;}
}
@media (max-width:720px) {
  .layout .top {min-height: 60px; background:#10253f; color:white; padding: max(10px,env(safe-area-inset-top)) 12px 10px; gap:6px;}
  .layout .mobile-brand {display:flex; flex-direction:column; gap:4px; align-items:flex-start;}
  .layout .mobile-brand .brand-image {width:92px; padding:3px;}
  .layout .mobile-brand>span {color:#9ce4dc;font-size:8px;letter-spacing:2px;}
  .layout .top .company {max-width: 42%; font-size: 12px; padding: 8px 5px;}
  .layout .topright .username,.layout .topright .avatar {display:none;}
  .layout .topright .small {background:#28425b;color:white;padding:8px;}
  .layout .content {padding: 16px 12px calc(90px + env(safe-area-inset-bottom));}
  .layout .heading {margin-bottom: 13px;}
  .layout h1 {font-size: 22px;}
  .layout .panel,.layout .metric {padding: 13px;}
  .layout .metric .value {font-size: 19px;}
  .layout .metric p {font-size: 11px;}
  .layout .metric p:last-child {font-size: 10px;}
  .layout .metric-icon {width: 28px; height: 28px; margin-bottom: 5px;}
  .layout .quick {gap:6px; margin:12px 0;}
  .layout .quick button {padding: 10px; min-height: 40px;}
  .layout .flow-chart {height: 145px;}
  .layout .mobile-nav {background:#10253f; border:0;}
  .layout .mobile-nav button {color:#c3d0dd; font-size:10px; min-height:44px;}
  .layout .mobile-nav button.active {color:#76dfd2;}
  .layout .mobile-nav button.add .ico {background:#087f80;}
  .layout .dashboard-columns {gap: 12px;}
  .layout .dashboard-columns .empty {padding: 20px 5px;}
  #modal input,#modal select,#modal textarea {font-size:16px;}
}
}

/* V3.3 — UI-only motion, responsive forms and navigation. */
@media screen {
  @keyframes nvEnter {from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
  @keyframes nvBar {from{transform:scaleY(.12);opacity:.15}to{transform:scaleY(1)}}
  @keyframes nvOrbit {from{transform:translate(14px,10px) scale(.96);opacity:.25}to{transform:translate(0,0) scale(1);opacity:1}}
  @media (prefers-reduced-motion:no-preference) {
    .login-layout .story-brand {animation:nvEnter .48s cubic-bezier(.2,.7,.25,1) both}
    .login-layout .story-copy > .eyebrow,.login-layout .story-copy > h1 {animation:nvEnter .55s .09s cubic-bezier(.2,.7,.25,1) both}
    .login-layout .story-copy > p {animation:nvEnter .55s .15s cubic-bezier(.2,.7,.25,1) both}
    .login-layout .story-preview {animation:nvEnter .55s .18s cubic-bezier(.2,.7,.25,1) both}
    .login-layout .story-bars span {transform-origin:bottom;animation:nvBar .65s .26s cubic-bezier(.2,.7,.25,1) both}
    .login-layout .story-bars span:nth-child(2){animation-delay:.30s}
    .login-layout .story-bars span:nth-child(3){animation-delay:.34s}
    .login-layout .story-bars span:nth-child(4){animation-delay:.38s}
    .login-layout .story-bars span:nth-child(5){animation-delay:.42s}
    .login-layout .story-bars span:nth-child(6){animation-delay:.46s}
    .login-layout .login-box {animation:nvEnter .56s .11s cubic-bezier(.2,.7,.25,1) both}
    .login-layout .login-story::before,.login-layout .login-story::after {animation:nvOrbit .85s ease-out both}
    .login-submit {transition:filter .18s,transform .18s}
    .login-submit:active:not(:disabled){transform:scale(.985)}
    .login-submit:hover:not(:disabled){filter:brightness(1.06)}
  }
  /* Fixed track sizing prevents Safari intrinsic date-input overflow. */
  .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .formgrid > *, .formgrid label, .formgrid .formgrid {min-width:0;max-width:100%;}
  .formgrid input,.formgrid select,.formgrid textarea {min-width:0;max-width:100%;width:100%;box-sizing:border-box;}
  .formgrid input[type=date]{display:block;min-width:0;max-width:100%;width:100%;text-align:left;}
  .formgrid input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0;}
  .lineedit .formgrid{grid-template-columns:repeat(3,minmax(0,1fr));}
  #modal .menuitems {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  #modal .menuitems button {display:flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:52px;text-align:left;padding:11px 10px;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:var(--ink);font-size:13px;line-height:1.3;font-weight:500;}
  #modal .menuitems button span:last-child{min-width:0;overflow-wrap:anywhere;}
  #modal .menuitems button .ico{flex:0 0 22px;color:var(--teal);}
  #modal .menuitems button.active{background:#e6f4f2;border-color:#b5ded9;color:#086b70;}
  :root[data-theme=dark] #modal .menuitems button.active{background:#164a59;color:#e1edf6;border-color:#387579;}
  .layout .nav button span:last-child{min-width:0;overflow-wrap:break-word;line-height:1.35;}
  .layout .nav button .ico{flex:0 0 23px;}
  .layout .nav button{min-height:40px;}
  .layout .heading>div{min-width:0;}
  @media(min-width:1051px){.layout{grid-template-columns:238px minmax(0,1fr);}}
  @media(max-width:720px){
    .layout .top{padding: max(8px,env(safe-area-inset-top)) 12px 8px;min-height:56px;}
    .layout .mobile-brand .brand-image{width:88px;}
    .layout .mobile-brand>span{font-size:7px;}
    .layout .topright .bell-button,.layout .topright .small{min-height:40px;}
    .layout .content{padding:14px 12px calc(84px + env(safe-area-inset-bottom));}
    .layout .heading {flex-wrap:wrap;gap:10px;margin-bottom:12px;}
    .layout .heading>div:first-child{flex:1 1 160px;}
    .layout .heading .actions{gap:6px;}
    .layout .heading h1 {font-size:21px;line-height:1.25;font-weight:500;}
    .layout .heading button {min-height:40px;}
    .layout .metric{padding:11px;}
    .layout .metric .value{font-size:19px;margin:5px 0 3px;font-weight:500;}
    .layout .metric p{line-height:1.4;}
    .layout .metric-icon{width:25px;height:25px;margin-bottom:4px;}
    .layout .metric-icon svg{width:16px;height:16px;}
    .layout .quick{gap:5px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));}
    .layout .quick button{padding:8px 3px;min-height:44px;min-width:0;font-size:11px;line-height:1.2;overflow-wrap:anywhere;}
    .layout .quick:has(button:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr));}
    .layout .flow-chart{height:112px;}
    .layout .dashboard-columns .empty{padding:14px 5px;}
    .layout .mobile-nav button{min-height:44px;min-width:0;white-space:normal;}
    .layout .mobile-nav button.add .ico{margin-top:-10px;}
    .layout .search{max-width:none;}
    #modal{width:calc(100% - 24px);max-height:calc(100dvh - 24px);max-height:min(90dvh,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));overflow:auto;overscroll-behavior:contain;}
    #modal .modalhead{padding:12px 15px;}
    #modal .modalhead h2{min-width:0;font-size:16px;}
    #modal .close{min-height:40px;min-width:40px;flex-shrink:0;}
    #modal .modalbody{padding:14px;}
    #modal .modalfoot button{min-height:44px;}
    #modal .lineedit .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .login-story{padding:20px 22px;}
    .login-layout .story-copy{padding-top:14px;}
    .login-layout .story-copy h1{font-size:28px;line-height:1.13;margin:8px 0;}
    .login-main{padding:20px 22px 38px;}
    .login-box{gap:14px;}
    .login-box form{gap:12px;}
    .login-input,.login-submit{min-height:48px;height:auto;}
    .login-input input{padding:12px 0;font-size:16px;}
    .login-submit{height:48px;}
    .login-extra{gap:7px;}
    .login-extra button{min-height:40px;}
    .login-footer{bottom:12px;}
  }
  @media(max-width:440px){
    #modal .formgrid,#modal .lineedit .formgrid{grid-template-columns:minmax(0,1fr);}
    #modal .formgrid{gap:10px;}
    #modal label{font-size:12px;}
    #modal input,#modal select,#modal textarea{font-size:16px;min-height:44px;}
    #modal .menuitems button{font-size:12px;min-height:49px;padding:9px 8px;}
  }
  @media(max-width:359px){#modal .menuitems{grid-template-columns:minmax(0,1fr);} .layout .quick{grid-template-columns:repeat(3,minmax(0,1fr));}}
}

/* V3.3 compact desktop sidebar; independent of mobile navigation. */
@media screen and (min-width:721px){
.layout{grid-template-columns:238px minmax(0,1fr)}
.layout.sidebar-compact{grid-template-columns:72px minmax(0,1fr)}
.layout .sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:46px;flex-shrink:0}
.layout .sidebar-top .sidebar-brand{padding:0 0 0 4px;min-width:0;gap:3px}
.layout .sidebar-top .sidebar-brand .brand-image{width:126px;max-width:100%}
.layout .sidebar-toggle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:36px;padding:7px;background:#ffffff0b;color:#c5d2df;border:1px solid #ffffff1c;border-radius:8px}
.layout .sidebar-toggle:hover{background:#ffffff18;color:white}
.layout .sidebar-toggle svg{width:19px;height:19px}
.layout.sidebar-compact .sidebar{padding-inline:9px;gap:15px}
.layout.sidebar-compact .sidebar-top{justify-content:center}
.layout.sidebar-compact .sidebar-brand,.layout.sidebar-compact .sidebar footer,.layout.sidebar-compact .nav button>span:last-child{display:none}
.layout.sidebar-compact .nav button{justify-content:center;padding:9px 0;min-height:40px;gap:0}
.layout.sidebar-compact .nav .ico{flex:0 0 23px}
.layout.sidebar-compact .nav .ico svg{width:20px;height:20px}
.layout .nav{scrollbar-width:thin;scrollbar-color:#ffffff26 transparent}
@media(prefers-reduced-motion:no-preference){.layout{transition:grid-template-columns .2s ease}}
}
@media screen and (max-width:720px){.sidebar-toggle{display:none}.layout .mobile-nav button{font-size:10px}.layout .heading .actions{max-width:100%}.layout .heading .actions button{max-width:100%;white-space:normal}}

/* V3.4: branded, consent-based biometric enrollment */
.bio-offer{text-align:center;display:grid;gap:14px;justify-items:center;padding:8px 2px 14px}.bio-offer p{max-width:34ch;margin:0;color:var(--muted);line-height:1.55}.bio-offer .bio-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#0c918b18;color:var(--teal)}.bio-mark svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.bio-offer button{width:100%;min-height:44px}.bio-offer .error{min-height:0;overflow-wrap:anywhere}.bio-offer .error:empty{display:none}.bio-offer .bio-skip{background:transparent;color:var(--muted);border:1px solid var(--line)}
@media print{.statement-head img{content:url('brand-v34.png')}}
