:root,:root[data-theme=midnight]{color-scheme:dark;--ink:#F4F7FA;--muted:#9EADBA;--line:#24394B;--paper:#071421;--surface:#102233;--surface-raised:#142b40;--input:#0b1b2a;--accent:#168BFF;--accent-hover:#369bff;--accent-text:#64b7ff;--accent-soft:#153650;--on-accent:#fff;--sidebar:#0a1928;--side-text:#a8bacb;--side-active:#163c5a;--side-active-ink:#70beff;--primary:#123752;--primary-end:#10283c;--primary-text:#F4F7FA;--positive:#67dfb1;--positive-soft:#153c34;--warning:#f4c778;--warning-soft:#3e3221;--negative:#ff99a2;--negative-soft:#422934;--info:#9bcbff;--info-soft:#1d3651;--shadow:0 8px 25px #00000014;--chip:#1a3043;--chrome:#0a1928;--secondary-bar:#49b6d7;--third-bar:#718ba9;--fourth-bar:#42607a}
:root[data-theme=charcoal]{color-scheme:dark;--paper:#111110;--surface:#22211f;--surface-raised:#302d28;--input:#191816;--line:#494238;--ink:#faf7f2;--muted:#c1b7a9;--accent:#f58a24;--accent-hover:#ffa64f;--accent-text:#ffb369;--accent-soft:#3f2b18;--on-accent:#17120d;--sidebar:#191714;--side-text:#c9bda9;--side-active:#4b3019;--side-active-ink:#ffc285;--chrome:#191714;--chip:#363029;--primary:#47311c;--primary-end:#282018;--primary-text:#fff4e6;--info:#edc291;--info-soft:#3a2d20;--secondary-bar:#d7aa76;--third-bar:#a79a87;--fourth-bar:#78634c;--shadow:0 8px 25px #00000030}
:root[data-theme=daylight]{color-scheme:light;--ink:#0B1926;--muted:#5F6F7D;--line:#D9E2E8;--paper:#F4F7FA;--surface:#fff;--surface-raised:#f0f5f9;--input:#fff;--accent:#0873dc;--accent-hover:#0867c4;--accent-text:#066cc9;--accent-soft:#e5f2ff;--sidebar:#fff;--side-text:#5f6f7d;--side-active:#e5f2ff;--side-active-ink:#066cc9;--primary:#124e80;--primary-end:#143951;--positive:#167351;--positive-soft:#e1f4ec;--warning:#885e14;--warning-soft:#fff3da;--negative:#b42d44;--negative-soft:#fbe8ec;--info:#296497;--info-soft:#e5f1fb;--chip:#e9eff4;--chrome:#fff;--shadow:0 8px 25px #12335208}
body,h1,h2,h3,.brand,.big-number{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1{font-size:28px;letter-spacing:-.9px;font-weight:700}.sidebar{width:230px;padding:32px 20px;border-right:1px solid var(--line)}.app{margin-left:230px}.brand{gap:0;font-size:25px;letter-spacing:2px;color:var(--ink)}.brand img{width:43px;height:36px;object-fit:contain;margin-right:-1px}.navlabel{font-size:9px;letter-spacing:1.6px;margin:22px 5px 36px}.mobile-wordmark{display:none}.sidebar nav a{min-height:48px;border-radius:10px}.sidebar nav a:hover:not(.active){background:var(--accent-soft);color:var(--ink)}.topbar{height:72px}.avatar{width:40px;height:40px}.card,.stat{border-radius:14px}.btn{border-radius:9px;min-height:44px}.btn:hover{filter:none}.field input,.field select,.search,.select-control{border-radius:8px;min-height:46px}.estimate-column{display:grid;gap:20px;min-width:0}.estimate-column .result-card{position:static}.route-heading{display:flex;justify-content:space-between;gap:10px;padding:17px 20px;font-size:14px}.route-heading span{color:var(--muted);font-size:12px}.route-map{height:280px;background:var(--paper);z-index:0}.route-empty{display:grid;place-items:center;color:var(--muted);font-size:14px;background:radial-gradient(ellipse at center,var(--surface-raised),var(--paper))}.route-note{font-size:11px;line-height:1.6;color:var(--muted);padding:12px 18px;margin:0}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:9px!important}.trip-mileage{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 20px;border-bottom:1px solid var(--line);gap:10px}.trip-mileage small{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.trip-mileage strong{font-size:16px}.result-top{background:linear-gradient(125deg,var(--primary),var(--primary-end))}.about-vectura{padding:45px 10px;color:var(--muted)}.about-vectura img{width:32px;vertical-align:middle}.about-vectura strong{letter-spacing:3px;font-size:17px;margin-left:8px}.about-vectura p{font-size:13px}.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-preview{display:block;position:relative;height:135px;border-radius:10px;padding:17px;background:var(--preview-bg);border:1px solid #8ba3b744}.theme-preview span{display:block;width:45%;height:8px;background:var(--preview-accent,#168bff);border-radius:4px;margin-bottom:18px}.theme-preview i{display:inline-block;width:45%;height:35px;margin-right:4%;border-radius:6px;background:var(--preview-card);border:1px solid #8ba3b744}.theme-preview b{display:block;width:90%;height:5px;background:var(--preview-accent,#168bff);border-radius:4px;margin-top:16px}.splash{position:fixed;inset:0;z-index:10000;background:#05101b;display:grid;place-items:center;opacity:1;transition:opacity .45s ease}.splash img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.splash button{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));border:1px solid #ffffff66;background:#071421a6;backdrop-filter:blur(8px);color:#fff;border-radius:30px;padding:12px 24px;font-size:13px;min-height:44px}.splash-out{opacity:0;pointer-events:none}footer{font-size:11px}
@media(max-width:1000px){.layout-two{grid-template-columns:1fr}.estimate-column{grid-template-columns:1fr 1fr;align-items:start}.route-map{height:310px}}
@media(max-width:760px){.sidebar{inset:auto 0 0;width:auto;height:auto;padding:6px 8px calc(7px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:var(--chrome);z-index:100}.sidebar .brand,.sidebar .navlabel,.sidebar-bottom{display:none}.sidebar #navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}.sidebar nav a{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:8px 2px;font-size:10px;min-height:54px;border-radius:10px}.sidebar nav a .icon{width:21px;height:21px}.sidebar nav a[href='#analyze'] .icon{background:var(--accent);color:var(--on-accent);width:30px;height:30px;padding:5px;border-radius:50%}.sidebar nav a[href='#analyze']{padding:3px 2px;gap:2px}.app{margin-left:0;padding-bottom:calc(77px + env(safe-area-inset-bottom))}.topbar{height:64px;padding:0 20px}.mobile-wordmark{display:flex;align-items:center;color:var(--ink);font-size:21px;font-weight:750;letter-spacing:2px}.mobile-wordmark img{width:36px;height:32px;margin-right:-2px}.topbar #breadcrumb,.local-badge{display:none}.topbar .avatar{width:34px;height:34px}main{padding:24px 17px 30px}h1{font-size:25px}.pagehead{gap:15px;margin-bottom:22px}.stats{gap:10px}.stat{padding:17px;min-height:136px}.stat .big-number{font-size:26px}.stat-label{font-size:12px}.estimate-column{grid-template-columns:1fr}.route-map{height:260px}.theme-options{grid-template-columns:1fr}.theme-choice{grid-template-columns:100px 1fr}.theme-preview{grid-column:1;grid-row:1/4;height:130px;padding:12px}.theme-preview i{width:42%;height:30px}.theme-preview b{margin-top:12px}.splash img{object-fit:cover}.result-top .big-number{font-size:40px}.cardhead,.form-section{padding:20px}.fields{gap:18px 12px}.field input,.field select{font-size:16px}.sidebar nav a:hover:not(.active){color:var(--ink)}}
@media(prefers-reduced-motion:reduce){.splash{transition:none}*{scroll-behavior:auto!important}}
@media print{.splash,.route-card,.sidebar,.topbar{display:none!important}:root{--ink:#0b1926;--muted:#5f6f7d;--paper:#fff;--surface:#fff;--surface-raised:#f4f7fa;--line:#d9e2e8}.app{margin:0;padding:0}}
/* Keep the live map ahead of every calculator input and import panel. */
.route-feature{margin-bottom:24px}.route-feature .route-map{height:330px}.map-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;text-align:center;padding:24px;color:var(--muted);font-size:14px}.route-map .leaflet-tile{max-width:none!important}.brand,.mobile-wordmark{letter-spacing:-.7px;font-weight:750}.brand{font-size:28px}.mobile-wordmark{font-size:25px}.import-fields,.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.field,.import-field{min-width:0}.field input,.import-field>input,.field select{min-width:0;max-width:100%;box-sizing:border-box}.field input[type=date],.import-field>input[type=date]{display:block;width:100%;min-width:0;appearance:none;-webkit-appearance:none}.field input::-webkit-date-and-time-value{text-align:left;min-width:0}.estimate-column{grid-template-columns:1fr}
@media(max-width:760px){.route-feature{margin-bottom:20px}.route-feature .route-map{height:270px}.import-fields{grid-template-columns:1fr;gap:22px}.import-field>input{width:100%;font-size:16px;min-height:46px}.import-check{font-size:14px}.brand,.mobile-wordmark{letter-spacing:-.6px}}
#account-status{padding:9px 40px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;background:var(--surface)}#account-status.sync-error{background:var(--warning-soft);color:var(--warning)}.pay-layout{grid-template-columns:minmax(290px,.8fr) minmax(0,1.4fr)}@media(max-width:1100px){.pay-layout{grid-template-columns:1fr}}@media(max-width:760px){#account-status{padding:9px 20px}}
.account-welcome{max-width:520px;margin:40px auto;padding:36px}.account-welcome p{color:var(--muted)}.account-welcome .btn{margin:15px 0}.signed-out .sidebar,.signed-out .topright{display:none}.signed-out .app{margin:0}.signed-out #breadcrumb{display:none}.signed-out .mobile-wordmark{display:flex}.signed-out .topbar{justify-content:center}#profile-form{max-width:480px;margin-top:24px}@media(max-width:760px){.account-welcome{padding:26px;margin:20px auto}.signed-out .app{padding-bottom:0}}

.recurring-settings{margin-top:24px}.recurring-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.recurring-row .field{min-width:0}.recurring-row input,.recurring-row select{width:100%;box-sizing:border-box}.recurring-row [hidden]{display:none!important}#fixed-cost-summary{grid-column:1/-1}.field input[readonly]{opacity:.85;background:var(--surface-raised)}@media(max-width:480px){.recurring-row{grid-template-columns:1fr}}

.daily-encouragement{--daily-start:#0758b5;--daily-end:#083a80;--daily-ink:#fff;--daily-label:#e1eeff;--daily-badge:#ffffff1a;margin:0 0 28px;padding:26px 28px;border:1px solid #ffffff33;border-radius:18px;background:linear-gradient(115deg,var(--daily-start),var(--daily-end));box-shadow:0 10px 26px #00316b25}.daily-encouragement>span{display:inline-block;padding:6px 10px;border:1px solid #ffffff33;border-radius:6px;background:var(--daily-badge);font-size:.875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--daily-label);margin-bottom:14px}.daily-encouragement p{margin:0;max-width:36ch;color:var(--daily-ink);font-size:clamp(1.5rem,3vw,2rem);line-height:1.3;font-weight:750;letter-spacing:-.02em;overflow-wrap:break-word}:root[data-theme=charcoal] .daily-encouragement{--daily-start:#ffb35e;--daily-end:#f58a24;--daily-ink:#21160c;--daily-label:#3a240e;--daily-badge:#ffffff30;border-color:#ffc98980;box-shadow:0 10px 26px #00000030}:root[data-theme=charcoal] .daily-encouragement>span{border-color:#5b330a40}@media(max-width:480px){.daily-encouragement{padding:22px 20px;margin-bottom:24px}.daily-encouragement>span{font-size:.875rem;letter-spacing:.035em}}

.message-settings{margin-top:24px}.message-reference{display:block;margin-top:14px;font-size:.875rem;line-height:1.5;color:var(--daily-label);font-weight:600}.message-settings .daily-encouragement{margin-bottom:0}.message-settings select:disabled{opacity:.6}#message-slot[hidden]{display:none!important}
/* Daily operations */
.ops-shortcuts{flex-wrap:wrap;margin:0 0 24px}.ops-location{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.ops-location p{margin:8px 0;color:var(--muted)}.ops-check{display:flex;gap:12px;align-items:flex-start;margin-top:20px}.ops-check input{width:22px;height:22px;flex:none}.import-field.review-needed{border-left:3px solid #d89a31;padding-left:12px}.review-badge{display:block;color:var(--text);font-weight:700;margin:8px 0}.card+.card{margin-top:20px}#expense-form,#location-form{margin-bottom:24px}#detail form{margin:24px 0}#detail .head-actions{flex-wrap:wrap}.fields>.field{min-width:0}.field input,.field select{max-width:100%;box-sizing:border-box}#document-form input[type=file]{white-space:normal;width:100%}@media(max-width:650px){.ops-location{flex-direction:column}.ops-shortcuts .btn{flex:1}.big-number{overflow-wrap:anywhere}}
