:root{--ink:#14212b;--muted:#64727d;--bg:#f3f6f8;--card:#fff;--line:#dce4e9;--brand:#176b87;--brand2:#0d4c63;--danger:#b42318;--ok:#157347;--shadow:0 10px 30px rgba(20,33,43,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}.topbar{height:64px;padding:0 max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;background:#14324a;color:#fff;position:sticky;top:0;z-index:10}.brand{font-size:1.25rem;font-weight:800;color:#fff;text-decoration:none}.brand small{font-weight:400;opacity:.7}.topbar nav,.topbar form,.row,.quick-actions{display:flex;align-items:center;gap:12px}.shell{width:min(1120px,100%);margin:auto;padding:24px 16px 72px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}h1{font-size:clamp(1.6rem,4vw,2.35rem);line-height:1.1;margin:.2rem 0}h2{font-size:1.05rem;margin:.35rem 0}.eyebrow{color:var(--brand);font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:.72rem;margin:0}.muted{color:var(--muted)}.btn{min-height:44px;padding:10px 15px;border-radius:11px;border:1px solid transparent;font:inherit;font-weight:750;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.primary{background:var(--brand);color:#fff}.primary:hover{background:var(--brand2)}.ghost{background:#f7fafb;border-color:var(--line);color:var(--ink)}.link{background:none;border:0;color:inherit;cursor:pointer}.danger{color:#ffb4ae}.route-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.route-card,.panel,.stop-card,.auth-card,.empty{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.route-card{padding:18px;color:inherit;text-decoration:none}.route-card .row{justify-content:space-between}.route-card time,.route-card p,.route-card small{color:var(--muted)}.progress{height:7px;background:#e8eef1;border-radius:10px;overflow:hidden;margin:15px 0 7px}.progress span{display:block;height:100%;background:#20a36d}.badge{display:inline-flex;padding:5px 9px;border-radius:99px;background:#e9eef2;color:#53616b;font-size:.75rem;font-weight:800}.badge.delivered,.badge.completed{background:#d9f5e7;color:#11653e}.badge.in_progress,.badge.active{background:#dceefc;color:#175e86}.badge.failed,.badge.cancelled{background:#fee4e2;color:#9f2018}.panel{padding:18px;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid label,.stack label{font-size:.82rem;font-weight:750;color:#46545f;display:flex;flex-direction:column;gap:6px}.wide{grid-column:1/-1}input,select,textarea{width:100%;min-height:46px;border:1px solid #cbd7de;border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit}textarea{resize:vertical}.actions{display:flex;justify-content:flex-end}.add-stop summary{cursor:pointer;font-weight:800}.add-stop[open] summary{margin-bottom:18px}.stop-list{display:grid;gap:12px}.stop-card{display:grid;grid-template-columns:52px 1fr;padding:16px;gap:12px}.position{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e4f3f7;color:var(--brand2);font-weight:900}.stop-main .row{justify-content:space-between;align-items:flex-start}.address{color:var(--brand2);font-weight:650}.status-form{display:grid;grid-template-columns:150px 1fr auto;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.empty{text-align:center;padding:42px 20px;grid-column:1/-1}.auth-card{width:min(420px,100%);margin:8vh auto;padding:28px}.auth-mark{width:58px;height:58px;border-radius:17px;background:linear-gradient(135deg,#176b87,#14324a);color:#fff;display:grid;place-items:center;font-size:1.5rem;font-weight:900}.stack{display:grid;gap:15px}.alert{padding:12px;border-radius:10px;margin:14px 0}.alert.error{background:#fee4e2;color:#8e1d16}.back{color:var(--muted);text-decoration:none}@media(max-width:680px){.topbar nav>span{display:none}.shell{padding:18px 12px 90px}.page-head{align-items:flex-end}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.stop-card{grid-template-columns:42px 1fr;padding:13px}.position{width:38px;height:38px}.status-form{grid-template-columns:1fr}.status-form .btn{width:100%}.quick-actions .btn{flex:1}.route-grid{grid-template-columns:1fr}.panel{padding:15px}}
input[type="checkbox"],input[type="radio"]{width:20px;height:20px;min-height:20px;padding:0;border-radius:5px;flex:0 0 20px;accent-color:var(--brand)}
