:root {
  --brand: #0093ff;
  --glass-reflection: #00feff;
  --ink: #18191c;
  --muted: #6c6c70;
  --surface: #f2f2f5;
  --glass-fill: rgba(248,249,250,.70);
  --hairline: rgba(30,32,36,.11);
  --success: #24b77a;
  --arrival: #f4c542;
  --danger: #d94b53;
  --shadow: 0 16px 40px rgba(25,29,36,.14), 0 4px 10px rgba(25,29,36,.05);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--surface); color: var(--ink); }
body { min-height: 100dvh; overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(0,147,255,.3); outline-offset: 2px; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.glass { position: relative; background: var(--glass-fill); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(18px) saturate(1.18); backdrop-filter: blur(18px) saturate(1.18); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9); }
.glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(130deg, rgba(0,254,255,.36), rgba(255,255,255,.08) 34%, rgba(255,255,255,.62) 76%, rgba(0,254,255,.14)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

.auth-screen { min-height: 100dvh; padding: max(34px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom)); display: grid; align-content: center; gap: 34px; background: radial-gradient(circle at 85% 10%, rgba(0,147,255,.12), transparent 30%), #fff; }
.auth-brand { max-width: 460px; margin: 0 auto; width: 100%; }
.brand-logo-large { width: 170px; margin-bottom: 36px; }
.auth-brand h1 { font-size: clamp(30px, 8vw, 44px); letter-spacing: -.045em; margin: 0 0 10px; }
.auth-brand p { color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.demo-badge, .self-report { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: #52606d; background: rgba(240,243,247,.92); }
.auth-card { width: min(100%, 460px); margin: 0 auto; padding: 22px; border-radius: 28px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: rgba(226,232,240,.72); border-radius: 14px; margin-bottom: 22px; }
.segmented button { min-height: 44px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 700; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 9px rgba(30,50,70,.1); }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; color: #404753; }
input, select { width: 100%; min-height: 48px; border: 1px solid var(--hairline); border-radius: 14px; padding: 0 14px; color: var(--ink); background: rgba(255,255,255,.86); }
input::placeholder { color: #9aa1ab; }
.check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 500; line-height: 1.4; }
.check input { min-height: 0; width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 8px 0; }
.form-error { color: var(--danger); font-size: 13px; min-height: 19px; margin: 12px 0 0; }
.button { min-height: 50px; border: 0; border-radius: 16px; padding: 0 20px; font-weight: 760; transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 10px 25px rgba(0,147,255,.26); }
.button.secondary { color: var(--brand); background: rgba(0,147,255,.10); border: 1px solid rgba(0,147,255,.14); }
.button.light { background: #fff; color: var(--success); }
.button.dark { color: #fff; background: var(--ink); }
.button.small { min-height: 44px; font-size: 13px; }

.app-shell { min-height: 100dvh; }
.desktop-rail { display: none; }
.main-stage { min-height: 100dvh; }
.view { display: none; }
.view.active { display: block; }
#home-view { position: relative; min-height: 100dvh; overflow: hidden; background: #dfe8ee; }
.map { position: absolute; inset: 0; min-height: 100dvh; background: #e9eef2; }
.map-fallback { position: absolute; inset: 0; padding: 120px 24px 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #52606d; background: linear-gradient(145deg,#eaf3f6,#f2f5ef); }
.map-fallback::before, .map-fallback::after { content: ""; position: absolute; opacity: .55; border: 1px solid #cbd9dd; border-radius: 48% 52% 38% 62%; pointer-events: none; }
.map-fallback::before { width: 62vw; height: 25vh; left: -20vw; top: 22%; transform: rotate(18deg); }
.map-fallback::after { width: 70vw; height: 32vh; right: -28vw; top: 8%; transform: rotate(-16deg); }
.map-fallback h2 { font-size: 18px; margin: 14px 0 6px; }
.map-fallback p { margin: 0 0 14px; max-width: 320px; font-size: 13px; line-height: 1.5; }
.fallback-mark { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.82); box-shadow: 0 10px 30px rgba(40,70,90,.13); display: grid; place-items: center; }
.fallback-mark span { width: 18px; height: 18px; border: 5px solid var(--brand); border-radius: 50%; }
.topbar { position: absolute; z-index: 5; inset: max(16px, env(safe-area-inset-top)) 16px auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.logo-surface { padding: 13px 15px; border-radius: 17px; background: rgba(255,255,255,.93); box-shadow: 0 8px 30px rgba(30,50,70,.12); }
.brand-logo { width: 86px; height: auto; }
.location-pill { border-radius: 999px; border: 1px solid rgba(255,255,255,.86); padding: 0 14px; min-height: 44px; max-width: 57vw; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.location-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hitch-map-marker { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); color: #fff; background: var(--brand); box-shadow: 0 7px 18px rgba(10,40,70,.28); }
.hitch-map-marker span { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hitch-map-marker.dropoff { width: 38px; height: 38px; color: #fff; background: #111318; }
.hitch-map-marker.dropoff span { width: 11px; height: 11px; background: var(--glass-reflection); }
.hitch-map-marker.driver { width: 50px; height: 50px; border-radius: 50%; transform: none; color: #fff; background: var(--brand); box-shadow: 0 0 0 7px rgba(0,147,255,.16), 0 10px 24px rgba(10,60,100,.3); }
.hitch-map-marker.driver::after { content: ""; position: absolute; inset: -13px; border: 2px solid rgba(0,147,255,.28); border-radius: 50%; animation: driver-location-ring 2s ease-out infinite; }
.hitch-map-marker.driver svg { width: 28px; height: 28px; transform: none; stroke-width: 1.7; }
@keyframes driver-location-ring { from { transform: scale(.75); opacity: .9; } to { transform: scale(1.2); opacity: 0; } }
.location-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: 0 0 auto; }
.location-dot.ready { background: var(--success); box-shadow: 0 0 0 4px rgba(36,183,122,.14); }
.map-tools { position: absolute; z-index: 5; right: 16px; top: max(82px, calc(env(safe-area-inset-top) + 70px)); width: 49px; border-radius: 17px; overflow: hidden; }
.map-tools button { display: grid; width: 48px; height: 48px; place-items: center; color: var(--ink); border: 0; background: transparent; }
.map-tools button + button { border-top: 1px solid var(--hairline); }
.map-tools svg, .icon-button svg { width: 23px; height: 23px; }
.bottom-sheet { position: absolute; z-index: 7; left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); max-height: min(52dvh, 480px); overflow-y: auto; overscroll-behavior: contain; border-radius: 30px; padding: 9px 20px 20px; }
.sheet-handle { width: 38px; height: 5px; border-radius: 999px; background: rgba(60,68,80,.25); margin: 0 auto 14px; }
.sheet-heading, .dialog-header, .page-header, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 12px; font-weight: 760; }
.sheet-heading h1 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: rgba(241,244,247,.92); font-size: 26px; }
.search-box { height: 50px; border-radius: 16px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; padding: 0 13px; margin-top: 18px; background: rgba(238,242,246,.82); border: 1px solid rgba(25,35,55,.05); }
.search-box svg { width: 22px; color: #7d8794; }
.search-box input { min-height: 0; height: 45px; padding: 0; border: 0; background: transparent; outline: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid #bfdbfe; border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-results { margin-top: 7px; display: grid; }
.search-result { min-height: 56px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 7px; text-align: left; border: 0; border-bottom: 1px solid var(--hairline); color: var(--ink); background: transparent; }
.search-result svg { width: 21px; color: var(--brand); }
.search-result strong, .search-result small { display: block; }
.search-result small { margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-places { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none; }
.quick-places::-webkit-scrollbar { display: none; }
.quick-places button { border: 1px solid var(--hairline); white-space: nowrap; min-height: 44px; padding: 0 13px; border-radius: 999px; color: #3d4650; background: rgba(255,255,255,.74); }
.selected-route { margin-top: 16px; display: grid; grid-template-columns: 20px 1fr; gap: 6px 10px; }
.route-line { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; padding: 5px 0; }
.route-line i { width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50%; }
.route-line i:last-child { background: var(--brand); }
.route-line span { flex: 1; width: 1px; min-height: 28px; background: #aab5c0; }
.selected-route p { margin: 0 0 10px; }
.selected-route small, .selected-route strong { display: block; }
.selected-route small { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.selected-route strong { font-size: 14px; }
.seat-field { grid-column: 1 / 3; grid-template-columns: auto 90px; align-items: center; }
.seat-field select { min-height: 40px; }
.selected-route .fine, .selected-route .button { grid-column: 1 / 3; }

.bottom-nav { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); height: 66px; border-radius: 23px; display: grid; grid-template-columns: repeat(3,1fr); }
.bottom-nav button { position: relative; border: 0; color: #818a96; background: transparent; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; }
.bottom-nav button.active { color: var(--brand); }
.bottom-nav svg { width: 23px; height: 23px; }
.notification-dot { position: absolute; top: 10px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.page-view { min-height: 100dvh; padding: max(28px, env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom)); background: var(--surface); }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.status-badge { padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 760; }
.status-badge.connected { color: #14805a; background: rgba(36,183,122,.11); }
.status-badge.waiting { color: #7d660e; background: rgba(244,197,66,.17); }
.status-badge.offline { color: #a5363c; background: rgba(217,75,83,.12); }
.section-block { margin-top: 28px; }
.section-block h2, .settings-card h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.025em; }
.text-button { min-height: 44px; border: 0; padding: 8px; color: var(--brand); background: transparent; font-size: 13px; font-weight: 700; }
.danger-text { color: var(--danger); }
.dark-text { color: var(--ink); }
.card-list { display: grid; gap: 12px; margin-top: 12px; }
.empty-card, .ride-card, .settings-card { padding: 18px; border: 1px solid var(--hairline); border-radius: 22px; background: #fff; box-shadow: 0 8px 26px rgba(32,52,75,.055); }
.empty-card { color: var(--muted); text-align: center; line-height: 1.5; font-size: 13px; }
.ride-card h3 { margin: 0 0 6px; font-size: 18px; }
.ride-card p { margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ride-route { margin: 14px 0; display: grid; grid-template-columns: 18px 1fr; gap: 5px 8px; }
.ride-route i { width: 9px; height: 9px; align-self: center; border: 2px solid var(--brand); border-radius: 50%; }
.ride-route i:nth-of-type(2) { background: var(--brand); }
.ride-route strong { font-size: 14px; }
.ride-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.ride-actions .full-action { grid-column: 1 / 3; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.metric { padding: 12px; border-radius: 14px; background: #f4f7f9; }
.metric small, .metric strong { display: block; }
.metric small { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.metric strong { font-size: 16px; }
.status-strip { border-radius: 18px; padding: 16px; margin-bottom: 12px; color: #095a41; background: rgba(36,183,122,.1); }
.status-strip.arrival { color: #6d5810; background: rgba(244,197,66,.18); }
.status-strip h2 { margin: 0 0 4px; font-size: 20px; }
.status-strip p { margin: 0; font-size: 13px; line-height: 1.5; }
.profile-card { border-radius: 25px; padding: 20px; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 800; background: var(--brand); }
.profile-card h2 { margin: 0 0 3px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-metrics { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-metrics div { padding: 12px; border-radius: 14px; background: rgba(247,249,252,.82); }
.profile-metrics strong, .profile-metrics small { display: block; }
.profile-metrics small { color: var(--muted); margin-top: 2px; }
.settings-card { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.form-grid .full { grid-column: 1 / 3; }
.settings-card > label { margin: 14px 0; }
.safety-copy p { color: var(--muted); font-size: 13px; line-height: 1.62; }

.stage-screen { position: fixed; inset: 0; z-index: 50; color: #fff; background: var(--brand); overflow: hidden; }
.stage-content { position: absolute; inset: 0; padding: max(30px, env(safe-area-inset-top)) 28px max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; }

.consent-form { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.consent-form .button { margin-top: 2px; }
.stage-logo { width: 92px; align-self: flex-start; filter: brightness(0) invert(1); opacity: .95; }
.stage-copy { margin-top: auto; margin-bottom: 115px; }
.stage-content > p, .stage-copy > p { margin: 0 0 8px; opacity: .78; font-weight: 650; }
.stage-content h1 { margin: 0; font-size: clamp(32px, 9vw, 48px); line-height: 1.12; letter-spacing: -.052em; }
.radar { position: absolute; width: min(66vw, 300px); aspect-ratio: 1; top: 24%; display: grid; place-items: center; }
.radar span { position: absolute; width: 55%; height: 55%; border: 1.5px solid rgba(255,255,255,.66); border-radius: 50%; animation: ripple 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar i { width: 78px; height: 78px; border-radius: 50%; border: 9px solid rgba(255,255,255,.9); background: rgba(255,255,255,.2); box-shadow: 0 16px 50px rgba(0,70,140,.25); }
@keyframes ripple { 0% { transform: scale(.45); opacity: 0; } 18% { opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
#searching-route { margin-top: 20px; font-size: 13px; line-height: 1.55; opacity: .85; }
.round-action { position: absolute; bottom: max(34px, env(safe-area-inset-bottom)); width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); display: grid; place-items: center; background: rgba(255,255,255,.17); color: #fff; }
.round-action svg { width: 30px; }
#matched-stage { justify-content: center; background: var(--success); }
.success-check { width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--success); box-shadow: 0 18px 50px rgba(0,80,55,.18); }
.success-check svg { width: 54px; height: 54px; stroke-width: 2.3; }
.proximity-cue { position: relative; width: 128px; height: 128px; display: grid; place-items: center; margin-bottom: 20px; color: #665000; }
.proximity-cue span { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.16); }
.proximity-cue svg { width: 76px; height: 76px; stroke-width: 1.6; }
.proximity-distance { margin: 18px 0 0 !important; text-align: left; width: min(100%,420px); opacity: 1 !important; }
.proximity-distance strong { display: block; font-size: clamp(42px,13vw,68px); font-weight: 430; line-height: .95; letter-spacing: -.055em; }
.proximity-distance small { display: block; margin-top: 7px; color: #665000; font-size: 12px; font-weight: 650; }
.stage-card { width: min(100%, 420px); padding: 18px; margin: 24px 0 14px; border-radius: 22px; color: var(--ink); text-align: left; background: rgba(255,255,255,.92); box-shadow: 0 20px 55px rgba(0,70,50,.15); }
.stage-card strong, .stage-card small { display: block; }
.stage-card small { color: var(--muted); margin-top: 4px; }
.stage-content > .button { width: min(100%, 420px); }
#arrival-stage { justify-content: center; color: var(--ink); background: var(--arrival); }
#arrival-stage h1 { font-size: clamp(29px, 8vw, 42px); }
.arrival-safe { max-width: 380px; margin-top: 14px !important; color: #594800; opacity: 1 !important; line-height: 1.5; }
.stage-back { position: absolute; z-index: 3; top: max(20px, env(safe-area-inset-top)); right: 20px; min-height: 44px; border: 0; color: inherit; background: rgba(255,255,255,.2); padding: 10px 12px; border-radius: 999px; font-weight: 700; }

.app-dialog { width: 100%; max-width: 520px; height: auto; max-height: 85dvh; padding: 0; border: 0; background: transparent; overflow: visible; }
.app-dialog::backdrop { background: rgba(17,19,24,.34); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-card { border-radius: 30px; padding: 22px; max-height: 83dvh; overflow-y: auto; }
.dialog-header h2 { margin: 0; font-size: 25px; }
.location-choice { width: 100%; min-height: 70px; border: 0; border-radius: 18px; padding: 12px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; text-align: left; color: var(--ink); background: rgba(0,147,255,.08); margin: 20px 0 12px; }
.choice-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); }
.choice-icon svg { width: 23px; }
.location-choice strong, .location-choice small { display: block; }
.location-choice small { color: var(--muted); margin-top: 4px; }
.divider-label { font-size: 12px; color: var(--muted); margin: 20px 0 7px; }
.demo-location-list { display: grid; gap: 7px; }
.demo-location-list button { min-height: 48px; border: 1px solid var(--hairline); border-radius: 14px; text-align: left; padding: 0 13px; color: var(--ink); background: rgba(255,255,255,.7); }
fieldset { border: 0; padding: 0; margin: 20px 0; }
legend { font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.rating div { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: #eef2f5; font-size: 0; }
.rating label::after { content: "★"; font-size: 24px; }
.rating input:checked ~ label { color: #bd8500; background: rgba(244,197,66,.26); }
.tag-options { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-options label { display: block; }
.tag-options input { position: absolute; opacity: 0; pointer-events: none; }
.tag-options span { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 13px; }
.rating input:focus-visible + label, .tag-options input:focus-visible + span { outline: 3px solid rgba(0,147,255,.42); outline-offset: 2px; }
.tag-options input:checked + span { color: var(--brand); border-color: rgba(0,147,255,.4); background: rgba(0,147,255,.08); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px; color: #fff; background: rgba(17,19,24,.9); box-shadow: 0 12px 40px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .auth-screen { grid-template-columns: minmax(280px,460px) minmax(360px,460px); justify-content: center; align-items: center; gap: 8vw; }
  .bottom-sheet { left: 24px; right: auto; width: min(440px, calc(100vw - 48px)); bottom: 92px; max-height: 58dvh; }
  .page-view { padding-left: max(8vw, 40px); padding-right: max(8vw, 40px); }
  .page-view > * { max-width: 780px; margin-left: auto; margin-right: auto; }
  .card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #active-ride-card .ride-card { max-width: 780px; }
  .app-dialog { border-radius: 30px; }
}
@media (min-width: 960px) {
  .app-shell { display: grid; grid-template-columns: 104px 1fr; padding: 14px; gap: 14px; }
  .desktop-rail { display: flex; position: sticky; top: 14px; height: calc(100dvh - 28px); z-index: 30; flex-direction: column; align-items: stretch; border-radius: 28px; padding: 22px 10px 14px; }
  .rail-logo { width: 68px; margin: 0 auto 32px; }
  .rail-item { min-height: 64px; border: 0; border-radius: 17px; color: #78818d; background: transparent; display: grid; place-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
  .rail-item.active { color: var(--brand); background: rgba(0,147,255,.09); }
  .nav-icon { font-size: 23px; line-height: 1; }
  .rail-spacer { flex: 1; }
  .desktop-rail .demo-badge { padding: 6px 4px; margin: 0 auto; text-align: center; font-size: 9px; }
  .main-stage, #home-view, .map { min-height: calc(100dvh - 28px); border-radius: 31px; }
  #home-view { box-shadow: 0 12px 42px rgba(35,60,80,.12); }
  .bottom-nav { display: none; }
  .bottom-sheet { bottom: 24px; }
  .page-view { min-height: calc(100dvh - 28px); border-radius: 31px; padding-bottom: 50px; }
  .stage-screen { left: 118px; inset-block: 14px; right: 14px; border-radius: 31px; }
  .toast { bottom: 28px; }
}
@media (max-width: 359px) {
  .bottom-sheet { padding-inline: 15px; border-radius: 25px; }
  .sheet-heading h1 { font-size: 23px; }
  .logo-surface { padding: 11px; }
  .brand-logo { width: 72px; }
  .location-pill { max-width: 58vw; padding-inline: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
}
@media (prefers-reduced-transparency: reduce) { .glass { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* HITCH iOS Light UI — translated from the provided independent web UI kit. */
html { background:#f2f2f5; }
body.ios-kit { color-scheme:light; background:#f2f2f5; }
.ios-kit .auth-screen { background:linear-gradient(180deg,#fafafb 0%,#f0f0f3 100%); }
.ios-kit .auth-brand h1 { font-weight:760; letter-spacing:-.05em; }
.ios-kit .auth-card { border-radius:30px; background:rgba(255,255,255,.90); }
.ios-kit input, .ios-kit select { border:1px solid rgba(50,50,55,.045); border-radius:14px; background:rgba(116,116,128,.09); }
.ios-kit .segmented { padding:4px; border-radius:13px; background:rgba(116,116,128,.12); }
.ios-kit .segmented button { border-radius:10px; font-size:13px; }
.ios-kit .segmented button.active { box-shadow:0 1px 3px #0002,0 1px 1px #0001; }
.ios-kit .button { border-radius:20px; min-height:48px; letter-spacing:-.025em; box-shadow:none; }
.ios-kit .button.primary { background:var(--brand); box-shadow:0 8px 20px rgba(0,147,255,.20); }
.ios-kit .button.secondary { color:#202124; border-color:rgba(50,50,55,.05); background:rgba(255,255,255,.78); }
.ios-kit .logo-surface { padding:0; border-radius:0; background:transparent !important; box-shadow:none; }
.ios-kit .logo-surface .brand-logo { width:96px; filter:none; }
.ios-kit .topbar { inset-inline:20px; }
.ios-kit .location-pill { min-height:48px; border-radius:17px; padding-inline:15px; font-size:13px; }
.ios-kit .map-tools { width:54px; border-radius:22px; padding:3px; }
.ios-kit .map-tools button { width:46px; height:48px; border-radius:18px; }
.ios-kit .map-tools button + button { border-top:1px solid rgba(30,32,36,.09); }
.ios-kit .bottom-sheet { border-radius:33px; padding:10px 20px 22px; background:rgba(248,247,244,.95); border:1px solid rgba(255,255,255,.86); box-shadow:0 16px 50px rgba(37,39,42,.14),inset 0 1px #fff; }
.ios-kit .sheet-handle { width:36px; height:5px; margin-bottom:17px; background:#b8b8ba; }
.ios-kit .sheet-heading h1 { font-size:28px; font-weight:745; letter-spacing:-.045em; line-height:1.25; }
.ios-kit .eyebrow { color:#6c6c70; font-weight:650; }
.ios-kit .search-box { min-height:44px; height:46px; border-radius:14px; margin-top:13px; background:rgba(116,116,128,.105); border:1px solid rgba(50,50,55,.025); }
.ios-kit .search-result { min-height:58px; padding-inline:4px; }
.ios-kit .quick-places { gap:7px; padding-top:13px; }
.ios-kit .quick-places button { min-height:44px; border-radius:14px; background:rgba(255,255,255,.78); border:1px solid rgba(30,32,36,.08); }
.ios-kit .selected-route { padding-top:3px; }
.ios-kit .seat-field select { background:#fff; }
.ios-kit .bottom-nav { left:50%; right:auto; width:min(352px,calc(100% - 28px)); transform:translateX(-50%); height:66px; padding:6px; border-radius:30px; gap:3px; }
.ios-kit .bottom-nav button { border-radius:24px; color:#6f7077; transition:background .2s cubic-bezier(.2,.82,.19,1),transform .2s cubic-bezier(.2,.82,.19,1),color .2s ease; }
.ios-kit .bottom-nav button.active { color:#202124; background:rgba(255,255,255,.84); box-shadow:0 2px 9px #0001; }
.ios-kit .page-view { background:#f2f2f5; }
.ios-kit .page-header h1 { font-size:34px; font-weight:760; }
.ios-kit .empty-card, .ios-kit .ride-card, .ios-kit .settings-card { border:0; border-radius:24px; background:rgba(255,255,255,.96); box-shadow:0 8px 28px rgba(25,29,36,.055); }
.ios-kit .settings-card { padding:20px; }
.ios-kit .settings-card + .settings-card { margin-top:14px; }
.ios-kit .profile-card { border-radius:28px; padding:22px; background:rgba(255,255,255,.88); }
.ios-kit .profile-metrics div, .ios-kit .metric { background:#f5f5f7; }
.ios-kit .icon-button { width:50px; height:50px; border-radius:18px; background:rgba(116,116,128,.075); }
.ios-kit .status-strip { border-radius:20px; }
.ios-kit .ride-actions { gap:10px; }
.ios-kit .stage-card { border-radius:28px; border:1px solid rgba(255,255,255,.88); box-shadow:0 16px 40px rgba(25,29,36,.13); }
.ios-kit .app-dialog .dialog-card { border-radius:30px; background:rgba(249,249,250,.96); }
.ios-kit .toast { top:calc(65px + env(safe-area-inset-top)); bottom:auto; border-radius:999px; background:rgba(250,250,251,.92); color:#18191c; border:1px solid rgba(255,255,255,.84); -webkit-backdrop-filter:blur(24px) saturate(1.6); backdrop-filter:blur(24px) saturate(1.6); }
@media (min-width:960px) {
  .ios-kit .desktop-rail { border-radius:35px; background:rgba(248,249,250,.76); }
  .ios-kit .rail-item { border-radius:20px; color:#6f7077; }
  .ios-kit .rail-item.active { color:#202124; background:rgba(255,255,255,.88); box-shadow:0 2px 9px #0001; }
  .ios-kit .main-stage, .ios-kit #home-view, .ios-kit .map, .ios-kit .page-view { border-radius:35px; }
}
@media (max-width:480px) {
  .ios-kit .bottom-sheet { left:8px; right:8px; border-radius:30px; }
  .ios-kit .topbar { inset-inline:16px; }
  .ios-kit .logo-surface .brand-logo { width:90px; }
}
.ios-kit .map-tools.ios-glass { position:absolute; }
.ios-kit .bottom-sheet.ios-glass { position:absolute; }
.ios-kit .bottom-nav.ios-glass { position:fixed; }

/* Native-like scroll behavior: keep gestures, hide scrollbar chrome, prevent x overflow. */
.ios-kit .bottom-sheet { display:flex; flex-direction:column; overflow:hidden; overscroll-behavior-x:none; }
.ios-kit .sheet-scroll { min-width:0; min-height:0; max-width:100%; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; -ms-overflow-style:none; }
.ios-kit .bottom-sheet::-webkit-scrollbar, .ios-kit .sheet-scroll::-webkit-scrollbar, .ios-kit .dialog-card::-webkit-scrollbar { width:0; height:0; display:none; }
.ios-kit .dialog-card { scrollbar-width:none; -ms-overflow-style:none; }
.ios-kit .sheet-handle { position:relative; touch-action:none; cursor:grab; }
.ios-kit .sheet-handle::after { content:""; position:absolute; inset:-12px -24px; }
.ios-kit .quick-places { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:100%; min-width:0; overflow:visible; }
.ios-kit .quick-places button { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.ios-kit .selected-route, .ios-kit .search-box, .ios-kit .sheet-heading { min-width:0; max-width:100%; }
.ios-kit .selected-route > *, .ios-kit .search-box input { min-width:0; }

/* Hide scrollbar chrome across the app while preserving wheel, keyboard and touch scrolling. */
html, body, .ios-kit, .ios-kit * { scrollbar-width:none; -ms-overflow-style:none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .ios-kit::-webkit-scrollbar, .ios-kit *::-webkit-scrollbar { width:0; height:0; display:none; }
.ios-kit .button { transition:transform .22s cubic-bezier(.2,.82,.19,1),box-shadow .22s ease,background .22s ease; }
.ios-kit .button:not(:disabled) { opacity:1; }
.ios-kit .selected-route { grid-template-columns:1fr; }
.ios-kit .selected-route > div, .ios-kit .selected-route .seat-field, .ios-kit .selected-route .button { grid-column:1; }

/* Focused onboarding and Find My motion refinements. */
.ios-kit .auth-screen { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100dvh; padding:32px 20px calc(28px + env(safe-area-inset-bottom)); overflow:hidden; background:#fff; }
.ios-kit .auth-brand { width:100%; display:flex; flex-direction:column; align-items:center; text-align:center; margin:0 0 14vh; transition:transform .36s cubic-bezier(.2,.82,.19,1),opacity .25s ease; }
.ios-kit .auth-brand .brand-logo-large { width:min(58vw,240px); margin:0; }
.ios-kit .auth-brand p { margin:24px 0 0; color:#6c6c70; font-size:16px; }
.ios-kit .auth-brand.form-open { transform:translateY(-18vh) scale(.72); opacity:.92; }
.ios-kit .onboarding-actions { position:absolute; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); display:grid; gap:11px; padding:22px; border-radius:34px; background:#f3f3f5; }
.ios-kit .onboarding-actions .button { min-height:58px; border-radius:18px; font-size:17px; }
.ios-kit .onboarding-primary { color:#fff; background:#18191c; }
.ios-kit .onboarding-secondary { color:#18191c; background:#fff; border:1px solid rgba(30,32,36,.08); }
.ios-kit .auth-card { position:absolute; z-index:3; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); width:auto; max-height:min(72dvh,650px); overflow:auto; margin:0; padding:24px; border-radius:34px; background:rgba(248,248,250,.94); }
.ios-kit .auth-back { position:absolute; top:14px; right:14px; z-index:2; width:44px; height:44px; border:0; border-radius:50%; color:#18191c; background:rgba(116,116,128,.1); font-size:25px; }
.ios-kit .auth-card .segmented { margin:2px 52px 22px 0; }
.ios-kit .logo-surface .brand-logo { width:112px; }
.ios-kit .search-box { padding:0 14px; background:rgba(116,116,128,.105); }
.ios-kit .search-box input { height:44px; min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.ios-kit .bottom-sheet { background:rgba(248,249,250,.76); border-color:rgba(255,255,255,.82); -webkit-backdrop-filter:blur(26px) saturate(1.45); backdrop-filter:blur(26px) saturate(1.45); }
.radar { width:min(72vw,330px); top:22%; }
.radar span { width:54%; height:54%; border:3px solid rgba(255,255,255,.72); animation:ripple 2.7s cubic-bezier(.18,.72,.2,1) infinite; }
.radar i { width:116px; height:116px; border:0; background:#fff; box-shadow:0 18px 50px rgba(0,76,145,.18); animation:radar-core 2.8s ease-in-out infinite; }
@keyframes ripple { 0% { transform:scale(.56); opacity:0; } 16% { opacity:.88; } 75%,100% { transform:scale(1.95); opacity:0; } }
@keyframes radar-core { 0%,100% { transform:scale(1); } 50% { transform:scale(.94); } }
.stage-copy { margin-top:auto; margin-bottom:72px; }
@media (min-width:700px) {
  .ios-kit .auth-screen { display:flex; grid-template-columns:none; }
  .ios-kit .onboarding-actions, .ios-kit .auth-card { left:50%; right:auto; width:min(480px,calc(100% - 32px)); transform:translateX(-50%); }
  .ios-kit .auth-brand.form-open { transform:translateY(-150px) scale(.72); }
}
@media (min-width:960px) { .ios-kit .logo-surface .brand-logo { width:124px; } }
