@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,600;0,700;1,700;1,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{font-family:Manrope,Arial,sans-serif;color:#092c57;background:#eef4fb;font-size:14px}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.login{min-height:100vh;display:flex;flex-direction:column;justify-content:center;gap:26px;padding:36px 25px max(36px,env(safe-area-inset-bottom));background:linear-gradient(160deg,#e7f2ff 0%,#f5f8fd 62%,#fff 100%)}
.brand-card{text-align:center}
.brand-logo{background:#fff;border:1px solid #d8e4f1;border-radius:18px;box-shadow:0 12px 36px #21487614;max-width:290px;margin:auto;padding:18px}
.brand-logo img{display:block;width:100%;height:auto}
.brand-one,.top-one{font-family:'Exo 2',Manrope,sans-serif;font-weight:800;font-style:italic;letter-spacing:-1px;color:#0968c9}
.brand-one{font-size:32px;margin-top:10px}
.brand-card p{color:#607b9b;margin:7px 0 0}
.login-form{background:#fff;border:1px solid #d8e4f1;border-radius:18px;padding:25px 21px;box-shadow:0 14px 36px #21487611}
h1,h2{font-family:'Exo 2',Manrope,sans-serif;margin:0;color:#092c57}
.login-form h1{font-size:25px}
.login-form>p{color:#607b9b;margin:6px 0 22px}
label{display:block;font-size:13px;font-weight:700;color:#36577c}
input:not([type=radio]),select,textarea{display:block;width:100%;border:1px solid #ccdaeb;border-radius:10px;background:#fff;color:#092c57;padding:12px 13px;margin:7px 0 17px;outline:none;min-height:46px}
input:focus,select:focus,textarea:focus{border-color:#0968c9;box-shadow:0 0 0 3px #0968c923}
textarea{resize:vertical;min-height:80px}
.primary,.secondary{border-radius:10px;min-height:47px;padding:11px 16px;font-weight:800;border:1px solid #0968c9}
.primary{background:#0968c9;color:#fff;width:100%;box-shadow:0 5px 13px #0968c926}
.primary:disabled{opacity:.6}
.secondary{background:#fff;color:#0968c9;width:100%;margin-top:12px}
.status,.section-status{color:#607b9b;font-size:13px;line-height:1.5;min-height:20px;margin:12px 0 0}
.app{min-height:100vh;padding-bottom:calc(79px + env(safe-area-inset-bottom))}
.topbar{height:70px;padding:11px 18px;display:flex;align-items:center;gap:10px;background:#fff;border-bottom:1px solid #d8e4f1;position:sticky;top:0;z-index:20}
.topbar img{width:94px;height:42px;object-fit:contain}
.top-one{font-size:22px}
.icon-button{margin-left:auto;border:0;background:#e7f2ff;color:#0968c9;border-radius:50%;width:38px;height:38px;font-size:27px;line-height:1}
.app-status{padding:0 20px;color:#607b9b;font-size:12px;min-height:5px}
.app-status:not(:empty){padding-top:8px;padding-bottom:8px}
.screen{display:none;padding:18px 18px 34px;max-width:680px;margin:auto}
.screen.active{display:block}
.screen-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 2px 17px}
.screen-heading h1{font-size:27px;margin-top:3px}
.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#0968c9}
.count-pill{padding:7px 11px;border-radius:20px;background:#e2efff;color:#0968c9;font-weight:800}
.filters select{margin:0 0 13px}
.map{height:min(53vh,420px);min-height:280px;background:#d6e4f3;border:1px solid #c8d8eb;border-radius:15px;overflow:hidden}
.map-status{font-size:12px;color:#607b9b;margin:7px 2px 14px}
.card-list{display:grid;gap:11px}
.panel,.item-card{background:#fff;border:1px solid #d8e4f1;border-radius:15px;padding:16px;box-shadow:0 3px 12px #2148760a}
.panel h2{font-size:19px}
.panel p{color:#607b9b;line-height:1.55}
.item-card{display:block;text-align:left;width:100%;color:#092c57}
.item-card.selected{border-color:#0968c9;box-shadow:0 0 0 2px #0968c924}
.vehicle-button{display:block;width:100%;border:0;padding:0;background:none;color:inherit;text-align:left}
.item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.item-top strong{font-weight:800;font-size:15px}
.item-top small{color:#607b9b;text-align:right;white-space:nowrap}
.item-meta{font-size:12px;color:#607b9b;margin-top:6px;line-height:1.5}
.item-meta b{color:#36577c}
.state-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8e9daf;margin-right:6px}
.state-dot.moving{background:#209d72}.state-dot.idling{background:#e59823}.state-dot.parked{background:#4385cf}
.map-link{color:#0968c9;text-decoration:underline;font-weight:700;display:inline-block;margin-top:8px}
.vehicle-actions{display:flex;gap:8px;margin-top:11px}
.vehicle-actions button{flex:1;min-height:40px;border:1px solid #b9d4ef;border-radius:9px;background:#f3f8ff;color:#0968c9;font-weight:800;font-size:12px}
.vehicle-actions button[aria-pressed=true]{background:#0968c9;color:white}
.vehicle-actions button:disabled{opacity:.5}
.share-dialog{width:min(420px,calc(100vw - 30px));border:1px solid #d8e4f1;border-radius:17px;padding:23px;color:#092c57;box-shadow:0 15px 50px #092c5750}
.share-dialog::backdrop{background:#092c5788}
.share-dialog h2{font-size:21px;margin:0 32px 7px 0}
.share-dialog p{color:#607b9b;line-height:1.5}
.share-dialog .share-note{font-size:12px;margin:10px 0 20px}
.share-dialog label{margin-top:20px}
.share-dialog .secondary{margin-top:0}
.dialog-close{float:right;border:0;background:#eef4fb;border-radius:50%;width:32px;height:32px;font-size:22px;color:#36577c}
.trip-filters,.classification{margin-bottom:13px}
.date-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.date-row input{min-width:0}
.trip-card{cursor:pointer}
.trip-entry{min-width:0}
.trip-detail{padding:12px 0 5px}
.trip-map{height:300px;border:1px solid #c8d8eb;border-radius:13px;background:#d6e4f3;overflow:hidden}
.trip-detail>.section-status{margin:8px 2px 12px}
.trip-route{display:grid;grid-template-columns:16px 1fr;column-gap:6px;margin:12px 0}
.route-dot{width:9px;height:9px;border-radius:50%;background:#209d72;margin-top:6px;grid-row:1}
.route-dot.end{background:#0968c9;grid-row:2}
.route-address{font-size:12px;line-height:1.5;color:#36577c}
.trip-stats{display:flex;flex-wrap:wrap;gap:12px;color:#607b9b;font-size:12px}
.classification{margin-top:13px}
.classification h2{margin:5px 0}
.classification p{margin:0 0 15px}
.class-options{display:flex;gap:7px;margin:0 0 16px}
.class-options label{flex:1;border:1px solid #ccdaeb;border-radius:9px;padding:9px 6px;text-align:center;font-size:11px;color:#36577c}
.class-options input{display:block;margin:0 auto 5px;accent-color:#0968c9}
.classification .section-status{margin-top:10px}
.alert-card .item-meta{margin:9px 0 0}
.report-card{margin-top:9px}
.more-links{margin-top:11px}
.more-links .secondary{text-align:left}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom,0px));display:flex;align-items:stretch;padding:4px 5px env(safe-area-inset-bottom,0px);box-sizing:border-box;background:#fff;border-top:1px solid #d8e4f1;z-index:30;box-shadow:0 -4px 20px #092c5711}
.bottom-nav button{flex:1;min-width:0;border:0;background:none;color:#607b9b;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;font-size:10px;font-weight:700}
.bottom-nav button span{font-family:Arial,sans-serif;font-size:24px;line-height:1.05}
.bottom-nav button.active{color:#0968c9}
@media(max-width:350px){.screen{padding-left:12px;padding-right:12px}.class-options{gap:3px}.class-options label{font-size:10px}}
