/* ============================================================
   GREEN LIGHT GARAGE — "The fleet is the character."
   Joyful, dimensional, toy-box energy engineered like a tool.
   Baloo 2 display · Manrope UI · JetBrains Mono for every numeral.
   ============================================================ */
@import url('../_lab/fonts/fonts.css');

:root {
  /* ground + surfaces */
  --ground: #EEF3F9;
  --ground-2: #E2EBF6;
  --card: #FFFFFF;
  --card-tint: #F6F9FD;

  /* ink (AA on light ground) */
  --ink: #14243D;
  --ink-soft: #3D537A;
  --ink-faint: #54698A;

  /* brand */
  --cobalt: #1850A0;
  --cobalt-deep: #123A78;
  --cobalt-hi: #2C69C4;
  --lime: #78C048;
  --lime-bright: #8FD14F;
  --lime-deep: #3E7020;
  --lime-tint: #E9F5DC;

  /* semantic — color IS state, never decoration */
  --amber: #F0A81C;
  --amber-ink: #7A5200;
  --amber-tint: #FFF1D6;
  --coral: #E4573D;
  --coral-ink: #A93321;
  --coral-tint: #FFE4DD;

  /* dimensional shadow stack */
  --shadow-1: 0 1px 2px rgba(18,42,86,.06), 0 4px 12px rgba(18,42,86,.08);
  --shadow-2: 0 2px 4px rgba(18,42,86,.08), 0 14px 34px rgba(18,42,86,.14);
  --shadow-3: 0 8px 18px rgba(18,42,86,.12), 0 30px 64px rgba(18,42,86,.20);
  --shadow-press: 0 1px 2px rgba(18,42,86,.10), 0 3px 8px rgba(18,42,86,.10);

  /* geometry */
  --r-sm: 16px;
  --r: 24px;
  --r-lg: 28px;

  /* motion — one spring, consistent clocks */
  --spring: cubic-bezier(.34,1.56,.64,1);
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms;
  --t: 220ms;
  --t-slow: 300ms;

  --display: 'Baloo 2', 'Manrope', system-ui, sans-serif;
  --ui: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--ground);
  background-image: radial-gradient(rgba(24,80,160,.055) 1.1px, transparent 1.35px);
  background-size: 26px 26px;
  min-height: 100vh;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--cobalt); }

/* data numerals — the trust anchor */
.num, .gg-code, .gg-wait, .gg-dial .pct, .gg-enamel .t, .gg-kpi .v,
.gg-timeline .t, .gg-count b, .gg-policy, .gg-chiplabel b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* focus — brand ring, one system everywhere */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection { background: var(--lime-bright); color: var(--ink); }

/* ---------- chrome ---------- */
.gg-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1360px; margin: 14px auto 0; padding: 10px 14px;
  background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(24,80,160,.08);
  position: relative; z-index: 5;
}
@media (min-width: 1400px) { .gg-top { margin-left: auto; margin-right: auto; } }
@media (max-width: 1399px) { .gg-top { margin-left: 14px; margin-right: 14px; } }
.gg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; border-radius: 14px; }
.gg-brand-plate {
  display: grid; place-items: center; width: 58px; height: 44px;
  background: linear-gradient(165deg, #FFFFFF, #EAF1FA);
  border-radius: 13px; border: 1px solid rgba(24,80,160,.14);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(18,42,86,.10);
}
.gg-brand-plate img { width: 46px; height: auto; }
.gg-brand-name { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.1; color: var(--ink); }
.gg-brand-name b { color: var(--cobalt); font-weight: 800; }
.gg-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gg-policy {
  font-size: 10px; letter-spacing: .14em; color: var(--ink-faint);
  border: 1px dashed rgba(24,80,160,.35); border-radius: 999px; padding: 4px 10px;
}
.gg-demo {
  font-size: 12px; font-weight: 700; color: var(--amber-ink);
  background: var(--amber-tint); border-radius: 999px; padding: 6px 12px;
}
.gg-role {
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(170deg, var(--cobalt-hi), var(--cobalt));
  border-radius: 999px; padding: 8px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(18,58,120,.35);
}
@media (max-width: 430px) { .gg-brand-name { display: none; } }

/* ---------- shells ---------- */
.gg-shell {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 36px; align-items: start;
  max-width: 1240px; margin: 0 auto; padding: 30px 28px 120px;
}
.gg-stage { position: sticky; top: 24px; min-width: 0; }
.gg-panel { min-width: 0; display: grid; gap: 14px; }
@media (max-width: 980px) {
  .gg-shell { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 18px 16px calc(120px + env(safe-area-inset-bottom)); }
  .gg-stage { position: static; }
}

.gg-kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cobalt);
  margin-bottom: 10px;
}
.gg-kicker.live { color: var(--lime-deep); }
.gg-kicker.live::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); margin-right: 8px; vertical-align: 1px;
  animation: gg-pulse 1.4s ease-in-out infinite;
}
.gg-display {
  font-family: var(--display); font-weight: 800; line-height: 1.02;
  font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.01em; color: var(--ink);
}
.gg-display em { font-style: normal; color: var(--cobalt); }
.gg-sub { color: var(--ink-soft); font-size: 16px; max-width: 46ch; margin-top: 10px; }
.gg-stagecap { margin-top: 14px; color: var(--ink-soft); font-size: 15px; font-weight: 600; min-height: 24px; }

/* ---------- hero cart (real logo as a physical object) ---------- */
.gg-hero { position: relative; width: min(430px, 88%); margin: 26px auto 8px; }
.gg-hero-img {
  position: relative; z-index: 2; width: 100%;
  filter: drop-shadow(0 18px 22px rgba(18,42,86,.22));
  animation: gg-bob 3s var(--ease) infinite alternate;
}
.gg-hero-shadow {
  display: block; height: 26px; width: 72%; margin: -4px auto 0;
  background: radial-gradient(closest-side, rgba(18,42,86,.28), transparent 70%);
  animation: gg-bobshadow 3s var(--ease) infinite alternate;
}
@keyframes gg-bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes gg-bobshadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.86); opacity: .7; } }
.gg-floaters { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.gg-floater {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: var(--card); border: 1px solid rgba(24,80,160,.12);
  border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-1);
}

/* ---------- the garage scene (signature) ---------- */
.gg-scene {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background:
    linear-gradient(#F4F9FF 0%, #E7EFFA 62%, #DCE7F4 62%, #D3E0F0 100%);
  border: 1px solid rgba(24,80,160,.10);
  box-shadow: var(--shadow-2);
}
.gg-scene svg { width: 100%; height: auto; }
.gg-scene .drive { fill: #C9D7EA; }
.gg-scene .threshold { fill: #B4C6DF; }
.gg-scene .bface { fill: #FFFFFF; stroke: rgba(24,80,160,.10); }
.gg-scene .bopen { fill: #16233C; }
.gg-scene .roofband { fill: var(--cobalt); }
.gg-scene .slat { fill: var(--lime); }
.gg-scene .slat:nth-of-type(odd) { fill: var(--lime-bright); }
.gg-scene .handle { fill: #FFFFFF; opacity: .9; }
.gg-scene .lamp { fill: #C9D8EC; transition: fill var(--t) var(--ease); }
.gg-scene:not([data-phase="idle"]) .lamp {
  fill: #FFD469;
  filter: drop-shadow(0 0 7px rgba(255,206,84,.95));
  animation: gg-lampglow 1.6s ease-in-out infinite alternate;
}
@keyframes gg-lampglow { from { opacity: 1; } to { opacity: .74; } }

.gg-door { transform: translateY(0); transition: transform 380ms var(--spring); }
.gg-scene[data-phase="matching"] .gg-door { transform: translateY(-42px); }
.gg-scene[data-phase="claiming"] .gg-door { transform: translateY(-98px); }
.gg-scene[data-phase="out"]      .gg-door { transform: translateY(-132px); }

.gg-scene-cart {
  transform: translate(140px, 150px) scale(.66);
  transition: transform 620ms var(--spring), filter var(--t-slow) var(--ease);
  filter: brightness(.78) saturate(.85);
}
.gg-scene[data-phase="claiming"] .gg-scene-cart { filter: brightness(.95); }
.gg-scene[data-phase="out"] .gg-scene-cart {
  transform: translate(250px, 188px) scale(.82);
  filter: none;
}
@media (max-width: 980px) { .gg-scene.idle-compact { display: none; } }

/* the cart drawing (echoes the logo: cobalt body, white outline, lime bolt) */
.gg-cartdraw .wheel { fill: #182A44; stroke: #fff; stroke-width: 5; }
.gg-cartdraw .hub { fill: #fff; }
.gg-cartdraw .body, .gg-cartdraw .roof { fill: var(--cobalt); stroke: #fff; stroke-width: 6; stroke-linejoin: round; }
.gg-cartdraw .post { fill: var(--cobalt); stroke: #fff; stroke-width: 4; }
.gg-cartdraw .bolt { fill: var(--lime); }
.gg-cartdraw .lamp-front { fill: #FFD469; opacity: .9; }
.gg-cartsvg .gshadow { fill: rgba(18,42,86,.16); }

/* ---------- cards / tiles ---------- */
.gg-card {
  background: var(--card); border-radius: var(--r);
  border: 1px solid rgba(24,80,160,.08);
  box-shadow: var(--shadow-1); padding: 22px;
}
.gg-card h2 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }

.gg-tile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 64px; padding: 14px 18px;
  background: var(--card); border-radius: 20px;
  border: 1px solid rgba(24,80,160,.10); box-shadow: var(--shadow-1);
  transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease);
}
.gg-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gg-tile:active { transform: translateY(1px) scale(.985); box-shadow: var(--shadow-press); }
.gg-tile .t-body { flex: 1; min-width: 0; }
.gg-tile .t-name { display: block; font-weight: 800; font-size: 17px; }
.gg-tile .t-sub { display: block; color: var(--ink-faint); font-size: 13px; font-weight: 600; margin-top: 1px; }
.gg-tile .t-aux { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.gg-tile.primary { background: linear-gradient(168deg, var(--cobalt-hi), var(--cobalt) 68%); border-color: var(--cobalt-deep); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.25); }
.gg-tile.primary .t-name { color: #fff; }
.gg-tile.primary .t-sub { color: #C6DAF6; }
.gg-tile.primary .t-aux { color: var(--lime-bright); }
.gg-tile[aria-current="true"] { border: 2px solid var(--cobalt); box-shadow: var(--shadow-2); }
.gg-tile .t-dot {
  flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ground); color: var(--cobalt); font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.gg-tile.primary .t-dot { background: rgba(255,255,255,.16); color: #fff; }

.gg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 480px) { .gg-grid2 { grid-template-columns: minmax(0,1fr); } }

/* ---------- buttons ---------- */
.gg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; padding: 14px 22px;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  border-radius: 999px; color: var(--ink);
  background: linear-gradient(175deg, var(--lime-bright), var(--lime) 75%);
  border: 1px solid #5EA332;
  box-shadow: var(--shadow-2), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(62,112,32,.28);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease), filter var(--t-fast);
}
.gg-btn:hover { filter: brightness(1.04); transform: translateY(-2px); }
.gg-btn:active { transform: translateY(2px) scale(.98); box-shadow: var(--shadow-press), inset 0 2px 4px rgba(62,112,32,.3); }
.gg-btn.cobalt {
  color: #fff; background: linear-gradient(175deg, var(--cobalt-hi), var(--cobalt) 75%);
  border-color: var(--cobalt-deep);
  box-shadow: var(--shadow-2), inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(10,30,64,.35);
}
.gg-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; width: 100%;
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  border: 2px solid rgba(24,80,160,.18); border-radius: 999px; background: var(--card);
  transition: transform var(--t-fast) var(--spring), border-color var(--t-fast);
}
.gg-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.gg-ghost:active { transform: scale(.97); }
.gg-back {
  display: inline-flex; align-items: center; gap: 8px; align-self: start;
  min-height: 44px; padding: 8px 18px 8px 14px;
  font-weight: 800; font-size: 14px; color: var(--ink-soft);
  background: var(--card); border: 1px solid rgba(24,80,160,.14);
  border-radius: 999px; box-shadow: var(--shadow-1);
  transition: transform var(--t-fast) var(--spring);
}
.gg-back::before { content: '←'; font-weight: 800; color: var(--cobalt); }
.gg-back:hover { transform: translateX(-3px); }
.gg-back:active { transform: scale(.96); }

/* ---------- honest notes ---------- */
.gg-note {
  font-size: 13px; color: var(--ink-faint); line-height: 1.55;
  background: var(--card-tint); border: 1px dashed rgba(24,80,160,.2);
  border-radius: var(--r-sm); padding: 12px 16px;
}
.gg-note b { color: var(--ink-soft); }

/* ---------- enamel badge ---------- */
.gg-enamel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(170deg, #2C69C4, #123A78);
  border: 2px solid #0E2C5C;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.35), inset 0 -2px 3px rgba(0,0,0,.3), 0 3px 8px rgba(18,42,86,.3);
}
.gg-enamel .t { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.gg-enamel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-bright); box-shadow: 0 0 5px rgba(143,209,79,.9); }
.gg-enamel.free { background: linear-gradient(170deg, var(--lime-bright), #5EA332); border-color: #3E7020; }
.gg-enamel.free .t { color: var(--ink); }
.gg-enamel.free::before { background: #fff; box-shadow: none; }

/* ---------- seat picker (party = seats in the cart) ---------- */
.gg-cartframe {
  position: relative; margin: 8px 0 22px; padding: 22px 20px 26px;
  border: 4px solid var(--cobalt); border-radius: 30px 30px 22px 22px;
  background: linear-gradient(178deg, #F2F7FE, #E6EEF9);
  box-shadow: var(--shadow-1), inset 0 2px 0 #fff;
}
.gg-cartframe::before, .gg-cartframe::after {
  content: ''; position: absolute; bottom: -18px; width: 34px; height: 34px;
  border-radius: 50%; background: #182A44; border: 5px solid #fff;
  box-shadow: 0 3px 6px rgba(18,42,86,.3);
}
.gg-cartframe::before { left: 26px; }
.gg-cartframe::after { right: 26px; }
.gg-seatrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gg-seat {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px dashed rgba(24,80,160,.35); background: #fff;
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink-faint);
  transition: transform var(--t-fast) var(--spring), background var(--t-fast), border-color var(--t-fast);
}
.gg-seat:hover { transform: translateY(-3px); }
.gg-seat:active { transform: scale(.92); }
.gg-seat.is-on {
  border: 3px solid var(--cobalt-deep); background: linear-gradient(170deg, var(--cobalt-hi), var(--cobalt));
  color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 8px rgba(18,58,120,.35);
}
.gg-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.gg-step-btn {
  width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--cobalt);
  background: var(--card); border: 2px solid rgba(24,80,160,.2); box-shadow: var(--shadow-1);
  transition: transform var(--t-fast) var(--spring);
}
.gg-step-btn:hover { transform: translateY(-2px); border-color: var(--cobalt); }
.gg-step-btn:active { transform: scale(.92); }
.gg-count { text-align: center; min-width: 96px; }
.gg-count b { display: block; font-size: 44px; font-weight: 700; line-height: 1; color: var(--ink); }
.gg-count small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

/* ---------- review ---------- */
.gg-route { display: grid; gap: 0; margin: 14px 0; }
.gg-route .stop { display: flex; align-items: center; gap: 14px; }
.gg-route .stop .pt {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 4px solid var(--cobalt); background: #fff;
}
.gg-route .stop.end .pt { background: var(--lime); border-color: var(--lime-deep); }
.gg-route .leg { width: 4px; height: 26px; margin-left: 7px; border-radius: 2px; background: repeating-linear-gradient(var(--cobalt) 0 5px, transparent 5px 10px); }
.gg-route .stop .nm { font-weight: 800; font-size: 17px; }
.gg-route .stop .ar { font-size: 12px; font-weight: 600; color: var(--ink-faint); margin-left: 8px; }
.gg-fare { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; margin-top: 6px; border-top: 1px solid rgba(24,80,160,.1); }
.gg-fare .amt { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.gg-fare .why { font-size: 12px; color: var(--ink-faint); font-weight: 600; }

/* ---------- searching phases ---------- */
.gg-phases { list-style: none; display: grid; gap: 10px; margin: 14px 0; }
.gg-phases li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: var(--card-tint); border: 1px solid rgba(24,80,160,.08);
  font-weight: 700; font-size: 15px; color: var(--ink-faint);
  transition: background var(--t) var(--ease), transform var(--t) var(--spring);
}
.gg-phases .ph-lamp {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: #C9D8EC; transition: background var(--t-fast);
}
.gg-phases li.is-live { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); transform: scale(1.02); }
.gg-phases li.is-live .ph-lamp { background: var(--amber); animation: gg-glow 1.2s ease-in-out infinite; }
@keyframes gg-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,168,28,.55); }
  50% { box-shadow: 0 0 0 7px rgba(240,168,28,0); }
}
.gg-phases li.is-done { color: var(--ink-soft); }
.gg-phases li.is-done .ph-lamp { background: var(--lime); }
@keyframes gg-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- ride chip ---------- */
.gg-chip {
  position: fixed; z-index: 40; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 20px;
  color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(170deg, var(--cobalt-hi), var(--cobalt-deep));
  border: 1px solid var(--cobalt-deep); border-radius: 999px;
  box-shadow: var(--shadow-3);
  transition: transform var(--t-fast) var(--spring);
}
.gg-chip:hover { transform: translateY(-3px); }
.gg-chip:active { transform: scale(.97); }
.gg-chip .cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-bright); box-shadow: 0 0 8px rgba(143,209,79,1); animation: gg-pulse 1.4s ease-in-out infinite; }
.gg-chiplabel b { color: var(--lime-bright); font-weight: 700; }
@media (max-width: 640px) { .gg-chip { left: 18px; right: 18px; justify-content: center; } }

/* ---------- assigned flip card ---------- */
.gg-flip { perspective: 1300px; margin: 6px 0 14px; }
.gg-flip-inner { position: relative; transform-style: preserve-3d; transition: transform 480ms var(--spring); }
.gg-flip.is-flipped .gg-flip-inner { transform: rotateY(180deg); }
.gg-face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg); padding: 26px; min-height: 240px;
  display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center;
}
.gg-face.front {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, var(--cobalt-hi), var(--cobalt-deep));
  color: #fff; box-shadow: var(--shadow-2);
}
.gg-face.front .fr-code { font-family: var(--mono); font-size: 13px; color: #BCD4F2; letter-spacing: .1em; }
.gg-face.front .fr-line { font-family: var(--display); font-weight: 700; font-size: 22px; }
.gg-face.front .gg-cartsvg { width: 180px; }
.gg-face.back {
  position: relative; transform: rotateY(180deg);
  background: var(--card); border: 1px solid rgba(24,80,160,.1); box-shadow: var(--shadow-2);
}
.gg-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 26px; color: #fff;
  background: linear-gradient(170deg, var(--cobalt-hi), var(--cobalt-deep));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), var(--shadow-1);
}
.gg-face.back .dr-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.gg-face.back .dr-sub { font-size: 13px; font-weight: 700; color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; }
.gg-face.back .dr-cart { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

/* ---------- driver: shift bar, bays, dials ---------- */
.gg-main { max-width: 1240px; margin: 0 auto; padding: 26px 28px 120px; }
@media (max-width: 980px) { .gg-main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); } }
.gg-shiftbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: 20px;
  background: var(--card); border-radius: 18px; border: 1px solid rgba(24,80,160,.1);
  box-shadow: var(--shadow-1); font-weight: 800; font-size: 14px;
}
.gg-shiftbar .slamp { width: 14px; height: 14px; border-radius: 50%; background: #C9D8EC; }
.gg-shiftbar.on .slamp { background: var(--lime); box-shadow: 0 0 8px rgba(120,192,72,.8); animation: gg-pulse 2s ease-in-out infinite; }
.gg-shiftbar .sveh { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--ink-faint); }

.gg-bays { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 18px; }
.gg-bay {
  position: relative; text-align: left; display: grid; gap: 12px;
  padding: 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid rgba(24,80,160,.1); box-shadow: var(--shadow-1);
  transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease);
}
.gg-bay:hover:not(:disabled) { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.gg-bay:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.gg-bay:disabled { cursor: not-allowed; background: var(--amber-tint); border-color: rgba(240,168,28,.4); }
.gg-bay:disabled .gg-cartsvg { filter: grayscale(.5) opacity(.6); }
.gg-bayplate {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: var(--ink-faint); border: 1px solid rgba(24,80,160,.18); border-radius: 6px; padding: 3px 8px;
  background: var(--card-tint);
}
.gg-bay .b-name { font-family: var(--display); font-weight: 700; font-size: 22px; }
.gg-bay .b-meta { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.gg-bay .b-row { display: flex; align-items: center; gap: 14px; }
.gg-bay .gg-cartsvg { width: 130px; flex: none; }
.gg-bay .b-charging { font-size: 12px; font-weight: 800; color: var(--amber-ink); }

.gg-dial { position: relative; width: 64px; height: 64px; flex: none; margin-left: auto; }
.gg-dial .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--dial-c, var(--lime)) calc(var(--p) * 1%), #DCE6F2 0);
}
.gg-dial .core {
  position: absolute; inset: 7px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; box-shadow: inset 0 1px 3px rgba(18,42,86,.12);
}
.gg-dial .pct { font-size: 14px; font-weight: 700; }
.gg-dial .pct small { font-size: 9px; color: var(--ink-faint); }
.gg-dial.is-low { --dial-c: var(--amber); }

/* ---------- driver queue / claim ---------- */
.gg-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 700px) { .gg-queue { grid-template-columns: minmax(0,1fr); } }
.gg-job {
  display: grid; gap: 12px; padding: 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid rgba(24,80,160,.1); box-shadow: var(--shadow-1);
}
.gg-job .j-top { display: flex; align-items: baseline; gap: 10px; }
.gg-job .gg-code { font-size: 15px; font-weight: 700; color: var(--cobalt); }
.gg-job .gg-wait { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--amber-ink); }
.gg-job .j-route { font-weight: 800; font-size: 17px; line-height: 1.3; }
.gg-job .j-stats { display: flex; gap: 18px; }
.gg-job .j-stats span { font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.gg-job .j-stats b { font-family: var(--mono); font-size: 15px; color: var(--ink); display: block; }
.gg-job .j-taken { font-size: 13px; font-weight: 800; color: var(--coral-ink); background: var(--coral-tint); border-radius: 12px; padding: 10px 14px; }
.gg-job .j-done { font-size: 13px; font-weight: 800; color: var(--lime-deep); background: var(--lime-tint); border-radius: 12px; padding: 10px 14px; }

.gg-claim {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 18px; width: 100%;
  border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--ink);
  background: var(--card-tint); border: 2px solid rgba(24,80,160,.16);
  transition: transform var(--t-fast) var(--spring), border-color var(--t-fast), background var(--t-fast);
}
.gg-claim:hover { border-color: var(--lime-deep); background: var(--lime-tint); }
.gg-claim:active { transform: scale(.97); }
.gg-claim .lamps { display: flex; gap: 5px; flex: none; }
.gg-claim .l { width: 12px; height: 12px; border-radius: 50%; background: #D4DFEC; transition: background var(--t-fast), box-shadow var(--t-fast); }
.gg-claim .l.r { background: #F0CFC7; }
.gg-claim .l.a { background: #F2E2BE; }
.gg-claim .l.g { background: #D2E8C0; }
.gg-claim .ccode { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.gg-claim.is-go { border-color: var(--lime-deep); background: var(--lime-tint); }
.gg-claim.is-go .l.g { background: var(--lime); box-shadow: 0 0 8px rgba(120,192,72,.9); }
.gg-claim.is-go .clabel { color: var(--lime-deep); }
.gg-claim.is-stop { border-color: var(--coral); background: var(--coral-tint); }
.gg-claim.is-stop .l.r { background: var(--coral); box-shadow: 0 0 8px rgba(228,87,61,.9); }
.gg-claim.is-stop .clabel { color: var(--coral-ink); }

/* conflict — the red light */
.gg-conflict {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 34px 26px; margin-top: 18px; border-radius: var(--r-lg);
  background: var(--card); border: 2px solid var(--coral); box-shadow: var(--shadow-2);
}
.gg-redlight {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8A73, var(--coral) 60%, #C13A22);
  box-shadow: 0 0 0 8px var(--coral-tint), 0 0 28px rgba(228,87,61,.55), inset 0 -6px 12px rgba(0,0,0,.22);
  animation: gg-pulse 1.6s ease-in-out infinite;
}
.gg-conflict h2 { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--coral-ink); }
.gg-conflict p { color: var(--ink-soft); max-width: 42ch; font-weight: 600; }
.gg-conflict .gg-code { color: var(--coral-ink); }

/* green light — assigned */
.gg-greenlight {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 30px 26px; border-radius: var(--r-lg);
  background: linear-gradient(172deg, var(--lime-tint), #DDF0C9);
  border: 2px solid var(--lime); box-shadow: var(--shadow-2);
}
.gg-greenorb {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #B8E88E, var(--lime) 60%, #4E8A28);
  box-shadow: 0 0 0 8px rgba(120,192,72,.18), 0 0 26px rgba(120,192,72,.6), inset 0 -6px 12px rgba(0,0,0,.18);
}
.gg-greenlight h2 { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--lime-deep); }

/* ---------- ops: the garage wall ---------- */
.gg-ops { max-width: 1360px; margin: 0 auto; padding: 24px 28px 80px; }
@media (max-width: 980px) { .gg-ops { padding: 16px 16px 60px; } }
.gg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.gg-kpi {
  padding: 18px 20px; border-radius: 20px;
  background: var(--card); border: 1px solid rgba(24,80,160,.09); box-shadow: var(--shadow-1);
}
.gg-kpi .v { font-size: 34px; font-weight: 700; line-height: 1; }
.gg-kpi .v em { font-style: normal; color: var(--amber-ink); }
.gg-kpi .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
.gg-kpi.hot { border-color: rgba(240,168,28,.5); background: linear-gradient(180deg, var(--card), var(--amber-tint)); }

.gg-opsgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
@media (max-width: 1080px) { .gg-opsgrid { grid-template-columns: minmax(0,1fr); } }
.gg-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.gg-sectionhead { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 12px; }
.gg-sectionhead h2 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.gg-sectionhead .cnt { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }

.gg-run {
  position: relative; text-align: left; display: grid; gap: 10px;
  padding: 18px 18px 16px; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid rgba(24,80,160,.1); box-shadow: var(--shadow-1);
  transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease);
}
.gg-run::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--state-c, #C9D8EC); }
.gg-run:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gg-run:active { transform: scale(.985); }
.gg-run .r-top { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.gg-run .gg-code { font-size: 16px; font-weight: 700; }
.gg-run .gg-wait { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--amber-ink); }
.gg-run .r-route { font-weight: 800; font-size: 15px; line-height: 1.35; }
.gg-run .r-meta { display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.gg-run .r-meta b { font-family: var(--mono); color: var(--ink); }
.gg-run[data-state="UNASSIGNED"] { --state-c: var(--amber); }
.gg-run[data-state="ASSIGNED"]   { --state-c: var(--lime); }
.gg-run[data-state="COMPLETED"]  { --state-c: #A9BBD4; }

.gg-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px;
}
.gg-state .sd { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gg-state.waiting  { color: var(--amber-ink); background: var(--amber-tint); }
.gg-state.waiting .sd { animation: gg-pulse 1.4s ease-in-out infinite; }
.gg-state.green    { color: var(--lime-deep); background: var(--lime-tint); }
.gg-state.done     { color: var(--ink-faint); background: var(--ground-2); }
.gg-state.lost     { color: var(--coral-ink); background: var(--coral-tint); }

.gg-opsside { display: grid; gap: 16px; min-width: 0; }
.gg-fleetcard { display: grid; gap: 12px; }
.gg-fleetrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card-tint); border: 1px solid rgba(24,80,160,.07); }
.gg-fleetrow .f-name { font-weight: 800; font-size: 14px; }
.gg-fleetrow .f-tag { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.gg-fleetrow .gg-dial { width: 46px; height: 46px; }
.gg-fleetrow .gg-dial .core { inset: 5px; }
.gg-fleetrow .gg-dial .pct { font-size: 11px; }
.gg-fleetrow .f-chg { margin-left: auto; margin-right: 8px; font-size: 11px; font-weight: 800; color: var(--amber-ink); }

.gg-ringmap { position: relative; }
.gg-ringmap svg { width: 100%; height: auto; }
.gg-ringmap .ring { fill: rgba(24,80,160,.05); stroke: var(--cobalt); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 22 14; }
.gg-ringmap .river { fill: none; stroke: #A8C6E8; stroke-width: 26; stroke-linecap: round; opacity: .7; }
.gg-ringmap .spot { fill: var(--lime-deep); }
.gg-ringmap .spotlbl { font-family: var(--mono); font-size: 30px; fill: var(--ink-soft); font-weight: 600; }
.gg-ringmap .cap { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }

/* ---------- ops record overlay (the service card) ---------- */
.gg-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
  background: rgba(14,28,56,.48); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.gg-record {
  width: min(660px, 100%); max-height: min(86vh, 820px); overflow-y: auto;
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid rgba(24,80,160,.12); box-shadow: var(--shadow-3);
  padding: 26px; display: grid; gap: 16px;
  animation: gg-cardin var(--t-slow) var(--spring);
}
@keyframes gg-cardin { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.gg-record .rec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gg-record .rec-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; margin-right: auto; }
.gg-close {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 18px; font-weight: 800; color: var(--ink-soft);
  background: var(--card-tint); border: 1px solid rgba(24,80,160,.15);
  transition: transform var(--t-fast) var(--spring);
}
.gg-close:hover { transform: rotate(90deg); color: var(--coral-ink); }
.gg-record .rec-sub { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.gg-record .rec-sub .gg-code { color: var(--cobalt); }

.gg-timeline { list-style: none; display: grid; gap: 0; }
.gg-timeline li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; position: relative; }
.gg-timeline li:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 32px; bottom: -4px; width: 2px;
  background: rgba(24,80,160,.15);
}
.gg-timeline .td { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 4px; background: var(--cobalt); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(24,80,160,.3); }
.gg-timeline li.lost .td { background: var(--coral); box-shadow: 0 0 0 2px rgba(228,87,61,.4); }
.gg-timeline li.final .td { background: var(--lime); box-shadow: 0 0 0 2px rgba(120,192,72,.5); }
.gg-timeline .t { flex: none; width: 74px; font-size: 12px; font-weight: 600; color: var(--ink-faint); margin-top: 3px; }
.gg-timeline .tb { min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); overflow-wrap: anywhere; }
.gg-timeline .tb b { color: var(--ink); }
.gg-timeline li.lost .tb b { color: var(--coral-ink); }
.gg-timeline .who { font-size: 12px; color: var(--ink-faint); }

.gg-assigncard {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px; border-radius: 20px;
  background: linear-gradient(172deg, var(--lime-tint), #DDF0C9); border: 1px solid var(--lime);
}
.gg-assigncard .a-body { flex: 1; min-width: 120px; }
.gg-assigncard .a-name { font-family: var(--display); font-weight: 700; font-size: 19px; }
.gg-assigncard .a-cart { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ---------- landing ---------- */
.gg-landing { max-width: 1240px; margin: 0 auto; padding: 26px 28px 80px; }
@media (max-width: 980px) { .gg-landing { padding: 16px 16px 60px; } }
.gg-landhero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 44px 0 20px; }
@media (max-width: 900px) { .gg-landhero { grid-template-columns: minmax(0,1fr); gap: 8px; padding-top: 22px; } }
.gg-landhero .gg-display { font-size: clamp(42px, 5.6vw, 72px); }
.gg-roles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 34px; }
@media (max-width: 900px) { .gg-roles { grid-template-columns: minmax(0,1fr); } }
.gg-rolecard {
  display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink);
  min-height: 210px; padding: 26px 24px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid rgba(24,80,160,.1); box-shadow: var(--shadow-2);
  transition: transform var(--t) var(--spring), box-shadow var(--t) var(--ease);
}
.gg-rolecard:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-3); }
.gg-rolecard:active { transform: translateY(0) scale(.98); }
.gg-rolecard .rc-k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.gg-rolecard .rc-n { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; }
.gg-rolecard .rc-d { font-size: 14px; font-weight: 600; line-height: 1.5; }
.gg-rolecard .rc-a { font-family: var(--mono); font-size: 12px; margin-top: auto; padding-top: 10px; }
.gg-rolecard.rider { background: linear-gradient(168deg, var(--cobalt-hi), var(--cobalt-deep)); color: #fff; border-color: var(--cobalt-deep); }
.gg-rolecard.rider .rc-k, .gg-rolecard.rider .rc-a { color: var(--lime-bright); }
.gg-rolecard.rider .rc-d { color: #C6DAF6; }
.gg-rolecard.driver { background: linear-gradient(168deg, var(--lime-bright), var(--lime)); border-color: #5EA332; }
.gg-rolecard.driver .rc-k, .gg-rolecard.driver .rc-a { color: var(--cobalt-deep); }
.gg-rolecard.driver .rc-d { color: #1F3A10; }
.gg-rolecard.ops .rc-k, .gg-rolecard.ops .rc-a { color: var(--cobalt); }
.gg-rolecard.ops .rc-d { color: var(--ink-soft); }

/* ---------- how it works rows ---------- */
.gg-hiw { display: grid; gap: 14px; margin-top: 14px; }
.gg-hiw .row { display: flex; gap: 14px; align-items: flex-start; }
.gg-hiw .n {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--cobalt);
  background: var(--ground); border: 1px solid rgba(24,80,160,.12);
}
.gg-hiw b { font-size: 15px; }

/* ---------- helpers ---------- */
.gg-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gg-empty {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 40px 24px; border-radius: var(--r);
  background: var(--card-tint); border: 2px dashed rgba(24,80,160,.18); color: var(--ink-faint); font-weight: 700;
}
.gg-empty .gg-cartsvg { width: 150px; opacity: .5; filter: grayscale(.4); }

/* ---------- reduced motion: everything calms down ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .gg-hero-img, .gg-hero-shadow { animation: none !important; }
  .gg-scene .gg-door, .gg-scene .gg-scene-cart { transition: none !important; }
  .gg-flip-inner { transition: none !important; }
}

/* ---------- Trevor pass: unbelievably simple rider sizes ---------- */
.gg-bigq { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: clamp(34px, 9vw, 46px); color: var(--cobalt-ink, #16407E); margin: 6px 0 2px; line-height: 1.05; }
.gg-tile.xl { min-height: 92px; }
.gg-tile.xl .t-name { font-size: 26px; }
.gg-tile.xl .t-sub { font-size: 16px; }
.gg-btn.xl { min-height: 68px; font-size: 22px; letter-spacing: 0.02em; }
.gg-stepper.xl { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 26px 0 10px; }
.gg-step-btn.xl { width: 84px; height: 84px; border-radius: 50%; font-size: 40px; }
.gg-count.xl b { font-size: 96px; line-height: 1; display: block; }
.gg-count.xl small { font-size: 16px; letter-spacing: 0.12em; }
.gg-stage .gg-hero { margin-top: 4px; }

/* linear hand-holding: step dots + confirm rows */
.gg-stepdots { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; }
.gg-stepdots .sd { width: 11px; height: 11px; border-radius: 50%; background: #C9D6E6; }
.gg-stepdots .sd.done { background: var(--lime, #78C048); }
.gg-stepdots .sd.now { background: var(--cobalt, #1850A0); transform: scale(1.25); }
.gg-stepdots .sd-label { margin-left: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7A90; }
.gg-confirmrow { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1.5px dashed #E2E9F2; }
.gg-confirmrow:last-child { border-bottom: 0; }
.gg-confirmrow .ck { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6B7A90; width: 76px; flex: none; }
.gg-confirmrow .cv { font-size: 19px; font-weight: 800; color: var(--ink, #17243A); flex: 1; min-width: 0; }
.gg-confirmrow .gg-mini { border: 1.5px solid #D5DfEB; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--cobalt, #1850A0); background: #fff; min-height: 36px; }
.gg-tile.xl.solo { justify-content: center; gap: 14px; }
.gg-tile.xl.solo .t-name { font-size: 30px; }
.gg-demo.slim { font-size: 11px; padding: 4px 10px; opacity: 0.75; }
.gg-noteadd { display: block; width: 100%; text-align: left; padding: 14px 4px 4px; font-size: 15px; font-weight: 700; color: var(--cobalt, #1850A0); }
.gg-confirmrow.note { align-items: flex-start; }
.gg-noteinput { flex: 1; border: 1.5px solid #D5DFEB; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; resize: none; background: #fff; color: var(--ink, #17243A); }
.gg-noteinput:focus-visible { outline: 2px solid var(--lime, #78C048); outline-offset: 2px; }

/* ---------- bottom navigation: the app's skeleton ---------- */
.gg-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: #fff; border-top: 1.5px solid #E2E9F2; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(23, 36, 58, 0.06); }
.gg-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; min-height: 54px; border-radius: 14px; font-size: 12.5px; font-weight: 800; color: #8494A9; }
.gg-tab svg { width: 26px; height: 26px; fill: currentColor; }
.gg-tab.is-active { color: var(--cobalt, #1850A0); }
.gg-tab.is-active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lime, #78C048); }
.gg-tab:active { transform: scale(0.94); }
#app.has-tabs .gg-shell { padding-bottom: 96px; }
.gg-chip.above-tabs { bottom: calc(84px + env(safe-area-inset-bottom)); }
.gg-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--cobalt, #1850A0); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.gg-switch { width: 54px; height: 32px; border-radius: 999px; background: #D5DFEB; position: relative; transition: background 0.15s; flex: none; }
.gg-switch .knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: left 0.15s; }
.gg-switch.on { background: var(--lime, #78C048); }
.gg-switch.on .knob { left: 25px; }
/* Home: logo + button sit at the optical center of the space above the tab bar */
.gg-shell.home-center { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100dvh - 86px - env(safe-area-inset-bottom)); padding-bottom: 8px; gap: 14px; }
.gg-shell.home-center .gg-stage { position: static; flex: none; }
.gg-shell.home-center .gg-panel { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
#app.has-tabs .gg-shell.home-center { padding-bottom: 8px; }

/* home: small brand, living map, big button at the thumb */
.gg-minibrand img { height: 46px; display: block; margin: 2px auto 0; filter: drop-shadow(0 3px 8px rgba(24,80,160,0.18)); }
.gg-homemap { flex: 1; min-height: 300px; position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(24,80,160,0.10); box-shadow: var(--shadow-1); background: #F2F7FC; }
.gg-homemap > svg { width: 100%; height: 100%; display: block; } /* hand-drawn era; must NOT touch Leaflet panes */
.gg-livepill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 800; color: var(--ink, #17243A); box-shadow: 0 4px 14px rgba(23,36,58,0.12); }
.gg-livepill .lp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime, #78C048); box-shadow: 0 0 8px var(--lime, #78C048); animation: gg-lp 1.6s infinite; }
@keyframes gg-lp { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .gg-livepill .lp-dot { animation: none; } }
.gg-minibrand { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 2px; }
.gg-minibrand img { height: 46px; display: block; margin: 0; filter: drop-shadow(0 3px 8px rgba(24,80,160,0.18)); }
.gg-slogan { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.gg-slogan b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 18px; font-weight: 800; color: var(--cobalt, #1850A0); }
.gg-slogan span { font-size: 12.5px; font-weight: 700; color: #7E93AD; letter-spacing: 0.02em; }

/* ---------- pick mode: X · map · scrollable choices (zoom-style) ---------- */
.gg-shell.pick-mode { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100dvh - 20px); gap: 12px; padding-bottom: 10px; }
.gg-shell.pick-mode .gg-stage { position: static; flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 12px; }
.gg-shell.pick-mode .gg-stage .gg-homemap { flex: 1; min-height: 260px; }
.gg-shell.pick-mode .gg-panel { flex: none; }
.gg-pickbar { display: flex; align-items: center; gap: 14px; }
.gg-x { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); border: 1px solid rgba(24,80,160,0.10); font-size: 19px; font-weight: 800; color: var(--ink, #17243A); display: grid; place-items: center; flex: none; }
.gg-x:active { transform: scale(0.92); }
.pb-title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 22px; font-weight: 800; color: var(--cobalt, #1850A0); }
.gg-picklist { background: #fff; border-radius: 22px 22px 16px 16px; border: 1px solid rgba(24,80,160,0.10); box-shadow: 0 -10px 30px rgba(23,36,58,0.08); max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 10px; }
.pl-grab { width: 44px; height: 4px; border-radius: 2px; background: #E2E9F2; margin: 8px auto 6px; position: sticky; top: 6px; }
.gg-row-sm { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; min-height: 56px; padding: 8px 12px; border-radius: 14px; }
.gg-row-sm:hover { background: #F2F7FC; }
.gg-row-sm:active { background: #E9F1FA; }
.gg-row-sm .r-name { font-size: 17.5px; font-weight: 800; color: var(--ink, #17243A); }
.gg-row-sm .r-sub { font-size: 13.5px; font-weight: 700; color: #8CA0B8; flex: 1; }
.gg-row-sm .r-aux { color: var(--cobalt, #1850A0); font-weight: 800; }
.gg-row-sm[aria-current="true"] { background: #EDF6E6; }
.gg-row-sm[aria-current="true"] .r-name { color: var(--cobalt, #1850A0); }
.gg-next { margin-left: auto; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--cobalt, #1850A0); color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.gg-next:active { transform: scale(0.95); }
.gg-next:disabled { background: #C9D6E6; color: #fff; cursor: not-allowed; }
.gg-homemap svg { cursor: grab; }
.gg-homemap svg:active { cursor: grabbing; }

/* ---------- real map + selection field + chooser sheet ---------- */
.gg-realmap { padding: 0; }
.gg-leaflet { position: absolute; inset: 0; }
.gg-realmap .leaflet-container { font-family: 'Manrope', system-ui, sans-serif; background: #EAF0F6; }
.gg-spotlabel { background: #fff; border: 1px solid rgba(24,80,160,0.14); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 12px; color: #17243A; box-shadow: 0 2px 8px rgba(23,36,58,0.12); }
.gg-spotlabel::before { display: none; }
.gg-flagpin { position: relative; width: 34px; height: 52px; }
.gg-flagpin .fp-pole { position: absolute; left: 6px; bottom: 2px; width: 4px; height: 42px; background: #1850A0; border-radius: 2px; }
.gg-flagpin .fp-flag { position: absolute; left: 10px; top: 0; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 22px solid #78C048; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.gg-flagpin .fp-dot { position: absolute; left: 0; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #1850A0; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.gg-pickfield { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; min-height: 68px; padding: 12px 16px; background: #fff; border-radius: 20px; border: 1.5px solid rgba(24,80,160,0.12); box-shadow: var(--shadow-1); }
.gg-pickfield:active { transform: scale(0.985); }
.gg-pickfield .pf-flag { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px currentColor; }
.gg-pickfield .pf-flag.lime { color: #78C048; background: #78C048; }
.gg-pickfield .pf-flag.cobalt { color: #1850A0; background: #1850A0; }
.gg-pickfield .pf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gg-pickfield .pf-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8CA0B8; }
.gg-pickfield .pf-value { font-size: 19px; font-weight: 800; color: #A9B7C9; }
.gg-pickfield.has-value .pf-value { color: var(--ink, #17243A); }
.gg-pickfield .pf-aux { font-size: 14px; font-weight: 800; color: var(--cobalt, #1850A0); }
.gg-sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 25, 40, 0.35); display: flex; align-items: flex-end; }
.gg-sheet { width: 100%; max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 24px 24px 0 0; padding: 4px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 44px rgba(15,25,40,0.25); animation: gg-sheet-up 0.22s ease-out; }
@keyframes gg-sheet-up { from { transform: translateY(24px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .gg-sheet { animation: none; } }
/* Leaflet's own .leaflet-container CSS resets position; out-specific it so the
   map actually fills its frame. */
.gg-homemap .gg-leaflet.leaflet-container, .gg-homemap .gg-leaflet { position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
/* Contain Leaflet's internal z-indexes (400–700) inside the map frame so
   sheets/overlays always stack above the map. */
.gg-homemap { isolation: isolate; z-index: 0; }
.gg-sheet-backdrop { z-index: 500; }

/* ---------- map-bleed: the map IS the screen; chrome floats on it ---------- */
#app.map-bleed { position: fixed; inset: 0; overflow: hidden; }
#app.map-bleed .gg-shell { padding: 0; margin: 0; max-width: none; min-height: 100dvh; display: block; }
#app.map-bleed .gg-homemap { position: fixed; inset: 0; border-radius: 0; border: 0; box-shadow: none; min-height: 0; z-index: 0; }
#app.map-bleed .gg-stage { position: static; }
/* floating brand lockup */
#app.map-bleed .gg-minibrand { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 10; background: rgba(255,255,255,0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 9px 20px 9px 12px; border-radius: 20px; box-shadow: 0 6px 22px rgba(23,36,58,0.16); }
#app.map-bleed .gg-minibrand img { height: 38px; filter: none; }
/* the one action, floating at the thumb above the tab bar */
#app.map-bleed .gg-tile.primary.solo { position: fixed; left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; z-index: 10; box-shadow: 0 14px 34px rgba(24,80,160,0.35); }
#app.map-bleed .gg-livepill { top: auto; bottom: calc(170px + env(safe-area-inset-bottom)); left: 14px; position: fixed; z-index: 10; }
#app.map-bleed .gg-chip.above-tabs { bottom: calc(170px + env(safe-area-inset-bottom)); left: auto; right: 14px; }
/* pick screens: bar floats top, field floats bottom */
#app.map-bleed .gg-pickbar { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 10; }
#app.map-bleed .pb-title { background: rgba(255,255,255,0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 9px 16px; border-radius: 16px; box-shadow: 0 5px 18px rgba(23,36,58,0.14); font-size: 19px; }
#app.map-bleed .gg-next { box-shadow: 0 6px 18px rgba(24,80,160,0.3); }
#app.map-bleed .gg-pickfield { position: fixed; left: 14px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; z-index: 10; box-shadow: 0 14px 34px rgba(23,36,58,0.22); }
#app.map-bleed .gg-panel { display: contents; }
/* tab bar sits above the map */
.gg-tabbar { z-index: 40; }

/* =========== THE DE-INSURANCING: docked, square, green-led =========== */
body { background: #FFFFFF; }
/* slim docked header strip */
.gg-hstrip { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 6px; background: #fff; border-bottom: 1px solid #E7EAEE; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; min-height: 54px; }
.gg-hbtn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 21px; color: #1A222E; border-radius: 6px; flex: none; }
.gg-hbtn:active { background: #F0F3F6; }
.gg-hspacer { width: 44px; flex: none; }
.gg-hlockup { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.gg-hlockup img { height: 30px; }
.gg-hlockup .hl-txt { display: flex; flex-direction: column; line-height: 1.1; }
.gg-hlockup .hl-txt b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 15px; font-weight: 800; color: #1A222E; }
.gg-hlockup .hl-txt span { font-size: 11px; font-weight: 700; color: #7C8794; }
.gg-htitle { flex: 1; text-align: center; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 18px; font-weight: 800; color: #1A222E; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the square green action bar, flush with the bottom edge */
.gg-dockbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #78C048; color: #14310E; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 20px; font-weight: 800; border-radius: 0; letter-spacing: 0.01em; }
.gg-dockbar:active:not(:disabled) { filter: brightness(0.93); }
.gg-dockbar:disabled { background: #E3E8EE; color: #98A4B3; cursor: not-allowed; }
/* map fills everything; chrome is docked, not floating */
#app.map-bleed .gg-homemap { position: fixed; inset: 0; border-radius: 0; border: 0; box-shadow: none; min-height: 0; z-index: 0; }
#app.map-bleed .gg-pickfield { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); width: auto; z-index: 55; border-radius: 0; border: 0; border-top: 1px solid #E7EAEE; box-shadow: none; background: #fff; min-height: 62px; }
#app.map-bleed .gg-livepill { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 10px; bottom: auto; border-radius: 6px; z-index: 20; }
#app.map-bleed .gg-chip { position: fixed; right: 10px; left: auto; top: calc(64px + env(safe-area-inset-top)); bottom: auto; border-radius: 6px; z-index: 20; transform: none; }
/* docked step panels (party, ready) — the map stays visible behind everything */
.gg-dockpanel { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-top: 1px solid #E7EAEE; padding: 10px 16px calc(10px); border-radius: 0; }
.gg-partyrow { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 6px 0; }
.gg-step-sq { width: 56px; height: 56px; border-radius: 8px; border: 1.5px solid #DBE1E8; background: #fff; font-size: 26px; font-weight: 700; color: #1A222E; }
.gg-step-sq:active { background: #F0F3F6; }
.gg-partycount { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 20px; font-weight: 700; color: #1A222E; min-width: 120px; text-align: center; }
.gg-partycount b { font-size: 34px; }
.gg-dockhint { margin: 2px 0 0; text-align: center; font-size: 12.5px; font-weight: 700; color: #8A97A6; }
.gg-sumrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #EEF1F4; }
.gg-sumrow:last-of-type { border-bottom: 0; }
.gg-sumrow .sr-k { width: 74px; flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8A97A6; }
.gg-sumrow .sr-v { flex: 1; font-size: 16.5px; font-weight: 800; color: #1A222E; }
.gg-change { font-size: 13.5px; font-weight: 800; color: #1850A0; padding: 8px 10px; border-radius: 6px; }
.gg-change:active { background: #F0F3F6; }
/* drawer */
.gg-drawer-backdrop { position: fixed; inset: 0; z-index: 600; background: rgba(15,25,40,0.4); }
.gg-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(78vw, 300px); background: #fff; border-right: 1px solid #E7EAEE; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 0 12px; animation: gg-drawer-in 0.18s ease-out; }
@keyframes gg-drawer-in { from { transform: translateX(-24px); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .gg-drawer { animation: none; } }
.gg-drawer-head { padding: 8px 18px 14px; border-bottom: 1px solid #EEF1F4; }
.gg-drawer-head img { height: 34px; }
.gg-drawer-item { display: block; width: 100%; text-align: left; padding: 16px 20px; font-size: 17px; font-weight: 800; color: #1A222E; text-decoration: none; border-radius: 0; }
.gg-drawer-item:active { background: #F0F3F6; }
/* square the leftovers */
.gg-card, .gg-tile, .gg-sheet, .gg-picklist, .gg-noteinput { border-radius: 8px; }
.gg-sheet { border-radius: 0; }
.gg-mini { border-radius: 6px; border: 0; }
/* content pages clear the fixed chrome */
.gg-shell { padding-top: calc(66px + env(safe-area-inset-top)); }
#app.has-dock .gg-shell { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
#app.map-bleed .gg-shell { padding: 0; }

/* identity + address infra + export + backflip */
.gg-idrow { display: flex; gap: 10px; padding: 10px 0 2px; }
.gg-idinput { flex: 1; min-width: 0; border: 1.5px solid #DBE1E8; border-radius: 8px; padding: 12px 13px; font: inherit; font-size: 16px; font-weight: 700; color: #1A222E; background: #fff; }
.gg-idinput::placeholder { color: #9AA6B4; font-weight: 600; }
.gg-idinput:focus-visible { outline: 2px solid #78C048; outline-offset: 1px; }
.gg-addrbar { position: fixed; left: 0; right: 0; bottom: calc(120px + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-top: 1px solid #E7EAEE; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.gg-addrbar .gg-idinput { flex: 1 1 180px; }
.gg-gpsbtn { flex: none; border: 1.5px solid #78C048; color: #2E5D14; background: #F2FAEA; border-radius: 8px; padding: 0 14px; font-size: 14.5px; font-weight: 800; min-height: 46px; }
.gg-gpsbtn:active { background: #E4F4D4; }
.gg-addrstatus { flex-basis: 100%; font-size: 12.5px; font-weight: 700; color: #8A6D1F; min-height: 0; }
#app.map-bleed .gg-pickfield { bottom: calc(58px + env(safe-area-inset-bottom)); }
.gg-exportcsv { margin-top: 14px; border: 1.5px solid #DBE1E8; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 800; color: #1A222E; background: #fff; }
.gg-exportcsv:active { background: #F0F3F6; }
/* Backflip — axis FIXED (spins about the cart's own center via fill-box origin),
   currently DISABLED per Lucas. Re-enable by adding class .gg-flip-on to .gg-scene. */
.gg-scene[data-phase="out"].gg-flip-on .gg-scene-cart {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: gg-backflip-center 1.1s cubic-bezier(0.4, 1.2, 0.6, 1) forwards;
}
@keyframes gg-backflip-center {
  0%   { transform: translate(140px, 150px) scale(.66) rotate(0); }
  45%  { transform: translate(200px, 140px) scale(.76) rotate(-200deg); }
  75%  { transform: translate(235px, 175px) scale(.8) rotate(-345deg); }
  100% { transform: translate(250px, 188px) scale(.82) rotate(-360deg); }
}

/* ACTIVE roll-out: rev the engine, drive off right — then putter back across
   from the left every few seconds, little lightning bolts trailing (electric!). */
.gg-scene[data-phase="out"] .gg-scene-cart {
  transition: none;
  animation: gg-exit 2.4s cubic-bezier(0.45, 0, 0.65, 1) forwards,
             gg-driveby 5.4s linear 2.4s infinite;
}
@keyframes gg-exit {
  0%   { transform: translate(140px, 150px) scale(.66); }
  26%  { transform: translate(250px, 188px) scale(.82); }
  32%  { transform: translate(247px, 188px) scale(.82); }  /* rev */
  38%  { transform: translate(253px, 188px) scale(.82); }
  44%  { transform: translate(247px, 188px) scale(.82); }
  50%  { transform: translate(253px, 188px) scale(.82); }
  100% { transform: translate(650px, 186px) scale(.82); }
}
@keyframes gg-driveby {
  0%, 12% { transform: translate(-190px, 188px) scale(.82); }
  24%  { transform: translate(-45px, 186px) scale(.82); }
  36%  { transform: translate(95px, 188px) scale(.82); }
  48%  { transform: translate(240px, 186px) scale(.82); }
  60%  { transform: translate(385px, 188px) scale(.82); }
  72%  { transform: translate(530px, 186px) scale(.82); }
  82%, 100% { transform: translate(660px, 188px) scale(.82); }
}
.gg-cartdraw .putter { opacity: 0; fill: #78C048; transform-box: fill-box; transform-origin: center; }
.gg-scene[data-phase="out"] .gg-scene-cart .putter { animation: gg-putter 0.8s ease-out infinite; }
.gg-scene[data-phase="out"] .gg-scene-cart .putter.p2 { animation-delay: 0.4s; }
@keyframes gg-putter {
  0%, 100% { opacity: 0; transform: translate(2px, 0) scale(0.5); }
  35% { opacity: 1; transform: translate(-7px, 3px) scale(1); }
  70% { opacity: 0; transform: translate(-16px, 6px) scale(0.65); }
}
@media (prefers-reduced-motion: reduce) {
  .gg-scene[data-phase="out"] .gg-scene-cart { animation: none; transform: translate(250px, 188px) scale(.82); }
  .gg-scene[data-phase="out"] .gg-scene-cart .putter { animation: none; opacity: 0; }
}

/* zoom-style docked driver bar with honest routed ETA */
.gg-driverbar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); bottom: 0 !important; }
.db-top { display: flex; align-items: center; gap: 12px; padding: 2px 0 8px; border-bottom: 1px solid #EEF1F4; }
.db-title { margin: 0; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 19px; font-weight: 800; color: #1A222E; flex: 1; }
.gg-eta { font-family: 'JetBrains Mono', monospace; font-size: 19px; font-weight: 700; color: #2E5D14; background: #EAF6DE; padding: 4px 12px; border-radius: 6px; }
.db-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.db-avatar { width: 46px; height: 46px; border-radius: 8px; background: #1850A0; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.db-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.db-who b { font-size: 17px; color: #1A222E; }
.db-who span { font-size: 13px; font-weight: 700; color: #8A97A6; }
.gg-plate { font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: 0.06em; background: #1850A0; color: #fff; border: 2px solid #123A78; border-radius: 5px; padding: 6px 10px; }
.db-actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid #EEF1F4; padding-top: 10px; }
.db-act { font-size: 14.5px; font-weight: 800; color: #B3261E; padding: 8px 10px; border-radius: 6px; }
.db-act:active { background: #FBEDEC; }
.db-note { flex: 1; font-size: 11.5px; font-weight: 700; color: #9AA6B4; text-align: right; }

/* contact & chat */
.db-contact { flex: 1; min-height: 48px; border-radius: 8px; background: #1850A0; color: #fff; font-size: 15.5px; font-weight: 800; }
.db-contact:active { filter: brightness(0.92); }
.gg-chatsheet { display: flex; flex-direction: column; max-height: 74vh; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.gg-chathead { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #EEF1F4; }
.gg-callbtn { flex: none; text-decoration: none; border: 1.5px solid #78C048; background: #F2FAEA; color: #2E5D14; font-size: 14.5px; font-weight: 800; padding: 10px 14px; border-radius: 8px; }
.gg-callbtn:active { background: #E4F4D4; }
.gg-chatthread { flex: 1; overflow-y: auto; min-height: 160px; max-height: 40vh; padding: 12px 2px; display: flex; flex-direction: column; gap: 8px; }
.gg-chatempty { color: #8A97A6; font-size: 14px; font-weight: 700; text-align: center; margin: auto 0; }
.gg-msg { max-width: 78%; padding: 10px 14px; font-size: 15.5px; font-weight: 600; line-height: 1.35; border-radius: 10px; }
.gg-msg.me { align-self: flex-end; background: #1850A0; color: #fff; border-bottom-right-radius: 3px; }
.gg-msg.them { align-self: flex-start; background: #F0F3F6; color: #1A222E; border-bottom-left-radius: 3px; }
.gg-chatbar { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid #EEF1F4; }
.gg-chatsend { flex: none; background: #78C048; color: #14310E; font-weight: 800; font-size: 15.5px; padding: 0 18px; border-radius: 8px; min-height: 46px; }
.gg-chatsend:active { filter: brightness(0.93); }
.gg-pin { filter: drop-shadow(0 2px 3px rgba(16,24,38,0.18)); }
.gg-pin svg { display: block; }
/* live search suggestions: open UPWARD above the docked bar, maps-app style */
.gg-addrbar { position: fixed; }
.gg-suggest { position: absolute; left: 0; right: 0; bottom: 100%; background: #fff; border-top: 1px solid #E7EAEE; border-bottom: 1px solid #E7EAEE; box-shadow: 0 -12px 28px rgba(16,24,38,0.10); max-height: 42vh; overflow-y: auto; }
.sg-row { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 12px 18px; border-bottom: 1px solid #F0F3F6; }
.sg-row:active { background: #F0F3F6; }
.sg-row b { font-size: 16px; color: #1A222E; }
.sg-row span { font-size: 12.5px; font-weight: 700; color: #8A97A6; }
.sg-empty { padding: 14px 18px; font-size: 14px; font-weight: 700; color: #8A97A6; }
.db-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
/* search bar docks right on the action bar; map fills everything above it */
#app.map-bleed .gg-addrbar { bottom: calc(58px + env(safe-area-inset-bottom)); }
#app.map-bleed .gg-pickfield { bottom: calc(126px + env(safe-area-inset-bottom)); }
.gg-addrbar .gg-idinput { font-size: 15px; font-weight: 600; }

/* Safari-proof: the map on map screens is ALWAYS the full viewport — longhand,
   max priority, no shorthand parsing quirks, beats any competing rule. */
#app.map-bleed .gg-stage .gg-homemap,
#app.map-bleed .gg-homemap {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  min-height: 0 !important; border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
}
#app.map-bleed .gg-shell { min-height: 100vh; min-height: 100dvh; }
.gg-addrbar .gg-idinput { font-size: 14px; }

/* the map backdrop: absolute child of the fixed app frame — engine-proof fullscreen */
#app.map-bleed { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.gg-mapback { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 0; }
.gg-mapback .gg-homemap { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; }
#app.map-bleed .gg-shell { position: relative; z-index: 1; pointer-events: none; }
#app.map-bleed .gg-shell * { pointer-events: auto; }
/* the [hidden] attribute must ALWAYS win — author display rules were defeating it */
[hidden] { display: none !important; }

/* THE WHITE RECTANGLE DIES: the search bar container is fully transparent —
   the input floats on tiles as a pill; the map owns every pixel around it. */
#app.map-bleed .gg-addrbar { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 14px 12px !important; }
#app.map-bleed .gg-addrbar .gg-idinput { background: #fff; box-shadow: 0 4px 16px rgba(16,24,38,0.18); border: 1px solid rgba(16,24,38,0.08); min-height: 50px; }
#app.map-bleed .gg-gpsbtn { box-shadow: 0 4px 14px rgba(16,24,38,0.16); }
.gg-addrstatus:empty { display: none !important; }
#app.map-bleed .gg-addrstatus { background: #fff; border-radius: 8px; padding: 6px 10px; box-shadow: 0 3px 10px rgba(16,24,38,0.14); }
#app.map-bleed .gg-suggest { border-radius: 12px 12px 0 0; bottom: calc(100% + 6px); left: 14px; right: 14px; }
#app.map-bleed .gg-pickfield:not([hidden]) { border-radius: 12px; left: 14px; right: 14px; width: auto; box-shadow: 0 4px 16px rgba(16,24,38,0.16); border: 1px solid rgba(16,24,38,0.08); bottom: calc(132px + env(safe-area-inset-bottom)); }
/* no engine-side zooming: 16px inputs kill iOS focus-zoom; manipulation kills
   double-tap zoom on controls (the viewport meta is the hard lock) */
input, textarea, select { font-size: 16px !important; }
button, a, .gg-tile, .gg-dockbar, .gg-row-sm { touch-action: manipulation; }

/* ---------- the trip arc: approach, in-ride dark, tips, reactions, arrival ---------- */
.gg-approach { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; margin-inline: auto; width: max-content; z-index: 200; background: #16233A; color: #fff; font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(10,16,28,0.4); animation: gg-approach-in 0.3s ease-out; white-space: normal; max-width: min(92vw, 420px); text-align: center; line-height: 1.35; }
@keyframes gg-approach-in { from { transform: translateY(-14px); opacity: 0; } }
/* in-ride: the world dims ~25% — you're aboard */
#app.in-ride .gg-mapback { filter: brightness(0.74) saturate(0.92); }
#app.in-ride .gg-hstrip { background: #16233A; border-bottom-color: #23324D; }
#app.in-ride .gg-hstrip .gg-htitle, #app.in-ride .gg-hbtn { color: #F2F5FA; }
.gg-driverbar.dark { background: #16233A; border-top-color: #23324D; }
.gg-driverbar.dark .db-title, .gg-driverbar.dark .db-who b { color: #F2F5FA; }
.gg-driverbar.dark .db-who span { color: #93A5C4; }
.gg-driverbar.dark .db-top, .gg-driverbar.dark .db-actions { border-color: #23324D; }
.db-contact.tip { background: #78C048; color: #14310E; }
.db-act.ok { color: #2E5D14; }
/* reactions */
.gg-reactrow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #EEF1F4; }
.gg-driverbar.dark .gg-reactrow { border-color: #23324D; }
.rr-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8A97A6; margin-right: 2px; }
.gg-react { font-size: 24px; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; }
.gg-react:active { transform: scale(1.25); }
.gg-driverbar.dark .gg-react:active { background: #1E2E4A; }
.gg-float-emoji { position: fixed; bottom: 220px; z-index: 300; font-size: 30px; pointer-events: none; animation: gg-float-up 1.3s ease-out forwards; }
@keyframes gg-float-up { to { transform: translateY(-160px) scale(1.6); opacity: 0; } }
/* arrival */
.gg-arrivedsub { margin: 8px 0 4px; font-size: 15.5px; font-weight: 700; color: #4A5A70; }
.gg-milestone { margin: 8px 0; background: #EAF6DE; border: 1.5px solid #9BD26B; color: #2E5D14; font-weight: 800; font-size: 15px; padding: 12px 14px; border-radius: 10px; animation: gg-approach-in 0.35s ease-out; }
.gg-confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 400; border-radius: 2px; pointer-events: none; animation: gg-confetti-fall linear forwards; }
@keyframes gg-confetti-fall { to { transform: translateY(105vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .gg-confetti, .gg-float-emoji { display: none; } .gg-approach { animation: none; } }
/* tip sheet */
.gg-tipsheet { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.gg-tipnote { margin: 10px 2px; font-size: 13.5px; font-weight: 700; color: #4A5A70; }
.gg-tiprow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 58px; padding: 10px 14px; border: 1.5px solid #E2E9F2; border-radius: 10px; margin-bottom: 8px; }
.gg-tiprow b { font-size: 16px; color: #1A222E; min-width: 86px; }
.gg-tiprow span { flex: 1; font-size: 14px; font-weight: 700; color: #4A5A70; }
.gg-tiprow .tr-aux { flex: none; color: #1850A0; font-weight: 800; font-size: 13px; }
.gg-tiprow:active { background: #F0F3F6; }
.gg-tiprow.card { border-style: dashed; }
.gg-paychip { border: 1.5px solid #DBE1E8; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 800; color: #4A5A70; margin: 4px 6px 0 0; }
.gg-paychip.on { background: #1850A0; color: #fff; border-color: #1850A0; }

/* cancel: the confirm sheet + the full-screen moment */
.gg-cancelsheet { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
.cs-title { margin: 4px 0 4px; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 22px; font-weight: 800; color: #1A222E; }
.cs-sub { margin: 0 0 16px; font-size: 14.5px; font-weight: 700; color: #6B7A90; }
.cs-keep { border-radius: 10px !important; margin-bottom: 10px; }
.cs-yes { display: block; width: 100%; min-height: 50px; font-size: 15.5px; font-weight: 800; color: #B3261E; border-radius: 10px; }
.cs-yes:active { background: #FBEDEC; }
.gg-cancelmoment { position: fixed; inset: 0; z-index: 2000; background: #16233A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; animation: gg-cm-in 0.3s ease-out; transition: opacity 0.35s; }
.gg-cancelmoment.is-leaving { opacity: 0; }
.gg-cancelmoment h1 { margin: 0; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 38px; font-weight: 800; color: #fff; line-height: 1.1; }
.gg-cancelmoment p { margin: 0; font-size: 15.5px; font-weight: 700; color: #93A5C4; }
.gg-cancelmoment .cm-cart { height: 64px; transform: scaleX(-1); animation: gg-cm-driveaway 1.9s cubic-bezier(0.5, 0, 0.75, 1) forwards; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4)); }
@keyframes gg-cm-in { from { opacity: 0; } }
@keyframes gg-cm-driveaway { 0% { transform: scaleX(-1) translateX(-40vw); } 25% { transform: scaleX(-1) translateX(0); } 55% { transform: scaleX(-1) translateX(0); } 100% { transform: scaleX(-1) translateX(60vw); } }
@media (prefers-reduced-motion: reduce) { .gg-cancelmoment .cm-cart { animation: none; } .gg-cancelmoment { animation: none; transition: none; } }
.gg-tipchips { display: flex; gap: 8px; margin: 12px 0 10px; }
.gg-tipchips .gg-paychip { flex: 1; text-align: center; font-size: 16px; min-height: 46px; margin: 0; }
.gg-cardfields { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gg-tipmoment { background: #1E3A16; }
.gg-tipmoment .tm-heart { font-size: 64px; animation: gg-heart-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes gg-heart-pop { from { transform: scale(0.2); } }
.gg-react { font-size: 22px; width: 42px; height: 42px; }
@media (prefers-reduced-motion: reduce) { .gg-tipmoment .tm-heart { animation: none; } }

/* sheet primary buttons: full-width solid — never shrink-wrapped */
.cs-keep { position: static !important; display: block; width: 100%; min-height: 54px; }

/* driver profile sheet */
.db-avatar.clickable { cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #78C048; }
.db-avatar.clickable:active { transform: scale(0.93); }
.gg-driversheet { max-height: 82vh; overflow-y: auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.dp-head { display: flex; gap: 14px; align-items: center; }
.dp-photo { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex: none; background: #1850A0; color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.dp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-id { display: flex; flex-direction: column; gap: 2px; }
.dp-id b { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 22px; color: #1A222E; }
.dp-id span { font-size: 13.5px; font-weight: 700; color: #6B7A90; }
.dp-since { color: #8A97A6 !important; }
.dp-stats { display: flex; gap: 10px; margin: 14px 0 4px; }
.dp-stats span { flex: 1; background: #F2F7FC; border-radius: 10px; padding: 10px 8px; text-align: center; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #6B7A90; }
.dp-stats b { display: block; font-size: 17px; color: #1A222E; }
.dp-bio { margin: 10px 0 2px; font-size: 15px; font-weight: 600; line-height: 1.5; color: #33415A; }
.dp-h { margin: 18px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8A97A6; }
.dp-emoji { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-tally { background: #F2F7FC; border-radius: 999px; padding: 7px 13px; font-size: 16px; font-weight: 700; color: #33415A; }
.dp-list { display: flex; flex-direction: column; gap: 2px; }
.dp-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid #EEF1F4; font-size: 14px; }
.dp-row b { color: #1A222E; }
.dp-row span { color: #8A97A6; font-weight: 600; flex: 1; }
.dp-row .dp-amt { flex: none; color: #2E5D14; font-weight: 800; }
.dp-quote { margin: 0; padding: 8px 0; font-size: 14.5px; font-weight: 600; color: #33415A; border-bottom: 1px solid #EEF1F4; }

/* ---------- driver lane parity ---------- */
.gg-shell-inner { padding: 4px 2px; }
.gg-kicker-line { font-size: 12px; letter-spacing: 0.18em; font-weight: 800; color: #1850A0; margin: 2px 0 6px; }
.gg-chargechip { flex: none; font-weight: 700; font-size: 14px; color: #2E5D14; background: #EAF6DE; border-radius: 8px; padding: 6px 10px; }
.gg-chargechip.low { color: #8A6D1F; background: #FCF3DC; }
.gg-queuepanel { max-height: 46vh; overflow-y: auto; bottom: 0 !important; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.gg-qcard { border: 1.5px solid #E2E9F2; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.q-stats { display: flex; gap: 16px; font-size: 13px; font-weight: 700; color: #6B7A90; }
.q-stats b { font-size: 18px; color: #1A222E; }
.q-route { font-size: 15.5px; font-weight: 800; color: #1A222E; margin: 6px 0 10px; }
.gg-qclaim { display: block; width: 100%; min-height: 46px; background: #78C048; color: #14310E; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 16px; font-weight: 800; border-radius: 8px; }
.gg-qclaim:active { filter: brightness(0.93); }
.gg-conflictbar { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 90; background: #FBEDEC; border: 1.5px solid #E5A19C; color: #7C221C; font-size: 14px; font-weight: 700; padding: 12px 14px; border-radius: 10px; }
#app.map-bleed .gg-shell.map-mode { pointer-events: none; }
#app.map-bleed .gg-shell.map-mode * { pointer-events: auto; }
/* driver bars stack above the dock action — never behind it */
.gg-driverbar.above-dock { bottom: calc(58px + env(safe-area-inset-bottom)) !important; padding-bottom: 12px; }
.gg-drv-rows { margin-top: 14px; border: 1.5px solid #E7EAEE; border-radius: 10px; padding: 2px 14px; background: #fff; }

/* live-trip presentation layer */
.gg-recenter { position: absolute; right: 12px; top: calc(64px + env(safe-area-inset-top)); z-index: 30; width: 46px; height: 46px; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(16,24,38,0.18); font-size: 22px; color: #1850A0; display: grid; place-items: center; }
.gg-recenter:active { transform: scale(0.92); }
.gg-turnchip { position: absolute; top: calc(64px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 25; background: #16233A; color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(10,16,28,0.35); white-space: nowrap; max-width: 86vw; overflow: hidden; text-overflow: ellipsis; }
.gg-eta.now { background: #78C048; color: #14310E; animation: gg-lp 1.4s infinite; }
/* overlays live above tiles, always */
.gg-turnchip { z-index: 650; }
.gg-recenter { z-index: 660; }
/* the approach banner sits BELOW the turn hint — never on top of it */
.gg-approach { top: calc(118px + env(safe-area-inset-top)); }

/* ---------- operations desk (admin) ---------- */
.ops-app { background: #FBFCFD; min-height: 100vh; }
.ops-shell { padding: calc(66px + env(safe-area-inset-top)) 18px 30px; max-width: 1480px; margin: 0 auto; }
.ops-grid { display: grid; grid-template-columns: minmax(320px, 44%) minmax(0, 1fr); gap: 18px; align-items: start; position: relative; }
.ops-mappanel { position: relative; height: min(72vh, 760px); border: 1px solid #E2E9F2; border-radius: 8px; overflow: hidden; }
.ops-mappanel .gg-homemap { position: absolute !important; inset: 0; border-radius: 0; border: 0; box-shadow: none; min-height: 0; }
.ops-main { min-width: 0; }
.ops-main.solo { max-width: 760px; }
.ops-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ops-tabs { display: flex; gap: 6px; }
.ops-tab { border: 1.5px solid #DBE1E8; border-radius: 6px; padding: 8px 16px; font-size: 14px; font-weight: 800; color: #4A5A70; background: #fff; }
.ops-tab.on { background: #1850A0; border-color: #1850A0; color: #fff; }
.gg-exportcsv { margin-top: 0; margin-left: auto; }
.ops-kpis { margin: 0 0 12px; }
.ops-tablewrap { overflow-x: auto; border: 1px solid #E2E9F2; border-radius: 8px; background: #fff; }
.ops-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ops-table th { text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A97A6; font-weight: 800; padding: 10px 12px; border-bottom: 1px solid #E2E9F2; }
.ops-table td { padding: 11px 12px; border-bottom: 1px solid #F0F3F6; font-size: 14px; color: #1A222E; font-weight: 600; }
.ops-table tbody tr { cursor: pointer; }
.ops-table tbody tr:hover { background: #F5F8FB; }
.ops-table tbody tr.sel { background: #EDF3FA; }
.ops-state { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; border-radius: 5px; padding: 3px 9px; }
.ops-state.open { background: #EAF6DE; color: #2E5D14; }
.ops-state.live { background: #E4EDFA; color: #16407E; }
.ops-state.done { background: #F0F3F6; color: #6B7A90; }
.ops-record { position: fixed; top: calc(56px + env(safe-area-inset-top)); right: 0; bottom: 0; width: min(440px, 92vw); background: #fff; border-left: 1px solid #E2E9F2; box-shadow: -14px 0 40px rgba(16,24,38,0.10); padding: 16px 18px; overflow-y: auto; z-index: 80; }
.ops-rechead { display: flex; align-items: center; justify-content: space-between; }
.ops-rechead b { font-size: 18px; }
.ops-recsub { font-size: 13px; font-weight: 700; color: #6B7A90; margin: 4px 0 14px; }
@media (max-width: 980px) {
  .ops-grid { grid-template-columns: 1fr; }
  .ops-mappanel { height: 38vh; }
}
.gg-sortrow { display: flex; gap: 8px; margin-bottom: 10px; }

/* ---------- v59: star reviews (primary post-ride voice; reactions secondary) ---------- */
.gg-review { padding: 10px 0 4px; border-top: 1px solid #EEF1F4; }
.gg-driverbar.dark .gg-review { border-color: #23324D; }
.gg-stars { display: flex; gap: 6px; padding: 4px 0 2px; }
.gg-star { font-size: 30px; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; color: #D5DFEB; background: transparent; border: 0; line-height: 1; }
.gg-star.on { color: #FFB92E; }
.gg-star:active { transform: scale(1.2); }
.gg-reviewtail { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.gg-reviewsend { border: 0; border-radius: 8px; background: #78C048; color: #10331B; font: inherit; font-size: 15px; font-weight: 800; padding: 12px 18px; min-height: 46px; }
.gg-reviewdone { font-size: 15px; font-weight: 800; color: #2E5D14; margin: 8px 0 4px; }
.gg-ridestars { color: #FFB92E; font-size: 15px; font-weight: 800; letter-spacing: 0.05em; white-space: nowrap; }
.gg-ratesheet .gg-review { border-top: 0; }

/* ops board: segmentation + canceled + low-rating flags */
.ops-state.canceled { background: #FBEAE8; color: #8C2B23; }
.ops-secthead td { padding: 12px 10px 5px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #8A97A6; border-bottom: 1px solid #E7ECF2; background: #FAFBFD; }
.ops-flagbar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; background: #FFF7E8; border: 1px solid #F1DFB4; border-radius: 10px; padding: 10px 14px; margin: 10px 0 2px; font-size: 13.5px; font-weight: 700; color: #6B4E0C; }
.ops-flagbar b { color: #8A5A00; }
.ops-flagbar .of-item { color: #6B4E0C; }

/* driver queue: who's asking */
.q-rider { font-size: 13px; font-weight: 700; color: #6B7A90; margin: 2px 0 8px; }
/* rides rows: route owns the first line; rate/tip/code sit on their own line */
.gg-confirmrow.ride { flex-wrap: wrap; row-gap: 8px; }
.gg-confirmrow.ride .cv { flex-basis: 100%; }

/* ---------- v62: Aaron call fixes ---------- */
/* numeric party buttons (one tap, no stepper) */
.gg-partybtns { display: flex; gap: 10px; }
.gg-partybtn { flex: 1; min-height: 58px; border: 1.5px solid #D5DFEB; border-radius: 10px; background: #fff; font-size: 24px; font-weight: 800; color: #1A222E; }
.gg-partybtn.on { background: #78C048; border-color: #5EA332; color: #10331B; }
.gg-partybtn:active { transform: scale(0.96); }
.gg-partycaption { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #6B7A90; text-align: center; }
.gg-partycaption b { color: #1A222E; }

/* cart tiles: status color coding (left edge tells the story at a glance) */
.gg-carttile { border-left: 5px solid #78C048; }
.gg-carttile.is-active { border-left-color: #1850A0; opacity: 0.82; }
.gg-carttile.is-charging { border-left-color: #8A97A6; opacity: 0.82; }
.gg-carttile.is-oos { border-left-color: #B3261E; opacity: 0.82; }

/* red variant of the banner toast (outside-area / cart-unavailable) */
.gg-approach.bad { background: #FBEAE8; color: #6B1812; border: 1px solid #EBC7C2; }

/* ---------- service area: upload → review → publish ----------
   The review has one job: let a non-technical owner see what a boundary change
   would DO before it does it. Consequence first, colour-coded map second,
   caveats third, decision last. */
.sa-sub { margin: 2px 0 10px; color: var(--ink-2, #5b5b5b); font-size: 14px; }
.sa-current { margin-bottom: 22px; }
.sa-currenthead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-currenthead b { font-size: 17px; }

.sa-upload { border-top: 1px solid var(--rule, #e4e4e4); padding-top: 18px; margin-top: 4px; }
.sa-upload h4, .sa-history h4 { margin: 0 0 6px; font-size: 15px; letter-spacing: .01em; }
.sa-upload .gg-tile { margin-top: 12px; }

/* Consequence lines. The alarming one is loud on purpose — losing coverage where
   people actually get picked up is the mistake this whole screen exists to catch. */
.sa-alarm {
  background: #FDECEA; border-left: 4px solid #D93025; color: #7A1C13;
  padding: 11px 14px; border-radius: 8px; margin: 0 0 14px; font-weight: 600; line-height: 1.45;
}
.sa-ok {
  background: #EAF6EC; border-left: 4px solid #28A745; color: #1B5E2A;
  padding: 11px 14px; border-radius: 8px; margin: 0 0 14px; line-height: 1.45;
}
.sa-warn { color: #7A5B00; background: #FFF7E0; border-radius: 7px; padding: 8px 12px; margin: 8px 0 0; line-height: 1.45; }

.sa-figures { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.sa-figures > span { display: flex; flex-direction: column; gap: 1px; background: var(--card-2, #f5f5f4); border-radius: 9px; padding: 9px 14px; min-width: 84px; }
.sa-figures b { font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sa-figures > span > span:last-child { font-size: 12px; color: var(--ink-2, #5b5b5b); }
.sa-figures .gain b { color: #1B7A34; }
.sa-figures .loss b { color: #C5221F; }

.gg-boundarymap { width: 100%; border-radius: 12px; overflow: hidden; margin: 4px 0 10px; }
.sa-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ink-2, #5b5b5b); margin: 0 0 16px; }
.sa-legend .k { width: 14px; height: 11px; border-radius: 3px; display: inline-block; }
.sa-legend .k.gain { background: rgba(40,167,69,.45); border: 1px solid #0B6B3A; }
.sa-legend .k.loss { background: rgba(217,48,37,.42); border: 1px solid #B3261E; }
.sa-legend .k.old  { background: transparent; border: 1.5px dashed #7a7a7a; }

.sa-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.sa-actions .gg-tile { flex: 0 0 auto; width: auto; min-width: 160px; margin: 0; }
.sa-history { border-top: 1px solid var(--rule, #e4e4e4); padding-top: 18px; margin-top: 22px; }
.sa-histrow { align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-revert { border: 1.5px solid #D5DfEB; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--cobalt, #1850A0); background: #fff; min-height: 34px; cursor: pointer; }
.sa-revert:disabled { opacity: .5; cursor: default; }

/* The rider's own words, delivered to the driver at the moment of pickup. Quiet
   but unmissable — this is how they get found on a dark street. */
.db-ridernote { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 0; padding: 9px 12px; background: rgba(255,255,255,.10); border-left: 3px solid var(--lime, #C6F04E); border-radius: 8px; }
.gg-driverbar:not(.dark) .db-ridernote { background: #F4F7EE; border-left-color: #7BA428; }
.db-notelabel { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; opacity: .72; font-weight: 700; }
.db-notetext { font-size: 15px; line-height: 1.4; }

/* ---------- ride messages ----------
   The bubble states are the whole honesty story: Sending / Not sent, and
   nothing that claims the other person has READ anything, because nothing in
   the system knows that. */
.gg-msg.sending { opacity: .62; }
.gg-msg.failed { border: 1px solid #D93025; }
.gg-msg-state { display: block; font-size: 11px; opacity: .75; margin-top: 3px; letter-spacing: .02em; }
.gg-msg-retry { display: inline-block; margin-top: 5px; border: 0; background: transparent; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 700; color: #C5221F; text-decoration: underline; cursor: pointer; }
.gg-msg-gone { opacity: .6; font-size: 13px; }
.gg-chatclosed { margin: 0; padding: 12px 14px; text-align: center; color: var(--ink-2, #5b5b5b); font-size: 14px; line-height: 1.4; }
/* This channel reaches one person, who is driving. The footer says so. */
.gg-chatfoot { margin: 0; padding: 9px 14px 12px; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--ink-2, #5b5b5b); border-top: 1px solid var(--rule, #e4e4e4); }
.gg-911 { color: #C5221F; font-weight: 700; text-decoration: underline; }
.db-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; margin-left: 7px; padding: 0 5px; border-radius: 999px; background: #D93025; color: #fff; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* Driver quick replies: taps, never a keyboard. */
.db-quick { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.db-quickbtn { flex: 0 1 auto; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: inherit; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 38px; }
.gg-driverbar:not(.dark) .db-quickbtn { border-color: #D5DfEB; background: #fff; color: var(--cobalt, #1850A0); }
.db-quickbtn:disabled { opacity: .5; cursor: default; }
.db-quickhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; opacity: .72; font-weight: 700; }

/* ---------- private events: the inquiry pipeline ----------
   Two things decide these deals and both are visible here: how long someone has
   been waiting, and whether the fleet can serve the date. */
.ev-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.ev-chip { border: 1.5px solid #D5DfEB; background: #fff; color: var(--cobalt, #1850A0); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-transform: capitalize; }
.ev-chip.on { background: var(--cobalt, #1850A0); border-color: var(--cobalt, #1850A0); color: #fff; }

.ev-list { display: flex; flex-direction: column; gap: 9px; }
.ev-row { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; border: 1px solid var(--rule, #e4e4e4); border-radius: 11px; background: #fff; padding: 12px 14px; font: inherit; cursor: pointer; }
.ev-row:hover { border-color: #C3D2E6; }
.ev-rowtop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ev-rowtop b { font-size: 15.5px; }
.ev-rowsub { font-size: 13px; color: var(--ink-2, #5b5b5b); line-height: 1.4; }
.ev-rowsub.dim { font-size: 12px; opacity: .72; }
.ev-age { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2, #5b5b5b); }
/* A new inquiry left sitting is the one thing this screen should make loud. */
.ev-age.hot { color: #C5221F; font-weight: 800; }

.ev-headline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 14px; color: var(--ink-2, #5b5b5b); }
.ev-detail { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rule, #e4e4e4); border-radius: 11px; overflow: hidden; margin: 14px 0; }
.ev-drow { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--rule, #e4e4e4); font-size: 14px; }
.ev-drow:last-child { border-bottom: 0; }
.ev-drow > span { color: var(--ink-2, #5b5b5b); }
.ev-drow > b { text-align: right; }
.ev-freetext { display: flex; flex-direction: column; gap: 4px; background: var(--card-2, #f5f5f4); border-radius: 10px; padding: 11px 14px; margin: 0 0 14px; line-height: 1.45; }
.ev-freetext > span:first-child { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; opacity: .7; }

.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.ev-actions .sa-revert { text-transform: capitalize; }
.ev-actions .sa-revert.lost { color: #C5221F; border-color: #F0C9C6; }

.ev-notes { border-top: 1px solid var(--rule, #e4e4e4); padding-top: 16px; }
.ev-notes h4 { margin: 0 0 10px; font-size: 15px; }
.ev-note { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 9px; background: var(--card-2, #f5f5f4); margin-bottom: 7px; }
.ev-note.status { background: #EEF3FB; }
.ev-noteb { font-size: 14px; line-height: 1.4; }
.ev-notem { font-size: 11.5px; color: var(--ink-2, #5b5b5b); }
.ev-noteadd { display: flex; gap: 8px; margin-top: 10px; }
.ev-noteadd .gg-idinput { flex: 1 1 auto; }

/* ---------- public event-booking form ---------- */
.bk-head { text-align: center; padding: 30px 20px 8px; max-width: 640px; margin: 0 auto; }
.bk-head img { height: 54px; }
.bk-head h1 { margin: 14px 0 6px; font-size: 27px; line-height: 1.2; }
.bk-head p { margin: 0; color: var(--ink-2, #5b5b5b); line-height: 1.5; }
.bk-wrap { max-width: 640px; margin: 0 auto; padding: 14px 20px 60px; }
.bk-sec { border-top: 1px solid var(--rule, #e4e4e4); padding-top: 20px; margin-top: 22px; }
.bk-sec:first-child { border-top: 0; margin-top: 8px; }
.bk-sec h2 { margin: 0 0 14px; font-size: 18px; }
.bk-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.bk-label { font-size: 13px; font-weight: 700; color: var(--ink-2, #5b5b5b); }
.bk-hint { font-size: 12.5px; color: var(--ink-2, #5b5b5b); line-height: 1.45; }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .bk-two { grid-template-columns: 1fr; } }
.bk-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #5b5b5b 50%), linear-gradient(135deg, #5b5b5b 50%, transparent 50%); background-position: calc(100% - 19px) 51%, calc(100% - 14px) 51%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.bk-textarea { min-height: 96px; padding-top: 11px; font: inherit; resize: vertical; }
.bk-checks { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 16px; }
.bk-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.bk-toggle input { width: 20px; height: 20px; accent-color: var(--cobalt, #1850A0); }
.bk-foot { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-2, #5b5b5b); line-height: 1.5; }
.bk-done { text-align: center; padding: 30px 0; }
.bk-done h2 { font-size: 26px; margin: 0 0 10px; }
.bk-done p { line-height: 1.55; margin: 0 0 10px; }
.bk-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: .06em; background: var(--card-2, #f5f5f4); border-radius: 9px; padding: 9px 16px; margin: 4px 0 16px !important; }
/* A standalone hint paragraph between fields needs its own breathing room —
   inside .bk-field it inherits the label gap, but on its own it does not. */
.bk-sec > .bk-hint { margin: -6px 0 16px; }
/* Ops reading a ride's conversation — read-only, and visibly so. */
.ops-msg { display: flex; flex-direction: column; gap: 2px; padding: 7px 11px; border-radius: 9px; margin-bottom: 6px; background: #F2F5F9; }
.ops-msg.driver { background: #EEF6EE; }
.ops-msgwho { font-size: 11px; color: #8A97A6; font-weight: 700; }
.ops-msgbody { font-size: 13.5px; line-height: 1.4; }
.ops-msgbody i { color: #8A97A6; }
/* The live ETA chip carries words, not a number — it must not inherit the
   tabular-numeral treatment that makes a fabricated time look measured. */
.gg-eta:not(.num) { font-variant-numeric: normal; font-size: 14px; font-weight: 700; letter-spacing: .01em; }
/* Landing page */
.lp-cta { display: block; text-align: center; text-decoration: none; margin: 6px 0 18px; }
.lp-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.lp-links a { color: var(--cobalt, #1850A0); font-weight: 700; }
.lp-links span { opacity: .45; }

/* ---------- "I can't finish this run" ----------
   Deliberately quiet next to the primary action, and deliberately several steps
   deep: releasing a rider's ride should never be a brush of the screen. */
.db-release { display: block; width: 100%; margin: 12px 0 0; padding: 10px; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.62); text-decoration: underline; cursor: pointer; }
.gg-driverbar:not(.dark) .db-release { color: #8A97A6; }
.rl-sheet { padding: 22px 20px 24px; }
.rl-title { margin: 0 0 8px; font-size: 21px; }
.rl-what { margin: 0 0 14px; padding: 10px 13px; border-radius: 9px; background: #EEF3FB; color: #1B3A66; font-size: 14px; line-height: 1.45; }
.rl-why { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2, #5b5b5b); }
.rl-reasons { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.rl-reason { text-align: left; border: 1.5px solid #D5DfEB; background: #fff; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; }
.rl-reason.on { border-color: var(--cobalt, #1850A0); background: #EEF3FB; font-weight: 700; }
.rl-confirm:disabled { opacity: .45; }
.rl-cancel { display: block; width: 100%; margin-top: 10px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2, #5b5b5b); text-decoration: underline; cursor: pointer; padding: 10px; }
/* Terminal-outcome notice: same shape as the approach banner, calmer colour. */
.gg-approach.notice { background: #1F2A37; }
/* Report-a-problem sheet + the ops list */
.is-sheet { padding: 22px 20px 24px; }
.is-detail { min-height: 92px; padding-top: 11px; font: inherit; resize: vertical; }
.is-row { cursor: default; }
.is-row .sa-revert { align-self: flex-start; margin-top: 8px; }

/* ---------- cart days ---------- */
.cd-range { max-width: 420px; margin-bottom: 4px; }
.cd-cart { margin: 16px 0 0; }
.cd-carthead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.cd-carthead span { font-size: 13px; color: var(--ink-2, #5b5b5b); }
/* One column per day, sized to the range so a month fits on one line rather than
   wrapping two cells onto a second row and reading as a break in service. */
.cd-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.cd-cell { height: 22px; min-width: 4px; border-radius: 2px; background: #EDF0F4; border: 1px solid transparent; }
.cd-cell.on { background: #2F7D46; }
.cd-cell.unver { background: repeating-linear-gradient(45deg, #2F7D46, #2F7D46 3px, #8FBF9E 3px, #8FBF9E 6px); }
.cd-cell.capped { border-color: #C5221F; }
.k.cd-k { width: 14px; height: 12px; border-radius: 3px; background: #EDF0F4; display: inline-block; }
.k.cd-k.on { background: #2F7D46; }
.k.cd-k.unver { background: repeating-linear-gradient(45deg, #2F7D46, #2F7D46 3px, #8FBF9E 3px, #8FBF9E 6px); }

/* ---- sponsors ---- */
.sa-figures.dim > span { background: transparent; border: 1px solid #E3E7EC; padding: 7px 12px; }
.sa-figures.dim b { font-size: 16px; }
.sa-figures b.sp-bad { color: #C5221F; }

.sp-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  background: #EDF0F4; color: #4A5563; border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.sp-badge.active, .sp-badge.running { background: #E4F3E8; color: #1B5E2A; }
.sp-badge.draft { background: #FFF3D6; color: #7A5B00; }
.sp-badge.ended, .sp-badge.cancelled { background: #EDF0F4; color: #6B7684; }
.sp-badge.short { background: #FDECEA; color: #A3271B; }

/* The provenance line. Deliberately quiet but always present: a reader should be
   able to tell at a glance which numbers the system counted and which a person
   swore to, without having to ask. */
.sp-prov {
  font-size: 12.5px; color: var(--ink-2, #5b5b5b); line-height: 1.6;
  border-top: 1px solid #E3E7EC; padding-top: 10px; margin: 4px 0 14px;
}
.sp-chip {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 6px; margin-right: 3px;
}
.sp-chip.system   { background: #E7EEF9; color: #1B4A8A; }
.sp-chip.imported { background: #F0EAF7; color: #573887; }
.sp-chip.estimated{ background: #FFF3D6; color: #7A5B00; }
.sp-chip.attested { background: #E4F3E8; color: #1B5E2A; }

.sp-h4 { font-size: 14px; font-weight: 800; margin: 20px 0 8px; color: #1A222E; }
.sp-add { margin: 10px 0 4px; border: 1px solid #E3E7EC; border-radius: 10px; padding: 10px 14px; }
.sp-add > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: #2F5FA8; }
.sp-add > summary::marker { color: #9AA6B4; }
.sp-add .bk-two { margin-top: 10px; }

/* ---- driver sampling sheet ---- */
.sm-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; }
.sm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-row > span { font-weight: 700; font-size: 14.5px; color: #1A222E; }
.sm-count { max-width: 108px; text-align: right; }
/* A row action, not a page action: left-aligned and small, so it reads as "edit
   this line" rather than as the primary thing to do on the screen. */
.ev-row .sp-rowact { align-self: flex-start; margin-top: 8px; }

/* ---- the sponsor report: a document, not a dashboard ---- */
.rp-doc { max-width: 780px; }
.rp-state {
  border-radius: 8px; padding: 10px 14px; margin: 10px 0 16px;
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
.rp-state.draft  { background: #FFF7E0; color: #7A5B00; border-left: 4px solid #E0A800; }
.rp-state.frozen { background: #EDF2F9; color: #1B4A8A; border-left: 4px solid #2F5FA8; }
.rp-title { font-size: 26px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.01em; }
.rp-sub { color: var(--ink-2, #5b5b5b); font-size: 13.5px; margin: 0 0 18px; }

/* The estimate is set apart deliberately: it is the one number on the page that
   was modelled rather than counted, and it should not sit in the same visual
   run as the figures that were. */
.rp-est { border: 1.5px dashed #C9B37A; background: #FFFBF0; border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.rp-estnum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rp-estnum b { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: #6B5A25; }
.rp-estnum > span { font-size: 13px; color: #7A6A38; font-weight: 700; }
.rp-method { margin: 10px 0 6px; font-size: 13.5px; line-height: 1.6; color: #4A4330; }
.rp-methodmeta { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-2, #5b5b5b); }

.rp-insight { margin: 10px 0; }
.rp-insight b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: #4A5563; }
.rp-insight p { margin: 3px 0 0; line-height: 1.6; }

.rp-bars { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.rp-bar { display: grid; grid-template-columns: 76px 1fr 42px; align-items: center; gap: 10px; font-size: 12.5px; }
.rp-barlabel { color: var(--ink-2, #5b5b5b); }
.rp-bartrack { background: #EDF0F4; border-radius: 999px; height: 9px; overflow: hidden; }
.rp-barfill { display: block; height: 100%; background: #2F7D46; border-radius: 999px; }
.rp-barval { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.rp-zips { font-size: 12.5px; color: var(--ink-2, #5b5b5b); margin: 8px 0 0; line-height: 1.6; }

.rp-quote { margin: 12px 0; padding: 2px 0 2px 16px; border-left: 3px solid #78C048; }
.rp-quote p { margin: 0; font-size: 15px; line-height: 1.6; font-style: italic; }
.rp-quote cite { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2, #5b5b5b); font-style: normal; }

.rp-params { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.rp-help { display: block; font-size: 12px; color: var(--ink-2, #5b5b5b); line-height: 1.5; margin-top: 4px; }
.sp-h4 .sp-chip { vertical-align: middle; margin-left: 4px; }
/* Each caveat sits with the number, never in an appendix — a methodology in a
   footnote is functionally the 2019 report again. */
.rp-caveat { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: #6B5A25; }
.rp-prov {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 6px; vertical-align: middle;
}
.rp-prov.measure-this { background: #FDECEA; color: #A3271B; }
.rp-prov.estimate     { background: #FFF3D6; color: #7A5B00; }
.rp-prov.convention   { background: #EDF0F4; color: #4A5563; }
.rp-prov.legacy       { background: #F0EAF7; color: #573887; }
.rp-prov.operator     { background: #E4F3E8; color: #1B5E2A; }
/* A PIN shown once, on issue. Large and monospaced because it gets read aloud. */
.box-issued { display: block; }
.dp-pin { font: 700 26px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; margin-left: 4px; }
.box-issued p { margin: 6px 0 0; font-size: 12.5px; }

/* SMS consent. Deliberately plain and readable rather than tucked away — a
   disclosure someone cannot read is not consent, and small grey text is what
   carrier review flags. */
.gg-consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px;
  font-size: 12px; line-height: 1.55; color: #4A5563; cursor: pointer; }
.gg-consent .gg-check { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #2F7D46; }
.gg-consent a { color: #1B4A8A; text-decoration: underline; }
.dp-card { border: 1px solid #E3E7EC; border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.dp-card .dp-h { margin-top: 0; }
.gg-note.dim { color: #97A2B0; }

/* ── Landing call-to-action ───────────────────────────────────────────────
   The home screen used .gg-dockbar: a full-bleed green strip welded to the
   bottom edge. Edge-to-edge is right for "Next" inside a flow, where it reads
   as the floor of the step — but on the landing screen it reads as a system
   bar, not as the one thing you came here to press. This lifts it off the
   edge, rounds it, and gives it a shadow so it sits ON the map as an object. */
.gg-cta {
  position: fixed; left: 16px; right: 16px; z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 0; border-radius: 22px;
  background: linear-gradient(180deg, #83CC4F 0%, #6FB53F 100%);
  color: #12300C; text-align: left; cursor: pointer;
  font-family: 'Baloo 2', system-ui, sans-serif;
  box-shadow: 0 10px 24px rgba(20, 49, 14, 0.30), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.gg-cta:active { transform: translateY(2px); filter: brightness(0.95); box-shadow: 0 5px 14px rgba(20, 49, 14, 0.28); }
.gg-cta-ico { flex: none; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,0.34); display: grid; place-items: center; font-size: 23px; line-height: 1; }
.gg-cta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gg-cta-txt b { font-size: 21px; font-weight: 800; letter-spacing: 0.01em; }
.gg-cta-txt span { font-size: 13px; font-weight: 600; opacity: 0.78; }
.gg-cta-arrow { flex: none; font-size: 21px; font-weight: 800; opacity: 0.55; }

/* ── Review sheet: draggable ──────────────────────────────────────────────
   The review panel is tall (two places, party, name, phone, the full carrier
   consent disclosure) and it pushed the map into a squashed strip at the top.
   Rather than cut the panel down — every line of it is either load-bearing or
   carrier-mandated — the panel becomes a sheet you can pull DOWN out of the
   way to see the whole map, and push back up. */
.gg-shell.sheet-mode { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-height: calc(100dvh - 96px); padding-bottom: 10px; }
.gg-shell.sheet-mode .gg-stage { position: static; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.gg-shell.sheet-mode .gg-stage .gg-homemap { flex: 1; min-height: 220px; }
.gg-shell.sheet-mode .gg-panel { flex: none; }

.gg-dockpanel.gg-sheet { padding-top: 0; max-height: 62dvh; overflow-y: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.10); transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.gg-dockpanel.gg-sheet.dragging { transition: none; }
/* Down = collapsed: everything but the grab strip slides below the dock bar. */
.gg-dockpanel.gg-sheet.collapsed { transform: translateY(calc(100% - 34px)); overflow-y: hidden; }
.gg-grab { touch-action: none; position: sticky; top: 0; z-index: 2; display: block; width: 100%; padding: 9px 0 7px; border: 0; background: #fff; cursor: grab; border-radius: 18px 18px 0 0; }
.gg-grab:active { cursor: grabbing; }
.gg-grab::before { content: ''; display: block; width: 42px; height: 5px; margin: 0 auto; border-radius: 3px; background: #C8CFD8; transition: background 0.15s ease; }
.gg-grab:hover::before { background: #A9B3BF; }
.gg-sheet.collapsed .gg-grab::before { background: #78C048; }
@media (prefers-reduced-motion: reduce) { .gg-dockpanel.gg-sheet { transition: none; } }
