:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172927;background:#eef2ee;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;height:100%}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:#0b7567;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.7rem,3vw,2.45rem);letter-spacing:-.04em;line-height:1.13;margin-bottom:.3em}h2{font-size:1.35rem;letter-spacing:-.025em;margin-bottom:.4em}h3{font-size:1.1rem;margin-bottom:.25em}.muted,.hint{color:#687975}.hint{font-size:.83rem;line-height:1.45}.empty{color:#7a8984;text-align:center;padding:32px 12px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:#0b7567;font-size:.7rem;font-weight:800;margin-bottom:8px}.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}
.primary,.secondary,.danger,.text-button{border:0;border-radius:12px;padding:11px 16px;font-weight:700;min-height:42px;transition:background .15s,transform .15s}.primary{background:#0b7567;color:white;box-shadow:0 6px 16px #0b75671f}.primary:hover{background:#095f54}.secondary{background:#e8f0ed;color:#0b665a}.secondary:hover{background:#d7e9e3}.danger{background:#fbeceb;color:#ac4842}.danger:hover{background:#f5dcda}.text-button{background:none;color:#0b7567;padding:8px}.text-button:hover{background:#e8f0ed}.primary:active,.secondary:active,.danger:active{transform:translateY(1px)}.icon-button{border:0;background:transparent;color:#36544f;border-radius:10px;width:40px;height:40px;display:grid;place-items:center;font-size:1.45rem}.icon-button:hover{background:#e8f0ed}
.login-page{height:100%;display:grid;grid-template-columns:1fr 1fr;background:#f7faf7}.login-illustration{background:#0d584f;color:white;display:flex;flex-direction:column;justify-content:center;padding:clamp(36px,8vw,130px);position:relative;overflow:hidden}.login-illustration:after{content:"";position:absolute;width:500px;height:500px;border:1px solid #ffffff24;border-radius:50%;right:-200px;bottom:-260px;box-shadow:0 0 0 85px #ffffff08,0 0 0 180px #ffffff08}.login-illustration .eyebrow{color:#a7e8d5;margin-top:48px}.login-illustration h1{font-size:clamp(2.6rem,5vw,5.3rem);line-height:1.04;max-width:730px;margin:0 0 25px}.login-illustration p:last-of-type{font-size:1.15rem;line-height:1.6;max-width:470px;color:#d4e9e1}.login-accent{position:absolute;width:180px;height:12px;border-radius:20px;background:#d8b27c;left:clamp(36px,8vw,130px);bottom:70px}.brand-mark{background:#0b7567;color:white;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:1.2rem}.brand-mark.big{width:64px;height:64px;background:#ebf9f0;color:#0d584f;border-radius:18px;font-size:2rem}.login-panel{display:grid;place-items:center;padding:24px}.login-card{width:min(100%,430px);background:white;padding:clamp(24px,4vw,48px);border:1px solid #e3ebe5;border-radius:24px;box-shadow:0 24px 70px #112c2314;display:flex;flex-direction:column;gap:14px}.login-card h2{font-size:2rem;margin:10px 0 0}.login-card>p{color:#687975;margin:0 0 12px;line-height:1.45}.mobile-brand{display:none}.wide{width:100%;margin-top:8px}.login-card .text-button{align-self:center}.form-error{color:#c8403a;margin:0;grid-column:1/-1;font-size:.88rem;min-height:1em}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:.83rem;font-weight:700;color:#455d57}.field input,.field select,.field textarea,.search input{width:100%;border:1px solid #cbd9d1;border-radius:11px;background:white;color:#172927;padding:11px 13px;outline:none;min-height:44px}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.search input:focus{border-color:#0b7567;box-shadow:0 0 0 3px #0b756722}.password-field>div{display:flex;position:relative}.password-field input{padding-right:105px}.show-password{position:absolute;right:5px;top:5px;border:0;background:none;color:#0b7567;font-size:.8rem;font-weight:700;padding:8px;border-radius:6px}
.app-shell{height:100%;min-height:0;display:flex;flex-direction:column}.topbar{height:64px;flex:none;display:flex;align-items:center;gap:12px;padding:0 20px;background:white;border-bottom:1px solid #e1ebe4;z-index:5}.brand-name{display:flex;flex-direction:column;line-height:1.1}.brand-name strong{font-size:1.05rem}.brand-name small{font-size:.72rem;color:#678078;margin-top:4px}.topbar-spacer{flex:1}.account-name{font-size:.84rem;color:#637a73;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace{position:relative;flex:1;min-height:0;overflow:hidden}.map-frame,#map-host{width:100%;height:100%;border:0}#map-host{position:absolute;inset:0}.workspace-content{position:absolute;inset:0;pointer-events:none;z-index:2;display:flex;align-items:flex-start}.workspace-content>*{pointer-events:auto}.workspace-content.chat-full{background:#eef2ee;display:block}.panel{margin:16px;width:min(410px,calc(100vw - 32px));max-height:calc(100% - 92px);overflow:auto;background:#ffffffed;backdrop-filter:blur(16px);border:1px solid #ffffffc7;border-radius:22px;box-shadow:0 15px 50px #17372e22;padding:22px}.panel.full-panel{width:min(620px,calc(100vw - 32px))}.panel-title{padding-bottom:18px;border-bottom:1px solid #e4ede7}.panel-title p:last-child{color:#647b73;margin:0}.vehicle-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}.vehicle-card{width:100%;border:1px solid #e4eee7;background:#f9fbf9;border-radius:14px;padding:12px;text-align:left;display:flex;align-items:center;gap:12px}.vehicle-card:hover,.vehicle-card.selected{border-color:#70af9e;background:#f0f8f3}.vehicle-card span:nth-child(2){display:flex;flex-direction:column;flex:1;gap:3px}.vehicle-card small{color:#72867e}.vehicle-card i{width:9px;height:9px;border-radius:50%;background:#c9d2cd}.vehicle-card i.online{background:#40b779}.vehicle-icon{background:#e1f2eb;color:#0b7567;border-radius:11px;padding:9px;font-size:1.2rem}.selected-card{display:flex;flex-direction:column;gap:8px;background:#f0f7f2;border-radius:15px;padding:14px;margin:15px 0}.selected-card>div{display:flex;justify-content:space-between;gap:10px}.selected-card>div span,.selected-card small{color:#607b71}.selected-card .text-button{align-self:flex-start}.status-pill{display:inline-flex;align-items:center;border-radius:100px;background:#e6f4eb;color:#0b6758;padding:5px 10px;font-size:.79rem;font-weight:700}.tracking-banner{margin:16px;background:white;border-radius:16px;padding:14px 18px;display:flex;gap:10px;align-items:center;box-shadow:0 10px 35px #17372e24}.tracking-banner span:last-child{color:#638278;font-size:.85rem}.live-dot{height:9px;width:9px;background:#3dbb7a;border-radius:50%}
#navigation{position:absolute;z-index:4;right:16px;bottom:18px;background:white;padding:7px;display:flex;gap:4px;border-radius:16px;box-shadow:0 10px 30px #17372e22}#navigation button{border:0;background:transparent;border-radius:11px;padding:11px 15px;color:#567268;font-weight:700;min-height:42px}#navigation button.active{background:#0b7567;color:white}#navigation button b{display:inline-grid;place-items:center;font-size:.67rem;background:#d04940;color:white;border-radius:100px;min-width:18px;height:18px;margin-left:5px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading h1,.section-heading h2{margin-bottom:4px}.section-heading p:last-child{color:#6d8279;margin:0}.section-heading.compact{margin-top:28px;margin-bottom:10px}.list{display:flex;flex-direction:column;gap:9px}.list-row{background:#f8faf8;border:1px solid #e4ede8;border-radius:13px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.list-row>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}.list-row strong{line-height:1.25}.list-row small{color:#70857b}.list-row .secondary{white-space:nowrap}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.driver-panel{max-width:450px}.driver-status{display:flex;gap:8px;margin:22px 0 15px}.driver-actions{display:flex;flex-direction:column;gap:10px;margin:25px 0}.driver-actions button{text-align:left;padding:14px 17px;font-size:1rem}
.admin-shell{overflow:auto}.admin-content{width:min(1160px,100%);margin:0 auto;padding:32px 24px 70px}.admin-content>.section-heading{margin-bottom:30px}.stats-section,.companies-section{background:white;border:1px solid #e0eae3;border-radius:20px;padding:24px;margin-bottom:20px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat-card{background:#ecf2ee;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:7px}.stat-card strong{font-size:1.8rem;letter-spacing:-.045em}.stat-card span{color:#61766d;font-size:.88rem}.breakdowns{display:flex;gap:10px;margin-top:17px;flex-wrap:wrap}.breakdowns details{border:1px solid #dfeae3;border-radius:10px;padding:8px 12px;min-width:150px}.breakdowns summary{cursor:pointer;font-weight:700}.breakdown-list p{display:flex;justify-content:space-between;gap:12px;margin:10px 0 0;font-size:.85rem}.search{display:block;max-width:350px;margin:0 0 18px}.company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.company-card{border:1px solid #e1ebe3;border-radius:17px;padding:18px}.card-head{display:flex;justify-content:space-between;gap:10px}.card-head span{font-size:.76rem;color:#0b7567;font-weight:700}.chips{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.chips span{background:#e8f0eb;border-radius:100px;padding:5px 9px;font-size:.76rem;color:#456c5e}.company-bases{border-top:1px solid #e9eee9;margin-top:17px;padding-top:14px}.company-bases p{margin:8px 0;color:#677d72;font-size:.85rem}
.modal{border:0;border-radius:20px;padding:0;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 26px);box-shadow:0 30px 90px #142b2780;overflow:auto;color:#172927}.modal::backdrop{background:#142b2780;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 12px;border-bottom:1px solid #e5eee7}.modal-head h2{margin:0}.form-grid{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .full,.form-grid .form-subhead,.form-grid .mini-map,.form-grid .form-actions,.form-grid .hint{grid-column:1/-1}.form-subhead{font-size:1rem;font-weight:800;border-top:1px solid #e7eee8;padding-top:15px;margin-top:8px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.mini-map{height:250px;overflow:hidden;border:1px solid #d8e6db;border-radius:14px}.suggestions{position:relative;background:white;border:1px solid #cbd9d1;border-radius:11px;max-height:220px;overflow:auto;z-index:10;box-shadow:0 10px 20px #0001}.suggestions[hidden]{display:none}.suggestions button{display:block;width:100%;border:0;background:white;text-align:left;padding:10px 12px;line-height:1.3}.suggestions button:hover{background:#eef5f0}.feature-form{padding:20px}.feature-form>p:first-child{color:#667c72;line-height:1.45}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #e8eee8}.switch-row span{display:flex;flex-direction:column;gap:4px}.switch-row small{color:#71847c}.switch-row input{appearance:none;flex:none;width:47px;height:27px;border-radius:100px;background:#c9d5ce;position:relative;cursor:pointer;transition:background .2s}.switch-row input:checked{background:#2fbb61}.switch-row input:after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;background:white;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px #0003}.switch-row input:checked:after{transform:translateX(20px)}
.chat-layout{display:grid;grid-template-columns:310px 1fr;height:100%;background:#f2f5f2}.chat-list{background:white;border-right:1px solid #e0e9e2;overflow:auto;padding:20px 10px}.chat-list .section-heading{padding:0 10px}.chat-conversation{display:grid;grid-template-columns:1fr auto;width:100%;text-align:left;border:0;background:white;border-radius:12px;padding:11px;gap:3px 8px;min-height:75px}.chat-conversation.active,.chat-conversation:hover{background:#eaf4ed}.chat-conversation strong,.chat-conversation small,.chat-conversation span{grid-column:1}.chat-conversation small,.chat-conversation span{color:#77877e;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-conversation b{grid-column:2;grid-row:1/3;align-self:center;background:#37b768;color:white;border-radius:100px;padding:2px 6px;font-size:.65rem}.chat-thread{min-width:0;display:flex;flex-direction:column;height:100%;padding-bottom:68px}.chat-thread-head{background:white;border-bottom:1px solid #e1eae3;padding:14px 20px;display:flex;align-items:center}.chat-thread-head>div{display:flex;flex-direction:column;gap:2px}.chat-thread-head span{font-size:.78rem;color:#769084}.messages{flex:1;min-height:0;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:9px}.bubble{position:relative;max-width:min(70%,490px);background:white;border-radius:15px 15px 15px 4px;padding:10px 13px;box-shadow:0 2px 8px #0000000c;align-self:flex-start;overflow-wrap:anywhere;user-select:text}.bubble.mine{align-self:flex-end;background:#d9f4df;border-radius:15px 15px 4px 15px}.bubble p{white-space:pre-wrap;margin:0 0 4px}.bubble p:empty{display:none}.bubble small{display:block;font-size:.66rem;color:#70867b;text-align:right}.bubble-delete{border:0;background:#f9eeee;color:#a33b37;border-radius:8px;padding:5px 8px;font-size:.75rem;margin-top:6px}.bubble-delete[hidden]{display:none}.attachment img,.attachment video{display:block;max-width:100%;max-height:280px;border-radius:9px}.attachment audio{max-width:100%}.composer{background:white;border-top:1px solid #e2ebe4;display:flex;align-items:flex-end;gap:10px;padding:10px 18px}.composer textarea{flex:1;min-width:0;max-height:120px;resize:vertical;padding:10px 12px;border:1px solid #d1dfd5;border-radius:11px;outline:none}.composer textarea:focus{border-color:#0b7567}.attach-button,.mic-button,.send-button{height:42px;width:42px;display:grid;place-items:center;border:0;border-radius:11px;background:#e8f1eb;color:#0b7567;font-size:1.4rem;flex:none;cursor:pointer}.send-button{background:#0b7567;color:white}.recording-status{background:#fff3e6;color:#805637;padding:8px 18px;font-size:.84rem}.recording-status button{border:0;background:none;color:#ad5444;font-weight:700;margin-left:12px}
#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#193a34;color:white;padding:12px 18px;border-radius:12px;max-width:min(90vw,540px);z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 10px 30px #0003}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:850px){.login-page{grid-template-columns:1fr}.login-illustration{display:none}.mobile-brand{display:block;color:#0b7567;font-weight:900;font-size:1.1rem}.login-panel{background:#eef4ee}.login-card{box-shadow:0 10px 35px #112c2312}.account-name{display:none}.topbar{height:58px;padding:0 12px}.brand-mark{width:32px;height:32px;font-size:1rem}.brand-name small{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-content:not(.chat-full){align-items:flex-end}.panel{margin:0 0 68px;width:100%;max-height:45%;border-radius:20px 20px 0 0;padding:16px 18px}.panel.full-panel{max-height:calc(100% - 60px);width:100%;margin-bottom:61px}.tracking-banner{margin:12px;width:calc(100% - 24px);align-self:flex-start}.workspace-content.tracking{align-items:flex-start}.driver-panel{max-width:none}.driver-actions{display:grid;grid-template-columns:repeat(2,1fr);margin:12px 0}.driver-actions button{text-align:center}.admin-content{padding:18px 12px 70px}.stats-section,.companies-section{padding:17px}.stat-grid{grid-template-columns:repeat(2,1fr)}.stat-card{padding:13px}.stat-card strong{font-size:1.35rem}.company-grid{grid-template-columns:1fr}#navigation{bottom:0;right:0;left:0;border-radius:0;justify-content:space-around;overflow-x:auto;padding:5px 2px;box-shadow:0 -4px 18px #17372e17}#navigation button{padding:9px 10px;white-space:nowrap;font-size:.8rem}.chat-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.chat-list{display:flex;padding:7px;overflow-x:auto;border-right:0;border-bottom:1px solid #dfe9e1}.chat-list .section-heading{display:none}.chat-conversation{min-width:125px;width:125px;min-height:54px}.chat-conversation span{display:none}.chat-thread{padding-bottom:59px}.messages{padding:12px}.bubble{max-width:85%}.composer{padding:8px}.form-grid{grid-template-columns:1fr}.form-actions{justify-content:stretch}.form-actions button{flex:1}}
@media(max-width:400px){.stat-grid{grid-template-columns:1fr 1fr}.stat-card strong{font-size:1.15rem}.driver-actions{grid-template-columns:1fr}.modal-head{padding:13px}.form-grid{padding:14px}.panel{max-height:49%}}
