/* Harbourline Freight demo styles */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/demos/harbourline-freight/fonts/manrope-latin.woff2) format('woff2'); }
:root {
  --bg: #F6F4EF; --surface: #fff; --soft: #FBFAF7; --ink: #14161F; --ink2: #3A3F52; --muted: #6B7085; --faint: #9AA0AE;
  --line: #E7E3DA; --line2: #F0EDE6; --track: #EFEBE3;
  --or: #FF5A1F; --or-d: #E2460C; --or-s: #FFEBE2; --or-t: #C2410C;
  --st: #4A6FA5; --st-d: #2F4F80; --st-s: #E5ECF6;
  --ok: #13A06B; --ok-s: #DDF3EA; --ok-t: #0C7A51; --warn: #B76E00; --warn-s: #FFF1D6; --bad: #E5383B; --bad-s: #FDE4E4; --bad-t: #B42326;
  --r: 22px; --r-sm: 14px; --r-xs: 10px;
  --sh: 0 1px 2px rgba(20,22,31,.04), 0 10px 28px -16px rgba(20,22,31,.16);
  --sh-lg: 0 24px 60px -18px rgba(20,22,31,.35), 0 2px 6px rgba(20,22,31,.06);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --bar: 72px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--st-d); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 .6em; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 400; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 14px; height: 14px; }
.ic.big { width: 40px; height: 40px; stroke-width: 1.6; }
.ic.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .strong { font-weight: 700; }
.row { display: flex; align-items: center; } .gap { gap: 10px; flex-wrap: wrap; } .between { justify-content: space-between; } .center { text-align: center; justify-content: center; } .grow { flex: 1; } .pad { padding: 16px; } .pad-t { padding-top: 14px; }
.noscript { padding: 40px; text-align: center; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* banner */
.banner { display: flex; align-items: center; gap: 14px; justify-content: center; background: var(--ink); color: #E9E7E1; font-size: 13px; padding: 7px 48px 7px 16px; position: relative; flex-wrap: wrap; row-gap: 2px; }
.banner[hidden] { display: none; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(255,90,31,.25); }
.banner a { color: #FFB495; font-weight: 700; }
.banner .banner-home { color: #C9CCD8; font-weight: 600; }
.banner-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #C9CCD8; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.banner-x:hover { background: rgba(255,255,255,.08); color: #fff; }

/* app bar */
.appbar { position: sticky; top: 0; z-index: 60; height: var(--bar); display: flex; align-items: center; gap: 18px; padding: 0 max(28px, calc((100vw - 1440px) / 2 + 28px)); background: rgba(246,244,239,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(20,22,31,.05); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-name small { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--or-t); margin-top: 4px; font-weight: 800; }
.topnav { display: flex; gap: 2px; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--sh); min-width: 0; }
.nv { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--ink2); font-weight: 650; font-size: 14px; white-space: nowrap; border: 0; background: none; position: relative; }
.nv:hover { background: #F3F0EA; text-decoration: none; color: var(--ink); }
.nv.on { background: var(--ink); color: #fff; }
.topnav .nv .ic { display: none; }
.topnav .more-btn .ic { display: block; width: 16px; }
.topnav .more-btn span { display: none; }
.nb { font-style: normal; background: var(--or); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; }
.search-btn:hover { border-color: #D6D0C3; color: var(--ink); }
kbd { font: 700 11px var(--font); background: var(--track); border-radius: 7px; padding: 3px 7px; color: var(--ink2); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; position: relative; color: var(--ink); flex: none; }
.icon-btn:hover { border-color: #D6D0C3; }
.icon-btn.sm { width: 30px; height: 30px; border: 0; background: transparent; }
.icon-btn.sm:hover { background: var(--track); }
.badge { position: absolute; top: -4px; right: -4px; background: var(--or); color: #fff; font: 800 11px var(--font); min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); font-style: normal; }
.role-btn { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.role-btn:hover { border-color: #D6D0C3; }
.role-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.role-txt b { font-size: 13.5px; } .role-txt small { font-size: 11.5px; color: var(--or-t); font-weight: 700; }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; flex: none; letter-spacing: .02em; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }

/* main */
.main { max-width: 1440px; margin: 0 auto; padding: 26px 28px 90px; outline: none; min-height: 60vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; max-width: 680px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); border: 1px solid rgba(20,22,31,.035); min-width: 0; }
.card-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h h2, .card-t { font-size: 17px; font-weight: 800; }
.card-t { margin-bottom: 14px; }
.card-h .hint { color: var(--muted); font-size: 12.5px; }
.card-h .hint.link { margin-left: auto; color: var(--st-d); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }

/* buttons and controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #CFC8BA; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--or); border-color: var(--or); color: #fff; box-shadow: 0 6px 16px -8px rgba(255,90,31,.8); }
.btn.primary:hover { background: var(--or-d); border-color: var(--or-d); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-soft { background: var(--bad-s); border-color: transparent; color: var(--bad-t); }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.icon-only { width: 42px; padding: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--st-d); font-weight: 700; font-size: 13.5px; display: inline-flex; gap: 5px; align-items: center; }
.link-btn:hover { text-decoration: underline; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--sh); gap: 2px; }
.seg button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--ink); color: #fff; }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=date], input[type=time], input:not([type]), select, textarea { height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 12px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7085' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(255,90,31,.14); }
[aria-invalid="true"] { border-color: var(--bad) !important; background: #FFF9F9; }
input.up { text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > span, .field > legend, .field-l { font-size: 13px; font-weight: 700; color: var(--ink2); padding: 0; }
.field-inline select { height: 42px; border-radius: 999px; min-width: 150px; }
.ferr { color: var(--bad-t); font-size: 12.5px; font-weight: 600; }
.form-err { color: var(--bad-t); font-size: 13.5px; font-weight: 700; min-height: 1px; margin: 0; }
.form-err:empty { display: none; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.check input, .radio-list input { width: 18px; height: 18px; accent-color: var(--or); }
.radio-list { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.radio-list legend { font-weight: 700; margin-bottom: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.radio-list label:has(input:checked) { border-color: var(--or); background: var(--or-s); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #D9D4C9; border-radius: 13px; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--or); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--or); outline-offset: 2px; }

/* status pills and tags */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; white-space: nowrap; background: #F1EFEA; color: var(--ink2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; }
.pill[data-st=delivered] { background: var(--ok-s); color: var(--ok-t); }
.pill[data-st=out] { background: var(--or-s); color: var(--or-t); }
.pill[data-st=failed] { background: var(--bad-s); color: var(--bad-t); }
.pill[data-st=collected], .pill[data-st=quoted] { background: var(--st-s); color: var(--st-d); }
.pill[data-st=depot] { background: #ECE8FF; color: #5B43D6; }
.pill[data-st=booked] { background: #E8E9EE; color: var(--ink); }
.svc { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: #F1EFEA; color: var(--ink2); white-space: nowrap; }
.svc-am { background: var(--or-s); color: var(--or-t); } .svc-ded { background: var(--ink); color: #fff; } .svc-eco { background: var(--st-s); color: var(--st-d); }
.svc.bad { background: var(--bad-s); color: var(--bad-t); }
.due { display: inline-flex; flex-direction: column; font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.due small { font-size: 11.5px; font-weight: 700; }
.due.ok small { color: var(--muted); } .due.warn small { color: var(--warn); } .due.bad small { color: var(--bad-t); }
span.due.warn:not(:has(small)) { color: var(--warn); } span.due.bad:not(:has(small)) { color: var(--bad-t); } span.due.ok:not(:has(small)) { color: var(--ok-t); }
.lic { display: inline-block; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--ink); color: #fff; }
.plate { display: inline-block; font: 800 12.5px/1 var(--mono); background: #F7D117; color: #111; padding: 5px 8px; border-radius: 5px; letter-spacing: .04em; border: 1px solid rgba(0,0,0,.15); white-space: nowrap; }
.plate.big { font-size: 16px; padding: 7px 11px; }
.ist { font-size: 12.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ist-paid { background: var(--ok-s); color: var(--ok-t); } .ist-sent { background: var(--st-s); color: var(--st-d); } .ist-overdue { background: var(--bad-s); color: var(--bad-t); }
.sync { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.sync-ok { color: var(--ok-t); } .sync-pend { color: var(--warn); } .sync-bad { color: var(--bad-t); }
.mg { font-weight: 750; color: var(--ok-t); } .mg.lo { color: var(--warn); }
.count { font-style: normal; background: var(--track); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: 20px; padding: 16px 18px 15px; box-shadow: var(--sh); position: relative; overflow: hidden; min-width: 0; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi-top .ic { color: var(--faint); }
.kpi-v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi.accent { background: var(--or); color: #fff; }
.kpi.accent .kpi-top, .kpi.accent .kpi-sub, .kpi.accent .kpi-top .ic { color: rgba(255,255,255,.85); }
.kpi.accent .delta { background: rgba(255,255,255,.2); color: #fff; }
.kpi.good::before, .kpi.warn::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ok); }
.kpi.warn::before { background: var(--or); }
.delta { display: inline-block; font-weight: 800; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; margin-right: 3px; }
.delta.up { background: var(--ok-s); color: var(--ok-t); } .delta.down { background: var(--bad-s); color: var(--bad-t); }

/* dashboard */
.today { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 0; padding: 0; margin-bottom: 18px; overflow: hidden; }
.card.ink { background: var(--ink); color: #fff; border: 0; }
.today-main { padding: 22px 24px; }
.today .eyebrow { color: #9DA3B6; }
.today-big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.today-big b { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.today-big span { color: #C9CCD8; font-weight: 600; }
.prog { height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--or), #FF8A5B); border-radius: 99px; }
.today-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: #C9CCD8; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.g { background: #3DD598; } .dot.o { background: var(--or); } .dot.r { background: #FF6B6E; }
.today-cell { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.08); color: #fff; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.today-cell:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.today-cell span { color: #9DA3B6; font-size: 13px; font-weight: 700; }
.today-cell b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.today-cell b small { font-size: 18px; color: #7E8499; }
.today-cell em { font-style: normal; color: #FFB495; font-size: 12.5px; font-weight: 700; margin-top: auto; }
.grid.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.chart { min-height: 120px; position: relative; }
.chart.center { display: flex; justify-content: center; }
.chart svg { display: block; max-width: 100%; overflow: visible; }
.chart svg text, .chart-svg text { font-family: var(--font); }
.gl line { stroke: var(--line2); stroke-width: 1; }
.gl text, .axis, .axis text { fill: var(--faint); font-size: 11px; font-weight: 600; }
.hover-band { fill: rgba(20,22,31,.045); }
.hover-line { stroke: var(--ink); stroke-dasharray: 3 3; stroke-width: 1; }
.hover-dot { fill: #fff; stroke-width: 3; }
.limit-line { stroke: var(--bad); stroke-dasharray: 4 4; stroke-width: 1.5; }
.limit-t { fill: var(--bad-t); font-size: 11px; font-weight: 700; }
.chart-empty { color: var(--muted); padding: 30px 0; text-align: center; font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { font-variant-numeric: tabular-nums; } .legend em { font-style: normal; color: var(--muted); font-size: 12px; min-width: 34px; text-align: right; }
.legend.inline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.legend.inline li { display: flex; gap: 6px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-wrap .legend { flex: 1; min-width: 0; }
.donut-wrap .legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-big { font-size: 26px; font-weight: 800; fill: var(--ink); letter-spacing: -.03em; }
.donut-small { font-size: 11.5px; font-weight: 700; fill: var(--muted); }
.donut-svg path { transition: d .15s; cursor: pointer; }
.gauge-big { font-size: 34px; font-weight: 800; fill: var(--ink); letter-spacing: -.03em; }
.gauge-sub { font-size: 12px; fill: var(--muted); font-weight: 700; }
.gauge-target { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.gauge-tl { font-size: 11px; font-weight: 800; fill: var(--ink2); }
.gauge-foot { display: flex; justify-content: space-around; font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.hbars { display: grid; gap: 11px; }
.hb { cursor: default; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink2); }
.hb-v { font-variant-numeric: tabular-nums; }
.hb-track { height: 9px; background: var(--track); border-radius: 99px; overflow: hidden; }
.hb-bar { height: 100%; border-radius: 99px; }
.bullets { display: grid; gap: 10px; }
.bl { display: grid; grid-template-columns: minmax(90px, 128px) 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bl-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink2); }
.bl-track { position: relative; height: 12px; background: var(--track); border-radius: 99px; }
.bl-warn { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(-45deg, #FFE4D6 0 4px, #FFF1EA 4px 8px); border-radius: 0 99px 99px 0; }
.bl-bar { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 99px; background: var(--st); }
.bl-bar[data-lvl=mid] { background: var(--or); } .bl-bar[data-lvl=hi] { background: var(--bad); }
.bl-limit { position: absolute; right: -1px; top: -3px; bottom: -3px; width: 3px; border-radius: 2px; background: var(--ink); }
.bl-v { text-align: right; font-variant-numeric: tabular-nums; }
.cal-key { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-key i { width: 70px; height: 9px; border-radius: 99px; background: linear-gradient(90deg, #FFE9DE, #E8430E); }

/* tooltip */
.tip { position: fixed; z-index: 500; pointer-events: none; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; min-width: 150px; max-width: 280px; box-shadow: var(--sh-lg); opacity: 0; transition: opacity .12s; left: -999px; top: -999px; }
.tip.on { opacity: 1; }
.tip-h { font-weight: 800; margin-bottom: 6px; }
.tip-row { display: flex; align-items: center; gap: 7px; margin: 2px 0; }
.tip-row i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.tip-row span { color: #C9CCD8; flex: 1; } .tip-row b { font-variant-numeric: tabular-nums; }
.tip-f { color: #9DA3B6; margin-top: 6px; font-size: 12px; } .tip-f b { color: #fff; }

/* lists */
.list-card { padding: 18px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.search { position: relative; flex: 1 1 280px; display: block; min-width: 0; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 40px; border-radius: 999px; height: 42px; background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips.sm { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 12px; }
.chip:hover { border-color: #CFC8BA; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on em { color: #B9BDCB; }
.bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--or-s); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; }
.bulk select { height: 34px; min-width: 170px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { border-collapse: collapse; width: 100%; }
.list th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.list th button:hover { color: var(--ink); }
.list td { padding: 11px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-size: 14px; }
.list td small, .mini td small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.list tbody tr { cursor: pointer; transition: background .1s; }
.list tbody tr:hover, .list tbody tr:focus-visible { background: var(--soft); }
.list tbody tr.sel { background: #FFF6F1; }
.list .num, .mini .num { text-align: right; font-variant-numeric: tabular-nums; }
.list .ck { width: 34px; }
.list input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--or); }
.cu-cell { font-weight: 650; max-width: 220px; }
.route-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.route-cell .ic { color: var(--or); }
.cu-row { display: flex; align-items: center; gap: 10px; }
.cu-row b { display: block; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; color: var(--muted); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.pager-b { display: flex; gap: 6px; align-items: center; }
.pager-b .btn { min-width: 34px; padding: 0 10px; }
.pager .gap { padding: 0 4px; }
.pg-of { padding: 0 6px; }
.empty { text-align: center; padding: 40px 16px; }
.empty-art { width: 160px; height: 110px; margin-bottom: 8px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); }
.denied { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 28px; }
.denied .ic.big { color: var(--or); margin-bottom: 12px; }
.denied h2 { font-size: 22px; margin-bottom: 8px; }
.denied p { color: var(--muted); margin-bottom: 20px; }
.denied .row { justify-content: center; }
.hbar { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; width: 120px; }
.hbar i { display: block; height: 100%; background: var(--st); border-radius: 99px; }
.hbar.mid i { background: var(--or); } .hbar.hi i { background: var(--bad); }
.hbar-l { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 3px; }

/* layers */
.layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.layer.on { pointer-events: auto; visibility: visible; }
#modal-root { z-index: 120; }
.scrim { position: absolute; inset: 0; background: rgba(20,22,31,.38); opacity: 0; transition: opacity .22s; }
.layer.show .scrim { opacity: 1; }
.drawer { position: absolute; right: 12px; top: 12px; bottom: 12px; width: min(580px, calc(100% - 24px)); background: #fff; border-radius: 26px; box-shadow: var(--sh-lg); transform: translateX(calc(100% + 24px)); transition: transform .26s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.layer.wide .drawer { width: min(780px, calc(100% - 24px)); }
.layer.show .drawer { transform: none; }
.drawer-body { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 30px; }
.dr-head { padding: 18px 24px 16px; border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); z-index: 2; }
.dr-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.dr-top .link-btn { margin-left: auto; }
.dr-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dr-title h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.dr-sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.dr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.dr-actions .field-inline select { min-width: 170px; }
.ro { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; background: var(--track); padding: 6px 12px; border-radius: 999px; }
.dr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 4px 12px; }
.dr-sec { padding: 16px 12px; border-bottom: 1px solid var(--line2); min-width: 0; }
.dr-sec.span2 { grid-column: span 2; }
.dr-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: min(520px, calc(100% - 24px)); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 24px; box-shadow: var(--sh-lg); opacity: 0; transition: opacity .2s, transform .2s; overscroll-behavior: contain; }
.layer.show .modal { opacity: 1; transform: translate(-50%, -50%); }
.modal.md { width: min(600px, calc(100% - 24px)); }
.modal.pal { top: 12vh; transform: translate(-50%, 0) scale(.98); width: min(640px, calc(100% - 24px)); max-height: 72vh; display: flex; flex-direction: column; overflow: hidden; }
.layer.show .modal.pal { transform: translate(-50%, 0); }
.modal-h, .sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; gap: 12px; }
.modal-h h2, .sheet-h h2 { font-size: 20px; font-weight: 800; }
.modal-p { padding: 0 22px 6px; color: var(--ink2); }
.modal-p > .field, .modal-p > .two { margin-bottom: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 22px; flex-wrap: wrap; }
.modal-p .modal-f { padding: 14px 0 16px; }
.quote-sug { display: flex; justify-content: space-between; align-items: center; background: var(--st-s); border-radius: 14px; padding: 12px 14px; margin: 10px 0 14px; color: var(--st-d); font-weight: 700; }
.quote-sug b { font-size: 20px; }
.menu { position: fixed; z-index: 150; background: #fff; border-radius: 18px; box-shadow: var(--sh-lg); border: 1px solid var(--line2); min-width: 240px; max-width: calc(100vw - 16px); max-height: 72vh; overflow-y: auto; padding: 6px; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-h { padding: 10px 12px 8px; font-weight: 800; font-size: 14px; }
.menu-h small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.menu-list { display: flex; flex-direction: column; gap: 1px; }
.menu-list.scroll { max-height: 340px; overflow-y: auto; }
.menu hr { border: 0; border-top: 1px solid var(--line2); margin: 6px 4px; }
.mi { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 0; background: none; text-align: left; color: var(--ink); font-weight: 650; font-size: 14px; }
.mi:hover, .mi:focus-visible { background: var(--soft); text-decoration: none; }
.mi.on { background: var(--or-s); }
.mi .ic { color: var(--muted); }
.mi > span:not(.av) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mi span small { color: var(--muted); font-weight: 600; font-size: 12px; }
.mi .warn-ic { color: var(--or); }
.mi-row { display: flex; align-items: center; }
.mi-form { display: flex; gap: 6px; padding: 6px 8px 8px; }
.mi-form input { height: 34px; border-radius: 999px; }
.menu-role { width: 340px; }
.role-i .ic { color: var(--or); }
.menu-notif { width: 400px; padding: 0; }
.menu-notif .menu-h { padding: 14px 16px 10px; border-bottom: 1px solid var(--line2); }
.notif-list { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; padding: 6px; }
.notif { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px; border-radius: 14px; color: var(--ink); align-items: start; }
.notif:hover, .notif:focus-visible { background: var(--soft); text-decoration: none; }
.notif-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--st-s); color: var(--st-d); }
.notif.sev-err .notif-ic { background: var(--bad-s); color: var(--bad-t); }
.notif.sev-warn .notif-ic { background: var(--or-s); color: var(--or-t); }
.notif-t b { display: block; font-size: 13.5px; } .notif-t small { color: var(--muted); font-size: 12.5px; font-weight: 600; display: block; }
.notif time { font-size: 11.5px; color: var(--faint); font-weight: 700; white-space: nowrap; }
.notif.unread { background: #FFF8F4; } .notif.unread .notif-t b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--or); margin-right: 6px; vertical-align: middle; }
.mi.ovf-only { display: none; }

/* palette */
.pal { display: flex; flex-direction: column; min-height: 0; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
.pal-in input { border: 0; height: 40px; font-size: 17px; font-weight: 600; padding: 0; box-shadow: none !important; }
.pal-in .ic { color: var(--muted); width: 20px; height: 20px; }
.pal-res { overflow-y: auto; padding: 6px 8px 10px; max-height: calc(72vh - 70px); }
.pal-g { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 10px 10px 4px; }
.pal-i { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 12px; }
.pal-i span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pal-i b { font-size: 14px; } .pal-i small { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i > .ic:first-child { color: var(--muted); }
.pal-i.on { background: var(--or-s); } .pal-i.on > .ic:first-child { color: var(--or); }
.pal-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-weight: 600; }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 600; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--sh-lg); font-weight: 650; font-size: 14px; max-width: 420px; transform: translateY(12px); opacity: 0; transition: transform .25s, opacity .25s; }
.toast.in { transform: none; opacity: 1; }
.toast .ic { color: #3DD598; } .toast.warn .ic { color: #FFB020; } .toast.err .ic { color: #FF6B6E; }
.toast a { color: #FFB495; font-weight: 800; margin-left: 4px; }

/* shipment drawer */
.pipe { list-style: none; display: flex; margin: 0; padding: 18px 24px 8px; gap: 0; }
.pipe li { flex: 1; position: relative; text-align: center; font-size: 12.5px; padding: 0 2px; }
.pipe li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--track); z-index: 0; }
.pipe li:first-child::before { display: none; }
.pipe li.done::before, .pipe li.now::before { background: var(--ok); }
.pipe-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 800; color: var(--muted); }
.pipe li.done .pipe-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.pipe li.now .pipe-dot { border-color: var(--or); color: var(--or); box-shadow: 0 0 0 5px var(--or-s); }
.pipe li.bad .pipe-dot { border-color: var(--bad); color: var(--bad); box-shadow: 0 0 0 5px var(--bad-s); }
.pipe li b { display: block; font-weight: 750; } .pipe li small { color: var(--muted); font-size: 11.5px; }
.pipe.cx { opacity: .45; }
.stops { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 6px; align-items: start; }
.stop { display: flex; flex-direction: column; font-size: 13.5px; color: var(--ink2); }
.stop b { color: var(--ink); font-size: 14.5px; }
.stop-k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--or-t); }
.stop em { font-style: normal; font-weight: 700; color: var(--ink); margin-top: 4px; font-size: 13px; }
.stop-line { display: grid; place-items: center; padding-top: 22px; color: var(--or); position: relative; }
.mini { width: 100%; font-size: 13.5px; }
.mini th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 800; padding: 6px 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; }
.mini td { padding: 8px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.mini tr.extra td { color: var(--ink2); }
.mini tfoot td { border: 0; padding: 5px 8px; color: var(--ink2); font-weight: 600; }
.mini tfoot tr.grand td { font-weight: 800; color: var(--ink); font-size: 15px; border-top: 1.5px solid var(--ink); padding-top: 9px; }
.mini tfoot tr.mg-row td { color: var(--ok-t); font-weight: 750; font-size: 13px; }
.add-charge { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.add-charge select { height: 34px; min-width: 200px; }
.pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pod .lbl { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.pod b { display: block; }
.pod-sig { background: var(--soft); border: 1px dashed var(--line); border-radius: 14px; height: 110px; display: grid; place-items: center; overflow: hidden; }
.pod-sig img, .sig-img { max-width: 100%; max-height: 100%; }
.pod-photo .photo-img, .photo-taken .photo-img { width: 100%; max-width: 340px; border-radius: 14px; display: block; }
.cust-mini { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; }
.cust-mini div { display: flex; flex-direction: column; color: var(--muted); }
.files { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.files li .ic { color: var(--st); }
.files li > span { display: flex; flex-direction: column; min-width: 0; } .files b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .files small { color: var(--muted); }
.file-btn { position: relative; cursor: pointer; }
.notes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.notes li { display: flex; gap: 10px; font-size: 13.5px; }
.notes time { color: var(--muted); font-size: 12px; } .notes p { margin: 2px 0 0; }
.note-form { display: flex; gap: 8px; align-items: flex-end; }
.note-form textarea { flex: 1; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; font-size: 13.5px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--line2); }
.tl li:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 4px; position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.tl b { font-weight: 650; display: block; } .tl small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tl.wide li { font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; align-items: center; }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rel-list li > a, .rel-list li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; font-size: 13.5px; color: var(--ink); flex-wrap: wrap; }
.rel-list li > a { padding: 0; width: 100%; }
.rel-list a:hover { background: var(--soft); text-decoration: none; }
.rel-list .pill { margin-left: auto; } .rel-list b { margin-left: auto; }
.rel-list .pill + b { margin-left: 0; }
.spark-box { height: 50px; }

/* wizard */
.wizard { max-width: 980px; padding: 0; overflow: hidden; }
.stepper { list-style: none; margin: 0; padding: 18px 24px; display: flex; gap: 8px; background: var(--soft); border-bottom: 1px solid var(--line2); overflow-x: auto; }
.stepper li { display: flex; align-items: center; gap: 9px; flex: 1; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.stepper li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 800; flex: none; }
.stepper li.now { color: var(--ink); } .stepper li.now span { border-color: var(--or); color: var(--or); }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--line); min-width: 12px; }
.stepper li.done::after { background: var(--ok); }
.wz-body { padding: 24px; }
.wz-h { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.wz-f { display: flex; gap: 10px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid.tight { gap: 12px; }
.addr { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.addr legend { font-weight: 800; padding: 0 6px; }
.calc { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--st-s); color: var(--st-d); font-weight: 750; }
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.svc-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; transition: border-color .15s, background .15s; }
.svc-card input { position: absolute; opacity: 0; }
.svc-card small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.svc-card.on { border-color: var(--or); background: var(--or-s); }
.svc-card:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 2px; }
.goods { display: grid; gap: 14px; }
.goods > .btn { justify-self: start; }
.mini.edit td { padding: 6px; vertical-align: middle; }
.mini.edit input, .mini.edit select { height: 40px; }
.num-in { width: 90px !important; text-align: right; }
.extras { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.extras legend { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.extras small { color: var(--muted); }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--soft); border-radius: 18px; padding: 16px; align-items: start; }
.tot-fit { display: flex; gap: 12px; align-items: center; }
.tot-fit .ic { width: 34px; height: 34px; padding: 7px; background: var(--ink); color: #fff; border-radius: 10px; }
.tot-fit span { display: flex; flex-direction: column; } .tot-fit small { color: var(--muted); font-weight: 600; }
.tot-dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 0; font-size: 14px; }
.tot-dl dt { color: var(--muted); font-weight: 600; } .tot-dl dd { margin: 0; padding-left: 16px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tot-dl .grand { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1.5px solid var(--ink); padding-top: 6px; margin-top: 4px; }
.review dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; margin: 0 0 18px; }
.review dt { color: var(--muted); font-weight: 700; } .review dd { margin: 0; font-weight: 600; }
.success { text-align: center; padding: 50px 24px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: popin .4s cubic-bezier(.2,1.4,.4,1); }
.success-ic .ic { width: 36px; height: 36px; stroke-width: 3; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.success h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.success p { max-width: 560px; margin: 0 auto 10px; }
.success .row { margin-top: 20px; }

/* bookings */
.mini-stats { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-stats div { background: #fff; border-radius: 18px; padding: 12px 18px; box-shadow: var(--sh); display: flex; gap: 10px; align-items: baseline; }
.mini-stats b { font-size: 24px; font-weight: 800; } .mini-stats span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol { background: #ECE8E0; border-radius: 22px; padding: 14px; min-width: 0; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.kcol h2 { font-size: 15px; font-weight: 800; }
.kcol header em { font-style: normal; background: #fff; border-radius: 999px; padding: 1px 9px; font-weight: 800; font-size: 12.5px; }
.kcol-hint { color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 2px 4px 10px; }
.kcol-list { display: grid; gap: 10px; }
.kcol-empty { text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; padding: 22px 8px; border: 2px dashed #D9D3C6; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bcard { background: #fff; border-radius: 16px; padding: 13px 14px; box-shadow: 0 1px 2px rgba(20,22,31,.06); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, box-shadow .12s; font-size: 13.5px; }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.bc-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.src { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--track); color: var(--ink2); }
.src-portal { background: var(--or-s); color: var(--or-t); } .src-email { background: var(--st-s); color: var(--st-d); }
.bc-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; flex-wrap: wrap; }
.bc-meta span { display: inline-flex; gap: 4px; align-items: center; }
.bc-f { display: flex; justify-content: space-between; align-items: center; }
.bc-act { display: flex; gap: 6px; padding-top: 4px; }

/* dispatch */
.daynav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.daynav input { height: 42px; border-radius: 999px; width: 160px; }
.dsum { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; color: var(--ink2); font-size: 14px; }
.dsum-day { font-weight: 800; color: var(--ink); font-size: 16px; }
.dsum .bad { color: var(--bad-t); font-weight: 700; }
.dsum .chips { margin-left: auto; }
.board { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.pool { background: #ECE8E0; border-radius: 22px; padding: 14px; position: sticky; top: calc(var(--bar) + 14px); max-height: calc(100vh - var(--bar) - 28px); display: flex; flex-direction: column; transition: outline-color .15s; outline: 3px dashed transparent; outline-offset: -3px; }
.pool header { display: flex; gap: 8px; align-items: center; margin: 0 4px 10px; }
.pool h2 { font-size: 15px; font-weight: 800; } .pool header em { font-style: normal; background: var(--or); color: #fff; border-radius: 999px; padding: 1px 9px; font-weight: 800; font-size: 12.5px; }
.pool-list { overflow-y: auto; display: grid; gap: 8px; padding: 2px; align-content: start; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.vcard { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 10px; outline: 3px dashed transparent; outline-offset: -3px; transition: outline-color .15s, background .15s; min-width: 0; }
.vcard header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vcard header > div { display: flex; gap: 8px; align-items: center; }
.vcard.off { background: #F1EEE8; box-shadow: none; }
.vcard.over { box-shadow: 0 0 0 2px var(--bad), var(--sh); }
.drop-on { outline-color: var(--or) !important; background: #FFF7F2 !important; }
.vtype { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; }
.vt-artic { background: var(--st-s); color: var(--st-d); } .vt-rigid { background: var(--or-s); color: var(--or-t); } .vt-van { background: #E8E9EE; color: var(--ink); }
.voff { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 10px 0; }
.drv-sel select { height: 36px; min-width: 0; width: 100%; font-size: 13.5px; }
.hrs-warn { color: var(--warn); font-size: 12.5px; font-weight: 700; display: flex; gap: 5px; align-items: center; margin: -4px 0 0; }
.cap-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.cap-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cap-track { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.cap-track i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .4s; }
.cap.warn .cap-track i { background: var(--or); } .cap.over .cap-track i { background: var(--bad); } .cap.over .cap-top b { color: var(--bad-t); }
.over-msg { margin: 0; background: var(--bad-s); color: var(--bad-t); font-weight: 750; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; }
.vlist { display: grid; gap: 6px; min-height: 54px; }
.drop-hint { border: 2px dashed var(--line); border-radius: 14px; color: var(--faint); font-weight: 700; font-size: 13px; display: grid; place-items: center; min-height: 54px; }
.dchip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--or); border-radius: 14px; padding: 8px 8px 8px 6px; font-size: 13px; cursor: grab; min-width: 0; }
.dchip.mv-collect { border-left-color: var(--st); }
.dchip.dragging { opacity: .4; }
.dchip.done { opacity: .6; cursor: default; background: var(--soft); border-left-color: var(--ok); }
.dchip .grip { color: var(--faint); display: flex; }
.dchip .grip .ic { width: 16px; }
.dc-main { flex: 1; min-width: 0; }
.dc-main b, .dc-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-main small { color: var(--muted); font-size: 12px; font-weight: 600; }
.dc-top { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.dc-top a { font-weight: 700; }
.mv { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--or-t); }
.mv-collect .mv { color: var(--st-d); }
.dc-load { text-align: right; display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.dc-load b { font-size: 15px; } .dc-load small { color: var(--muted); font-size: 11px; font-weight: 700; }
.dc-done { color: var(--ok); }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.dc-foot .btn { height: 30px; }
.is-dragging .vcard:not(.off) .drop-hint { border-color: var(--or); color: var(--or-t); }

/* fleet */
.kpis.six, .kpis.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fcard { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--sh); color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .14s, box-shadow .14s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); text-decoration: none; }
.fc-top { display: flex; justify-content: space-between; align-items: center; }
.fc-no { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.vst { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.vst-active { background: var(--ok-s); color: var(--ok-t); } .vst-workshop { background: var(--warn-s); color: var(--warn); } .vst-vor { background: var(--bad-s); color: var(--bad-t); }
.fcard .plate { align-self: flex-start; }
.fc-type { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.vicon { width: 54px; height: 24px; flex: none; }
.fc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; align-items: center; }
.fc-dl dt { color: var(--muted); font-weight: 700; } .fc-dl dd { margin: 0; }
.fc-f { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--line2); padding-top: 10px; }
.defects { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.defects li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--soft); border-left: 4px solid var(--or); }
.defects li.sev-major { border-left-color: var(--bad); background: #FFF6F6; } .defects li.sev-advisory { border-left-color: var(--st); }
.defects li div { flex: 1; min-width: 0; } .defects b { display: block; font-size: 13.5px; } .defects small { color: var(--muted); font-size: 12px; }
.sev { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); width: 64px; flex: none; }
.defect-form { display: grid; grid-template-columns: 1fr 200px auto; gap: 10px; align-items: end; }
.hours-sum { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.hours-sum div { background: var(--soft); border-radius: 14px; padding: 10px 14px; flex: 1; min-width: 120px; }
.hours-sum b { display: block; font-size: 20px; font-weight: 800; } .hours-sum span { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* network */
.net { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.map-card { padding: 12px; background: linear-gradient(180deg, #FFFFFF, #FBF8F2); }
.netmap svg { width: 100%; height: auto; max-height: 76vh; display: block; }
.land { fill: #F3EDE2; stroke: none; }
.land-dots circle { fill: #DCD3C2; }
.lane { fill: none; stroke: var(--st); stroke-opacity: .32; stroke-linecap: round; cursor: pointer; transition: stroke-opacity .2s; }
.lane:hover { stroke-opacity: .65; }
.lane.hot { stroke: var(--or); stroke-opacity: .55; }
.part { fill: var(--st-d); pointer-events: none; }
.part.hot { fill: var(--or); stroke: #fff; stroke-width: 1.2; }
.node { cursor: pointer; outline: none; }
.node .halo { fill: rgba(74,111,165,.14); transition: fill .2s; }
.node .core { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.node.hub .core { fill: var(--or); }
.node.hub .halo { fill: rgba(255,90,31,.16); }
.node.sel .halo { fill: rgba(255,90,31,.3); }
.node:hover .halo, .node:focus .halo { fill: rgba(255,90,31,.32); }
.node:focus-visible .core { stroke: var(--or); stroke-width: 4; }
.nlabel { font: 800 12.5px var(--font); fill: var(--ink); paint-order: stroke; stroke: #FBF8F2; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.map-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--ink2); padding: 8px 10px 4px; }
.map-key span { display: inline-flex; gap: 6px; align-items: center; }
.map-key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.k-hub { background: var(--or); } .k-dep { background: var(--ink); } .k-flow { width: 22px !important; height: 4px !important; border-radius: 3px !important; background: var(--st); opacity: .6; }
.net-side { display: grid; gap: 14px; }
.dep-card h2 { font-size: 26px; font-weight: 800; margin: 2px 0 14px; letter-spacing: -.03em; }
.dep-card h3, .net-side h3.card-t { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 16px 0 8px; }
.net-side h3.card-t { margin-top: 0; }
.dep-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dep-stats div { background: var(--soft); border-radius: 14px; padding: 10px; }
.dep-stats b { display: block; font-size: 20px; font-weight: 800; } .dep-stats span { color: var(--muted); font-size: 12px; font-weight: 700; }
.lane-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.lane-list li { display: flex; gap: 6px; align-items: center; } .lane-list b { margin-left: auto; }
.lane-list .ic { color: var(--or); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.rank li { display: grid; grid-template-columns: 26px 1fr auto 44px; gap: 8px; align-items: center; }
.rk { width: 24px; height: 24px; border-radius: 8px; background: var(--track); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.rank li:first-child .rk { background: var(--or); color: #fff; }
.rl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank small { color: var(--ok-t); font-weight: 700; text-align: right; }
.dep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dep-chips .chip { height: 30px; font-size: 12.5px; }

/* driver app */
.run-page { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; max-width: 1100px; margin: 0 auto; }
.run-side { padding-top: 30px; }
.run-side h1 { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 10px; }
.run-side .sub { color: var(--muted); font-size: 16px; max-width: 480px; }
.run-side .field { max-width: 360px; margin: 18px 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.ticks .ic { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
.phone-frame { width: 392px; height: 800px; border-radius: 54px; background: var(--ink); padding: 12px; box-shadow: var(--sh-lg), inset 0 0 0 2px #2A2E3E; position: relative; }
.phone-frame::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 100px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.phone { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); position: relative; }
.ph-app { height: 100%; display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 6px; font-size: 12.5px; font-weight: 800; height: 46px; }
.ph-brand { display: none; }
.ph-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.ph-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 8px 16px; }
.ph-tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 750; color: var(--muted); padding: 6px; border-radius: 12px; }
.ph-tabs button.on { color: var(--or); }
.ph-hero { background: var(--or); color: #fff; border-radius: 24px; padding: 18px; margin-bottom: 12px; }
.ph-hero small { font-weight: 700; opacity: .85; }
.ph-hero h3 { font-size: 24px; font-weight: 800; margin: 2px 0 12px; }
.ph-prog { display: flex; align-items: center; gap: 10px; }
.ph-prog svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 4; }
.ring { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .5s; }
.ph-vehicle { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--or); border-radius: 18px; padding: 12px 14px; text-align: left; margin-bottom: 10px; }
.ph-vehicle.ok { border-color: var(--line); }
.ph-vehicle > .ic:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--or-s); color: var(--or-t); }
.ph-vehicle.ok > .ic:first-child { background: var(--ok-s); color: var(--ok-t); }
.ph-vehicle > span { flex: 1; display: flex; flex-direction: column; } .ph-vehicle small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ph-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 16px 4px 8px; }
.ph-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-stop { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 0; border-radius: 18px; padding: 12px; text-align: left; box-shadow: 0 1px 2px rgba(20,22,31,.06); min-height: 64px; }
.ph-n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.ph-stop.done { opacity: .6; } .ph-stop.done .ph-n { background: var(--ok); } .ph-stop.fail .ph-n { background: var(--bad); }
.ph-st { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-st em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--or-t); }
.ph-st em.c { color: var(--st-d); }
.ph-st b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ph-st small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ph-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.ph-head h3 { font-size: 17px; font-weight: 800; }
.ph-back { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(20,22,31,.08); }
.ph-addr { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; margin-bottom: 10px; }
.ph-addr b { font-size: 17px; } .ph-addr span { color: var(--ink2); }
.ph-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ph-sq { background: #fff; border: 0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 750; font-size: 13px; color: var(--st-d); }
.ph-goods { list-style: none; margin: 0 0 10px; padding: 0; background: #fff; border-radius: 18px; }
.ph-goods li { padding: 10px 14px; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; font-size: 13.5px; }
.ph-goods li:last-child { border: 0; } .ph-goods span { color: var(--muted); font-size: 12.5px; }
.ph-warn { color: var(--or-t); font-weight: 750; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ph-btn { width: 100%; min-height: 54px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; color: var(--ink); }
.ph-btn.primary { background: var(--or); border-color: var(--or); color: #fff; }
.ph-btn.big { min-height: 64px; font-size: 16px; }
.ph-btn.danger { color: var(--bad-t); border-color: #F6C6C7; }
.ph-done { background: #fff; border-radius: 18px; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph-done > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.ph-done p { color: var(--muted); margin: 0; font-size: 13.5px; }
.ph-note { color: var(--muted); font-weight: 650; font-size: 13.5px; margin: 0 4px 8px; }
.ph-fail { display: flex; flex-direction: column; }
.ph-fail .ph-btn { justify-content: flex-start; padding: 0 16px; }
.ph-fail .link-btn { margin: 12px auto 0; }
.ph-checks { display: grid; gap: 8px; }
.ph-ck { background: #fff; border-radius: 16px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; border: 1.5px solid transparent; }
.ph-ck.ok { border-color: #BFE8D6; } .ph-ck.bad { border-color: #F6C6C7; }
.ph-ck input { grid-column: span 2; height: 40px; }
.ph-ck-b { display: flex; gap: 4px; }
.ph-ck-b button { height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 12.5px; }
.ph-ck-b button.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.ph-ck-b button.bad.on { background: var(--bad); border-color: var(--bad); }
.ph-pod { display: grid; gap: 12px; }
.ph-f { display: flex; flex-direction: column; gap: 6px; font-weight: 750; font-size: 13px; }
.sig-wrap { position: relative; }
.sig { width: 100%; height: 150px; background: #fff; border: 1.5px dashed #CFC8BA; border-radius: 16px; touch-action: none; display: block; cursor: crosshair; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: var(--faint); font-size: 12.5px; font-weight: 700; pointer-events: none; }
.sig.inked + .sig-hint { display: none; }
.photo-slot { min-height: 44px; }
.photo-taken { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* tracking and portal */
.trk { max-width: 900px; margin: 0 auto; }
.trk-hero { background: radial-gradient(120% 140% at 100% 0%, #FF8A5B 0%, var(--or) 45%, #E2460C 100%); color: #fff; border-radius: 30px; padding: 28px; margin-bottom: 18px; box-shadow: 0 20px 40px -24px rgba(226,70,12,.7); }
.trk-brand { display: flex; gap: 12px; align-items: center; }
.trk-brand div { display: flex; flex-direction: column; line-height: 1.15; }
.trk-brand b { font-size: 18px; font-weight: 800; } .trk-brand span { font-size: 13px; opacity: .85; font-weight: 600; }
.trk-hero .logo-mark rect { fill: #fff; } .trk-hero .logo-mark path:first-of-type { stroke: var(--or); }
.trk-form { display: flex; gap: 8px; margin-top: 22px; background: #fff; border-radius: 999px; padding: 6px; }
.trk-form input { color: var(--ink); border: 0; height: 48px; font-size: 16px; font-weight: 700; border-radius: 999px; box-shadow: none !important; }
.trk-form .btn { height: 48px; padding: 0 26px; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.trk-try { margin: 12px 4px 0; font-size: 13px; font-weight: 600; opacity: .95; }
.trk-try a { color: #fff; text-decoration: underline; font-family: var(--mono); margin-right: 6px; }
.trk-card { background: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--sh); }
.trk-card.nf { text-align: center; } .trk-card.nf .ic { color: var(--or); }
.trk-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.trk-top h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0; }
.trk-top p { color: var(--ink2); font-weight: 600; }
.trk-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.trk-steps li { position: relative; text-align: center; font-size: 13px; }
.trk-steps li span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--track); margin: 0 auto 8px; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--track); }
.trk-steps li::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 4px; background: var(--track); }
.trk-steps li:first-child::before { display: none; }
.trk-steps li.done span, .trk-steps li.now span { background: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.trk-steps li.done::before, .trk-steps li.now::before { background: var(--ok); }
.trk-steps li.now span { background: var(--or); box-shadow: 0 0 0 2px var(--or), 0 0 0 8px var(--or-s); }
.trk-steps li.bad span { background: var(--bad); box-shadow: 0 0 0 2px var(--bad), 0 0 0 8px var(--bad-s); }
.trk-steps b { font-weight: 750; color: var(--ink2); }
.trk-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; border-top: 1px solid var(--line2); padding-top: 18px; }
.trk-grid h3, .trk-pod h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.trk-grid p { margin-bottom: 14px; font-weight: 600; }
.trk-pod { border-top: 1px solid var(--line2); padding-top: 18px; margin-top: 6px; }
.trk-pod .pod { grid-template-columns: 1fr 1.4fr; }
.trk-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.portal-bar { display: flex; gap: 10px; align-items: center; background: var(--st-s); color: var(--st-d); font-weight: 700; font-size: 13.5px; border-radius: 16px; padding: 8px 10px 8px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.portal-bar span { flex: 1; min-width: 200px; }
.portal-bar select { min-width: 240px; background-color: #fff; }
.portal { background: #fff; border-radius: 30px; padding: 24px; box-shadow: var(--sh); }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.portal-who { display: flex; align-items: center; gap: 10px; }
.portal-who span { display: flex; flex-direction: column; line-height: 1.2; } .portal-who small { color: var(--muted); font-weight: 600; }
.portal-h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 20px 0 16px; }
.portal .kpi { background: var(--soft); box-shadow: none; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-grid .card { box-shadow: none; border: 1.5px solid var(--line2); }
.portal-grid .span2 { grid-column: span 2; }
.portal-ships { list-style: none; margin: 0; padding: 0; }
.portal-ships a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line2); color: var(--ink); }
.portal-ships a:hover { background: var(--soft); text-decoration: none; }
.portal-ships a > span:first-child { display: flex; flex-direction: column; min-width: 0; } .portal-ships small { color: var(--muted); font-size: 12px; font-weight: 600; }
.mini-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 18px 0 6px; }

/* invoices */
.qb { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto; gap: 24px; align-items: center; margin-bottom: 18px; position: relative; overflow: hidden; }
.qb-id { display: flex; gap: 14px; align-items: center; }
.qb-mark { width: 52px; height: 52px; border-radius: 16px; background: #E6F4EA; color: #1E7B3C; display: grid; place-items: center; flex: none; }
.qb-mark .ic { width: 26px; height: 26px; }
.qb h2 { font-size: 22px; font-weight: 800; }
.qb p { margin: 2px 0 0; color: var(--ink2); font-size: 13.5px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 0 0 rgba(19,160,107,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(19,160,107,0); } 100% { box-shadow: 0 0 0 0 rgba(19,160,107,0); } }
.qb-stats { display: flex; gap: 8px; }
.qb-stats div { background: var(--ok-s); color: var(--ok-t); border-radius: 14px; padding: 8px 14px; text-align: center; }
.qb-stats .pend { background: var(--warn-s); color: var(--warn); } .qb-stats .bad { background: var(--bad-s); color: var(--bad-t); }
.qb-stats b { display: block; font-size: 20px; font-weight: 800; } .qb-stats span { font-size: 12px; font-weight: 700; }
.qb-act { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.qb-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--track); }
.qb-prog i { display: block; height: 100%; background: var(--ok); transition: width .35s; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 750; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--or); }
.tabs em { font-style: normal; background: var(--track); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.attn { display: flex; gap: 12px; background: var(--bad-s); color: var(--bad-t); margin: 16px 24px 0; padding: 14px 16px; border-radius: 16px; }
.attn > .ic { margin-top: 2px; }
.attn div { flex: 1; display: grid; gap: 8px; } .attn p { margin: 0; color: var(--ink2); }
.attn select { background-color: #fff; }

/* activity */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-day { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 16px 4px 6px; position: sticky; top: var(--bar); background: #fff; z-index: 1; }
.feed-i { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line2); align-items: start; }
.feed-t p { margin: 0; font-size: 14px; }
.feed-x { color: var(--ink2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px !important; }
.feed-x .pill { height: 22px; font-size: 11.5px; }
.feed-ref { display: inline-flex; gap: 4px; align-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; margin-left: 4px; background: var(--soft); border-radius: 7px; padding: 1px 7px; }
.feed time { color: var(--faint); font-size: 12.5px; font-weight: 700; }

/* team */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-bottom: 18px; }
.person { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--sh); display: flex; gap: 12px; align-items: center; }
.person.inactive { opacity: .55; }
.p-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.p-main > span { color: var(--ink2); font-size: 13px; font-weight: 600; } .p-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.p-side select { height: 34px; min-width: 120px; font-size: 13px; }
.p-side small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.p-side .link-btn { font-size: 12px; padding: 0; }
.matrix { min-width: 560px; }
.matrix th, .matrix td { padding: 11px 12px; border-bottom: 1px solid var(--line2); text-align: center; }
.matrix th[scope=row] { text-align: left; font-weight: 650; font-size: 14px; }
.matrix thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.matrix thead th:first-child { text-align: left; }
.lock-on { color: var(--ok-t); display: inline-flex; }

/* settings */
.settings { display: grid; gap: 16px; max-width: 900px; }
.togs { display: grid; gap: 4px; }
.tog { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line2); cursor: pointer; }
.tog:last-child { border: 0; }
.tog > span:first-child { display: flex; flex-direction: column; } .tog small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.save-bar { position: sticky; bottom: 16px; background: var(--ink); color: #fff; border-radius: 20px; padding: 10px 10px 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--sh-lg); }
.save-bar .muted { color: #B9BDCB; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; max-width: 900px; flex-wrap: wrap; }
.danger-zone p { margin: 0; }

/* tour and offer */
#tour-ring { position: fixed; z-index: 300; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(20,22,31,.55); border: 3px solid var(--or); pointer-events: none; transition: all .3s cubic-bezier(.2,.8,.2,1); }
#tour-pop { position: fixed; z-index: 301; background: #fff; border-radius: 22px; padding: 18px 20px 16px; box-shadow: var(--sh-lg); transition: top .3s, left .3s; }
#tour-pop h3 { font-size: 18px; font-weight: 800; margin: 4px 0 6px; }
#tour-pop p { color: var(--ink2); font-size: 14px; }
.tp-k { font-size: 12px; font-weight: 800; color: var(--or-t); text-transform: uppercase; letter-spacing: .08em; }
.tp-dots { display: flex; gap: 5px; margin: 10px 0 12px; }
.tp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tp-dots i.on { background: var(--or); width: 20px; border-radius: 4px; }
.tp-f { display: flex; justify-content: space-between; align-items: center; }
.tp-f span { display: flex; gap: 6px; }
.offer { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(380px, calc(100vw - 40px)); background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--sh-lg); display: flex; gap: 14px; transform: translateY(20px); opacity: 0; transition: transform .35s, opacity .35s; }
.offer.in { transform: none; opacity: 1; }
.offer-art { width: 44px; height: 44px; border-radius: 14px; background: var(--or); color: #fff; display: grid; place-items: center; flex: none; }
.offer b { display: block; font-size: 15px; } .offer p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }

/* skeletons */
.skel-page { display: grid; gap: 18px; }
.skel { background: linear-gradient(90deg, #ECE8E0 0%, #F5F2EC 50%, #ECE8E0 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 20px; }
.skel.h1 { height: 44px; width: 340px; }
.skel-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skel-row:last-child { grid-template-columns: 2fr 1fr; }
.skel.kpi { height: 108px; } .skel.card { height: 300px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* mobile tab bar and sheet */
.tabbar { display: none; }
.modal.sheet { padding-bottom: 12px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 12px; }
.sheet-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 12.5px; text-align: center; }
.sheet-i .ic { color: var(--or); width: 22px; height: 22px; }
.sheet-role { padding: 4px 16px 12px; }
.sheet-role .lbl { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.sheet-role .seg { display: flex; } .sheet-role .seg button { flex: 1; padding: 0 6px; }
.sheet-f { display: flex; gap: 8px; padding: 0 16px 8px; flex-wrap: wrap; }
.sheet-f .btn { flex: 1; }

/* responsive */
@media (max-width: 1500px) { .search-btn > span { display: none; } }
.tour-btn { color: var(--or); }
@media (max-width: 1320px) {
  .nv.ovf { display: none; }
  .mi.ovf-only { display: flex; }
  .kpis.six, .kpis.n6, .kpis.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; }
  .grid.dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span3 { grid-column: span 2; }
  .today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-main { grid-column: span 3; border-bottom: 1px solid rgba(255,255,255,.08); }
  .today-cell:nth-child(2) { border-left: 0; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qb { grid-template-columns: 1fr auto; }
  .qb-act { grid-column: span 2; flex-direction: row; justify-content: flex-start; gap: 14px; }
  .board { grid-template-columns: 290px minmax(0, 1fr); }
  .run-page { gap: 24px; }
}
@media (max-width: 1060px) {
  .role-txt { display: none; }
  .brand-name small { display: none; }
  .appbar { gap: 12px; padding: 0 20px; }
  .main { padding: 22px 20px 80px; }
  .hide-md { display: none; }
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net { grid-template-columns: 1fr; }
  .net-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net-side .dep-card { grid-row: span 2; }
  .netmap svg { max-height: 70vh; }
  .run-page { grid-template-columns: 1fr; justify-items: center; }
  .run-side { text-align: center; padding-top: 0; max-width: 560px; }
  .run-side .sub { margin: 0 auto; } .run-side .field { margin: 14px auto; } .ticks { display: none; }
}
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .pool { position: static; max-height: 360px; }
  .layer.wide .drawer, .drawer { width: calc(100% - 24px); }
}
@media (max-width: 767px) {
  :root { --bar: 60px; }
  body { font-size: 15px; }
  .banner { font-size: 12px; padding: 6px 40px 6px 12px; gap: 4px 10px; justify-content: flex-start; }
  .banner-home { display: none; }
  .banner-dot { display: none; }
  .appbar { padding: 0 16px; gap: 10px; }
  .topnav { display: none; }
  .bar-actions .bell, .bar-actions .tour-btn { display: none; }
  .brand .logo-mark { width: 34px; height: 34px; }
  .role-btn { padding: 0 8px 0 3px; }
  .main { padding: 18px 16px 100px; }
  .page-head { margin-bottom: 16px; align-items: flex-start; }
  .page-head h1 { font-size: 27px; }
  .page-actions { width: 100%; }
  .page-actions .seg { width: 100%; display: flex; } .page-actions .seg button { flex: 1; padding: 0 6px; }
  .card { padding: 16px; border-radius: 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 750; color: var(--muted); border: 0; background: none; padding: 6px 2px; border-radius: 12px; position: relative; text-decoration: none; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .on { color: var(--or); }
  .tabbar .badge { top: 0; right: calc(50% - 22px); }
  .toasts { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
  .offer { left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.six, .kpis.four, .kpis.n6, .kpis.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .kpi { padding: 14px; border-radius: 18px; } .kpi-v { font-size: 24px; }
  .grid.dash { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .span2, .span3 { grid-column: auto; }
  .today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-main { grid-column: span 3; padding: 18px; }
  .today-cell { padding: 14px 12px; } .today-cell b { font-size: 26px; } .today-cell span { font-size: 12px; } .today-cell em { display: none; }
  .today-cell:nth-child(2) { border-left: 0; }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut-svg { align-self: center; }
  .toolbar .field-inline { flex: 1 1 140px; } .toolbar .field-inline select { min-width: 0; }
  .toolbar > .btn { flex: 1 1 100%; }
  /* list rows become cards */
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 12px 6px; border-bottom: 1px solid var(--line2); position: relative; }
  .list td { border: 0; padding: 0; font-size: 13.5px; }
  .list td.ck { position: absolute; right: 6px; top: 12px; width: auto; }
  .list td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 800; }
  .list td.num { text-align: left; }
  .list td.hide-md { display: none; }
  .list-card .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .list-card .chips::-webkit-scrollbar { display: none; }
  .ships tbody tr td:nth-child(2)::before, .ships tbody tr td:nth-child(3)::before { display: none; }
  .ships tbody tr td:nth-child(3) { grid-column: span 2; font-weight: 750; }
  .route-cell { white-space: normal; flex-wrap: wrap; }
  .hbar { width: 100%; }
  .table-wrap { margin: 0; padding: 0; }
  .pager { justify-content: center; } .pager > span { width: 100%; text-align: center; }
  .drawer, .layer.wide .drawer { inset: 0; width: 100%; border-radius: 0; }
  .dr-head { padding: 14px 16px; }
  .dr-title h2 { font-size: 22px; }
  .dr-grid { grid-template-columns: minmax(0, 1fr); padding: 0 4px; }
  .dr-sec.span2 { grid-column: auto; }
  .dr-actions .btn { flex: 1 1 auto; }
  .pipe { padding: 14px 8px 4px; overflow-x: auto; }
  .pipe li { min-width: 62px; font-size: 11px; } .pipe li small { display: none; }
  .stops { grid-template-columns: minmax(0, 1fr); } .stop-line { padding: 0; justify-content: start; transform: rotate(90deg); width: 24px; }
  .pod, .trk-pod .pod { grid-template-columns: minmax(0, 1fr); }
  .modal, .modal.md { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(30px); padding-bottom: env(safe-area-inset-bottom); }
  .layer.show .modal, .layer.show .modal.md { transform: none; }
  .modal.pal { top: 0; bottom: auto; left: 0; width: 100%; max-height: 80vh; border-radius: 0 0 24px 24px; transform: translateY(-20px); }
  .layer.show .modal.pal { transform: none; }
  .menu-notif, .menu-role { width: calc(100vw - 16px); }
  .form-grid, .two { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span2, .portal-grid .span2 { grid-column: auto; }
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { padding: 14px 16px; } .stepper li b { display: none; } .stepper li.now b { display: inline; }
  .wz-body { padding: 18px 16px; }
  .totals { grid-template-columns: minmax(0, 1fr); }
  .mini.edit thead { display: none; }
  .mini.edit tr { display: grid; grid-template-columns: 1fr 80px 90px 34px; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
  .mini.edit td { padding: 0; border: 0; }
  .mini.edit td:nth-child(4) { grid-column: 1 / 4; grid-row: 2; }
  .mini.edit td:nth-child(5) { grid-row: 2; grid-column: 4; display: none; }
  .num-in { width: 100% !important; }
  .review dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .review dd { margin-bottom: 10px; }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .mini-stats div { flex: 1 1 40%; padding: 10px 14px; } .mini-stats b { font-size: 20px; }
  .dsum .chips { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .daynav { width: 100%; } .daynav input { flex: 1; width: auto; }
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .fleet-grid { grid-template-columns: minmax(0, 1fr); }
  .defect-form { grid-template-columns: minmax(0, 1fr); }
  .net-side { grid-template-columns: minmax(0, 1fr); }
  .net-side .dep-card { grid-row: auto; }
  .dep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .netmap svg { max-height: none; }
  .run-page.is-driver { display: block; justify-items: normal; }
  .run-page.is-driver .run-side { display: none; }
  .run-page.is-driver .ph-tabs { display: none; }
  .run-page.is-driver .phone, .run-page.is-driver .ph-app { height: auto; overflow: visible; }
  .run-page.is-driver .ph-body { overflow: visible; padding-bottom: 24px; }
  .run-page.is-driver .phone-frame { width: calc(100% + 32px); max-width: none; height: auto; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; margin: -18px 0 0 -16px; }
  .run-page.is-driver .phone-frame::before { display: none; }
  .run-page.is-driver .phone { border-radius: 0; }
  .run-page.is-driver .ph-status { display: none; }
  .run-page:not(.is-driver) .phone-frame { width: min(360px, 100%); height: 720px; border-radius: 46px; }
  .trk-hero { padding: 20px; border-radius: 24px; }
  .trk-form { flex-direction: column; border-radius: 20px; } .trk-form .btn { width: 100%; }
  .trk-card { padding: 18px; }
  .trk-top { flex-direction: column; } .trk-top h2 { font-size: 24px; }
  .trk-steps b { font-size: 10.5px; display: block; line-height: 1.2; }
  .trk-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .portal { padding: 16px; border-radius: 22px; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-bar select { min-width: 0; width: 100%; }
  .portal-bar .field-inline { width: 100%; }
  .qb { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .qb-act { grid-column: auto; }
  .qb-stats div { flex: 1; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .person { flex-wrap: wrap; } .p-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding-left: 46px; }
  .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .feed-i { grid-template-columns: 28px 1fr; } .feed-i time { grid-column: 2; }
  .feed-day { top: var(--bar); }
  .skel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .skel-row:last-child { grid-template-columns: minmax(0, 1fr); }
  .skel.h1 { width: 70%; }
  .bl { grid-template-columns: 96px 1fr 40px; }
  #tour-pop { left: 12px !important; right: 12px; width: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
