/* Uzify apps: dark theme from the Uzify design system. Lime only on the one primary action per screen.
   No inline styles in markup (the CSP allows stylesheets from this site only). */
:root {
  --night: #0B1C34; --alt: #13284A; --raised: #172E52; --line: #24395C; --control: #6B80A6;
  --ink: #FFFFFF; --muted: #A9B4C7; --lime: #C8FF00; --on-lime: #0A2240;
  --success: #3DDC84; --warning: #FDB022; --danger: #FF6B5E;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --pill: 999px;
  --spring: cubic-bezier(0.34,1.3,0.64,1);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--night); color: var(--ink); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
h1[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phone shell: full bleed on phones, a phone-sized frame on wide screens */
#app { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--night);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
@media (min-width: 768px) {
  body { display: flex; align-items: center; justify-content: center; background: #060F1D; }
  #app { height: min(844px, 100dvh - 48px); max-width: 390px; border-radius: 40px; box-shadow: 0 0 0 8px #000, 0 30px 80px rgba(0,0,0,.5); }
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 20px 20px 28px; gap: 20px; }
.screen--map { padding: 0; overflow: hidden; }
.top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.back { width: 44px; height: 44px; border-radius: var(--pill); border: 0; background: var(--alt); display: grid; place-items: center; cursor: pointer; }
.title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font-size: 44px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.logo { height: 30px; width: auto; display: block; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; width: 100%; border-radius: var(--pill); border: 0; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .25s var(--spring), filter .2s; }
.btn:active { transform: scale(0.97); }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--lime); color: var(--on-lime); }
.btn--line { background: transparent; border: 1px solid var(--control); color: var(--ink); }
.btn--text { background: transparent; color: var(--ink); min-height: 44px; }
.btn--danger { background: transparent; color: var(--danger); min-height: 44px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.input { height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--alt); font-size: 17px; width: 100%; }
.input:focus { border-color: var(--lime); outline: none; }
.input[aria-invalid=true] { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.alert { padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,107,94,.12); color: var(--ink); font-size: 15px; }
.alert .code { margin-top: 4px; font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.note { padding: 12px 14px; border-radius: var(--r-md); background: var(--raised); font-size: 15px; }
.links { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.links a { color: var(--ink); }

/* map */
.map { position: absolute; inset: 0; overflow: hidden; background: #0E2140; touch-action: none; cursor: crosshair; }
.map-tiles img { color: transparent; position: absolute; left: 0; top: 0; width: 256px; height: 256px; user-select: none; filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(.9) saturate(.4); }
.map-markers { position: absolute; inset: 0; pointer-events: none; }
.map-marker { position: absolute; left: 0; top: 0; }
.map-marker--pickup::after { content: ""; position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--night); border: 4px solid #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.map-marker--dropoff::after { content: ""; position: absolute; width: 20px; height: 20px; margin: -20px 0 0 -10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--lime); border: 3px solid var(--night); }
.map-marker--driver::after { content: ""; position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 6px solid var(--night); box-shadow: 0 0 0 4px rgba(200,255,0,.35); transition: transform .5s; }
.map-zooms { position: absolute; right: 12px; top: calc(76px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 8px; }
.map-zoom { width: 44px; height: 44px; border-radius: var(--r-md); border: 0; background: var(--alt); display: grid; place-items: center; cursor: pointer; }
.map-credit { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--muted); background: rgba(11,28,52,.7); padding: 2px 6px; border-radius: 6px; text-decoration: none; }

/* bottom sheet over the map */
.bar { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; pointer-events: none; }
.bar > * { pointer-events: auto; }
.chip { color: var(--ink); text-decoration: none; min-height: 44px; padding: 0 14px; border-radius: var(--pill); border: 0; background: var(--alt); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--alt); border-radius: 28px 28px 0 0; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 16px; max-height: 78%; overflow-y: auto; animation: rise .45s var(--spring) both; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.stops { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--raised); }
.stop { display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 56px; border: 0; background: transparent; text-align: left; cursor: pointer; width: 100%; }
.stop + .stop { border-top: 1px solid var(--line); }
.stop .dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #fff; flex: none; }
.stop .dot--drop { border-radius: 3px; border-color: var(--lime); background: var(--lime); }
.stop span { flex: 1; }
.stop[aria-pressed=true] { box-shadow: inset 3px 0 0 var(--lime); }
.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1; min-width: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 600; flex: none; }
.why { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--raised); }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 12px; }
.stepper button { height: 52px; border-radius: var(--pill); border: 1px solid var(--control); background: transparent; display: grid; place-items: center; cursor: pointer; }
.stepper output { text-align: center; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.reasons label { position: relative; min-height: 40px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--control); font-size: 15px; cursor: pointer; }
.reasons input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.reasons label:has(input:checked) { background: #fff; color: var(--on-lime); border-color: #fff; }
.reasons label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.locked { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--lime); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown { font-variant-numeric: tabular-nums; }
.toast { position: absolute; left: 16px; right: 16px; top: calc(16px + env(safe-area-inset-top)); z-index: 5; padding: 12px 14px; border-radius: var(--r-md); background: var(--raised); box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: rise .35s var(--spring) both; }
.mockflag { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(4px + env(safe-area-inset-bottom)); z-index: 6; font-size: 11px; color: var(--on-lime); background: var(--warning); padding: 2px 8px; border-radius: var(--pill); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .map-marker--driver::after { transition: none; }
  .sheet, .toast { animation: none; }
  .spinner { animation-duration: 3s; }
}

/* lists, cards and sections (trips, wallet, account) */
.stack { display: flex; flex-direction: column; gap: 12px; }
.h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-lg); background: var(--alt); }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--warning); border: 1px solid var(--warning); border-radius: var(--pill); padding: 2px 10px; }
.list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-md); background: var(--alt); }
.list > li + li { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 56px; color: var(--ink); text-decoration: none; }
a.item:hover { background: var(--raised); }
.item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.item > svg { color: var(--muted); flex: none; }
.plus { color: var(--success); }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--pill); background: var(--raised); color: var(--muted); white-space: nowrap; }
.choices { display: flex; flex-direction: column; gap: 0; border: 0; padding: 0; margin: 0; border-radius: var(--r-md); background: var(--alt); }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; cursor: pointer; }
.choices label + label { border-top: 1px solid var(--line); }
.choices input { width: 20px; height: 20px; accent-color: var(--lime); margin: 0; }
.input--area { height: auto; padding: 12px 16px; resize: vertical; min-height: 88px; }

/* rating */
.rate { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.stars { display: flex; gap: 6px; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.stars legend { width: 100%; margin-bottom: 8px; }
.stars label { position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--control); cursor: pointer; transition: transform .25s var(--spring); }
.stars label.on { color: #fff; }
.stars label.on svg { fill: currentColor; }
.stars label:active { transform: scale(0.9); }
.stars input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.stars label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) { .stars label { transition: none; } }

/* chat */
.screen--chat { gap: 12px; padding-bottom: 16px; }
.title--sm { font-size: 22px; }
.chatwrap { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { align-self: flex-start; max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--alt); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.msg--mine { align-self: flex-end; background: #fff; color: var(--on-lime); border-radius: 18px 18px 6px 18px; }
.msg--mine .muted { color: #4A5B78; }
.center { text-align: center; align-items: center; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chipq { flex: none; min-height: 40px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--control); background: transparent; font-size: 15px; cursor: pointer; white-space: nowrap; }
.composer { display: grid; grid-template-columns: 1fr 52px; gap: 8px; }
.send { height: 52px; border-radius: var(--pill); border: 0; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; cursor: pointer; }
.send[disabled] { opacity: .5; }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: #fff; color: var(--on-lime); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }

/* bookings and invites */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking .pad { padding: 0 14px 14px; }
.booking .item > svg { color: var(--muted); }
.bigcode { font-size: 34px; font-weight: 700; letter-spacing: 0.12em; font-family: ui-monospace, Menlo, monospace; user-select: all; }
.input.code { text-transform: uppercase; letter-spacing: 0.12em; font-family: ui-monospace, Menlo, monospace; }
.card.center > svg { color: var(--ink); }

/* ---- driver app */
.badge--ok { background: rgba(61,220,132,.14); color: var(--success); }
.badge--bad { background: rgba(255,107,94,.14); color: var(--danger); }
.tag--ok { color: var(--success); border-color: var(--success); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--control); flex: none; }
.dot--on { background: var(--success); box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.fare { font-size: 20px; }
.fare-big { font-size: 40px; letter-spacing: -.02em; }
.checklist { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.doc { border-radius: var(--r-lg); background: var(--alt); }

.doc .pad { padding: 0 14px 14px; }
.tick-off { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--control); flex: none; }
.list-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--r-lg); background: var(--alt); color: var(--ink); text-decoration: none; }
.list-link > span { flex: 1; }
.list-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.offer .grow { display: flex; flex-direction: column; gap: 2px; }
button.item { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-lg); }
button.item:disabled { cursor: default; opacity: .6; }
button.item:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.card > .badge { align-self: flex-start; }

/* ---- driver road reports */
.btn--big { min-height: 64px; font-size: 19px; }
.btn--stop { background: var(--danger); color: #fff; }
.btn--small { min-height: 36px; width: auto; padding: 0 10px; font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--lime); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.summary > div { display: flex; flex-direction: column; gap: 2px; }
.big-num { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fare-big { font-variant-numeric: tabular-nums; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--danger); flex: none; animation: rec-pulse 1.2s ease-in-out infinite; }
.rec-dot--paused { background: var(--control); animation: none; }
@keyframes rec-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,94,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,107,94,0); } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.road .end { align-items: flex-end; }
.place { width: 28px; text-align: center; font-weight: 700; color: var(--muted); flex: none; }
.item--me { background: var(--raised); border-radius: var(--r-md); }

/* landmarks (rider search results, admin list) */
.lm-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--raised); color: var(--lime); }
td.lm-icon { display: table-cell; width: 52px; text-align: center; background: none; }
td.lm-icon svg { padding: 8px; box-sizing: content-box; border-radius: 50%; background: var(--raised); }
.results { max-height: 30dvh; overflow-y: auto; }
.results:empty { display: none; }
.results .item { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }

/* loading placeholders: the outline of a list while it loads */
.skel { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--alt); overflow: hidden; }
.skel-row { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; min-height: 56px; }
.skel-row + .skel-row { border-top: 1px solid var(--line); }
.skel-row i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--raised) 0%, var(--line) 50%, var(--raised) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel-a { width: 55%; }
.skel-b { width: 35%; height: 10px !important; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* lists arrive one row after another (only when they first appear; 180 ms each, 30 ms apart, 8 rows at most) */
.list > li { animation: row-in .18s ease-out both; }
.list > li:nth-child(2) { animation-delay: 30ms; } .list > li:nth-child(3) { animation-delay: 60ms; }
.list > li:nth-child(4) { animation-delay: 90ms; } .list > li:nth-child(5) { animation-delay: 120ms; }
.list > li:nth-child(6) { animation-delay: 150ms; } .list > li:nth-child(7) { animation-delay: 180ms; }
.list > li:nth-child(n+8) { animation-delay: 210ms; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.results > li { animation: none; }   /* search results change as you type: no motion */

/* password: show / hide and strength meter */
.pw { position: relative; }
.pw .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 60px; padding: 0 10px; border: 0; border-radius: var(--pill); background: transparent; color: var(--lime); font-size: 15px; font-weight: 600; cursor: pointer; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.pw-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bar i { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s ease-out; }
.pw-bar[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-bar[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-bar[data-score="3"] i:nth-child(-n+3) { background: var(--lime); }
.pw-bar[data-score="4"] i { background: var(--success); }

/* 6-digit code, one box per digit */
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-box { width: 100%; min-height: 56px; text-align: center; font-size: 24px; font-weight: 700; border-radius: var(--r-sm); border: 1px solid var(--control); background: var(--alt); color: var(--ink); }
.code-box:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 2px var(--lime); }

/* asking for location: explain first */
/* founding-driver offer: a quiet card with two meters. <progress> needs no inline style (CSP). */
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.offer-card { border: 1px solid var(--line); }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .pair span:last-child { text-align: right; }
.meter progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.meter progress::-webkit-progress-bar { background: var(--line); border-radius: var(--pill); }
.meter progress::-webkit-progress-value { background: var(--lime); border-radius: var(--pill); }
.meter progress::-moz-progress-bar { background: var(--lime); border-radius: var(--pill); }
.prime { display: flex; flex-direction: column; gap: 10px; }
.prime ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .list > li { animation: none; }
  .skel-row i { animation: none; }
  .pw-bar i { transition: none; }
}

/* road lines on the map (driver reports, approved community roads) */
.map-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.map-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-line--road { stroke: var(--lime); stroke-width: 5; }
.map-line--nearby { stroke: var(--warning); stroke-width: 3; stroke-dasharray: 6 6; }
.map-line--approved { stroke: var(--success); stroke-width: 4; }

/* delete my account */
.danger-link { color: var(--danger); align-self: center; }
.btn--danger-solid { background: var(--danger); color: #fff; }
.btn--danger-solid:disabled { opacity: .6; }
ul.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* safety, pickup PIN, shared trip */
.safety-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pin { font: 700 34px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 6px; margin: 4px 0; color: var(--accent); }
.share-map { height: 320px; border-radius: var(--r-md); overflow: hidden; position: relative; }
.plate { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #F5D90A; color: #111; font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; }
details > summary { cursor: pointer; }

/* help, receipts, saved places */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-places:empty { display: none; }
.lm-map { position: relative; height: 300px; border-radius: var(--r-md); overflow: hidden; }
.prewrap { white-space: pre-wrap; margin: 0; }
.chat-log { gap: 10px; }
.msg { padding: 10px 12px; border-radius: var(--r-md); max-width: 88%; display: flex; flex-direction: column; gap: 4px; }
.msg--me { background: var(--alt); align-self: flex-end; }
.msg--them { background: var(--raised); align-self: flex-start; }
table.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lines td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.lines td.end { text-align: right; }
table.lines tr.total td { font-weight: 700; border-bottom: 0; }
.saved-places .chip { border: 1px solid var(--line); min-height: 40px; }

/* Gate 38: sign in with Google. Google draws its own button in real builds; the demo stand-in looks like it. */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.google-g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 700; font-size: 15px; }

/* Gate 40: report a chat message, block */
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; align-self: flex-start; min-height: 32px; }
.msg--mine .linkbtn { display: none; }
.chat .report { margin-top: 8px; width: 100%; }

/* Privacy, terms and deletion links (App Store 5.1.1(i), Google Play) */
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; padding-top: 4px; }
.legal-links a { color: var(--muted); }
