/* ATS Imports – staff admin
   Brand: green #8dc63f, purple #711471, orange #e55300, sky #6caedf */

:root {
  --purple: #711471;
  --purple-deep: #52104f;
  --purple-tint: #f4ecf3;
  --green: #8dc63f;
  --green-ink: #3f6415;      /* green dark enough for text on white */
  --green-tint: #eef6e3;
  --orange: #e55300;
  --orange-ink: #b34100;
  --orange-tint: #fdeee5;
  --sky: #6caedf;
  --sky-ink: #1f5f8f;
  --sky-tint: #e8f2fa;

  --ink: #251a27;
  --ink-2: #5d5360;
  --line: #e3dde4;
  --page: #f7f5f8;
  --white: #fff;

  --radius-s: 6px;
  --radius-m: 10px;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --focus: 0 0 0 3px rgba(108, 174, 223, .55);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.55 var(--font);
  color: var(--ink);
  background: var(--page);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 600; }
a { color: var(--purple); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Four-colour brand stripe: the one signature element, used on the sidebar and sign-in card */
.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--green); }
.stripe i:nth-child(2) { background: var(--sky); }
.stripe i:nth-child(3) { background: var(--orange); }
.stripe i:nth-child(4) { background: var(--purple-deep); }

/* ---------- Admin shell */
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.side {
  background: var(--purple);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side .stripe i:nth-child(4) { background: var(--white); opacity: .85; }

.brand { display: block; padding: 22px 22px 26px; color: var(--white); text-decoration: none; }
.brand-name { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .85rem; opacity: .75; }

.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; }
.nav a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  border-left: 4px solid transparent;
  font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: var(--white); border-left-color: var(--green); }

.who { padding: 16px 22px 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.who-name { display: block; font-weight: 600; margin-bottom: 4px; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--white); }

.main { padding: 32px clamp(18px, 4vw, 48px) 64px; max-width: 1200px; width: 100%; min-width: 0; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.lead { font-size: 1.1rem; font-weight: 500; margin: 0 0 6px; }
.muted { color: var(--ink-2); margin: 0; }

/* ---------- Flash messages */
.flash { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-s); border-left: 4px solid; font-weight: 500; }
.flash-success { background: var(--green-tint); border-color: var(--green); color: var(--green-ink); }
.flash-error { background: var(--orange-tint); border-color: var(--orange); color: var(--orange-ink); }

/* ---------- Forms and buttons */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfc6d1;
  border-radius: var(--radius-s);
  padding: 10px 12px;
  min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: var(--focus); }

.form-error { background: var(--orange-tint); color: var(--orange-ink); border-radius: var(--radius-s); padding: 10px 12px; margin: 0 0 18px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .95rem/1 var(--font);
  min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-deep); }
.btn-secondary { background: var(--white); color: var(--purple); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--purple); }
.btn-block { width: 100%; }

/* ---------- Sign-in page */
.bare { min-height: 100vh; background: var(--purple); display: grid; place-items: center; padding: 24px; }
.bare-main { width: 100%; max-width: 400px; }
.bare .flash { margin-bottom: 14px; }
.login { background: var(--white); border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 18px 40px rgba(40, 6, 38, .35); }
.login-body { padding: 30px 30px 34px; }
.login-brand { margin: 0 0 4px; font-weight: 700; color: var(--purple); }
.login h1 { font-size: 1.45rem; margin-bottom: 22px; }

/* ---------- Small screens: sidebar becomes a top bar */
@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { position: static; height: auto; }
  .brand { padding: 14px 18px 10px; }
  .brand-sub { display: none; }
  .nav { flex: none; flex-direction: row; align-items: flex-end; overflow-x: auto; padding: 0 10px; }
  .nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: var(--radius-s) var(--radius-s) 0 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--green); }
  .who { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; }
  .who-name { margin: 0; }
  .main { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Shared bits for list and form pages */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { margin: 0 0 8px; font-size: .92rem; }
.back a { color: var(--ink-2); text-decoration: none; }
.back a::before { content: "‹ "; }
.back a:hover { color: var(--purple); }
.page-head h1 + .pill { margin-right: auto; }
.count { color: var(--ink-2); margin: 0 0 8px; font-size: .92rem; }
.nowrap { white-space: nowrap; }
.optional { font-weight: 400; color: var(--ink-2); font-size: .85rem; }

.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.segmented { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; }
.segmented a { padding: 7px 14px; border-radius: 4px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="true"] { background: var(--purple); color: var(--white); }
.search { display: flex; gap: 8px; flex: 1; max-width: 420px; min-width: 240px; }
.search input { flex: 1; font: inherit; border: 1px solid #cfc6d1; border-radius: var(--radius-s); padding: 0 12px; min-height: 44px; background: var(--white); }
.search input:focus { outline: none; border-color: var(--sky); box-shadow: var(--focus); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--ink-2); padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfafc; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbfd; }
.table .num { text-align: right; }
.row-link { font-weight: 600; color: var(--ink); text-decoration: none; }
.row-link:hover { color: var(--purple); text-decoration: underline; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 18px; color: var(--ink-2); }

/* Type pills and account status */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pill-merchant { background: var(--purple-tint); color: var(--purple); }
.pill-consignee { background: var(--sky-tint); color: var(--sky-ink); }
.dot { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; white-space: nowrap; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9b0bb; }
.dot-active::before { background: var(--green); }
.dot-invited::before { background: var(--sky); }

/* Empty state */
.empty { padding: 32px 24px; }

/* Form page */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.split > .form:only-child { max-width: 720px; }
.side-panels { display: grid; gap: 16px; }
.side-panels h2 { margin-bottom: 10px; }
.side-panels p { margin: 0 0 12px; }
.side-panels form { margin: 0; }
.form { max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.field legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); cursor: pointer; font-weight: 500; background: var(--white); }
.choice input:checked + span { border-color: var(--purple); background: var(--purple-tint); color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.field textarea { resize: vertical; min-height: 64px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--orange); }
.choice-row[aria-invalid="true"] .choice span { border-color: var(--orange); }
.field-error { color: var(--orange-ink); font-size: .88rem; font-weight: 500; margin: 6px 0 0; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn-danger { background: var(--white); color: var(--orange-ink); border-color: #f1c7ae; }
.btn-danger:hover { background: var(--orange-tint); border-color: var(--orange); }

.share { margin-bottom: 20px; border-left: 4px solid var(--sky); }
.share h2 { margin-bottom: 6px; }
.share p { margin: 0 0 10px; }
.share-input { width: 100%; font: .9rem/1.4 var(--font); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--sky-tint); color: var(--ink); }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* ---------- Package intake */
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.hint { margin: 6px 0 0; font-size: .85rem; color: var(--ink-2); }
.mono-ish { letter-spacing: .04em; font-feature-settings: "tnum"; text-transform: uppercase; }
.logged { margin-bottom: 20px; border-left: 4px solid var(--green); padding: 14px 20px; }
.logged p { margin: 0; }
.logged a { margin-left: 6px; font-weight: 600; }

.combo { position: relative; }
.combo.is-picked [data-combo-input] { border-color: var(--green); background: #fbfdf8; }
.combo-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: 74px;
  margin: 0; padding: 4px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 10px 24px rgba(37, 26, 39, .14);
  max-height: 280px; overflow-y: auto;
}
.combo-list [role="option"] { padding: 9px 10px; border-radius: 4px; cursor: pointer; }
.combo-list [role="option"]:hover, .combo-list [aria-selected="true"] { background: var(--purple-tint); color: var(--purple); }
.combo-empty { padding: 9px 10px; color: var(--ink-2); font-size: .92rem; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; }

/* Package status pills */
.pill-status-received { background: #efecf0; color: var(--ink-2); }
.pill-status-in_transit { background: var(--sky-tint); color: var(--sky-ink); }
.pill-status-awaiting_customs { background: var(--purple-tint); color: var(--purple); }
.pill-status-ready { background: var(--green-tint); color: var(--green-ink); }
.pill-status-collected { background: var(--white); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.dot-unpaid::before { background: var(--orange); }

@media (max-width: 760px) {
  .field-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .field-row-3 { grid-template-columns: 1fr; }
}

/* ---------- Package list */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--purple); border-bottom-color: var(--purple); }
.count-due { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--orange-ink); font-weight: 600; }

.bulkbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px 10px 16px; margin-bottom: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.bulkbar.is-active { border-color: var(--purple); background: var(--purple-tint); }
.bulk-count { color: var(--ink-2); font-size: .92rem; }
.bulkbar.is-active .bulk-count { color: var(--purple); font-weight: 600; }
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bulk-actions select, .inline-form select {
  font: inherit; min-height: 44px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); background: var(--white); color: var(--ink);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.table .check { width: 44px; padding-right: 0; }
.table .check input { width: 18px; height: 18px; accent-color: var(--purple); cursor: pointer; }
.table tr.is-selected td { background: #fdfbfd; }
.table tr.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--purple); }
.table .sub { display: block; font-size: .84rem; color: var(--ink-2); font-weight: 400; }
.tracking { letter-spacing: .02em; }
.due { font-weight: 600; }
.paid { color: var(--green-ink); font-weight: 600; }

/* Package page side panels */
.inline-form { display: flex; gap: 8px; }
.inline-form select { flex: 1; min-width: 0; }
.side-panels { min-width: 0; }
.link-plain { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-plain:hover { color: var(--purple); }
.danger-zone { text-align: right; }

/* ---------- Dashboard */
.dash-head h1 { margin-bottom: 2px; }
.dash-head p { margin: 0; }
.section-title { font-size: 1rem; font-weight: 600; margin: 28px 0 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-head a { font-weight: 600; font-size: .92rem; }

/* The package flow: a real sequence, so the steps are joined left to right */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.flow-step { position: relative; border-top: 5px solid var(--flow-colour, var(--line)); }
.flow-step + .flow-step { border-left: 1px solid var(--line); }
.flow-step + .flow-step::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px;
  background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.flow-step a { display: block; padding: 18px 20px 20px; text-decoration: none; color: var(--ink); height: 100%; }
.flow-step a:hover { background: #fcfbfd; }
.flow-n { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--flow-ink, var(--ink)); }
.flow-label { display: block; margin-top: 6px; font-weight: 500; color: var(--ink-2); }
.flow-note { display: block; font-size: .8rem; font-weight: 400; }
.flow-step.is-zero .flow-n { color: #c9c1cb; }
.flow-received   { --flow-colour: #cfc6d1; }
.flow-in_transit { --flow-colour: var(--sky); --flow-ink: var(--sky-ink); }
.flow-awaiting_customs    { --flow-colour: var(--purple); --flow-ink: var(--purple); }
.flow-ready      { --flow-colour: var(--green); --flow-ink: var(--green-ink); }
.flow-collected  { --flow-colour: var(--ink-2); }

.money { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.money-card { display: block; text-decoration: none; color: var(--ink); padding: 20px 24px; }
.money-card:hover { border-color: #cfc6d1; }
.money-label { display: block; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.money-amount { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 2px; }
.money-unpaid .money-amount { color: var(--orange-ink); }
.money-sub { color: var(--ink-2); font-size: .92rem; }

.attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.attention .panel { border-left: 4px solid var(--orange); padding: 18px 22px; }
.attention h3 { font-size: 1rem; margin: 0 0 4px; }
.attention .muted { margin-bottom: 10px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.mini-list a { font-weight: 600; letter-spacing: .02em; }
.mini-list span { color: var(--ink-2); }
.more { margin: 8px 0 0; font-size: .92rem; font-weight: 600; }

@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .flow-step:nth-child(4n+1)::before { display: block; }
  .flow-step:nth-child(odd) { border-left: 0; }
  .flow-step:nth-child(odd)::before { display: none; }
  .money { grid-template-columns: 1fr; }
}


/* 9 stages: three per row, joined arrows within a row */
.flow { grid-template-columns: repeat(3, 1fr); }
.flow-step:nth-child(3n+1) { border-left: 0; }
.flow-step:nth-child(3n+1)::before { display: none; }
@media (max-width: 1100px) {
  .flow-n { font-size: 2rem; }
  .flow-step a { padding: 16px 14px 18px; }
}

/* System check */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-state { flex: none; width: 52px; text-align: center; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 0; }
.check-ok .check-state { background: var(--green-tint); color: var(--green-ink); }
.check-warn .check-state { background: var(--sky-tint); color: var(--sky-ink); }
.check-fail .check-state { background: var(--orange-tint); color: var(--orange-ink); }
.split-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.split-even h2 { margin-bottom: 6px; }
.split-even p { margin: 0 0 14px; }
.plain-links { margin: 0; padding-left: 18px; font-size: .9rem; overflow-wrap: anywhere; }
.plain-links li { margin-bottom: 4px; }
.check-list .sub { display: block; color: var(--ink-2); font-size: .9rem; margin-top: 2px; }

/* ---------- Staff */
.who-link { display: block; color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 6px; }
.who-link:hover { color: var(--white); }
.table tr.is-disabled td { color: var(--ink-2); }
.table tr.is-disabled .row-link { color: var(--ink-2); }
.temp-password { font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; max-width: 320px; }
.role-list { display: grid; gap: 8px; }
.role-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); cursor: pointer; }
.role-option input { margin-top: 4px; accent-color: var(--purple); width: 18px; height: 18px; }
.role-option:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.role-option .sub { display: block; color: var(--ink-2); font-size: .88rem; }
.narrow-form { max-width: 460px; }

/* ---------- Package history */
.history { margin-top: 8px; max-width: 900px; }
.timeline { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); position: relative; }
.timeline li:first-child { border-top: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--tl, var(--line)); }
.tl-when { font-weight: 600; font-size: .9rem; }
.tl-when span { display: block; font-weight: 400; color: var(--ink-2); }
.tl-what strong { display: block; }
.tl-detail { display: block; margin-top: 2px; }
.tl-who { display: block; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.tl-created, .tl-prealerted { --tl: var(--sky); }
.tl-status { --tl: var(--purple); }
.tl-paid { --tl: var(--green); }
.tl-unpaid { --tl: var(--orange); }
.tl-email { --tl: #cfc6d1; }
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
  .tl-when span { display: inline; margin-left: 6px; }
}

/* ---------- Runsheets and deliveries */
.note-bar { padding: 12px 18px; margin-bottom: 18px; border-left: 4px solid var(--sky); }
.note-bar.warn { border-left-color: var(--orange); }
.note-bar a { font-weight: 600; margin-left: 6px; }
.runsheet-code { font-size: 1.05rem; }
.short-input { max-width: 160px; }
.check-label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-label input { width: 18px; height: 18px; accent-color: var(--purple); }
.ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ready-card { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding: 18px 20px; border-top: 5px solid var(--green); }
.ready-card:hover { border-color: #cfc6d1; border-top-color: var(--green); }
.ready-code { font-size: 1.9rem; font-weight: 800; color: var(--purple); line-height: 1; }
.ready-areas { color: var(--ink-2); font-size: .92rem; }
.ready-n { font-weight: 700; margin-top: 8px; }
.ready-go { color: var(--purple); font-weight: 600; font-size: .92rem; }
.progress { display: inline-block; width: 70px; height: 8px; border-radius: 99px; background: var(--line); vertical-align: middle; position: relative; overflow: hidden; }
.progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--green); }
.sheet-setup { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; padding: 16px 20px 0; }
.sheet-setup .field { min-width: 200px; }
.sheet-setup select, .sheet-setup input { width: 100%; font: inherit; min-height: 44px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); background: var(--white); }
.run-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.run-stats .panel { padding: 14px 18px; }
.stat-n { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-n.ok { color: var(--green-ink); } .stat-n.bad { color: var(--orange-ink); }
.stat-l { color: var(--ink-2); font-size: .9rem; }
.note-after { margin-top: 12px; }
.pill-status-out_for_delivery { background: var(--sky); color: var(--white); }
.pill-status-delivered { background: var(--white); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green); }
.flow-out_for_delivery { --flow-colour: var(--sky); --flow-ink: var(--sky-ink); }
.flow-done { --flow-colour: var(--ink-2); }
.rs-filter { font: inherit; min-height: 44px; padding: 0 8px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); background: var(--white); max-width: 170px; }

/* ---------- Payments and receipts */
.pay-list li { font-size: .9rem; }
.pay-list li.is-void a, .pay-list li.is-void span { text-decoration: line-through; color: var(--ink-2); }
.owed { font-weight: 700; color: var(--orange-ink); margin: 0 0 12px; }
.pay-table .amount-input { width: 110px; text-align: right; font: inherit; min-height: 40px; padding: 6px 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); }
.pay-table .amount-input:focus { outline: none; border-color: var(--sky); box-shadow: var(--focus); }
.pay-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.fill-btn { margin-left: 6px; font-size: .85rem; }
.pay-details { margin-top: 16px; max-width: 720px; }
.day-pick input { font: inherit; min-height: 44px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); }
.total-stat { border-top: 4px solid var(--purple); }
.receipt { position: relative; }
.receipt-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head p { margin: 0; }
.receipt-biz { font-weight: 800; font-size: 1.2rem; color: var(--purple); }
.receipt-head dl { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin: 0; }
.receipt-head dt { color: var(--ink-2); } .receipt-head dd { margin: 0; font-weight: 600; }
.receipt-lines { width: 100%; border-collapse: collapse; }
.receipt-lines th, .receipt-lines td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.receipt-lines .num { text-align: right; }
.receipt-lines tfoot td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; border-top: 2px solid var(--ink); }
.receipt-lines small { color: var(--ink-2); }
.receipt-meta { margin: 10px 0 0; color: var(--ink-2); }
.receipt.is-void .receipt-lines, .receipt.is-void .receipt-head { opacity: .55; }
.void-stamp { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-size: 4rem; font-weight: 800; color: var(--orange); border: 5px solid var(--orange); padding: 0 18px; border-radius: 10px; opacity: .8; margin: 0; }
.void-note { color: var(--orange-ink); font-weight: 600; }

/* ---------- Reports */
.period-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; }
.period-bar .segmented { flex-wrap: wrap; }
.custom-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.custom-range input[type=date] { font: inherit; min-height: 40px; padding: 0 8px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); }
.report-stats .stat-n { font-size: 1.35rem; }
.report-card { margin-bottom: 18px; }
.report-card.panel { padding: 18px 22px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.report-head h2 { font-size: 1.05rem; }
.report-head a { font-weight: 600; font-size: .9rem; }
.chart { width: 100%; height: 240px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-2); font-size: 11px; font-family: var(--font); }
.legend { margin: 0 0 6px; font-size: .88rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); margin-left: 8px; }
.legend .key:first-child { margin-left: 0; }
.chart-data { margin-top: 10px; }
.chart-data summary { cursor: pointer; font-weight: 600; color: var(--purple); font-size: .9rem; }
.chart-data .table-wrap { margin-top: 10px; }
.method-split { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.method-split li { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.ms-bar { height: 10px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.ms-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--purple); border-radius: 99px; }
.ms-val { font-weight: 600; white-space: nowrap; }
.ms-val small { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
@media (max-width: 600px) { .chart { height: 180px; } .method-split li { grid-template-columns: 90px 1fr; } .ms-val { grid-column: 2; } }
.report-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.report-stats .stat-n { font-size: 1.25rem; white-space: nowrap; }
.report-pair { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1300px) { .report-pair { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* ---------- Messages */
.nav-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--orange); color: var(--white); font-size: .78rem; font-weight: 700; }
.msg-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.msg { padding: 16px 20px; border-left: 4px solid #25d366; }
.msg-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.msg-head .muted { font-size: .88rem; }
.msg-body { margin: 10px 0 12px; padding: 10px 14px; background: #f0faf3; border-radius: 10px 10px 10px 2px; max-width: 60ch; white-space: pre-wrap; }
.msg-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg-actions form { margin: 0; }
.wa-btn { background: #128c4a; }
.wa-btn:hover { background: #0e7a3f; }
.msg-cell { max-width: 420px; font-size: .9rem; }
.sub.err { color: var(--orange-ink); }
.test-number { font: inherit; min-height: 44px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); flex: 1; min-width: 0; }
.attn-msg { margin-top: 16px; }
@media (max-width: 600px) { .table th.msg-col, .table td.msg-cell { display: none; } }

/* ---------- Scan */
.scan-panel { max-width: 860px; }
.scan-modes .choice span { min-height: 40px; padding: 0 14px; font-size: .95rem; }
.scan-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-input { flex: 1; min-width: 220px; font: 700 1.35rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; min-height: 56px; padding: 0 16px;
  border: 2px solid var(--purple); border-radius: var(--radius-m); background: var(--white); color: var(--ink); }
.scan-input:focus { outline: none; box-shadow: var(--focus); }
.scan-input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--ink-2); }
.scan-input-row .btn { min-height: 56px; }
.camera { margin-top: 12px; }
.camera video { width: 100%; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); background: #000; display: block; margin-bottom: 8px; }
.scan-summary { max-width: 860px; margin: 16px 0 8px; font-weight: 600; color: var(--ink-2); }
.scan-log { list-style: none; margin: 0; padding: 0; max-width: 860px; display: grid; gap: 6px; }
.scan-item { display: grid; grid-template-columns: 110px minmax(140px, auto) 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; animation: scanIn .25s ease-out; }
.scan-tag { font-weight: 700; font-size: .85rem; }
.scan-track { font-weight: 700; letter-spacing: .03em; overflow-wrap: anywhere; }
.scan-msg { color: var(--ink-2); font-size: .92rem; }
.scan-updated, .scan-lookup { border-left-color: var(--green); }
.scan-updated .scan-tag, .scan-lookup .scan-tag { color: var(--green-ink); }
.scan-same { border-left-color: var(--sky); }
.scan-blocked, .scan-not_found, .scan-empty { border-left-color: var(--orange); background: #fffaf7; }
.scan-blocked .scan-tag, .scan-not_found .scan-tag { color: var(--orange-ink); }
@keyframes scanIn { from { transform: translateY(-4px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .scan-item { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Origins and pathway statuses */
.pill-status-label_created { background: var(--white); color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--sky); }
.pill-status-at_us_warehouse { background: #e9eef8; color: #2d4a7a; }
.flow-label_created { --flow-colour: #b7d6ee; --flow-ink: var(--sky-ink); }
.flow-at_us_warehouse { --flow-colour: #7f9bc9; --flow-ink: #2d4a7a; }
.flow-received { --flow-colour: #cfc6d1; }
.origin-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 1px 7px; border-radius: 4px; background: var(--page); color: var(--ink-2); vertical-align: 1px; }
.page-head .origin-tag { font-size: .85rem; padding: 3px 10px; margin-right: auto; }
.page-head h1 + .pill + .origin-tag { margin-left: -8px; }
.origin-us_air { background: #e8f2fa; color: var(--sky-ink); }
.origin-us_sea { background: #e6eef9; color: #2d4a7a; }
.origin-local_dropoff, .origin-local_pickup { background: var(--green-tint); color: var(--green-ink); }
.origin-choice .choice span { min-height: 40px; padding: 0 14px; }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .flow-step:nth-child(3n+1)::before { display: block; }
  .flow-step:nth-child(odd) { border-left: 0; }
  .flow-step:nth-child(odd)::before { display: none; }
}
.stack-form { display: grid; gap: 8px; } .stack-form label { font-weight: 600; font-size: .9rem; } .stack-form input { font: inherit; min-height: 42px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); }

.pill-status-to_centre { background: var(--green-tint); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green); }
.flow-to_centre { --flow-colour: #b9dc8a; --flow-ink: var(--green-ink); }
.pickup-table { margin-bottom: 8px; }
.field .check-label { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-weight: 500; font-size: inherit; }
.auto-track { margin: 0 0 18px; padding: 10px 14px; background: var(--green-tint); border-radius: var(--radius-s); color: var(--green-ink); }
.auto-track .tracking { letter-spacing: .04em; }
.override-check { font-size: .88rem; color: var(--ink-2); white-space: nowrap; }

/* ---------- Charges */
.charges { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px 12px; margin: 0 0 18px; }
.charges legend { font-weight: 700; padding: 0 6px; }
.charges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; align-items: end; }
.charges input[readonly] { background: var(--page); color: var(--ink-2); }
.charges-total { display: flex; flex-direction: column; justify-content: flex-end; min-height: 44px; }
.charges-total .label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.charges-total strong { font-size: 1.25rem; min-height: 44px; display: flex; align-items: center; }
.charge-facts { margin: 4px 0 12px; font-size: .92rem; }
@media (max-width: 700px) { .charges-grid { grid-template-columns: 1fr 1fr; } }
.charge-line { display: block; font-size: .82rem; color: var(--ink-2); margin-top: 2px; }
.rates-intro { max-width: 70ch; margin: -8px 0 16px; }
.rates-table th[scope=row] { font-weight: 600; white-space: nowrap; background: none; font-size: .94rem; color: var(--ink); }
.rate-input { width: 110px; font: inherit; min-height: 40px; padding: 6px 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); text-align: right; }
.rate-input[aria-invalid=true] { border-color: var(--orange); }
.charges-total strong { white-space: nowrap; font-size: 1.1rem; }
.customs { border-color: #cdd9ee; }
.money-pair { display: flex; gap: 6px; }
.money-pair input { flex: 1; min-width: 0; }
.money-pair select { font: inherit; min-height: 44px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); background: var(--white); padding: 0 6px; }
.tax-lines { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; margin: 4px 0 12px; max-width: 420px; font-size: .95rem; }
.tax-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tax-lines .tax-total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.fee-note { display: flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--ink-2); }
.charges .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; margin-top: 10px; }
.settings-grid .rate-input { width: 100%; max-width: 160px; }
.customs .charges-grid { grid-template-columns: 1fr 1fr; } .money-pair input { min-width: 90px; }
.money-pair select { flex: none; width: 78px; } .money-pair input { flex: 1; }
.na { font-size: .85rem; } .value-field { max-width: 360px; }
.fill-box { margin-top: 18px; } .fill-box h2 { margin-bottom: 6px; } .fill-box p { margin: 0 0 12px; max-width: 72ch; }
.taxes-box { margin-top: 18px; }
.taxes-box h2 { margin-bottom: 6px; }
.tax-table select { font: inherit; min-height: 40px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); background: var(--white); padding: 0 6px; }
.tax-name { font: inherit; min-height: 40px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); width: 100%; min-width: 180px; }
.order-input { width: 56px; text-align: center; }
.own-rate { font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.tax-table .new-row input.tax-name::placeholder { color: var(--ink-2); }
.brand-logo { display: block; max-height: 44px; max-width: 180px; object-fit: contain; margin-bottom: 6px; }
.receipt-logo { display: block; max-height: 48px; max-width: 200px; object-fit: contain; margin-bottom: 4px; }
.side .brand-logo { background: #fff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; max-height: 36px; margin-bottom: 10px; }

/* ---------- Branding page */
.brand-split { align-items: start; }
.brand-card { margin-bottom: 18px; }
.brand-card h2 { margin-bottom: 10px; }
.logo-frame { display: inline-block; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius-m); background: #fff; margin-bottom: 10px; }
.logo-preview { display: block; max-height: 60px; max-width: 260px; }
.color-row { display: grid; grid-template-columns: 48px 1fr 110px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.color-row input[type=color] { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.color-text label { display: block; font-weight: 600; }
.color-text .hint { margin: 0; }
.hex-input { font: 600 .95rem ui-monospace, Menlo, Consolas, monospace; min-height: 40px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); text-transform: lowercase; }
.contrast-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--orange-tint); color: var(--orange-ink); font-weight: 600; font-size: .92rem; }
.brand-preview { --p: #711471; --s: #8dc63f; --a: #e55300; --i: #6caedf; display: grid; grid-template-columns: 140px 1fr; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; min-height: 220px; font-size: .88rem; }
.bp-side { background: var(--p); color: #fff; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.bp-stripe { display: flex; height: 5px; margin: 0 -12px 10px; }
.bp-stripe i { flex: 1; } .bp-stripe i:nth-child(1) { background: var(--s); } .bp-stripe i:nth-child(2) { background: var(--i); } .bp-stripe i:nth-child(3) { background: var(--a); } .bp-stripe i:nth-child(4) { background: #fff; opacity: .6; }
.bp-logo { background: #fff; padding: 4px 6px; border-radius: 6px; max-width: 110px; max-height: 30px; object-fit: contain; }
.bp-nav { padding: 5px 8px; border-radius: 5px; opacity: .85; } .bp-nav.is-on { background: rgba(255,255,255,.16); opacity: 1; box-shadow: inset 3px 0 0 var(--s); }
.bp-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--page); }
.bp-btn { align-self: flex-start; background: var(--p); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 6px; }
.bp-row { display: flex; gap: 8px; align-items: center; }
.bp-pill { padding: 2px 10px; border-radius: 99px; font-weight: 700; font-size: .8rem; }
.bp-ok { background: color-mix(in srgb, var(--s) 18%, #fff); color: color-mix(in srgb, var(--s) 55%, #000); }
.bp-air { background: color-mix(in srgb, var(--i) 18%, #fff); color: color-mix(in srgb, var(--i) 55%, #000); }
.bp-owed { color: color-mix(in srgb, var(--a) 80%, #000); font-weight: 700; }
.bp-link { color: var(--p); text-decoration: underline; font-weight: 600; }
@media (max-width: 900px) { .brand-preview { grid-template-columns: 110px 1fr; } }
/* Logos: an explicit height, so SVGs without their own size never collapse */
.brand-logo { height: 40px; width: auto; }
.side .brand-logo { height: 36px; }
.logo-preview { height: 56px; width: auto; max-width: 280px; }
.receipt-logo { height: 44px; width: auto; }
.bp-logo { height: 26px; width: auto; }
.hide-name-form { margin: 0 0 8px; } .hide-name-form .check-label { font-size: .92rem; }
.name-form { display: flex; gap: 10px; flex-wrap: wrap; } .name-form input { flex: 1; min-width: 220px; font: inherit; min-height: 44px; padding: 0 12px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); }

/* ---------- Help pages */
.help-body { max-width: 820px; line-height: 1.6; }
.help-body h2 { margin: 4px 0 6px; font-size: 1.5rem; }
.help-body h3 { margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.help-body li { margin-bottom: 4px; }
.help-shot { margin: 14px 0 18px; }
.help-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.help-shot figcaption { font-size: .85rem; color: var(--muted, #6b6070); margin-top: 6px; }
.help-code { background: #1f1a21; color: #f5f3f6; padding: 12px 14px; border-radius: var(--radius-s); overflow-x: auto; font-size: .88rem; }
.help-tabs { margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- Maps (route optimisation) */
.map { height: 320px; border-radius: var(--radius-m); border: 1px solid var(--line); z-index: 0; }
.map-view { height: 360px; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.map-tools input { flex: 1; min-width: 200px; min-height: 40px; padding: 0 10px; border: 1px solid #cfc6d1; border-radius: var(--radius-s); font: inherit; }
.map-msg { font-size: .88rem; color: var(--muted); min-height: 1.2em; margin: 2px 0 8px; }
.pin-source { font-size: .88rem; color: var(--muted); }
.pin-flag { background: var(--orange-tint); color: var(--orange-ink); padding: 8px 10px; border-radius: var(--radius-s); font-weight: 600; font-size: .9rem; }
.route-num span { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #711471; color: #fff; font: 700 12px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.stop-order { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.stop-order li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stop-order .n { width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.stop-order .n.none { background: var(--orange); }
.stop-order .mv button { min-width: 36px; min-height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.map-note { font-size: .85rem; color: #8a4b00; margin: 6px 0 0; }
