:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;font-size:16px;color:#234169;background:#f3f7fd;--blue:#2563eb;--line:#dce6f4;--muted:#6c7f99}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{height:100dvh}button,input,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}button,a,input,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}h1{font-size:1.35rem;font-weight:650}h2{font-size:1rem;font-weight:650}small{font-size:.875rem}button:focus-visible,a:focus-visible{outline:3px solid #84afff;outline-offset:2px}input,select{min-width:0;width:100%;border:1px solid #cfdcf0;background:white;color:#234169;border-radius:8px;padding:8px 10px;min-height:38px}input:focus,select:focus{outline:2px solid #93b7fa;outline-offset:1px}select{appearance:none;padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23677f9e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}label{display:flex;flex-direction:column;gap:5px;font-size:.875rem;font-weight:500}#app{height:100dvh;display:flex}.sidebar{width:185px;flex-shrink:0;background:white;border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:1.25rem;font-weight:650}.brand-mark{width:48px;height:48px;background:#e3eeff;color:var(--blue);display:grid;place-content:center;border-radius:13px;font-size:1.65rem;font-style:italic;font-weight:750;letter-spacing:-5px;padding-right:5px}.brand-mark span{display:contents}.brand-mark.small{height:36px;width:36px;font-size:1.35rem;border-radius:10px}.sidebar nav{margin-top:30px;display:flex;flex-direction:column;gap:8px}.nav-item{text-align:left;background:transparent;border-radius:9px;padding:12px;color:var(--muted);display:flex;gap:12px;align-items:center;font-size:.95rem}.nav-item span{font-size:1.2rem}.nav-item.active{background:#eaf1ff;color:var(--blue);font-weight:600}.side-bottom{margin-top:auto;display:flex;align-items:start;flex-direction:column;gap:20px}.text-btn{padding:0;background:none;color:var(--blue);font-size:.875rem;white-space:nowrap}.workspace{min-width:0;flex:1;display:flex;flex-direction:column;height:100%}.topbar{height:48px;flex-shrink:0;padding:0 24px;display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line);font-size:.8rem}.breadcrumb{color:#7d90aa;letter-spacing:1px}.breadcrumb span{margin-left:8px}.top-actions{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.75rem}.icon-btn{background:transparent;color:#5b7cae;font-size:1.4rem;min-height:32px;min-width:32px}main{width:100%;max-width:1200px;margin:0 auto;padding:18px 24px;display:flex;flex-direction:column;gap:14px;min-height:0;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;height:40px}.primary,.secondary,.danger{border-radius:8px;min-height:38px;padding:8px 14px;font-size:.875rem;font-weight:550;white-space:nowrap}.primary{background:var(--blue);color:white}.primary:hover{background:#1d56d5}.secondary{background:#edf3ff;color:#3769b2;border:1px solid #d8e5fb}.danger{background:#fff1ef;color:#b0473e}.vehicle-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid var(--line);border-radius:10px;padding:7px 12px;min-height:48px;flex-shrink:0}.vehicle-toolbar>div{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.vehicle-toolbar label{white-space:nowrap;font-size:.875rem;color:var(--muted)}.vehicle-toolbar select{border:0;max-width:360px;background-color:#f2f6ff;min-height:32px;padding-top:5px;padding-bottom:5px;font-size:.875rem;font-weight:550}main>section{flex:1;min-height:0;max-height:100%}#overview-page{display:grid;grid-template-rows:minmax(0,1.35fr) minmax(0,.85fr) minmax(0,.65fr);gap:14px;max-height:550px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-height:0}.car-card{background:#e7f0ff;color:#234b89;border:1px solid #d3e3fc;border-radius:12px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:0;overflow:hidden}.car-top{display:flex;justify-content:space-between;align-items:start;gap:8px;min-width:0}.car-top>div{min-width:0}.car-card h2{font-size:1.3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{font-size:.75rem;color:#4d78b9;background:#d4e5ff;padding:4px 7px;border-radius:5px;white-space:nowrap}.plate{display:inline-block;font-size:1rem;letter-spacing:2px;font-weight:700;padding:4px 10px;background:white;color:#315789;border:1px solid #c8dafa;border-radius:5px;margin-top:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.car-bottom{display:flex;justify-content:space-between;align-items:end;gap:8px}.car-bottom p{font-size:.8rem;color:#6281ac}.odometer{font-size:1.6rem;letter-spacing:-.5px;margin-top:3px}.odometer small{font-size:.8rem;color:#7191bc}.month-card{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;min-height:0;gap:10px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}.mini-select{font-size:.875rem;width:145px;min-height:34px;padding:4px 6px;background:#f5f8fe;border-color:#e0eafa}.big-amount{font-size:2.4rem;letter-spacing:-1px;font-weight:600;color:#245bb3;white-space:nowrap}.month-foot{display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:var(--muted)}.metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;min-height:0}.metric{border:1px solid var(--line);background:#fff;border-radius:12px;padding:18px;display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:0;overflow:hidden}.metric-label{font-size:.875rem;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:6px}.metric-value{font-size:1.85rem;letter-spacing:-.5px;white-space:nowrap;color:#2c5eaa;font-weight:600}.metric-value small{font-size:.8rem;letter-spacing:0;margin-left:5px;color:#8291aa;font-weight:400}.estimate{font-size:.75rem;padding:2px 5px;border-radius:4px;background:#edf3ff;color:#547db8}.panel{border:1px solid var(--line);background:white;border-radius:12px;padding:16px;min-height:0}.due-panel{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.due-item{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.875rem;min-width:0}.due-item small{display:block;font-size:.875rem;margin-top:5px;color:#6780a3}.due-status{color:#6482aa;font-size:.8rem;white-space:nowrap}.due-status.urgent{color:#ba7944}#records-page{display:flex}.records-panel{display:flex;flex-direction:column;width:100%;gap:10px;padding:14px}.filter-row{display:grid;grid-template-columns:155px auto 135px 1fr;gap:8px;align-items:center;flex-shrink:0}.filter-row input,.filter-row select{font-size:.875rem;min-height:36px;height:36px}.filter-row button{height:36px;min-height:36px}.records-total{display:flex;justify-content:space-between;align-items:center;border-radius:7px;background:#eef4ff;font-size:.875rem;padding:9px 12px;flex-shrink:0;min-height:36px}.record-list{min-height:0;flex:1;overflow:hidden}.record-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 42px;align-items:center;gap:10px;height:64px;border-bottom:1px solid #e9eff8}.category-icon{height:32px;width:32px;border-radius:8px;background:#edf3ff;color:#537bb6;display:grid;place-content:center;font-size:1rem}.record-name{font-size:.875rem;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-sub{font-size:.8rem;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-amount{font-size:.95rem;font-weight:600;white-space:nowrap}.row-actions button{font-size:.8rem;padding:8px 0;background:none;color:var(--blue)}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0;font-size:.875rem;color:var(--muted)}.pagination .secondary{min-height:34px;padding:6px 12px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;height:100%;color:var(--muted);font-size:.875rem}.empty h2{font-size:1rem}#vehicles-page{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto;gap:14px;max-height:470px}.vehicle-info{display:flex;flex-direction:column;justify-content:space-around;padding:12px 18px}.detail{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.875rem;min-height:36px;border-bottom:1px solid #ecf1f8}.detail:last-child{border:0}.detail span{color:var(--muted);white-space:nowrap}.detail strong{font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vehicle-actions{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1}.mobile-nav{display:none}dialog{border:1px solid #d1dff1;border-radius:14px;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 20px);padding:20px;color:#234169;background:white;overflow:hidden;box-shadow:0 12px 70px #5c88c52b}dialog::backdrop{background:#c6d7f47a;backdrop-filter:blur(3px)}#editor-form{display:flex;flex-direction:column;min-height:0;gap:16px}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:8px}.dialog-heading h2{font-size:1.15rem}.eyebrow{font-size:.8rem;color:#6d88af;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.form-grid,.fuel-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fuel-grid{grid-column:1/-1}.wide{grid-column:1/-1}.checkbox-label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:.875rem;min-height:32px}.checkbox-label input{width:18px;height:18px;min-height:0;accent-color:var(--blue)}.dialog-footer{display:flex;justify-content:end;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:12px}#form-step{margin-right:auto;color:var(--muted);font-size:.8rem}.step-hidden{display:none!important}#form-error,#login-error{color:#b34a44;font-size:.875rem;line-height:1.5;max-height:48px;overflow:hidden}#form-error:empty,#login-error:empty{display:none}#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);max-width:calc(100vw - 24px);border:1px solid #a9c5fb;border-radius:10px;padding:12px 18px;background:#eff5ff;color:#2b5da4;box-shadow:0 5px 24px #97afcf40;font-size:.875rem;line-height:1.5;z-index:100}.login-screen{height:100dvh;display:grid;place-items:center;padding:20px;background:#eff5ff}.login-card{background:white;border:1px solid var(--line);border-radius:18px;padding:30px;max-width:360px;width:100%;display:flex;flex-direction:column;gap:22px}.login-card h1{color:#295da8;font-size:1.6rem}.login-card>.primary{width:100%}.preview-notice{position:fixed;right:20px;top:15px;font-size:.75rem;color:#6584af;pointer-events:none;z-index:40}.help{font-size:.75rem;color:#6d83a1}[hidden]{display:none!important}
@media(max-width:900px){.sidebar{width:160px;padding:18px 12px}main{padding:14px 16px;gap:12px}.topbar{padding:0 16px}.car-card,.month-card,.metric{padding:14px}.big-amount{font-size:2rem}.metric-value{font-size:1.55rem}.metric-value small{font-size:.75rem}.metrics,.dashboard-grid{gap:12px}.metric-label{font-size:.8rem}.filter-row{grid-template-columns:145px auto 110px 1fr}.due-panel{gap:12px}.due-item{flex-wrap:wrap}}
@media(max-width:700px){.sidebar{display:none}#app{flex-direction:column}.workspace{height:calc(100dvh - 58px - env(safe-area-inset-bottom));flex:none}.topbar{height:38px;padding:0 14px}.breadcrumb{font-size:.75rem}.breadcrumb>span:first-child{display:none}.top-actions{font-size:.7rem;gap:4px}.icon-btn{font-size:1.2rem;min-height:28px;min-width:28px}main{padding:10px 12px;gap:10px}.page-heading{height:36px}.page-heading h1{font-size:1.2rem}.primary,.secondary,.danger{min-height:36px;padding:7px 10px;font-size:.875rem}.vehicle-toolbar{padding:5px 9px;min-height:42px;gap:7px}.vehicle-toolbar label{display:none}.vehicle-toolbar select{font-size:.875rem;max-width:none;background-color:transparent;padding-left:0}.vehicle-toolbar>.text-btn{font-size:.8rem}.vehicle-toolbar>div{min-width:0}.vehicle-toolbar select{width:100%}#overview-page{gap:10px;grid-template-rows:minmax(0,1.25fr) minmax(0,1.2fr) minmax(0,.65fr);max-height:540px}.dashboard-grid{gap:10px}.car-card,.month-card{padding:12px;border-radius:10px;gap:6px}.car-top{gap:4px}.car-card h2{font-size:1rem}.badge{font-size:.65rem;padding:3px 5px}.plate{font-size:.875rem;letter-spacing:1px;padding:4px 7px;margin-top:7px}.car-bottom p{font-size:.75rem}.odometer{font-size:1.2rem;white-space:nowrap}.odometer small{font-size:.75rem}.car-bottom .text-btn{font-size:.75rem}.section-head{flex-direction:column;align-items:start;gap:5px}.section-head h2{font-size:.875rem}.mini-select{width:100%;font-size:.8rem;min-height:29px;height:29px;padding:2px 4px}.big-amount{font-size:1.65rem}.month-foot,.month-foot .text-btn{font-size:.75rem}.metrics{grid-template-columns:1fr 1fr;grid-template-rows:1fr .85fr;gap:10px}.metric{padding:10px 12px;gap:6px;border-radius:10px}.metric:last-child{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}.metric-label{font-size:.8rem}.metric-value{font-size:1.35rem}.metric-value small{font-size:.7rem;margin-left:3px}.estimate{font-size:.65rem;padding:2px 4px}.due-panel{padding:10px 12px;gap:10px;border-radius:10px}.due-item{font-size:.8rem;gap:3px;display:block}.due-item small{font-size:.8rem;margin-top:4px}.due-status{font-size:.7rem;margin-top:4px}.records-panel{padding:10px;gap:8px}.filter-row{grid-template-columns:minmax(0,1.4fr) auto minmax(0,1fr);gap:6px}.filter-row input[type=search]{grid-column:1/-1}.filter-row input,.filter-row select{font-size:.8rem;height:32px;min-height:32px;padding:5px 7px}.filter-row button{min-height:32px;height:32px;font-size:.8rem;padding:5px 9px}.records-total{min-height:32px;font-size:.8rem;padding:6px 9px}.record-row{grid-template-columns:28px minmax(0,1fr) auto 34px;gap:6px}.category-icon{width:26px;height:28px;border-radius:6px;font-size:.875rem}.record-name{font-size:.875rem}.record-sub{font-size:.75rem}.record-amount{font-size:.8rem}.row-actions button{font-size:.75rem}.pagination{font-size:.8rem}.pagination .secondary{font-size:.8rem;min-height:32px;padding:5px 9px}.mobile-nav{height:calc(58px + env(safe-area-inset-bottom));padding:5px 12px calc(5px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;border-top:1px solid var(--line);background:white;flex-shrink:0}.mobile-nav button{background:none;color:#8a9cb5;font-size:1.2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:80px}.mobile-nav span{font-size:.75rem}.mobile-nav button.active{color:var(--blue)}#vehicles-page{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,1.8fr) auto;gap:10px;max-height:560px}.vehicle-info{padding:7px 12px;display:grid;grid-template-columns:1fr 1fr;column-gap:16px;row-gap:0}.detail{flex-direction:column;align-items:start;justify-content:center;gap:4px;font-size:.8rem;min-height:0;padding:6px 0;overflow:hidden}.detail strong{font-size:.875rem;max-width:100%}.vehicle-actions{gap:6px}.vehicle-actions button{flex:1;padding:7px 8px;font-size:.8rem;min-width:50px}.vehicle-actions button:first-child{flex:1.3}.preview-notice{right:12px;top:11px}dialog{padding:16px;max-height:calc(100dvh - 16px)}#editor-form{gap:12px}.form-grid,.fuel-grid{gap:10px}.dialog-heading h2{font-size:1.05rem}.eyebrow{font-size:.75rem;max-width:270px}label{font-size:.8rem;gap:4px}.dialog-footer{gap:6px;padding-top:10px}.form-grid input,.form-grid select{font-size:1rem;min-height:36px;height:36px;padding:6px 8px}.checkbox-label input{height:18px;min-height:18px}.checkbox-label{min-height:26px}.dialog-footer button{font-size:.8rem}.login-card{padding:26px;gap:20px}#toast{bottom:calc(68px + env(safe-area-inset-bottom))}}
@media(max-height:600px){main{padding-top:8px;padding-bottom:8px;gap:8px}.topbar{height:32px}.page-heading{height:32px}.vehicle-toolbar{min-height:36px;padding-top:3px;padding-bottom:3px}#overview-page{gap:8px}.dashboard-grid,.metrics{gap:8px}.car-card,.month-card,.metric{padding:9px}.car-card h2{font-size:.95rem}.plate{margin-top:4px;padding:2px 6px}.big-amount{font-size:1.45rem}.odometer{font-size:1.1rem}.metric-value{font-size:1.25rem}.due-panel{padding:7px 10px}.due-status{display:none}.month-card{gap:3px}.month-foot{font-size:.7rem}.dialog-heading .eyebrow{display:none}#editor-form{gap:10px}dialog{padding:12px}.form-grid,.fuel-grid{gap:8px}.dialog-footer{padding-top:8px}.form-grid input,.form-grid select{height:34px;min-height:34px}}

dialog{position:fixed;top:calc(var(--view-top,0px) + 8px);bottom:auto;margin:0 auto;max-height:calc(var(--view-height,100dvh) - 16px)}
@media(max-height:500px){.login-card{gap:12px;padding:20px}.login-card .brand-mark{display:none}.login-card h1{font-size:1.25rem}}

/* Royal blue theme · large type */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC",sans-serif;font-size:18px;color:#192439;background:#eff4fb;--blue:#2563eb;--muted:#697a94;--line:#dbe4f1;--record-row-height:84px}
body{background:radial-gradient(ellipse at 0 0,#dce7ff,transparent 55%),#f0f5fb;padding:18px}
#app{height:calc(100dvh - 36px);border:1px solid #d1ddec;border-radius:26px;overflow:hidden;background:white;box-shadow:0 18px 55px #506d9721}
.sidebar{width:220px;padding:28px 20px;background:linear-gradient(150deg,#2443b3,#2462eb);color:white;border:0}
.brand{font-size:1.45rem;gap:12px}.brand-mark{background:#ffffff20;color:white;border:1px solid #ffffff35}.brand-mark.small{height:44px;width:44px;font-size:1.65rem;border-radius:13px}
.sidebar nav{margin-top:38px;gap:12px}.nav-item{color:#e0eaff;font-size:1.05rem;padding:15px 13px;border-radius:13px;gap:13px}.nav-item span{font-size:1.4rem}.nav-item.active{background:white;color:#2256d5;box-shadow:0 7px 22px #16308a20}.side-bottom{gap:22px}.side-bottom .text-btn{color:#e5edff;font-size:1rem}
.workspace{background:#f8faff}.topbar{height:56px;background:white;padding:0 28px}.breadcrumb{font-size:.875rem;letter-spacing:.6px;color:#6b7d99}.top-actions{font-size:.8rem;color:#7586a2}.icon-btn{font-size:1.65rem;min-height:40px;min-width:40px}
main{max-width:1400px;padding:20px 28px;gap:16px}.page-heading{height:48px}.page-heading h1{font-size:1.8rem;font-weight:750;color:#192439;letter-spacing:-.5px}
.primary,.secondary,.danger{font-size:1rem;min-height:46px;padding:10px 17px;border-radius:11px;font-weight:650}.primary{background:#2563eb;box-shadow:0 8px 20px #2563eb17}.secondary{background:#f1f5ff;border-color:#d8e4f8;color:#315ea9}.text-btn{font-size:1rem;font-weight:550}
.vehicle-toolbar{min-height:58px;border-radius:14px;padding:8px 16px;background:white}.vehicle-toolbar label{font-size:1rem}.vehicle-toolbar select{max-width:460px;min-height:40px;font-size:1.05rem;font-weight:600;background-color:#f5f8ff;border-radius:9px}
#overview-page{gap:16px;max-height:650px;grid-template-rows:minmax(0,1.35fr) minmax(0,.85fr) minmax(0,.65fr)}.dashboard-grid,.metrics{gap:16px}
.car-card{background:linear-gradient(130deg,#2443b3,#2462eb);color:white;border:0;border-radius:18px;padding:22px}.car-card h2{font-size:1.6rem;font-weight:700}.badge{background:#ffffff22;color:#fff;font-size:.85rem;padding:5px 9px;border-radius:7px}.plate{background:white;border:0;color:#2143a1;font-size:1.15rem;font-weight:750;letter-spacing:2px;padding:5px 12px;margin-top:10px;border-radius:7px}.car-bottom p{font-size:.95rem;color:#dbe7ff}.odometer{font-size:2rem;font-weight:650;letter-spacing:-.6px}.odometer small{font-size:.95rem;color:#d4e3ff}.car-bottom .text-btn{color:white;font-size:1rem}
.month-card,.metric,.panel{border-radius:18px;border-color:#dae4f2;background:white}.month-card{padding:22px;gap:10px}.section-head h2{font-size:1.15rem;font-weight:700}.mini-select{width:170px;font-size:1rem;min-height:40px;padding:4px 7px;border-radius:9px}.big-amount{font-size:clamp(2rem,3.4vw,3rem);font-weight:750;color:#244ebc;letter-spacing:-1.5px}.month-foot{font-size:1rem;color:#70829d}.month-foot .text-btn{font-size:1rem}
.metric{padding:20px;gap:12px}.metric-label{font-size:1rem;color:#697a94}.metric-value{font-size:clamp(1.7rem,2.6vw,2.55rem);font-weight:750;letter-spacing:-1px;color:#223e82}.metric-value small{font-size:.9rem;color:#7588a6;letter-spacing:0}.estimate{font-size:.8rem;padding:3px 6px;background:#edf3ff;color:#5579bc}.panel{padding:20px}.due-panel{gap:24px}.due-item{font-size:1rem;font-weight:550}.due-item small{font-size:1.05rem;margin-top:7px;color:#536d95;font-weight:600}.due-status{font-size:.9rem}
.records-panel{padding:16px;gap:12px}.filter-row{grid-template-columns:180px auto 150px 1fr;gap:10px}.filter-row input,.filter-row select,.filter-row button{font-size:1rem;min-height:44px;height:44px}.records-total{font-size:1rem;min-height:44px;padding:9px 13px;border-radius:10px}.record-row{height:var(--record-row-height);grid-template-columns:42px minmax(0,1fr) auto 48px;gap:12px}.category-icon{width:40px;height:40px;font-size:1.2rem;border-radius:11px;background:#edf3ff;color:#426dd1}.record-name{font-size:1.1rem;font-weight:650;color:#243854}.record-sub{font-size:.9rem;margin-top:6px}.record-amount{font-size:1.15rem;font-weight:700;color:#243854}.row-actions button{font-size:.95rem}.pagination{font-size:1rem}.pagination .secondary{font-size:1rem;min-height:42px;padding:7px 15px}
#vehicles-page{gap:16px;max-height:600px}.vehicle-info{padding:14px 22px}.detail{font-size:1rem;min-height:44px;gap:12px}.detail strong{font-size:1.05rem;font-weight:650}.vehicle-actions{gap:10px}.vehicle-actions button{font-size:1rem}
dialog{width:min(640px,calc(100% - 24px));border-radius:20px;padding:24px;border-color:#ccd9ed;box-shadow:0 22px 75px #506d9730}dialog::backdrop{background:#c9d8f28a;backdrop-filter:blur(4px)}#editor-form{gap:18px}.dialog-heading h2{font-size:1.6rem;font-weight:750;color:#192439}.eyebrow{font-size:.9rem;max-width:490px;margin-bottom:7px}.form-grid{gap:14px}label{font-size:1rem;font-weight:650;gap:7px}input,select{font-size:1rem;min-height:46px;padding:9px 12px;border-radius:10px}.checkbox-label{font-size:1rem;min-height:38px;gap:10px}.checkbox-label input{width:22px;height:22px;min-height:22px}.dialog-footer{gap:10px;padding-top:15px}#form-step{font-size:.9rem}#form-error,#login-error{font-size:.95rem;max-height:58px}#toast{font-size:1rem;background:#f5f8ff;border-radius:13px;padding:14px 20px}
.login-screen{height:calc(100dvh - 36px);background:transparent;padding:0}.login-shell{width:min(1120px,100%);height:min(720px,100%);display:grid;grid-template-columns:1.05fr 1fr;background:white;border:1px solid #d0dbeb;border-radius:30px;overflow:hidden;box-shadow:0 24px 70px #526e9d24}.login-brand{background:linear-gradient(145deg,#2443b3,#2563eb);color:white;padding:clamp(30px,5vw,76px);display:flex;flex-direction:column;justify-content:center;gap:36px}.login-brand .brand-mark{width:100px;height:100px;font-size:3.8rem;border-radius:25px;letter-spacing:-10px;padding-right:10px}.login-brand h1{font-size:clamp(2.3rem,4.5vw,4rem);font-weight:750;letter-spacing:-2px}.login-card{border:0;box-shadow:none;border-radius:0;padding:clamp(26px,4vw,64px);max-width:none;justify-content:center;gap:32px}.login-card h2{font-size:2rem;font-weight:750;color:#192439;margin-bottom:12px}.login-card label{font-size:1.15rem;gap:12px}.login-card input{font-size:1.2rem;height:60px;border-radius:13px}.login-card>.primary{font-size:1.15rem;min-height:60px;border-radius:13px}.login-card #login-error{font-size:1rem}
@media(max-width:1100px){.sidebar{width:190px;padding:24px 16px}.brand{font-size:1.3rem}.nav-item{font-size:1rem;padding:14px 10px}main{padding:18px 20px;gap:14px}.topbar{padding:0 20px}.dashboard-grid,.metrics,#overview-page{gap:14px}.car-card,.month-card,.metric{padding:18px}.car-card h2{font-size:1.3rem}.section-head{flex-wrap:wrap}.big-amount{font-size:2.05rem}.metric-value{font-size:1.9rem}.metric-value small{font-size:.8rem}.filter-row{grid-template-columns:160px auto 125px 1fr}.due-panel{gap:18px}.due-item{font-size:.95rem}.due-item small{font-size:1rem}.due-status{font-size:.8rem}}
@media(max-width:700px){:root{font-size:18px;--record-row-height:80px}body{padding:0}#app{height:100dvh;border:0;border-radius:0;box-shadow:none}.workspace{height:calc(100dvh - 68px - env(safe-area-inset-bottom))}.topbar{height:42px;padding:0 14px}.breadcrumb{font-size:.8rem}.top-actions{font-size:.75rem;gap:4px}.icon-btn{font-size:1.4rem;min-height:32px;min-width:32px}main{padding:12px;gap:10px}.page-heading{height:42px}.page-heading h1{font-size:1.55rem;font-weight:750}.primary,.secondary,.danger{font-size:.95rem;min-height:42px;padding:8px 12px;border-radius:10px}.vehicle-toolbar{min-height:50px;padding:6px 10px;border-radius:13px}.vehicle-toolbar select{font-size:1rem;min-height:36px;padding-left:0}.vehicle-toolbar>.text-btn{font-size:.9rem}.text-btn{font-size:.95rem}
#overview-page{gap:10px;grid-template-rows:minmax(0,1.35fr) minmax(0,1.25fr) minmax(0,.7fr);max-height:620px}.dashboard-grid,.metrics{gap:10px}.car-card,.month-card{padding:13px;border-radius:15px;gap:6px}.car-card h2{font-size:1.15rem}.car-top{position:relative;display:block}.badge{font-size:.7rem;padding:3px 5px;position:absolute;right:0;top:38px}.plate{font-size:.95rem;letter-spacing:1px;padding:4px 7px;margin-top:8px;max-width:calc(100% - 45px)}.car-bottom p{font-size:.85rem}.odometer{font-size:1.5rem}.odometer small{font-size:.8rem}.car-bottom .text-btn{font-size:.85rem}.month-card .section-head{flex-direction:column;align-items:start;gap:6px}.section-head h2{font-size:1rem}.mini-select{width:100%;font-size:.9rem;min-height:34px;height:34px;padding:3px 5px}.big-amount{font-size:clamp(1.55rem,7.8vw,2.25rem);letter-spacing:-1px}.month-foot{font-size:.8rem;gap:4px}.month-foot .text-btn{font-size:.8rem}.metric{padding:12px;border-radius:15px;gap:8px}.metric-label{font-size:.9rem;gap:4px}.metric-value{font-size:1.7rem}.metric-value small{font-size:.8rem;margin-left:3px}.estimate{font-size:.7rem;padding:2px 4px}.metric:last-child{flex-direction:row;justify-content:space-between}.metric:last-child .metric-value{font-size:1.8rem}.due-panel{padding:11px 13px;gap:12px;border-radius:15px}.due-item{font-size:.9rem;display:block}.due-item small{font-size:.95rem;margin-top:4px}.due-status{font-size:.75rem;margin-top:3px}
.records-panel{padding:10px;gap:9px}.filter-row{grid-template-columns:minmax(0,1.4fr) auto minmax(0,1fr);gap:7px}.filter-row input,.filter-row select,.filter-row button{font-size:.95rem;height:40px;min-height:40px;padding:6px 8px}.records-total{font-size:.95rem;min-height:40px;padding:7px 10px}.record-row{grid-template-columns:30px minmax(0,1fr) auto 38px;gap:7px}.category-icon{width:29px;height:32px;font-size:1rem;border-radius:8px}.record-name{font-size:1rem}.record-sub{font-size:.85rem;margin-top:6px}.record-amount{font-size:1rem}.row-actions button{font-size:.85rem}.pagination{font-size:.95rem}.pagination .secondary{font-size:.9rem;min-height:38px;padding:6px 10px}
#vehicles-page{gap:10px;grid-template-rows:minmax(0,1fr) minmax(0,1.65fr) auto;max-height:650px}.vehicle-info{padding:9px 13px;column-gap:15px;border-radius:15px}.detail{font-size:.9rem;min-height:0;padding:7px 0;gap:4px}.detail strong{font-size:1rem}.vehicle-actions{gap:7px;display:grid;grid-template-columns:repeat(6,1fr)}.vehicle-actions button{font-size:.9rem;padding:8px 6px;min-height:40px;grid-column:span 2;min-width:0}.vehicle-actions button:nth-child(-n+2){grid-column:span 3}
.mobile-nav{height:calc(68px + env(safe-area-inset-bottom));padding:5px 12px calc(5px + env(safe-area-inset-bottom))}.mobile-nav button{font-size:1.4rem;gap:2px;width:95px}.mobile-nav span{font-size:.9rem;font-weight:600}.mobile-nav button.active{color:#255ce1}.mobile-nav button.active>span{color:#255ce1}
dialog{padding:20px;border-radius:19px}.dialog-heading h2{font-size:1.4rem}.eyebrow{font-size:.85rem;max-width:280px;margin-bottom:6px}.form-grid{gap:12px}label{font-size:.95rem;gap:6px}.form-grid input,.form-grid select{font-size:1.05rem;height:44px;min-height:44px;padding:7px 10px;border-radius:10px}.checkbox-label{font-size:.95rem;min-height:32px}.checkbox-label input{height:22px;width:22px;min-height:22px}.dialog-footer{padding-top:12px;gap:7px}.dialog-footer button{font-size:.9rem;padding:8px 10px}.dialog-heading .icon-btn{font-size:1.6rem}.dialog-footer #form-step{font-size:.8rem}#toast{font-size:.95rem;bottom:calc(78px + env(safe-area-inset-bottom))}
.login-screen{height:100dvh;padding:18px}.login-shell{height:auto;max-height:100%;max-width:430px;display:flex;flex-direction:column;border-radius:24px}.login-brand{padding:22px 26px;flex-direction:row;justify-content:start;align-items:center;gap:18px}.login-brand .brand-mark{width:54px;height:54px;font-size:2rem;border-radius:14px;letter-spacing:-6px;padding-right:6px}.login-brand h1{font-size:1.9rem;letter-spacing:0}.login-card{padding:28px;gap:24px}.login-card h2{font-size:1.7rem;margin:0}.login-card label{font-size:1.05rem;gap:10px}.login-card input{font-size:1.1rem;height:54px}.login-card>.primary{font-size:1.1rem;min-height:54px}}
@media(max-width:380px){.car-card,.month-card,.metric{padding:11px}.metric-value{font-size:1.5rem}.metric-value small{font-size:.75rem}.metric:last-child .metric-value{font-size:1.6rem}.record-row{grid-template-columns:minmax(0,1fr) auto 35px}.category-icon{display:none}.vehicle-toolbar>.text-btn{font-size:.85rem}.vehicle-toolbar select{font-size:.95rem}.month-foot{font-size:.75rem}.month-foot .text-btn{font-size:.75rem}}
@media(max-height:650px){:root{--record-row-height:72px}body{padding:10px}#app{height:calc(100dvh - 20px);border-radius:20px}.topbar{height:38px}main{padding:10px 16px;gap:10px}.page-heading{height:38px}.page-heading h1{font-size:1.4rem}.vehicle-toolbar{min-height:44px;padding-top:4px;padding-bottom:4px}.primary,.secondary{min-height:38px;padding:7px 12px}.car-card,.month-card,.metric{padding:12px}.car-card h2{font-size:1.15rem}.plate{font-size:.9rem;margin-top:6px;padding:3px 7px}.odometer{font-size:1.45rem}.car-bottom p{font-size:.85rem}.metric-value{font-size:1.55rem}.metric-label{font-size:.9rem}.big-amount{font-size:1.8rem}.mini-select{min-height:32px;height:32px;font-size:.9rem}.month-foot{font-size:.85rem}.due-panel{padding:10px 14px}.due-item{font-size:.9rem}.due-item small{font-size:.95rem}.filter-row input,.filter-row select,.filter-row button{height:38px;min-height:38px}.records-total{min-height:36px}.record-name,.record-amount{font-size:1rem}.record-sub{font-size:.85rem}.detail{font-size:.9rem}.detail strong{font-size:.95rem}.login-screen{height:calc(100dvh - 20px)}.login-brand{gap:22px}.login-card{gap:22px}.login-card input,.login-card>.primary{height:50px;min-height:50px}dialog{padding:16px}#editor-form{gap:12px}.dialog-heading h2{font-size:1.25rem}.eyebrow{font-size:.8rem}.form-grid{gap:10px}.dialog-footer{padding-top:10px}}
@media(max-width:700px) and (max-height:650px){body{padding:0}#app{height:100dvh;border-radius:0}.workspace{height:calc(100dvh - 60px - env(safe-area-inset-bottom))}.mobile-nav{height:calc(60px + env(safe-area-inset-bottom))}.mobile-nav button{font-size:1.2rem}.mobile-nav span{font-size:.85rem}.topbar{height:34px}main{padding:8px 10px;gap:8px}.page-heading{height:36px}.vehicle-toolbar{min-height:42px}.dashboard-grid,.metrics,#overview-page{gap:8px}.car-card,.month-card,.metric{padding:10px}.car-card h2{font-size:1.05rem}.badge{top:32px;font-size:.65rem}.plate{font-size:.85rem;max-width:calc(100% - 42px)}.odometer{font-size:1.3rem}.car-bottom p{font-size:.8rem}.car-bottom .text-btn{font-size:.8rem}.big-amount{font-size:1.6rem}.metric{gap:5px}.metric-value{font-size:1.45rem}.metric-value small{font-size:.7rem}.metric:last-child .metric-value{font-size:1.6rem}.metric-label{font-size:.85rem}.due-panel{padding:8px 10px}.due-item small{font-size:.9rem}.due-status{display:none}.month-foot,.month-foot .text-btn{font-size:.75rem}.section-head h2{font-size:.9rem}.filter-row{gap:6px}.filter-row input,.filter-row select,.filter-row button{font-size:.9rem;height:36px;min-height:36px}.records-panel{gap:7px;padding:9px}.records-total{font-size:.9rem;min-height:34px}.record-name,.record-amount{font-size:.95rem}.record-sub{font-size:.8rem}.pagination .secondary{min-height:34px;font-size:.85rem}.pagination{font-size:.85rem}.vehicle-actions{gap:6px}.vehicle-actions button{min-height:36px;font-size:.85rem}.detail{font-size:.85rem}.detail strong{font-size:.9rem}.login-screen{height:100dvh;padding:14px}.login-brand{padding:16px 24px}.login-brand h1{font-size:1.65rem}.login-brand .brand-mark{height:44px;width:44px;font-size:1.7rem}.login-card{padding:22px;gap:20px}.login-card h2{font-size:1.5rem}.login-card input,.login-card>.primary{height:48px;min-height:48px}}
@media(max-height:450px){.login-brand .brand-mark{display:none}.login-brand{padding:12px 22px}.login-brand h1{font-size:1.3rem}.login-card{gap:12px;padding:18px 22px}.login-card h2{font-size:1.2rem}.login-card label{font-size:.95rem;gap:6px}.login-card input,.login-card>.primary{height:42px;min-height:42px;font-size:1rem}}
@media(min-width:701px) and (max-width:1050px){.metrics{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.metric{padding:12px 16px;gap:6px}.metric:last-child{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.metric-value{font-size:1.75rem}#overview-page{grid-template-rows:minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,.65fr)}.filter-row{grid-template-columns:160px auto 1fr}.filter-row input[type=search]{grid-column:1/-1}}
