:root{
  --ink:#0E1726; --ink2:#46505F; --mute:#8A93A3; --line:#E6E9F0; --line2:#F0F2F6;
  --bg:#F3F5F9; --side:#0B1220; --accent:#2F6BFF; --accent2:#36C6FF; --tint:#EBF1FF;
  --green:#12B76A; --amber:#F79009; --red:#F04438; --violet:#8B5CF6; --teal:#0EA5A0; --slate:#64748B;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg)}
body{font-family:Inter,system-ui,sans-serif;color:var(--ink);font-size:14px;line-height:1.4;-webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1,"cv11" 1}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
a{color:inherit;text-decoration:none;cursor:pointer}
.ic{flex:none;display:block}
.mute{color:#A3ABB9}
.mono{font-family:"JetBrains Mono",ui-monospace,monospace;font-weight:600;letter-spacing:-.01em}
h1,h2,h3{font-family:Manrope,Inter,sans-serif;letter-spacing:-.02em}
.av{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#0E1726;font-weight:700;flex:none;font-family:Manrope,sans-serif;letter-spacing:-.02em}

/* ---------- layout */
.app{display:flex;width:100%;min-height:100vh}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.content{width:100%;max-width:1664px;margin:0 auto;padding:32px;display:flex;flex-direction:column;gap:24px}
.split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px -12px rgba(16,24,40,.08)}
.card-h{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 0}
.card-h h3{font-size:18px;font-weight:800}
.card-h p{color:var(--mute);font-size:13px;margin-top:4px}
.card-h.big{padding:24px 24px 16px}
.card-h.big h3{font-size:20px}

/* ---------- sidebar */
.sidebar{width:256px;flex:none;background:var(--side);color:#AEB8CB;padding:24px 16px 20px;display:flex;flex-direction:column;
  background-image:radial-gradient(600px 400px at -20% -5%,rgba(47,107,255,.22),transparent 60%)}
.brand{display:flex;align-items:center;gap:12px;padding:0 8px 24px}
.brand b{display:block;color:#fff;font-family:Manrope;font-weight:800;font-size:21px;letter-spacing:-.03em;line-height:1.1}
.brand span{font-size:12px;color:#7D89A1}
.ws{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:12px;margin-bottom:24px}
.ws > div{flex:1}
.ws b{display:block;color:#fff;font-size:14px;font-weight:600}
.ws span{font-size:12px;color:#7D89A1}
.wsl{width:32px;height:32px;border-radius:9px;background:#1B2A47;color:#8FB0FF;font-family:Manrope;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center}
.slabel{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#5E6A82;padding:0 12px 8px;margin-top:8px}
nav{display:flex;flex-direction:column;gap:2px;margin-bottom:20px}
.nav{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:10px;font-weight:500;font-size:14px;color:#AEB8CB;position:relative}
.nav.active{background:linear-gradient(90deg,rgba(47,107,255,.28),rgba(47,107,255,.08));color:#fff}
.nav.active::before{content:"";position:absolute;left:-16px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.nav.active .ic{color:#7FA6FF}
.nbadge{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.08);color:#C9D2E3}
.nbadge.warn{background:rgba(247,144,9,.18);color:#FDB022}
.views{display:flex;flex-direction:column;gap:2px;margin-bottom:20px}
.view{display:flex;align-items:center;gap:12px;height:36px;padding:0 12px;border-radius:10px;font-size:14px}
.view i{width:8px;height:8px;border-radius:3px}
.view span{flex:1}
.view b{font-weight:500;color:#6E7A92;font-size:13px}
.team{display:flex;flex-direction:column;gap:12px;padding:4px 12px 20px}
.tm{display:flex;align-items:center;gap:12px;position:relative}
.tm .st{position:absolute;left:23px;top:23px;width:11px;height:11px;border-radius:50%;border:2px solid var(--side);background:var(--green)}
.tm .st.busy{background:var(--amber)}
.tm b{display:block;color:#E6EBF5;font-size:13px;font-weight:600}
.tm span{font-size:12px;color:#6E7A92}
.more-team{display:flex;align-items:center;gap:10px;font-size:12px;color:#7D89A1}
.stack{display:flex}
.stack .av{border:2px solid var(--side);margin-right:-8px}
.stack .av:last-child{margin-right:0}
.sysbox{margin:4px 0 0;padding:16px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}
.sys-h{display:flex;align-items:center;gap:8px;color:#fff;margin-bottom:12px}
.sys-h .ic{color:#7FA6FF}
.sys-h b{flex:1;font-size:13px;font-weight:600}
.okdot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(18,183,106,.18)}
.sys-r{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}
.sys-r b{color:#E6EBF5;font-weight:600}
.sys-bar{height:4px;border-radius:4px;background:rgba(255,255,255,.08);margin-top:10px;overflow:hidden}
.sys-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.sfill{flex:1;min-height:40px;margin:24px 4px;border-radius:16px;
}
.handover{padding:16px;border-radius:14px;background:linear-gradient(140deg,#1C3B8F,#2F6BFF);color:#fff;margin-bottom:16px}
.handover b{display:block;font-family:Manrope;font-weight:800;font-size:15px}
.handover span{display:block;font-size:12px;color:#C9D8FF;margin:4px 0 12px}
.handover a{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;background:rgba(255,255,255,.16);padding:6px 12px;border-radius:8px}
.navbot{margin-bottom:12px}
.me{display:flex;align-items:center;gap:12px;padding:12px 8px 0;border-top:1px solid rgba(255,255,255,.07)}
.me > div{flex:1;min-width:0}
.me b{display:block;color:#fff;font-size:13px;font-weight:600}
.me span{font-size:12px;color:#6E7A92}

/* ---------- topbar */
.topbar{height:72px;flex:none;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 32px}
.crumbs{display:flex;align-items:center;gap:8px;color:var(--mute);font-size:14px;white-space:nowrap}
.crumbs b{color:var(--ink);font-weight:600}
.search{flex:1;max-width:400px;height:42px;display:flex;align-items:center;gap:10px;padding:0 8px 0 14px;border:1px solid var(--line);border-radius:12px;background:#F7F8FB;color:var(--mute)}
.search span{flex:1;white-space:nowrap}
.search kbd{font:600 11px Inter;color:var(--ink2);background:#fff;border:1px solid var(--line);border-radius:6px;padding:3px 7px}
.search.sm{height:38px;max-width:none;width:260px;border-radius:10px;font-size:13px}
.tb-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.live{display:flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;background:#ECFDF3;color:#067647;font-weight:600;font-size:13px}
.live i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(18,183,106,.2)}
.live.sm{height:26px;font-size:12px}
.date{display:flex;align-items:center;gap:10px;height:42px;padding:0 14px;border:1px solid var(--line);border-radius:12px;font-weight:600;font-size:14px;background:#fff}
.date .ic:first-child{color:var(--accent)}
.iconbtn{position:relative;width:42px;height:42px;border-radius:12px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink2);background:#fff}
.bdot{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:700;font-style:normal;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.tb-user{display:flex;align-items:center;gap:10px;padding-left:12px;margin-left:4px;border-left:1px solid var(--line);color:var(--mute)}
.tb-user b{display:block;color:var(--ink);font-size:14px;font-weight:600}
.tb-user span{font-size:12px}

/* ---------- page head */
.pagehead{display:flex;align-items:flex-end;justify-content:space-between}
.eyebrow{font-size:13px;font-weight:600;color:var(--accent);margin-bottom:6px}
h1{font-size:34px;font-weight:800;line-height:1.1;letter-spacing:-.03em}
.ph-actions{display:flex;gap:12px}
.btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;font-weight:600;font-size:14px;white-space:nowrap}
.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink);box-shadow:0 1px 2px rgba(16,24,40,.04)}
.btn.primary{background:var(--accent);color:#fff;box-shadow:0 8px 20px -8px rgba(47,107,255,.7),inset 0 1px 0 rgba(255,255,255,.2)}
.btn.sm{height:38px;padding:0 14px;font-size:13px;border-radius:10px}
.fcount{background:var(--tint);color:var(--accent);font-size:11px;padding:1px 7px;border-radius:999px}

/* ---------- KPI */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.kpi{padding:20px 24px 20px}
.kpi-top{display:flex;align-items:center;gap:12px}
.kpi-l{flex:1;font-weight:600;color:var(--ink2);font-size:14px}
.chip{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.chip.blue{background:var(--tint);color:var(--accent)}
.chip.green{background:#E7F8EF;color:#079455}
.chip.red{background:#FEECEB;color:#D92D20}
.kpi-mid{display:flex;align-items:flex-end;justify-content:space-between;margin:16px 0 12px;height:48px}
.kpi-v{font-family:Manrope;font-weight:800;font-size:40px;line-height:1;letter-spacing:-.04em}
.kpi-v small{font-size:24px;margin-left:2px;color:var(--ink2);letter-spacing:-.02em}
.kpi-b{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mute)}
.delta{display:inline-flex;align-items:center;gap:3px;font-weight:700;font-size:12px;padding:3px 8px;border-radius:999px}
.delta.good{background:#E7F8EF;color:#067647}
.delta.bad{background:#FEECEB;color:#B42318}
.delta.xs{font-size:11px;padding:2px 6px;margin-left:8px}

/* ---------- map */
.mapcard{position:relative;height:560px;overflow:hidden;background:#0B1426;border-color:#0B1426}
.stage{position:absolute;left:50%;top:50%;width:736px;height:560px;margin:-280px 0 0 -368px}
.mapsvg{position:absolute;left:0;top:0;overflow:visible}
.mlab{font:500 11px Inter;fill:#8E9BB6;paint-order:stroke;stroke:#0B1426;stroke-width:3px}
.mlab.hub{font:700 12px Inter;fill:#fff}
.map-head{position:absolute;left:0;right:0;top:0;padding:24px 24px 40px;display:flex;justify-content:space-between;align-items:flex-start;
  background:linear-gradient(180deg,rgba(11,20,38,.96) 30%,rgba(11,20,38,0))}
.map-head h2{color:#fff;font-size:20px;font-weight:800}
.map-head p{color:#8E9BB6;font-size:13px;margin-top:4px}
.seg{display:flex;padding:3px;border-radius:10px;background:#F1F3F7;font-size:13px;font-weight:600;color:var(--ink2)}
.seg span{padding:6px 12px;border-radius:8px}
.seg .on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,24,40,.12)}
.seg.dark{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);color:#9AA6BE}
.seg.dark .on{background:var(--accent);color:#fff;box-shadow:none}
.map-chips{position:absolute;left:24px;top:92px;display:flex;gap:8px}
.map-chips span{display:flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;background:rgba(18,30,56,.85);border:1px solid rgba(255,255,255,.08);color:#9AA6BE;font-size:12px}
.map-chips b{color:#fff;font-weight:700}
.map-chips i{width:8px;height:8px;border-radius:50%}
.callout{position:absolute;width:250px;padding:14px 16px;border-radius:14px;background:#fff;box-shadow:0 18px 40px -12px rgba(0,0,0,.55)}
.co-h{display:flex;justify-content:space-between;align-items:center}
.co-h b{font-family:"JetBrains Mono";font-size:13px}
.co-r{font-size:12px;color:var(--ink2);margin:6px 0 10px}
.co-bar{height:6px;border-radius:6px;background:#EDF1F7;overflow:hidden}
.co-bar i{display:block;height:100%;background:var(--accent);border-radius:6px}
.co-bar.red i{background:var(--red)}
.co-f{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--mute)}
.co-f b{color:var(--ink);font-weight:700}
.legend{position:absolute;left:24px;bottom:24px;display:flex;gap:16px;padding:10px 16px;border-radius:12px;background:rgba(18,30,56,.88);border:1px solid rgba(255,255,255,.08);font-size:12px;color:#C3CCDD}
.legend span{display:flex;align-items:center;gap:8px}
.lg{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.lg.hubk{border-radius:3px;background:#fff;border:2.5px solid var(--accent);box-shadow:none}
.zoom{position:absolute;right:24px;bottom:24px;display:flex;flex-direction:column;border-radius:12px;background:rgba(18,30,56,.88);border:1px solid rgba(255,255,255,.08);color:#C3CCDD;overflow:hidden}
.zoom span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(255,255,255,.07)}
.zoom span:last-child{border:0}

/* ---------- pills */
.pill{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 11px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap}
.pill i{width:7px;height:7px;border-radius:50%;background:currentColor}
.pill.sm{height:24px;font-size:11.5px;padding:0 9px}
.pill.transit{background:var(--tint);color:#1F55E0}
.pill.delayed{background:#FEECEB;color:#C4261A}
.pill.customs{background:#F1ECFE;color:#6D3FE0}
.pill.risk{background:#FEF4E2;color:#B54708}
.pill.delivered{background:#E7F8EF;color:#067647}
.pill.loading{background:#EEF1F5;color:#475467}
.pill.loading i{background:none;border:2px solid currentColor;width:8px;height:8px}

/* ---------- alerts */
.alerts{display:flex;flex-direction:column;height:560px}
.ttl{display:flex;align-items:center;gap:10px}
.count{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#C4261A;background:#FEECEB;padding:3px 10px;border-radius:999px}
.count i{width:6px;height:6px;border-radius:50%;background:var(--red)}
.tabs{display:flex;gap:4px;padding:16px 24px 8px}
.tabs.sm span{font-size:13px;font-weight:600;color:var(--mute);padding:6px 12px;border-radius:8px}
.tabs.sm .on{background:var(--ink);color:#fff}
.al-list{flex:1;padding:0 24px;display:flex;flex-direction:column}
.al{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line2)}
.al:last-child{border:0}
.al-ic{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}
.al-ic.red{background:#FEECEB;color:#D92D20}
.al-ic.amber{background:#FEF4E2;color:#DC6803}
.al-ic.violet{background:#F1ECFE;color:#7C4DFF}
.al-ic.green{background:#E7F8EF;color:#079455}
.al-ic.slate{background:#EEF1F5;color:#475467}
.al-b{flex:1;min-width:0}
.al-t{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.al-t b{font-size:14px;font-weight:600}
.al-t time{font-size:11.5px;color:var(--mute);white-space:nowrap}
.al p{font-size:12.5px;color:var(--ink2);margin-top:2px;line-height:1.45}
.al-act{display:flex;gap:6px;margin-top:8px}
.mini{height:28px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:600;border:1px solid var(--line);background:#fff}
.mini.pri{background:var(--ink);border-color:var(--ink);color:#fff}
.card-link{display:flex;align-items:center;justify-content:center;gap:6px;height:52px;border-top:1px solid var(--line);font-size:13px;font-weight:600;color:var(--accent)}
.card-link.inline{height:auto;border:0;padding-top:4px}

/* ---------- table */
.tablecard{overflow:hidden}
.row-actions{display:flex;gap:12px;align-items:center}
.tabs.line{gap:28px;padding:0 24px;border-bottom:1px solid var(--line)}
.tabs.line span{padding:12px 0 14px;font-size:14px;font-weight:600;color:var(--mute);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs.line span b{font-weight:600;font-size:12px;margin-left:6px;padding:2px 8px;border-radius:999px;background:#F1F3F7;color:var(--ink2)}
.tabs.line .on{color:var(--ink);border-color:var(--accent)}
.tabs.line .on b{background:var(--tint);color:var(--accent)}
table{width:100%;border-collapse:collapse;table-layout:fixed}
th{text-align:left;font-size:12px;font-weight:600;color:var(--mute);text-transform:uppercase;letter-spacing:.05em;padding:12px 12px;background:#FAFBFD;border-bottom:1px solid var(--line)}
td{padding:0 12px;height:64px;border-bottom:1px solid var(--line2);vertical-align:middle;font-size:14px;color:var(--ink2)}
th:first-child,td:first-child{padding-left:24px}
tr.sel td{background:#F6F9FF}
td b{color:var(--ink)}
td small{display:block;font-size:12px;color:var(--mute);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
td b.mono{font-size:13.5px}
.cb{width:18px;height:18px;border-radius:5px;border:1.5px solid #CDD3DE;display:flex;align-items:center;justify-content:center;background:#fff}
.cb.on{background:var(--accent);border-color:var(--accent);color:#fff}
.route{display:flex;align-items:center;gap:6px;white-space:nowrap}
.route b{font-weight:600}
.route .arr{color:#A3ABB9;margin:0 2px}
.cc{font-size:10px;font-weight:700;color:var(--ink2);background:#F1F3F7;border:1px solid var(--line);border-radius:4px;padding:1px 4px;letter-spacing:.02em}
.carrier{display:block;color:var(--ink);font-weight:500;white-space:nowrap}
.eta{display:block;font-weight:600}
.eta-d{display:inline-block;margin-top:3px;font-size:11.5px;font-weight:700}
.eta-d.bad{color:#D92D20}.eta-d.warn{color:#DC6803}.eta-d.good{color:#079455}
.prog{display:flex;align-items:center;gap:10px}
.prog span{font-size:12px;font-weight:600;color:var(--ink2);width:34px}
.pbar{flex:1;height:6px;border-radius:6px;background:#EDF1F7;overflow:hidden}
.pbar i{display:block;height:100%;border-radius:6px;background:var(--accent)}
.pbar.red i{background:var(--red)}.pbar.amber i{background:var(--amber)}.pbar.green i{background:var(--green)}
.pbar.violet i{background:var(--violet)}.pbar.slate i{background:#98A2B3}
td.act{color:#A3ABB9;padding-right:24px}
.tfoot{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;font-size:13px;color:var(--mute)}
.tfoot b{color:var(--ink)}
.pager{display:flex;gap:6px}
.pager span{min-width:34px;height:34px;border-radius:9px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-weight:600;color:var(--ink2);padding:0 8px}
.pager .on{background:var(--ink);border-color:var(--ink);color:#fff}
.pager .dots{border:0}

/* ---------- weekly */
.weekly{padding-bottom:24px}
.wk-sum{display:flex;align-items:flex-end;gap:40px;padding:20px 24px 8px}
.wk-sum span{display:block;font-size:12px;color:var(--mute);font-weight:500}
.wk-sum b{font-family:Manrope;font-size:26px;font-weight:800;letter-spacing:-.03em}
.wk-leg{margin-left:auto;display:flex;gap:16px;padding-bottom:6px}
.wk-leg span{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);font-weight:500}
.wk-leg i{width:10px;height:10px;border-radius:3px}
.wk-plot{position:relative;padding:8px 24px 0}

.wk{padding:10px 4px 0 0}
.wk-chart{position:relative;height:250px;margin-left:46px}
.gl{position:absolute;left:0;right:0;border-top:1px solid #EDF0F5;height:0}
.gl.base{border-color:#CBD2DE}
.gl span{position:absolute;right:100%;margin-right:12px;top:-8px;font-size:11.5px;font-weight:500;color:#8A93A3;line-height:16px}
.wk-bars{position:absolute;inset:0;display:flex;align-items:flex-end}
.wk-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;min-width:0}
.wk-col i{display:block;width:26px;flex:none}
.wk-col .bl{background:#F79009;border-radius:4px 4px 0 0;margin-bottom:2px;opacity:.9}
.wk-col .bo{background:#2F6BFF;opacity:.9}
.wk-col.last i{opacity:1}
.wk-x{display:flex;margin-left:46px;padding-top:13px;height:32px}
.wk-x span{flex:1;text-align:center;font-size:11.5px;font-weight:500;color:#8A93A3;white-space:nowrap;min-width:0}
.wk-x .axb{color:#0E1726;font-weight:700}
.tip{position:absolute;width:170px;padding:12px 14px;border-radius:12px;background:#0E1726;color:#fff;font-size:12px;box-shadow:0 12px 28px -10px rgba(14,23,38,.5)}
.tip b{display:block;font-weight:600;margin-bottom:8px;color:#fff}
.tip div{display:flex;align-items:center;gap:8px;color:#AEB8CB;margin-top:4px}
.tip div i{width:8px;height:8px;border-radius:2px}
.tip div span{margin-left:auto;color:#fff;font-weight:600}
.tip .tip-f{border-top:1px solid rgba(255,255,255,.12);margin-top:8px;padding-top:8px}

/* ---------- fleet */
.fleet{display:flex;flex-direction:column}
.gauge{position:relative;display:flex;justify-content:center;padding:20px 0 0}
.g-v{position:absolute;left:0;right:0;bottom:0;text-align:center}
.g-v b{display:block;font-family:Manrope;font-weight:800;font-size:40px;letter-spacing:-.04em;line-height:1}
.g-v span{display:inline-flex;align-items:center;gap:3px;margin-top:6px;font-size:12px;font-weight:700;color:#067647}
.fl-bar{display:flex;gap:2px;height:10px;margin:24px 24px 16px}
.fl-bar i{border-radius:3px}
.fl-bar i:first-child{border-radius:5px 3px 3px 5px}
.fl-bar i:last-child{border-radius:3px 5px 5px 3px}
.fl-list{padding:0 24px;display:flex;flex-direction:column;gap:10px}
.fl-r{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink2)}
.fl-r i{width:10px;height:10px;border-radius:3px}
.fl-r span{flex:1}
.fl-r b{color:var(--ink);font-weight:700}
.fl-r em{font-style:normal;color:var(--mute);width:36px;text-align:right;font-size:12px}
.fl-foot{margin:auto 24px 24px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:12px;padding:12px 0}
.fl-foot div{text-align:center;border-right:1px solid var(--line)}
.fl-foot div:last-child{border:0}
.fl-foot span{display:block;font-size:11.5px;color:var(--mute)}
.fl-foot b{font-family:Manrope;font-size:16px;font-weight:800}

/* ---------- timeline */
.tl-leg{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end;max-width:560px;padding-top:4px}
.tl-leg span{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);font-weight:500}
.k{width:14px;height:10px;border-radius:3px}
.k.drive{background:var(--accent)}.k.load{background:var(--teal)}.k.border{background:var(--violet)}
.k.rest{background:repeating-linear-gradient(135deg,#D5DBE5 0 3px,#EEF1F5 3px 6px)}
.k.delay{background:var(--red)}
.tl{padding:0 24px 24px}
.tl-hours{display:flex;height:32px;align-items:center;border-bottom:1px solid var(--line)}
.tl-sp{width:236px;flex:none;font-size:12px;color:var(--mute)}
.tl-hh{flex:1;position:relative;height:100%}
.tl-hh span{position:absolute;top:8px;transform:translateX(-50%);font-size:11.5px;font-weight:500;color:var(--mute)}
.tl-hh span:first-child{transform:none}
.tl-hh span:last-child{transform:translateX(-100%)}
.tl-body{position:relative}
.tl-grid{position:absolute;left:236px;right:0;top:0;bottom:0;pointer-events:none}
.tl-grid i{position:absolute;top:0;bottom:0;width:1px;background:var(--line2)}
.now{position:absolute;top:-4px;bottom:0;width:2px;background:var(--ink);z-index:3}
.now span{position:absolute;bottom:-26px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap}
.now::before{content:"";position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--ink)}
.tl-row{display:flex;align-items:center;height:56px;border-bottom:1px solid var(--line2)}
.tl-row:last-child{border:0}
.tl-who{width:236px;flex:none;display:flex;align-items:center;gap:12px}
.tl-who b{display:block;font-size:13.5px;font-weight:600}
.tl-who span{font-size:12px;color:var(--mute);white-space:nowrap}
.tl-who em{font-style:normal;font-size:11.5px;color:var(--ink2)}
.tl-track{flex:1;position:relative;height:32px}
.seg-b{position:absolute;top:0;height:32px;border-radius:8px;display:flex;align-items:center;padding:0 10px;overflow:hidden;z-index:1}
.seg-b span{font-size:12px;font-weight:600;color:#fff;white-space:nowrap}
.seg-b.drive{background:var(--accent)}
.seg-b.load{background:var(--teal)}
.seg-b.border{background:var(--violet)}
.seg-b.delay{background:var(--red)}
.seg-b.rest{background:repeating-linear-gradient(135deg,#D5DBE5 0 4px,#EEF1F5 4px 8px)}
.seg-b.rest span{color:var(--ink2)}

.seg-b.fut{box-shadow:inset 0 0 0 1.5px rgba(14,23,38,.06)}
.seg-b.fut.drive{background:#DCE6FF}.seg-b.fut.drive span{color:#1F55E0}
.seg-b.fut.load{background:#CFF0EC}.seg-b.fut.load span{color:#0B7470}
.seg-b.fut.border{background:#E9E1FE}.seg-b.fut.border span{color:#6D3FE0}
.seg-b.fut.rest{opacity:.75}

/* ---------- routes */
.routes{padding-bottom:12px}
.rt{margin-top:16px}
.rt th{background:none;border-top:1px solid var(--line)}
.rt td{height:58px}
.rt th:last-child,.rt td:last-child{padding-right:24px}
.r{text-align:right}
td.r{white-space:nowrap}
.rk{font-family:"JetBrains Mono";font-size:12px;color:#A3ABB9}
.vol{display:flex;align-items:center;gap:12px}
.vbar{flex:1;height:8px;border-radius:4px;background:var(--tint);overflow:hidden}
.vbar i{display:block;height:100%;background:var(--accent);border-radius:4px}
.vol b{width:30px;font-weight:700}
.otp{font-weight:700;font-size:13px}
.otp.good{color:#079455}.otp.warn{color:#DC6803}.otp.bad{color:#D92D20}

/* ---------- borders */
.bq-list{padding:12px 24px 24px;display:flex;flex-direction:column;gap:16px}
.bq-t{display:flex;align-items:center;gap:8px}
.bq-t b{font-size:13.5px;font-weight:600;white-space:nowrap}
.bq-v{margin-left:auto;font-family:Manrope;font-weight:800;font-size:15px}
.bq-bar{height:6px;border-radius:6px;background:#EEF1F5;margin:8px 0 6px;overflow:hidden}
.bq-bar i{display:block;height:100%;border-radius:6px}
.bq-bar .red{background:var(--red)}.bq-bar .amber{background:var(--amber)}.bq-bar .green{background:var(--green)}
.bq-f{display:flex;justify-content:space-between;font-size:11.5px}
.lvl{display:flex;align-items:center;gap:6px;font-weight:600}
.lvl i{width:6px;height:6px;border-radius:50%;background:currentColor}
.lvl.red{color:#D92D20}.lvl.amber{color:#DC6803}.lvl.green{color:#079455}
.tr{color:var(--mute)}

/* ---------- footer */
.foot{display:flex;justify-content:space-between;align-items:center;padding:8px 4px 0;font-size:12.5px;color:var(--mute)}
.sysok{display:flex;align-items:center;gap:8px;color:#067647;font-weight:600}
.sysok i{width:8px;height:8px;border-radius:50%;background:var(--green)}

.vchip{position:absolute;right:calc(50% - 13px);white-space:nowrap;height:28px;display:flex;align-items:center;gap:4px;padding:0 10px;border-radius:8px;background:#0E1726;color:#AEB8CB;font-size:12px}
.vchip b{color:#fff;font-weight:700}
.av{font-style:normal}
.nav > span:not(.nbadge){flex:1;white-space:nowrap}
.nav span.nbadge{flex:none}
.date,.tb-user,.crumbs{white-space:nowrap}
.search{min-width:0}
.search span{overflow:hidden;text-overflow:ellipsis}
td{white-space:nowrap}
td small{max-width:100%}
.rt th{white-space:nowrap}
.kpi-mid{gap:12px}
.kpi-v{font-size:36px}
.tl-sp,.tl-who{width:262px}
.tl-grid{left:262px}
.fl-bar{margin:20px 24px 14px}
.fl-list{gap:9px}
.gauge{padding-top:12px}
.fl-foot{margin:auto 24px 24px}
.fleet .fl-list{margin-bottom:20px}
.routes{padding-bottom:0}

.slabel.sp{margin-top:28px}
.wx{display:flex;flex-direction:column;gap:14px;padding:4px 12px 0}
.wx-r{display:flex;gap:12px;align-items:center}
.wx-r b{display:block;color:#E6EBF5;font-size:13px;font-weight:600}
.wx-r span{font-size:12px;color:#6E7A92}
.wx-i{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.wx-r .wx-i.snow{background:rgba(54,198,255,.12);color:#5BD0FF}
.wx-r .wx-i.fog{background:rgba(255,255,255,.07);color:#AEB8CB}
.wx-r .wx-i.wind{background:rgba(247,144,9,.14);color:#FDB022}
.log{position:relative;display:flex;flex-direction:column;gap:14px;padding:6px 12px 0 30px}
.log::before{content:"";position:absolute;left:16px;top:12px;bottom:10px;width:1px;background:rgba(255,255,255,.1)}
.log > div{position:relative}
.log > div::before{content:"";position:absolute;left:-18px;top:4px;width:7px;height:7px;border-radius:50%;background:#2B3956;border:2px solid var(--side)}
.log > div:first-child::before{background:var(--accent)}
.log time{font-size:11px;color:#5E6A82;font-weight:600}
.log p{font-size:12.5px;color:#8F9AB0;line-height:1.45;margin-top:1px}
.log b{color:#DCE3EF;font-weight:600}
.leaders{position:absolute;left:0;top:0;pointer-events:none}
.callout{width:224px}

.callout{width:212px}
.pins{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.pin{padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}
.pin-t{display:flex;justify-content:space-between;align-items:center}
.pin-t b{color:#E6EBF5;font-size:12.5px}
.pin > span{display:block;font-size:12px;color:#7D89A1;margin:3px 0 10px}
.pdot{width:8px;height:8px;border-radius:50%}
.pdot.red{background:var(--red);box-shadow:0 0 0 4px rgba(240,68,56,.2)}
.pdot.amber{background:var(--amber);box-shadow:0 0 0 4px rgba(247,144,9,.2)}
.pdot.blue{background:var(--accent);box-shadow:0 0 0 4px rgba(47,107,255,.25)}
.pbar.dk{height:4px;background:rgba(255,255,255,.08)}
.fuel{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 4px}
.fuel div{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:8px}
.fuel span{font-size:11px;font-weight:700;color:#7D89A1}
.fuel b{font-family:Manrope;font-weight:800;color:#fff;font-size:17px;text-align:right}
.fuel em{grid-column:1/3;font-style:normal;font-size:11px;font-weight:600;text-align:right}
.fuel em.dn{color:#32D583}.fuel em.up{color:#FDA29B}
.co-f{white-space:nowrap}

/* ================= responsive ================= */
.tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.ship{min-width:1100px}
.rt{min-width:760px}
.tl{min-width:980px}
.burger,.m-logo,.m-search,.ds{display:none}
.m-logo{align-items:center;gap:10px}
.m-logo svg{width:32px;height:32px}
.m-logo b{font-family:Manrope;font-weight:800;font-size:19px;letter-spacing:-.03em}

@media (max-width:1439px){
  .kpi-v{font-size:32px}
  .kpi .spark{width:76px;height:auto}
  .kpi-mid{gap:8px}
}
@media (max-width:1399px){
  .split-map{grid-template-columns:minmax(0,1fr)}
  .alerts{height:auto}
  .al-list{display:grid;grid-template-columns:1fr 1fr;column-gap:32px}
  .al:nth-child(-n+2){border-bottom:1px solid var(--line2)}
  .al:nth-child(n+3){border-bottom:0}
}
@media (max-width:1359px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi-v{font-size:36px}
  .kpi .spark{width:120px}
}
@media (max-width:1279px){
  .split{grid-template-columns:minmax(0,1fr)}
  .c-cb,.c-cl{display:none}
  table.ship{min-width:860px}
  .fleet{display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-areas:"h h" "g b" "g l" "g f";column-gap:24px}
  .fleet .card-h{grid-area:h}
  .fleet .gauge{grid-area:g;align-self:center;padding:16px 0 24px}
  .fleet .fl-bar{grid-area:b;margin:24px 24px 14px 0}
  .fleet .fl-list{grid-area:l;padding:0 24px 0 0;margin-bottom:0}
  .fleet .fl-foot{grid-area:f;margin:16px 24px 24px 0}
  .bq-list{display:grid;grid-template-columns:1fr 1fr;column-gap:40px;row-gap:20px}
}
@media (max-width:1023px){
  .sidebar{width:76px;padding:20px 12px;align-items:center}
  .brand{padding:0 0 20px}
  .brand > div,.ws,.slabel,.views,.team,.sysbox,.pins,.wx,.log,.fuel,.handover,.me > div,.me > .ic,.nbadge{display:none}
  nav{width:100%;align-items:center}
  .nav{width:48px;height:44px;padding:0;justify-content:center}
  .nav > span:not(.nbadge){display:none}
  .nav.active::before{left:-12px}
  .me{padding:12px 0 0;justify-content:center;width:100%}
  .topbar{padding:0 24px;gap:16px}
  .crumbs{display:none}
  .search{max-width:none}
  .tb-user > div,.tb-user > .ic{display:none}
  .tb-user{padding-left:8px}
  .content{padding:24px}
  .row-actions{flex-wrap:wrap}
  .card-h.big{flex-wrap:wrap}
  .tl-leg{justify-content:flex-start;max-width:none}
}
@media (max-width:820px){
  .stage .callout,.stage .leaders{display:none}
}
@media (max-width:760px){
  .date .dl{display:none}
  .date .ds{display:inline}
  .msgbtn{display:none}
}
@media (max-width:640px){
  .sidebar{display:none}
  .topbar{height:60px;padding:0 16px;gap:10px;position:sticky;top:0;z-index:20}
  .burger{display:flex;border:0;width:36px}
  .m-logo{display:flex}
  .search,.date{display:none}
  .m-search{display:flex}
  .tb-right{gap:8px}
  .iconbtn{width:38px;height:38px;border-radius:10px}
  .tb-user{border:0;padding:0;margin:0}
  .tb-user .av{width:34px !important;height:34px !important}
  .content{padding:16px;gap:16px}
  .pagehead{flex-direction:column;align-items:stretch;gap:16px}
  .eyebrow{font-size:12px}
  h1{font-size:28px}
  .ph-actions{gap:8px}
  .ph-actions .btn.ghost{width:44px;padding:0;justify-content:center}
  .ph-actions .bl{display:none}
  .ph-actions .btn.primary{flex:1;justify-content:center}
  .kpis{gap:12px}
  .kpi{padding:16px}
  .kpi-top{gap:8px;align-items:flex-start}
  .kpi-top .mute{display:none}
  .chip{width:30px;height:30px;border-radius:8px}
  .chip .ic{width:16px;height:16px}
  .kpi-l{font-size:13px;line-height:1.3}
  .kpi-mid{flex-direction:column;align-items:flex-start;height:auto;margin:12px 0 10px;gap:8px}
  .kpi-v{font-size:28px}
  .kpi-v small{font-size:18px}
  .kpi .spark{width:100%;max-width:120px;height:auto}
  .kpi-b{flex-wrap:wrap;gap:4px 8px;font-size:12px}
  .card{border-radius:14px}
  .card-h{padding:16px 16px 0}
  .card-h.big{padding:16px;flex-direction:column;align-items:stretch}
  .card-h h3{font-size:17px}
  .mapcard{height:460px}
  .stage{top:56%;transform:scale(.5)}
  .lg-hub{display:none !important}
  .map-head{padding:16px 16px 40px;flex-direction:column;gap:12px}
  .map-head h2{font-size:18px}
  .seg.dark{font-size:12px}
  .seg.dark span{padding:6px 10px}
  .map-chips,.zoom{display:none}
  .legend{left:12px;right:12px;bottom:12px;flex-wrap:wrap;gap:6px 14px;padding:10px 12px;font-size:11.5px}
  .tabs{padding:12px 16px 4px}
  .al-list{display:flex;padding:0 16px}
  .al:nth-child(-n+3){border-bottom:1px solid var(--line2)}
  .row-actions{gap:8px}
  .search.sm{display:flex;width:100%;flex:1 1 100%}
  .tabs.line{padding:0 16px;gap:20px;overflow-x:auto;scrollbar-width:none}
  .tabs.line span{white-space:nowrap}
  th:first-child,td:first-child{padding-left:16px}
  .tfoot{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}
  .wk-sum{flex-wrap:wrap;gap:12px 24px;padding:16px 16px 4px}
  .wk-sum b{font-size:20px}
  .wk-leg{margin-left:0;width:100%;padding:0}
  .wk-plot{padding:8px 8px 0}
  .weekly{padding-bottom:16px}
  .wk-chart{height:200px;margin-left:38px}
  .wk-x{margin-left:38px}
  .gl span{font-size:11px;margin-right:8px}
  .wk-col i{width:12px}
  .wk-x .axo{visibility:hidden}
  .vchip{right:0;font-size:11px;height:24px;padding:0 8px}
  .fleet{display:flex;flex-direction:column}
  .fleet .gauge{padding:12px 0 0}
  .fleet .fl-bar{margin:20px 16px 14px}
  .fleet .fl-list{padding:0 16px;margin-bottom:20px}
  .fleet .fl-foot{margin:0 16px 16px}
  .tl{padding:0 16px 16px}
  .tl-leg{gap:8px 14px}
  .rt th:last-child,.rt td:last-child{padding-right:16px}
  .bq-list{display:flex;padding:12px 16px 16px}
  .foot{flex-direction:column;gap:6px;align-items:flex-start;padding:0 4px 8px}
}

/* pass 2 */
.rtx{text-decoration:none}
.tl-who,.tl-sp{position:sticky;left:0;z-index:5;background:#fff}
.tl-who{align-self:stretch}
@media (max-width:1279px){
  .crumbs{display:none}
  .search{min-width:200px}
  .tl{min-width:820px}
  .card-h.big{flex-wrap:wrap}
  .tl-leg{justify-content:flex-start;max-width:none}
}
@media (max-width:1023px){
  .tabs.line{overflow-x:auto;scrollbar-width:none}
  .tabs.line span{white-space:nowrap;flex:none}
  .tscroll{
    background:
      linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) left center/40px 100% no-repeat local,
      linear-gradient(270deg,#fff 30%,rgba(255,255,255,0)) right center/40px 100% no-repeat local,
      linear-gradient(90deg,rgba(14,23,38,.12),rgba(14,23,38,0)) left center/14px 100% no-repeat scroll,
      linear-gradient(270deg,rgba(14,23,38,.12),rgba(14,23,38,0)) right center/14px 100% no-repeat scroll;
  }
}
@media (max-width:640px){
  .search{min-width:0}
  .tl{min-width:760px}
  .tl-sp,.tl-who{width:150px}
  .tl-grid{left:150px}
  .tl-who{gap:8px}
  .tl-who .av{width:28px !important;height:28px !important;font-size:11px !important}
  .rtx{display:none}
  .wk-x span:last-child{text-align:right}
  .kpi .spark{max-width:104px}
}
/* pass 3 */
.timeline,.routes{overflow:hidden}
@media (max-width:640px){
  .tl{min-width:900px}
  .seg-b{padding:0 8px}
  .seg-b span{font-size:11px}
  .mlab{font-size:17px;stroke-width:5px}
  .mlab.hub{font-size:20px}
}
