/* Zovy in the browser: Carbon and Ember (tokens.css), one column like the phone. Colours, fonts and corners come from the --z-* tokens. */
:root { --col: 560px; }
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--z-page); color: var(--z-ink); -webkit-font-smoothing: antialiased; }
body { font: 16px/1.45 var(--z-font-body); min-height: 100dvh; }
h1, h2, h3 { font-family: var(--z-font-title); letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: 26px; font-weight: 600; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
a { color: var(--z-accent-text); }
:focus-visible { outline: 2px solid var(--z-accent-text); outline-offset: 2px; }
html.no-opening #opening { display: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--z-ink-muted); }
.small { font-size: 14px; }
.bad { color: var(--z-error); }
.good { color: var(--z-talking); }
.view { max-width: var(--col); margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px 110px; }
.view.full { padding-bottom: 0; }

.head { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 14px; }
.head h1, .head h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.iconbtn { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; text-decoration: none; color: var(--z-ink); }
.iconbtn:hover { background: var(--z-fill); }
.dotn { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--z-accent-fill); color: var(--z-on-accent); font: 600 12px/18px var(--z-font-num); font-variant-numeric: tabular-nums; text-align: center; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--z-hairline); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs a { position: relative; flex: 1; max-width: 186px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 13px; font-weight: 500; color: var(--z-on-glass-muted); text-decoration: none; }
.tabs a.on { color: var(--z-on-glass); font-weight: 600; }
.tabs a .dotn { top: 3px; right: calc(50% - 26px); }
.tabs[hidden] { display: none; }

.card { display: block; background: var(--z-raised); border: 1px solid var(--z-hairline); border-radius: var(--z-r-card); padding: 16px 18px; margin-bottom: 14px; color: inherit; text-decoration: none; }
.card.flat { }
.card.tint { background: var(--z-accent-soft); border-color: transparent; }
.card.warm { background: var(--z-accent-soft); border-color: transparent; }
.card h2 + p, .card h3 + p { margin-top: 3px; }
.ridecard { padding: 0; overflow: hidden; }
.cover { position: relative; min-height: 118px; padding: 14px 18px; background: linear-gradient(135deg, var(--z-raised) 0%, var(--z-fill-strong) 100%); color: var(--z-ink); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cover:before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: var(--z-fill); }
.cover > * { position: relative; z-index: 1; }
.cover h1, .cover h2 { color: var(--z-ink); }
.cover p { font-weight: 600; font-size: 15px; opacity: .95; margin-top: 2px; }
.cover .chip { position: absolute; top: 12px; left: 14px; }
.cover.big { min-height: 176px; border-radius: var(--z-r-card); margin-bottom: 14px; }
.ridecard .body { padding: 12px 18px 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--z-fill-strong); color: var(--z-ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip.live { background: var(--z-talking); color: var(--z-on-talking); }
.chip.soft { background: var(--z-fill); }
.chip.warn { background: var(--z-accent-soft); color: var(--z-accent-text); }
.meta { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.meta .ic { color: var(--z-accent-text); margin-top: 3px; }
.meta:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.row + .row { border-top: 1px solid var(--z-hairline); }
.row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row .amt { font-family: var(--z-font-num); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.row { color: inherit; text-decoration: none; }

.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--z-font-title); flex: none; object-fit: cover; border: 2px solid var(--z-page); background: var(--z-avatar-bg); color: var(--z-avatar-ink); }
.av.sm { width: 30px; height: 30px; font-size: 12px; }
.av.lg { width: 74px; height: 74px; font-size: 28px; }
.faces { display: flex; align-items: center; }
.faces .av { margin-left: -8px; }
.faces .av:first-child { margin-left: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 18px; border: 0; border-radius: var(--z-r-button); font-weight: 600; background: var(--z-accent-fill); color: var(--z-on-accent); cursor: pointer; text-decoration: none; text-align: center; width: 100%; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: var(--z-fill); color: var(--z-ink); }
.btn.soft { background: var(--z-accent-soft); color: var(--z-accent-text); }
.btn.danger { background: var(--z-error-soft); color: var(--z-error); }
.btn.mini { min-height: 38px; padding: 6px 14px; border-radius: var(--z-r-button); font-size: 15px; width: auto; }
.btns { display: flex; gap: 10px; margin: 10px 0; }
.btns > * { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--z-accent-text); font-weight: 600; cursor: pointer; text-decoration: none; }
.link.bad { color: var(--z-error); }
.fab { position: fixed; right: max(18px, calc(50vw - var(--col) / 2 + 18px)); bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; border-radius: 999px; box-shadow: 0 8px 24px -6px var(--z-scrim); z-index: 4; }

.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.f small { display: block; color: var(--z-ink-muted); font-size: 14px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
	width: 100%; min-height: 50px; padding: 11px 14px; border-radius: var(--z-r-md); border: 1.5px solid color-mix(in srgb, var(--z-ink-muted) 70%, transparent); background: var(--z-fill); font-size: 16px; outline: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--z-accent-text); }
textarea { min-height: 84px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--z-accent-fill); flex: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: block; padding: 9px 14px; border-radius: var(--z-r-md); border: 1.5px solid var(--z-hairline); background: var(--z-fill); font-weight: 500; white-space: nowrap; }
.pick input:checked + span { background: var(--z-accent-fill); border-color: var(--z-accent-fill); color: var(--z-on-accent); }
.pick input:focus-visible + span { outline: 2px solid var(--z-accent-text); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 11px; margin: 26px 0 22px; }
.brand .mk { width: 44px; height: 44px; border-radius: var(--z-r-md); background: var(--z-accent-fill); color: var(--z-on-accent); display: grid; place-items: center; }
.brand b { font: 600 25px/1 var(--z-font-title); letter-spacing: -.03em; }
.otp { font-family: var(--z-font-num); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .32em; font-size: 22px !important; text-align: center; }
.empty { text-align: center; padding: 34px 18px; color: var(--z-ink-muted); }
.empty h2 { color: var(--z-ink); margin-bottom: 4px; }
.sec-title { margin: 22px 0 10px; }
.spin { display: grid; place-items: center; padding: 60px 0; color: var(--z-ink-muted); }

.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: var(--col); margin: 0 auto; max-height: 88dvh; border: 0; border-radius: var(--z-r-sheet) var(--z-r-sheet) 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--z-raised); color: var(--z-ink); overflow-y: auto; }
.sheet::backdrop { background: var(--z-scrim); }
.sheet h2 { margin-bottom: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); width: max-content; max-width: min(92vw, 520px); padding: 11px 16px; border-radius: var(--z-r-md); background: var(--z-ink); color: var(--z-page); z-index: 100; }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 4px; border: 0; background: none; font-weight: 500; cursor: pointer; text-align: left; color: inherit; text-decoration: none; }
.menu button + button, .menu a + button { border-top: 1px solid var(--z-hairline); }
.menu .bad { color: var(--z-error); }
.menu .grow { flex: 1; min-width: 0; }
.menu a + a, .menu button + a, .menu a + button { border-top: 1px solid var(--z-hairline); }
.menuprofile { display: flex; align-items: center; gap: 14px; padding: 6px 2px 10px; color: inherit; text-decoration: none; }
.menuprofile .grow { flex: 1; min-width: 0; }
.menuprofile b { font: 600 19px var(--z-font-title); }
.menutitle { margin: 16px 2px 8px; color: var(--z-ink-muted); font-size: 14px; }
.menu button + button.off { border-top: 1px solid var(--z-hairline); }
button.off { color: var(--z-ink-muted); opacity: .55; cursor: default; }
.rowtxt { display: flex; flex-direction: column; align-items: flex-start; } .rowtxt small { font-size: 13px; font-weight: 400; }

.chat { display: flex; flex-direction: column; height: 100dvh; max-width: var(--col); margin: 0 auto; }
.chat .head { padding: calc(8px + env(safe-area-inset-top)) 12px 8px; margin: 0; background: var(--z-page); border-bottom: 1px solid var(--z-hairline); }
.msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.note { background: var(--z-accent-soft); border-radius: var(--z-r-md); padding: 9px 13px; font-size: 15px; margin-bottom: 6px; overflow-wrap: anywhere; }
.livebar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--z-talking); color: var(--z-on-talking); font-weight: 600; font-size: 15px; }
.m { max-width: 82%; align-self: flex-start; background: var(--z-raised); border: 1px solid var(--z-hairline); border-radius: var(--z-r-md) var(--z-r-md) var(--z-r-md) var(--z-r-tag); padding: 8px 12px; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.m.me { align-self: flex-end; background: var(--z-accent-soft); border-color: transparent; border-radius: var(--z-r-md) var(--z-r-md) var(--z-r-tag) var(--z-r-md); }
.m .who { font-weight: 600; font-size: 14px; color: var(--z-accent-text); display: block; }
.m .when { display: block; font-size: 12px; color: var(--z-ink-muted); margin-top: 1px; text-align: right; }
.m img { display: block; max-width: 100%; max-height: 320px; border-radius: var(--z-r-sm); margin: 3px 0; }
.m .rp { display: block; border-left: 3px solid var(--z-hairline); padding-left: 8px; font-size: 14px; color: var(--z-ink-muted); margin-bottom: 3px; }
.m.removed { font-style: italic; color: var(--z-ink-muted); }
.sys { align-self: center; font-size: 14px; color: var(--z-ink-muted); text-align: center; padding: 3px 8px; }
.cardmsg { align-self: stretch; max-width: 100%; background: var(--z-raised); border: 1px solid var(--z-hairline); border-radius: var(--z-r-md); padding: 10px 13px; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.cardmsg .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--z-raised); border-top: 1px solid var(--z-hairline); }
.compose textarea { flex: 1; min-height: 44px; max-height: 120px; height: 44px; padding: 9px 13px; border-radius: 22px; resize: none; }
.compose .send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--z-accent-fill); color: var(--z-on-accent); display: grid; place-items: center; cursor: pointer; flex: none; }
.replying { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--z-accent-soft); font-size: 14px; }
.replying span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* The chat's money bar and its ledger (phase 5). Colours are theme tokens only. */
.moneybar { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); min-height: 60px; margin: 6px 12px 2px; padding: 6px 10px 6px 14px; border: 1px solid var(--z-hairline); border-radius: 18px; background: var(--z-raised); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.moneybar .mbmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.moneybar .mbbig { font-size: 17px; font-weight: 600; white-space: nowrap; }
.moneybar .mbcap { color: var(--z-ink-muted); font-size: 13px; overflow-wrap: anywhere; }
.moneybar .mbgo { display: flex; align-items: center; flex: none; gap: 2px; color: var(--z-accent-text); font-weight: 600; white-space: nowrap; }
.moneybar .warn { color: var(--z-warning); }
.mbtick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--z-fill); }
@media (max-height: 640px) { .chat:has(.compose textarea:focus) .moneybar { display: none; } }
.ledger { display: flex; flex-direction: column; }
.lghead .lgbig { font: 600 34px/1.1 var(--z-font-num); }
.lghead h2 { margin: 2px 0; }
.lglist { overflow-y: auto; max-height: min(48dvh, 440px); margin: 8px -4px 4px; padding: 0 4px; }
.lgrow { min-height: 56px; }
.lgrow .lgname { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lgshare { opacity: .75; }
.lgstatus { display: flex; align-items: center; gap: 10px; min-height: 56px; color: var(--z-ink-muted); }
.lgstatus span { flex: 1; }

.qr { display: block; width: 220px; height: 220px; margin: 8px auto; background: white; /* QR codes stay on white in both modes */ padding: 12px; border-radius: var(--z-r-lg); image-rendering: pixelated; }
.hide { display: none !important; }
/* Press feedback is 160 ms feedback, not travel, so it stays under reduced motion (s3-look 6.5). */
.btn, .iconbtn, .pickchip, .tabs a { transition: transform var(--z-press-ms) var(--z-ease-out), background-color 200ms, filter .12s; }
.btn:active, .iconbtn:active, .pickchip:active { transform: scale(.97); }
.sheet[open] { animation: sheet-in 480ms var(--z-ease-drawer); }
.sheet[open]::backdrop { animation: fade-in 200ms ease-out; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
/* A real screen change fades in over 200 ms (s3-look 6.5); re-paints of the same screen do not (app.js paint). */
.fadein { animation: fade-in 200ms ease-out; }

/* Maps and the live ride */
.mapbox { position: relative; height: 210px; border-radius: var(--z-r-lg); overflow: hidden; margin-bottom: 12px; background: var(--z-fill); z-index: 0; }
.mapbox.tall { height: 300px; }
.mpin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.mpin b { background: var(--z-pin); border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 600; line-height: 1.4; box-shadow: 0 1px 4px var(--z-scrim); white-space: nowrap; color: var(--z-pin-ink); }
.mpin i { width: 15px; height: 15px; border-radius: 50%; background: var(--z-accent); border: 2.5px solid var(--z-pin); box-shadow: 0 1px 3px var(--z-scrim); margin-bottom: -7px; }
.mpin.me i { background: var(--z-you); }
.mpin.dim i { background: var(--z-lost); }
.mpin.dim b { color: var(--z-pin-ink); opacity: .7; }
.mpin.pinflag i { background: var(--z-ink); }
.mpin.alarm i { background: var(--z-sos); width: 20px; height: 20px; }
.mpin.alarm b { background: var(--z-sos); color: var(--z-on-sos); }
.centerpin { position: absolute; left: 50%; top: 50%; z-index: 500; pointer-events: none; }
.centerpin i { display: block; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--z-accent); border: 3px solid var(--z-pin); box-shadow: 0 1px 4px var(--z-scrim); }
.cockpit { position: relative; height: 100dvh; max-width: var(--col); margin: 0 auto; overflow: hidden; }
.cockmap { position: absolute; inset: 0; z-index: 0; }
.cockdim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: black; opacity: 0; transition: opacity .4s; }
.moving .cockdim { opacity: .14; }
.cocklayer { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; pointer-events: none; }
.cocklayer a, .cocklayer button, .panel { pointer-events: auto; }
/* Floating cockpit chrome is glass (tokens.css .glass): the markup adds both classes. */
.panel { color: var(--z-on-glass); border: 0; }
.panel .muted, .panel small { color: var(--z-on-glass-muted); }
.panel.pad { border-radius: var(--z-r-lg); padding: 10px 14px; }
.cocktop { padding: calc(8px + env(safe-area-inset-top)) 12px 8px; display: grid; gap: 8px; }
.cockrow { display: flex; align-items: center; gap: 8px; }
.cockrow .iconbtn.panel { width: 48px; height: 48px; color: var(--z-ink); flex: none; }
.movingcard { border-radius: var(--z-r-lg); padding: 12px 16px; display: grid; gap: 4px; }
.movingcard h2 { font-size: 26px; color: var(--z-on-glass-muted); }
.packline { font-size: 15px; }
.cocktopstack { display: grid; gap: 8px; }
.whereto { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 16px; border-radius: 99px; cursor: pointer; font: inherit; text-align: left; }
.destcard { display: grid; gap: 2px; border-radius: var(--z-r-lg); padding: 6px 6px 6px 14px; }
.destrow { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.destrow .grow { flex: 1; min-width: 0; }
.destrow > .ic { color: var(--z-accent-text); flex: none; }
.navoff { border: 0; background: none; font-weight: 600; padding: 6px 8px; }
.addstop { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; justify-self: start; }
.destsearch { border-radius: 20px; padding: 10px; }
.destfield { display: flex; align-items: center; gap: 8px; }
.destfield input { flex: 1; min-width: 0; }
.destfield button { flex: none; min-height: 44px; padding: 0 6px; }
.destsearch .menu button { min-height: 52px; }
.statuspill { display: grid; gap: 1px; min-height: 48px; min-width: 0; padding: 5px 14px 5px 7px; border-radius: 24px; cursor: pointer; font: inherit; text-align: left; font-weight: 600; }
.statusline { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.statuspill small { font-size: 12px; font-weight: 500; color: var(--z-on-glass-muted); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.destopen { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; padding: 3px 0; min-width: 0; color: inherit; }
.destopen b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.destopen br { display: none; }
.floatsos { position: absolute; left: 12px; bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 3; pointer-events: auto; }
.dockbtn.floatsos .round { width: 68px; height: 68px; background: var(--z-sos-disc); box-shadow: inset 0 0 0 3px var(--z-sos-ring), 0 6px 18px -6px var(--z-scrim); }
.dockbtn.floatsos b { position: relative; font: 700 17px var(--z-font-title); color: var(--z-sos-ring); }
.floatoptions { position: absolute; right: 12px; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 3; width: 50px; height: 50px; pointer-events: auto; color: var(--z-ink); }
.floatoptions.hide { display: none; }
.cockmid { position: relative; flex: 1; min-height: 0; }
.cockstack { max-height: 100%; overflow-y: auto; padding: 0 12px; display: grid; gap: 8px; }
.cockstack > * { pointer-events: auto; }
.regroupline { display: flex; align-items: center; gap: 10px; }
.regroupline .grow { flex: 1; min-width: 0; }
.mapbtns { position: absolute; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.mapbtns .iconbtn.panel { width: 50px; height: 50px; color: var(--z-ink); }
.moving .fitbtn { display: none; }
.dockbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-weight: 500; font-size: 14px; color: var(--z-ink); cursor: pointer; }
.dockbtn .round { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--z-fill); color: var(--z-ink-muted); overflow: hidden; }
.dockbtn.ghost .round { background: none; box-shadow: inset 0 0 0 1.5px var(--z-ink-muted); }
.dockbtn.sos { color: var(--z-sos-ring); font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dockbtn.sos .round { background: var(--z-sos-disc); box-shadow: inset 0 0 0 3px var(--z-sos-ring); color: var(--z-sos-ring); }
.dockbtn.sos .ic { position: relative; }
.dockbtn.sos .fill { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--z-sos-ring) 40%, transparent); transform: scale(0); }
.dockbtn.sos.holding .fill { transform: scale(1); transition: transform 1.5s linear; }
.moretop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.moretop button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; border: 0; background: none; padding: 0 4px; font-weight: 500; }
.sheet h3 { margin: 14px 0 6px; }
.qrbox { display: flex; justify-content: center; margin: 4px 0; }
.qrbox canvas { width: 168px; height: 168px; image-rendering: pixelated; border-radius: var(--z-r-sm); background: white; }
.morecode { text-align: center; font: 600 20px var(--z-font-title); letter-spacing: .02em; margin-bottom: 8px; }
.riderrow { width: 100%; background: none; border-width: 0; text-align: left; cursor: pointer; }
.alarmbar { display: flex; align-items: center; gap: 10px; background: var(--z-sos); color: var(--z-on-sos); padding: 10px 14px; margin: 0 12px 8px; border-radius: var(--z-r-md); }
.alarmbar .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.alarmbar .btn { background: var(--z-on-sos); color: var(--z-sos); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
a.livebar { text-decoration: none; }

.faq details + details { border-top: 1px solid var(--z-hairline); }
.faq summary { padding: 12px 2px; font-weight: 600; cursor: pointer; }
.faq details p { padding: 0 2px 12px; }
.legal { display: flex; flex-direction: column; gap: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.pastroom { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pastroom .grow { flex: 1; min-width: 0; }
.pasticon { flex: none; width: 48px; height: 48px; border-radius: var(--z-r-md); background: var(--z-accent-fill); color: var(--z-on-accent); display: flex; align-items: center; justify-content: center; }
.rejoin { flex: none; color: var(--z-accent-text); font-weight: 600; }

.rowline { display: flex; align-items: center; gap: 8px; }
.rowline .grow { flex: 1; min-width: 0; }
.iconbtn.small { width: 36px; height: 36px; }
.post { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.postwho { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.posttext { white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { font-weight: 600; text-decoration: none; }
.kindtag { flex: none; font-size: 12px; font-weight: 600; color: var(--z-accent-text); background: var(--z-accent-soft); border-radius: 99px; padding: 3px 10px; }
.postphoto { display: block; width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 14px; }
.postbox { background: var(--z-fill); border-radius: var(--z-r-md); padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.spotmap { display: flex; align-items: center; justify-content: center; min-height: 72px; border-radius: var(--z-r-sm); background: var(--z-fill); margin: -2px 0 6px; position: relative; overflow: hidden; }
.spotcanvas { position: relative; width: 100%; height: 150px; }
.postacts { display: flex; gap: 4px; margin: -4px 0 -6px; }
.postacts button, .postacts a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--z-ink-muted); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border-radius: 12px; }
.postacts .liked { color: var(--z-like); }
.postacts .liked svg { fill: currentColor; }
.postcompose { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.postcomposeline { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.postcomposebox { flex: 1; border: 1px solid var(--z-hairline); border-radius: 99px; padding: 8px 14px; color: var(--z-ink-muted); font-size: 15px; }
.postcomposekinds { display: flex; justify-content: space-between; }
.postcomposekinds a { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.chiprow { display: flex; gap: 8px; margin-bottom: 12px; }
.chiprow.scroll { overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.pickchip { flex: none; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--z-hairline); border-radius: 99px; background: var(--z-fill); font-weight: 600; font-size: 15px; cursor: pointer; }
.pickchip.on { background: var(--z-accent-fill); border-color: var(--z-accent-fill); color: var(--z-on-accent); }
.comment { display: flex; gap: 10px; margin-bottom: 10px; }
.commentbody { flex: 1; min-width: 0; background: var(--z-raised); border: 1px solid var(--z-hairline); border-radius: var(--z-r-md); padding: 6px 12px 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.commentbody a { color: inherit; text-decoration: none; }
.commentform { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.commentform input { flex: 1; min-width: 0; }
.riderhero { position: relative; height: 130px; margin: -14px -18px 0; background: linear-gradient(135deg, var(--z-raised), var(--z-fill-strong)); }
.floaty { position: absolute; top: 12px; left: 12px; background: var(--z-glass-fallback); color: var(--z-on-glass); }
.floaty.right { left: auto; right: 12px; }
.rideravatar { position: absolute; left: 18px; bottom: -36px; border-radius: 50%; border: 3px solid var(--z-page); display: flex; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 12px 4px; }
.stats b { display: block; font: 600 17px var(--z-font-num); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--z-ink-muted); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { background: var(--z-raised); border: 1px solid var(--z-hairline); border-radius: var(--z-r-md); padding: 12px 6px; text-align: center; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badgeicon { width: 40px; height: 40px; border-radius: 50%; background: var(--z-accent-soft); color: var(--z-accent-text); display: flex; align-items: center; justify-content: center; }

/* The server's switches and build numbers (app.js loadConfig) */
[data-feature][hidden], [data-feature-off][hidden] { display: none !important; }
#updatebar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 12px; justify-content: center; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--z-ink); color: var(--z-page); font-size: 14px; }
#updatebar[hidden] { display: none; }
#updatebar button { border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; background: var(--z-page); color: var(--z-ink); cursor: pointer; }

/* The hairpin Z opening (s3-look 6.9, 7.6): always the dark night road, whatever the theme. Draw 1000 ms, the word, hold, fade out by 1.84 s. */
#opening { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--z-page); color: var(--z-ink); cursor: pointer; animation: op-out 320ms var(--z-ease-io) 1520ms forwards; }
#opening .oz { stroke: var(--z-ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: op-draw 1000ms cubic-bezier(.65, 0, .35, 1) forwards; }
#opening .od { fill: var(--z-accent); stroke: none; }
#opening .ow { font: 600 34px/1 var(--z-font-title); letter-spacing: -.03em; opacity: 0; transform: translateY(6px); animation: op-fade 260ms linear 1000ms forwards, op-rise 420ms var(--z-ease-out) 1000ms forwards; }
@keyframes op-draw { to { stroke-dashoffset: 0; } }
@keyframes op-fade { to { opacity: 1; } }
@keyframes op-rise { to { transform: none; } }
@keyframes op-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
	#opening { animation-delay: 700ms; }
	#opening svg { display: none; }
	#opening .ow { animation: none; opacity: 1; transform: none; }
}

/* ---- Simple Zovy, phase 4 (s2 7): the next-ride card, the message slot, the plan map's pins. Tokens only. ---- */
.nextride { position: relative; overflow: hidden; margin-bottom: 14px; padding: 12px; border-radius: var(--z-r-card); border: 1px solid var(--z-hairline); background: var(--z-accent-soft); color: var(--z-ink); }
.nr-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--z-accent-text); opacity: .35; pointer-events: none; }
.nr-body { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: var(--z-r-lg); }
.nr-title { font: 600 26px/1.15 var(--z-font-title); letter-spacing: -.03em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nr-lines { display: grid; gap: 6px; }
.nr-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nr-line .ic { color: var(--z-accent-text); flex: none; }
.nr-line span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-line.sticky { font-weight: 600; }
.nr-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 4px; }
.nr-skeleton { height: 150px; border-radius: var(--z-r-card); background: var(--z-fill); margin-bottom: 14px; }
.nr-stale { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }

.emergencies { max-height: 55vh; overflow-y: auto; }
.emergencies:empty { display: none; }
.emergencies .alarmbar a.btn, .emergencies .alarmbar button.btn { width: auto; }
.slot { display: flex; align-items: center; gap: 10px; min-height: 44px; border-radius: var(--z-r-md); padding: 8px 14px; }
.slot .ic { flex: none; }
.slot .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.slot .more { flex: none; font-size: 13px; color: var(--z-on-glass-muted); }
.slot .btn { width: auto; flex: none; }
.statuspill.inert { cursor: default; }
.routenote { margin: 2px 2px 8px; font-size: 12px; color: var(--z-ink-muted); }
.routenote p + p { margin-top: 2px; }
.cocktopstack .routenote { margin: 0 6px; color: var(--z-on-glass-muted); text-shadow: 0 0 6px var(--z-scrim); }

/* Hollow marks on the live map (s2 6.7). The plan map's own styles are the .pl- and .pdot rules below (7A). */
.mpin.mark i { background: transparent; box-shadow: none; border-color: var(--z-accent); }
body.pm-lock { overflow: hidden; }
.pm-map { position: absolute; inset: 0; }
.pm-nomap { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.pm-search { display: flex; align-items: center; gap: 8px; border-radius: 99px; padding: 0 14px; min-height: 44px; }
.pm-search input[type=search] { flex: 1; min-width: 0; min-height: 42px; padding: 0; border: 0; background: none; color: inherit; font-size: 16px; }
.pm-results { margin-top: 6px; border-radius: var(--z-r-lg); padding: 6px; max-height: 220px; overflow-y: auto; }
.pm-pophead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.pm-kind { border: 0; cursor: pointer; min-height: 40px; font: inherit; font-weight: 600; }
.dropring { position: absolute; z-index: 3; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid var(--z-accent); pointer-events: none; transform: scale(.4); }
.dropring.go { animation: dropring 430ms linear forwards; }
@keyframes dropring { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dropring { display: none; } }
.nextride[data-stage="NONE"] .nr-line span:last-child { white-space: normal; }

/* ---- Profile tab, people, Menu at the top right (phase 4C). Tokens only. ---- */
.headbtns { display: flex; align-items: center; flex: none; }
.av.xs { width: 24px; height: 24px; font-size: 11px; border: 0; box-shadow: 0 0 0 1.5px var(--z-on-glass-muted); }
.tabs a.on .av.xs { box-shadow: 0 0 0 1.5px var(--z-on-glass); }
.iconbtn.glass { border-radius: var(--z-r-md); color: var(--z-on-glass); }
.iconbtn.glass:hover { background-color: var(--z-glass-tint); }
.pf { position: relative; }
.pfnav { position: sticky; top: 0; height: 0; z-index: 7; display: block; }
.pfnav > *, .pfnavr { position: absolute; top: calc(10px + env(safe-area-inset-top)); }
.pfnav > :first-child:not(.pfnavr) { left: 0; }
.pfnav > :last-child { right: 0; }
.pfnavr { display: flex; gap: 6px; }
.pfnavr .iconbtn { position: relative; }
.pfhero { position: relative; height: 256px; margin: calc(-14px - env(safe-area-inset-top)) -18px 0; padding-top: env(safe-area-inset-top); }
.pfhero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pfhero svg.ln { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.ln path { fill: none; stroke: var(--z-accent); stroke-linecap: round; stroke-linejoin: round; }
.ln .gl { opacity: .2; stroke-width: 12; }
.ln .ml { stroke-width: 4; }
.ln circle { fill: var(--z-accent); stroke: var(--z-ink); stroke-width: 2.5; }
.pfhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(transparent, var(--z-page)); pointer-events: none; }
.pfhero .ti { position: absolute; left: 18px; right: 18px; bottom: 2px; z-index: 2; min-width: 0; }
.pfhero h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.pfhero p { font-size: 15px; margin-top: 3px; color: var(--z-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfhero .av.lg { margin-bottom: 8px; }
.kmrow { padding: 10px 0 0; display: flex; align-items: baseline; gap: 7px; }
.kmrow .big { font-size: 52px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.kml { color: var(--z-ink-muted); font-size: 15.5px; }
.bio { padding-top: 4px; font-size: 16px; overflow-wrap: anywhere; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-block: 1px solid var(--z-hairline); }
.st { background: none; border: 0; color: inherit; text-align: left; padding: 10px 0; min-height: 60px; cursor: pointer; font: inherit; }
.st b { display: block; font-size: 23px; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.st span { font-size: 14px; color: var(--z-ink-muted); }
.acts2 { display: flex; gap: 8px; padding: 12px 0 2px; flex-wrap: wrap; }
.acts2 > .btn { flex: 1 1 140px; min-width: 0; padding: 10px; }
.acts2.flush { padding-top: 10px; }
.proof { padding-top: 10px; display: grid; gap: 3px; font-size: 15px; color: var(--z-ink-muted); }
.proof p { display: flex; gap: 7px; align-items: flex-start; line-height: 1.3; }
.proof .ic { margin-top: 2px; }
.fresh { text-wrap: balance; padding: 12px 0 2px; font: 600 24px/1.12 var(--z-font-title); letter-spacing: -.025em; }
.sechd { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.sechd b { font: 600 15px var(--z-font-title); letter-spacing: -.01em; }
.sechd .link { color: var(--z-ink-muted); }
.sug, .prow { display: flex; align-items: center; gap: 12px; padding: 4px 0; min-height: 58px; overflow: hidden; transition: height 340ms var(--z-ease-drawer), opacity 200ms ease, min-height 340ms var(--z-ease-drawer), padding 340ms var(--z-ease-drawer); }
.sug.gone { height: 0 !important; min-height: 0; padding-block: 0; opacity: 0; }
.sugwho { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.sugwho .grow { flex: 1; min-width: 0; }
.sugwho b { display: block; font: 500 16px/1.2 var(--z-font-title); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugwho .grow > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow { border-top: 1px solid var(--z-hairline); }
.fol { width: 112px; min-height: 44px; flex: none; border-radius: var(--z-r-button); border: 0; background: var(--z-ink); color: var(--z-page); font: 600 15px var(--z-font-body); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform var(--z-press-ms) var(--z-ease-out); }
.fol.on { background: var(--z-fill); color: var(--z-ink); }
.fol.on .ic, .btn[data-fol].sec .ic { animation: fol-pop 300ms var(--z-ease-out); }
@keyframes fol-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.pfbar { position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 6; padding: 12px 0 8px; }
.pills { position: relative; display: flex; border-radius: var(--z-r-md); padding: 3px; }
.pills.wide { margin: 4px 0 10px; background: var(--z-fill); }
.pills button { position: relative; z-index: 1; flex: 1; min-width: 0; min-height: 40px; padding: 0 6px; border: 0; background: none; border-radius: var(--z-r-sm); font-weight: 600; font-size: 14.5px; color: var(--z-ink-muted); cursor: pointer; transition: color 200ms ease; }
.pills button.on { color: var(--z-ink); }
.pills i { position: absolute; z-index: 0; left: 3px; top: 3px; bottom: 3px; width: 0; border-radius: var(--z-r-sm); background: var(--z-fill-strong); transition: transform 260ms var(--z-ease-drawer), width 260ms var(--z-ease-drawer); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.16; overflow: hidden; background: var(--z-fill); border: 0; border-radius: 3px; padding: 0; color: inherit; text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile.ride::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(transparent, var(--z-page)); pointer-events: none; }
.kmk { position: absolute; z-index: 1; left: 7px; bottom: 6px; font-size: 18px; line-height: 1; }
.kmk .num { font-size: 18px; }
.kmk small { font-size: 11.5px; color: var(--z-ink-muted); margin-left: 2px; }
.pinm { position: absolute; z-index: 2; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--z-on-glass); }
.spot { position: absolute; z-index: 1; left: 5px; right: 5px; bottom: 5px; border-radius: 7px; padding: 4px 6px; display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.1; color: var(--z-on-glass); }
.spot > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The plan map's `.plan` (position: fixed over the whole screen) shares the class name: undo it for a plan post's tile. */
.tile.plan { position: relative; inset: auto; z-index: auto; background: var(--z-fill); user-select: auto; -webkit-user-select: auto; -webkit-touch-callout: default; padding: 9px; display: flex; flex-direction: column; }
.tile.plan b { font-size: 32px; line-height: 1; font-weight: 600; }
.tile.plan i { font-style: normal; font-size: 12.5px; color: var(--z-ink-muted); }
.tile.plan span { margin-top: auto; font: 500 13.5px/1.2 var(--z-font-title); letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tile.new { background: none; box-shadow: inset 0 0 0 1px var(--z-hairline); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--z-ink-muted); font-size: 13.5px; }
.kindtag.lk { display: inline-flex; align-items: center; gap: 4px; }
.fi { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; margin-bottom: 8px; border-radius: var(--z-r-md); background: var(--z-fill); color: var(--z-ink-muted); }
.fi input[type=search] { min-height: 46px; border: 0; background: none; padding: 0; }
.cnt { padding: 4px 0 8px; font-size: 14px; color: var(--z-ink-muted); }
@media (prefers-reduced-motion: reduce) { .fol.on .ic, .btn[data-fol].sec .ic { animation: none; } .sug, .prow, .pills i { transition: none; } }

/* Plan a Ride, the shared map (s5 6 and 7). Glass over the map, a sheet that floats 28 px up so Google's logo shows (R11),
   dots that are solid when on the plan and dashed hollow when only suggested. Tokens only. */
.plan { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: var(--z-page); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.plan .pm-map { position: absolute; inset: 0; }
.pl-plate { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: 560px; margin-inline: auto; z-index: 5; display: flex; align-items: center; gap: 8px; border-radius: var(--z-r-lg); padding: 8px 10px 8px 6px; }
.pl-back { flex: none; width: 44px; height: 44px; color: inherit; background: none; }
.pl-titlebox { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plan [hidden] { display: none !important; }
.pl-plate input.pl-title { font: 600 16px/1.25 var(--z-font-title); color: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 2px 0; min-height: 0; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline-offset: 2px; user-select: text; -webkit-user-select: text; }
.pl-title { font: 600 16px/1.25 var(--z-font-title); }
.pl-title::placeholder { color: var(--z-on-glass-muted); }
.pl-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-sub { font-size: 14px; color: var(--z-on-glass-muted); background: none; border: 0; padding: 0; font-family: var(--z-font-body); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--z-fill-strong); color: inherit; font: 600 14px var(--z-font-body); cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-chip.set { background: var(--z-accent-soft); color: var(--z-accent-text); }
.pl-save { font-size: 13px; font-weight: 600; color: var(--z-on-glass-muted); white-space: nowrap; }
.pl-save[data-state="failed"], .pl-save[data-state="offline"] { color: var(--z-accent-text); cursor: pointer; text-decoration: underline; }
.pl-right { flex: none; min-height: 44px; width: auto; padding: 0 18px; }
.pl-offline { position: absolute; top: calc(78px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: 560px; margin-inline: auto; z-index: 5; border-radius: var(--z-r-md); padding: 8px 14px; font-size: 14px; }
.pl-banner { position: absolute; top: calc(78px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: 560px; margin-inline: auto; z-index: 5; border-radius: var(--z-r-md); padding: 8px 14px; font-weight: 600; }
.pl-bannerrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-bannerbtns { display: flex; gap: 6px; }
.pl-bsearch .pm-search { margin-top: 8px; }
.pl-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(28px + 26dvh + 10px); z-index: 3; border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.pl-cross { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; z-index: 3; pointer-events: none; }
.pl-cross i { display: block; width: 100%; height: 100%; border: 2px solid var(--z-accent); border-radius: 50%; }
.pl-cross i::before, .pl-cross i::after { content: ""; position: absolute; background: var(--z-accent); }
.pl-cross i::before { left: 50%; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; }
.pl-cross i::after { top: 50%; left: -8px; right: -8px; height: 2px; margin-top: -1px; }
.pl-sheet { position: absolute; left: 8px; right: 8px; bottom: 28px; max-width: 560px; margin-inline: auto; z-index: 4; height: 26dvh; min-height: 150px; display: flex; flex-direction: column; border-radius: var(--z-r-sheet); padding: 0 14px; overflow: hidden; transition: height 320ms var(--z-ease-drawer); }
.pl-sheet.open { height: calc(80dvh - 28px); }
.plan.nomap .pl-sheet { height: calc(100dvh - 120px); top: calc(78px + env(safe-area-inset-top)); bottom: 28px; }
.pl-grab { flex: none; height: 26px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: inherit; }
.pl-grab i { width: 38px; height: 4px; border-radius: 99px; background: var(--z-on-glass-muted); opacity: .6; }
.pl-shead { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 0 0 10px; }
.pl-sum { flex: 1; min-width: 0; font-size: 15px; color: var(--z-on-glass-muted); }
.pl-bigkm { font-size: 26px; color: var(--z-on-glass); margin-right: 4px; }
.pl-decide { font-size: 14px; color: var(--z-on-glass-muted); white-space: nowrap; }
.num.acc { color: var(--z-accent-text); }
.pl-invite { align-self: center; width: 44px; height: 44px; color: inherit; background: var(--z-fill); }
.pl-slist { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 14px; }
.pl-note { margin: 0 0 8px; padding: 9px 12px; border-radius: var(--z-r-md); background: var(--z-fill); font-size: 14px; }
.pl-empty { padding: 6px 2px 10px; }
.pl-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid var(--z-hairline); cursor: pointer; }
.pl-left { text-align: center; color: var(--z-on-glass-muted); display: grid; place-items: center; font-size: 15px; }
.pl-mid { min-width: 0; display: flex; flex-direction: column; }
.pl-mid b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row.suggest-time .pl-mid b, .pl-row.suggest-meeting .pl-mid b { white-space: normal; }
.pl-mid small { color: var(--z-on-glass-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .pl-right { min-height: 0; padding: 0; font-size: 16px; }
.pl-row .pl-right small { font-size: 13px; color: var(--z-on-glass-muted); }
.pl-rowbtns { display: flex; gap: 6px; align-items: center; }
.pl-mini { min-width: 50px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--z-r-button); font: 600 15px var(--z-font-body); background: var(--z-fill-strong); color: inherit; cursor: pointer; }
.pl-mini.add { background: var(--z-ink); color: var(--z-page); }
.pl-row.suggest-pin, .pl-row.suggest-time, .pl-row.suggest-meeting { background: var(--z-accent-soft); border-radius: var(--z-r-md); margin: 2px 0; padding-inline: 6px; border-bottom-color: transparent; }
.pl-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; border: 0; background: none; color: inherit; font: 600 15px var(--z-font-body); text-align: left; cursor: pointer; border-bottom: 1px solid var(--z-hairline); }
.pl-action .grow { flex: 1; }
.pl-foot { margin-top: 10px; font-size: 12px; color: var(--z-on-glass-muted); }
.pl-foot p + p { margin-top: 3px; }
.pl-fail { background: var(--z-accent-soft); color: var(--z-accent-text); }
.pl-card, .pl-kinds, .pl-undo { position: absolute; left: 8px; right: 8px; max-width: 560px; margin-inline: auto; z-index: 6; border-radius: var(--z-r-lg); padding: 12px 14px; }
.pl-card, .pl-kinds { bottom: calc(28px + 26dvh + 8px); max-height: 52dvh; overflow-y: auto; animation: plrise 180ms var(--z-ease-out); }
.pl-undo { bottom: calc(28px + 26dvh + 8px); display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: var(--z-r-md); padding: 8px 14px; }
@keyframes plrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pl-cardhead { display: flex; align-items: center; gap: 10px; }
.pl-cardhead b { flex: 1; min-width: 0; font: 600 18px var(--z-font-title); overflow-wrap: anywhere; }
.pl-cardnote { margin: 8px 0 2px; }
.pl-cardnote.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-comments { margin: 8px 0; font-size: 14px; }
.pl-comments p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-comment { display: flex; gap: 6px; margin: 8px 0; }
.pl-comment input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 99px; user-select: text; -webkit-user-select: text; }
.pl-meetform { display: flex; gap: 8px; margin-top: 8px; }
.pl-meetform input { flex: 1; min-width: 0; min-height: 48px; user-select: text; -webkit-user-select: text; }
.pl-helper { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--z-hairline); }
.pl-delete { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 48px; border: 0; background: none; font: 600 15px var(--z-font-body); cursor: pointer; }
.pl-landing { padding-top: 24px; }
.pl-landing h1 { margin: 4px 0 12px; font-size: 22px; }
.pl-landing p { margin-bottom: 12px; }
/* The dots (6.2): 28 px with the kind's icon; a mark is a plain pin-coloured dot; zoomed out every dot is a plain 14 px one. */
.pdotwrap { position: absolute; }
.pdot { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--z-pin); background: var(--z-accent-fill); color: var(--z-on-accent); cursor: pointer; touch-action: manipulation; box-shadow: 0 1px 4px var(--z-scrim); transition: transform 160ms var(--z-ease-out), box-shadow 160ms var(--z-ease-out); }
.pdot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.pdot.suggested { background: var(--z-scrim); background: color-mix(in srgb, var(--z-page) 62%, transparent); border: 2px dashed var(--z-pin); color: var(--z-pin); }
.pdot.mark { width: 22px; height: 22px; background: var(--z-pin); color: var(--z-pin-ink); }
.pdot.sel { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 4px var(--z-accent-soft), 0 1px 4px var(--z-scrim); }
.plan.lowzoom .pdot { width: 14px; height: 14px; border-width: 2px; }
.plan.lowzoom .pdot svg { display: none; }
/* The suggestion card in the ride chat (6.10). */
.sugcard { flex-direction: column; align-items: stretch; gap: 6px; }
.sugcard .sug-head { display: flex; align-items: flex-start; gap: 10px; }
.sugcard .sug-head .grow { flex: 1; min-width: 0; }
.sugcard.declined, .sugcard.withdrawn, .sugcard.expired, .sugcard.removed { opacity: .75; }
.sugcard .pl-cardbtns .btn { min-height: 44px; }
.pl-skel { display: block; height: 14px; border-radius: 99px; background: var(--z-fill-strong); }
.pl-row .pl-skel:first-child { height: 20px; }
@media (max-width: 380px) { .pl-rowbtns { flex-direction: column; } }

/* Phase 7: ride terms on the Ask sheet and the host's first save, the first-ride card, Ride again (s4 7.6, 7.7; tokens only). */
.terms { margin-bottom: 10px; }
.terms p { font-size: 15.5px; line-height: 1.35; margin-top: 7px; color: var(--z-ink-muted); }
.draftb { display: inline-block; margin: 2px 0 4px; padding: 6px 10px; border-radius: var(--z-r-md); background: var(--z-accent-soft); color: var(--z-accent-text); font-size: 13.5px; font-weight: 600; }
.card.fr { padding: 14px 18px; }
.fri { display: grid; grid-template-columns: 24px 1fr; gap: 9px; margin-top: 11px; }
.fri .ic { color: var(--z-accent-text); margin-top: 1px; }
.fri b { display: block; font-family: var(--z-font-title); font-weight: 500; font-size: 16px; line-height: 1.2; }
.fri span { display: block; font-size: 14.5px; line-height: 1.3; color: var(--z-ink-muted); }
.fri ul { list-style: none; padding: 0; font-size: 14.5px; line-height: 1.4; color: var(--z-ink-muted); }
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 12px; font-size: 15px; }
.sw { position: relative; flex: none; width: 50px; height: 30px; border: 0; border-radius: 15px; background: var(--z-fill-strong); cursor: pointer; transition: background 200ms ease; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--z-ink-muted); transition: transform 200ms ease, background 200ms ease; }
.sw.on { background: var(--z-accent-fill); }
.sw.on::after { transform: translateX(20px); background: var(--z-on-accent); }
.frow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-bottom: 8px; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--z-hairline); background: none; text-align: left; cursor: pointer; }
.frow .ic { color: var(--z-accent-text); }
.frow .grow { flex: 1; }
.againcard .ridecard { margin-bottom: 4px; }
.again { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 44px; margin: 0 4px 12px; font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }
a.nr-line { color: inherit; text-decoration: none; }

/* Here, Late, Out (phase 8): three equal chips, the chosen one filled with a check, and the one line under them. */
.daybox { display: grid; gap: 8px; position: relative; }
.daybox.card { margin: -6px 0 14px; padding: 12px 14px; }
.daychips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.daychip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 1px solid var(--z-hairline); border-radius: var(--z-r-md); background: var(--z-fill); color: var(--z-ink); font: inherit; font-weight: 600; cursor: pointer; }
.daychip.on { background: var(--z-accent); border-color: transparent; color: var(--z-on-accent); }
.daychip:disabled { opacity: .7; cursor: default; }
.dayline { font-size: 14px; color: var(--z-ink); overflow-wrap: anywhere; }
.daybox.busy::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--z-accent); transform-origin: left; animation: daybusy 1.1s ease-in-out infinite; }
@keyframes daybusy { 0% { transform: scaleX(.05); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.daybox.nr-day { margin-top: 2px; }
.daybox.inbell { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .daybox.busy::after { animation: none; transform: none; opacity: .6; } }

/* Phase 10: weather under the route, on the plan screen and on the Rides card; the ready line; the last-fuel field. */
.wx { display: grid; gap: 6px; }
.wx-line { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.wx-line .ic { color: var(--z-accent-text); flex: none; margin-top: 2px; }
.wx-line span:last-child { min-width: 0; }
.wx-sum { margin: 0; }
.wx-credit { justify-self: start; padding: 0; font-weight: 500; }
.wx-card { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--z-accent-text); font-weight: 600; }
.wx-card .ic { flex: none; margin-top: 2px; }
.wx-ready { margin: 0 0 12px; }
.nr-line.wrap span:last-child { white-space: normal; }
.fuelkm { display: flex; align-items: center; gap: 8px; }
.fuelkm input { width: 6em; }
