@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap");

/* Tsss — "Accra dusk" theme: deep indigo, warm paper, taxi-corner yellow, terracotta and a little kente. */
:root {
  --bg: #faf6ee;
  --card: #ffffff;
  --surface-2: #f4eee3;
  --ink: #1a1840;
  --muted: #55526f;
  --line: #e6decf;
  --brand: #2d2a78;
  --brand-ink: #ffffff;
  --brand-soft: #ecebfb;
  --accent: #f6b70e;
  --accent-ink: #1a1840;
  --accent-soft: #fff3cf;
  --coral: #c23b22;
  --coral-soft: #fde9e3;
  --ok: #17785a;
  --ok-soft: #e1f4ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --focus: #2d2a78;
  --shadow: 0 1px 2px rgba(26, 24, 64, 0.06), 0 10px 30px -12px rgba(26, 24, 64, 0.18);
  --radius: 18px;
  --kente: repeating-linear-gradient(90deg, #f6b70e 0 22px, #c23b22 22px 30px, #17785a 30px 40px, #1a1840 40px 46px, #f6b70e 46px 52px, #2d2a78 52px 60px);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12112a;
    --card: #1b1a3a;
    --surface-2: #24234b;
    --ink: #f4f1ff;
    --muted: #bab6d8;
    --line: #34325f;
    --brand: #a9a4ff;
    --brand-ink: #12112a;
    --brand-soft: #2a2860;
    --accent: #ffc43d;
    --accent-ink: #12112a;
    --accent-soft: #3a3118;
    --coral: #ff9478;
    --coral-soft: #44221d;
    --ok: #66d7ab;
    --ok-soft: #173a30;
    --danger: #ff9b91;
    --danger-soft: #45201f;
    --focus: #ffc43d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button, a, summary { cursor: pointer; }
a { color: inherit; }
button { border: 0; background: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.small, .fine { font-size: 13.5px; color: var(--muted); }
.fine { margin-top: 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }

/* Logo: wordmark + a taxi-corner tile (Ghanaian taxis wear painted yellow corners). */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 30px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo i { display: inline-block; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent) 0 34%, var(--brand) 34% 100%); position: relative; font-size: 0; }
.logo i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -2px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 0 0 7px rgba(255, 255, 255, 0.12); }
@media (prefers-color-scheme: dark) { .logo i { background: linear-gradient(135deg, var(--accent) 0 34%, #4d48b8 34% 100%); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 20px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2; box-shadow: inset 0 -3px 0 rgba(26, 24, 64, 0.16); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; position: relative; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 -3px 0 rgba(26, 24, 64, 0.16), 0 8px 18px -8px rgba(246, 183, 14, 0.7); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.full { width: 100%; margin-top: 12px; }
.btn.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.secondary:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-ink); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn.secondary.is-loading::after, .btn.danger.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.quiet { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card); }
.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.text-link { font-weight: 600; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions .btn { flex: 1 1 140px; }

/* App shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--brand); color: #fff; padding: 28px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
@media (prefers-color-scheme: dark) { .side { background: #0c0b20; border-right: 1px solid var(--line); } }
.side .logo { color: #fff; }
.side::before { content: ""; display: block; height: 6px; margin: -28px -18px 22px; background: var(--kente); }
.tagline { font-size: 13px; color: rgba(255, 255, 255, 0.78); margin-top: 10px; }
.nav { display: grid; gap: 4px; margin-top: 34px; }
.nav button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 13px; color: rgba(255, 255, 255, 0.86); font-weight: 600; font-size: 15px; transition: background 0.15s; }
.nav button:hover { background: rgba(255, 255, 255, 0.08); }
.nav button.active { background: var(--accent); color: #1a1840; }
.nav b { display: inline-flex; width: 22px; justify-content: center; font-weight: 400; }
.nav button:focus-visible { outline-color: var(--accent); }
.side-bottom { margin-top: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); line-height: 1.6; }
.help { background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px; margin-bottom: 16px; color: rgba(255, 255, 255, 0.85); }
.help strong { display: block; color: #fff; margin-bottom: 3px; }
.main { padding: 0 clamp(16px, 3vw, 40px) 32px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--muted); }
.profile { display: flex; align-items: center; gap: 10px; }
.profile .name { display: grid; line-height: 1.2; }
.profile small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #1a1840; font-weight: 800; font-family: var(--display); flex: none; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 26px 0 18px; }
.intro p { color: var(--muted); margin-top: 6px; }
.intro .greet { display: block; font: 600 13px var(--font); letter-spacing: 0.04em; color: var(--coral); margin-bottom: 6px; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.live { background: var(--ok-soft); color: var(--ok); }
.pill.sim { background: var(--accent-soft); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 14px; margin-bottom: 20px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; min-width: 0; }
.card { scroll-margin-top: 130px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.card-top h2 { font-size: 21px; }
.card-top > .icon { color: var(--coral); width: 22px; height: 22px; }
.card h3 { margin: 20px 0 8px; }

/* Forms */
.field { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field input[readonly] { background: var(--surface-2); }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.route-inputs { position: relative; padding-left: 26px; }
.route-inputs::before { content: ""; position: absolute; left: 8px; top: 52px; bottom: 32px; border-left: 2px dashed var(--line); }
.route-inputs .field { position: relative; margin-top: 10px; }
.route-inputs .field::before { content: ""; position: absolute; left: -24px; top: 42px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3.5px solid var(--brand); }
.route-inputs .field:nth-child(2)::before { border-radius: 4px; background: var(--accent); border-color: var(--accent); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin-top: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choice:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice strong { display: block; font-size: 15px; }
.choice small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font: 800 30px/1 var(--display); letter-spacing: -0.03em; margin-top: 4px; }

/* Map */
.map-card { padding: 0; overflow: hidden; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; }
.map { position: relative; height: 340px; background: #efe6d4; }
.map svg { width: 100%; height: 100%; display: block; }
.map .route { fill: none; stroke: #2d2a78; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease-out forwards; }
.map .alt { fill: none; stroke: #c23b22; stroke-width: 3.5; stroke-dasharray: 7 7; stroke-linecap: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map-key { position: absolute; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.94); color: #1a1840; font-size: 12.5px; font-weight: 600; }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key i { display: inline-block; width: 18px; height: 0; border-top: 4px solid #2d2a78; border-radius: 3px; }
.map-key i.dash { border-top: 3px dashed #c23b22; }
.journey-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.journey-strip strong { display: block; }
.journey-strip small { display: block; color: var(--muted); font-size: 13px; }

/* Why Tsss card (replaces the old insight + tiles stack) */
.insight { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .insight { background: #2a2770; } }
.insight::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--kente); }
.insight h3 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.insight > p { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tile { background: rgba(255, 255, 255, 0.09); border-radius: 14px; padding: 13px; }
.tile .symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #1a1840; margin-bottom: 8px; }
.tile h3 { color: #fff; font-size: 14.5px; margin: 0 0 3px; }
.tile p { color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.45; }

/* Journey details */
.driver-card { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 12px; border-radius: 14px; background: var(--surface-2); }
.driver-card .avatar { width: 46px; height: 46px; font-size: 18px; }
.driver-card small { display: block; color: var(--muted); font-size: 13px; }
.plate { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--card); border: 1.5px solid var(--ink); font: 700 12.5px var(--font); letter-spacing: 0.06em; }
.consent { border-left: 5px solid var(--accent); }
.request .status { display: inline-flex; margin: 10px 0 4px; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: 13px; font-weight: 700; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.numbers > div { background: var(--surface-2); border-radius: 12px; padding: 11px 13px; }
.numbers strong { display: block; font: 800 20px var(--display); }
.progress-line { display: flex; gap: 6px; margin: 12px 0 4px; flex-wrap: wrap; }
.progress-line span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.progress-line span.done { background: var(--ok-soft); color: var(--ok); }
.stop { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.stop b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 13px; flex: none; }
.notice { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.notice.ok { background: var(--ok-soft); }
.notice.warn { background: var(--accent-soft); }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; margin-top: 12px; }
.code { margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--brand); color: #fff; font: 800 34px/1 var(--display); letter-spacing: 0.3em; text-align: center; }
@media (prefers-color-scheme: dark) { .code { background: var(--accent); color: #12112a; } }
.table-wrap { overflow-x: auto; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.main > section.card { max-width: 780px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metrics .card { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.metrics strong { display: block; color: var(--ink); font: 800 32px/1.1 var(--display); margin-top: 4px; }
details { margin-top: 14px; }
details summary { font-weight: 700; padding: 6px 0; }
.spot { animation: spot 1.6s ease-out 1; }
@keyframes spot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 80%, transparent), var(--shadow); } 100% { box-shadow: 0 0 0 16px transparent, var(--shadow); } }

/* Login */
.login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px clamp(24px, 4vw, 56px); color: #fff; background: linear-gradient(180deg, rgba(18, 17, 42, 0.55), rgba(18, 17, 42, 0.92)), url("/img/accra-street-1600.webp") center / cover, #1a1840; }
.login-art .logo { color: #fff; }
.login-art h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; margin: 14px 0; }
.login-art h1 em { font-style: normal; color: var(--accent); }
.login-art p { color: rgba(255, 255, 255, 0.88); max-width: 440px; }
.login-art .eyebrow { color: var(--accent); }
.login-art .btn.secondary { align-self: flex-start; background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.login-line { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--kente); }
.credit { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.credit a { color: inherit; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-inner { width: min(420px, 100%); }
.login-inner footer { margin-top: 30px; }
.accounts, .login-warning { display: none; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer a { color: inherit; }

#toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 14px; background: #1a1840; color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45); transform: translate(-50%, 140%); opacity: 0; transition: transform 0.25s ease, opacity 0.25s; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.error { background: #8f1d14; }
#toast.ok::before, #toast.error::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
#toast.error::before { background: #ffb4ab; }
@media (prefers-color-scheme: dark) { #toast { background: #f4f1ff; color: #12112a; } #toast.error { background: #ffb4ab; color: #410002; } #toast.error::before { background: #8f1d14; } }

.loading { min-height: 100vh; display: grid; place-items: center; gap: 12px; text-align: center; color: var(--muted); }
.loading .logo { justify-content: center; }
.loading-bar { width: 160px; height: 5px; border-radius: 9px; background: var(--kente); background-size: 200% 100%; animation: slide 1.2s linear infinite; margin: 12px auto 0; }
@keyframes slide { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; align-items: start; }
  .tile .symbol { grid-row: span 2; margin: 0; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .map { height: 300px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { min-height: 0; gap: 26px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; padding: 0 12px 10px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow: visible; }
  .side::before { flex: 0 0 calc(100% + 24px); margin: 0 -12px 2px; height: 4px; }
  .side .logo { font-size: 24px; }
  .side .logo i { width: 24px; height: 24px; border-radius: 7px; }
  .side .logo i::after { width: 7px; height: 7px; }
  .tagline, .side-bottom { display: none; }
  .nav { flex: 1 0 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; }
  .nav button { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 12px; text-align: center; border-radius: 11px; }
  .main { padding: 0 16px 96px; }
  .topbar { min-height: 60px; }
  .breadcrumb { display: none; }
  .topbar { justify-content: flex-end; }
  .profile .name { display: none; }
  .profile .quiet { white-space: nowrap; padding: 8px 11px; font-size: 13.5px; }
  .intro { padding: 18px 0 14px; align-items: flex-start; }
  .intro h1 { font-size: 28px; }
  .intro > .pill { display: none; }
  .card { padding: 18px; }
  .map-card { padding: 0; }
  .map { height: 250px; }
  .metrics { gap: 8px; }
  .metrics .card { padding: 13px; font-size: 12px; }
  .metrics strong { font-size: 24px; }
  .numbers { grid-template-columns: 1fr; }
  .login-art { padding: 24px 20px 30px; }
  .login-art h1 { font-size: 38px; }
  .login-form { padding: 28px 18px 40px; }
  #toast { bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .map .route { stroke-dashoffset: 0; }
}

/* Human touches: drawn portraits, rider notes, a real Accra photo */
.face { border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 2px var(--card); }
.who-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bubble { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.bubble > div { position: relative; background: var(--surface-2); border-radius: 4px 16px 16px 16px; padding: 9px 13px; font-size: 14px; min-width: 0; }
.bubble strong { font-size: 13.5px; }
.bubble small { color: var(--muted); font-size: 12px; }
.bubble p { margin-top: 2px; line-height: 1.45; }
.driver-card + .bubble { margin-top: 10px; }
.insight-photo { margin: -22px -22px 16px; position: relative; }
.insight-photo img { display: block; width: 100%; height: 170px; object-fit: cover; }
.insight-photo figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11.5px; color: #fff; background: rgba(18, 17, 42, 0.6); padding: 2px 8px; border-radius: 99px; }
.demo-perspectives .quiet .face { box-shadow: none; }
.profile .face { box-shadow: 0 0 0 2px var(--accent); }
