:root{--bg:#f2f6f1;--surface:#fff;--surface-2:#e6eee7;--text:#0f2419;--muted:#56695d;--faint:#86978b;--border:#d5e0d7;--primary:#1e5e3a;--primary-600:#194f31;--primary-700:#133e26;--primary-50:#ddefe2;--primary-100:#c7e4cf;--lime:#5bc189;--danger:#cf4f3b;--danger-50:#fbe9e6;--warning:#e2a031;--warning-50:#fcf3e3;--success:#3e9e66;--info:#2f7fc1;--info-50:#e6f0f9;--radius:18px;--radius-sm:12px;--shadow:0 1px 2px #1018140a, 0 6px 20px #1018140f;--shadow-lg:0 10px 40px #10181429;--font:"DM Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--display:"Bricolage Grotesque", "Noto Sans Devanagari", "Avenir Next", "Segoe UI", system-ui, sans-serif;--nav-h:68px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-size:16px;line-height:1.45}h1,h2,h3,h4{font-family:var(--display);letter-spacing:-.01em;margin:0;line-height:1.2}h1{font-size:26px;font-weight:800}h2{font-size:20px;font-weight:700}h3{font-size:17px;font-weight:700}p{margin:0}a{color:var(--primary);text-decoration:none}img{max-width:100%;display:block}button{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--lime);outline-offset:2px}.muted{color:var(--muted)}.faint{color:var(--faint)}.small{font-size:13px}.tiny{font-size:11.5px}.bold{font-weight:700}.center{text-align:center}.row{align-items:center;gap:10px;display:flex}.row-top{align-items:flex-start;gap:12px;display:flex}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.stack{flex-direction:column;gap:12px;display:flex}.stack-lg{flex-direction:column;gap:18px;display:flex}.stack-sm{flex-direction:column;gap:6px;display:flex}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.phone{max-width:480px;min-height:100dvh;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);margin:0 auto;position:relative}@media (min-width:520px){.phone{box-shadow:0 0 0 1px var(--border);background:var(--bg)}}.topbar{z-index:20;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f4f3eceb;justify-content:space-between;align-items:center;gap:8px;display:flex;position:sticky;top:0}.topbar-title{align-items:center;gap:8px;min-width:0;display:flex}.topbar-title h1{font-size:18px;font-weight:700}.logo{color:var(--text);align-items:center;gap:8px;font-size:19px;font-weight:800;display:inline-flex}.icon-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex;position:relative}.icon-btn:active{transform:scale(.96)}.badge-dot{background:var(--danger);border:2px solid var(--surface);border-radius:50%;width:9px;height:9px;position:absolute;top:8px;right:9px}.page{flex-direction:column;gap:16px;padding:4px 16px 16px;display:flex}.bottom-nav{z-index:30;width:100%;max-width:480px;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);grid-auto-columns:1fr;grid-auto-flow:column;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav a{color:var(--faint);flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:12px;font-weight:600;display:flex}.bottom-nav a.active{color:var(--primary)}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card-flat{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:14px}.card-green{background:linear-gradient(135deg, var(--primary-50), #f2f8f1);border:1px solid var(--primary-100)}.card-dark{background:linear-gradient(135deg, var(--primary), var(--primary-700));color:#fff}.card-link{color:inherit;display:block}.section-title{justify-content:space-between;align-items:center;margin:4px 2px -4px;display:flex}.section-title h3{font-size:16px}.btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:14px;justify-content:center;align-items:center;gap:8px;height:48px;padding:0 18px;font-size:15.5px;font-weight:700;text-decoration:none;transition:background .15s,transform 50ms;display:inline-flex}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-600)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-soft{background:var(--primary-50);color:var(--primary-700)}.btn-danger{background:var(--danger);color:#fff}.btn-ghost{color:var(--primary);background:0 0;padding:0 8px}.btn-block{width:100%}.btn-lg{border-radius:18px;height:64px;font-size:19px}.btn-sm{border-radius:10px;height:36px;padding:0 12px;font-size:14px}.pill{white-space:nowrap;background:var(--surface-2);color:var(--muted);border:1px solid var(--border);border-radius:999px;align-items:center;gap:5px;padding:3px 10px;font-size:12.5px;font-weight:700;display:inline-flex}.pill-green{background:var(--primary-50);color:var(--primary-600);border-color:var(--primary-100)}.pill-amber{background:var(--warning-50);color:#9a5b06;border-color:#f6dfb5}.pill-red{background:var(--danger-50);color:#b02a2a;border-color:#f6caca}.pill-blue{background:var(--info-50);color:#1f56b8;border-color:#cddcf8}.pill-dark{color:#fff;background:#ffffff2e;border-color:#ffffff40}.live-dot{background:#34c759;border-radius:50%;width:7px;height:7px;animation:1.6s infinite pulse}@keyframes pulse{0%{box-shadow:0 0 #34c75999}70%{box-shadow:0 0 0 7px #34c75900}to{box-shadow:0 0 #34c75900}}.field{flex-direction:column;gap:6px;display:flex}.field label,.label{color:var(--muted);font-size:13.5px;font-weight:700}.input,select.input,textarea.input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:48px;font:inherit;color:var(--text);border-radius:12px;padding:12px 14px}textarea.input{resize:vertical;min-height:84px}.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-100);outline:none}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented button{height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;font-weight:700}.segmented button[aria-pressed=true]{background:var(--primary);color:#fff;box-shadow:var(--shadow)}.checkbox{align-items:flex-start;gap:10px;font-size:14px;display:flex}.checkbox input{width:22px;height:22px;accent-color:var(--primary);flex-shrink:0;margin-top:1px}.error-text{color:var(--danger);font-size:14px;font-weight:600}.list{flex-direction:column;display:flex}.list-item{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 2px;display:flex}.list-item:last-child{border-bottom:0}.thumb{object-fit:cover;background:var(--surface-2);border-radius:12px;flex-shrink:0;width:56px;height:56px}.thumb-lg{object-fit:cover;background:var(--surface-2);border-radius:14px;width:100%;height:210px}.num{background:var(--surface-2);border:2px solid var(--border);width:30px;height:30px;color:var(--muted);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:14px;font-weight:800;display:inline-flex}.num-done{background:var(--primary);border-color:var(--primary);color:#fff}.num-skip{background:var(--danger-50);color:var(--danger);border-color:#f2b8b8}.num-current{border-color:var(--primary);color:var(--primary);background:#fff}.progress{background:var(--primary-100);border-radius:99px;height:8px;overflow:hidden}.progress>span{background:var(--primary);border-radius:99px;height:100%;transition:width .4s;display:block}.dots{align-items:center;gap:0;display:flex}.dots i{background:var(--primary-100);width:10px;height:10px;box-shadow:0 0 0 1px var(--primary-100);border:2px solid #fff;border-radius:50%}.dots i.on{background:var(--primary)}.dots b{background:var(--primary-100);flex:1;height:3px}.dots b.on{background:var(--primary)}.timeline{flex-direction:column;display:flex}.timeline-step{grid-template-columns:26px 1fr auto;align-items:start;gap:10px;padding-bottom:14px;display:grid;position:relative}.timeline-step:last-child{padding-bottom:0}.timeline-step:before{content:"";background:var(--border);width:2px;position:absolute;top:24px;bottom:0;left:12px}.timeline-step:last-child:before{display:none}.timeline-step.done:before{background:var(--primary)}.timeline-dot{background:var(--surface-2);border:2px solid var(--border);width:26px;height:26px;color:var(--faint);z-index:1;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.timeline-step.done .timeline-dot{background:var(--primary);border-color:var(--primary);color:#fff}.actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.action{border-radius:var(--radius);background:var(--surface);min-height:112px;box-shadow:var(--shadow);color:var(--text);flex-direction:column;justify-content:space-between;align-items:flex-start;gap:18px;padding:14px 12px;font-size:14.5px;font-weight:700;line-height:1.2;display:flex}.action-primary{background:var(--primary);color:#fff}.action .action-icon{background:var(--primary-50);width:40px;height:40px;color:var(--primary);border-radius:12px;justify-content:center;align-items:center;display:inline-flex}.action-primary .action-icon{color:#fff;background:#ffffff2e}.action-red .action-icon{background:var(--danger-50);color:var(--danger)}.eta-big{letter-spacing:-.02em;font-size:30px;font-weight:800}.eta-icon{background:var(--surface);width:72px;height:72px;color:var(--primary);box-shadow:var(--shadow);border-radius:20px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.bin-icon{color:#fff;border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;width:52px;height:52px;display:inline-flex}.stat{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:4px;padding:14px;display:flex}.stat-value{letter-spacing:-.02em;font-size:26px;font-weight:800}.stat-label{color:var(--muted);font-size:13px;font-weight:600}.tile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.tile{background:var(--surface);min-height:96px;box-shadow:var(--shadow);cursor:pointer;border:2px solid #0000;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:10px;font-size:14px;font-weight:700;display:flex}.tile[aria-pressed=true]{border-color:var(--primary);background:var(--primary-50)}.tile svg{color:var(--primary)}.camera{z-index:60;color:#fff;background:#0d1410;flex-direction:column;display:flex;position:fixed;inset:0}.camera-top{padding:calc(12px + env(safe-area-inset-top)) 16px 12px;justify-content:space-between;align-items:center;display:flex}.camera-top .icon-btn{color:#fff;background:#ffffff1f;border-color:#0000}.viewfinder{background:#1b231e;border-radius:22px;flex:1;justify-content:center;align-items:center;margin:0 16px;display:flex;position:relative;overflow:hidden}.viewfinder video,.viewfinder img{object-fit:cover;width:100%;height:100%}.corner{border:4px solid var(--lime);width:44px;height:44px;position:absolute}.corner.tl{border-bottom:0;border-right:0;border-radius:14px 0 0;top:18px;left:18px}.corner.tr{border-bottom:0;border-left:0;border-radius:0 14px 0 0;top:18px;right:18px}.corner.bl{border-top:0;border-right:0;border-radius:0 0 0 14px;bottom:18px;left:18px}.corner.br{border-top:0;border-left:0;border-radius:0 0 14px;bottom:18px;right:18px}.camera-bottom{padding:18px 16px calc(22px + env(safe-area-inset-bottom));background:var(--surface);color:var(--text);border-radius:24px 24px 0 0;flex-direction:column;align-items:center;gap:16px;margin-top:16px;display:flex}.shutter{border:5px solid var(--primary-100);background:var(--primary);cursor:pointer;border-radius:50%;width:78px;height:78px}.shutter:active{transform:scale(.94)}.analysing{background:#0d14108c;flex-direction:column;justify-content:center;align-items:center;gap:12px;font-weight:700;display:flex;position:absolute;inset:0}.backdrop{z-index:70;background:#0c120e73;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:480px;max-height:88dvh;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;animation:.2s up;overflow:auto}@media (min-width:900px){.backdrop.modal{align-items:center}.backdrop.modal .sheet{border-radius:20px;max-width:560px}}@keyframes up{0%{opacity:0;transform:translateY(30px)}}@keyframes fade{0%{opacity:0}}.toasts{left:50%;bottom:calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));z-index:90;pointer-events:none;flex-direction:column;gap:8px;width:min(440px,100% - 32px);display:flex;position:fixed;transform:translate(-50%)}.toast{color:#fff;box-shadow:var(--shadow-lg);background:#17251c;border-radius:14px;align-items:center;gap:10px;padding:12px 14px;font-size:14.5px;font-weight:600;animation:.2s up;display:flex}.toast-success svg{color:var(--lime)}.toast-error{background:#7d1f1f}.map{border-radius:var(--radius);background:#e7ece6;width:100%;height:300px;position:relative;overflow:hidden}.map-tall{height:420px}.map-full{height:calc(100dvh - 140px)}.marker{color:#fff;cursor:pointer;border:2.5px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:12.5px;font-weight:800;display:flex;box-shadow:0 2px 6px #0000004d}.marker-lg{width:38px;height:38px;font-size:15px}.marker-truck{background:var(--primary-700);width:40px;height:40px}.map-legend{z-index:2;box-shadow:var(--shadow);background:#fffffff0;border-radius:10px;gap:10px;padding:6px 10px;font-size:12px;display:flex;position:absolute;bottom:10px;left:10px}.legend-dot{vertical-align:-1px;border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.maplibregl-popup-content{font-family:var(--font);border-radius:12px!important;padding:10px 12px!important}.skeleton{border-radius:var(--radius);background:linear-gradient(90deg,#ecebe3 25%,#f6f5ef 37%,#ecebe3 63%) 0 0/400% 100%;animation:1.3s infinite shimmer}@keyframes shimmer{0%{background-position:100%}to{background-position:0}}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:28px 16px;display:flex}.empty svg{color:var(--faint)}.banner{border-radius:14px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:14.5px;display:flex}.banner-amber{background:var(--warning-50);color:#7a4705}.banner-red{background:var(--danger-50);color:#8f2020}.banner-green{background:var(--primary-50);color:var(--primary-700)}.banner-blue{background:var(--info-50);color:#1d4a99}.login{grid-template-columns:1fr;min-height:100dvh;display:grid}@media (min-width:960px){.login{grid-template-columns:1.1fr 1fr}}.login-hero{background:radial-gradient(circle at 20% 20%, #a6e3a159, transparent 40%), linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 100%);color:#fff;flex-direction:column;justify-content:space-between;padding:48px;display:none}@media (min-width:960px){.login-hero{display:flex}}.login-hero h1{font-size:46px;line-height:1.05}.hero-list{flex-direction:column;gap:14px;font-size:17px;display:flex}.hero-list div{align-items:center;gap:12px;display:flex}.hero-list svg{color:var(--lime);flex-shrink:0}.login-panel{justify-content:center;align-items:center;padding:24px 16px;display:flex}.login-card{flex-direction:column;gap:18px;width:100%;max-width:420px;display:flex}.demo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.demo-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;border-radius:14px;align-items:center;gap:10px;min-height:60px;padding:12px;font-weight:700;display:flex}.demo-btn:hover{border-color:var(--primary);background:var(--primary-50)}.demo-btn small{color:var(--muted);font-size:12px;font-weight:500;display:block}.divider{color:var(--faint);align-items:center;gap:10px;font-size:13px;display:flex}.divider:before,.divider:after{content:"";background:var(--border);flex:1;height:1px}.officer{grid-template-columns:236px 1fr;min-height:100dvh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:4px;height:100dvh;padding:20px 14px;display:flex;position:sticky;top:0}.sidebar .logo{padding:4px 10px 18px}.side-link{color:var(--muted);border-radius:12px;align-items:center;gap:12px;padding:11px 12px;font-size:15px;font-weight:600;display:flex}.side-link:hover{background:var(--surface-2)}.side-link.active{background:var(--primary-50);color:var(--primary-700)}.side-link .count{background:var(--danger);color:#fff;border-radius:99px;margin-left:auto;padding:1px 8px;font-size:12px}.officer-main{flex-direction:column;gap:18px;min-width:0;padding:22px 26px 40px;display:flex}.officer-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.kpi{align-items:center;gap:12px;display:flex}.kpi-icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.dash-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:18px;display:grid}.dash-grid-3{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:18px;display:grid}.table{border-collapse:collapse;width:100%;font-size:14.5px}.table th{text-align:left;color:var(--muted);border-bottom:1px solid var(--border);white-space:nowrap;padding:8px 10px;font-size:12.5px;font-weight:700}.table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:10px}.table tr:last-child td{border-bottom:0}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td,.table tr.selected td{background:var(--surface-2)}.factor-bars{grid-template-columns:repeat(5,1fr);gap:3px;width:140px;display:grid}.factor-bars span{background:var(--primary-100);border-radius:4px;height:22px;position:relative;overflow:hidden}.factor-bars span i{background:var(--primary);position:absolute;bottom:0;left:0;right:0}.score-bar{background:var(--surface-2);border-radius:99px;width:100%;min-width:70px;height:8px;overflow:hidden}.score-bar span{border-radius:99px;height:100%;display:block}.mobile-tabs{display:none}@media (max-width:1100px){.dash-grid-3{grid-template-columns:1fr 1fr}}@media (max-width:900px){.officer{grid-template-columns:1fr}.sidebar{display:none}.mobile-tabs{background:var(--surface);border-bottom:1px solid var(--border);z-index:20;gap:6px;padding:10px 16px;display:flex;position:sticky;top:0;overflow-x:auto}.mobile-tabs a{white-space:nowrap;color:var(--muted);border-radius:10px;padding:8px 12px;font-size:14px;font-weight:700}.mobile-tabs a.active{background:var(--primary-50);color:var(--primary-700)}.officer-main{padding:16px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-grid,.dash-grid-3{grid-template-columns:1fr}}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.driver-actions{left:50%;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));z-index:25;background:linear-gradient(to top, var(--bg) 70%, #f4f3ec00);grid-template-columns:2fr 1fr;gap:10px;width:100%;max-width:480px;padding:12px 16px;display:grid;position:fixed;transform:translate(-50%)}.driver-page{padding-bottom:96px}.stop-current{border:2px solid var(--primary);background:var(--primary-50);border-radius:14px;margin:4px 0;padding:12px 10px}
