/* WIT Spots driver app. Mobile-first 360–430 px. WIT palette (ink + volt) with an "amp" teal for charging. */
:root {
  --ink: #0d0f0c;
  --ink-2: #1b1e1a;
  --ink-3: #2b2f29;
  --volt: #d6f83c;
  --volt-2: #b9e01a;
  --amp: #3fe3c2;
  --amp-2: #12b394;
  --amp-ink: #053b32;
  --paper: #fff;
  --mist: #f4f5f0;
  --mist-2: #e9ebe3;
  --line: #e1e4da;
  --muted: #656b60;
  --muted-2: #9ca196;
  --danger: #d7322a;
  --danger-tint: #fdecea;
  --ok: #138a4c;
  --ok-tint: #e3f5ea;
  --warn: #9a6200;
  --warn-tint: #fff3d1;
  --gps: #2f6bff;
  --sand: #ffde59;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 18px;
  --sheet-h: 0px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--ink); font: 16px/1.4 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; cursor: pointer; }
svg { display: block; flex: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--volt-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
b, strong { font-weight: 800; }
small { font-size: 12.5px; }

#app { position: relative; max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--mist); isolation: isolate; }
@media (min-width: 520px) {
  body { background: radial-gradient(1100px 600px at 50% -10%, #263020 0%, var(--ink) 62%); }
  #app { box-shadow: 0 0 0 1px #000, 0 40px 120px rgba(0, 0, 0, .6); }
}

/* ---------- map ---------- */
#map { position: absolute; inset: 0; z-index: 0; background: #e6e8df; }
#map .leaflet-tile-pane { filter: grayscale(.85) contrast(1.04) brightness(1.05); }
#map .leaflet-top.leaflet-left { top: calc(var(--safe-t) + 66px); }
#map .leaflet-control-attribution { font-size: 9.5px; background: rgba(255, 255, 255, .75); border-radius: 0 6px 6px 0; padding: 0 6px; margin: 0 !important; }
.map-fallback { display: grid; place-items: start center; background: linear-gradient(160deg, #e9ebe4, #d7dbcd) !important; }
.map-fallback-msg { margin-top: calc(var(--safe-t) + 90px); padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; }
.mk { background: none; border: 0; }
.gps-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--gps); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 107, 255, .18), 0 2px 6px rgba(0, 0, 0, .3); }
.pin-dest { position: absolute; left: -13px; top: -34px; width: 26px; height: 34px; }
.pin-dest i { position: absolute; inset: 0 0 8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.pin-dest i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--volt); }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; cursor: pointer; transition: transform .15s var(--ease); }
.pin-spot { height: 30px; padding: 0 10px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 850; font-size: 13.5px; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1.5px rgba(13, 15, 12, .14), 0 4px 12px rgba(13, 15, 12, .22); margin-top: -7px; }
.pin-spot::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; box-shadow: 1.5px 1.5px 0 0 rgba(13, 15, 12, .1); z-index: -1; }
.pin-spot small { font-size: 10.5px; font-weight: 700; opacity: .65; }
.pin-spot em { font-style: normal; font-size: 12px; margin-right: 1px; }
.pin-spot.is-charge { background: var(--amp); color: var(--amp-ink); }
.pin-spot.is-off { background: #e7e9e2; color: var(--muted); }
.pin-spot.is-sel { background: var(--ink); color: var(--volt); transform: translate(-50%, -100%) scale(1.12); }
.pin-net { width: 30px; height: 30px; transform: translate(-50%, -50%); justify-content: center; flex-direction: column; gap: 0; border-radius: 50%; background: var(--ink); color: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.pin-net em { font-style: normal; font-size: 10px; line-height: 1; color: var(--amp); }
.pin-net b { font-size: 9.5px; line-height: 1; font-weight: 800; }
.pin-net.st-busy { border-color: #ffc94d; }
.pin-net.st-offline { background: #6c706a; }
.pin-net.st-offline em { color: #ccc; }
.pin-net.is-sel { transform: translate(-50%, -50%) scale(1.25); border-color: var(--amp); }

/* ---------- floating chrome ---------- */
#topbar { position: absolute; top: calc(var(--safe-t) + 10px); left: 12px; right: 12px; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
#topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(13, 15, 12, .14); backdrop-filter: blur(8px); min-width: 0; }
.brand-t { font-weight: 650; font-size: 15.5px; letter-spacing: -.02em; white-space: nowrap; }
.brand-t b { font-weight: 900; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--volt); }
.logo svg { width: 22px; height: 22px; stroke-width: 2.4; }
.logo.xl { width: 56px; height: 56px; border-radius: 16px; }
.logo.xl svg { width: 36px; height: 36px; }
.pill-sandbox { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--sand); color: #4d3a00; font-size: 10.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 385px) { .sb-long { display: none; } .brand-t { font-size: 14.5px; } }
.pill-demo { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--sand); color: #4d3a00; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tb-right { display: flex; gap: 8px; align-items: center; }
.fab { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13, 15, 12, .18); transition: transform .12s; }
.fab.sm { width: 44px; height: 44px; }
.fab:active { transform: scale(.94); }
.fab svg { width: 21px; height: 21px; }
.fab.avatar { background: var(--ink); color: var(--volt); font-weight: 900; font-size: 15px; }
.fab .dot { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--volt); color: var(--ink); border: 2px solid #fff; font: 900 11px/15px var(--font); font-style: normal; }
#recenter { position: absolute; right: 12px; bottom: calc(var(--sheet-h) + 12px); z-index: 500; transition: bottom .3s var(--ease); }
body.has-page #recenter { visibility: hidden; }

/* ---------- sheet ---------- */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; display: flex; flex-direction: column; max-height: 58%; background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(13, 15, 12, .16); transition: max-height .3s var(--ease); }
.sheet.full { max-height: calc(100% - var(--safe-t) - 66px); }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: var(--safe-b); }
.grab { display: block; width: 100%; height: 22px; border: 0; background: none; padding: 0; flex: none; }
.grab i { display: block; width: 42px; height: 5px; margin: 9px auto 0; border-radius: 3px; background: var(--mist-2); }
.sheet-pad { padding: 0 16px 18px; }

/* ---------- type + utils ---------- */
.h1 { margin: 2px 0 8px; font-size: 26px; line-height: 1.12; letter-spacing: -.03em; font-weight: 900; }
.h2 { margin: 2px 0 6px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; font-weight: 900; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sec { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.sec small { color: var(--muted); font-weight: 650; }
.sec.net::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--amp); align-self: center; }
.fine { color: var(--muted); font-size: 13px; margin: 8px 0; }
.fine.pad { padding: 8px 4px; }
.center { text-align: center; }
.lead { margin: 4px 0 10px; color: var(--ink-3); }
.lbl { margin: 12px 0 8px; font-weight: 800; font-size: 14px; }
.err { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-tint); color: var(--danger); font-size: 14px; font-weight: 700; }
.pad { padding: 4px 16px 24px; }
.stack > * + * { margin-top: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.btn-row > * { flex: 1 1 0; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 850; font-size: 15px; text-decoration: none; text-align: center; transition: transform .1s, background .15s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.lg { min-height: 56px; font-size: 16.5px; border-radius: 16px; }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:active:not(:disabled) { background: var(--volt-2); }
.btn-charge { background: var(--amp); color: var(--amp-ink); }
.btn-ghost { background: var(--mist); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet { background: none; color: var(--muted); font-weight: 750; min-height: 44px; }
.btn-quiet.danger, .btn-danger { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sandbox { background: repeating-linear-gradient(-45deg, #fff6c9 0 10px, #ffefa6 10px 20px); color: #4d3a00; box-shadow: inset 0 0 0 1.5px #e9cf62; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.fav { color: var(--danger); }

/* ---------- segmented, chips, search ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 16px; background: var(--mist); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: 12px; background: none; font-weight: 850; font-size: 15px; color: var(--muted); }
.seg button svg { width: 18px; height: 18px; }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(13, 15, 12, .2); }
.seg button[data-service="park"][aria-selected="true"] svg { color: var(--volt); }
.seg button[data-service="charge"][aria-selected="true"] svg { color: var(--amp); }
.seg.four button, .seg.three button { font-size: 13.5px; }
.searchbox { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 8px 0 14px; border: 0; border-radius: 16px; background: var(--mist); text-align: left; color: var(--muted); font-weight: 700; }
.searchbox svg { width: 20px; height: 20px; color: var(--ink); }
.searchbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbox b { color: var(--ink); }
.searchbox i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.searchbox i svg { width: 18px; height: 18px; color: inherit; }
.chips { display: flex; gap: 8px; margin: 10px -16px 2px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 8px 0; padding: 0; }
.chips.center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 13px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.chip svg { width: 16px; height: 16px; }
.chip.lg { height: 44px; padding: 0 16px; font-size: 14.5px; }
.chip.strong { background: var(--ink); color: #fff; box-shadow: none; }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--volt); box-shadow: none; }
.search-here { margin: 10px 0 0 !important; min-height: 44px; }

/* ---------- results ---------- */
.results.loading { opacity: .6; transition: opacity .2s; }
.card { display: flex; align-items: stretch; gap: 12px; width: 100%; margin: 0 0 10px; padding: 10px; border: 0; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; transition: box-shadow .15s; }
.card.sel { box-shadow: inset 0 0 0 2.5px var(--ink); }
.card.off { opacity: .62; }
.card-img { position: relative; flex: none; width: 76px; height: 76px; border-radius: 13px; overflow: hidden; background: var(--mist); }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; }
.card-img .inst { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: var(--volt); font: 900 10px/16px var(--font); font-style: normal; }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, #20251d, #3a4232); color: var(--volt); }
.ph svg { width: 34%; height: 34%; opacity: .9; }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.card-t { font-weight: 850; font-size: 15.5px; line-height: 1.2; letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-m { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.card-b { display: flex; flex-wrap: wrap; gap: 4px; }
.card-p { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; min-width: 64px; }
.card-p b { font-size: 19px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card-p b.full { font-size: 15px; color: var(--muted); }
.card-p small { color: var(--muted); font-weight: 650; }
.stars { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 850; }
.stars svg { width: 13px; height: 13px; color: #f2a100; }
.stars small { color: var(--muted); font-weight: 650; }
.bdg { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--mist); color: var(--ink-3); font-size: 11.5px; font-weight: 800; }
.bdg svg { width: 12px; height: 12px; }
.bdg.charge { background: var(--amp); color: var(--amp-ink); }
.bdg.inst { background: var(--volt); color: var(--ink); }
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.st-row > svg { width: 18px; height: 18px; color: var(--muted-2); }
.st-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--amp); }
.st-ic svg { width: 16px; height: 16px; }
.st-ic.st-offline { background: #6c706a; color: #ddd; }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-main small { color: var(--muted); font-weight: 650; }
.live-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; text-align: left; }
.live-banner .lb-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--volt); color: var(--ink); }
.live-banner.tone-charge .lb-ic { background: var(--amp); }
.live-banner .lb-ic svg { width: 20px; height: 20px; }
.lb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-t small { color: #b9beb2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-banner > svg { width: 18px; height: 18px; color: var(--volt); }
.empty { padding: 22px 8px 8px; text-align: center; }
.empty h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 900; }
.empty p { margin: 0 auto 14px; max-width: 32ch; color: var(--muted); font-size: 14.5px; }
.empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--mist); }
.empty-ic svg { width: 26px; height: 26px; }
.skel { height: 96px; margin-bottom: 10px; border-radius: var(--r); background: linear-gradient(90deg, var(--mist) 0%, #fbfbf8 50%, var(--mist) 100%); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
.skel.sm { height: 52px; }
.skel.tall { height: 240px; border-radius: 0; }
@keyframes sh { to { background-position: -200% 0; } }
.trust { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #dfe3d8; font-size: 13.5px; }
.trust svg { width: 20px; height: 20px; color: var(--volt); }
.trust b { color: var(--volt); }
.trust.compact { background: none; color: var(--muted); padding: 6px 2px; margin: 10px 0 0; font-size: 12.5px; justify-content: center; }
.trust.compact svg { color: var(--ok); width: 16px; height: 16px; }
.trust.compact b { color: var(--ink); }

/* ---------- station sheet ---------- */
.st-status { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-weight: 750; font-size: 14px; color: var(--muted); }
.st-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); }
.st-status.st-available i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.st-status.st-busy i { background: #e7a100; }
.st-status.st-offline i { background: var(--danger); }
.cons { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.cons li { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--mist); font-size: 14.5px; }
.cons li span { color: var(--muted); font-weight: 750; }
.price-text { display: flex; flex-direction: column; margin: 10px 0; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14.5px; }
.price-text b { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- pages ---------- */
#page { position: absolute; inset: 0; z-index: 800; display: none; background: var(--paper); }
body.has-page #page { display: block; animation: pgIn .26s var(--ease); }
@keyframes pgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pg { display: flex; flex-direction: column; height: 100%; }
.pg-top { display: flex; align-items: center; gap: 10px; flex: none; padding: calc(var(--safe-t) + 8px) 12px 8px; background: var(--paper); z-index: 2; }
.pg-top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-r { display: flex; gap: 6px; }
.pg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pg-cta { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(var(--safe-b) + 12px); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.pg-cta .btn.block { margin: 0; }
.cta-price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cta-price b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.cta-price small { color: var(--muted); font-weight: 700; }
.pg-cta > .btn.lg { flex: none; min-width: 150px; }
.spot-pg .pg-top { position: absolute; left: 0; right: 0; background: none; pointer-events: none; }
.spot-pg .pg-top > * { pointer-events: auto; }
.spot-pg .pg-top .icon-btn { background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.search-pg .pg-body { padding: 0 16px 20px; }

/* forms */
.fld { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.fld > span { font-size: 13.5px; font-weight: 800; }
.fld > span small { color: var(--muted); font-weight: 650; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; font-weight: 650; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.fld input[type="range"] { padding: 0; box-shadow: none; background: none; accent-color: var(--amp-2); min-height: 40px; }
.fld.big input { min-height: 56px; font-size: 17px; }
.phone-in { display: flex; align-items: center; border-radius: 14px; background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); }
.phone-in i { padding: 0 4px 0 14px; font-style: normal; font-weight: 850; color: var(--muted); }
.phone-in input { box-shadow: none !important; background: none !important; letter-spacing: .04em; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch span { flex: 1; display: flex; flex-direction: column; }
.switch small { color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--mist-2); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .15s var(--ease); }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--volt); }
.switch input:focus-visible + i { outline: 3px solid var(--volt-2); outline-offset: 2px; }
.opt { display: block; margin: 0 0 8px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt > span { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.opt > span svg { grid-row: span 2; width: 22px; height: 22px; }
.opt > span small { color: var(--muted); }
.opt input:checked + span { box-shadow: inset 0 0 0 2.5px var(--ink); background: #fbfdf2; }
.opt input:focus-visible + span { outline: 3px solid var(--volt-2); }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dev-hint { display: block; width: 100%; padding: 10px 12px; border: 1.5px dashed #e3c84f; border-radius: 12px; background: #fff9db; color: #5a4600; font-size: 14px; text-align: left; }
.login-pg .pg-body { padding: 0 20px 24px; }
.login-hero { padding: 6px 0 14px; }
.login-hero h2 { margin: 16px 0 6px; font-size: 30px; line-height: 1.08; letter-spacing: -.035em; font-weight: 900; }
.login-hero p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.place { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.place svg { width: 20px; height: 20px; color: var(--muted); }
.place span { display: flex; flex-direction: column; min-width: 0; }
.place small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when-body { padding: 0 16px; }
.pg-body > .seg, .pg-body > .err { margin-left: 16px; margin-right: 16px; }
.pg-body > .sec, .pg-body > .chips.wrap, .pg-body > .switch { margin-left: 16px; margin-right: 16px; }

/* spot page */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--ink-2); aspect-ratio: 4 / 3; max-height: 46vh; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }
.g-count { margin: -30px 12px 8px auto; width: max-content; position: relative; padding: 2px 9px; border-radius: 999px; background: rgba(13, 15, 12, .7); color: #fff; font-size: 12px; font-weight: 750; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 4px; }
.blk { padding: 14px 0; border-top: 1px solid var(--line); }
.blk h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }
.blk h3 small { color: var(--muted); font-weight: 650; }
.blk p { margin: 0; }
.desc { white-space: pre-line; color: var(--ink-3); }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.kv span { padding: 6px 10px; border-radius: 10px; background: var(--mist); font-size: 13.5px; font-weight: 750; }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.amen li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.amen svg { width: 16px; height: 16px; color: var(--ok); }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.sched li span { color: var(--muted); font-weight: 700; }
.sched-24 { font-weight: 750; }
.host-blk { display: flex; align-items: center; gap: 12px; }
.host-blk div { display: flex; flex-direction: column; }
.host-blk small { color: var(--muted); display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--volt); font-weight: 900; }
.av.lg { width: 60px; height: 60px; font-size: 20px; }
.revs { list-style: none; margin: 0; padding: 0; }
.rev { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rev > div { display: flex; align-items: center; gap: 8px; }
.rev > div small { color: var(--muted); margin-left: auto; }
.rev p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.rev-tags { color: var(--muted) !important; font-size: 13px !important; font-weight: 700; }
.when-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--mist); text-align: left; font-weight: 800; }
.when-row svg { width: 18px; height: 18px; }
.when-row span { flex: 1; }
.when-row b { color: var(--muted); font-size: 13.5px; }
.bill { list-style: none; margin: 10px 0 0; padding: 0; font-variant-numeric: tabular-nums; }
.bill li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.bill li span { color: var(--ink-3); }
.bill li.zero b { color: var(--ok); }
.bill li.tot { margin-top: 4px; padding-top: 10px; border-top: 1.5px solid var(--ink); font-size: 17px; }
.bill li.tot span { color: var(--ink); font-weight: 900; }
.bill li.tot b { font-weight: 900; }
.mini-spot { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.mini-spot img, .mini-spot .ph { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; }
.mini-spot div { display: flex; flex-direction: column; min-width: 0; }
.mini-spot small { color: var(--muted); font-weight: 650; }

/* ---------- booking ---------- */
.b-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 10px; }
.b-head small { color: var(--muted); font-weight: 750; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.tone-ok { background: var(--ok-tint); color: var(--ok); }
.tone-warn { background: var(--warn-tint); color: var(--warn); }
.tone-danger { background: var(--danger-tint); color: var(--danger); }
.tone-muted { background: var(--mist); color: var(--muted); }
.tone-charge { background: #d9fbf3; color: var(--amp-ink); }
.live-banner.tone-ok, .live-banner.tone-warn, .live-banner.tone-danger, .live-banner.tone-muted, .live-banner.tone-charge { background: var(--ink); color: #fff; }
.tl { display: flex; list-style: none; margin: 0 0 16px; padding: 0; }
.tl li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; font-size: 10.5px; font-weight: 800; color: var(--muted-2); text-align: center; }
.tl li i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--mist-2); }
.tl li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--mist-2); }
.tl li:first-child::before { display: none; }
.tl li.done i, .tl li.done::before, .tl li.now::before { background: var(--ink); }
.tl li.done, .tl li.now { color: var(--ink); }
.tl li.now i { background: var(--volt); box-shadow: 0 0 0 3px var(--ink); }
.wait { text-align: center; padding: 6px 0; }
.wait h2 { margin: 16px 0 6px; font-size: 21px; font-weight: 900; }
.wait p { margin: 0 auto; max-width: 34ch; color: var(--muted); font-size: 14.5px; }
.ring { --p: 1; display: grid; place-items: center; align-content: center; width: 168px; height: 168px; margin: 6px auto 0; border-radius: 50%; background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--ink) calc(var(--p) * 360deg), var(--mist-2) 0); }
.ring b { font-size: 38px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring small { color: var(--muted); font-weight: 750; }
.code-card { padding: 18px; border-radius: 22px; background: var(--ink); color: #fff; text-align: center; }
.code-card small { color: #b9beb2; font-weight: 750; }
.code { display: block; margin: 4px 0; color: var(--volt); font-size: 58px; line-height: 1.05; font-weight: 900; letter-spacing: .18em; padding-left: .18em; font-variant-numeric: tabular-nums; }
.code-card p { margin: 6px 0 0; color: #dfe3d8; font-size: 14px; }
.addr { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--mist); }
.addr p { margin: 0; display: flex; flex-direction: column; font-size: 14.5px; }
.addr p + p { margin-top: 10px; }
.addr b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.parked { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--ink); color: #fff; }
.parked .big-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--volt); color: var(--ink); }
.parked .big-ic svg { width: 32px; height: 32px; }
.parked div { display: flex; flex-direction: column; }
.parked b { font-size: 24px; letter-spacing: -.02em; }
.parked small { color: #b9beb2; font-weight: 700; }
.charge-card { margin: 12px 0; padding: 14px; border-radius: 18px; background: #e9fcf7; box-shadow: inset 0 0 0 1.5px #b7efe2; }
.charge-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 16px; font-weight: 900; color: var(--amp-ink); }
.charge-card h3 svg { width: 18px; height: 18px; }
.meter { padding: 16px; border-radius: 22px; background: radial-gradient(400px 200px at 80% -20%, rgba(63, 227, 194, .25), transparent 70%), var(--ink); color: #fff; }
.m-top { display: flex; align-items: center; gap: 8px; color: #b9beb2; }
.m-top small:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--amp); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 227, 194, .6); } 70% { box-shadow: 0 0 0 10px rgba(63, 227, 194, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 227, 194, 0); } }
.m-kwh { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 12px; font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--amp); font-variant-numeric: tabular-nums; }
.m-kwh small { font-size: 18px; color: #dfe3d8; letter-spacing: 0; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-row span { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: var(--ink-2); }
.m-row small { color: #9ca196; }
.m-row b { font-size: 17px; font-variant-numeric: tabular-nums; }
.soc { height: 8px; margin-top: 12px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.soc i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amp-2), var(--amp)); transition: width .8s var(--ease); }
.pay { text-align: center; }
.pay > small { color: var(--muted); font-weight: 750; font-size: 14px; }
.pay-amt { display: block; margin: 2px 0 4px; font-size: 48px; font-weight: 900; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pay .bill { text-align: left; margin-bottom: 14px; }
.pay .fine { text-align: left; }
.upi-id { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 10px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.upi-id span { display: flex; flex-direction: column; }
.upi-id small { color: var(--muted); font-weight: 700; }
.upi-id svg { width: 20px; height: 20px; color: var(--muted); }
.cash-note { margin: 10px 0; padding: 14px; border-radius: 14px; background: var(--mist); font-weight: 700; }
.sandbox-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: repeating-linear-gradient(-45deg, #fff6c9 0 10px, #ffefa6 10px 20px); color: #4d3a00; font-size: 13.5px; font-weight: 750; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; color: var(--muted); font-size: 14px; font-weight: 750; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--mist-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rate { text-align: center; }
.rate h2 { margin: 6px 0 12px; font-size: 21px; font-weight: 900; }
.star-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.star-row button { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 14px; background: var(--mist); color: var(--mist-2); }
.star-row button svg { width: 30px; height: 30px; }
.star-row button.on { color: #f2a100; background: #fff6dc; }
.rate .fld { text-align: left; }
.done-card { padding: 22px 16px; border-radius: 22px; background: var(--mist); text-align: center; }
.done-card > svg { width: 46px; height: 46px; margin: 0 auto; padding: 10px; border-radius: 50%; background: var(--ok); color: #fff; }
.done-card.ended > svg { background: var(--muted); }
.done-card h2 { margin: 12px 0 4px; font-size: 21px; font-weight: 900; }
.done-card p { margin: 0 auto; max-width: 34ch; color: var(--ink-3); }
.b-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.b-foot .btn svg { width: 16px; height: 16px; }

/* trips + profile */
.trip { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; }
.trip > svg { width: 18px; height: 18px; color: var(--muted-2); }
.trip-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mist); }
.trip-ic svg { width: 20px; height: 20px; }
.trip-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trip-m b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-m small { color: var(--muted); }
.trip-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.trip-r small { font-weight: 850; font-variant-numeric: tabular-nums; }
.prof { display: flex; align-items: center; gap: 14px; margin: 4px 0 4px; }
.prof div { display: flex; flex-direction: column; }
.prof b { font-size: 19px; }
.prof small { color: var(--muted); }
.inline-form { display: flex; align-items: flex-end; gap: 8px; }
.inline-form .fld { flex: 1; margin-bottom: 0; }
.inline-form .btn { margin-bottom: 2px; }

/* receipt */
.receipt { margin: 4px 16px 24px; padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.receipt header { display: flex; align-items: center; gap: 10px; }
.receipt header div { display: flex; flex-direction: column; }
.receipt header small { color: var(--muted); }
.r-status { margin: 12px 0; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.receipt dt { color: var(--muted); font-weight: 700; }
.receipt dd { margin: 0; font-weight: 700; text-align: right; }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.receipt td { padding: 6px 0; }
.receipt td + td { text-align: right; font-weight: 800; }
.receipt tr.zero td + td { color: var(--ok); }
.receipt tr.tot td { border-top: 1.5px solid var(--ink); padding-top: 10px; font-size: 17px; font-weight: 900; }

/* ---------- dialog + toast ---------- */
#dialog { position: absolute; inset: 0; z-index: 1000; pointer-events: none; }
#dialog.open { pointer-events: auto; }
.dlg-backdrop { position: absolute; inset: 0; background: rgba(13, 15, 12, .5); opacity: 0; transition: opacity .2s; }
#dialog.open .dlg-backdrop { opacity: 1; }
.dlg { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; padding: 22px 18px calc(var(--safe-b) + 18px); border-radius: 26px 26px 0 0; background: #fff; transform: translateY(100%); transition: transform .26s var(--ease); }
#dialog.open .dlg { transform: none; }
.dlg h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.dlg-body p { margin: 0 0 8px; color: var(--ink-3); }
.dlg-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 64px); z-index: 1100; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.danger { background: var(--danger); }
.toast.ok { background: var(--ok); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  #receipt, #receipt * { visibility: visible; }
  #app { height: auto; overflow: visible; box-shadow: none; }
  #receipt { position: absolute; left: 0; top: 0; width: 100%; margin: 0; box-shadow: none; }
}
