:root{--green:#9a7411;--mint:#fbf1c9;--ink:#212227;--muted:#74767e;--line:#e5e5e8}.rail{background:#111214}.brand span{color:#f3cf32}.nav.active,.nav:hover{background:#34301d;color:#f3cf32}.rail-bottom{background:#36301f;color:#f3cf32}.primary{background:#f3cf32;border:1px solid #d9b522;color:#16171b;font-weight:700;padding:12px 18px;border-radius:7px}.camera-button{background:#25262a;color:#f3cf32}.status{background:#f4efd8;color:#856824}.driver-row.active{background:#fcf8e8;border-left-color:#d9b32a}.progress i{background:#c7a02a}.avatar{background:#f4efd8!important;color:#836b21}.login-shell{min-height:100vh;display:grid;place-items:center;background:#111214;padding:25px}.login-card{width:100%;max-width:400px;background:white;border-radius:14px;padding:30px}.login-card img{display:block;width:100%;max-height:190px;object-fit:contain;border-radius:7px;background:#101113}.login-card h1{margin-top:25px;font-size:27px}.login-card p{color:var(--muted);line-height:1.5}.login-card label,.form-grid label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#51545e;margin:17px 0}.login-card input,.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #d8dbe0;border-radius:6px;padding:11px 12px;min-width:0;width:100%;font:14px 'DM Sans',Arial;color:#202328}.login-card .primary{width:100%;margin-top:10px}.back-link{display:block;text-align:center;color:#7b6c2f;margin-top:22px;font-size:13px}#login-error,#form-error{color:#ac3232;font-size:14px}.empty-detail{padding:25px 0}.empty-detail p{color:var(--muted);line-height:1.7}.empty{font-size:14px;line-height:1.7}.empty .primary{margin-top:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-grid label.wide{grid-column:1/-1}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:15px;padding-top:20px;border-top:1px solid var(--line)}.danger{color:#b33737;margin-right:auto}.detail dl{font-size:14px;gap:14px}.detail-note{font-size:12px}.detail-section h3{font-size:12px}.map-top{font-size:12px}.map-top button{font-size:12px}.status{font-size:12px}.search input,.filters button{font-size:14px}.row-route,.row-bottom{font-size:13px}.driver-row .sub{font-size:12px}.list-foot{font-size:12px;line-height:1.5}.metrics p{font-size:13px}footer{font-size:12px;line-height:1.6}#sync{font-size:12px;color:#757b83}#notice{position:fixed;bottom:25px;right:25px;background:#25262a;color:white;padding:15px 20px;border-radius:8px;z-index:2000}video{width:100%;max-height:70vh}.detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.truck-icon{background:#8b6b1b}.route-point:before{background:#bc961f}dialog{max-width:780px}.form-grid small{color:var(--muted);font-size:12px}.legend{font-size:12px}.directory-card p{font-size:14px}.row-top .avatar{background:#f5edce}.login-card .eyebrow{color:#ab851a}@media(max-width:760px){.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}.page-title .primary{font-size:13px;padding:10px}.metrics p{font-size:12px}.workspace .map-wrap{height:400px}#sync{display:none}.header-right{gap:8px}.metrics strong{font-size:28px}}

.history-row{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid var(--line)}.history-row p{font-size:13px;margin:6px 0;color:var(--muted)}.history-row small{font-size:12px;color:var(--muted)}.status.completed{background:#e4f2ea;color:#287256}

.eta .timezone-secondary{margin:8px 0 0;font-size:12px}.eta{gap:12px}.eta strong{font-size:15px}

.theme-toggle{white-space:nowrap;font-size:13px;padding:10px 12px;min-height:38px}html{color-scheme:light}html[data-theme="dark"]{color-scheme:dark;--ink:#e8ecf3;--muted:#a8b1c0;--line:#343d4c;--green:#f1cb46;--mint:#393321}html[data-theme="dark"] body{background:#12161e}html[data-theme="dark"] :is(header,.metrics,.workspace,.detail,.directory-card,dialog,.login-card){background:#1c222d}html[data-theme="dark"] :is(.secondary,.search,.directory-top .search,.map-top,.legend){background:#242c39;border-color:var(--line)}html[data-theme="dark"] :is(.metrics span,.row-route,.row-bottom,.filters button,.map-top b,.login-card label,.form-grid label){color:#bdc6d5}html[data-theme="dark"] :is(.driver-row,.form-actions,.history-row){border-color:var(--line)}html[data-theme="dark"] .driver-row:hover{background:#252d3a}html[data-theme="dark"] .driver-row.active{background:#332f23;border-left-color:#f3cf32}html[data-theme="dark"] h2 span{background:#2d3644}html[data-theme="dark"] .filters .selected{background:var(--mint);color:#f1cb46}html[data-theme="dark"] .avatar{background:#3c3422!important;color:#f3d769}html[data-theme="dark"] .status{background:#3b3321;color:#f0d063}html[data-theme="dark"] .status.delayed{background:#493024;color:#ffc58b}html[data-theme="dark"] .status.resting{background:#30334a;color:#c0c8f8}html[data-theme="dark"] .status.completed{background:#213d33;color:#9de1bb}html[data-theme="dark"] .eta{background:#27332d}html[data-theme="dark"] .progress{background:#343d4a}html[data-theme="dark"] :is(.login-card input,.form-grid input,.form-grid select,.form-grid textarea){background:#151c26;border-color:#495465;color:#e8ecf3}html[data-theme="dark"] input::placeholder{color:#9da9bb}html[data-theme="dark"] :is(.danger,#form-error,#login-error){color:#ff9c9c}html[data-theme="dark"] .directory-card:hover{border-color:#c7a53b;box-shadow:0 5px 20px #0003}html[data-theme="dark"] :is(footer,#sync){color:#a8b1c0}html[data-theme="dark"] .camera-button{background:#303642;color:#f3cf32}html[data-theme="dark"] .map-wrap,html[data-theme="dark"] .leaflet-container{background:#17232a}html[data-theme="dark"] .leaflet-tile-pane{filter:invert(.91) hue-rotate(180deg) saturate(.65) brightness(.88)}html[data-theme="dark"] .leaflet-control-attribution{background:#1c222deb;color:#bdc6d5}html[data-theme="dark"] .leaflet-control-attribution a{color:#f0cb52}html[data-theme="dark"] .leaflet-control-zoom a{background:#242c39;color:#e8ecf3;border-color:var(--line)}html[data-theme="dark"] :is(.leaflet-tooltip,.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#242c39;color:#e8ecf3;border-color:#485365}html[data-theme="dark"] .facility-icon{background:#283341;border-color:#6c7a90;color:#dce4ef}html[data-theme="dark"] .truck-icon{border-color:#283341}html[data-theme="dark"] .truck-icon.completed{background:#367955}html[data-theme="dark"] dialog::backdrop{background:#050a14c7}html[data-theme="dark"] .primary:disabled{opacity:.65}html[data-theme="dark"] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #f3cf32;outline-offset:3px}html[data-theme="dark"] *{scrollbar-color:#536074 #1c222d}@media(max-width:760px){.theme-toggle{font-size:12px;padding:8px 9px;min-height:36px}header>div{gap:10px}}
