/* Responsive rules (TAD 6.2) and new components built only from the reference tokens.
   Breakpoints: phone <=480, tablet 481-900, desktop >900. */

/* ---------- Always ---------- */
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }
#root { flex: 1; min-width: 0; display: flex; }
.main { min-width: 0; }
.content { min-width: 0; }
.live-pill { cursor: default; }
.sidebar-foot .who { color: var(--text); font-weight: 600; font-size: 0.8rem; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .btn { margin-top: 10px; width: 100%; }
.nav-item { text-decoration: none; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
a.btn-primary { color: var(--on-accent); }
.page-head { margin-bottom: 18px; }
.page-head h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- New components ---------- */
.bottom-bar { display: none; }
.bottom-item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 6px 2px;
  background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: 0.68rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bottom-item .icon { font-size: 1.15rem; line-height: 1; }
.bottom-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-item.active { color: var(--accent2); background: rgba(var(--accent-rgb),0.14); }
.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 45; }
.drawer-backdrop.show { display: block; }

.btn-xl { min-height: 56px; padding: 14px 20px; font-size: 1rem; border-radius: 12px; width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: transparent; }

.skeleton {
  background: linear-gradient(90deg, rgba(var(--ink-rgb),0.05), rgba(var(--ink-rgb),0.1), rgba(var(--ink-rgb),0.05));
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; height: 16px; margin: 10px 0;
}
.skeleton.tall { height: 64px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.banner { padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 500; margin-bottom: 14px; border: 1px solid var(--border); background: rgba(var(--accent-rgb),0.1); color: var(--accent2); }
.banner.error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.35); color: var(--bad-text); }
.banner.warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.4); color: var(--warn-text); }

.field-error { color: var(--bad-text); font-size: 0.8rem; margin-top: 6px; }
.field-hint { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
input, select, textarea { min-height: 44px; }

/* Public entry + login pages (no sidebar) */
.auth-page { flex: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; gap: 20px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.auth-brand h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-brand h1 span { color: var(--accent2); }
.hero { text-align: center; margin-bottom: 22px; }
.hero h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.hero p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.role-cards { display: grid; gap: 12px; }
.role-card {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  min-height: 72px; padding: 16px 18px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: inherit; cursor: pointer;
}
.role-card:hover { border-color: var(--accent); background: rgba(var(--accent-rgb),0.08); }
.role-card .role-icon { font-size: 1.6rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb),0.15); border-radius: 10px; flex-shrink: 0; }
.role-card strong { display: block; font-size: 1.02rem; }
.role-card small { color: var(--muted); font-size: 0.82rem; }
.auth-foot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 0.8rem; }
.auth-foot a { color: var(--muted); padding: 0 6px; display: inline-flex; align-items: center; min-height: 44px; }
.phone-input { display: flex; gap: 8px; }
.phone-input .prefix { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--deep); color: var(--muted); font-weight: 600; }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 1.4rem; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--accent2); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 12px 6px; min-height: 44px; }
.filter-chip[disabled] { opacity: 0.7; cursor: default; }
.link-btn[disabled] { color: var(--muted); cursor: default; }
.center-card { text-align: center; padding: 28px 20px; }
.center-card .big { font-size: 2.2rem; margin-bottom: 10px; }
.center-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.center-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.map-fallback { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 0.9rem; padding: 24px; }

/* Cards used instead of tables on phones */
.table-stack td::before { content: attr(data-label); }

/* ---------- Tablet and phone (<=900): sidebar becomes a drawer ---------- */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 24px rgba(20,50,70,0.18); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
  #all-jobs-map { height: 360px; min-height: 300px; }
  .btn, .filter-chip, .nav-item, .link-btn { min-height: 44px; }
  .btn-sm { min-height: 44px; }
}

/* ---------- Phone (<=480): bottom tab bar ---------- */
@media (max-width: 480px) {
  .bottom-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--sidebar); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .topbar { height: 52px; padding: 0 12px; }
  .topbar h2 { font-size: 1rem; }
  .topbar-actions .btn { padding: 8px 10px; }
  #live-updated { display: none; }
  .content { padding: 16px 16px calc(56px + 24px + env(safe-area-inset-bottom)); }
  body.no-bottom-bar .content { padding-bottom: 24px; }
  .menu-btn { display: none; }
  .stats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 4px; }
  .stat-card { flex: 0 0 calc(50% - 6px); scroll-snap-align: start; }
  .form-row { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-chip { flex-shrink: 0; }
  .map-layout { display: flex; flex-direction: column-reverse; }
  .map-sidebar { max-height: none; }
  #all-jobs-map { height: 45vh; min-height: 260px; }
  .toast { left: 16px; right: 16px; bottom: calc(56px + 16px + env(safe-area-inset-bottom)); text-align: center; }

  /* tables -> stacked cards */
  table.table-stack, .table-stack thead, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 10px; padding: 8px 12px; }
  .table-stack td { border: none; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
  .table-stack td::before { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

  /* modals -> bottom sheet */
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; max-height: 90vh; padding-top: 28px; position: relative; }
  .modal::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; background: var(--border); border-radius: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print { .sidebar, .topbar, .bottom-bar { display: none !important; } .main { margin-left: 0; } }

/* ---------- Phase 2: booking components (same tokens) ---------- */
button.price-opt { width: 100%; text-align: left; color: inherit; font-family: inherit; font-size: inherit; min-height: 56px; }
button.price-opt:hover { border-color: var(--accent); }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--muted); font-size: 0.8rem; font-weight: 600; min-width: 0; }
.stepper .num { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0; }
.stepper li.current { border-color: var(--accent); color: var(--accent2); background: rgba(var(--accent-rgb),0.12); }
.stepper li.current .num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper li.done { color: var(--text); }
.stepper li.done .num { background: var(--success); border-color: var(--success); color: #052e16; }
.stepper .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal { background: var(--deep); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.cal-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-blank { min-height: 52px; }
.date-chip { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1.5px solid transparent; border-radius: 10px; background: var(--card); color: var(--text); font-family: inherit; cursor: pointer; padding: 2px; transition: border-color 0.15s, background-color 0.15s; }
.date-chip:hover { border-color: var(--accent); }
.date-chip .dn { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.date-chip .mo { font-size: 0.6rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; min-height: 0.75rem; line-height: 0.75rem; }
.date-chip.today { border-color: var(--border); }
.date-chip.today .mo { color: var(--accent2); }
.date-chip.selected { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.date-chip.selected .mo { color: var(--on-accent); }
.time-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.time-day { color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 600; }
.time-head .link-btn { padding: 0 6px; min-height: 44px; }
.hour-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.hour-row::-webkit-scrollbar { display: none; }
.hour-chip { flex: 0 0 auto; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.hour-chip:hover:not([disabled]) { border-color: var(--accent); }
.hour-chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hour-chip[disabled] { color: var(--muted); opacity: 0.5; cursor: not-allowed; border-style: dashed; }
.hour-chip small { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; }
.slot-count { color: var(--muted); font-size: 0.78rem; margin: 6px 0 10px; }
.pick-summary { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--accent); background: rgba(var(--accent-rgb),0.12); border-radius: 10px; font-size: 0.9rem; }
.pick-summary[hidden] { display: none; }
.slot-hour { margin-bottom: 12px; }
.slot-hour-h { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot-btn { min-height: 46px; font-variant-numeric: tabular-nums; border: 1.5px solid var(--border); border-radius: 10px; background: var(--deep); color: var(--text); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.slot-btn:hover:not([disabled]) { border-color: var(--accent); }
.slot-btn.selected { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.slot-btn.taken { color: var(--muted); text-decoration: line-through; opacity: 0.6; cursor: not-allowed; background: transparent; border-style: dashed; }
.slot-btn .taken-tag { font-size: 0.62rem; text-decoration: none; display: block; text-transform: uppercase; letter-spacing: 0.04em; }
#book-map { height: 260px; width: 100%; border-radius: 10px; background: var(--deep); border: 1px solid var(--border); }
.summary { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 0.9rem; }
.sum-row > span:first-child { color: var(--muted); flex-shrink: 0; }
.sum-row > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sum-line { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.sum-total { font-size: 1.1rem; }
.confirm-box { text-align: left; border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; background: var(--deep); margin-bottom: 12px; }
@media (min-width: 901px) { .summary { position: sticky; top: 76px; } }
@media (max-width: 480px) { .stepper .lbl { display: none; } .stepper li.current .lbl { display: inline; } }
.booking-list { display: grid; gap: 12px; max-width: 640px; margin-bottom: 12px; }
.booking-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.booking-when { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.booking-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-weight: 700; }

/* ---------- Invoice page ---------- */
.invoice { max-width: 560px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.inv-biz { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.inv-sub { color: var(--muted); font-size: 0.8rem; }
.inv-title { font-size: 1.05rem; margin-bottom: 8px; }
.inv-foot { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
@media print {
  body, .auth-page { background: #fff !important; color: #000 !important; }
  .panel { border: none !important; background: #fff !important; }
  .panel *, .inv-sub, .sum-row > span:first-child { color: #000 !important; }
  .no-print { display: none !important; }
  .badge { border: 1px solid #000; background: none !important; color: #000 !important; }
  .sum-line { border-top-color: #000; }
}

/* address suggestions (Places API New, our own list so it matches the theme) */
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; list-style: none; margin-top: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.ac-list[hidden] { display: none; }
.ac-list li { padding: 12px 14px; min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.ac-list li:last-child { border-bottom: none; }
.ac-list li:hover, .ac-list li[aria-selected="true"] { background: rgba(var(--accent-rgb),0.18); }

/* ========== Phase 3a: driver app, live tracking, shared icon rules (tokens only) ========== */
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.nav-item .icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-item .icon .ic { width: 1.2rem; height: 1.2rem; }
.bottom-item .icon { display: inline-flex; }
.bottom-item .icon .ic { width: 1.4rem; height: 1.4rem; }
.logo-mark .ic { width: 1.3rem; height: 1.3rem; color: var(--on-accent); }
.btn:has(> .ic) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.big-ic { color: var(--muted); margin-bottom: 10px; }
.big-ic .ic { width: 2.6rem; height: 2.6rem; }
.scroll-220 { max-height: 220px; overflow-y: auto; }
.map-box { height: 320px; width: 100%; background: var(--deep); border-radius: var(--radius); }
.sec-label { margin: 18px 0 8px; }
.booking-meta { color: var(--muted); font-size: 0.85rem; }
.booking-actions { display: inline-flex; gap: 8px; }

/* shift */
.shift-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shift-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gps-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.gps-pill.gps-ok { color: var(--ok-text); }
.gps-pill.gps-warn { color: var(--warn-text); }
.shift-btn { min-height: 52px; min-width: 168px; padding: 12px 20px; font-size: 1rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.shift-card { margin-bottom: 14px; }

/* jobs */
.job-card { margin-bottom: 14px; }
.job-next { border-color: var(--accent); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.job-label { font-size: 0.72rem; font-weight: 700; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.06em; }
.job-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.job-time { display: flex; align-items: center; gap: 8px; color: var(--accent2); font-weight: 600; margin: 4px 0 14px; }
.job-lines { display: grid; gap: 10px; margin-bottom: 16px; }
.job-line { display: flex; align-items: flex-start; gap: 10px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.job-line .ic { color: var(--muted); margin-top: 2px; }
.job-phone { min-height: 44px; align-items: center; }
.job-phone .ic { margin-top: 0; }
.job-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.job-actions .btn-xl { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.queue-list { display: grid; gap: 10px; margin-bottom: 14px; }
.queue-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.queue-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: rgba(var(--accent-rgb),0.18); color: var(--accent2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.queue-num.queue-done { background: rgba(34,197,94,0.18); color: var(--ok-text); }
.queue-num .ic { width: 1rem; height: 1rem; }
.queue-info { flex: 1; min-width: 0; }
.queue-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.queue-meta { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }

/* public tracking page and the customer Track screen */
.track-body { display: block; background: var(--bg); min-height: 100vh; }
.track-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--sidebar); }
.track-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; min-height: 44px; }
.track-brand-name span { color: var(--accent2); }
.track-tag { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.track-wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.track-nojs { padding: 24px; }
.track-card .panel-b { padding: 20px; }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.15rem; }
.track-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.track-metric { display: flex; flex-direction: column; gap: 2px; background: var(--deep); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.track-k { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.track-v { font-size: 1.4rem; font-weight: 800; }
.track-s { color: var(--muted); font-size: 0.75rem; }
.track-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.track-map-panel { margin-top: 12px; overflow: hidden; }
.track-map-panel[hidden] { display: none; }

@media (max-width: 480px) {
  .shift-btn { width: 100%; }
  .map-box { height: 280px; }
}


/* ========== Phase 3b: dispatcher screens (tokens only; no inline styles, SVG icons only) ========== */
body.modal-open { overflow: hidden; }
.topbar-title { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.topbar-title h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-now { color: var(--muted); font-size: 0.72rem; font-weight: 500; line-height: 1.25; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-sub { color: var(--muted); font-size: 0.8rem; }
.panel-flush { padding: 0; overflow-x: auto; }
.panel-foot { border-top: 1px solid var(--border); }
.muted-line { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-row-center { justify-content: center; }
.btn-danger { background: var(--danger); border: none; color: #fff; }
.btn-danger-ghost { background: transparent; border-color: rgba(239,68,68,0.5); color: var(--bad-text); }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text); cursor: pointer; font-family: inherit; }
.icon-btn:hover:not([disabled]) { border-color: var(--accent); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.inline-link { display: inline-flex; align-items: center; gap: 6px; }
.row-button { width: 100%; background: none; border: none; border-bottom: 1px solid var(--hairline); color: inherit; font-family: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.row-button:hover { background: rgba(var(--accent-rgb),0.06); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; min-height: 44px; }
.check-row input { width: 20px; height: 20px; min-height: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form select, .inline-form input { flex: 1 1 180px; width: auto; }

/* date filter */
.filter-bar { margin-bottom: 14px; }
.filter-bar .filters { margin-bottom: 8px; }
.filter-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.filter-custom[hidden] { display: none; }
.filter-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.filter-field input, .filter-field select { width: auto; }

/* bars: widths and colours come from classes */
.pct-0 { width: 0%; }
.pct-1 { width: 1%; }
.pct-2 { width: 2%; }
.pct-3 { width: 3%; }
.pct-4 { width: 4%; }
.pct-5 { width: 5%; }
.pct-6 { width: 6%; }
.pct-7 { width: 7%; }
.pct-8 { width: 8%; }
.pct-9 { width: 9%; }
.pct-10 { width: 10%; }
.pct-11 { width: 11%; }
.pct-12 { width: 12%; }
.pct-13 { width: 13%; }
.pct-14 { width: 14%; }
.pct-15 { width: 15%; }
.pct-16 { width: 16%; }
.pct-17 { width: 17%; }
.pct-18 { width: 18%; }
.pct-19 { width: 19%; }
.pct-20 { width: 20%; }
.pct-21 { width: 21%; }
.pct-22 { width: 22%; }
.pct-23 { width: 23%; }
.pct-24 { width: 24%; }
.pct-25 { width: 25%; }
.pct-26 { width: 26%; }
.pct-27 { width: 27%; }
.pct-28 { width: 28%; }
.pct-29 { width: 29%; }
.pct-30 { width: 30%; }
.pct-31 { width: 31%; }
.pct-32 { width: 32%; }
.pct-33 { width: 33%; }
.pct-34 { width: 34%; }
.pct-35 { width: 35%; }
.pct-36 { width: 36%; }
.pct-37 { width: 37%; }
.pct-38 { width: 38%; }
.pct-39 { width: 39%; }
.pct-40 { width: 40%; }
.pct-41 { width: 41%; }
.pct-42 { width: 42%; }
.pct-43 { width: 43%; }
.pct-44 { width: 44%; }
.pct-45 { width: 45%; }
.pct-46 { width: 46%; }
.pct-47 { width: 47%; }
.pct-48 { width: 48%; }
.pct-49 { width: 49%; }
.pct-50 { width: 50%; }
.pct-51 { width: 51%; }
.pct-52 { width: 52%; }
.pct-53 { width: 53%; }
.pct-54 { width: 54%; }
.pct-55 { width: 55%; }
.pct-56 { width: 56%; }
.pct-57 { width: 57%; }
.pct-58 { width: 58%; }
.pct-59 { width: 59%; }
.pct-60 { width: 60%; }
.pct-61 { width: 61%; }
.pct-62 { width: 62%; }
.pct-63 { width: 63%; }
.pct-64 { width: 64%; }
.pct-65 { width: 65%; }
.pct-66 { width: 66%; }
.pct-67 { width: 67%; }
.pct-68 { width: 68%; }
.pct-69 { width: 69%; }
.pct-70 { width: 70%; }
.pct-71 { width: 71%; }
.pct-72 { width: 72%; }
.pct-73 { width: 73%; }
.pct-74 { width: 74%; }
.pct-75 { width: 75%; }
.pct-76 { width: 76%; }
.pct-77 { width: 77%; }
.pct-78 { width: 78%; }
.pct-79 { width: 79%; }
.pct-80 { width: 80%; }
.pct-81 { width: 81%; }
.pct-82 { width: 82%; }
.pct-83 { width: 83%; }
.pct-84 { width: 84%; }
.pct-85 { width: 85%; }
.pct-86 { width: 86%; }
.pct-87 { width: 87%; }
.pct-88 { width: 88%; }
.pct-89 { width: 89%; }
.pct-90 { width: 90%; }
.pct-91 { width: 91%; }
.pct-92 { width: 92%; }
.pct-93 { width: 93%; }
.pct-94 { width: 94%; }
.pct-95 { width: 95%; }
.pct-96 { width: 96%; }
.pct-97 { width: 97%; }
.pct-98 { width: 98%; }
.pct-99 { width: 99%; }
.pct-100 { width: 100%; }
.bar-fill.tone-success { background: var(--success); }
.bar-fill.tone-accent { background: var(--accent); }
.bar-fill.tone-warn { background: var(--warn); }
.bar-fill.tone-danger { background: var(--danger); }
.bar-fill.tone-sky { background: #6f93a8; }
.bar-fill.tone-blue { background: var(--accent); }
.bar-fill.tone-navy { background: var(--accent2); }
.status-row .bar-n { width: auto; min-width: 36px; }
.dot-warn { background: #f59e0b; } .dot-accent { background: var(--accent); } .dot-success { background: #22c55e; } .dot-danger { background: #ef4444; }
.dot-card { background: var(--accent); } .dot-manual { background: #6f93a8; }
.big-number { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.split-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.split-item { display: inline-flex; align-items: center; gap: 6px; }
.split-item strong { color: var(--text); }
.scroll-320 { max-height: 320px; overflow-y: auto; }
.schedule-when { width: 96px; display: flex; flex-direction: column; }
.when-day { color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.map-filters { padding-bottom: 0; }
.map-legend-flat { border: none; padding: 0 0 12px; }
.map-layout-flat { border: none; border-radius: 0; border-top: 1px solid var(--border); }
.map-layout-flat #all-jobs-map { border-radius: 0; }
button.map-job-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--hairline); color: inherit; font-family: inherit; min-height: 44px; }
.mj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.85rem; }
.mj-meta { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.truck-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.truck-row:last-child { border-bottom: none; }
.truck-ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--accent-rgb),0.18); color: var(--accent2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.truck-info { flex: 1; min-width: 0; }
.truck-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.truck-meta { color: var(--muted); font-size: 0.78rem; display: block; }
.truck-seen { font-size: 0.75rem; color: var(--ok-text); white-space: nowrap; }
.truck-seen.seen-none { color: var(--muted); }

/* job window */
.modal-wide { max-width: 560px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.job-modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; flex-wrap: wrap; }
.detail-list { border: 1px solid var(--border); border-radius: 10px; padding: 6px 14px; background: var(--deep); }
.timeline { list-style: none; border-left: 2px solid var(--border); margin-left: 6px; padding-left: 14px; display: grid; gap: 10px; }
.timeline li { display: flex; flex-direction: column; gap: 1px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl-time { color: var(--muted); font-size: 0.72rem; }
.tl-text { font-size: 0.9rem; }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }

/* jobs, schedule */
.jobs-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-end; margin-bottom: 4px; }
.date-mode { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.table-stack td.cell-action { text-align: right; }
.sched-block { margin-bottom: 14px; }
.sched-block .panel-h h3 { display: inline-flex; align-items: center; gap: 8px; }
.timeline-job { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.tj-time { width: 78px; flex-shrink: 0; font-weight: 700; color: var(--accent2); font-size: 0.85rem; display: flex; flex-direction: column; }
.tj-time small { color: var(--muted); font-weight: 500; font-size: 0.7rem; }
.tj-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.tj-meta { color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tj-money { color: var(--muted); font-size: 0.78rem; }

/* fleet */
.map-box-tall { height: calc(100vh - 240px); min-height: 420px; border-radius: 0; }
.map-box-flat { border-radius: 0; height: 360px; }
button.truck-card { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--hairline); color: inherit; font-family: inherit; padding: 12px 14px; cursor: pointer; min-height: 44px; }
button.truck-card:hover { background: rgba(var(--accent-rgb),0.08); }
button.truck-card.active { background: rgba(var(--accent-rgb),0.15); }
.truck-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.fleet-detail { margin-top: 16px; }
.banner:has(> .ic) { display: flex; align-items: flex-start; gap: 10px; }

/* routes */
.route-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.route-list { list-style: none; display: grid; gap: 8px; }
.route-stop-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--deep); }
.route-stop-item.fixed { border-color: rgba(34,197,94,0.4); }
.route-stop-item.dragging { opacity: 0.45; }
.route-stop-item.drop-over { border-color: var(--accent); background: rgba(var(--accent-rgb),0.12); }
.route-info { flex: 1; min-width: 0; }
.route-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.route-meta { color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-moves { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.drag-handle { color: var(--muted); display: none; cursor: grab; }
@media (hover: hover) and (pointer: fine) { .drag-handle { display: inline-flex; } }

/* people */
.person-list { display: grid; gap: 10px; margin-bottom: 8px; }
.person-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.person-info { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-meta { color: var(--muted); font-size: 0.8rem; }
.person-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.85rem; }
.person-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.approve-form input { min-width: 180px; }
.confirm-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--warn-text); }

/* settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.set-msg { min-height: 1.2em; margin-top: 10px; font-size: 0.82rem; color: var(--ok-text); }
.set-msg.set-bad { color: var(--bad-text); }
.svc-row { display: grid; grid-template-columns: 1fr 2fr 110px 90px auto auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.svc-row .form-group { margin-bottom: 0; }
.svc-row .set-msg { grid-column: 1 / -1; margin-top: 0; }
#svc-new { border-bottom: none; }

/* new booking */
.nb-form { max-width: 680px; }
.opt-sub { font-size: 0.8rem; color: var(--muted); }
.pay-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pay-choice { flex: 1 1 140px; min-height: 48px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--deep); color: var(--text); font-family: inherit; font-weight: 600; cursor: pointer; }
.pay-choice.selected { border-color: var(--accent); background: rgba(var(--accent-rgb),0.14); color: var(--accent2); }
.nb-summary { margin: 4px 0 14px; position: static; }

@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr 1fr; }
  .svc-row .svc-desc { grid-column: 1 / -1; }
  .map-box-tall { height: 340px; min-height: 280px; }
  .row-button, .icon-btn { min-height: 44px; }
}
@media (max-width: 480px) {
  .route-controls { grid-template-columns: 1fr; }
  .person-stats { align-items: flex-start; }
  .tz-now { font-size: 0.68rem; }
  .topbar { min-height: 52px; height: auto; padding-top: 6px; padding-bottom: 6px; }
  .timeline-job { flex-wrap: wrap; }
  .tj-side { flex-direction: row; align-items: center; gap: 10px; }
  .route-stop-item { flex-wrap: wrap; }
}

/* driver: "Coming up" grouped by day */
.day-group { margin-bottom: 6px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 8px; font-size: 0.95rem; }
.day-rel { font-weight: 800; color: var(--accent2); }
.day-date { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.banner .banner-text { flex: 1; min-width: 0; }
.banner:has(> .ic) .btn { flex-shrink: 0; }
.schedule-time { width: 76px; }
.schedule-time.schedule-when { width: 96px; }

/* ========== Part A: sign in or create account (tokens only; no inline styles) ========== */
.auth-brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.auth-brand-name span { color: var(--accent2); }
.auth-brand-sub { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.auth-card-b { padding: 24px; }
.auth-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 18px; max-width: 36em; }
.auth-sub strong { color: var(--text); }
.step-title { font-size: 1.15rem; font-weight: 700; margin: 4px 0 6px; }
.form-label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.stack { display: grid; gap: 10px; }
.auth-alt { display: flex; justify-content: center; margin-top: 6px; }
.auth-alt .link-btn { display: inline-flex; align-items: center; gap: 6px; }
.link-inline { display: inline; padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn .ic { width: 1.1em; height: 1.1em; }
.auth-card .center-card { padding: 8px 0 0; }

/* Customer | Driver switch: real radio buttons, so the keyboard and screen readers get them for free */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--deep); min-width: 0; }
.seg { position: relative; display: block; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: background-color 0.15s ease, color 0.15s ease; }
.seg:hover input:not(:checked) + span { color: var(--text); background: rgba(var(--ink-rgb), 0.06); }
.seg input:checked + span { background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent2); outline-offset: 2px; }
.seg-note { min-height: 1.4em; margin: 0 0 14px; color: var(--accent2); font-size: 0.85rem; font-weight: 600; }

/* the six code boxes: the one tactile moment on this screen */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-box { width: 100%; min-width: 0; min-height: 56px; padding: 0; text-align: center; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 10px; caret-color: var(--accent2); transition: border-color 0.15s ease, background-color 0.15s ease; }
.otp-box::placeholder { color: var(--border); }
.otp-box:not(:placeholder-shown) { border-color: var(--accent2); background: rgba(var(--accent-rgb),0.1); }
.otp-box:focus { border-color: var(--accent); background: rgba(var(--accent-rgb),0.14); }
.otp.is-error .otp-box { border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.field-ok { color: var(--ok-text); font-size: 0.8rem; margin-top: 8px; min-height: 1.1em; }
@media (max-width: 380px) { .otp { gap: 6px; } .otp-box { font-size: 1.35rem; min-height: 52px; } .auth-card-b { padding: 18px; } }
.auth-alt-split { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.auth-card[data-step="code"] .auth-intro, .auth-card[data-step="name"] .auth-intro { display: none; }
.auth-brand { margin-bottom: 14px; }
.seg-note { min-height: 0; margin: 0 0 16px; }
@media (max-width: 480px) { .auth-alt-split { flex-direction: column; align-items: center; gap: 0; } }

/* Sign out: always visible in the header; the label hides on phones, the icon stays. */
.btn-signout { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.profile-signout { max-width: 560px; margin-top: 16px; }
.profile-signout .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
@media (max-width: 480px) { .btn-signout-lbl { display: none; } .btn-signout { min-width: 44px; justify-content: center; } }

/* Twilight look: condensed display type for headlines and big numbers; calmer radius on cards. */
.topbar h2, .page-head h3, .sidebar-brand h1, .panel-h h3, .stat-card .value, .auth-title, .step-title { font-family: var(--display); letter-spacing: 0.01em; }
.page-head h3 { font-size: 1.6rem; font-weight: 700; }
.panel { border-radius: 16px; }

/* ---------- Booking: progress, one-screen desktop layout, time chips (TAD 22.11) ---------- */
.bk-progress { margin: 0 0 16px; }
.bk-progress-row { display: flex; align-items: center; gap: 8px; }
.bk-back { flex: 0 0 44px; width: 44px; height: 44px; }
.bk-back-gap { display: none; }
.bk-back { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: 12px; color: var(--text); cursor: pointer; }
.bk-back:hover { border-color: var(--accent); }
.bk-step { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bk-count { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.bk-name { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.bk-bar { height: 4px; border-radius: 4px; background: var(--border); margin-top: 10px; overflow: hidden; }
.bk-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .bk-bar span { transition: none; } }
.bk-h { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 14px; }
.bk-hint { margin: 12px 0 14px; }
.opt-sub { font-size: 0.8rem; color: var(--muted); }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.bk-two .panel { margin-bottom: 0; }
.bk-actions { display: grid; gap: 10px; margin-top: 8px; }
.slot-part { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 8px; }
.slot-part:first-child { margin-top: 0; }
.slot-btn { padding: 0 6px; }
@media (max-width: 480px) {
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .bk-actions { position: sticky; bottom: calc(56px + env(safe-area-inset-bottom) + 8px); padding-top: 8px; background: linear-gradient(to top, var(--card) 70%, transparent); }
}
@media (max-width: 899px) { .bk-two { grid-template-columns: 1fr; } }
.captcha-slot { display: flex; justify-content: center; margin-top: 12px; } .captcha-slot:empty { display: none; }
.menu-btn .ic, .bottom-item .icon .ic { width: 1.25rem; height: 1.25rem; }


/* ---------- Snow theme (TAD 22.13): white, black buttons, a faint frost and soft shadows. Pure CSS: no images, no scripts. ---------- */
body { background: linear-gradient(180deg, var(--frost) 0, var(--bg) 340px) no-repeat, var(--bg); }
.panel, .stat-card { box-shadow: var(--shadow-card); }
.sidebar { background: var(--sidebar); }
:where(.btn) { background: var(--card); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary[disabled] { background: #c9d4db; color: #6b7c87; opacity: 1; }
.btn-danger { color: #fff; }
.sidebar-brand h1 span, .auth-brand-name span, .bk-name { color: var(--text); }
.logo-mark { background: var(--accent); }
.nav-item.active, .bottom-item.active { color: var(--text); background: rgba(var(--ink-rgb), 0.07); font-weight: 700; }
.price-opt.selected, .pay-choice.selected { background: rgba(var(--ink-rgb), 0.05); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.pick-summary { background: rgba(var(--ink-rgb), 0.04); }
.slot-btn, .cal, .confirm-box, .track-metric, .ac-list { background: var(--card); }
.slot-btn:hover:not([disabled]) { border-color: var(--accent); }
.bk-back { background: var(--card); }
.badge-progress { color: var(--accent2); }
.skeleton { background: linear-gradient(90deg, rgba(var(--ink-rgb),0.05), rgba(var(--ink-rgb),0.1), rgba(var(--ink-rgb),0.05)); }
input, select, textarea { background: var(--card); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-terms { margin: 12px 0 0; line-height: 1.5; } .pay-terms a { color: var(--accent2); }
.pay-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.pay-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent2); }

/* Cancel and credit (TAD 22.14) */
.banner.ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.35); color: var(--ok-text); }
.credit-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; background: var(--deep); border-color: var(--border); color: var(--text); }
.credit-banner .ic { width: 1.2rem; height: 1.2rem; color: var(--ok-text); flex-shrink: 0; }
.credit-banner a { color: var(--accent2); margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }
.cancel-left { font-variant-numeric: tabular-nums; font-weight: 700; }
.cancel-ask { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--deep); }
.cancel-ask p { margin: 0 0 12px; line-height: 1.5; }
.cancel-ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cancel-ask-actions .btn { min-height: 44px; }
.reason-set { border: 0; padding: 0; margin: 10px 0; }
.reason-set legend { padding: 0; }
.booking-actions .btn-danger-ghost { min-height: 44px; }

/* Illustrations: small line drawings in the snow palette (assets/img/art, drawn for SnowClear). */
.art { display: block; width: 100%; max-width: 180px; height: auto; margin: 0 auto 8px; }
.empty-art { max-width: 150px; }
.step-art { display: block; width: 100%; max-width: 168px; height: auto; margin: 0 0 14px; }
