:root{--ink:#14201C;--navy:#13294B;--navy2:#1D3860;--green:#0F6B4F;--green-d:#0A4E39;--ground:#F3F5F4;--warn:#A8470A;--warn-bg:#FBEDE3;--ok-bg:#E9F3EF;--line:#DCE2DF;--line2:#E8ECEA;--mute:#55635D}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font:14px/1.4 Archivo,"Segoe UI",sans-serif}
a{color:var(--green)}a:hover{color:var(--green-d)}
h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em}
h2{margin:0;font-size:17px;font-weight:700}
h3{margin:0 0 8px;font-size:14px;font-weight:700}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 220px;background:var(--navy);color:#F3F5F4;padding:24px 16px;display:flex;flex-direction:column;gap:6px}
.side .brand{font-size:20px;font-weight:800;padding:0 12px 4px}
.side .co{font-size:12px;color:#B4C2BC;padding:0 12px 18px}
.side a{display:block;padding:12px;border-radius:8px;color:#F3F5F4;text-decoration:none;font-weight:600}
.side a.on{background:#fff;color:var(--navy);font-weight:700}
.side .line{margin-top:24px;padding:14px 12px;border-radius:8px;background:var(--navy2)}
.side .line small{color:#B4C2BC;display:block}
.side form{margin-top:auto}
.side form button{background:none;border:0;color:#B4C2BC;font:inherit;padding:12px;cursor:pointer;min-height:44px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#5FD3A6;margin-right:8px}
.dot.off{background:#B4C2BC}
.main{flex:999 1 560px;min-width:0;padding:28px 32px 40px;display:flex;flex-direction:column;gap:20px}
.head{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.head>div:first-child{flex:1 1 260px}
.sub,.mute{color:var(--mute)}
.small{font-size:13px}
.row{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.col{min-width:0;display:flex;flex-direction:column;gap:14px}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.card.flush{padding:0;overflow:hidden}
.card.flush>h2,.card.flush>.bar{padding:14px 20px;border-bottom:1px solid var(--line)}
.stack{display:flex;flex-direction:column;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:8px;border:1px solid #C9D2CE;background:#fff;color:var(--ink);font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn:hover{color:var(--ink);border-color:var(--ink)}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.warn{background:var(--warn);border-color:var(--warn);color:#fff}
.btn.quiet{color:var(--warn)}
.btn.big{min-height:52px;font-size:16px;font-weight:800;width:100%}
.btns{display:flex;flex-wrap:wrap;gap:10px}
.stats{display:flex;flex-wrap:wrap;gap:12px}
.stat{flex:1 1 150px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.stat b{display:block;font-size:30px;font-weight:800}
.stat.good b{color:var(--green)}.stat.bad b{color:var(--warn)}
.plate{font-family:"IBM Plex Mono",monospace;font-weight:600;font-size:13px;background:#F6D54A;color:var(--ink);padding:3px 7px;border-radius:4px;white-space:nowrap}
.tcode{background:var(--ink);color:#fff;font-weight:800;font-size:13px;padding:4px 8px;border-radius:5px}
.chip{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:700;font-size:13px;background:var(--line2);color:#3D4A45;white-space:nowrap}
.chip.waiting,.chip.bad{background:var(--warn-bg);color:#8A3A08}
.chip.assigned{background:#DDE6F5;color:var(--navy)}
.chip.loaded{background:var(--ink);color:#fff}
.chip.dropped,.chip.good{background:var(--ok-bg);color:var(--green-d)}
.num{width:26px;height:26px;border-radius:50%;background:var(--warn);color:#fff;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.slots{display:flex;flex-wrap:wrap;gap:5px}
.slot{width:22px;height:22px;border-radius:4px;border:2px solid var(--green);background:#fff}
.slot.full{background:var(--ink);border-color:var(--ink)}
.slot.plan{background:var(--ok-bg);border-style:dashed}
.jobrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:10px;border-top:1px solid var(--line2);color:inherit;text-decoration:none}
.jobrow .what{flex:1 1 150px;min-width:0}
.fit{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:var(--ok-bg);border-radius:8px;padding:10px 12px}
.fit>div{flex:1 1 180px}
.fit.no{background:var(--warn-bg)}
.note{background:var(--ok-bg);border-radius:8px;padding:12px 14px}
.note.warn{background:var(--warn-bg)}
.note.warn b{color:var(--warn)}
.note.plain{background:var(--ground)}
#map{height:560px;background:#E3EAE6}
#map.mini{height:280px;border-radius:8px}
.mk{border-radius:50%;border:3px solid #fff;background:var(--warn);color:#fff;font:700 14px Archivo,sans-serif;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(20,32,28,.3)}
.mk.tk{border-radius:8px;background:var(--ink);font-weight:800;font-size:13px}
.mk.yard{border-radius:6px;background:var(--navy);font-size:11px}
.glabel{background:var(--green);color:#fff;font:700 12px Archivo,sans-serif;padding:3px 8px;border-radius:999px;white-space:nowrap}
.trucks{display:flex;flex-wrap:wrap;gap:12px}
.truck{flex:1 1 200px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;color:inherit;text-decoration:none}
.truck.sel{border:2px solid var(--green)}
table{width:100%;border-collapse:collapse;text-align:left}
.scroll{overflow-x:auto}
.scroll table{min-width:680px}
th{padding:12px 10px;font-size:13px;color:var(--mute);font-weight:600}
td{padding:12px 10px;border-top:1px solid var(--line2);vertical-align:top}
th:first-child,td:first-child{padding-left:20px}
label{display:flex;flex-direction:column;gap:4px;font-weight:600}
label.check{flex-direction:row;align-items:center;gap:12px;min-height:44px;font-weight:500}
label.check input{width:20px;height:20px;accent-color:var(--green);flex:0 0 auto}
input[type=text],input[type=tel],input[type=password],input[type=number],input[type=search],input[type=url],select,textarea{min-height:44px;padding:8px 12px;border-radius:8px;border:1px solid #C9D2CE;font:inherit;color:var(--ink);background:#fff;width:100%}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.kv{display:grid;grid-template-columns:110px 1fr;gap:8px 12px}
.kv>:nth-child(odd){color:var(--mute)}
.kv>:nth-child(even){font-weight:700}
.tl{display:flex;gap:12px;padding:8px 0;border-top:1px solid var(--line2)}
.tl b{width:48px;flex:0 0 auto}
.flash{background:var(--navy);color:#fff;border-radius:8px;padding:12px 16px;font-weight:600}
.pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pill{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #C9D2CE;background:#fff;color:var(--ink);font-weight:600;text-decoration:none}
.pill.on{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:700}
.said{max-width:82%;border-radius:12px;padding:10px 14px;background:var(--ground);align-self:flex-end}
.said.ai{background:var(--ok-bg);align-self:flex-start}
.said small{display:block;font-weight:700;color:var(--mute)}
.said.ai small{color:var(--green)}
.deck{border-radius:8px;padding:10px 12px;min-height:84px;border:1px solid #C9D2CE;background:#fff}
.deck.loaded{background:var(--ground);border:2px solid var(--ink)}
.deck.assigned{background:var(--ok-bg);border:2px dashed var(--green)}
.decks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.meter{height:14px;border-radius:7px;background:var(--line2);overflow:hidden;margin-top:8px}
.meter span{display:block;height:100%;background:var(--green)}
.meter span.over{background:var(--warn)}
.driver{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--navy);color:#fff;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
pre.log{white-space:pre-wrap;font:13px/1.5 "IBM Plex Mono",monospace;max-height:260px;overflow:auto;background:var(--ground);border-radius:8px;padding:12px;margin:0}
.drop{border:2px dashed #9FB3AA;border-radius:10px;padding:22px;text-align:center;background:var(--ground)}
/* phone pages */
.phone{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;font-size:15px}
.phone .top{background:var(--navy);color:#fff;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.phone .top .slot{border-color:#fff;background:transparent;width:26px;height:26px}
.phone .top .slot.full{background:#fff}
.phone .body{flex:1 1 auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.phone .next{border:2px solid var(--green)}
.phone .btn{min-height:48px}
.center{max-width:420px;margin:8vh auto;padding:0 16px}
