:root{--navy:#173a54;--navy2:#244d69;--ink:#192d3a;--muted:#71818b;--line:#e1e8ec;--paper:#f5f7f8;--white:#fff;--mint:#dff3e9;--green:#197650;--red:#b33b3b;--shadow:0 12px 35px rgba(22,53,73,.07)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.45}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app-shell{max-width:1050px;min-height:100dvh;margin:0 auto;padding:0 22px;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:12px;padding:22px 0 26px;border-bottom:1px solid var(--line)}.brand-mark{height:42px;width:42px;border-radius:14px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:-1px}.brand-copy{display:flex;flex-direction:column;flex:1}.brand-copy strong{font-size:15px;letter-spacing:-.2px}.brand-copy span{font-size:12px;color:var(--muted)}.push-enable{border:1px solid #c9d8e0;background:#fff;color:var(--navy);border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700}.icon-button{border:1px solid var(--line);background:white;border-radius:10px;width:40px;height:40px;font-size:24px;color:var(--navy)}main{flex:1;padding:28px 0 38px}.auth-card{max-width:440px;margin:6vh auto;background:white;padding:32px;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,4vw,34px);line-height:1.12;letter-spacing:-1px;margin-bottom:9px}h2{font-size:21px;letter-spacing:-.4px;margin-bottom:4px}h3{font-size:15px;margin-bottom:16px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#6c8798;margin-bottom:10px}.muted{color:var(--muted);font-size:13px;margin-bottom:0}.auth-card form{margin-top:26px}.auth-card label,.compose-card label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;margin-bottom:15px;color:#344d5d}input,textarea,select{width:100%;border:1px solid #dce5e9;background:#fff;border-radius:10px;padding:12px 13px;outline:none;color:var(--ink);font-size:14px;transition:border .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#6b91a8;box-shadow:0 0 0 3px rgba(36,77,105,.09)}textarea{resize:vertical;min-height:86px}.primary{background:var(--navy);color:white;border:0;border-radius:11px;padding:13px 16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px;transition:background .15s,transform .15s}.primary:hover{background:var(--navy2)}.primary:disabled{opacity:.55;cursor:wait}.primary span{font-size:17px}.full{width:100%}.error{color:var(--red);font-size:12px;margin:10px 0 0}.welcome-row{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}.text-button{background:none;border:0;color:#456c84;font-size:12px;font-weight:700;padding:8px 0}.tabbar{display:flex;gap:5px;padding:5px;background:#e9eef1;border-radius:12px;margin-bottom:18px;overflow:auto}.tab{white-space:nowrap;border:0;background:transparent;padding:11px 14px;border-radius:9px;color:#627581;font-weight:700;font-size:12px}.tab.active{background:white;color:var(--navy);box-shadow:0 2px 7px #193b5410}.count-badge{background:#dff3e9;color:#197650;border-radius:99px;padding:2px 6px;margin-left:5px;font-size:10px}.panel{background:white;border:1px solid var(--line);border-radius:19px;padding:clamp(18px,3vw,28px);box-shadow:var(--shadow)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.step-dot{height:31px;min-width:31px;border-radius:50%;background:#e8eff3;display:grid;place-items:center;color:#57788b;font-size:11px;font-weight:800}.search-field{display:flex;align-items:center;gap:9px;border:1px solid #d9e3e8;border-radius:12px;padding:0 13px;margin-bottom:14px;color:#78909d}.search-field:focus-within{border-color:#7192a6;box-shadow:0 0 0 3px #244d6910}.search-field input{border:0;box-shadow:none;padding:14px 0;background:transparent}.search-field button{border:0;background:none;color:#8da0aa;font-size:22px}.vehicle-results{display:flex;flex-direction:column;gap:8px}.vehicle-result{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:1px solid var(--line);background:white;border-radius:12px;padding:10px 12px;transition:border .15s,background .15s}.vehicle-result:hover,.vehicle-result.chosen{border-color:#9bb7c7;background:#f8fbfc}.car-thumb{height:52px;width:65px;border-radius:9px;background:#edf2f4;display:grid;place-items:center;flex-shrink:0;font-size:25px;overflow:hidden}.car-thumb img{height:100%;width:100%;object-fit:cover}.vehicle-copy,.selected-vehicle>div:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.vehicle-copy strong,.selected-vehicle strong{font-size:14px;letter-spacing:.3px}.vehicle-copy span,.selected-vehicle span{font-size:12px;color:var(--muted)}.chevron{font-size:25px;color:#92a4ae}.empty-state{padding:34px 15px;text-align:center;color:var(--muted);font-size:12px;display:flex;align-items:center;flex-direction:column;gap:6px}.empty-state strong{font-size:14px;color:#425968}.empty-icon{width:43px;height:43px;border-radius:14px;background:#edf3f5;display:grid;place-items:center;font-size:25px;color:#658398;margin-bottom:7px}.compose-card{border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:18px;background:#fbfcfc}.selected-vehicle{display:flex;align-items:center;gap:12px;padding-bottom:16px;margin-bottom:17px;border-bottom:1px solid var(--line)}.field-foot{display:flex;justify-content:space-between;gap:10px;color:#81929b;font-size:10px;font-weight:400}.small-button{border:1px solid var(--line);background:white;border-radius:9px;padding:8px 10px;color:#527084;font-size:11px;font-weight:700}.conversation-list{display:flex;flex-direction:column}.conversation-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:15px 3px;border:0;border-bottom:1px solid #edf1f3;background:white}.conversation-avatar{height:43px;width:43px;border-radius:14px;background:#edf3f5;display:grid;place-items:center;font-size:21px;flex-shrink:0}.conversation-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.conversation-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.conversation-top strong{font-size:13px}.conversation-top span,.other-name{font-size:10px;color:var(--muted)}.other-name{font-size:11px}.last-message{font-size:12px;color:#6f818c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.unread-dot{min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:#dff3e9;color:#197650;display:grid;place-items:center;font-size:10px;font-weight:800}.modal{position:fixed;inset:0;background:rgba(12,31,43,.42);z-index:20;display:flex;align-items:center;justify-content:center;padding:16px}.modal-card{width:min(640px,100%);max-height:min(85dvh,800px);display:flex;flex-direction:column;background:white;border-radius:18px;box-shadow:0 20px 80px #102a3a30;overflow:hidden}.modal-header{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modal-header h2{margin:0}.modal-header .eyebrow{margin-bottom:3px}.chat-messages{padding:18px;overflow:auto;flex:1;min-height:180px;background:#f8fafb;display:flex;flex-direction:column;gap:12px}.bubble{max-width:84%;padding:11px 13px;border-radius:13px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#e4f2eb;border-bottom-right-radius:4px}.bubble.theirs{align-self:flex-start;background:white;border:1px solid #e3e9ec;border-bottom-left-radius:4px}.bubble-name{font-size:10px;font-weight:800;color:#587384;margin-bottom:4px}.bubble time{display:block;text-align:right;font-size:9px;color:#81919a;margin-top:5px}.reply-form{display:flex;align-items:flex-end;gap:9px;padding:14px;border-top:1px solid var(--line)}.reply-form textarea{min-height:46px;max-height:120px}.reply-form .primary{min-width:82px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:all .2s;background:#183c55;color:white;padding:12px 18px;border-radius:11px;box-shadow:var(--shadow);font-size:12px;z-index:40;max-width:calc(100% - 32px)}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.bad{background:#922f2f}footer{display:flex;justify-content:space-between;gap:12px;padding:18px 0 23px;color:#8a9aa3;font-size:10px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-grid .compose-card{margin-top:0}.admin-grid .compose-card label{margin-bottom:12px}.hint{font-size:10px;font-weight:400;color:var(--muted)}.form-status{font-size:11px;color:var(--green);margin:10px 0 0}.admin-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.simple-list{border-top:1px solid var(--line)}.simple-row{padding:12px 0;border-bottom:1px solid #edf1f3;display:flex;align-items:center;justify-content:space-between;gap:8px}.simple-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}.simple-row strong{font-size:12px}.simple-row span{font-size:10px;color:var(--muted)}.role-tag{background:#edf2f5;border-radius:5px;padding:2px 5px}.status-dot{width:7px;height:7px;border-radius:100%;background:#d6a0a0}.status-dot.on{background:#49a67b}@media(max-width:640px){.app-shell{padding:0 14px}.topbar{padding:15px 0 18px}.brand-mark{width:38px;height:38px}.push-enable{font-size:10px;padding:8px}.welcome-row{margin-bottom:19px}main{padding:22px 0}.tabbar{margin-left:-2px;margin-right:-2px}.tab{padding:10px 11px;font-size:11px}.panel{padding:17px;border-radius:16px}.panel-heading{margin-bottom:17px}.admin-grid,.admin-lists{grid-template-columns:1fr}.auth-card{padding:24px;margin:4vh auto}.modal{padding:0;align-items:flex-end}.modal-card{width:100%;max-height:91dvh;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}footer{flex-direction:column;gap:4px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}.conversation-top span{font-size:9px}.selected-vehicle .text-button{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
