:root {
  --ink: #0f2740;
  --muted: #56677c;
  --line: #d9e0ea;
  --paper: #f4f6f9;
  --card: #ffffff;
  --navy: #073b72;
  --navy-dark: #052c56;
  --navy-tint: #e6eef7;
  --gold: #d8a132;
  --sand: #f8edd2;
  --sand-dark: #d8a132;
  --coral: #ff4a43;
  --coral-text: #b92c26;
  --coral-tint: #fdeceb;
  --ok: #1c6b4a;
  --radius: 10px;
  --display: Aptos, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --body: Aptos, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono: "Aptos Mono", "Cascadia Mono", Consolas, ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body); overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--navy); }
main:focus { outline: none; }
.noscript { padding: 2rem; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.1rem; border: 1px solid transparent; border-radius: 8px;
  font: 600 .95rem var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: transparent; border-color: var(--sand-dark); color: var(--ink); }
.btn-secondary:hover { background: var(--sand); }
.btn-danger { background: transparent; border-color: var(--coral-text); color: var(--coral-text); }
.btn-danger:hover { background: var(--coral-tint); }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible, .btn-link:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 2px;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field > span, .field-label { font-size: .875rem; font-weight: 600; }
.field small { color: var(--muted); font-size: .8rem; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; font: inherit; color: inherit;
  background: #fff; border: 1px solid #b7b0a0; border-radius: 8px;
}
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; accent-color: var(--navy); }
.grid { display: grid; gap: 1rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: flex; gap: .65rem; align-items: flex-start; }
.check input { margin-top: 3px; }
.alert { padding: .7rem .9rem; border-radius: 8px; background: var(--coral-tint); color: #8f201b; border: 1px solid #f3c2bf; }
.notice { padding: .8rem 1rem; border-radius: 8px; background: var(--navy-tint); border: 1px solid #bcd0e6; }

/* Sign-in */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-brand {
  background: var(--navy); color: #f4f7fb; padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; overflow: hidden;
}
.auth-brand h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 11ch; }
.auth-brand p { max-width: 38ch; margin-top: 1rem; color: #d3e0ef; font-size: 1.05rem; }
.auth-panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 1rem; }
.auth-form h2 { font-size: 1.7rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 400 1.3rem var(--display); color: inherit; text-decoration: none; letter-spacing: .01em; }
.logo img { width: 38px; height: 34px; flex: none; }
.logo-text { display: grid; line-height: 1.1; }
.logo-text small { font: 400 .75rem/1.2 var(--body); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.auth-logo { width: 170px; height: 170px; margin: 0 auto; }
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; }
.gate:focus { outline: none; }
.gate-card { width: 100%; max-width: 520px; }
.gate-brand { color: var(--navy); }
.code-input { font: 600 1.5rem var(--mono); letter-spacing: .3em; text-align: center; }
.legal { max-width: 800px; display: grid; gap: 1rem; }
.legal h2 { margin-top: .75rem; }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
mark.todo { background: var(--sand); color: var(--ink); padding: 0 .25rem; border-radius: 3px; }
.site-footer { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; padding: 1.25rem; font-size: .875rem; }
.legal-links { display: flex; gap: 1rem; }
.account-data { margin-top: 1rem; }

/* The luggage tag: the portal's signature element */
.tag {
  position: relative; background: var(--sand); color: var(--ink); border-radius: 14px;
  padding: 1.25rem 1.5rem 1.25rem 4.2rem; max-width: 500px;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px), 0 34px);
}
.tag::before {
  content: ""; position: absolute; left: 1.45rem; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--tag-hole, var(--paper)); box-shadow: inset 0 0 0 3px var(--sand-dark);
}
.auth-brand .tag { --tag-hole: var(--navy); transform: rotate(-3deg); transform-origin: left center; }
.tag-route { display: flex; align-items: center; gap: .9rem; font: 600 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: .02em; }
.tag-route svg { width: .8em; height: .8em; color: var(--coral); flex: none; }
.tag-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .6rem; font-size: .875rem; }
.tag-ref { font: 600 .95rem var(--mono); }

/* App shell */
.topbar { background: #fff; color: var(--navy); border-bottom: 4px solid var(--gold); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; margin-left: auto; }
.topnav a, .topnav button {
  color: var(--navy); text-decoration: none; padding: .55rem .8rem; border-radius: 6px; background: none; border: 0;
  font: 400 .95rem var(--body); cursor: pointer; display: inline-flex; align-items: center; min-height: 44px;
}
.topnav a:hover, .topnav button:hover { background: var(--navy-tint); }
.topnav a[aria-current=page] { background: var(--navy); color: #fff; }
.topnav a:focus-visible, .topnav button:focus-visible, .logo:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; }
.page { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stack { display: grid; gap: 1rem; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat b { display: block; font: 600 2rem/1.1 var(--display); }
.section-title { margin-bottom: .75rem; }
.shipments { display: grid; gap: .6rem; }
.shipment {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem;
  text-decoration: none; color: inherit; transition: border-color .15s;
}
.shipment:hover { border-color: var(--navy); }
.shipment-route { font: 600 1.35rem var(--display); letter-spacing: .02em; display: flex; align-items: center; gap: .4rem; }
.shipment-route svg { width: 16px; height: 16px; color: var(--coral); }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--sand); white-space: nowrap; }
.status-Delivered { background: var(--navy-tint); color: var(--ok); }
.status-Cancelled { background: #e8edf3; color: var(--muted); }
.empty { text-align: center; padding: 3.5rem 1.5rem; display: grid; justify-items: center; gap: .75rem; }

/* Wizard */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.steps { list-style: none; display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; counter-reset: step; flex-wrap: wrap; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); padding-right: .5rem; }
.steps li::before {
  content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--sand-dark); font: 600 .8rem var(--display);
}
.steps li[aria-current=step] { color: var(--ink); font-weight: 600; }
.steps li[aria-current=step]::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps li.done::before { background: var(--sand); }
.item-row { display: grid; grid-template-columns: minmax(130px, 1.6fr) 72px 84px repeat(3, 78px) 36px; gap: .6rem; align-items: end; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.item-row input[type=number] { padding-inline: .5rem; }
.item-weight { grid-column: 1 / -1; color: var(--muted); }
.step-price { font-weight: 600; }
.step-price:empty { display: none; }
.unit-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.unit-choice legend { font: 600 .875rem var(--body); margin-bottom: .25rem; }
.unit-option { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.item-row:last-of-type { border-bottom: 0; }
.icon-btn { width: 36px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; border-radius: 6px; cursor: pointer; }
.icon-btn:hover:not([disabled]) { background: var(--coral-tint); color: var(--coral-text); }
.icon-btn[disabled] { visibility: hidden; }
.wizard-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.options { display: grid; gap: .75rem; }
.option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.option:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-tint); }
.option-price { font: 600 1.25rem var(--display); white-space: nowrap; text-align: right; }
.summary { position: sticky; top: 1rem; display: grid; gap: .75rem; }
.summary .tag { padding: .8rem 1rem .8rem 2.9rem; clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px); }
.summary .tag::before { left: .95rem; width: 14px; height: 14px; margin-top: -7px; --tag-hole: var(--card); }
.summary .tag-route { font-size: 1.9rem; gap: .5rem; }
.lines { display: grid; gap: .4rem; font-size: .9rem; margin: 0; }
.lines div { display: flex; justify-content: space-between; gap: 1rem; }
.lines dt { color: var(--muted); }
.lines dd { margin: 0; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: .6rem; font-weight: 600; }
.total b { font: 600 1.5rem var(--display); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 1.05rem var(--display); padding: 0; margin-bottom: .75rem; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.declaration summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.declaration ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .9rem; color: var(--muted); }

/* Booking details */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.detail .tag { max-width: none; margin-bottom: 1.25rem; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .25rem; }
.staff-filters { margin-bottom: 1rem; }
.restricted-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.restricted-grid li { display: grid; gap: .1rem; justify-items: center; text-align: center; padding: .7rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .875rem; line-height: 1.25; }
.restricted-pic { font-size: 2.2rem; line-height: 1.2; }
.restricted-confirm { padding: .7rem; border: 2px solid var(--gold); border-radius: 8px; background: var(--sand); }
.check-prompt { color: var(--coral-text) !important; font-weight: 600; }
.relief-box { padding: .9rem; border: 1px solid var(--line); border-radius: 8px; }
.outbox-row { grid-template-columns: minmax(0, 1fr) auto; }
.outbox-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: .4rem 0 0; }
.goods-kind { display: grid; gap: .5rem; }
.goods-row { border-bottom: 1px dashed var(--line); padding-bottom: .9rem; display: grid; gap: .6rem; }
.goods-fields { display: grid; grid-template-columns: minmax(150px, 1fr) 110px 70px 110px 36px; gap: .6rem; align-items: end; }
.bulb { display: flex; gap: .6rem; padding: .7rem .8rem; border-radius: 8px; background: var(--sand); font-size: .9rem; }
.bulb-warn { outline: 2px solid var(--gold); }
.bulb-icon { font-size: 1.25rem; line-height: 1.2; }
.bulb-choices { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.bulb-choice { min-height: 40px; padding: .35rem .65rem; border: 1px solid var(--sand-dark); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer; text-align: left; }
.bulb-choice:hover { background: var(--navy-tint); }
.duty-box { margin-top: .75rem; padding: .9rem; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: .5rem; }
.goods-table { margin-top: .25rem; }
@media (max-width: 760px) {
  .goods-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goods-fields .field:first-child { grid-column: 1 / -1; }
  .goods-fields .icon-btn { justify-self: end; }
}
.carrier-lines { margin-top: .6rem; }
.may-apply { margin-top: .5rem; font-size: .875rem; }
.may-apply summary { cursor: pointer; }
.may-apply ul { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.user-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 170px 300px; align-items: end; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem;
}
.user-row .user-info { align-self: center; overflow-wrap: anywhere; }
.temp-password { font-weight: 600; user-select: all; background: var(--card); padding: .1rem .4rem; border-radius: 4px; }
.password-form { max-width: 460px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1rem; align-items: start; }
.rights { display: grid; gap: .5rem; }
.rights legend { margin-bottom: .5rem; }
.select-all { font-weight: 600; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.role-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.user-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .user-row { grid-template-columns: minmax(0, 1fr); }
  .user-actions { justify-content: flex-start; }
}
.postcode-row { display: flex; gap: .5rem; }
.postcode-row .btn { flex: none; padding-inline: .8rem; }
.postcode-search select { margin-top: .4rem; }
.field small.postcode-error { color: var(--coral-text); }
.track li { font-size: .8rem; color: var(--muted); padding-top: .6rem; border-top: 4px solid var(--line); }
.track li.reached { border-top-color: var(--navy); color: var(--ink); font-weight: 600; }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.events time { display: block; font-size: .8rem; color: var(--muted); }
.addr { font-style: normal; font-size: .95rem; white-space: pre-line; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: .35rem .5rem .35rem 0; }
td { padding: .5rem .5rem .5rem 0; border-bottom: 1px solid #e8edf3; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; padding-right: 0; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; width: calc(100% - 2rem); max-width: 420px; color: inherit; background: var(--card); }
dialog::backdrop { background: rgba(5, 44, 86, .45); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }

/* iPad in either direction: the item name gets its own line, so it isn't cut off. */
@media (max-width: 1180px) {
  .item-row { grid-template-columns: repeat(5, minmax(0, 1fr)) 44px; }
  .item-row .item-type { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .auth, .wizard, .detail { grid-template-columns: minmax(0, 1fr); }
  .auth { min-height: 0; }
  .auth-brand { gap: 1.5rem; padding-bottom: 2.5rem; }
  .auth-brand .tag { display: none; }
  .summary { position: static; order: -1; }
  .shipment { grid-template-columns: minmax(0, 1fr) auto; }
  .shipment-info { grid-column: 1 / -1; grid-row: 2; }
  .shipment-total { grid-column: 2; grid-row: 1; text-align: right; }
  .shipment-status { grid-column: 1 / -1; grid-row: 3; }
}
@media (pointer: coarse) {
  .icon-btn { width: 44px; }
  .review-head .btn-link { min-height: 44px; padding: .5rem 0; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .page { padding: 1.25rem 1rem 3rem; }
  .topbar-inner { padding: .5rem 1rem; gap: .25rem; }
  .topnav { margin-left: 0; width: 100%; }
  .topnav a, .topnav button { padding-inline: .6rem; }
  td.nowrap { white-space: normal; }
  .item-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item-row .icon-btn { grid-column: 3; justify-self: end; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .stat b { font-size: 1.5rem; }
  .card { padding: 1rem; }
  .stats { gap: .5rem; }
  .stat { padding: .75rem; }
  .option { grid-template-columns: auto minmax(0, 1fr); }
  .option-price { grid-column: 2; text-align: left; }
  .track { grid-template-columns: minmax(0, 1fr); }
  .track li { border-top: 0; border-left: 4px solid var(--line); padding: .25rem 0 .25rem .6rem; }
  .track li.reached { border-left-color: var(--navy); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body { background: #fff; }
  .topbar, .page-head .btn, .no-print, dialog { display: none !important; }
  .page { padding: 0; max-width: none; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .card { break-inside: avoid; }
  .tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Sign-in links and guest checkout */
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; font-size: .875rem; }
.guest-form { max-width: 560px; }

.password-box { display: flex; gap: .5rem; align-items: stretch; }
.password-box input { flex: 1 1 auto; min-width: 0; width: auto; }
.password-toggle { flex: none; min-width: 4.25rem; min-height: 44px; padding: 0 .75rem; background: var(--card); color: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); font: 600 .9375rem var(--body); cursor: pointer; }
.password-toggle:hover { background: var(--navy-tint); }
.password-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.nav-group { margin-left: .5rem; padding: .15rem 0 .15rem .75rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }
.stats-wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-button { display: block; width: 100%; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.stat-button:hover { border-color: var(--navy); }
.stat-button[aria-pressed=true] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.stat .stat-money { font-size: 1.25rem; line-height: 1.3; }
.shipment-total { text-align: right; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.saved-address { margin-bottom: 1rem; }
.save-address { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
.pieces { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .2rem; }
.day-chart { display: flex; align-items: stretch; height: 150px; border-bottom: 1px solid var(--line); }
.day-bar { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; padding: 0 1px; background: none; border: 0; cursor: pointer; }
.day-bar span { display: block; width: 100%; min-height: 2px; background: var(--navy); border-radius: 4px 4px 0 0; }
.day-bar:hover { background: var(--navy-tint); }
.day-bar[aria-pressed=true] { background: var(--sand); }
.day-bar[aria-pressed=true] span { background: var(--gold); }
.day-bar:focus-visible { outline: 3px solid var(--coral); outline-offset: -1px; }
.day-axis { display: flex; justify-content: space-between; margin-top: .25rem; }

.tracking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.scan-video { display: block; width: 100%; max-height: 55vh; background: #000; border-radius: var(--radius); object-fit: cover; }
.scan-piece { font: 600 1.5rem var(--display); margin: 0; }
.scan-result-error { border-color: var(--coral-text); }
.open-bookings { display: grid; gap: .4rem; max-height: 22rem; overflow-y: auto; }
.open-booking { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; min-height: 44px; padding: .5rem .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.open-booking:hover { border-color: var(--navy); }
@media (max-width: 760px) { .tracking-layout { grid-template-columns: minmax(0, 1fr); } }

#quote-results { margin-top: 1rem; scroll-margin-top: 1rem; }
.quote-options { display: grid; gap: .6rem; }
.quote-option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.quote-price { font: 600 1.25rem var(--display); }
@media (max-width: 560px) {
  .quote-option { grid-template-columns: minmax(0, 1fr) auto; }
  .quote-service { grid-column: 1 / -1; }
}

.email-suggest { display: grid; gap: .5rem; margin-top: .4rem; padding: .7rem .85rem; background: var(--sand); border: 1px solid var(--sand-dark); border-radius: var(--radius); font-size: .9375rem; overflow-wrap: anywhere; }
.email-suggest .btn { white-space: normal; }
.change-email { margin-top: 1rem; }
.change-email summary { cursor: pointer; color: var(--navy); text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.change-email form { margin-top: .5rem; }
.status-unverified { background: var(--coral-tint); color: var(--coral-text); }

.area-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.area-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: 999px; color: var(--navy); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.area-switch a:hover { background: var(--navy-tint); }
.area-switch a[aria-current=true] { background: var(--navy); color: #fff; }
.area-switch a:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; }
.topbar-admin { background: var(--navy-tint); }
.topbar-admin .area-switch { background: var(--card); }
td .status { margin-top: .15rem; }

/* Customers list: room for every column, headers on one line */
.clients-table { min-width: 980px; table-layout: fixed; }
.clients-table th, .clients-table td { padding: .65rem .9rem; vertical-align: top; }
.clients-table th:first-child, .clients-table td:first-child { padding-left: 0; }
.clients-table th { white-space: nowrap; }
.clients-table .num { padding-right: .9rem; }
.clients-table td .status { display: inline-block; margin-top: .3rem; }
.clients-table .col-client { width: 23%; }
.clients-table .col-mobile { width: 15%; }
.clients-table .col-date { width: 11%; }
.clients-table .col-count { width: 9%; }
.clients-table .col-paid { width: 12%; }
.clients-table .col-action { width: 8%; }
.break { overflow-wrap: anywhere; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: .6rem 1rem; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab-count { display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-left: .3rem; border-radius: 999px; background: var(--navy-tint); color: var(--navy); font-size: .8rem; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ID documents for India */
.id-docs { border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: .5rem; }
.id-docs h3 { margin: 0 0 .25rem; }
.id-choice { display: grid; gap: .4rem; }
.id-files { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.id-file { border: 1px dashed var(--line); border-radius: 8px; padding: .75rem; display: grid; gap: .4rem; background: #fbfcfe; }
.id-file.done { border-style: solid; border-color: var(--ok); background: #f1f8f4; }
.id-file img { max-width: 100%; max-height: 120px; object-fit: contain; border-radius: 4px; }
.id-file input[type=file] { font-size: .85rem; max-width: 100%; }
.doc-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }

/* The ID upload must stand out on the Addresses step */
.id-docs[data-id-party] { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 8px; padding: 1rem; margin-top: 1rem; }
.id-missing { margin-top: 1rem; }