:root {
  --bg: #f3f5f7; --card: #fff; --txt: #14202b; --mut: #6a7885; --line: #e8ecf0;
  --pri: #ffc800; --pri2: #ffb000; --priInk: #8a5d00; --on: #16130a; --priSoft: #fff4cc; --acc: #ffb020; --bad: #d64545; --badSoft: #fdeaea;
  --shadow: 0 2px 10px rgba(20, 32, 43, .07); --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1418; --card: #172028; --txt: #e8eef2; --mut: #8da0ae; --line: #25313b; --priSoft: #3a3012; --priInk: #ffd44d; --badSoft: #3a1c1c; --shadow: none; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#root { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: inherit; width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 13px 14px; outline: none; min-width: 0; }
input:focus, select:focus { border-color: var(--priInk); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.leaflet-overlay-pane svg { width: auto; height: auto; }
.top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 10; background: var(--bg); }
.brand { font-weight: 800; font-size: 18px; flex: 1; display: flex; align-items: center; gap: 8px; color: var(--priInk); }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: 50%; }
.langs { display: flex; background: var(--card); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); }
.langs button { padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--mut); }
.langs button.on { background: var(--pri); color: var(--on); }
main { flex: 1; padding: 4px 16px 110px; }
h2 { font-size: 24px; margin: 8px 0 4px; letter-spacing: -.3px; }
h3 { font-size: 17px; margin: 18px 0 8px; }
.sub { color: var(--mut); margin: 0 0 14px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.lbl { font-size: 13px; font-weight: 600; color: var(--mut); margin: 14px 0 6px; display: block; }
.lbl:first-child { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; } .row > * { flex: 1; } .row > .fit { flex: none; }
.mut { color: var(--mut); font-size: 14px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.seg { display: flex; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--mut); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg button.on { background: var(--card); color: var(--priInk); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 14px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 14px; border: 1.5px solid transparent; }
.chip.on { background: var(--priSoft); color: var(--priInk); border-color: var(--priInk); }
.tstep { flex: none !important; display: flex; align-items: center; gap: 4px; margin-left: auto; background: var(--bg); border-radius: 14px; padding: 3px; }
.tstep button { width: 38px; height: 38px; border-radius: 11px; background: var(--card); font-size: 20px; font-weight: 700; box-shadow: var(--shadow); }
.tstep b { min-width: 62px; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slots { flex-wrap: nowrap; overflow-x: auto; margin: 10px 0 12px; scrollbar-width: none; }
.slots::-webkit-scrollbar { display: none; }
.slots .chip { flex: none; padding: 7px 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; border-radius: 16px; font-weight: 700; background: var(--priSoft); color: var(--priInk); transition: transform .08s; }
.btn:active { transform: scale(.98); } .btn[disabled] { opacity: .55; pointer-events: none; }
.btn.pri { background: linear-gradient(135deg, #ffd21f, #ffb000); color: var(--on); box-shadow: 0 6px 16px rgba(255, 176, 0, .38); }
.btn.bad { background: var(--badSoft); color: var(--bad); } .btn.sm { padding: 10px 14px; width: auto; border-radius: 12px; font-size: 14px; }
.btn.ghost { background: var(--bg); color: var(--txt); }
.route { position: relative; padding-left: 26px; }
.route::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; border-left: 2px dashed var(--line); }
.route .pt { position: relative; } .route .pt::before { content: ""; position: absolute; left: -26px; top: 50%; margin-top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--pri); background: var(--card); }
.route .pt.end::before { background: var(--acc); border-color: var(--acc); }
.route .pt + .pt { margin-top: 10px; }
.swap { position: absolute; right: 0; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.15); display: grid; place-items: center; color: var(--priInk); z-index: 2; }
.route select { padding-right: 52px; font-weight: 600; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper .rb { width: 46px; height: 46px; border-radius: 14px; background: var(--bg); font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.bigprice { font-size: 34px; font-weight: 800; letter-spacing: -.5px; text-align: center; } .bigprice small { font-size: 15px; font-weight: 600; color: var(--mut); }
input[type=range] { padding: 0; border: 0; accent-color: var(--priInk); height: 28px; background: none; }
.seats { display: flex; gap: 8px; } .seats button { flex: 1; height: 48px; border-radius: 14px; background: var(--bg); font-weight: 700; font-size: 17px; border: 1.5px solid transparent; }
.seats button.on { background: var(--priSoft); color: var(--priInk); border-color: var(--priInk); }
.card.compact { padding: 10px 12px; margin-bottom: 10px; }
.card.compact .tstep button { width: 34px; height: 34px; }
.pricecard .stepper .rb { width: 38px; height: 38px; font-size: 20px; border-radius: 12px; }
.pricecard .bigprice { font-size: 26px; }
.pricecard input[type=range] { display: block; width: 100%; height: 22px; margin: 4px 0 0; }
.pricecard .pinfo { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 2px 0 0; font-size: 12px; text-align: center; }
.card.compact .tstep b { min-width: 54px; font-size: 18px; }
.card.compact .slots { margin: 0; flex: 1; min-width: 0; }
.card.compact .trow { margin-top: 8px; gap: 8px; flex-wrap: nowrap; }
.card.compact .row { flex-wrap: nowrap; align-items: center; gap: 8px; }
.card.compact .sstep b { min-width: 46px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.card.compact .sstep b svg { width: 16px; height: 16px; }
.card.compact .slots .chip { padding: 5px 10px; font-size: 13px; }
.seatrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seatrow .lbl { margin: 0; }
.seatrow .seats { flex: 1; max-width: 220px; gap: 6px; }
.seatrow .seats button { height: 36px; font-size: 15px; border-radius: 11px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--priSoft); color: var(--priInk); }
.pill.warn { background: #fff3d6; color: #8a5a00; } .pill.bad { background: var(--badSoft); color: var(--bad); } .pill.gray { background: var(--bg); color: var(--mut); }
.tripHead { display: flex; align-items: flex-start; gap: 10px; } .tripHead .r { font-weight: 800; font-size: 18px; }
.progress { display: flex; margin: 14px 0 6px; } .progress div { flex: 1; text-align: center; font-size: 11px; color: var(--mut); position: relative; font-weight: 600; }
.progress div::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; position: relative; z-index: 1; }
.progress div::after { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress div:first-child::after { display: none; }
.progress .done { color: var(--priInk); } .progress .done::before, .progress .done::after { background: var(--pri); }
.price { font-weight: 800; } .price.big { font-size: 22px; }
.radar { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--priSoft); color: var(--priInk); font-weight: 600; margin-top: 12px; }
.radar b { width: 14px; height: 14px; border-radius: 50%; background: var(--pri); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,176,0,.5); } 100% { box-shadow: 0 0 0 16px rgba(255,176,0,0); } }
.offer { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 10px; }
.offer.best { border-color: var(--priInk); }
.avatar { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.offer .acts { display: flex; gap: 8px; margin-top: 10px; } .offer .acts .btn { padding: 11px; }
.empty { text-align: center; padding: 40px 16px; color: var(--mut); } .empty .big { font-size: 54px; } .empty h3 { color: var(--txt); }
nav.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: var(--card); box-shadow: 0 -4px 20px rgba(0,0,0,.08); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 20; border-radius: 22px 22px 0 0; }
nav.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--mut); padding: 6px 0; position: relative; }
nav.tabs button.on { color: var(--priInk); } nav.tabs .dot { position: absolute; top: 2px; right: calc(50% - 20px); background: var(--bad); color: #fff; border-radius: 99px; font-size: 10px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.hero { background: linear-gradient(145deg, #1b1810, #2e2711); color: #fff; border-radius: 26px; padding: 26px 22px; margin: 6px 0 18px; }
.hero h2 { margin: 0 0 6px; font-size: 28px; } .hero p { margin: 0; opacity: .9; }
.wallet { background: linear-gradient(145deg, #1b1810, #3a2f0c); color: #fff; border-radius: 22px; padding: 22px; margin-bottom: 14px; }
.wallet .n { font-size: 34px; font-weight: 800; margin-top: 4px; }
.code { font-size: 28px; letter-spacing: 4px; font-weight: 800; color: var(--priInk); text-align: center; padding: 12px; background: var(--priSoft); border-radius: 14px; border: 2px dashed var(--pri); }
.otp { text-align: center; font-size: 26px; letter-spacing: 10px; font-weight: 800; }
.phone { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; } .phone:focus-within { border-color: var(--priInk); }
.phone span { padding: 0 4px 0 14px; font-weight: 700; } .phone input { border: 0; padding-left: 6px; font-weight: 600; font-size: 18px; letter-spacing: .5px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--pri); color: var(--on); border-bottom-right-radius: 6px; } .msg.ai { align-self: flex-start; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); animation: bl 1s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes bl { 50% { opacity: .2; } }
.composer { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 8px 16px; background: var(--bg); display: flex; gap: 8px; z-index: 15; }
.composer .btn { width: 52px; padding: 0; flex: none; }
.sticky { position: sticky; bottom: 84px; padding-top: 8px; }
#opts { display: contents; }
#opts[hidden] { display: none; }
.skel { height: 120px; border-radius: var(--r); margin-bottom: 14px; background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); max-width: 92%; background: #14202b; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: tin .25s; }
.toast.bad { background: var(--bad); } @keyframes tin { from { opacity: 0; transform: translate(-50%, -12px); } }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fi .2s; }
.sheet { background: var(--card); width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .25s; }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(100%); } } @keyframes fi { from { opacity: 0; } }
.pick { display: flex; gap: 10px; } .pick button { flex: 1; text-align: left; padding: 16px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.pick button.on { border-color: var(--priInk); background: var(--priSoft); } .pick b { display: block; margin-top: 6px; } .pick small { color: var(--mut); }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .tx:first-child { border-top: 0; }
.plus { color: var(--priInk); } .minus { color: var(--bad); }

.pick button { min-width: 0; } .pick small { display: block; font-size: 12px; line-height: 1.3; margin-top: 2px; font-weight: 400; } html, body { overflow-x: hidden; max-width: 100%; }

.msg.user { color: var(--on); }
.hero h2, .hero p { color: #fff; } .hero .em, .wallet .em { color: #ffd21f; }
.map { height: 300px; border-radius: 18px; overflow: hidden; position: relative; z-index: 0; border: 1px solid var(--line); }
.map.sm { height: 170px; margin-top: 12px; }
.mapbar { display: flex; gap: 8px; margin-bottom: 10px; }
.mapbar .tgt { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 2px solid transparent; text-align: left; min-width: 0; }
.mapbar .tgt.on { border-color: var(--pri); background: var(--priSoft); }
.mapbar .tgt i { width: 12px; height: 12px; border-radius: 50%; background: var(--pri); flex: none; border: 3px solid #16130a; box-sizing: content-box; width: 8px; height: 8px; }
.mapbar .tgt.d i { border-radius: 3px; background: #16130a; border-color: var(--pri); }
.mapbar .tgt span { display: block; min-width: 0; font-size: 12px; color: var(--mut); } .mapbar .tgt b { display: block; font-size: 13px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addrIn { display: flex; gap: 8px; margin-bottom: 10px; } .addrIn input { flex: 1; min-width: 0; }
.addrIn button { flex: none; width: 48px; border-radius: 14px; background: var(--pri); color: var(--on); display: grid; place-items: center; }
.mapres { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 500; background: var(--card); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); overflow: hidden; }
.mapres button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.mapres button span:nth-child(2) { flex: 1; min-width: 0; }
.mapres button:disabled { display: block; color: var(--mut); }
.result-pin { color: var(--priInk); font-size: 12px; }
.result-arrow { color: var(--mut); font-size: 18px; }
.locbtn { position: absolute; right: 10px; bottom: 10px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: 0 3px 10px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 20px; }
.maptools { display: flex; gap: 8px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
.maptools::-webkit-scrollbar { display: none; }
.maptool { flex: none; min-height: 40px; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--txt); font-size: 13px; font-weight: 700; }
.maptool:first-child { background: var(--priSoft); color: var(--priInk); border-color: color-mix(in srgb, var(--priInk) 25%, var(--line)); }
.maptool:active, .locbtn:active { transform: scale(.96); }
.locbtn { font-size: 24px; color: var(--priInk); line-height: 1; }
.locbtn:disabled { opacity: .55; }
.routeInfo { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 34px; margin-top: 8px; padding: 6px 10px; color: var(--mut); font-size: 13px; font-weight: 650; }
.routeInfo span:first-child:not(:only-child) { color: var(--priInk); }
.leaflet-control-zoom a { color: #17212b !important; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pri); border: 3px solid #16130a; box-shadow: 0 3px 8px rgba(0,0,0,.35); display: grid; place-items: center; }
.pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #16130a; }
.pin.d { background: #16130a; border-color: #ffc800; } .pin.d::after { background: #ffc800; }
.carDot { width: 22px; height: 22px; border-radius: 50%; background: #ffc800; border: 3px solid #16130a; box-shadow: 0 0 0 6px rgba(255,200,0,.35); animation: pulse 1.4s infinite; }
.leaflet-container { font: inherit; }.mapwrap { position: relative; z-index: 0; }

/* ---- ride screen: full-screen map with bottom sheet ---- */
#root.ride .top { position: absolute; left: 0; right: 0; background: transparent; pointer-events: none; padding-inline: 12px; }
#root.ride .top > * { pointer-events: auto; }
#root.ride .brand { flex: none; background: var(--card); padding: 5px 12px 5px 5px; border-radius: 999px; font-size: 15px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
#root.ride .brand img { width: 32px; height: 32px; }
#root.ride .top .langs { margin-left: auto; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
#root.ride main.content { padding: 0 0 calc(100px + env(safe-area-inset-bottom)); width: 100%; margin: 0; }
.rideMap { position: sticky; top: 0; height: 54dvh; min-height: 300px; z-index: 0; background: var(--bg); }
.rideMap #mapHost { height: 100%; }
.rideMap .map { height: 100%; border: 0; border-radius: 0; }
.rideMap .maptools { position: absolute; right: 10px; top: 70px; z-index: 500; flex-direction: column; margin: 0; overflow: visible; }
.rideMap .maptool { background: var(--card); border: 0; color: var(--txt); min-height: 36px; padding: 6px 12px; font-size: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.rideMap .maptool:first-child { color: var(--priInk); }
.rideMap .maptool { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 14px; }
.rideMap .maptool svg, .rideMap .locbtn svg { width: 22px; height: 22px; }
.rideMap .locbtn { display: grid; place-items: center; }
.rideMap .locbtn { right: 12px; bottom: 44px; background: var(--card); color: var(--priInk); border-radius: 14px; }
.rideMap .leaflet-top.leaflet-left { top: 56px; left: 2px; }
.rideMap .maptools { top: 64px; right: 12px; gap: 10px; }
.profile { text-align: center; }
.profile .avatar { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--priSoft); color: var(--priInk); display: grid; place-items: center; }
.profile .avatar svg { width: 32px; height: 32px; }
.accbanner { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #e6f7ee; color: #0a6b45; }
.accbanner svg { width: 20px; height: 20px; flex: none; }
.trkMap { height: 260px; border-radius: 14px; overflow: hidden; background: #e8ecef; }
.trkInfo { margin-top: 10px; text-align: center; font-weight: 700; }
.carpin { width: 40px; height: 40px; border-radius: 50%; background: var(--pri); border: 3px solid #16130a; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.carpin svg { width: 22px; height: 22px; stroke: #16130a; fill: none; stroke-width: 2; }
.leaflet-control-attribution { font-size: 9px !important; opacity: .7; }
.cpin { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -64px 0 0 -19px; z-index: 450; pointer-events: none; filter: drop-shadow(0 6px 5px rgba(0,0,0,.4)); transition: transform .15s; }
.cpin::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 38px; border-radius: 50%; background: #ffc800; box-shadow: inset 0 0 0 4px #ffc800, inset 0 0 0 14px #16130a; }
.cpin::after { content: ""; position: absolute; left: 50%; top: 36px; width: 4px; height: 26px; margin-left: -2px; background: #16130a; border-radius: 2px; }
.cpin.d::before { background: #16130a; box-shadow: inset 0 0 0 4px #16130a, inset 0 0 0 14px #ffc800; }
.pickOk { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 500; display: flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 999px; background: linear-gradient(135deg, #ffd21f, #ffb000); color: #16130a; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.pickOk[hidden], .cpin[hidden], .mres[hidden] { display: none; }
.rsheet { position: relative; z-index: 2; margin-top: -26px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 14px 10px; box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.prow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; text-align: left; margin-bottom: 10px; min-width: 0; }
.prow.on { border-color: var(--pri); }
.prow .ico { color: var(--txt); flex: none; display: grid; }
.prow.o b { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow.d input { border: 0; background: none; padding: 0; font-size: 16px; font-weight: 600; flex: 1; }
.prow.d input:focus-visible { outline: none; }
.prow.d input::placeholder { color: var(--mut); font-weight: 500; opacity: 1; }
.prow.d.has input::placeholder { color: var(--txt); font-weight: 600; }
.prow.d button { flex: none; color: var(--mut); display: grid; }
.mres { background: var(--card); border-radius: 16px; margin: -2px 0 10px; overflow-x: hidden; overflow-y: auto; max-height: 150px; overscroll-behavior: contain; box-shadow: var(--shadow); }
.mres button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.mres button span:nth-child(2) { flex: 1; min-width: 0; }
.mres button:disabled { color: var(--mut); }
.rsheet .routeInfo { margin-top: 0; min-height: 28px; }
.rsheet .routeInfo:empty { display: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 14px; padding-bottom: 2px; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.quick svg { width: 16px; height: 16px; color: var(--priInk); }
.rsheet .seg { background: transparent; padding: 0; gap: 8px; margin-bottom: 10px; }
.rsheet .seg button { background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 10px; color: var(--txt); flex-direction: row; justify-content: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.rsheet .seg button svg { width: 18px; height: 18px; flex: none; }
.rsheet .seg button .mut { display: none; }
.rsheet .seg button.on { background: var(--priSoft); color: var(--priInk); box-shadow: inset 0 0 0 2px var(--priInk); }
@media (min-width: 700px) {
  #root.ride { max-width: 480px; }
  #root.ride nav.tabs { width: min(100% - 48px, 432px); }
  #root.ride .content { width: 100%; }
}

:root { --r: 20px; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
#root { width: 100%; }
.top { padding-top: max(14px, env(safe-area-inset-top)); }
main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
button, input, select { touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--priInk) 55%, transparent);
  outline-offset: 2px;
}
button:not(:disabled) { transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease; }
.card { border: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
nav.tabs { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.login-main { width: 100%; }

@media (hover: hover) {
  .btn:not(:disabled):hover { filter: brightness(.97); }
  nav.tabs button:hover { color: var(--priInk); background: var(--priSoft); border-radius: 12px; }
  .chip:hover, .seats button:hover { border-color: var(--priInk); }
}

@media (min-width: 700px) {
  body { padding: 24px; }
  #root {
    max-width: 1040px;
    min-height: calc(100dvh - 48px);
    margin: 0 auto;
    overflow: clip;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--bg);
    box-shadow: 0 18px 60px rgba(20, 32, 43, .12);
  }
  .top { padding: 18px 30px 12px; }
  .content { width: min(100% - 48px, 820px); margin-inline: auto; }
  .login-main { width: min(100% - 48px, 480px); margin-inline: auto; }
  .content { padding: 12px 0 120px; }
  .content h2 { font-size: 30px; }
  .card { padding: 20px; border-radius: 22px; margin-bottom: 18px; }
  .map { height: 360px; }
  nav.tabs { left: 50%; bottom: 24px; width: min(100% - 48px, 820px); border-radius: 20px; border: 1px solid var(--line); }
  .composer { bottom: 98px; width: min(100% - 48px, 820px); border-radius: 18px; }
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 540px; border-radius: 26px; }
}

@media (max-width: 380px) {
  .top { padding-inline: 12px; }
  main { padding-inline: 12px; }
  .langs button { padding-inline: 8px; }
  .card { padding: 14px; }
  .hero { padding: 22px 18px; }
  .hero h2 { font-size: 25px; }
  .seg button { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- visual polish ---------- */
:root {
  --bg: #f4f6f9; --line: #e6eaf0; --r: 20px;
  --shadow: 0 1px 2px rgba(16, 28, 45, .05), 0 6px 18px rgba(16, 28, 45, .07);
  --ink2: #1d2b3a;
}
@media (prefers-color-scheme: dark) { :root { --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); } }
html, body { background: radial-gradient(900px 420px at 50% -120px, rgba(255, 200, 0, .16), transparent 70%), var(--bg); letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
h2 { font-weight: 800; letter-spacing: -.5px; }
.top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
#root.ride .top { background: transparent; }
.brand { letter-spacing: .6px; text-transform: uppercase; font-size: 17px; font-weight: 900; }
.brand img { box-shadow: 0 3px 10px rgba(255, 176, 0, .35); }
.langs { border: 1px solid var(--line); }
.langs button { transition: background .2s, color .2s; }
.card { border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn { transition: transform .12s, box-shadow .2s, filter .2s; font-size: 16px; }
.btn.pri { background: linear-gradient(135deg, #ffdd33 0%, #ffb800 55%, #ff9f00 100%); box-shadow: 0 8px 22px rgba(255, 168, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .55); letter-spacing: .2px; }
.btn.pri:hover { filter: brightness(1.04); }
.chip, .seg button, .tstep button, .stepper .rb { transition: background .18s, color .18s, box-shadow .18s, transform .1s; }
.chip:active, .tstep button:active, .stepper .rb:active { transform: scale(.94); }
.stepper .rb { background: var(--priSoft); color: var(--priInk); }
.bigprice { font-size: 38px; font-weight: 900; background: linear-gradient(135deg, var(--ink2), var(--priInk)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .bigprice { background: none; color: var(--txt); } }
input[type=range] { accent-color: #ffb000; }
nav.tabs { bottom: 10px; width: calc(100% - 24px); border-radius: 26px; padding: 8px 8px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16, 28, 45, .16); }
nav.tabs button { border-radius: 18px; transition: background .2s, color .2s; }
nav.tabs button.on { background: var(--priSoft); color: var(--priInk); }
.sticky { bottom: 96px; }
main { padding-bottom: 130px; }
.rsheet { border-radius: 30px 30px 0 0; box-shadow: 0 -12px 34px rgba(16, 28, 45, .16); }
.rsheet .grab { background: var(--line); }
.prow { border-radius: 18px; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.prow.on, .prow.d:focus-within { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(255, 200, 0, .22), var(--shadow); }
.prow.o .ico { color: #1fa463; }
.prow.d .ico { color: var(--bad); }
.rsheet .routeInfo { font-weight: 700; }
.rsheet .seg button { border: 1.5px solid transparent; font-weight: 700; }
.rsheet .seg button.on { box-shadow: 0 4px 12px rgba(255, 176, 0, .28); border-color: var(--priInk); }
#opts { animation: rise .4s ease both; }
.maptool, .locbtn, .pickOk { box-shadow: 0 4px 14px rgba(16, 28, 45, .2); }
.pickOk { background: linear-gradient(135deg, #ffdd33, #ffb000); }
.leaflet-container { font-family: inherit; }
