body.rider-mode {
  min-width: 320px;
  height: 100dvh;
  overflow: hidden;
  background: var(--ui-bg);
  color: var(--ui-text);
}

body.rider-mode #demo-root {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--ui-bg);
  color: var(--ui-text);
}

#demo-root .atlas-phone,
#demo-root .atlas-phone * { box-sizing: border-box; }

#demo-root .atlas-phone {
  --phone-shell: var(--ui-bg);
  --phone-header: var(--ui-surface);
  --phone-sheet: var(--ui-surface);
  --phone-card: var(--ui-surface);
  --phone-raised: var(--ui-raised);
  --phone-ink: var(--ui-text);
  --phone-muted: var(--ui-muted);
  --phone-line: var(--ui-line);
  --phone-accent: var(--ui-accent);
  --phone-accent-ink: var(--ui-accent-ink);
  --phone-accent-soft: color-mix(in srgb, var(--ui-accent) 14%, var(--ui-surface));
  --phone-positive: var(--ui-positive);
  --phone-warning: var(--ui-warning);
  --phone-danger: var(--ui-danger);
  --phone-shadow: var(--ui-shadow);
  --map-ground: var(--ui-map-ground);
  --map-block: var(--ui-map-land);
  --map-block-line: color-mix(in srgb, var(--ui-map-label) 18%, var(--ui-map-land));
  --map-road: var(--ui-map-road);
  --map-major: color-mix(in srgb, var(--ui-map-road) 82%, var(--ui-map-ground));
  --map-river: var(--ui-map-water);
  --map-river-bank: color-mix(in srgb, var(--ui-map-water) 42%, var(--ui-map-ground));
  --map-park: var(--ui-map-park);
  --map-label: var(--ui-map-label);
  position: relative;
  display: flex;
  width: min(100%, 480px);
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  background: var(--phone-shell);
  color: var(--phone-ink);
  font: 16px/1.48 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

#demo-root .atlas-phone { background-image: none; }

#demo-root .atlas-phone [hidden] { display: none !important; }
#demo-root .atlas-phone :is(button, input, select, textarea, summary) { max-width: 100%; font: inherit; }
#demo-root .atlas-phone :where(button) { color: inherit; cursor: pointer; touch-action: manipulation; }
#demo-root .atlas-phone :is(button, input, select, textarea, summary, [role="button"]):focus-visible {
  outline: 3px solid var(--phone-accent);
  outline-offset: 2px;
}

/* Compact brand bar and shared theme control. */
#demo-root .phone-head {
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  min-height: calc(64px + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 1px solid var(--phone-line);
  background: var(--phone-header);
}
#demo-root .phone-brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
#demo-root .phone-brand-mark {
  display: block;
  width: 36px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--phone-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
  overflow: visible;
}
#demo-root .phone-brand strong,
#demo-root .phone-brand small { display: block; white-space: nowrap; }
#demo-root .phone-brand strong { color: var(--phone-ink); font-size: 12px; font-weight: 720; letter-spacing: .16em; }
#demo-root .phone-brand small { margin-top: 3px; color: var(--phone-muted); font-size: 10px; letter-spacing: .1em; }
#demo-root .phone-prototype-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--phone-line) 54%, transparent); border-radius: 999px; color: var(--phone-muted); font-size: 10px; font-weight: 650; white-space: nowrap; }
#demo-root .phone-head-actions { display: flex; min-width: 0; align-items: center; gap: 8px; }
#demo-root .phone-rider-name {
  max-width: 92px;
  overflow: hidden;
  color: var(--phone-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#demo-root .phone-theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--ui-glass-line);
  border-radius: 11px;
  background: var(--ui-glass);
  color: var(--phone-ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#demo-root .phone-theme-toggle svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Original, local-only Northgate schematic map. */
#demo-root .phone-map-shell {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  min-height: 110px;
  overflow: hidden;
  background: var(--map-ground);
  touch-action: none;
  user-select: none;
}
#demo-root .phone-map-svg { display: block; width: 100%; height: 100%; min-height: 110px; overflow: hidden; touch-action: none; }
#demo-root .map-ground { fill: var(--map-ground); }
#demo-root .map-blocks rect { fill: var(--map-block); stroke: var(--map-block-line); stroke-width: 1; }
#demo-root .map-roads-minor path,
#demo-root .map-roads-major path,
#demo-root .map-bridges path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#demo-root .map-roads-minor path { stroke: var(--map-road); stroke-width: 4; }
#demo-root .map-roads-major path { stroke: var(--map-major); stroke-width: 9; }
#demo-root .map-river-bank { fill: none; stroke: var(--map-river-bank); stroke-width: 44; }
#demo-root .map-river { fill: none; stroke: var(--map-river); stroke-width: 34; }
#demo-root .map-park path:first-child { fill: var(--map-park); stroke: color-mix(in srgb, var(--map-park) 68%, var(--map-label)); stroke-width: 2; }
#demo-root .map-park path:not(:first-child),
#demo-root .map-park circle { fill: none; stroke: color-mix(in srgb, var(--map-park) 42%, var(--map-label)); stroke-width: 2; }
#demo-root .map-landmarks { fill: none; stroke: var(--map-label); stroke-width: 1.6; }
#demo-root .map-landmarks text { fill: var(--map-label); stroke: none; font: 700 8px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .55px; }
#demo-root .map-water-label,
#demo-root .map-park-label { fill: color-mix(in srgb, var(--map-label) 76%, transparent); stroke: none; font: 700 8px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 1px; }
#demo-root .map-route { display: none; fill: none; stroke: var(--ui-accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 11; opacity: .9; }
#demo-root .map-route.visible { display: block; }
#demo-root .phone-zone-marker { cursor: pointer; outline: none; }
#demo-root .phone-zone-marker .zone-marker-shadow { r: 22px; fill: color-mix(in srgb, var(--map-label) 9%, transparent); stroke: none; }
#demo-root .phone-zone-marker .zone-marker-ring { r: 11px; fill: var(--map-land); stroke: var(--ui-accent); stroke-width: 2; }
#demo-root .phone-zone-marker .zone-marker-core { r: 4px; fill: var(--ui-accent); stroke: var(--map-ground); stroke-width: 1.5; }
#demo-root .phone-zone-marker.selected .zone-marker-ring { fill: var(--ui-accent); stroke: var(--map-label); stroke-width: 2.5; }
#demo-root .phone-zone-marker.selected .zone-marker-core { fill: var(--ui-accent-ink); }
#demo-root .phone-zone-marker:focus-visible .zone-marker-ring { stroke: var(--ui-accent-ink); stroke-width: 5; }
#demo-root .zone-marker-label-bg { x: -44px; y: -39px; width: 88px; height: 20px; rx: 10px; fill: var(--ui-glass); stroke: var(--ui-glass-line); stroke-width: 1; }
#demo-root .zone-marker-label { fill: var(--map-label); stroke: none; font: 750 8px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .2px; text-anchor: middle; }
#demo-root .zone-marker-kind { fill: var(--map-label); stroke: none; font: 750 8px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .35px; text-anchor: middle; }
#demo-root .phone-map-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  max-width: calc(100% - 152px);
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--ui-glass-line);
  border-radius: 999px;
  background: var(--ui-glass);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--phone-ink) 10%, transparent);
  color: var(--map-label);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  font-size: 11px;
  font-weight: 750;
}
#demo-root .phone-map-label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#demo-root .phone-map-label-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--ui-accent); }
#demo-root .phone-map-controls {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
}
#demo-root .phone-map-controls > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--ui-glass-line);
  border-radius: 999px;
  background: var(--ui-glass);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--phone-ink) 10%, transparent);
  color: var(--map-label);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
#demo-root .phone-map-controls > summary::-webkit-details-marker { display: none; }
#demo-root .phone-map-controls > summary::after { content: "+"; color: var(--ui-accent); font-size: 14px; line-height: 1; }
#demo-root .phone-map-controls[open] > summary::after { content: "−"; }
#demo-root .phone-map-control-content {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--ui-glass-line) 72%, transparent);
  border-radius: 16px;
  background: var(--ui-glass);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--phone-ink) 12%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#demo-root .phone-map-controls:not([open]) > .phone-map-control-content { display: none; }
#demo-root .phone-map-controls[open] > .phone-map-control-content { display: grid; }
#demo-root .phone-map-tools { display: flex; gap: 4px; }
#demo-root .phone-map-tools button,
#demo-root .phone-map-pan button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ui-glass-line) 66%, transparent);
  border-radius: 13px;
  background: var(--ui-glass);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--phone-ink) 10%, transparent);
  color: var(--map-label);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
#demo-root .phone-map-tools button:hover,
#demo-root .phone-map-pan button:hover { background: var(--ui-raised); }
#demo-root .phone-map-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
  padding: 42px 12px 12px;
  background: linear-gradient(0deg, var(--ui-glass) 0%, color-mix(in srgb, var(--ui-glass) 78%, transparent) 58%, transparent 100%);
  pointer-events: none;
}
#demo-root .phone-map-targets { display: inline-flex; width: max-content; max-width: 100%; gap: 2px; padding: 3px; border: 1px solid color-mix(in srgb, var(--ui-glass-line) 72%, transparent); border-radius: 999px; background: var(--ui-glass); box-shadow: 0 4px 14px color-mix(in srgb, var(--phone-ink) 12%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: auto; }
#demo-root .phone-map-targets button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--map-label); font-size: 12px; font-weight: 700; white-space: nowrap; }
#demo-root .phone-map-targets button[aria-pressed="true"] { background: var(--ui-accent); color: var(--ui-accent-ink); }
#demo-root .phone-map-pan { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 2px; align-items: center; justify-items: center; pointer-events: auto; }
#demo-root .phone-map-pan button { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
#demo-root .phone-map-pan [data-phone-map-pan="up"] { grid-column: 2; grid-row: 1; }
#demo-root .phone-map-pan [data-phone-map-pan="left"] { grid-column: 1; grid-row: 2; }
#demo-root .phone-map-pan [data-phone-map-pan="right"] { grid-column: 3; grid-row: 2; }
#demo-root .phone-map-pan [data-phone-map-pan="down"] { grid-column: 2; grid-row: 2; }
#demo-root .phone-map-status { grid-column: 1 / -1; justify-self: start; max-width: min(100%, 390px); margin: 0; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--ui-glass-line) 68%, transparent); border-radius: 13px; background: var(--ui-glass); box-shadow: 0 4px 14px color-mix(in srgb, var(--phone-ink) 12%, transparent); color: var(--map-label); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }

/* Bottom sheet: the ride form can grow while preserving a visible map. */
#demo-root .phone-sheet {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 42dvh;
  min-height: 252px;
  max-height: calc(100% - 168px);
  flex-direction: column;
  margin-top: -16px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--phone-sheet);
  box-shadow: var(--phone-shadow);
  color: var(--phone-ink);
  transition: flex-basis .16s ease, max-height .16s ease;
}
#demo-root .sheet-expanded .phone-sheet { flex-basis: min(68dvh, calc(100% - 228px)); max-height: calc(100% - 164px); }
#demo-root .sheet-measuring .phone-sheet,
#demo-root .sheet-dragging .phone-sheet,
#demo-root .sheet-dragging .phone-map-shell { transition: none !important; }
#demo-root .phone-grab {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  background: var(--phone-sheet);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
#demo-root .phone-grab span { display: block; width: 34px; height: 4px; border-radius: 9px; background: color-mix(in srgb, var(--phone-muted) 58%, transparent); transition: width .16s, background-color .16s; }
#demo-root .phone-grab:hover span { width: 48px; background: var(--phone-muted); }
#demo-root .phone-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 18px calc(112px + env(safe-area-inset-bottom));
  background: var(--phone-sheet);
  color: var(--phone-ink);
  scrollbar-color: var(--phone-line) transparent;
  scrollbar-width: thin;
  scroll-padding: 12px;
}
#demo-root .phone-scroll:focus { outline: none; }
#demo-root .phone-scroll .demo-notice {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 0 -2px 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--ui-warning) 38%, var(--phone-line));
  border-radius: 0 0 13px 13px;
  background: color-mix(in srgb, var(--phone-warning) 13%, var(--phone-card));
  color: var(--phone-ink);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--ui-shadow);
}
#demo-root .phone-scroll .demo-notice.error { border-color: color-mix(in srgb, var(--phone-danger) 50%, transparent); background: color-mix(in srgb, var(--phone-danger) 15%, var(--phone-card)); }
#demo-root .phone-scroll .demo-notice.phone-notice-quiet,
#demo-root .phone-scroll .demo-notice:empty { display: none; }
#demo-root .phone-panels { min-width: 0; }
#demo-root .phone-panels .demo-panel { min-width: 0; }
#demo-root .phone-panels .demo-panel > .demo-card,
#demo-root .phone-panels .demo-card {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--phone-ink);
}
#demo-root .phone-panels .demo-card:has(.phone-ride-start) {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#demo-root .phone-panels .demo-card h2 { margin: 0; color: var(--phone-ink); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
#demo-root .phone-panels .demo-card p { color: var(--phone-muted); font-size: 14px; line-height: 1.52; overflow-wrap: anywhere; }
#demo-root .phone-panels .demo-card .demo-card-head { align-items: flex-start; gap: 9px; }
#demo-root .phone-panels .demo-card .demo-card-head p { margin: 6px 0 0; color: var(--phone-muted); font-size: 13px; }
#demo-root .phone-panels .demo-row { align-items: flex-start; gap: 10px; padding: 13px 0; border-color: color-mix(in srgb, var(--phone-line) 38%, transparent); }
#demo-root .phone-panels .demo-row-main { min-width: 0; overflow-wrap: anywhere; }
#demo-root .phone-panels .demo-row-main strong { color: var(--phone-ink); font-size: 14px; }
#demo-root .phone-panels .demo-row-main p,
#demo-root .phone-panels .demo-muted { color: var(--phone-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#demo-root .phone-panels .demo-chip { max-width: 100%; flex: 0 0 auto; white-space: normal; line-height: 1.25; }
#demo-root .phone-panels .demo-tag,
#demo-root .phone-panels .demo-chip { border: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent); background: var(--phone-raised); color: var(--phone-muted); font-size: 12px; line-height: 1.3; }
#demo-root .phone-panels :is(.demo-tag.good, .demo-chip.confirmed, .demo-chip.available, .demo-chip.completed, .demo-chip.closed) {
  border-color: color-mix(in srgb, var(--ui-positive) 38%, var(--phone-line));
  background: color-mix(in srgb, var(--ui-positive) 14%, var(--phone-card));
  color: var(--ui-positive);
}
#demo-root .phone-panels :is(.demo-tag.warn, .demo-chip.review_required, .demo-chip.paused, .demo-chip.charging, .demo-chip.work_completed) {
  border-color: color-mix(in srgb, var(--ui-warning) 40%, var(--phone-line));
  background: color-mix(in srgb, var(--ui-warning) 14%, var(--phone-card));
  color: var(--ui-warning);
}
#demo-root .phone-panels :is(.demo-tag.bad, .demo-chip.cancelled, .demo-chip.interrupted, .demo-chip.out_of_service) {
  border-color: color-mix(in srgb, var(--ui-danger) 42%, var(--phone-line));
  background: color-mix(in srgb, var(--ui-danger) 12%, var(--phone-card));
  color: var(--ui-danger);
}
#demo-root .phone-panels :is(.demo-tag.info, .demo-chip.requested, .demo-chip.assigned, .demo-chip.reserved, .demo-chip.active, .demo-chip.in_progress) {
  border-color: color-mix(in srgb, var(--ui-accent) 40%, var(--phone-line));
  background: color-mix(in srgb, var(--ui-accent) 13%, var(--phone-card));
  color: var(--ui-accent);
}
#demo-root .phone-panels .demo-note { margin: 11px 0; padding: 11px 13px; border-left-color: var(--phone-accent); border-radius: 0 13px 13px 0; background: var(--phone-accent-soft); color: var(--phone-ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#demo-root .phone-panels .demo-note.warning { border-left-color: var(--phone-warning); }
#demo-root .phone-panels .demo-note p { margin: 6px 0; color: inherit; font-size: 13px; }
#demo-root .phone-panels .demo-actions { align-items: stretch; gap: 7px; margin-top: 9px; }
#demo-root .phone-panels .demo-actions .demo-btn { flex: 1 1 100%; }
#demo-root .phone-panels .demo-btn,
#demo-root .phone-panels .phone-entry-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent);
  border-radius: 14px;
  background: var(--phone-raised);
  color: var(--phone-ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
#demo-root .phone-panels .demo-btn.primary { border-color: var(--phone-accent); background: var(--phone-accent); color: var(--phone-accent-ink); }
#demo-root .phone-panels .demo-btn.ghost { background: transparent; color: var(--phone-ink); }
#demo-root .phone-panels .demo-btn.danger { border-color: color-mix(in srgb, var(--phone-danger) 55%, var(--phone-line)); background: color-mix(in srgb, var(--phone-danger) 10%, var(--phone-card)); color: var(--phone-danger); }
#demo-root .phone-panels .demo-btn:disabled,
#demo-root .phone-panels button:disabled { cursor: not-allowed; opacity: .48; }
#demo-root .phone-panels .demo-empty { padding: 18px 13px; border: 1px dashed var(--phone-line); border-radius: 14px; background: var(--phone-card); color: var(--phone-muted); font-size: 12px; line-height: 1.5; text-align: center; }

/* Ride entry, two-step booking form, and confirmed route. */
#demo-root .phone-kicker { margin: 0 0 7px; color: var(--phone-accent); font-size: 10px; font-weight: 760; letter-spacing: .13em; }
#demo-root .phone-ride-start { padding: 1px 1px 8px; }
#demo-root .phone-ride-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#demo-root .phone-ride-heading-copy { min-width: 0; }
#demo-root .phone-ride-heading .phone-kicker { margin-bottom: 5px; }
#demo-root .phone-ride-start h1,
#demo-root .phone-section-heading h1,
#demo-root .phone-subpage-head h1 { margin: 0; color: var(--phone-ink); font-size: 28px; font-weight: 680; line-height: 1.1; letter-spacing: -.04em; }
#demo-root .phone-subtitle { margin: 7px 0 17px; color: var(--phone-muted); font-size: 15px; line-height: 1.48; }
#demo-root .phone-where-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  margin: 16px 0 15px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--phone-line) 38%, transparent);
  border-radius: 17px;
  background: var(--phone-raised);
  color: var(--phone-ink);
  text-align: left;
}
#demo-root .phone-where-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: var(--phone-accent-soft); color: var(--phone-accent); font-size: 22px; line-height: 1; }
#demo-root .phone-where-icon svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#demo-root .phone-where-copy { display: block; min-width: 0; flex: 1 1 auto; }
#demo-root .phone-where-copy strong,
#demo-root .phone-where-copy small { display: block; }
#demo-root .phone-where-copy strong { color: var(--phone-ink); font-size: 16px; font-weight: 650; }
#demo-root .phone-where-copy small { margin-top: 3px; color: var(--phone-muted); font-size: 12px; }
#demo-root .phone-where-arrow { color: var(--phone-accent); font-size: 18px; }
#demo-root .phone-route-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 5px 4px 2px; color: var(--phone-muted); font-size: 13px; }
#demo-root .phone-route-point { display: flex; min-width: 0; min-height: 28px; align-items: center; gap: 11px; }
#demo-root .route-point-dot { position: relative; z-index: 1; width: 10px; height: 10px; flex: 0 0 auto; border: 2px solid var(--phone-accent); border-radius: 50%; background: var(--phone-sheet); }
#demo-root .route-point-dot.dropoff { border-color: var(--phone-muted); }
#demo-root .phone-route-line { width: 1px; height: 9px; margin-left: 4px; background: var(--phone-line); }
#demo-root .phone-map-note,
#demo-root .phone-time-guidance,
#demo-root .phone-sample-settings { margin: 12px 0 0; border-top: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent); color: var(--phone-muted); }
#demo-root .phone-map-note > summary,
#demo-root .phone-time-guidance > summary,
#demo-root .phone-sample-settings > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; color: var(--phone-muted); font-size: 12px; font-weight: 620; list-style: none; cursor: pointer; }
#demo-root .phone-map-note > summary::-webkit-details-marker,
#demo-root .phone-time-guidance > summary::-webkit-details-marker,
#demo-root .phone-sample-settings > summary::-webkit-details-marker { display: none; }
#demo-root .phone-map-note > summary::after,
#demo-root .phone-time-guidance > summary::after,
#demo-root .phone-sample-settings > summary::after { content: "+"; color: var(--phone-accent); font-size: 16px; }
#demo-root .phone-map-note[open] > summary::after,
#demo-root .phone-time-guidance[open] > summary::after,
#demo-root .phone-sample-settings[open] > summary::after { content: "−"; }
#demo-root .phone-map-note p,
#demo-root .phone-time-guidance > .demo-muted,
#demo-root .phone-sample-settings-body > :is(p, .demo-muted) { margin: 0 0 12px; color: var(--phone-muted); font-size: 12px; line-height: 1.5; }
#demo-root .phone-sample-settings-body > .demo-identity { margin: 10px 0 4px; }
#demo-root .phone-sample-settings-body > .demo-clock { font-variant-numeric: tabular-nums; }
#demo-root .phone-request-form { min-width: 0; margin: 0; }
#demo-root .phone-form-step { min-width: 0; }
#demo-root .phone-step-heading { margin: 0 0 13px; }
#demo-root .phone-step-heading > span { display: block; margin-bottom: 6px; color: var(--phone-accent); font-size: 10px; font-weight: 760; letter-spacing: .12em; }
#demo-root .phone-step-heading > strong { display: block; color: var(--phone-ink); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
#demo-root .phone-step-heading > p { margin: 5px 0 0; color: var(--phone-muted); font-size: 14px; line-height: 1.45; }
#demo-root .phone-panels .demo-form-group {
  min-width: 0;
  margin: 11px 0;
  padding: 13px 0 15px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--phone-line) 36%, transparent);
  border-radius: 0;
  background: transparent;
}
#demo-root .phone-panels .demo-form-group legend { padding: 0; color: var(--phone-ink); font-size: 13px; font-weight: 650; line-height: 1.45; }
#demo-root .phone-panels .demo-form-row { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 10px; }
#demo-root .phone-panels .demo-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
#demo-root .phone-panels .phone-city-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
#demo-root .phone-panels .demo-label { margin: 0; color: var(--phone-muted); font-size: 12px; font-weight: 620; line-height: 1.4; }
#demo-root .phone-panels .demo-control,
#demo-root .phone-account-subpage .phone-profile-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--phone-line) 54%, transparent);
  border-radius: 13px;
  background: var(--phone-raised);
  color: var(--phone-ink);
  font-size: 16px;
  line-height: 1.25;
}
#demo-root .phone-panels .demo-control[readonly] { background: var(--phone-sheet); color: var(--phone-muted); }
#demo-root .phone-panels .demo-control::placeholder { color: color-mix(in srgb, var(--phone-muted) 70%, transparent); }
#demo-root .phone-panels input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--phone-accent); }
#demo-root .phone-panels .demo-label:has(input[type="checkbox"]) { min-height: 44px; align-items: center; gap: 9px; }
#demo-root .phone-panels .demo-date-field { display: flex; width: 100%; min-width: 0; align-items: stretch; gap: 6px; }
#demo-root .phone-panels .demo-date-field > .demo-control { flex: 1 1 auto; width: auto; min-width: 0; }
#demo-root .phone-panels .demo-calendar-toggle { min-height: 48px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--phone-line) 48%, transparent); border-radius: 12px; background: var(--phone-raised); color: var(--phone-ink); font-size: 12px; white-space: nowrap; }
#demo-root .phone-panels .demo-date-popover { z-index: 8; width: min(344px, calc(100vw - 44px)); max-width: 100%; padding: 10px; border: 1px solid color-mix(in srgb, var(--phone-line) 54%, transparent); border-radius: 16px; background: var(--phone-card); box-shadow: var(--ui-shadow); color: var(--phone-ink); }
#demo-root .phone-panels .demo-calendar-head { gap: 6px; }
#demo-root .phone-panels .demo-calendar-head button { min-width: 44px; min-height: 44px; border: 1px solid var(--phone-line); border-radius: 9px; background: var(--phone-raised); color: var(--phone-ink); }
#demo-root .phone-panels .demo-calendar-head strong { color: var(--phone-ink); font-size: 14px; }
#demo-root .phone-panels .demo-calendar-weekdays span { color: var(--phone-muted); font-size: 11px; }
#demo-root .phone-panels .demo-calendar-days button { min-width: 0; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--phone-ink); font-size: 12px; }
#demo-root .phone-panels .demo-calendar-days button[aria-pressed="true"] { background: var(--phone-accent); color: var(--phone-accent-ink); }
#demo-root .phone-panels .demo-calendar-hint { color: var(--phone-muted); font-size: 11px; }
#demo-root .phone-panels [data-request-form] > button[type="submit"] { width: 100%; min-height: 52px; margin: 0; }
#demo-root .phone-form-actions { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 8px; margin: 12px 0 3px; }
#demo-root .phone-form-actions-stack { grid-template-columns: minmax(0, 1fr); }
#demo-root .phone-secondary-button,
#demo-root .phone-primary-button {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent);
  border-radius: 14px;
  background: transparent;
  color: var(--phone-ink);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
}
#demo-root .phone-primary-button { border-color: var(--phone-accent); background: var(--phone-accent); color: var(--phone-accent-ink); font-weight: 720; }
#demo-root .phone-form-actions-stack .phone-secondary-button { background: var(--phone-raised); }
#demo-root .phone-step-status { min-height: 18px; margin: 10px 1px; color: var(--phone-accent); font-size: 12px; line-height: 1.45; }
#demo-root .phone-confirmed-route { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: center; gap: 8px; margin: 12px 0 15px; padding: 12px; border: 1px solid color-mix(in srgb, var(--phone-line) 32%, transparent); border-radius: 15px; background: var(--phone-raised); }
#demo-root .phone-confirmed-route > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
#demo-root .phone-confirmed-route > div > span { color: var(--phone-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
#demo-root .phone-confirmed-route strong { display: -webkit-box; overflow: hidden; color: var(--phone-ink); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
#demo-root .phone-route-connector { width: 18px; height: 1px; background: var(--phone-accent); }

/* Trips, payment records, account settings, and secondary pages. */
#demo-root .phone-trips-layout { display: grid; gap: 20px; }
#demo-root .phone-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
#demo-root .phone-section-heading .phone-kicker { margin-bottom: 3px; }
#demo-root .phone-section-heading h1 { font-size: 28px; }
#demo-root .phone-count { display: inline-grid; min-width: 34px; height: 34px; place-items: center; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--phone-line) 40%, transparent); border-radius: 999px; background: var(--phone-raised); color: var(--phone-accent); font-size: 12px; font-weight: 760; font-variant-numeric: tabular-nums; }
#demo-root .phone-trip-list { display: grid; gap: 9px; }
#demo-root .phone-trip-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid color-mix(in srgb, var(--phone-line) 38%, transparent); border-radius: 13px; background: var(--phone-raised); }
#demo-root .phone-trip-groups button { min-height: 44px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--phone-muted); font-size: 13px; font-weight: 680; }
#demo-root .phone-trip-groups button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--phone-accent) 38%, transparent); background: var(--phone-card); color: var(--phone-ink); box-shadow: 0 1px 4px #0001; }
#demo-root .phone-trip-section[hidden] { display: none !important; }
#demo-root .phone-trip-row { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--phone-line) 40%, transparent); border-radius: 16px; background: var(--phone-card); }
#demo-root .phone-trip-summary { display: grid; width: 100%; min-height: 86px; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 12px; border: 0; background: transparent; color: var(--phone-ink); text-align: left; }
#demo-root .phone-trip-summary-body { display: grid; min-width: 0; gap: 3px; }
#demo-root .phone-trip-summary .demo-chip { max-width: 100px; justify-self: start; white-space: normal; }
#demo-root .phone-trip-time { color: var(--phone-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
#demo-root .phone-trip-route { display: -webkit-box; overflow: hidden; color: var(--phone-ink); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#demo-root .phone-trip-progress { display: -webkit-box; overflow: hidden; color: var(--phone-muted); font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#demo-root .phone-trip-chevron { color: var(--phone-muted); font-size: 20px; }
#demo-root .phone-trip-detail-pages { min-width: 0; }
#demo-root .phone-trip-detail-page { min-width: 0; }
#demo-root .phone-trip-detail-heading { margin: 0 0 14px; }
#demo-root .phone-trip-detail-heading h1 { margin: 0; color: var(--phone-ink); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
#demo-root .phone-trip-detail-card { min-width: 0; margin: 0; padding: 16px 14px 18px; border: 1px solid color-mix(in srgb, var(--phone-line) 38%, transparent); border-radius: 18px; background: var(--phone-card); box-shadow: none; }
#demo-root .phone-trip-detail-section { min-width: 0; padding: 0 0 14px; margin: 0 0 13px; border-bottom: 1px solid color-mix(in srgb, var(--phone-line) 38%, transparent); }
#demo-root .phone-trip-detail-label { margin: 0 0 8px; color: var(--phone-muted); font-size: 10px; font-weight: 760; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
#demo-root .phone-trip-fare-section .demo-row-main > strong { color: var(--phone-ink); font-size: 22px; font-variant-numeric: tabular-nums; }
#demo-root .phone-trip-next-section { padding: 12px; border: 1px solid color-mix(in srgb, var(--phone-accent) 23%, var(--phone-line)); border-radius: 15px; background: color-mix(in srgb, var(--phone-accent-soft) 70%, var(--phone-card)); }
#demo-root .phone-trip-next-section .phone-trip-detail-label { color: var(--phone-accent); }
#demo-root .phone-trip-next-section > p { margin: 0 0 8px; color: var(--phone-ink); font-size: 14px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
#demo-root .phone-trip-detail-card .demo-row { margin: 0; padding: 0; border: 0; background: transparent; }
#demo-root .phone-trip-detail-card .demo-row-main { width: 100%; }
#demo-root .phone-trip-detail-card .demo-row-main p { margin: 5px 0 0; }
#demo-root .phone-trip-detail-card .demo-actions { display: grid; gap: 8px; margin: 8px 0 0; }
#demo-root .phone-trip-detail-card .demo-actions:empty { display: none; }
#demo-root .phone-trip-detail-card .demo-actions > .demo-btn { width: 100%; min-height: 48px; }
#demo-root .phone-trip-vehicle-section .demo-note { margin: 0; padding: 11px 12px; font-size: 13px; line-height: 1.45; }
#demo-root .phone-trip-detail-card > [data-demo-journey] { margin: 0 0 13px; padding: 12px; border-radius: 15px; }
#demo-root .phone-trip-detail-card > [data-demo-journey] > strong { font-size: 13px; }
#demo-root .phone-trip-detail-card > [data-demo-journey] > p { margin: 6px 0; font-size: 12px; line-height: 1.42; }
#demo-root .phone-trip-detail-card > [data-demo-journey] .demo-actions { margin-top: 9px; }
#demo-root .phone-trip-detail-card > .demo-inline-details { margin: 9px 0; }
#demo-root .phone-trip-more-section { margin-top: 8px; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#demo-root .phone-trip-detail-card .demo-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 7px 10px; margin-bottom: 12px; }
#demo-root .phone-trip-detail-card .demo-card-head > div { display: contents; }
#demo-root .phone-trip-route-section .demo-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; }
#demo-root .phone-trip-route-section .demo-card-head h2 { display: none; }
#demo-root .phone-trip-route-section .demo-card-head > .demo-chip { display: inline-flex; max-width: none; margin: 0; }
#demo-root .phone-trip-route-section .demo-card-head p { display: block; margin: 0; font-size: 13px; line-height: 1.5; }
#demo-root .phone-trip-detail-card .demo-card-head h2 { min-width: 0; grid-column: 1; grid-row: 1; font-size: 16px; line-height: 1.3; }
#demo-root .phone-trip-detail-card .demo-card-head > .demo-chip { max-width: 112px; grid-column: 2; grid-row: 1; justify-self: end; white-space: normal; }
#demo-root .phone-trip-detail-card .demo-card-head p { min-width: 0; grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 13px; line-height: 1.48; overflow-wrap: anywhere; }
#demo-root .phone-trip-detail-card > .demo-row { display: block; }
#demo-root .phone-trip-detail-card .demo-row-main { width: 100%; }
#demo-root .phone-trip-detail-card .demo-row-main strong { font-size: 15px; }
#demo-root .phone-trip-detail-card .demo-row-main p,
#demo-root .phone-trip-detail-card > p { color: var(--phone-muted); font-size: 13px; line-height: 1.48; overflow-wrap: anywhere; }
#demo-root .phone-trip-detail-card > .demo-actions { display: grid; gap: 8px; margin: 10px 0; }
#demo-root .phone-trip-detail-card .demo-inline-details { margin: 10px 0; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--phone-line) 34%, transparent); border-radius: 13px; background: var(--phone-raised); color: var(--phone-muted); }
#demo-root .phone-trip-detail-card .demo-inline-details > summary { min-height: 44px; padding: 11px 0; color: var(--phone-ink); font-size: 13px; font-weight: 650; }
#demo-root .phone-trip-detail-card .demo-inline-details > p { margin: 0 0 12px; color: var(--phone-muted); font-size: 13px; line-height: 1.48; }
#demo-root .phone-trip-detail-card .phone-settlement-inline { display: inline-flex; min-height: 44px; align-items: center; margin: 2px 0 8px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--phone-line) 46%, transparent); border-radius: 12px; background: var(--phone-raised); color: var(--phone-ink); font-size: 13px; font-weight: 650; }
#demo-root .phone-settlement-heading { margin-bottom: 18px; }
#demo-root .phone-payment-fact { color: var(--phone-ink) !important; font-size: 12px !important; font-weight: 650; }
#demo-root .phone-account-profile,
#demo-root .phone-account-entry,
#demo-root .phone-account-menu,
#demo-root .phone-info-card,
#demo-root .phone-place-confirm {
  min-width: 0;
  margin: 0 0 13px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--phone-line) 36%, transparent);
  border-radius: 18px;
  background: var(--phone-card);
  color: var(--phone-ink);
}
#demo-root .phone-account-profile { display: flex; align-items: center; gap: 14px; padding: 17px; background: linear-gradient(135deg, color-mix(in srgb, var(--phone-accent-soft) 78%, var(--phone-card)), var(--phone-card) 72%); }
#demo-root .phone-account-menu { padding: 8px 14px 3px; border-radius: 16px; }
#demo-root .phone-account-heading { margin-bottom: 12px; }
#demo-root .phone-account-avatar { display: block; width: 64px; height: 64px; flex: 0 0 auto; overflow: hidden; border: 1px solid color-mix(in srgb, var(--phone-accent) 28%, transparent); border-radius: 50%; background: #d8eee9; box-shadow: 0 3px 12px color-mix(in srgb, var(--phone-ink) 14%, transparent); }
#demo-root .phone-account-avatar svg { display: block; width: 100%; height: 100%; }
#demo-root .phone-account-demo-menu { border-style: dashed; background: color-mix(in srgb, var(--phone-raised) 74%, var(--phone-card)); }
#demo-root .phone-signout-row { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 15px; border: 1px solid color-mix(in srgb, var(--phone-danger) 30%, var(--phone-line)); border-radius: 14px; background: color-mix(in srgb, var(--phone-danger) 7%, var(--phone-card)); color: var(--phone-danger); font-size: 14px; font-weight: 650; text-align: left; }
#demo-root .phone-signout-row > span { font-size: 18px; }
#demo-root .phone-account-profile > div,
#demo-root .phone-account-entry > div { min-width: 0; }
#demo-root .phone-account-profile strong { display: block; overflow: hidden; color: var(--phone-ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
#demo-root .phone-account-profile p { margin: 4px 0 0; color: var(--phone-muted); font-size: 13px; overflow-wrap: anywhere; }
#demo-root .phone-account-menu-title { margin: 2px 0 5px; color: var(--phone-muted); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
#demo-root .phone-menu-row { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--phone-line) 32%, transparent); background: transparent; color: var(--phone-ink); text-align: left; font-size: 14px; font-weight: 620; line-height: 1.4; }
#demo-root .phone-menu-row:last-child { border-bottom: 0; }
#demo-root .phone-menu-row > span { flex: 0 0 auto; color: var(--phone-muted); font-size: 18px; font-weight: 450; }
#demo-root .phone-account-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#demo-root .phone-account-entry strong { font-size: 15px; }
#demo-root .phone-account-entry p { margin: 4px 0 0; color: var(--phone-muted); font-size: 14px; line-height: 1.45; }
#demo-root .phone-panels .phone-entry-button { flex: 0 0 auto; min-width: 72px; background: var(--phone-raised); font-size: 13px; }
#demo-root .phone-account-footnote { margin-top: 8px; color: var(--phone-muted); font-size: 12px; line-height: 1.5; }
#demo-root .phone-account-subpage { min-width: 0; padding: 2px 1px 14px; color: var(--phone-ink); }
#demo-root .phone-subpage-head { margin: 0 0 17px; }
#demo-root .phone-back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin: 0 0 15px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent); border-radius: 12px; background: var(--phone-raised); color: var(--phone-ink); font-size: 13px; font-weight: 650; }
#demo-root .phone-back-link:first-letter { color: var(--phone-accent); font-size: 19px; }
#demo-root .phone-eyebrow { margin: 0 0 6px; color: var(--phone-accent); font-size: 10px; font-weight: 760; letter-spacing: .12em; }
#demo-root .phone-profile-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin: 14px 0; color: var(--phone-muted); font-size: 13px; font-weight: 620; }
#demo-root .phone-profile-field input { font-weight: 400; }
#demo-root .phone-info-card { margin: 12px 0 16px; font-size: 14px; line-height: 1.5; }
#demo-root .phone-info-card strong { display: block; margin: 0 0 5px; color: var(--phone-ink); font-size: 14px; }
#demo-root .phone-info-card p { margin: 0 0 12px; color: var(--phone-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#demo-root .phone-info-card p:last-child { margin-bottom: 0; }
#demo-root .phone-place-confirm { margin: 12px 0; }
#demo-root .phone-place-confirm > strong { display: block; color: var(--phone-ink); font-size: 15px; }
#demo-root .phone-place-confirm > p:not(.phone-eyebrow) { color: var(--phone-muted); font-size: 13px; }
#demo-root .phone-page-status { min-height: 19px; margin: 12px 0; color: var(--phone-accent); font-size: 12px; line-height: 1.48; }
#demo-root .phone-local-primary { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; padding: 11px 14px; border: 1px solid var(--phone-accent); border-radius: 14px; background: var(--phone-accent); color: var(--phone-accent-ink); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
#demo-root .phone-saved-places { margin: 0 0 12px; padding: 3px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent); border-radius: 0; background: transparent; }
#demo-root .phone-saved-places .phone-menu-row { min-height: 55px; }
#demo-root .phone-demo-toolbox { display: grid; gap: 12px; }
#demo-root .phone-demo-toolbox .demo-controls { display: block; margin: 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--phone-line) 38%, transparent); border-radius: 17px; background: var(--phone-card); color: var(--phone-ink); }
#demo-root .phone-demo-toolbox .demo-controls > summary { min-height: 44px; color: var(--phone-ink); font-size: 15px; font-weight: 700; }
#demo-root .phone-demo-toolbox .demo-controls > p { color: var(--phone-muted); font-size: 13px; line-height: 1.5; }
#demo-root .phone-demo-journey-item { min-width: 0; padding: 13px; border: 1px solid color-mix(in srgb, var(--phone-line) 38%, transparent); border-radius: 17px; background: var(--phone-card); }
#demo-root .phone-demo-journey-item h2 { margin: 0 0 9px; color: var(--phone-ink); font-size: 15px; line-height: 1.35; }
#demo-root .phone-demo-journey-item .demo-note { margin: 0; padding: 11px 13px; border-left-color: var(--phone-accent); border-radius: 0 13px 13px 0; background: var(--phone-accent-soft); color: var(--phone-ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#demo-root .phone-demo-journey-item .demo-note.warning { border-left-color: var(--phone-warning); }
#demo-root .phone-demo-journey-item .demo-note p { margin: 6px 0; color: inherit; font-size: 13px; }
#demo-root .phone-demo-journey-item .demo-inline-details { margin: 10px 0 0; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--phone-line) 34%, transparent); border-radius: 13px; background: var(--phone-raised); color: var(--phone-muted); }
#demo-root .phone-demo-journey-item .demo-inline-details > summary { min-height: 44px; color: var(--phone-ink); font-size: 13px; font-weight: 650; }
#demo-root .phone-demo-journey-empty { margin: 0; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-label { color: var(--phone-muted); font-size: 12px; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-control { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--phone-line) 54%, transparent); border-radius: 13px; background: var(--phone-raised); color: var(--phone-ink); font-size: 16px; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-btn { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 10px 13px; border: 1px solid color-mix(in srgb, var(--phone-line) 42%, transparent); border-radius: 14px; background: var(--phone-raised); color: var(--phone-ink); font-size: 14px; font-weight: 720; line-height: 1.25; white-space: normal; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-btn.primary { border-color: var(--phone-accent); background: var(--phone-accent); color: var(--phone-accent-ink); }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-btn.ghost { background: transparent; color: var(--phone-ink); }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-btn.danger { border-color: color-mix(in srgb, var(--phone-danger) 55%, var(--phone-line)); background: color-mix(in srgb, var(--phone-danger) 10%, var(--phone-card)); color: var(--phone-danger); }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-btn:disabled { cursor: not-allowed; opacity: .48; }
#demo-root .phone-account-subpage .phone-demo-toolbox .demo-actions { display: grid; gap: 8px; margin-top: 9px; }

/* Floating, translucent navigation with space reserved in the scroll area. */
#demo-root .phone-tabs {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: max(10px, calc(env(safe-area-inset-bottom) + 8px));
  left: 14px;
  display: grid;
  height: 68px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--ui-glass-line) 78%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--ui-glass) 88%, transparent);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--phone-ink) 16%, transparent);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
#demo-root .phone-tab { position: relative; display: flex; min-width: 0; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 16px; background: transparent; color: var(--phone-muted); font-size: 11px; font-weight: 580; }
#demo-root .phone-tab::before { position: absolute; top: 3px; width: 42px; height: 27px; border-radius: 999px; background: transparent; content: ""; }
#demo-root .phone-tab svg { position: relative; z-index: 1; display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
#demo-root .phone-tab span { position: relative; z-index: 1; }
#demo-root .phone-tab.active { background: transparent; color: var(--phone-accent); font-weight: 700; }
#demo-root .phone-tab.active::before { background: var(--phone-accent-soft); }
#demo-root .atlas-phone.no-map .phone-map-shell { display: none; }
#demo-root .atlas-phone.no-map .phone-sheet { flex: 1 1 auto; width: 100%; max-height: none; min-height: 0; margin-top: 0; border-radius: 0; box-shadow: none; }
#demo-root .atlas-phone.no-map .phone-grab { display: none; }
#demo-root .atlas-phone.no-map .phone-scroll { padding-top: 16px; }
#demo-root .atlas-phone.no-map .phone-panels > [data-panel="me"] > .demo-identity { margin-bottom: 12px; }

#demo-root .atlas-phone :is(button, summary) {
  min-height: 44px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#demo-root .atlas-phone :is(button, summary):active { transform: translateY(1px); }

@media (max-width: 480px) {
  #demo-root .phone-rider-name,
  #demo-root .phone-theme-label { display: none; }
  #demo-root .phone-theme-toggle { width: 44px; min-width: 44px; min-height: 44px; padding: 0; }
  #demo-root .phone-theme-toggle > span:first-child { font-size: 18px; }
  #demo-root .phone-brand { align-items: center; gap: 8px; }
  #demo-root .phone-brand-mark { width: 30px; height: 27px; }
}

@media (max-width: 360px) {
  #demo-root .phone-head { gap: 4px; padding-right: 8px; padding-left: 8px; }
  #demo-root .phone-brand { gap: 6px; }
  #demo-root .phone-brand-mark { width: 28px; height: 25px; }
  #demo-root .phone-brand strong { font-size: 11px; letter-spacing: .13em; }
  #demo-root .phone-brand small,
  #demo-root .phone-theme-label { display: none; }
  #demo-root .phone-prototype-badge { min-height: 22px; padding: 1px 6px; font-size: 9px; }
  #demo-root .phone-head-actions { gap: 4px; }
  #demo-root .phone-rider-name { max-width: 48px; font-size: 10px; }
  #demo-root .phone-theme-toggle { width: 44px; min-width: 44px; min-height: 44px; gap: 0; padding: 0; font-size: 11px; }
  #demo-root .phone-map-label { top: 9px; left: 9px; max-width: calc(100% - 136px); min-height: 40px; padding: 5px 9px; font-size: 10px; line-height: 1.25; white-space: normal; }
  #demo-root .phone-map-controls { top: 9px; right: 9px; }
  #demo-root .phone-map-controls > summary { min-height: 44px; padding: 0 10px; }
  #demo-root .phone-map-control-content { gap: 5px; padding: 6px; }
  #demo-root .phone-map-tools button { width: 44px; height: 44px; }
  #demo-root .phone-map-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding-right: 9px; padding-bottom: 9px; padding-left: 9px; }
  #demo-root .phone-map-targets button { min-height: 44px; padding: 0 9px; font-size: 10px; }
  #demo-root .phone-map-pan { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); }
  #demo-root .phone-map-pan button { width: 44px; height: 44px; }
  #demo-root .phone-map-status { font-size: 11px; }
  #demo-root .phone-sheet { min-height: 240px; }
  #demo-root .phone-scroll { padding-right: 15px; padding-left: 15px; }
  #demo-root .phone-form-actions { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  #demo-root .phone-panels .demo-date-field { flex-wrap: wrap; }
  #demo-root .phone-panels .demo-calendar-toggle { width: 100%; }
}

@media (min-width: 430px) {
  #demo-root .phone-scroll { padding-right: 19px; padding-left: 19px; }
  #demo-root .phone-map-footer { padding-right: 15px; padding-left: 15px; }
}

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