/* chauffeur.restaurant — brand system lifted verbatim from the
 * command.restaurant homepage tokens (views/home.ejs :root) so the two
 * products read as one family. Same faces: Fraunces display / DM Sans text /
 * DM Mono numerals. */

:root {
  --cream: #f6f0e5;
  --cream-2: #ede4d5;
  --paper: #fffdf8;
  --ink: #102d26;
  --ink-2: #28473f;
  --forest: #123c32;
  --forest-deep: #092921;
  --teal: #14998d;
  --teal-dark: #0d746b;
  --mint: #cceee2;
  --coral: #eb6548;
  --peach: #f6b09d;
  --yellow: #f6d269;
  --line: rgba(16, 45, 38, .16);
  --muted: #62766f;
  --shadow: 0 28px 80px rgba(18, 60, 50, .16);
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.045em; margin: 0 0 .5em; }
a { color: var(--teal-dark); }

/* ── Chrome ── */
.topbar {
  display: flex; align-items: center; gap: 12px;
  /* safe-area top: keeps the header below the Android/iOS status bar when
     the WebView runs edge-to-edge (native margins make env() = 0, so this
     is a no-op there and in desktop browsers). */
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--forest);
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; font-weight: 700;
}
.brand .word em { color: var(--teal-dark); font-style: normal; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topbar nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 7px 12px; border-radius: 999px;
}
.topbar nav a.active, .topbar nav a:hover { background: var(--mint); color: var(--forest); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }
.wrap.narrow { max-width: 460px; }

/* ── Cards / forms / buttons ── */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; margin-bottom: 18px;
}
.card h2 { font-size: 22px; }
label { display: block; font-weight: 600; font-size: 13.5px; margin: 12px 0 4px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px var(--sans); padding: 12px 22px; text-decoration: none; text-align: center;
  background: var(--forest); color: #fff;
}
.btn:hover { background: var(--forest-deep); }
.btn.teal { background: var(--teal); } .btn.teal:hover { background: var(--teal-dark); }
.btn.coral { background: var(--coral); }
.btn.ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn.block { display: block; width: 100%; }
.btn.sm { padding: 7px 14px; font-size: 13px; }

.error-box {
  background: #fff1ec; border: 1px solid var(--coral); color: #7c2d1a;
  border-radius: 11px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px;
}
.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font: 600 12px var(--sans); background: var(--cream-2); color: var(--ink-2);
}
.pill.green { background: var(--mint); color: var(--forest); }
.pill.amber { background: #fff5de; color: #7a5b12; }
.pill.red { background: #ffe6df; color: #a83722; }
.pill.blue { background: #dbeafe; color: #1e40af; }
.muted { color: var(--muted); font-size: 13.5px; }
.mono { font-family: var(--mono); }

/* ── Part de responsabilité (entente art. 11) ─────────────────────────────
   Aide à la saisie d'une DÉCISION humaine — jamais un barème. Les paliers
   restent discrets pour cette raison. */
details.liab { margin-top: 6px; font: 400 12px var(--sans); white-space: normal; max-width: 320px; }
details.liab > summary { cursor: pointer; color: var(--muted); font-weight: 600; }
details.liab[open] > summary { margin-bottom: 6px; }
.liab-sos {
  margin: 4px 0 6px; padding: 6px 8px; border-radius: 8px;
  background: #fff5de; color: #7a5b12; font-weight: 600; line-height: 1.35;
}
.liab-base { margin-bottom: 5px; color: var(--ink-2); }
.liab-chips { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.liab-chip {
  padding: 3px 9px; border-radius: 999px; cursor: pointer; font: 600 11.5px var(--sans);
  background: var(--cream-2); color: var(--ink-2); border: 1px solid transparent;
}
.liab-chip.is-on { background: #ffe6df; color: #a83722; border-color: #a83722; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ── Map layout ── */
.map-shell { position: relative; height: calc(100dvh - 59px); }
#map { position: absolute; inset: 0; }
.map-panel {
  position: absolute; left: 12px; top: 12px; z-index: 10; width: 320px; max-width: calc(100vw - 24px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 16px; max-height: calc(100% - 24px); overflow: auto;
}
.map-panel h3 { font-size: 17px; margin-bottom: 8px; }
.job-row { border-top: 1px solid var(--line); padding: 10px 0; }
.job-row:first-of-type { border-top: 0; }
.job-row .fee { font-family: var(--mono); font-weight: 700; color: var(--forest); }
.online-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--teal); box-shadow: 0 0 0 4px rgba(20,153,141,.2); }

/* ── Arrival state: the one moment the driver MUST act ── */
.map-panel.arrived {
  border: 2.5px solid var(--yellow);
  animation: arrivedGlow 1.6s ease-in-out infinite;
}
@keyframes arrivedGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 210, 105, .55); }
  50% { box-shadow: 0 0 0 14px rgba(246, 210, 105, 0); }
}
.btn.advance-big {
  font-size: 18px;
  padding: 16px 30px;
  animation: advancePulse 1.4s ease-in-out infinite;
}
@keyframes advancePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .map-panel.arrived, .btn.advance-big { animation: none; }
}

/* ── Turn-by-turn banner ── */
.nav-banner {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 12;
  background: var(--forest); color: #fff; border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow); min-width: 280px; max-width: calc(100vw - 24px); text-align: center;
}
.nav-banner .instruction { font-weight: 700; font-size: 16px; }
.nav-banner .distance { font-family: var(--mono); color: var(--mint); font-size: 13px; }
.nav-actions {
  position: absolute; bottom: 18px; left: 12px; right: 12px; z-index: 12;
  display: flex; gap: 10px; align-items: stretch;
}
.nav-actions .btn:last-child { flex: 1; font-size: 16.5px; padding: 14px 18px; }

/* ── Stat tiles ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile .num { font: 700 24px var(--mono); color: var(--forest); }
.tile .lbl { font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
  .map-panel { width: calc(100vw - 24px); max-height: 45%; }
  .wrap { padding: 18px 14px 48px; }
  /* Compact one-row topbar on phones: mark-only brand, tight pills. */
  .topbar { padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; gap: 8px; flex-wrap: nowrap; }
  .brand .word { display: none; }
  .topbar nav { gap: 2px; flex-wrap: nowrap; }
  .topbar nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  .topbar .btn.sm { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
  .map-shell { height: calc(100dvh - 47px - env(safe-area-inset-top, 0px)); }
}

/* ──────────────────────────────────────────────────────────────────────────
   Driver mission system
   The public/administrative pages above retain the warm brand language. An
   engaged run becomes a darker, high-contrast cockpit over the live map.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --signal: #4cf0c8;
  --signal-soft: rgba(76, 240, 200, .16);
  --night: #071d19;
  --night-2: #0b2b24;
  --glass: rgba(7, 29, 25, .93);
  --glass-line: rgba(204, 238, 226, .19);
  --danger: #ff795f;
}

.section-kicker {
  display: block;
  color: var(--teal-dark);
  font: 700 10px/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.active-run-page { background: var(--night); overflow: hidden; }
.active-run-page .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(3, 18, 15, .92), rgba(3, 18, 15, .58));
  border: 0;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.active-run-page .brand { color: #fff; }
.active-run-page .brand .mark { background: var(--signal); color: var(--forest-deep); }
.active-run-page .brand .word em { color: var(--signal); }
.active-run-page .topbar nav a { color: rgba(255,255,255,.76); }
.active-run-page .topbar nav a.active,
.active-run-page .topbar nav a:hover { background: var(--signal-soft); color: var(--signal); }
.active-run-page .topbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.active-run-page .mission-shell { height: 100dvh; }
.mission-shell #map { background: var(--night); }
.mission-shell .mapboxgl-ctrl-bottom-right { bottom: 86px; right: 350px; }
.mission-shell .mapboxgl-ctrl-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}

.mission-hud {
  position: absolute;
  z-index: 18;
  top: calc(76px + env(safe-area-inset-top, 0px));
  left: 50%;
  width: min(720px, calc(100vw - 700px));
  min-width: 520px;
  transform: translateX(-50%);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, rgba(8, 39, 32, .97), rgba(5, 25, 21, .94));
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mission-hud::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--signal);
}
.mission-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mission-stage,
.mission-eyebrow {
  color: rgba(255,255,255,.62);
  font: 700 10px/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.timing-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 700 10px/1 var(--sans);
  letter-spacing: .06em;
  white-space: nowrap;
}
.timing-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.timing-chip.is-loading { color: #bed0ca; }
.timing-chip.is-on-time { color: var(--signal); }
.timing-chip.is-due,
.timing-chip.is-risk { color: var(--yellow); }
.timing-chip.is-late { color: var(--danger); }
.timing-chip.is-arrived { color: var(--yellow); }

.mission-directive {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 142px;
  gap: 14px;
  align-items: center;
  padding: 15px 18px 13px 20px;
}
.mission-turn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--night);
  background: var(--signal);
  border-radius: 16px;
  box-shadow: 0 0 0 6px var(--signal-soft), 0 12px 24px rgba(0,0,0,.22);
}
.mission-turn svg { width: 30px; height: 30px; }
.mission-copy { min-width: 0; }
.mission-copy h1 {
  overflow: hidden;
  margin: 2px 0 1px;
  color: #fff;
  font: 700 clamp(20px, 2vw, 26px)/1.08 var(--sans);
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mission-copy p {
  overflow: hidden;
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Door note (CR-1168) in the mission HUD: the customer's own words about the
   door — same amber family as .faith-notice-strip (information, not alarm),
   and it WRAPS: an address may ellipsize, an instruction may not. */
.mission-door-note {
  margin: 5px 0 0; padding: 6px 9px; border-radius: 9px;
  color: #ffe9a8; background: rgba(246, 210, 105, .13);
  border: 1px solid rgba(246, 210, 105, .45);
  font-size: 11.5px; line-height: 1.4;
  overflow: visible; text-overflow: clip; white-space: normal;
}
.mission-door-note b { font-weight: 800; letter-spacing: .08em; font-size: 9.5px; color: #f6d269; margin-right: 5px; }

/* Head strip (incident 2026-08-13): the mission's FIRST stop is not this
   run's leg any more. Same amber family as the door note and
   .dispatch-toast.warning — « look up, nothing is wrong » — never --signal
   (which means on-plan here) and never red (which this app reserves for a
   hazard). It WRAPS like the door note: a restaurant name may not be
   ellipsized away, it is the whole message. */
.mission-head-strip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 6px 0 0; padding: 7px 9px; border-radius: 9px;
  color: #ffe9a8; background: rgba(246, 210, 105, .13);
  border: 1px solid rgba(246, 210, 105, .55);
  font-size: 11.5px; line-height: 1.4;
  overflow: visible; text-overflow: clip; white-space: normal;
}
.mission-head-strip b { font-weight: 800; letter-spacing: .08em; font-size: 9.5px; color: #f6d269; }
.mission-head-strip span { min-width: 0; flex: 1; font-weight: 700; color: #fff; }
.mission-head-go {
  padding: 4px 10px; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--night); background: var(--yellow);
  font: 800 10.5px var(--sans); letter-spacing: .04em;
}

.goal-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.11);
  text-align: right;
}
.goal-clock strong { color: var(--signal); font: 700 29px/1 var(--mono); letter-spacing: -.055em; white-space: nowrap; }
.goal-clock span { margin-top: 4px; color: rgba(255,255,255,.54); font-size: 10px; }
.goal-clock small { margin-top: 5px; color: #fff; font: 600 10.5px/1.25 var(--sans); }
.turn-instruction {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--signal);
  font-size: 11.5px;
}
.turn-instruction strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn-instruction span { flex: none; font: 700 11px var(--mono); }

.mission-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 9px;
  padding: 0 20px 12px;
}
.progress-stop { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.42); }
.progress-stop i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 9px/1 var(--mono);
  font-style: normal;
}
.progress-stop b { font: 600 10px/19px var(--sans); }
.progress-stop.is-current { color: var(--signal); }
.progress-stop.is-current i { color: var(--night); background: var(--signal); border-color: var(--signal); }
.progress-stop.is-complete { color: #fff; }
.progress-stop.is-complete i { color: var(--night); background: #fff; border-color: #fff; }
.progress-stop.is-complete i::before { content: '✓'; }
.progress-stop.is-complete i { font-size: 0; }
.progress-stop.is-complete i::before { font-size: 10px; }
.progress-track { height: 2px; margin-top: 9px; overflow: hidden; background: rgba(255,255,255,.13); border-radius: 99px; }
.progress-track i { display: block; width: 14%; height: 100%; background: var(--signal); border-radius: inherit; transition: width .5s ease; }

.mission-hud.is-arrived {
  border-color: rgba(246,210,105,.65);
  box-shadow: 0 0 0 4px rgba(246,210,105,.12), 0 22px 60px rgba(0,0,0,.34);
}
.mission-hud.is-arrived::before { background: var(--yellow); }
.mission-hud.is-arrived .mission-turn { background: var(--yellow); box-shadow: 0 0 0 7px rgba(246,210,105,.15); }
.mission-hud.is-arrived .mission-turn svg { display: none; }
.mission-hud.is-arrived .mission-turn::before { content: '✓'; font: 800 27px/1 var(--sans); }
.mission-hud.is-arrived .goal-clock strong { color: var(--yellow); font-size: 18px; }

.goal-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: var(--night);
  background: var(--signal);
  border: 3px solid #fff;
  border-radius: 13px 13px 13px 3px;
  box-shadow: 0 9px 24px rgba(0,0,0,.38);
  font: 800 13px/1 var(--mono);
  transform: rotate(-45deg);
}
.goal-marker.dropoff { background: var(--coral); color: #fff; }
.goal-marker span { color: var(--night); transform: rotate(45deg); }
.goal-marker.dropoff span { color: #fff; }

.trip-meter {
  position: absolute;
  z-index: 20;
  left: 14px;
  bottom: 90px;
  width: 304px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, rgba(5,22,19,.97), rgba(10,43,36,.96));
  border: 1px solid rgba(76,240,200,.25);
  border-radius: 19px;
  box-shadow: 0 20px 55px rgba(0,0,0,.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px 7px;
  color: rgba(255,255,255,.55);
  font: 700 9.5px/1 var(--sans);
  letter-spacing: .1em;
}
.meter-head > span { display: flex; align-items: center; gap: 7px; }
.meter-head time { color: #fff; font: 600 11px/1 var(--mono); letter-spacing: 0; }
.live-pulse { width: 6px; height: 6px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px var(--signal-soft); }
.meter-value-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 13px 8px; }
.meter-value-row strong { color: var(--signal); font: 700 31px/.95 var(--mono); letter-spacing: -.06em; }
.meter-value-row > span { padding-bottom: 3px; color: rgba(255,255,255,.54); font: 700 9px/1 var(--sans); letter-spacing: .08em; }
.meter-breakdown { display: grid; grid-template-columns: .8fr .8fr 1.4fr; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.meter-breakdown span { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; color: rgba(255,255,255,.46); font-size: 9px; }
.meter-breakdown span + span { border-left: 1px solid rgba(255,255,255,.08); }
.meter-breakdown b { overflow: hidden; color: #fff; font: 600 10.5px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.meter-details-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  color: rgba(255,255,255,.72);
  background: transparent;
  border: 0;
  font: 600 10.5px var(--sans);
  cursor: pointer;
}
.meter-details-toggle span:last-child { transition: transform .25s ease; }
.trip-meter.is-open .meter-details-toggle span:last-child { transform: rotate(180deg); }
.run-details { display: grid; grid-template-columns: 1fr 1fr; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
/* The cap has to clear the WORST case, not the common one: on the delivery leg
   the client block, the order row and the verification row fill two grid rows
   before « Urgence » and « Je suis bloqué » — a cap sized for one row silently
   clips the two things a driver in trouble reaches for. max-height only caps,
   so the extra room costs nothing when the rows are not there. */
.trip-meter.is-open .run-details { max-height: 220px; }
.run-emergency-exit {
  display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px;
  margin: 0 12px 11px; padding: 8px 10px; color: #ffd9d0; background: rgba(255,121,95,.1);
  border: 1px solid rgba(255,121,95,.4); border-radius: 10px;
  font: 700 9.5px var(--sans); letter-spacing: .07em; text-decoration: none; text-transform: uppercase;
}
.run-emergency-exit span { color: var(--danger); font-size: 8px; }
/* « Je suis bloqué » shares the exit's chrome but is a <button>, and amber:
   it is a call for help, not a departure. */
button.run-stuck-btn {
  cursor: pointer; font-family: var(--sans);
  color: #ffe9c2; background: rgba(246, 210, 105, .1); border-color: rgba(246, 210, 105, .45);
}
button.run-stuck-btn span { color: #f6d269; font-size: 11px; }
button.run-stuck-btn:disabled { opacity: .75; cursor: default; }
.run-details > div { position: relative; display: grid; align-content: start; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.run-details > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.detail-label { color: rgba(255,255,255,.42); font: 700 8px/1 var(--sans); letter-spacing: .1em; }
.run-details strong { margin-top: 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.contact-button { justify-self: start; margin-top: 5px; color: var(--signal); font-size: 10px; text-decoration: none; }
.payment-state { margin-top: 5px; color: var(--signal); font-size: 9.5px; }
.payment-state.needs-payment { color: var(--yellow); }

.match-stack { position: absolute; z-index: 24; top: calc(78px + env(safe-area-inset-top, 0px)); right: 14px; width: 326px; }
.match-stack-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  color: #fff;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 17px;
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.match-stack-toggle > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.match-stack-toggle b { overflow: hidden; font: 700 12px/1.2 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.match-stack-toggle small { margin-top: 3px; overflow: hidden; color: rgba(255,255,255,.5); font: 500 9.5px/1.2 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.match-radar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; background: var(--signal-soft); border: 1px solid rgba(76,240,200,.3); border-radius: 50%; }
.match-radar::before,
.match-radar::after { content: ''; position: absolute; border: 1px solid rgba(76,240,200,.42); border-radius: 50%; }
.match-radar::before { width: 20px; height: 20px; }
.match-radar::after { width: 10px; height: 10px; }
.match-radar i { width: 4px; height: 4px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 9px var(--signal); }
.match-count { display: grid; place-items: center; width: 27px; height: 27px; color: var(--night); background: var(--signal); border-radius: 9px; font: 800 11px var(--mono); }
.match-stack.has-new .match-stack-toggle { border-color: var(--signal); animation: matchGlow 1.8s ease-in-out 2; }
@keyframes matchGlow { 50% { box-shadow: 0 0 0 7px rgba(76,240,200,.12), 0 16px 42px rgba(0,0,0,.28); } }

.match-panel {
  display: none;
  max-height: calc(100dvh - 155px);
  margin-top: 8px;
  overflow: auto;
  color: var(--ink);
  background: rgba(255,253,248,.98);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0,0,0,.34);
}
.match-stack.is-open .match-panel { display: block; animation: panelIn .22s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-5px) scale(.985); } }
.match-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 15px 8px; }
.match-panel-head h2 { margin: 2px 0 0; font: 700 20px/1.1 var(--sans); letter-spacing: -.035em; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--ink); background: var(--cream-2); border: 0; border-radius: 50%; font: 500 22px/1 var(--sans); cursor: pointer; }
.match-context { margin: 0; padding: 0 15px 12px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.queued-runs { padding: 10px 14px; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.queued-run { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; }
.queued-run + .queued-run { border-top: 1px solid var(--line); }
.queued-run span { display: flex; flex-direction: column; min-width: 0; }
.queued-run b { font-size: 11px; }
.queued-run small { overflow: hidden; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.queued-run > strong { flex: none; color: var(--teal-dark); font: 700 11px var(--mono); }
.match-list { display: grid; gap: 9px; padding: 11px; }
.match-card { position: relative; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.match-card.is-featured { background: linear-gradient(145deg, #fff, #eefbf6); border-color: rgba(20,153,141,.34); }
.match-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.match-freshness { color: var(--muted); font: 700 8.5px/1 var(--sans); letter-spacing: .07em; }
.match-freshness.is-fresh { color: var(--coral); }
.match-value { color: var(--teal-dark); font: 700 18px/1 var(--mono); letter-spacing: -.04em; }
.match-card h3 { margin: 5px 0 7px; font: 700 14px/1.2 var(--sans); letter-spacing: -.02em; }
.match-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.match-meta span { padding: 4px 7px; color: var(--ink-2); background: var(--cream); border-radius: 7px; font-size: 9.5px; }
.match-meta .match-proximity { color: var(--teal-dark); background: var(--mint); }
.match-accept { width: 100%; min-height: 36px; margin-top: 10px; color: #fff; background: var(--forest); border: 0; border-radius: 10px; font: 700 11px var(--sans); cursor: pointer; }
.match-accept:disabled { opacity: .62; cursor: wait; }
.match-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; color: var(--muted); text-align: center; font-size: 10px; }
.match-empty strong { color: var(--ink); font-size: 12px; }
.radar-loader { position: relative; width: 30px; height: 30px; margin-bottom: 2px; border: 1px solid rgba(20,153,141,.35); border-radius: 50%; }
.radar-loader::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(20,153,141,.35); border-radius: 50%; }
.radar-loader::after { content: ''; position: absolute; left: 50%; bottom: 50%; width: 1px; height: 45%; background: var(--teal); transform-origin: bottom; animation: radarSweep 1.7s linear infinite; }
@keyframes radarSweep { to { transform: rotate(360deg); } }

.mission-actions { left: 330px; right: 350px; bottom: max(14px, env(safe-area-inset-bottom, 0px)); align-items: center; }
.mission-actions .btn { min-height: 54px; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.mission-actions .nav-secondary { display: grid; place-items: center; padding: 12px 16px; color: #fff; background: rgba(7,29,25,.88); border: 1px solid var(--glass-line); font-size: 12px; backdrop-filter: blur(12px); }
.mission-actions .mission-advance { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--night); background: var(--signal); font-size: 15px; }
.mission-actions .mission-advance:hover { background: #6cf5d5; }
.advance-arrow { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--night); border-radius: 9px; }
.mission-actions .advance-big { background: var(--yellow); animation: advancePulse 1.4s ease-in-out infinite; }
.action-feedback { position: absolute; right: 0; bottom: calc(100% + 6px); padding: 4px 8px; color: #fff; background: rgba(7,29,25,.88); border-radius: 7px; font-size: 10px; }
.action-feedback:empty { display: none; }

.dispatch-toast {
  position: absolute;
  z-index: 70;
  left: 50%;
  bottom: 86px;
  max-width: calc(100vw - 24px);
  padding: 11px 15px;
  color: #fff;
  background: var(--forest);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  font: 700 11px var(--sans);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}
.dispatch-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.dispatch-toast.warning { color: var(--night); background: var(--yellow); }
.dispatch-toast.match { color: var(--night); background: var(--signal); }

.reward-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3,18,15,.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.reward-overlay.is-visible { opacity: 1; pointer-events: auto; }
.reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 100%);
  padding: 30px 24px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(76,240,200,.45);
  border-radius: 26px;
  box-shadow: 0 30px 100px rgba(0,0,0,.48);
  text-align: center;
  transform: scale(.92);
  transition: transform .28s cubic-bezier(.2,.9,.25,1.25);
}
.reward-overlay.is-visible .reward-card { transform: scale(1); }
.reward-check { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; color: var(--night); background: var(--signal); border-radius: 18px; font: 800 26px var(--sans); box-shadow: 0 0 0 9px var(--signal-soft); }
.reward-card > strong { margin: 8px 0 2px; color: var(--teal-dark); font: 700 38px/1 var(--mono); letter-spacing: -.06em; }
.reward-card p { margin: 8px 0 3px; font-weight: 700; }
.reward-card small { color: var(--muted); }
.reward-sparks i { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; background: var(--coral); border-radius: 2px; }
.reward-overlay.is-visible .reward-sparks i { animation: rewardSpark 1s ease-out both; }
.reward-sparks i:nth-child(2) { background: var(--yellow); --x: 100px; --y: -65px; transform: rotate(20deg); }
.reward-sparks i:nth-child(3) { background: var(--teal); --x: -105px; --y: -45px; transform: rotate(45deg); }
.reward-sparks i:nth-child(4) { background: var(--peach); --x: 112px; --y: 45px; transform: rotate(70deg); }
.reward-sparks i:nth-child(5) { background: var(--yellow); --x: -95px; --y: 62px; transform: rotate(15deg); }
.reward-sparks i:nth-child(6) { background: var(--signal); --x: 12px; --y: -105px; transform: rotate(60deg); }
.reward-sparks i:nth-child(1) { --x: -25px; --y: 105px; }
@keyframes rewardSpark { from { opacity: 0; transform: translate(0,0) scale(.4); } 35% { opacity: 1; } to { opacity: 0; transform: translate(var(--x),var(--y)) rotate(180deg) scale(1); } }

@media (max-width: 1240px) {
  .mission-hud { left: 329px; right: 14px; width: auto; min-width: 0; transform: none; }
  .mission-directive { grid-template-columns: 48px minmax(0,1fr) 118px; gap: 10px; }
  .mission-turn { width: 46px; height: 46px; }
  .goal-clock strong { font-size: 23px; }
  .match-stack { top: calc(300px + env(safe-area-inset-top, 0px)); }
  .mission-actions { left: 330px; right: 14px; }
  .mission-shell .mapboxgl-ctrl-bottom-right { right: 14px; }
}

@media (max-width: 820px) {
  .active-run-page .topbar { padding-left: 9px; padding-right: 9px; }
  .active-run-page .topbar nav a { padding: 6px 8px; font-size: 11px; }
  .active-run-page .topbar nav a:first-child,
  .active-run-page .topbar nav a:last-child { display: none; }
  .active-run-page .topbar .btn.sm { padding: 6px 8px; font-size: 0; }
  .active-run-page .topbar .btn.sm::before { content: '×'; font-size: 18px; line-height: 1; }

  .mission-hud {
    top: calc(57px + env(safe-area-inset-top, 0px));
    left: 9px;
    right: 9px;
    width: auto;
    min-width: 0;
    transform: none;
    border-radius: 18px;
  }
  .mission-status-row { padding: 8px 11px 7px 15px; }
  .timing-chip { min-height: 22px; padding: 4px 7px; font-size: 8px; }
  .mission-directive { grid-template-columns: 43px minmax(0,1fr) 91px; gap: 9px; padding: 11px 11px 10px 15px; }
  .mission-turn { width: 41px; height: 41px; border-radius: 12px; box-shadow: 0 0 0 4px var(--signal-soft); }
  .mission-turn svg { width: 24px; height: 24px; }
  .mission-copy h1 { font-size: 17px; }
  .mission-copy p { font-size: 10px; }
  .mission-eyebrow { font-size: 8px; }
  .goal-clock { padding-left: 8px; }
  .goal-clock strong { font-size: 19px; }
  .goal-clock span { font-size: 7.5px; }
  .goal-clock small { font-size: 8px; }
  .turn-instruction { margin-top: 4px; font-size: 9px; }
  .turn-instruction span { font-size: 9px; }
  .mission-progress { padding: 0 14px 9px; }
  .progress-stop b { display: none; }

  .trip-meter { left: 9px; right: 9px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; border-radius: 17px; }
  .meter-head { padding: 8px 11px 6px; }
  .meter-value-row { padding: 0 11px 7px; }
  .meter-value-row strong { font-size: 26px; }
  .meter-breakdown span { padding: 6px 9px; }
  .meter-details-toggle { padding: 6px 10px; }
  .trip-meter.is-open .run-details { max-height: 210px; }

  .match-stack { top: auto; right: 9px; bottom: calc(224px + env(safe-area-inset-bottom, 0px)); width: 212px; }
  .match-stack-toggle { grid-template-columns: 29px minmax(0,1fr) 24px; min-height: 45px; padding: 6px 7px; border-radius: 14px; }
  .match-radar { width: 28px; height: 28px; }
  .match-count { width: 23px; height: 23px; border-radius: 7px; font-size: 9px; }
  .match-stack-toggle b { font-size: 10.5px; }
  .match-stack-toggle small { font-size: 8px; }
  .match-panel {
    position: fixed;
    left: 9px;
    right: 9px;
    bottom: max(9px, env(safe-area-inset-bottom, 0px));
    z-index: 80;
    max-height: min(72dvh, 610px);
    margin: 0;
    border-radius: 23px;
  }
  .match-stack.is-open::before { content: ''; position: fixed; z-index: 75; inset: 0; background: rgba(3,18,15,.62); backdrop-filter: blur(5px); }
  .match-stack.is-open .match-panel { z-index: 80; }
  .mission-actions { left: 9px; right: 9px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); gap: 7px; }
  .mission-actions .btn { min-height: 58px; border-radius: 15px; }
  .mission-actions .nav-secondary { flex: 0 0 92px; padding: 9px; font-size: 9.5px; }
  .mission-actions .mission-advance { font-size: 13px; }
  .advance-arrow { width: 26px; height: 26px; }
  .mission-shell .mapboxgl-ctrl-bottom-right { right: 6px; bottom: 281px; }
  .mission-shell .mapboxgl-ctrl-attrib { display: none; }
  .dispatch-toast { bottom: calc(226px + env(safe-area-inset-bottom, 0px)); font-size: 10px; }
}

@media (max-height: 700px) and (max-width: 820px) {
  .mission-status-row { display: none; }
  .mission-hud { top: calc(52px + env(safe-area-inset-top, 0px)); }
  .mission-progress { display: none; }
  .trip-meter { bottom: calc(73px + env(safe-area-inset-bottom, 0px)); }
  .meter-breakdown { display: none; }
  .match-stack { bottom: calc(179px + env(safe-area-inset-bottom, 0px)); }
  .mission-shell .mapboxgl-ctrl-bottom-right { bottom: 225px; }
}

@media (prefers-reduced-motion: reduce) {
  .match-stack.has-new .match-stack-toggle,
  .radar-loader::after,
  .reward-overlay.is-visible .reward-sparks i,
  /* The « vérifié il y a Ns » tick is what proves we are listening, not this
     pulse — dropping the animation costs nothing. The 1.8 s hold on the paid
     panel is TIMING, not motion, and stays: a driver who never sees the flip
     will not believe the money landed. */
  .paylink-live .live-pulse,
  .paylink-waiting-chip .live-pulse,
  .mission-actions .advance-big { animation: none; }
  .mission-progress i,
  .reward-card,
  .reward-overlay,
  .dispatch-toast { transition: none; }
}

/* ── Dispatch radar / order board ───────────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.dispatch-page { overflow: hidden; background: var(--night); }
.dispatch-page .topbar { z-index: 45; }
.dispatch-shell #map { background: var(--night); }
.dispatch-shell .mapboxgl-ctrl-bottom-right { right: 12px; bottom: 12px; }
/* « Voir le territoire » — back to the opening frame (owner 2026-08-03).
   Corner brackets round a dot: the standard "fit everything in view" glyph,
   drawn in mapbox's own control ink so it reads as one stack with the
   locate and zoom buttons above it. */
.chf-territory-btn .mapboxgl-ctrl-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23333' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 7.2V4.6A1.6 1.6 0 0 1 4.6 3H7.2'/%3E%3Cpath d='M12.8 3h2.6A1.6 1.6 0 0 1 17 4.6v2.6'/%3E%3Cpath d='M17 12.8v2.6a1.6 1.6 0 0 1-1.6 1.6h-2.6'/%3E%3Cpath d='M7.2 17H4.6A1.6 1.6 0 0 1 3 15.4v-2.6'/%3E%3Ccircle cx='10' cy='10' r='2.2'/%3E%3C/svg%3E");
  background-position: 50%;
  background-repeat: no-repeat;
}
.dispatch-board {
  display: flex;
  flex-direction: column;
  width: 390px;
  max-height: calc(100% - 24px);
  padding: 0;
  overflow: hidden;
  background: rgba(255,253,248,.97);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 23px;
  box-shadow: 0 30px 90px rgba(0,0,0,.31);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dispatch-board-head {
  flex: none;
  padding: 17px 17px 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--forest), var(--forest-deep));
}
.dispatch-board-head > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dispatch-board-head > div:first-child > div { min-width: 0; }
.dispatch-board-head .section-kicker { color: rgba(255,255,255,.52); }
.dispatch-board-head h1 { margin: 0; color: #fff; font: 700 23px/1.1 var(--sans); letter-spacing: -.04em; }
.board-collapse { display: none; width: 34px; height: 30px; padding: 0; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; font: 700 18px/1 var(--sans); }
.online-control {
  display: grid;
  grid-template-columns: 9px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
  padding: 9px 10px;
  background: rgba(0,0,0,.17);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
}
.online-control > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.online-control b { font-size: 11.5px; }
.online-control small { overflow: hidden; color: rgba(255,255,255,.5); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.online-control .dot { background: rgba(255,255,255,.34); }
.online-control .dot.on { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }

/* Presence actions: no self-serve go-online — a Resume tap only when a live
   shift lost GPS presence, and the emergency STOP whenever a shift runs. */
.presence-actions { display: flex; flex: none; align-items: center; gap: 7px; }
.resume-duty {
  min-height: 30px; padding: 6px 13px; color: var(--night); background: var(--signal);
  border: 0; border-radius: 999px; font: 700 10.5px var(--sans); letter-spacing: .04em; cursor: pointer;
}
.resume-duty:disabled { opacity: .55; cursor: wait; }
/* Repair: on duty, but the app cannot report a position. Same red as the
   notification blocker — one colour for "a permission is missing". */
.fix-duty {
  min-height: 30px; padding: 6px 13px; color: #2e0804;
  background: linear-gradient(180deg, #ffb3a8, #ff8a7a);
  border: 0; border-radius: 999px; font: 800 10.5px var(--sans); letter-spacing: .06em; cursor: pointer;
}
.shift-stop {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 6px 12px;
  color: #ffd9d0; background: rgba(255,121,95,.16); border: 1px solid rgba(255,121,95,.55);
  border-radius: 999px; font: 800 10px var(--sans); letter-spacing: .09em; cursor: pointer;
}
.shift-stop i { width: 8px; height: 8px; background: var(--danger); border-radius: 2px; }
.shift-stop:hover { background: rgba(255,121,95,.28); }
.resume-duty[hidden], .fix-duty[hidden], .shift-stop[hidden] { display: none; }

/* Emergency STOP sheet — quotes the exact settlement before the driver
   commits (abandon-preview = the same settleShift math). Sits under the
   callout takeover (z 5000): a summons still outranks an exit-in-progress. */
.stop-sheet {
  position: fixed; inset: 0; z-index: 4900; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(3,18,15,.66); backdrop-filter: blur(6px);
}
.stop-sheet.is-visible { display: flex; }
.stop-card {
  width: min(430px, 100vw); padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  color: #f2fbf7; background: var(--glass); border: 1px solid var(--glass-line); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -18px 60px rgba(0,0,0,.45);
}
.stop-kicker { color: var(--danger); }
.stop-title { margin: 6px 0 12px; color: #fff; font: 700 21px/1.1 var(--sans); letter-spacing: -.03em; }
.stop-loading { margin: 0 0 12px; color: rgba(242,251,247,.6); font-size: 12px; }
.stop-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 11px; }
.stop-facts > div { padding: 9px 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.stop-facts dt { margin: 0; color: rgba(242,251,247,.55); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.stop-facts dd { margin: 3px 0 0; font: 700 14px var(--mono); letter-spacing: -.03em; }
.stop-warning { margin: 0 0 11px; padding: 10px 12px; color: #ffd9d0; background: rgba(255,121,95,.13); border: 1px solid rgba(255,121,95,.4); border-radius: 12px; font-size: 11px; line-height: 1.45; }
.stop-payout { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 7px; padding: 12px 13px; background: rgba(255,255,255,.06); border-radius: 13px; }
.stop-payout span { color: rgba(242,251,247,.62); font-size: 11px; }
.stop-payout strong { color: var(--signal); font: 700 26px/1 var(--mono); letter-spacing: -.05em; }
.stop-rule { margin: 0 0 4px; color: rgba(242,251,247,.66); font-size: 10.5px; line-height: 1.45; }
.stop-reliability { margin: 0 0 14px; color: rgba(246,210,105,.85); font-size: 10.5px; line-height: 1.45; }
.stop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stop-stay { min-height: 46px; padding: 10px 12px; color: var(--night); background: var(--signal); border: 0; border-radius: 13px; font: 700 12.5px var(--sans); cursor: pointer; }
.stop-confirm { min-height: 46px; padding: 10px 12px; color: #ffd9d0; background: rgba(255,121,95,.14); border: 1px solid rgba(255,121,95,.5); border-radius: 13px; font: 700 12.5px var(--sans); cursor: pointer; }
.stop-confirm.is-armed { color: #fff; background: #c9421f; border-color: #c9421f; animation: stop-armed .9s ease-in-out infinite; }
.stop-confirm:disabled, .stop-stay:disabled { opacity: .55; cursor: wait; }
.stop-done { display: grid; gap: 6px; padding: 18px 4px 6px; text-align: center; }
.stop-done strong { font: 700 20px var(--sans); }
.stop-done span { color: rgba(242,251,247,.72); font-size: 12px; }
@keyframes stop-armed { 50% { box-shadow: 0 0 0 6px rgba(201,66,31,.25); } }
@media (min-width: 721px) {
  .stop-sheet { align-items: center; padding: 20px; }
  .stop-card { border-bottom: 1px solid var(--glass-line); border-radius: 22px; }
}

.active-missions,
.available-missions { padding: 14px 14px 0; }
.active-missions { flex: none; padding-bottom: 13px; background: linear-gradient(180deg, #eaf9f4, rgba(234,249,244,.32)); border-bottom: 1px solid var(--line); }
.available-missions { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; padding-bottom: 9px; }
.dispatch-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.dispatch-section-head h2 { margin: 2px 0 0; font: 700 16px/1.15 var(--sans); letter-spacing: -.03em; }
.queue-capacity,
.pool-count { display: grid; place-items: center; min-width: 30px; height: 27px; padding: 0 7px; border-radius: 9px; font: 700 10px var(--mono); }
.queue-capacity { color: var(--teal-dark); background: var(--mint); }
.pool-count { color: #fff; background: var(--forest); }

#mineList { display: grid; gap: 7px; }
.active-mission-card {
  position: relative;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20,153,141,.23);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(18,60,50,.08);
}
.active-mission-card.is-primary { color: #fff; background: linear-gradient(145deg, #123c32, #092921); border-color: transparent; }
.active-mission-card.is-primary::after { content: ''; position: absolute; top: -35px; right: -35px; width: 105px; height: 105px; background: radial-gradient(circle, rgba(76,240,200,.17), transparent 68%); }
.active-mission-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.active-stage { color: var(--teal-dark); font: 700 8.5px/1 var(--sans); letter-spacing: .1em; }
.is-primary .active-stage { color: var(--signal); }
.active-value { color: var(--teal-dark); font: 700 17px/1 var(--mono); letter-spacing: -.04em; }
.is-primary .active-value { color: var(--signal); }
.active-mission-card h3 { position: relative; z-index: 1; margin: 5px 0 2px; font: 700 15px/1.15 var(--sans); letter-spacing: -.025em; }
.active-address { position: relative; z-index: 1; overflow: hidden; margin: 0; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.is-primary .active-address { color: rgba(255,255,255,.54); }
.active-timing { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 7px 8px; background: var(--cream); border-radius: 9px; }
.is-primary .active-timing { background: rgba(255,255,255,.08); }
.mission-countdown { color: var(--teal-dark); font: 700 18px/1 var(--mono); letter-spacing: -.04em; }
.mission-countdown.is-due { color: #a86b00; }
.mission-countdown.is-late { color: var(--coral); }
.is-primary .mission-countdown { color: var(--signal); }
.is-primary .mission-countdown.is-due { color: var(--yellow); }
.is-primary .mission-countdown.is-late { color: var(--danger); }
.mission-arrival { color: var(--muted); font-size: 8.5px; text-align: right; }
.is-primary .mission-arrival { color: rgba(255,255,255,.48); }
.mini-progress { position: relative; z-index: 1; display: grid; grid-template-columns: 8px 1fr 8px; align-items: center; gap: 0; margin: 10px 2px 8px; }
.mini-progress i:first-child,
.mini-progress i:last-child { width: 8px; height: 8px; background: var(--cream-2); border: 2px solid var(--teal); border-radius: 50%; }
.mini-progress i:nth-child(2) { height: 2px; background: var(--cream-2); }
.mini-progress.is-pickup i:first-child { background: var(--teal); }
.mini-progress.is-dropoff i:first-child,
.mini-progress.is-dropoff i:nth-child(2),
.mini-progress.is-dropoff i:last-child { background: var(--teal); }
.is-primary .mini-progress i:first-child,
.is-primary .mini-progress i:last-child { border-color: var(--signal); }
.is-primary .mini-progress i:nth-child(2) { background: rgba(255,255,255,.18); }
.is-primary .mini-progress.is-pickup i:first-child,
.is-primary .mini-progress.is-dropoff i { background: var(--signal); }
.continue-mission { position: relative; z-index: 1; display: block; padding: 8px 10px; color: #fff; background: var(--forest); border-radius: 9px; font: 700 10px var(--sans); text-align: center; text-decoration: none; }
.is-primary .continue-mission { color: var(--night); background: var(--signal); }
.active-mission-card.is-queued { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; padding: 9px 10px; }
.active-mission-card.is-queued .active-mission-top { grid-column: 1 / -1; }
.active-mission-card.is-queued h3 { margin: 1px 0; font-size: 12px; }
.active-mission-card.is-queued .active-address,
.active-mission-card.is-queued .active-timing,
.active-mission-card.is-queued .mini-progress { display: none; }
.active-mission-card.is-queued .continue-mission { grid-column: 2; grid-row: 2; padding: 6px 9px; font-size: 9px; }

.offer-list { display: grid; flex: 1; min-height: 0; gap: 8px; overflow: auto; padding-right: 2px; overscroll-behavior: contain; }
.offer-card { flex: none; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.offer-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.offer-age { padding: 4px 7px; color: var(--muted); background: var(--cream); border-radius: 6px; font: 700 8px/1 var(--sans); letter-spacing: .06em; }
.offer-age.is-fresh { color: #a83722; background: #fff0eb; }
.offer-value { display: flex; flex-direction: column; align-items: flex-end; }
.offer-value small { color: var(--muted); font: 700 7px/1 var(--sans); letter-spacing: .08em; }
.offer-value strong { margin-top: 2px; color: var(--teal-dark); font: 700 20px/1 var(--mono); letter-spacing: -.045em; }
.offer-card h3 { margin: 3px 0 7px; font: 700 13.5px/1.15 var(--sans); letter-spacing: -.02em; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.offer-meta span { padding: 4px 7px; color: var(--ink-2); background: var(--cream); border-radius: 7px; font-size: 8.5px; }
.offer-meta .has-tip { color: var(--teal-dark); background: var(--mint); }
.offer-accept { width: 100%; min-height: 36px; margin-top: 9px; color: #fff; background: var(--forest); border: 0; border-radius: 10px; font: 700 10.5px var(--sans); cursor: pointer; }
.offer-accept:hover { background: var(--forest-deep); }
.offer-accept:disabled { color: var(--muted); background: var(--cream-2); cursor: not-allowed; }
.offer-distance { padding: 4px 7px; color: var(--ink-2); background: var(--cream); border-radius: 6px; font: 700 9.5px/1 var(--mono); letter-spacing: -.02em; }

/* Shift-opportunity cards (on-call board, owner 2026-07-24): zone-first,
   hourly terms — the actionable one is unmistakable, the out-of-zone ones
   say plainly what stands between the driver and the shift. */
.opp-zone-chip { padding: 4px 8px; color: #8a6a1f; background: #fdf3d9; border: 1px solid rgba(200,160,60,.35); border-radius: 999px; font: 800 8.5px/1.2 var(--sans); letter-spacing: .04em; }
.opp-zone-chip.is-in { color: var(--teal-dark); background: var(--mint); border-color: rgba(20,153,141,.3); }
.opp-expiry { padding: 4px 0; color: var(--muted); font: 700 8.5px/1.2 var(--mono); letter-spacing: -.01em; }
.opp-expiry.is-late { color: #a83722; }
.opp-pay { display: flex; align-items: baseline; gap: 7px; margin: 0 0 7px; }
.opp-pay strong { color: var(--teal-dark); font: 700 19px/1 var(--mono); letter-spacing: -.04em; }
.opp-pay span { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.opp-declined { color: #8a6a1f !important; background: #fdf3d9 !important; }
.opp-card.is-out { background: #fbfaf6; }
.opp-card.is-out h3, .opp-card.is-out .opp-pay strong { opacity: .75; }
.offer-accept.is-out { color: #8a6a1f; background: #fdf3d9; border: 1px solid rgba(200,160,60,.4); }
.offer-accept.is-out:hover { background: #f9ecc9; }
.dispatch-empty,
.dispatch-loading { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 115px; color: var(--muted); text-align: center; font-size: 10px; }
.dispatch-empty strong { color: var(--ink); font-size: 12px; }

.network-strip { flex: none; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 14px; background: var(--cream); border-top: 1px solid var(--line); }
.network-strip > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.network-strip b { font-size: 9.5px; }
.network-strip small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.network-strip time { color: var(--muted); font: 600 8px var(--mono); }
.network-wave { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 18px; }
.network-wave i { width: 3px; background: var(--teal); border-radius: 3px; animation: networkWave 1.4s ease-in-out infinite; }
.network-wave i:nth-child(1) { height: 7px; }
.network-wave i:nth-child(2) { height: 14px; animation-delay: .18s; }
.network-wave i:nth-child(3) { height: 10px; animation-delay: .36s; }
@keyframes networkWave { 50% { transform: scaleY(.45); opacity: .45; } }

.dispatch-pin { width: 10px; height: 10px; background: var(--teal); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px rgba(0,0,0,.36); }
.dispatch-pin.restaurant { width: 8px; height: 8px; background: var(--forest); opacity: .76; }
.dispatch-pin.activity { width: 9px; height: 9px; background: var(--yellow); border-width: 1.5px; }
.dispatch-pin.pool { width: 16px; height: 16px; background: var(--coral); box-shadow: 0 0 0 5px rgba(235,101,72,.18), 0 4px 14px rgba(0,0,0,.35); }
.dispatch-pin.mine { display: grid; place-items: center; width: 29px; height: 29px; color: var(--night); background: var(--signal); border-width: 3px; border-radius: 10px; box-shadow: 0 0 0 6px rgba(76,240,200,.17), 0 7px 18px rgba(0,0,0,.4); }
.dispatch-pin.mine span { font: 800 9px var(--mono); }
.board-peek { display: none; }

@media (max-width: 640px) {
  .dispatch-shell .mapboxgl-ctrl-bottom-right { right: 7px; bottom: 53%; }
  .dispatch-shell .mapboxgl-ctrl-attrib { display: none; }
  .dispatch-board {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: 58%;
    border-radius: 21px;
    transform: translateY(0);
    transition: transform .3s ease;
  }
  .dispatch-board-head { padding: 12px 13px 10px; }
  .board-collapse { display: grid; place-items: center; }
  .dispatch-board-head h1 { font-size: 18px; }
  .online-control { margin-top: 9px; padding: 7px 8px; }
  .active-missions,
  .available-missions { padding: 10px 10px 0; }
  .active-missions { padding-bottom: 9px; }
  .dispatch-section-head { margin-bottom: 7px; }
  .dispatch-section-head h2 { font-size: 13px; }
  .active-mission-card.is-primary { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 9px 10px; }
  .active-mission-card.is-primary .active-mission-top { grid-column: 1 / -1; }
  .active-mission-card.is-primary h3 { font-size: 13px; }
  .active-mission-card.is-primary .active-address { font-size: 8.5px; }
  .active-mission-card.is-primary .active-timing { grid-column: 1; margin-top: 5px; padding: 5px 7px; }
  .active-mission-card.is-primary .mission-countdown { font-size: 15px; }
  .active-mission-card.is-primary .mini-progress { display: none; }
  .active-mission-card.is-primary .continue-mission { grid-column: 2; align-self: stretch; display: grid; place-items: center; padding: 6px 10px; font-size: 9px; }
  .active-mission-card.is-queued { display: none; }
  .available-missions { min-height: 145px; }
  .offer-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scroll-snap-type: x mandatory; }
  .offer-card { min-width: 215px; scroll-snap-align: start; }
  .network-strip { padding: 7px 11px; }
  .board-peek {
    position: absolute;
    z-index: 31;
    left: 50%;
    bottom: 8px;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    width: calc(100% - 16px);
    min-height: 52px;
    padding: 7px 10px;
    color: #fff;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 17px;
    box-shadow: 0 16px 42px rgba(0,0,0,.32);
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .board-peek > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
  .board-peek b { font-size: 11px; }
  .board-peek small { overflow: hidden; color: rgba(255,255,255,.52); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
  .board-peek > span:last-child { font-size: 15px; }
  .board-collapsed .dispatch-board { transform: translateY(calc(100% + 14px)); }
  .board-collapsed .board-peek { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  .board-collapsed .dispatch-shell .mapboxgl-ctrl-bottom-right { bottom: 68px; }
  .dispatch-page .dispatch-toast { bottom: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .network-wave i { animation: none; }
  .stop-confirm.is-armed { animation: none; }
  .callout-accept.is-eligible,
  .zone-peek-chip { animation: none; }
  .dispatch-board,
  .board-peek { transition: none; }
}

/* ── Mission history ────────────────────────────────────────────────────── */
.run-history-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 9% 0, rgba(20,153,141,.14), transparent 30rem),
    linear-gradient(180deg, #eef7f2 0, var(--cream) 34rem);
}
.run-history-wrap { max-width: 1080px; padding-top: 32px; }
.run-history-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  align-items: center;
  min-height: 192px;
  padding: 30px 36px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(132deg, #07271f, var(--forest) 62%, #14594c);
  border: 1px solid rgba(76,240,200,.18);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(18,60,50,.2);
}
.run-history-hero::before {
  content: '';
  position: absolute;
  right: -74px;
  bottom: -185px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(76,240,200,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(76,240,200,.035), 0 0 0 104px rgba(76,240,200,.022);
}
.run-history-copy { position: relative; z-index: 1; }
.run-history-hero .section-kicker { color: var(--signal); }
.run-history-hero h1 { max-width: 640px; margin: 7px 0 8px; color: #fff; font-size: clamp(37px, 5vw, 53px); line-height: .98; }
.run-history-hero p { max-width: 560px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.history-route-art {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(35px,1fr) 52px;
  align-items: center;
  width: 250px;
  min-height: 138px;
  justify-self: end;
  padding: 24px 20px 58px;
  background: rgba(4,29,23,.34);
  border: 1px solid rgba(204,238,226,.16);
  border-radius: 22px;
  backdrop-filter: blur(12px);
}
.history-art-node { display: grid; place-items: center; width: 42px; height: 42px; background: rgba(76,240,200,.13); border: 1px solid rgba(76,240,200,.3); border-radius: 14px; }
.history-art-node.is-start i { width: 10px; height: 10px; background: var(--signal); border: 3px solid rgba(255,255,255,.78); border-radius: 50%; box-shadow: 0 0 0 5px rgba(76,240,200,.12); }
.history-art-node.is-finish { width: 52px; height: 52px; color: var(--night); background: var(--signal); border: 0; border-radius: 17px; font: 800 23px var(--sans); box-shadow: 0 0 0 8px rgba(76,240,200,.09); }
.history-art-line { height: 2px; overflow: hidden; background: rgba(255,255,255,.14); }
.history-art-line i { display: block; width: 60%; height: 100%; background: var(--signal); border-radius: inherit; }
.history-hero-stat { position: absolute; left: 20px; right: 20px; bottom: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.history-hero-stat strong { color: #fff; font: 700 20px/1 var(--mono); }
.history-hero-stat small { color: rgba(255,255,255,.58); font-size: 10px; }

.history-browser { margin-top: 30px; }
.history-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.history-section-head h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.1; }
.history-section-head p { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
.history-filters { display: flex; gap: 4px; padding: 4px; background: rgba(255,253,248,.84); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgba(18,60,50,.04); }
.history-filters button { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 8px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; font: 700 12px var(--sans); cursor: pointer; }
.history-filters .filter-count { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; color: inherit; background: rgba(16,45,38,.07); border-radius: 999px; font: 600 9px var(--mono); }
.history-filters button.is-active { color: #fff; background: var(--forest); box-shadow: 0 6px 14px rgba(18,60,50,.16); }
.history-filters button.is-active .filter-count { background: rgba(255,255,255,.14); }
.history-results { color: var(--muted); font-size: 11px; }
.history-results strong { color: var(--ink); font: 600 12px var(--mono); }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.history-run-card { position: relative; padding: 17px; overflow: hidden; background: rgba(255,253,248,.96); border: 1px solid rgba(16,45,38,.13); border-radius: 20px; box-shadow: 0 10px 30px rgba(18,60,50,.07); }
.history-run-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.history-run-card.status-delivered { border-color: rgba(20,153,141,.23); }
.history-run-card.status-delivered::before { background: var(--teal); }
.history-run-card.status-accepted,
.history-run-card.status-picked_up { background: linear-gradient(145deg, #fff, #edf9f4); border-color: rgba(20,153,141,.38); }
.history-run-card.status-accepted::before,
.history-run-card.status-picked_up::before { background: var(--coral); }
.history-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.history-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; color: var(--muted); background: var(--cream-2); border-radius: 999px; font: 700 9px/1 var(--sans); letter-spacing: .055em; text-transform: uppercase; }
.status-delivered .history-status { color: var(--teal-dark); background: var(--mint); }
.status-accepted .history-status,
.status-picked_up .history-status { color: #8d321f; background: #ffe1d9; }
.history-card-top time { color: var(--muted); font: 500 10px var(--mono); }
.history-route { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 10px; align-items: stretch; padding: 15px 2px; }
.history-route-line { display: flex; flex-direction: column; align-items: center; padding: 5px 0; }
.history-route-line i { flex: none; width: 8px; height: 8px; background: var(--teal); border: 2px solid var(--mint); border-radius: 50%; }
.history-route-line::after { content: ''; flex: 1; width: 1px; min-height: 21px; background: repeating-linear-gradient(to bottom, rgba(16,45,38,.25) 0 3px, transparent 3px 6px); }
.history-route-line i:last-child { order: 3; background: var(--coral); border-color: #ffd8cd; }
.history-stops { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 12px; }
.history-stop { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.history-stop small { color: var(--muted); font: 700 8px/1.2 var(--sans); letter-spacing: .09em; }
.history-stop strong,
.history-stop > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-stop strong { font-size: 13px; }
.history-stop > span { color: var(--muted); font-size: 11px; }
.history-distance { align-self: center; padding: 4px 7px; color: var(--teal-dark); background: var(--mint); border-radius: 999px; font: 600 9px var(--mono); white-space: nowrap; }
.history-stats { display: grid; grid-template-columns: 1.08fr repeat(4,1fr); gap: 1px; margin: 0; overflow: hidden; background: var(--line); border: 1px solid rgba(16,45,38,.06); border-radius: 13px; }
.history-stat { display: flex; min-width: 0; min-height: 59px; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 9px; background: var(--cream); }
.history-stat dt { overflow: hidden; color: var(--muted); font: 700 8px/1.15 var(--sans); letter-spacing: .075em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.history-stat dd { min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font: 700 11px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.history-stat:first-child dd { color: var(--teal-dark); font-size: 16px; letter-spacing: -.04em; }
.history-resume { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 9px 12px 9px 15px; color: var(--night); background: var(--signal); border-radius: 12px; font: 700 11px var(--sans); text-decoration: none; }
.history-resume-arrow { display: grid; width: 26px; height: 26px; place-items: center; color: #fff; background: var(--forest); border-radius: 8px; font-size: 16px; }
.history-loading,
.history-empty { grid-column: 1 / -1; display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--muted); background: rgba(255,253,248,.78); border: 1px dashed var(--line); border-radius: 20px; font-size: 12px; }
.history-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 3px; color: var(--teal-dark); background: var(--mint); border-radius: 14px; font-size: 24px; }
.history-empty strong { color: var(--ink); font-size: 14px; }
.history-empty small { color: var(--muted); font-size: 11px; }
.history-error { grid-column: 1 / -1; padding: 34px; color: #8d321f; background: #fff0eb; border: 1px solid rgba(168,55,34,.24); border-radius: 18px; text-align: center; }

@media (max-width: 700px) {
  .run-history-wrap { padding-top: 14px; }
  .run-history-hero { grid-template-columns: minmax(0,1fr) 106px; min-height: 154px; padding: 20px; border-radius: 22px; }
  .run-history-hero h1 { margin-top: 5px; font-size: 29px; line-height: 1.02; }
  .run-history-hero p { font-size: 11.5px; line-height: 1.45; }
  .history-route-art { grid-template-columns: 30px minmax(14px,1fr) 36px; width: 102px; min-height: 106px; padding: 16px 8px 48px; border-radius: 17px; }
  .history-art-node { width: 30px; height: 30px; border-radius: 10px; }
  .history-art-node.is-finish { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; box-shadow: 0 0 0 5px rgba(76,240,200,.09); }
  .history-art-node.is-start i { width: 8px; height: 8px; border-width: 2px; }
  .history-hero-stat { left: 8px; right: 8px; bottom: 9px; padding-top: 7px; }
  .history-hero-stat strong { font-size: 16px; }
  .history-hero-stat small { max-width: 58px; font-size: 8px; line-height: 1.15; text-align: right; }
  .history-browser { margin-top: 22px; }
  .history-section-head { display: block; margin-bottom: 12px; }
  .history-section-head h2 { font-size: 24px; }
  .history-section-head p { margin-top: 5px; font-size: 10.5px; text-align: left; }
  .history-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
  .history-filters { display: grid; grid-template-columns: repeat(3,1fr); }
  .history-filters button { min-height: 44px; justify-content: center; gap: 5px; padding: 7px 5px; font-size: 10.5px; }
  .history-filters .filter-count { min-width: 18px; height: 18px; padding: 0 4px; font-size: 8px; }
  .history-results { padding-left: 3px; }
  .history-grid { grid-template-columns: 1fr; gap: 12px; }
  .history-run-card { padding: 14px; border-radius: 18px; }
  .history-card-top time { font-size: 9px; }
  .history-route { padding: 13px 1px; }
  .history-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .history-stat { min-height: 55px; padding: 8px 10px; }
  .history-stat:nth-child(4) { grid-column: span 2; }
  .history-stat dt { font-size: 8px; }
  .history-stat dd { font-size: 12px; }
}

@media (max-width: 355px) {
  .run-history-hero { grid-template-columns: 1fr 76px; padding: 18px 16px; }
  .run-history-hero h1 { font-size: 29px; }
  .history-route-art { width: 74px; padding-left: 5px; padding-right: 5px; }
  .history-art-node.is-start { display: none; }
  .history-art-line { display: none; }
  .history-route-art { display: flex; justify-content: center; }
}

/* ── Callout takeover (standby dispatch, owner model 2026-07-22) ──────────
   The CR-tablet technique: a full-screen, impossible-to-miss shift offer
   with one giant accept. Pulses while the siren loops. */
.callout-takeover {
  position: fixed; inset: 0; z-index: 5000; display: none;
  background: radial-gradient(circle at 50% 18%, #123c32 0%, #071d17 62%, #04120e 100%);
  color: #fffdf8; text-align: center;
}
.callout-takeover.is-visible { display: flex; align-items: center; justify-content: center; animation: callout-flash 1.9s ease-in-out infinite; }
@keyframes callout-flash {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(76, 240, 200, 0); }
  50% { box-shadow: inset 0 0 0 9px rgba(76, 240, 200, .55); }
}
.callout-inner { max-width: 480px; padding: 34px 26px; display: flex; flex-direction: column; gap: 13px; align-items: center; }
.callout-kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: #4cf0c8; animation: callout-blink 1s step-end infinite; }
@keyframes callout-blink { 50% { opacity: .35; } }
.callout-title { font-size: 31px; line-height: 1.12; margin: 0; color: #fffdf8; }
.callout-meta { font-size: 15px; color: #b9dcd2; margin: 0; }
.callout-shift {
  font-size: 19px; font-weight: 800; color: #123c32; background: #4cf0c8;
  border-radius: 999px; padding: 9px 22px; letter-spacing: .02em;
}
/* Attach quote: the run joins a contract already running, so the takeover
   states what the tap buys instead of a price — no shift is being sold. */
.callout-attach {
  font-size: 14.5px; font-weight: 700; line-height: 1.35; color: #b9dcd2;
  margin: 2px 0 0; max-width: 34ch; text-wrap: balance;
}
.callout-pay { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 2px 0 0; }
.callout-pay strong { font-size: 46px; line-height: 1; color: #fffdf8; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.callout-pay span { font-size: 13.5px; font-weight: 700; color: #b9dcd2; letter-spacing: .05em; text-transform: uppercase; }
.callout-expiry { font-size: 13px; color: #8fb7ac; font-variant-numeric: tabular-nums; margin: 0; }
.callout-accept {
  width: 100%; border: 0; border-radius: 18px; padding: 22px 20px; cursor: pointer;
  font-size: 21px; font-weight: 800; letter-spacing: .04em;
  color: #071d17; background: linear-gradient(180deg, #5ef7d2, #2fd3a8);
  box-shadow: 0 12px 34px rgba(76, 240, 200, .4);
  touch-action: manipulation;
}
.callout-accept:disabled { opacity: .6; }
/* A real button, not an underlined caption (owner report 2026-07-24: the
   old 14px text link missed taps): full-width, ≥52px target, instant
   :active feedback, no double-tap-zoom hesitation. */
.callout-decline {
  width: 100%; min-height: 52px; margin-top: 2px; padding: 14px 16px;
  color: #b9dcd2; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22); border-radius: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,255,255,.14);
}
.callout-decline:active { background: rgba(255,255,255,.16); }
/* Snooze picker (decline second step): three availability chips + a way
   back to the offer. Same ≥48px targets as the decline itself. */
.callout-snooze { display: flex; flex-direction: column; gap: 9px; width: 100%; }
/* The [hidden] guard is load-bearing, not defensive. chauffeur-map.js builds
   the snooze picker with snoozeRow.hidden = true and only unhides it when the
   driver taps « Pas disponible » — but an author `display: flex` outranks the
   UA sheet's [hidden] { display: none }, so without this line the property is
   inert and the picker sits permanently open. Every callout was showing
   « Quand serez-vous disponible ? » and three decline chips directly under
   ACCEPTER LE SHIFT: the offer screen was arguing against itself. Same guard
   the duty buttons already carry above. */
.callout-snooze[hidden] { display: none; }
.snooze-title { margin: 0; color: #b9dcd2; font-size: 13.5px; font-weight: 700; }
.snooze-chips { display: grid; gap: 8px; width: 100%; }
.snooze-chip {
  min-height: 50px; padding: 13px 15px; cursor: pointer;
  color: #e8fff7; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.24); border-radius: 13px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(255,255,255,.14);
}
.snooze-chip:active { background: rgba(255,255,255,.18); }
.snooze-back {
  min-height: 44px; padding: 9px; background: none; border: 0; cursor: pointer;
  color: #7fa69a; font-size: 13px; text-decoration: underline;
  touch-action: manipulation;
}
.snooze-clear {
  min-height: 40px; margin-top: 9px; padding: 9px 16px; cursor: pointer;
  color: #fff; background: var(--forest); border: 0; border-radius: 10px;
  font: 700 11px var(--sans); touch-action: manipulation;
}
.snooze-clear:active { background: var(--forest-deep); }
.callout-window { font-size: 15px; font-weight: 700; color: #e8fff7; font-variant-numeric: tabular-nums; margin: 0; }
/* Shift-start geofence status: amber while outside the service area (the
   accept gate will refuse), signal-green once inside. */
.callout-zone {
  margin: 0; padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  color: #ffe1a6; background: rgba(246,210,105,.13); border: 1px solid rgba(246,210,105,.45);
}
.callout-zone.is-in {
  color: #4cf0c8; background: rgba(76,240,200,.12); border-color: rgba(76,240,200,.45);
}

/* Out-of-zone follow-through: the ACCEPT swaps for this grounded panel —
   what the zone is, the no-guarantee disclaimer, in-app navigation toward
   the fence, and the map peek. */
.callout-zone-detail {
  display: flex; flex-direction: column; gap: 11px; width: 100%;
  padding: 14px 15px; text-align: left;
  background: rgba(246,210,105,.08); border: 1px solid rgba(246,210,105,.3); border-radius: 16px;
}
.callout-zone-detail p { margin: 0; color: #ffe9c4; font-size: 12.5px; line-height: 1.5; }
.callout-nav {
  width: 100%; border: 0; border-radius: 16px; padding: 18px 16px; cursor: pointer;
  font-size: 17px; font-weight: 800; letter-spacing: .04em;
  color: #071d17; background: linear-gradient(180deg, #ffe08a, #f6c94a);
  box-shadow: 0 10px 28px rgba(246, 210, 105, .32);
  touch-action: manipulation;
}
.callout-see-zone {
  min-height: 44px; background: none; border: 0; padding: 10px; cursor: pointer;
  color: #d9c99b; font-size: 13px; text-decoration: underline;
  touch-action: manipulation;
}
.callout-accept.is-eligible { animation: accept-eligible 1s ease-in-out 3; }
@keyframes accept-eligible {
  50% { transform: scale(1.03); box-shadow: 0 12px 46px rgba(76, 240, 200, .75); }
}

/* Zone-peek: takeover minimized while the driver studies the highlighted
   zone; this floating chip restores the offer. */
.zone-peek-chip {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  z-index: 4950; border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer;
  color: #071d17; background: linear-gradient(90deg, #ffe08a, #f6c94a);
  font: 800 13px var(--sans); letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  animation: recall-flash 1.6s ease-in-out infinite;
}

/* Feedback must outrank the full-screen takeover (z 5000) — refusal toasts
   were rendering invisibly underneath it. */
.dispatch-toast { z-index: 5100; }

/* Silent change-your-mind banner: the shift a driver declined is still on
   the table while its callout lives. Flashes, never sounds. */
.shift-recall {
  display: block; width: calc(100% - 24px); margin: 10px 12px 2px; border: 0;
  border-radius: 12px; padding: 11px 14px; cursor: pointer; text-align: left;
  font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #123c32;
  background: linear-gradient(90deg, #4cf0c8, #8ff7dd);
  animation: recall-flash 1.15s ease-in-out infinite;
}
@keyframes recall-flash {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 240, 200, .0); }
  50% { opacity: .55; box-shadow: 0 0 0 5px rgba(76, 240, 200, .35); }
}

/* ── Hazard stage: open faithful-approach investigation. Flashes and sounds
   until the driver moves or the system disconnects them. ── */
.hazard-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4800;
  padding: 13px 16px calc(13px + env(safe-area-inset-top, 0px) * 0); text-align: center;
  padding-top: calc(13px + env(safe-area-inset-top, 0px));
  font-size: 12.5px; font-weight: 800; line-height: 1.4; letter-spacing: .02em;
  color: #fff7ed; background: linear-gradient(90deg, #7a1408, #b45309, #7a1408);
  border-bottom: 3px solid #f6d269;
  animation: hazard-strip-flash .9s step-end infinite;
}
@keyframes hazard-strip-flash {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.75) saturate(1.4); }
}
body.hazard-live #map { outline: 6px solid rgba(246, 82, 40, .65); outline-offset: -6px; animation: hazard-map-pulse 0.9s ease-in-out infinite; }
@keyframes hazard-map-pulse {
  0%, 100% { outline-color: rgba(246, 82, 40, .2); }
  50% { outline-color: rgba(246, 82, 40, .85); }
}

/* « Je suis bloqué » (rung 3, docs/ENFORCEMENT_LADDER.md): the one-tap
   escape ON the hazard stage — big enough for a gloved thumb. */
.hazard-strip { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.hazard-stuck-btn {
  border: 0; border-radius: 10px; cursor: pointer;
  padding: 11px 20px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  color: #7a1408; background: #fff7ed; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.hazard-stuck-btn:disabled { opacity: .78; cursor: default; }

/* Rung-1 notice strip: the calm repère — same amber family as .offroute-strip
   but STATIC: no flash, no klaxon, ever. Information, not alarm. */
.faith-notice-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4650;
  padding: 11px 16px; padding-top: calc(11px + env(safe-area-inset-top, 0px));
  text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.45; letter-spacing: .01em;
  color: #123c32; background: linear-gradient(90deg, #f6d269, #ffe9a8, #f6d269);
  border-bottom: 3px solid #b45309;
  cursor: pointer;
}

/* Off-route strip: amber, flashing gently — the reasonable-detour zone gets
   feedback, not the klaxon. Outranked by the red hazard strip. */
.offroute-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4700;
  padding: 11px 16px; padding-top: calc(11px + env(safe-area-inset-top, 0px));
  text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  color: #123c32; background: linear-gradient(90deg, #f6d269, #ffe9a8, #f6d269);
  border-bottom: 3px solid #b45309;
  animation: offroute-flash 1.4s ease-in-out infinite;
}
@keyframes offroute-flash { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }

/* Reposition escalation strip: the ignored directive goes red. Rank: louder
   than off-route (z 4750 over its 4700), quieter than an open investigation
   (hazard's 4800 still wins) — sustained non-compliance, not yet a fault.
   Crimson, not hazard's amber-cored gradient: same alarm family, own voice. */
.reposition-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4750;
  padding: 13px 16px; padding-top: calc(13px + env(safe-area-inset-top, 0px));
  text-align: center; font-size: 12.5px; font-weight: 800; line-height: 1.4; letter-spacing: .02em;
  color: #fff3ef; background: linear-gradient(90deg, #5c1210, #c62b1c, #5c1210);
  border-bottom: 3px solid #ffb3a8;
  animation: reposition-strip-flash 1.1s step-end infinite;
}
@keyframes reposition-strip-flash {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.6) saturate(1.3); }
}
body.reposition-live #map { outline: 6px solid rgba(255, 90, 72, .55); outline-offset: -6px; animation: reposition-map-pulse 1.1s ease-in-out infinite; }
@keyframes reposition-map-pulse {
  0%, 100% { outline-color: rgba(255, 90, 72, .18); }
  50% { outline-color: rgba(255, 90, 72, .75); }
}

/* Active-run resume pressure: parked on the radar with an order in flight?
   The way back to the trajectory stays one giant tap away. */
.resume-run {
  position: fixed; left: 12px; right: 12px; z-index: 4600;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 16px;
  background: linear-gradient(135deg, #0d2b23, #123c32);
  border: 1.5px solid #2fd3a8; box-shadow: 0 14px 40px rgba(4, 18, 14, .55);
  color: #fffdf8;
}
.resume-run.is-late {
  border-color: #ff5a48;
  animation: resume-late-pulse 1.1s ease-in-out infinite;
}
@keyframes resume-late-pulse {
  0%, 100% { box-shadow: 0 14px 40px rgba(4, 18, 14, .55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 90, 72, .38); }
}
.resume-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.resume-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; color: #8cd5c9; }
.resume-run.is-late .resume-kicker { color: #ffb3a8; }
.resume-copy b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-copy small { font-size: 11.5px; color: #9ec9bd; font-variant-numeric: tabular-nums; }
.resume-go {
  flex-shrink: 0; border: 0; border-radius: 12px; cursor: pointer;
  padding: 14px 15px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  color: #071d17; background: linear-gradient(180deg, #5ef7d2, #2fd3a8);
  box-shadow: 0 8px 22px rgba(76, 240, 200, .35);
}
.hazard-strip, .offroute-strip, .reposition-strip { cursor: pointer; }

/* Notification blocker: the no-shifts enforcement made visible — pinned top,
   hot red, one action. Coexists with the bottom-slot cards. */
.notif-blocker {
  position: fixed; left: 12px; right: 12px; z-index: 4700;
  top: calc(64px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; border-radius: 16px;
  background: linear-gradient(140deg, #3a1210, #5c1a12);
  border: 1.5px solid #ff8a7a; box-shadow: 0 14px 40px rgba(46, 6, 4, .55);
  color: #fff3ef;
  animation: notif-blocked-pulse 2.4s ease-in-out infinite;
}
@keyframes notif-blocked-pulse {
  0%, 100% { box-shadow: 0 14px 40px rgba(46, 6, 4, .55); }
  50% { box-shadow: 0 0 0 6px rgba(255, 138, 122, .22); }
}
.notif-blocker-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; color: #ffb3a8; }
.notif-blocker-fix {
  flex-shrink: 0; border: 0; border-radius: 12px; cursor: pointer;
  padding: 13px 14px; font-size: 12px; font-weight: 800; letter-spacing: .03em;
  color: #2e0804; background: linear-gradient(180deg, #ffb3a8, #ff8a7a);
  box-shadow: 0 8px 22px rgba(255, 138, 122, .35);
}

/* Reposition directive: the idle out-of-zone driver's unmissable next step —
   gold (opportunity), same anchor as the resume panel (they never coexist). */
.reposition-card {
  position: fixed; left: 12px; right: 12px; z-index: 4600;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 16px;
  background: linear-gradient(135deg, #2b230b, #3c3212);
  border: 1.5px solid #f6d269; box-shadow: 0 14px 40px rgba(18, 14, 4, .55);
  color: #fffdf8;
  animation: reposition-glow 2.2s ease-in-out infinite;
}
@keyframes reposition-glow {
  0%, 100% { box-shadow: 0 14px 40px rgba(18, 14, 4, .55); }
  50% { box-shadow: 0 0 0 6px rgba(246, 210, 105, .26); }
}
.reposition-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; color: #f6d269; }
.reposition-go {
  flex-shrink: 0; border: 0; border-radius: 12px; cursor: pointer;
  padding: 14px 15px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  color: #241b04; background: linear-gradient(180deg, #ffdf7f, #f6d269);
  box-shadow: 0 8px 22px rgba(246, 210, 105, .35);
}

/* Pause card: big and red so the state is unmistakable, words kept mild —
   only the resume time matters to the driver. */
.pause-card {
  position: fixed; left: 12px; right: 12px; z-index: 4600;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 5px; text-align: center;
  padding: 20px 18px; border-radius: 18px;
  background: linear-gradient(140deg, #5c1210, #8a1d14);
  border: 2px solid #ff8a7a; box-shadow: 0 16px 44px rgba(46, 6, 4, .6);
  color: #fff3ef;
}
.pause-kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #ffc9bf; }
.pause-time { font-size: 26px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pause-countdown { font-size: 13.5px; font-weight: 700; color: #ffd9d1; font-variant-numeric: tabular-nums; }
.pause-note { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #f4beb4; }

/* Tap to Pay button — pay-at-door collection via the phone's NFC reader. */
.btn.tap-to-pay {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, #6b8afd, #4c6ef5); color: #fff;
  border: 0; font-weight: 800; letter-spacing: .01em;
}
.btn.tap-to-pay:disabled { opacity: .8; }
/* wave.3.right.circle stand-in — inherits the button's colour so the glyph
   stays legible whatever the button state. */
.ttp-glyph { flex-shrink: 0; }
/* Indeterminate spinner shown in the glyph's place while the reader is being
   prepared (HIG: progress indicator during configuration, never a dead button). */
.ttp-spinner {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: ttp-spin 700ms linear infinite;
}
@keyframes ttp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ttp-spinner { animation-duration: 2.2s; } }
/* Determinate bar — only shown once the reader reports real update progress. */
.ttp-progress {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 4px; margin-top: 8px; border: 0;
  border-radius: 999px; overflow: hidden; background: rgba(108, 138, 253, .22);
}
.ttp-progress::-webkit-progress-bar { background: rgba(108, 138, 253, .22); }
.ttp-progress::-webkit-progress-value { background: #6b8afd; transition: width .25s ease; }
.ttp-progress::-moz-progress-bar { background: #6b8afd; }

/* Tap to Pay tutorial (profile → Aide). Collapsed by default; the HIG only
   asks that it stay easy to find, not that it occupy the page. */
.ttp-help > summary {
  cursor: pointer; font-weight: 700; padding: 6px 0; list-style: none;
}
.ttp-help > summary::-webkit-details-marker { display: none; }
.ttp-help > summary::before { content: '▸ '; }
.ttp-help[open] > summary::before { content: '▾ '; }
.ttp-help-steps { margin: 10px 0 4px; padding-left: 20px; display: grid; gap: 12px; }
.ttp-help-steps li { line-height: 1.5; }
.ttp-help-steps b { font-weight: 700; }

/* ── Vicinity-gated pickup confirm + payment mini-chip (2026-07-22) ─────────
   The pickup control replaces the generic advance button near the restaurant:
   double-tap when the kitchen marked the order ready, swipe-to-confirm when
   claiming an earlier-status order. The mini-chip pulls the collect button up
   manually when the handoff happens beyond payment_vicinity_m. */
.pickup-doubletap { position: relative; overflow: hidden; }
.pickup-doubletap.is-armed {
  background: #ffd166; color: #4a3200;
  animation: pickup-arm-pulse 0.8s ease-in-out infinite;
}
.pickup-doubletap.is-busy { opacity: .75; pointer-events: none; }
@keyframes pickup-arm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .55); }
  50% { box-shadow: 0 0 0 9px rgba(255, 209, 102, 0); }
}

.pickup-swipe { width: 100%; touch-action: none; }
.pickup-swipe .pickup-swipe-track {
  position: relative; height: 54px; border-radius: 16px;
  background: rgba(76, 240, 200, .14);
  border: 1.5px solid rgba(76, 240, 200, .5);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pickup-swipe .pickup-swipe-hint {
  font-size: 13.5px; font-weight: 800; letter-spacing: .02em; color: var(--signal, #4cf0c8);
  user-select: none; pointer-events: none;
  animation: swipe-hint-shimmer 2.2s ease-in-out infinite;
}
@keyframes swipe-hint-shimmer { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.pickup-swipe .pickup-swipe-thumb {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: 62px;
  border-radius: 13px; background: var(--signal, #4cf0c8); color: var(--night, #06251f);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.pickup-swipe .pickup-swipe-thumb:active { cursor: grabbing; }
.pickup-swipe.is-complete .pickup-swipe-track { background: rgba(76, 240, 200, .32); }
.pickup-swipe.is-complete .pickup-swipe-hint { animation: none; opacity: 1; }
.pickup-swipe.is-busy { pointer-events: none; }

.pay-mini-chip {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; border: 1.5px solid rgba(107, 138, 253, .65);
  background: rgba(76, 110, 245, .16); color: #b9c7ff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  cursor: pointer; font-family: inherit;
}
.pay-mini-chip:hover { background: rgba(76, 110, 245, .3); }

/* ── Order verification code ───────────────────────────────────────────────
   The 4-char code the restaurant matches against its ticket before releasing
   the food. Two surfaces for one fact: a full-width banner on the actions
   strip for the counter moment, and a quiet row in the details drawer for
   every moment before it. Neither renders when the run carries no code. */
/* The strip is a single nowrap row of controls; the banner claims a line of
   its own above them (order: -1) instead of an absolute perch, because on a
   phone the trip meter owns every pixel above the strip and would land on it. */
.mission-actions { flex-wrap: wrap; }
/* The swipe asks for width:100% — right in its cash-swipe twin inside the
   handoff sheet, but now a wrap trigger here where it used to simply shrink.
   Pin it back beside « Ouvrir la navigation », where it has always rendered. */
.mission-actions .pickup-swipe { flex: 1 1 0; width: auto; }

.pickup-code {
  order: -1;
  flex: 0 0 100%;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 14px 11px;
  /* Paper on the night page. The person who has to read this is the counter
     staff, glancing at a stranger's phone from the far side of a counter —
     they get the highest-contrast surface the palette has. */
  color: var(--ink-2);
  background: var(--paper);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
  text-align: center;
}
.pickup-code-label { font: 700 10.5px/1.25 var(--sans); letter-spacing: .05em; }
.pickup-code-value {
  /* Read aloud and compared character by character: the mono face keeps the
     look-alikes the alphabet already excludes excluded on screen too, and the
     tracking makes every glyph its own object at arm's length. text-indent
     gives back the leading gap the trailing letter-space steals, so four
     characters still sit centred. */
  color: var(--forest-deep);
  font: 700 42px/1.05 var(--mono);
  letter-spacing: .24em;
  text-indent: .24em;
}

/* Drawer copy — a details row like « COMMANDE », deliberately secondary, but
   still mono: a code dictated over the phone must not hinge on the driver
   guessing which glyph the sans face just drew. */
.run-details .run-verif strong { color: var(--yellow); font: 700 15px/1.1 var(--mono); letter-spacing: .18em; }

/* ── Collect: primary method + tucked-away fallbacks (2026-07-22 reorg) ────
   The customer's checkout choice is the ONLY prominent control; the other
   methods live behind a one-line toggle, compact and muted. */
.collect-alt-toggle {
  align-self: center;
  background: none; border: 0; padding: 2px 6px; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  color: rgba(231, 239, 236, .55); text-decoration: underline; text-underline-offset: 3px;
}
.collect-alt-toggle:hover { color: rgba(231, 239, 236, .85); }
.collect-alts { display: flex; gap: 6px; }
.collect-alts button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 8px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05); color: rgba(231, 239, 236, .85);
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.collect-alts button:hover { background: rgba(255, 255, 255, .12); }

.paylink-overlay {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 20, 16, .82); backdrop-filter: blur(4px);
  padding: 22px;
}
.paylink-overlay.is-visible { display: flex; }
.paylink-card {
  position: relative; width: min(360px, 92vw);
  background: #0b312a; border: 1px solid rgba(76, 240, 200, .35); border-radius: 20px;
  padding: 26px 22px; text-align: center; color: #fffdf8;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.paylink-card .paylink-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 20px; cursor: pointer;
}
.paylink-card strong { font-size: 30px; font-family: ui-monospace, monospace; color: #f6d269; }
.paylink-card img { width: min(250px, 68vw); border-radius: 14px; background: #fff; padding: 8px; }
.paylink-card p { font-size: 13px; color: #9cddd2; line-height: 1.5; margin: 0; }
.paylink-card a { color: #4cf0c8; font-size: 13px; font-weight: 700; }

/* ── The listening state ──────────────────────────────────────────────────
   The screen's job while a QR is out is to keep the driver here and prove we
   are actually watching. The pulse is decoration — it animates just as
   prettily when the poll is dead — so the load-bearing element is the
   « vérifié il y a Ns » tick, driven by the last SUCCESSFUL poll. */
.paylink-card .paylink-hold {
  font-weight: 700; color: #f6d269; font-size: 13.5px;
}
.paylink-live {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--signal);
}
.paylink-live .live-pulse, .paylink-waiting-chip .live-pulse {
  animation: live-breathe 2.1s ease-in-out infinite;
}
@keyframes live-breathe {
  0%, 100% { box-shadow: 0 0 0 0 var(--signal-soft); }
  50% { box-shadow: 0 0 0 7px rgba(76, 240, 200, 0); }
}
.paylink-card .paylink-checked {
  color: rgba(156, 221, 210, .6); font: 500 10.5px/1.4 var(--mono);
}
.paylink-card .paylink-sms-sent { color: #4cf0c8; font: 600 11px/1.4 var(--sans); }
.paylink-card .paylink-reassure { font-size: 11.5px; color: rgba(156, 221, 210, .72); }

/* Degraded: the network is failing, and saying so is the whole point —
   a frozen « en attente » that is silently dead is the thing to avoid. */
.paylink-card.is-degraded .paylink-live { color: #f6d269; }
.paylink-card.is-degraded .live-pulse {
  background: #f6d269; box-shadow: 0 0 0 4px rgba(246, 210, 105, .2); animation: none;
}
.paylink-card.is-expired .paylink-live { color: #ff795f; }
.paylink-card.is-expired .live-pulse {
  background: #ff795f; box-shadow: 0 0 0 4px rgba(255, 121, 95, .2); animation: none;
}
.paylink-card .paylink-remint {
  padding: 10px 16px; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: rgba(255, 121, 95, .14); border: 1px solid rgba(255, 121, 95, .5);
  color: #ff795f; font-size: 13.5px; font-weight: 700;
}
.paylink-card .paylink-help {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
  padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px; color: rgba(231, 239, 236, .8);
}
.paylink-card .paylink-help b { color: #fffdf8; }
.paylink-card .paylink-help a { font-size: 15px; }

/* PAID — the flip REPLACES the QR rather than sitting under it, so there is
   no moment where a spent code is still on screen next to a green check. */
.paylink-received { display: none; }
.paylink-card.is-paid { border-color: var(--signal); background: linear-gradient(180deg, #0d3a31, #082922); }
.paylink-card.is-paid > :not(.paylink-received):not(.paylink-close) { display: none; }
.paylink-card.is-paid .paylink-received {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.paylink-check { font-size: 46px; line-height: 1; color: var(--signal); }
.paylink-card.is-paid #paylinkReceivedAmount { color: var(--signal); }
.paylink-card.is-paid .paylink-received small { font-size: 12px; color: #9cddd2; }

/* The same listening state on the handoff sheet: closing the QR must not read
   as giving up, because the watch is still running. */
.paylink-waiting-chip {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(76, 240, 200, .3);
  font-size: 11px; color: #9cddd2;
}
.paylink-waiting-chip button {
  margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 700;
  color: #4cf0c8; text-decoration: underline;
}
.paylink-waiting-chip.is-degraded { border-color: rgba(246, 210, 105, .5); color: #f6d269; }
.paylink-waiting-chip.is-expired { border-color: rgba(255, 121, 95, .5); color: #ff795f; }

/* HUD advance button while the link watch is live: calm mint, no collect
   pulse — the driver is WAITING, not being urged to act. */
.mission-actions .mission-advance.is-waiting {
  background: linear-gradient(180deg, #bfe9de, #8fd6c6); color: #08302a;
  animation: none;
}

/* ── Horizontal-scroll lockdown (2026-07-22): the WebView must never pan the
   page sideways — an off-canvas overshoot from any absolutely-positioned HUD
   element (match stack, trip meter, toasts) was letting the whole mission UI
   drag left/right and distort. The map keeps its own gestures (its canvas
   handles touch internally); vertical scroll stays untouched. */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  overscroll-behavior-x: none;
}
.map-shell, .mission-shell {
  overflow-x: clip;
  touch-action: pan-y;
}
.map-shell #map { touch-action: none; } /* Mapbox owns all gestures on the canvas itself */

/* ═══ Handoff sheet (2026-07-22 final design) ═══════════════════════════════
   The intermediary modal at the customer's door — visually an extension of
   the arrival header. One unmissable primary per money state:
   DUE  → gradient collect CTA + big gold amount; deliver rides as a ghost.
   PAID → green banner; deliver becomes the big signal-green primary. */
.handoff-sheet { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.handoff-sheet .handoff-backdrop {
  position: absolute; inset: 0; opacity: 0; transition: opacity .22s ease;
  background: rgba(3, 16, 13, .66); backdrop-filter: blur(3px);
}
.handoff-sheet .handoff-card {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0d3a31, #082922);
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(76, 240, 200, .4);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .5);
  transform: translateY(105%); transition: transform .28s cubic-bezier(.32,.94,.44,1);
}
.handoff-sheet.is-open { pointer-events: auto; }
.handoff-sheet.is-open .handoff-backdrop { opacity: 1; }
.handoff-sheet.is-open .handoff-card { transform: translateY(0); }
.handoff-grabber { width: 44px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); margin-bottom: 2px; }
.handoff-card .section-kicker { color: #7fd4c4; letter-spacing: .14em; font-size: 10px; }
.handoff-title { color: #fffdf8; font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.handoff-meta { color: #9cddd2; font-size: 12.5px; margin: 0 0 2px; }

/* Door note (CR-1168) on the handoff sheet — PROMINENT amber, both states:
   this is the screen open at the door, where « Porte arriere #1 » matters. */
.handoff-note {
  width: 100%; display: flex; flex-direction: column; gap: 3px;
  padding: 11px 14px; border-radius: 14px;
  color: #123c32; background: linear-gradient(90deg, #f6d269, #ffe9a8);
  border: 1.5px solid #b45309;
  font-size: 13.5px; font-weight: 700; line-height: 1.4; text-align: left;
}
.handoff-note b { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #7a5b12; }

.handoff-paid {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 13px 16px; border-radius: 16px;
  background: rgba(76, 240, 200, .12); border: 1.5px solid rgba(76, 240, 200, .55);
}
.handoff-paid .paid-badge { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #4cf0c8; }
.handoff-paid .paid-badge b { font-weight: 800; }
.handoff-paid p { margin: 0; font-size: 12px; color: #9cddd2; }

.handoff-due { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.handoff-due .due-kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #d9b64a; }
.handoff-due .due-amount {
  font-family: ui-monospace, monospace; font-size: 42px; line-height: 1;
  font-weight: 800; color: #f6d269; text-shadow: 0 0 26px rgba(246, 210, 105, .35);
}
.handoff-due .due-method {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #c9ded8;
  background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px 12px;
}
.handoff-collect {
  width: 100%; min-height: 58px; font-size: 16.5px; border-radius: 16px;
  margin-top: 4px;
  animation: collect-breathe 2.1s ease-in-out infinite;
}
@keyframes collect-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 138, 253, .5); }
  50% { box-shadow: 0 0 0 10px rgba(108, 138, 253, 0); }
}
.handoff-deliver {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 16px; cursor: pointer; font-family: inherit; font-weight: 800;
  transition: all .18s ease;
}
.handoff-deliver.is-primary {
  min-height: 58px; font-size: 16.5px; border: 0;
  background: var(--signal, #4cf0c8); color: var(--night, #06251f);
  animation: collect-breathe 2.1s ease-in-out infinite;
}
.handoff-deliver.is-ghost {
  min-height: 42px; font-size: 13px; font-weight: 600;
  background: none; border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(231, 239, 236, .6);
}
.handoff-deliver.is-ghost:hover { color: rgba(231, 239, 236, .9); border-color: rgba(255, 255, 255, .32); }
.handoff-deliver:disabled { opacity: .6; pointer-events: none; }

/* Action-bar opener reads the next step: gold when money is due. */
.mission-actions .mission-advance.is-collect {
  background: linear-gradient(180deg, #f9dd85, #f0c84a); color: #4a3200;
}
.mission-actions .mission-advance.is-collect:hover { background: #f6d269; }

/* Paylink SMS action */
.paylink-card .paylink-sms {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 12px; text-decoration: none;
  background: rgba(76, 240, 200, .14); border: 1px solid rgba(76, 240, 200, .5);
  color: #4cf0c8; font-size: 13.5px; font-weight: 700;
}

/* Cash swipe inside the handoff sheet — gold rail (money gesture), same
   mechanics as the pickup swipe. Deliver stays visibly locked while due. */
.cash-swipe { width: 100%; }
.cash-swipe .pickup-swipe-track { background: rgba(246, 210, 105, .12); border-color: rgba(246, 210, 105, .55); }
.cash-swipe .pickup-swipe-hint { color: #f6d269; }
.cash-swipe .pickup-swipe-thumb { background: #f6d269; color: #4a3200; }
.cash-swipe.is-complete .pickup-swipe-track { background: rgba(246, 210, 105, .3); }
.handoff-deliver.is-ghost:disabled { opacity: .55; }

/* ── Run-log performance metrics + 30-day Efficiency Index (2026-07-22) ────
   Green = under the promise, red = over. No money on this page. */
.perf-chip.is-under { color: var(--teal-dark); }
.perf-chip.is-over { color: #a83722; }
.perf-scorecard {
  display: grid;
  grid-template-columns: 184px minmax(0,1fr);
  gap: 18px;
  align-items: stretch;
  margin: 14px 0 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(132deg, #123f35, #082a23);
  border: 1px solid rgba(76,240,200,.28);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(18,60,50,.14);
}
.perf-score { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: center; padding: 12px 14px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.perf-kicker { color: #8fc0b5; font: 700 8px/1.2 var(--sans); letter-spacing: .11em; text-align: center; }
.perf-score strong { margin-top: 5px; color: #fffdf8; font: 700 46px/.95 var(--mono); letter-spacing: -.07em; }
.perf-score .perf-tier { margin-top: 7px; padding: 3px 10px; color: #cfe8e1; background: rgba(255,255,255,.12); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.perf-score small { margin-top: 6px; color: #8fb7ae; font-size: 9px; text-align: center; }
.perf-score.tier-elite strong { color: var(--signal); text-shadow: 0 0 22px rgba(76,240,200,.3); }
.perf-score.tier-elite .perf-tier { color: var(--signal); background: rgba(76,240,200,.16); }
.perf-score.tier-fiable strong { color: #9be89b; }
.perf-score.tier-correct strong { color: var(--yellow); }
.perf-score.tier-a_risque strong { color: #ff8b7c; }
.perf-score.tier-a_risque .perf-tier { color: #ff9d91; background: rgba(246,104,94,.18); }
.perf-aggs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin: 0; overflow: hidden; background: rgba(204,238,226,.13); border: 1px solid rgba(204,238,226,.08); border-radius: 16px; }
.perf-agg { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; background: rgba(4,29,23,.44); }
.perf-agg dt { color: #92beb4; font: 700 9px/1.25 var(--sans); letter-spacing: .065em; text-transform: uppercase; }
.perf-agg dd { margin: 0; color: #fffdf8; font: 700 16px/1.15 var(--mono); }
.perf-agg.is-under dd { color: var(--signal); }
.perf-agg.is-over dd { color: #ff8b7c; }

@media (max-width: 700px) {
  .perf-scorecard { grid-template-columns: 108px minmax(0,1fr); gap: 10px; margin-top: 10px; padding: 11px; border-radius: 19px; }
  .perf-score { min-height: 144px; padding: 9px 7px; border-radius: 14px; }
  .perf-kicker { font-size: 7px; }
  .perf-score strong { font-size: 38px; }
  .perf-score .perf-tier { padding: 3px 7px; font-size: 8px; }
  .perf-score small { max-width: 92px; font-size: 8px; line-height: 1.3; }
  .perf-aggs { grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 14px; }
  .perf-agg { min-height: 47px; padding: 7px 9px; }
  .perf-agg dt { font-size: 7.5px; }
  .perf-agg dd { font-size: 12px; }
}

/* ═══ Driver app chrome refresh ═══════════════════════════════════════════ */
.driver-topbar {
  display: block;
  padding: env(safe-area-inset-top, 0px) 18px 0;
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.driver-topbar .topbar-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  min-height: 64px;
  margin: 0 auto;
}
.driver-topbar .brand { min-width: 0; justify-self: start; }
.driver-topbar .brand .mark {
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: transparent;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(18,60,50,.16);
}
.driver-topbar .brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.driver-topbar .brand .word { overflow: hidden; font-size: 14px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.driver-topbar .driver-nav {
  display: flex;
  gap: 3px;
  justify-self: center;
  margin: 0;
  padding: 4px;
  flex-wrap: nowrap;
  background: rgba(237,228,213,.62);
  border: 1px solid rgba(16,45,38,.1);
  border-radius: 15px;
}
.driver-topbar .driver-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: var(--muted);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.driver-topbar .driver-nav svg,
.driver-topbar .topbar-logout svg,
.profile-panel svg,
.profile-input-wrap svg,
.file-picker svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.driver-topbar .driver-nav svg { width: 17px; height: 17px; flex: none; }
.driver-topbar .driver-nav a.active { color: #fff; background: var(--forest); box-shadow: 0 6px 16px rgba(18,60,50,.2); }
.driver-topbar .driver-nav a:hover:not(.active) { color: var(--forest); background: rgba(204,238,226,.7); }
.driver-actions { display: flex; min-width: 0; align-items: center; justify-self: end; gap: 6px; }
.driver-actions form { margin: 0; }
.topbar-language {
  display: grid;
  min-width: 40px;
  height: 44px;
  place-items: center;
  color: var(--muted);
  border-radius: 10px;
  font: 700 10px var(--mono);
  text-decoration: none;
}
.topbar-language:hover { color: var(--forest); background: var(--cream-2); }
.driver-account { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 3px 8px 3px 4px; background: rgba(204,238,226,.48); border: 1px solid rgba(20,153,141,.12); border-radius: 13px; }
.driver-avatar { display: grid; width: 28px; height: 28px; flex: none; place-items: center; color: #fff; background: var(--teal-dark); border-radius: 9px; font: 700 11px var(--sans); }
.driver-account-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.1; }
.driver-account-copy strong { max-width: 90px; overflow: hidden; color: var(--ink); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.driver-account-copy small { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); font-size: 8px; }
.account-presence { width: 6px; height: 6px; flex: none; background: #93a39e; border-radius: 50%; }
.account-presence.is-online { background: var(--teal); box-shadow: 0 0 0 3px rgba(20,153,141,.12); }
.topbar-logout { display: flex; min-width: 40px; height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 11px; font: 700 10px var(--sans); cursor: pointer; }
.topbar-logout svg { width: 17px; height: 17px; }
.topbar-logout:hover { color: #8d321f; background: #fff0eb; border-color: rgba(168,55,34,.14); }
.driver-topbar a:focus-visible,
.driver-topbar button:focus-visible,
.history-filters button:focus-visible,
.history-resume:focus-visible,
.profile-page a:focus-visible,
.profile-page button:focus-visible,
.profile-page input:focus-visible,
.profile-switch:has(input:focus-visible) {
  outline: 3px solid rgba(20,153,141,.34);
  outline-offset: 2px;
}

.active-run-page .driver-topbar .driver-nav { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.active-run-page .driver-topbar .driver-nav a { color: rgba(255,255,255,.66); }
.active-run-page .driver-topbar .driver-nav a.active { color: var(--signal); background: var(--signal-soft); box-shadow: none; }
.active-run-page .driver-topbar .driver-nav a:hover { color: var(--signal); background: var(--signal-soft); }
.active-run-page .driver-topbar .topbar-language,
.active-run-page .driver-topbar .driver-account { display: none; }
.active-run-page .driver-topbar { padding-top: env(safe-area-inset-top, 0px); padding-bottom: 0; }
.active-run-page .driver-topbar .topbar-logout { color: rgba(255,255,255,.7); }
.active-run-page .driver-topbar .topbar-logout:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }

/* ═══ Driver profile ══════════════════════════════════════════════════════ */
.profile-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 92% 4%, rgba(20,153,141,.13), transparent 27rem),
    linear-gradient(180deg, #eff7f2 0, var(--cream) 33rem);
}
.profile-wrap { max-width: 1080px; padding-top: 32px; }
.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 27px 30px;
  overflow: hidden;
  background: linear-gradient(132deg, rgba(255,253,248,.98), rgba(226,243,235,.96));
  border: 1px solid rgba(16,45,38,.13);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(18,60,50,.1);
}
.profile-hero::after { content: ''; position: absolute; right: -75px; top: -140px; width: 290px; height: 290px; border: 1px solid rgba(20,153,141,.13); border-radius: 50%; box-shadow: 0 0 0 40px rgba(20,153,141,.035), 0 0 0 80px rgba(20,153,141,.02); pointer-events: none; }
.profile-avatar { position: relative; z-index: 1; display: grid; width: 72px; height: 72px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--forest), var(--teal-dark)); border: 4px solid rgba(255,255,255,.72); border-radius: 22px; box-shadow: 0 12px 28px rgba(18,60,50,.2); font: 700 22px var(--serif); }
.profile-avatar i { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; background: #93a39e; border: 3px solid var(--paper); border-radius: 50%; }
.profile-avatar i.is-online { background: var(--signal); }
.profile-identity { position: relative; z-index: 1; min-width: 0; }
.profile-identity h1 { margin: 3px 0 7px; font-size: clamp(30px,4vw,40px); line-height: 1; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-badges .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.profile-hero-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(105px,auto)); gap: 8px; margin: 0; }
.profile-hero-meta > div { min-width: 118px; padding: 11px 13px; background: rgba(255,253,248,.72); border: 1px solid rgba(16,45,38,.1); border-radius: 13px; }
.profile-hero-meta dt { color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.profile-hero-meta dd { margin: 3px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(330px,.82fr); gap: 18px; align-items: start; margin-top: 18px; }
.profile-main-column,
.profile-side-column { display: grid; gap: 18px; }
.profile-panel { padding: 24px; background: rgba(255,253,248,.96); border: 1px solid rgba(16,45,38,.13); border-radius: 22px; box-shadow: 0 10px 32px rgba(18,60,50,.065); }
.profile-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.profile-panel-head h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.1; }
.profile-panel-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; color: var(--teal-dark); background: var(--mint); border-radius: 13px; }
.profile-panel-icon svg { width: 20px; height: 20px; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.profile-fact { min-width: 0; padding: 13px 14px; background: var(--cream); border: 1px solid rgba(16,45,38,.08); border-radius: 13px; }
.profile-fact.is-wide { grid-column: 1 / -1; }
.profile-fact dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.profile-fact dd { display: flex; min-width: 0; align-items: center; gap: 8px; margin: 5px 0 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.profile-fact a { overflow-wrap: anywhere; color: var(--ink); text-decoration-color: rgba(20,153,141,.34); text-underline-offset: 3px; }
.vehicle-plate { flex: none; padding: 4px 7px; color: var(--forest); background: var(--mint); border-radius: 7px; font: 600 10px var(--mono); letter-spacing: .035em; }
.profile-panel-intro { max-width: 620px; margin: -4px 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.home-base-form { display: grid; gap: 14px; }
.profile-field label { margin: 0 0 6px; font-size: 11px; }
.profile-input-wrap { position: relative; }
.profile-input-wrap svg { position: absolute; z-index: 1; left: 13px; top: 50%; width: 18px; height: 18px; color: var(--teal-dark); transform: translateY(-50%); pointer-events: none; }
.profile-input-wrap input { min-height: 48px; padding-left: 40px; background: #fff; border-radius: 13px; }
.field-confirmation,
.field-hint,
.field-warning { display: block; margin-top: 6px; font-size: 10px; }
.field-hint { color: var(--muted); line-height: 1.5; }
.field-confirmation { color: var(--teal-dark); }
.field-warning { color: #8d5c14; }
.field-warning.is-busy { color: var(--muted); }
.profile-switch { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-items: center; margin: 0; padding: 12px; color: var(--ink); background: var(--cream); border: 1px solid rgba(16,45,38,.09); border-radius: 13px; cursor: pointer; }
.profile-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.switch-control { position: relative; display: block; width: 42px; height: 24px; background: #a8b4b0; border-radius: 999px; transition: background .2s ease; }
.switch-control i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: transform .2s ease; }
.profile-switch input:checked + .switch-control { background: var(--teal); }
.profile-switch input:checked + .switch-control i { transform: translateX(18px); }
.switch-copy { display: flex; flex-direction: column; gap: 2px; }
.switch-copy strong { font-size: 12px; }
.switch-copy small { color: var(--muted); font-size: 10.5px; font-weight: 400; line-height: 1.35; }
.profile-save { display: inline-flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 20px; justify-self: start; padding: 10px 12px 10px 18px; border-radius: 13px; font-size: 12px; }
.profile-save span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--forest); background: var(--signal); border-radius: 8px; }
.document-list { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; background: var(--line); border: 1px solid rgba(16,45,38,.07); border-radius: 14px; list-style: none; }
.document-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 9px; align-items: center; min-height: 60px; padding: 10px; background: var(--cream); }
.document-state { display: grid; width: 28px; height: 28px; place-items: center; color: #795a18; background: #fff2cb; border-radius: 9px; font-size: 13px; font-weight: 800; }
.document-row.status-approved .document-state { color: var(--teal-dark); background: var(--mint); }
.document-row.status-rejected .document-state { color: #a83722; background: #ffe1d9; }
.document-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.document-copy strong { font-size: 11.5px; }
.document-copy small { color: var(--muted); font-size: 9.5px; line-height: 1.3; }
.document-row .pill { max-width: 142px; padding: 3px 8px; font-size: 9px; line-height: 1.2; text-align: center; }
.document-upload { margin-top: 14px; padding: 14px; background: #eef9f5; border: 1px dashed rgba(20,153,141,.4); border-radius: 14px; }
.document-upload > div > strong { font-size: 12px; }
.document-upload p { margin: 3px 0 11px; color: var(--muted); font-size: 10.5px; }
.document-upload form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-picker { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; margin: 0; padding: 8px 10px; overflow: hidden; color: var(--teal-dark); background: #fff; border: 1px solid rgba(20,153,141,.22); border-radius: 10px; font-size: 10px; cursor: pointer; }
.file-picker svg { width: 16px; height: 16px; flex: none; }
.file-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.documents-note { margin: 13px 2px 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.danger-zone { color: #632719; background: linear-gradient(145deg, #fffaf7, #fff0e9); border-color: rgba(235,101,72,.42); box-shadow: none; }
.danger-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.danger-head .section-kicker { color: #a83722; }
.danger-head h2 { margin: 3px 0 0; color: #632719; font-size: 20px; line-height: 1.1; }
.danger-icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; color: #fff; background: var(--coral); border-radius: 12px; font: 800 17px var(--sans); }
.danger-zone > p { margin: 0; color: #8d4c3c; font-size: 11.5px; }
.danger-zone ul { display: grid; gap: 5px; margin: 11px 0 15px; padding-left: 18px; color: #784335; font-size: 10.5px; line-height: 1.45; }
.danger-button { min-height: 42px; padding: 9px 15px; color: #a83722; background: transparent; border: 1px solid rgba(168,55,34,.5); border-radius: 11px; font-size: 11px; }
.danger-button:hover,
.danger-button.is-armed { color: #fff; background: #b63e27; }
.danger-button:disabled { opacity: .58; cursor: wait; }
.danger-feedback { display: block; min-height: 18px; margin-top: 8px; color: #8d4c3c; font-size: 10px; }
/* The live, account-specific consequence the deletion preview came back with —
   a real amount or a real blocker. Heavier than the static bullets above it
   because it is the line that actually applies to this driver. */
.danger-facts { margin: 0 0 12px; padding: 10px 12px; color: #632719; background: rgba(255,255,255,.72); border: 1px solid rgba(168,55,34,.34); border-radius: 11px; font-size: 11px; line-height: 1.45; }

@media (max-width: 900px) {
  .driver-account-copy,
  .topbar-logout .logout-label { display: none; }
  .driver-account { padding-right: 4px; }
  .topbar-logout { padding: 0; }
  .profile-layout { grid-template-columns: minmax(0,1fr) minmax(300px,.85fr); }
}

@media (max-width: 760px) {
  .driver-topbar { padding: env(safe-area-inset-top, 0px) 8px 0; }
  .driver-topbar .topbar-inner { grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; min-height: 48px; }
  .driver-topbar .brand { min-width: 36px; min-height: 44px; justify-content: flex-start; }
  .driver-topbar .brand .mark { width: 32px; height: 32px; border-radius: 10px; }
  .driver-topbar .brand .word { display: none; }
  .driver-topbar .driver-nav { gap: 1px; padding: 2px; border-radius: 13px; }
  .driver-topbar .driver-nav a { min-width: 40px; min-height: 44px; justify-content: center; gap: 5px; padding: 6px 8px; border-radius: 10px; }
  .driver-topbar .driver-nav .nav-label { display: none; }
  .driver-topbar .driver-nav a.active .nav-label { display: inline; }
  .driver-topbar .driver-nav svg { width: 16px; height: 16px; }
  .driver-account { display: none; }
  .topbar-language { min-width: 38px; height: 44px; }
  .topbar-logout { min-width: 38px; height: 44px; }
  .driver-actions { gap: 1px; }
  .active-run-page .driver-topbar .topbar-inner { min-height: 48px; }
  .active-run-page .driver-topbar .topbar-logout::before { content: none; }
  .profile-wrap { padding-top: 14px; }
  .profile-hero { grid-template-columns: 60px minmax(0,1fr); gap: 14px; padding: 20px; border-radius: 22px; }
  .profile-avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 18px; }
  .profile-identity h1 { font-size: 28px; }
  .profile-hero-meta { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-hero-meta > div { min-width: 0; padding: 9px 10px; }
  .profile-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .profile-main-column,
  .profile-side-column { gap: 14px; }
  .profile-panel { padding: 18px; border-radius: 19px; }
  .profile-panel-head { margin-bottom: 16px; }
  .profile-panel-head h2 { font-size: 20px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-fact.is-wide { grid-column: auto; }
  .profile-save { width: 100%; }
  .document-row { grid-template-columns: 28px minmax(0,1fr); }
  .document-row .pill { grid-column: 2; justify-self: start; max-width: 100%; }
}

.dispatch-page .driver-topbar + .dispatch-shell {
  height: calc(100dvh - 65px - env(safe-area-inset-top, 0px));
}

@media (max-width: 760px) {
  .dispatch-page .driver-topbar + .dispatch-shell {
    height: calc(100dvh - 51px - env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 340px) {
  .topbar-language { display: none; }
  .driver-topbar .driver-nav a { min-width: 38px; padding-left: 6px; padding-right: 6px; }
  .profile-hero-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .switch-control,
  .switch-control i { transition: none; }
}

/* ── Driver login landing (the screen the app opens on — first impression) ── */
.landing-body { background: var(--forest-deep); min-height: 100vh; }
.landing-hero { position: relative; overflow: hidden; color: var(--paper); }
.landing-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 62%; }
.landing-hero-veil { position: absolute; inset: 0; background: linear-gradient(178deg, rgba(9,41,33,.46) 0%, rgba(9,41,33,.62) 46%, var(--forest-deep) 96%); }
.landing-hero-inner { position: relative; max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 22px 30px; }
.landing-brand { display: flex; align-items: center; gap: 10px; }
.landing-brand .word { font: 700 17px/1 var(--sans); color: var(--paper); letter-spacing: -.02em; }
.landing-brand .word em { font-style: normal; color: var(--mint); }
.landing-lang { margin-left: auto; font: 600 12.5px/1 var(--sans); color: rgba(255,253,248,.75); text-decoration: none; padding: 7px 10px; border: 1px solid rgba(255,253,248,.28); border-radius: 999px; }
.landing-lang:hover { color: var(--paper); border-color: rgba(255,253,248,.6); }
.landing-copy { margin-top: clamp(46px, 13vh, 110px); }
.landing-eyebrow { font: 500 11.5px/1.2 var(--mono); letter-spacing: .22em; color: var(--mint); text-transform: uppercase; margin: 0 0 12px; }
.landing-copy h1 { font-size: clamp(34px, 8.4vw, 46px); line-height: 1.04; margin: 0 0 14px; color: var(--paper); }
.landing-copy h1 .pay { color: var(--yellow); font-style: italic; }
.landing-sub { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: rgba(255,253,248,.82); max-width: 42ch; }
.landing-sub strong { color: var(--yellow); font-weight: 700; }
.landing-rate-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); font: 500 11px/1.5 var(--mono); letter-spacing: .04em; padding: 8px 13px; border-radius: 999px; }

/* The signature artifact: a real shift-offer ticket, as the app shows it. */
.landing-ticket { position: relative; max-width: 560px; margin: -6px auto 0; padding: 0 22px; }
.landing-ticket-card { background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.42); padding: 16px 18px 14px; transform: rotate(-1.1deg); }
.landing-ticket-head { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .18em; color: var(--teal-dark); }
.landing-ticket-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--mint); }
.landing-ticket-zone { font: 700 16px/1.25 var(--sans); margin: 10px 0 2px; }
.landing-ticket-meta { font-size: 13px; color: var(--muted); }
.landing-ticket-rate { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.landing-ticket-rate .rate { font: 500 30px/1 var(--mono); letter-spacing: -.03em; }
.landing-ticket-rate .total { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.landing-ticket-pill { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--teal-dark); background: var(--mint); border-radius: 999px; padding: 5px 11px; }

.landing-main { max-width: 560px; margin: 0 auto; padding: 26px 22px calc(30px + env(safe-area-inset-bottom, 0px)); }
.landing-login { background: var(--paper); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
.landing-login h2 { font-size: 21px; margin-bottom: 4px; }
.landing-login .lead { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.landing-forgot { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--teal-dark); }
.landing-notice { background: var(--mint); color: var(--forest); border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
/* The staffer door, right under the driver's (owner 2026-07-31). Mint on the
   forest reads as a second entrance at a glance; one row keeps it to ~58px. */
.landing-staff { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--mint); color: var(--forest); text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.landing-staff .ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); font-size: 16px; line-height: 1; }
.landing-staff .txt { flex: 1 1 auto; min-width: 0; }
.landing-staff .t { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.landing-staff .s { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.3; color: var(--teal-dark); }
.landing-staff .go { flex: none; background: var(--teal); color: var(--paper); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; }
.landing-staff:hover { background: #dbf4ea; }
.landing-staff:active { transform: translateY(1px); }
.landing-join { margin-top: 18px; border: 1px solid rgba(255,253,248,.2); border-radius: 16px; padding: 18px 20px; color: var(--paper); text-align: center; }
.landing-join p { margin: 0 0 12px; font-size: 14.5px; color: rgba(255,253,248,.85); }
.landing-join p strong { color: var(--yellow); }
.landing-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 16px; padding: 0; list-style: none; }
.landing-trust li { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: rgba(255,253,248,.62); }
.landing-trust li::before { content: '✓ '; color: var(--mint); }

@media (min-width: 720px) {
  .landing-hero-inner, .landing-ticket, .landing-main { max-width: 620px; }
  .landing-copy { margin-top: 120px; }
}
@keyframes landingRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.landing-copy, .landing-ticket, .landing-main { animation: landingRise .6s cubic-bezier(.2,.7,.2,1) both; }
.landing-ticket { animation-delay: .14s; }
.landing-main { animation-delay: .26s; }
@media (prefers-reduced-motion: reduce) {
  .landing-copy, .landing-ticket, .landing-main { animation: none; }
}
