/* Rambler Ops – palette taken from ramblercoachlines.nz */
:root {
  --purple: #61279E;
  --purple-700: #4D1F7E;
  --purple-100: #EFE7F8;
  --purple-50: #F7F3FC;
  --gold: #D39F10;
  --gold-100: #FBF1D6;
  --ink: #1A171B;
  --black: #0C0A0C;
  --text: #2A262C;
  --muted: #6B6670;
  --line: #E6E1EA;
  --bg: #F6F4F8;
  --white: #fff;
  --ok: #2E7D4F; --ok-bg: #E4F3EA;
  --warn: #9A6B00; --warn-bg: #FBF1D6;
  --bad: #B3261E; --bad-bg: #FBE6E4;
  --info: #2F5D9E; --info-bg: #E5EDF8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26,23,27,.06), 0 4px 14px rgba(26,23,27,.05);
  --head: 'Barlow', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'Roboto', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); font-size: 14px; color: var(--text); background: var(--bg); }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; } .mono { font-family: ui-monospace, Consolas, monospace; }
.gold { color: var(--gold); } .purple { color: var(--purple); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--black); color: #CFC9D4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 18px 18px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #241f26; background: #fff; }
.brand img { max-height: 42px; max-width: 190px; }
.wordmark { line-height: 1; }
.wordmark b { font-family: var(--head); font-size: 26px; color: var(--ink); letter-spacing: -.5px; }
.wordmark i { display: block; font-size: 11px; color: var(--gold); letter-spacing: 3px; font-style: italic; margin-top: 2px; }
.wordmark-mark { width: 30px; height: 34px; border-radius: 4px; background: linear-gradient(135deg, var(--purple) 0 58%, var(--gold) 58% 70%, var(--purple) 70%); }
.nav { padding: 10px 0; flex: 1; }
.nav .group { font-family: var(--head); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #7D7682; padding: 14px 20px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 20px; color: #DCD6E0; font-size: 14px; border-left: 3px solid transparent; }
.nav a:hover { background: #1C181E; text-decoration: none; color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(97,39,158,.55), rgba(97,39,158,.15)); color: #fff; border-left-color: var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .count { margin-left: auto; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.side-foot { padding: 14px 20px; font-size: 12px; color: #7D7682; border-top: 1px solid #241f26; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 10px 24px; position: sticky; top: 0; z-index: 20; }
.topbar .title { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--ink); }
.topbar .spacer { flex: 1; }
.search { position: relative; }
.search input { width: 280px; padding-left: 32px; border-radius: 20px; background: var(--bg); }
.search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--muted); }
.search-results { position: absolute; top: 40px; right: 0; width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 420px; overflow: auto; z-index: 50; }
.search-results a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.search-results a:hover { background: var(--purple-50); text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 20px; }
.user-chip:hover { background: var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--head); }
.content { padding: 22px 24px 60px; max-width: 1600px; width: 100%; }
.menu-btn { display: none; background: none; border: 0; padding: 4px; cursor: pointer; }

/* ---------- components ---------- */
.btn { font-family: var(--head); font-weight: 600; font-size: 13.5px; letter-spacing: .4px; text-transform: uppercase; border-radius: 22px; padding: 8px 18px; border: 1.5px solid var(--purple); background: var(--purple); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--purple-700); border-color: var(--purple-700); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--purple); }
.btn.secondary:hover { background: var(--purple-50); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #BC8D0B; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--purple); }
.btn.ghost:hover { background: var(--purple-50); }
.btn.danger { background: #fff; color: var(--bad); border-color: #E7B7B2; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; } .card.flush .card-head { padding: 14px 18px 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; }

.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; cursor: pointer; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--purple); }
.kpi.gold::before { background: var(--gold); } .kpi.bad::before { background: var(--bad); } .kpi.ok::before { background: var(--ok); }
.kpi .label { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px; color: var(--muted); }
.kpi .value { font-family: var(--head); font-size: 30px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.kpi .foot { font-size: 12px; color: var(--muted); margin-top: 2px; }

table.t { width: 100%; border-collapse: collapse; }
.t th { font-family: var(--head); text-transform: uppercase; letter-spacing: .6px; font-size: 11.5px; color: var(--muted); text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; background: #fff; position: sticky; top: 0; }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--purple-50); }
.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.t td.num, .t th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

.pill { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 12px; padding: 2px 9px; text-transform: capitalize; white-space: nowrap; background: var(--bg); color: var(--muted); }
.pill.purple, .pill.confirmed, .pill.sent, .pill.issued, .pill.scheduled, .pill.allocated { background: var(--purple-100); color: var(--purple); }
.pill.ok, .pill.paid, .pill.completed, .pill.accepted, .pill.active, .pill.closed { background: var(--ok-bg); color: var(--ok); }
.pill.warn, .pill.due, .pill.provisional, .pill.part-paid, .pill.started, .pill.workshop, .pill.draft { background: var(--warn-bg); color: var(--warn); }
.pill.bad, .pill.expired, .pill.overdue, .pill.cancelled, .pill.declined, .pill.void, .pill.missing, .pill.open, .pill.off-road { background: var(--bad-bg); color: var(--bad); }
.pill.info, .pill.web { background: var(--info-bg); color: var(--info); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

label.f { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; font-family: var(--head); }
input, select, textarea { width: 100%; font: inherit; font-size: 14px; color: var(--text); padding: 8px 10px; border: 1px solid #D5CEDB; border-radius: 7px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(97,39,158,.25); border-color: var(--purple); }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--purple); }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 14px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.section-title { grid-column: span 12; font-family: var(--head); font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 6px 0 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; color: var(--text); }

.dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; }
.dl dt { color: var(--muted); font-size: 12.5px; } .dl dd { margin: 0; white-space: pre-wrap; }

.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 9px 16px; font-family: var(--head); font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; text-transform: uppercase; font-size: 13px; letter-spacing: .4px; }
.tabs a.active { color: var(--purple); border-bottom-color: var(--gold); text-decoration: none; }

.alert-list .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.issue { padding: 8px 12px; border-radius: 8px; margin: 6px 0; font-size: 13px; display: flex; gap: 8px; }
.issue.error { background: var(--bad-bg); color: var(--bad); } .issue.warn { background: var(--warn-bg); color: var(--warn); }
.issue.ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12,10,12,.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 720px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 1000px; } .modal.narrow { max-width: 460px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: 14px 14px 0 0; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--bg); border-radius: 0 0 14px 14px; }
.x { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
#toasts { position: fixed; bottom: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); max-width: 380px; animation: slide .2s ease-out; }
.toast.err { border-left-color: #F26B5E; }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }

/* ---------- planner (allocation chart) ---------- */
.planner { display: grid; grid-template-columns: 270px 1fr; gap: 16px; }
.pool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; max-height: calc(100vh - 190px); overflow-y: auto; }
.pool h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.job-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fff; cursor: grab; font-size: 12.5px; }
.job-card:hover { box-shadow: var(--shadow); }
.job-card b { font-family: var(--head); font-size: 13.5px; }
.gantt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 190px); }
.gantt-inner { min-width: 1100px; position: relative; }
.g-row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); min-height: 52px; }
.g-row.head { position: sticky; top: 0; background: #fff; z-index: 3; min-height: 34px; border-bottom: 2px solid var(--line); }
.g-row.group { min-height: 26px; background: var(--bg); font-family: var(--head); font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px; }
.g-row.group > div { padding: 5px 12px; }
.g-label { padding: 8px 12px; border-right: 1px solid var(--line); position: sticky; left: 0; background: #fff; z-index: 2; font-size: 12.5px; }
.g-label b { font-family: var(--head); font-size: 14px; display: block; color: var(--ink); }
.g-track { position: relative; }
.g-track.drop { background: var(--purple-50); outline: 2px dashed var(--purple); outline-offset: -2px; }
.g-hours { position: relative; height: 34px; }
.g-hours span { position: absolute; top: 9px; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.g-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: #F0ECF3; }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #E5484D; z-index: 1; }
.g-block { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; background: var(--purple); color: #fff; font-size: 11.5px; padding: 3px 7px; overflow: hidden; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); z-index: 1; line-height: 1.3; }
.g-block:hover { filter: brightness(1.1); }
.g-block.run { background: #2E7D6B; } .g-block.nodriver { background: repeating-linear-gradient(45deg, var(--purple), var(--purple) 8px, #7A43B5 8px, #7A43B5 16px); }
.g-block.provisional { background: var(--gold); color: var(--ink); }
.g-block.done { background: #5B5560; } .g-block.leave { background: #ECE7EF; color: var(--muted); box-shadow: none; }
.g-block.warn { outline: 2px solid #F26B5E; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.cal .dow { font-family: var(--head); text-transform: uppercase; font-size: 11.5px; letter-spacing: 1px; color: #fff; background: var(--ink); padding: 7px 8px; border-right: 1px solid #2a252c; }
.cal .day { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px; font-size: 11.5px; }
.cal .day.other { background: #FAF9FB; color: #AAA3AF; }
.cal .day.today { background: var(--gold-100); }
.cal .day .n { font-family: var(--head); font-weight: 700; font-size: 13px; margin-bottom: 3px; display: flex; justify-content: space-between; }
.cal .ev { display: block; border-radius: 4px; padding: 2px 5px; margin-bottom: 2px; color: #fff; background: var(--purple); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal .ev.provisional { background: var(--gold); color: var(--ink); } .cal .ev.completed { background: #5B5560; }
.cal .ev.run { background: #E3F1ED; color: #1F5A4C; } .cal .ev.quote { background: #fff; color: var(--purple); border: 1px dashed var(--purple); }

/* ---------- misc ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.chart-bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bars .bar { width: 100%; max-width: 38px; background: var(--purple); border-radius: 5px 5px 0 0; position: relative; min-height: 2px; }
.chart-bars .b:last-child .bar { background: var(--gold); }
.chart-bars .lbl { font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.chart-bars .val { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.load { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; min-width: 80px; }
.load > div { height: 100%; background: var(--purple); }
.lines-table input { padding: 6px 8px; }
.price-box { background: var(--purple-50); border: 1px solid var(--purple-100); border-radius: var(--radius); padding: 14px 16px; }
.price-box .row { display: flex; justify-content: space-between; padding: 3px 0; }
.price-box .total { border-top: 2px solid var(--gold); margin-top: 6px; padding-top: 8px; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--purple); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { background: linear-gradient(160deg, rgba(12,10,12,.92), rgba(97,39,158,.85)), var(--black); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; }
.login-hero h1 { color: #fff; font-size: 44px; line-height: 1.05; } .login-hero h1 em { color: var(--gold); font-style: normal; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-form form { width: 100%; max-width: 360px; }

/* driver portal */
.driver-job { border-left: 5px solid var(--purple); }
.driver-job.run { border-left-color: #2E7D6B; }
.driver-job.completed { border-left-color: #8B858F; opacity: .85; }
.big-actions .btn { padding: 12px 20px; font-size: 15px; }

@media print {
  .sidebar, .topbar, .no-print, .btn { display: none !important; }
  .app { display: block; } .content { padding: 0; } .card { box-shadow: none; border: 0; }
}
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g-side, .planner { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 250px; z-index: 60; transition: left .2s; }
  .sidebar.open { left: 0; }
  .menu-btn { display: block; }
  .search input { width: 150px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-grid > * { grid-column: span 12 !important; }
  .content { padding: 14px; }
  .login-wrap { grid-template-columns: 1fr; } .login-hero { display: none; }
  .user-chip .name { display: none; }
}
.pill.nc { text-transform: none; }

/* ---------- address lookup ---------- */
.geo-wrap { position: relative; }
.geo-wrap input { padding-right: 30px; }
.geo-pin { position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #C9C2CF; background: transparent; pointer-events: none; }
.geo-wrap.located .geo-pin { border-color: var(--purple); background: var(--purple); }
.geo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(26,23,27,.14); z-index: 120; max-height: 300px; overflow-y: auto; }
.geo-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.geo-item:last-child { border-bottom: 0; }
.geo-item b { display: block; font-weight: 600; color: var(--ink); }
.geo-item span { display: block; font-size: 12px; color: var(--muted); }
.geo-item.active, .geo-item:hover { background: var(--purple-50); }
.geo-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }

/* ---------- route builder (quote page) ---------- */
.route-builder { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #FCFBFD; margin-bottom: 14px; }
.route-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.route-row .marker { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 12px; color: #fff; background: var(--purple); }
.route-row .marker.yard { background: var(--ink); } .route-row .marker.stop { background: var(--gold); color: var(--ink); } .route-row .marker.end { background: #2E7D6B; }
.route-row .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-family: var(--head); margin-bottom: 2px; }
.route-row .tools { display: flex; gap: 2px; }
.route-row .tools .btn { padding: 4px 8px; }
.route-line { margin-left: 13px; border-left: 2px dashed #D9D2DF; height: 8px; margin-bottom: 8px; }
.route-opts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.route-opts .check { margin: 0; }
.route-result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.route-result .totals { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.route-result .totals div { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-family: var(--head); }
.route-result .totals b { display: block; font-size: 22px; color: var(--ink); letter-spacing: 0; }
.route-result .totals .main b { color: var(--purple); }
.route-result table.t td, .route-result table.t th { padding: 6px 8px; font-size: 13px; }
.route-status { font-size: 13px; color: var(--muted); }
.route-status.stale { color: var(--warn); }
