:root {
  --yellow: #b8e0c8;
  --ink: #eef2ed;
  --muted: #9a9aa4;
  --surface: #1b1b20;
  --background: #121214;
  --field: #26262c;
  --green: #18a957;
  --blue: #2f6bff;
  --red: #ff3838;
  --line: #34343a;
  --on-accent: #102018;
  --marker-ink: #101014;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: "Roboto", "Segoe UI", system-ui, sans-serif; background: #17171a; color: var(--ink); overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: transparent; color: inherit; }
.hidden { display: none !important; }
svg { display: block; }

/* role screen */
.role-screen {
  position: relative; width: 100%; max-width: 430px; min-height: 100dvh;
  margin: 0 auto; padding: calc(26px + env(safe-area-inset-top)) 24px calc(26px + env(safe-area-inset-bottom));
  background: var(--background); overflow: hidden auto;
}
.role-screen::before {
  content: ""; position: absolute; top: -140px; right: -150px;
  width: 340px; height: 340px; border-radius: 50%; background: #d7f0df;
}
.role-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: 1.5px; }
.wordmark-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); display: grid; place-items: center; font-size: 26px; letter-spacing: 0; }
.demo-badge { background: #fff3bf; padding: 8px 13px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.role-hero { position: relative; margin: 48px 0 28px; }
.role-hero h1 { margin: 0; font-size: clamp(46px, 13vw, 56px); line-height: .94; letter-spacing: -2.6px; font-weight: 900; }
.role-hero p { margin: 22px 0 0; color: #6f6f75; font-size: 17px; line-height: 1.45; max-width: 330px; }
.role-card {
  position: relative; width: 100%; min-height: 174px; border-radius: 28px;
  padding: 22px; text-align: left; overflow: hidden; display: block; margin-bottom: 16px;
}
.passenger-card { background: var(--yellow); color: var(--ink); }
.driver-card { background: #191919; color: #fff; }
.role-card-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 2; }
.passenger-card .role-card-icon { background: #191919; color: var(--yellow); }
.driver-card .role-card-icon { background: var(--yellow); color: #191919; }
.role-card-icon svg { width: 26px; height: 26px; fill: currentColor; }
.role-card-copy { position: relative; z-index: 2; display: block; margin-top: 30px; }
.role-card-copy b { display: block; font-size: 29px; line-height: 1; letter-spacing: -.8px; font-weight: 900; }
.role-card-copy small { display: block; margin-top: 7px; font-size: 15px; color: rgba(0,0,0,.64); }
.driver-card .role-card-copy small { color: #a8a8ae; }
.role-card-arrow { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.1); display: grid; place-items: center; font-size: 20px; z-index: 2; }
.driver-card .role-card-arrow { background: rgba(255,255,255,.14); color: #fff; }
.role-car-art { position: absolute; right: -14px; bottom: 8px; width: 190px; height: 105px; color: #191919; }
.driver-card .role-car-art { color: #fff; }
.role-car-art svg { width: 100%; height: 100%; }
.role-passenger-art { position: absolute; right: 36px; bottom: 10px; width: 46px; height: 112px; color: #191919; opacity: .15; }
.role-passenger-art svg { width: 100%; height: 100%; }
.role-note { margin-top: 26px; color: #74747a; font-size: 13px; line-height: 1.6; }
.role-note::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c8c3b9; margin-right: 8px; }
.role-server { margin-top: 18px; color: #aaa59b; font-size: 11px; }
.role-server span { color: #7d7d83; }

/* app */
.app { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; overflow: hidden; background: #e7e2d8; isolation: isolate; }
#map { position: absolute; inset: 0; z-index: 0; }
.leaflet-control-attribution { display: none; }
.top-scrim { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 190px; background: linear-gradient(to bottom, rgba(20,20,24,.45), transparent); pointer-events: none; }
.topbar { position: absolute; z-index: 20; top: calc(10px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.pill { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.97); border-radius: 999px; padding: 6px 10px 6px 6px; box-shadow: 0 8px 24px rgba(18,18,22,.18); }
.pill-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.pill-icon svg { width: 24px; height: 24px; fill: var(--ink); }
.pill-text { text-align: left; line-height: 1.05; }
.pill-text b { display: block; font-size: 16px; }
.pill-text small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.chevron { font-size: 20px; }
.circle-btn { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(18,18,22,.18); font-size: 22px; }
#locBtn { margin-left: auto; }
.map-attribution { position: absolute; z-index: 10; bottom: calc(var(--sheet-height, 0px) + 8px); left: 8px; background: rgba(255,255,255,.82); color: #2a2a2a; font-size: 11px; padding: 5px 8px; border-radius: 6px; }
.location-badge { position: absolute; z-index: 10; top: calc(78px + env(safe-area-inset-top)); left: 16px; background: rgba(24,24,28,.92); color: #fff; font-size: 12px; padding: 9px 13px; border-radius: 12px; }

/* sheet */
.sheet { position: absolute; z-index: 18; left: 0; right: 0; bottom: 0; max-height: 70dvh; overflow-y: auto; scrollbar-width: none; background: var(--surface); border-radius: 30px 30px 0 0; box-shadow: 0 -16px 44px rgba(20,20,25,.16); padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet::-webkit-scrollbar { display: none; }
.sheet-handle { width: 32px; height: 5px; border-radius: 99px; background: #ded9ce; margin: 0 auto 16px; }
.pane { animation: paneIn .18s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.sheet-title { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -1px; font-weight: 900; }
.sheet-title.center { text-align: center; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.45; }
.plan-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.plan-title-row .sheet-title { font-size: 28px; }
.nearby-chip { display: flex; align-items: center; gap: 7px; background: #e9f8ef; color: #2b7d49; border-radius: 999px; padding: 9px 11px; font-size: 11px; white-space: nowrap; }
.nearby-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.address-card { background: var(--field); border-radius: 22px; padding: 4px 16px; }
.address-card.compact { padding: 4px 14px; margin-top: 12px; }
.address-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; min-height: 58px; }
.address-dot { width: 11px; height: 11px; flex: 0 0 11px; }
.address-dot.pickup { border-radius: 50%; background: var(--green); }
.address-dot.destination { border-radius: 3px; background: var(--red); }
.address-copy { flex: 1; min-width: 0; }
.address-copy small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; margin-bottom: 4px; }
.address-copy div, .address-copy input { width: 100%; border: 0; background: transparent; padding: 0; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }
.address-copy input::placeholder { color: #aaa59b; font-weight: 400; }
.copy-address { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; color: #8b867d; font-size: 19px; display: grid; place-items: center; }
.copy-address.light { color: rgba(255,255,255,.78); }
.payment-row .copy-address { margin-left: auto; }
.address-divider { height: 1px; background: #ded8cc; margin-left: 23px; }
.clear-dest { width: 32px; height: 32px; border-radius: 50%; color: #a19c92; font-size: 24px; }
.suggestions { margin-top: 8px; background: #fff; border: 1px solid #e7e1d6; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 24px rgba(25,25,30,.1); }
.suggestion { width: 100%; display: block; text-align: left; padding: 11px 13px; border-bottom: 1px solid #f1ece3; }
.suggestion:last-child { border-bottom: 0; }
.suggestion b { display: block; font-size: 14px; }
.suggestion small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.fare-section { margin-top: 14px; border-top: 1px solid #e7e1d6; padding-top: 14px; }
.fare-head { display: flex; justify-content: space-between; gap: 10px; }
.fare-head b { font-size: 18px; }
.fare-head small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.route-summary { color: #b2ada3; font-size: 12px; font-weight: 700; white-space: nowrap; margin-top: 4px; }
.fare-picker { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 8px; }
.stepper { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid #dcd6ca; background: #fffdf8; font-size: 30px; }
.fare-amount { text-align: center; }
.fare-amount b { display: block; font-size: 38px; line-height: 1; letter-spacing: -1.4px; font-weight: 900; }
.fare-amount small { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.payment-segment { display: flex; gap: 5px; background: var(--field); border-radius: 18px; padding: 5px; margin-top: 16px; }
.payment-option { flex: 1; min-height: 46px; border-radius: 14px; color: #6f6f75; font-size: 15px; font-weight: 600; }
.payment-option.active { background: #fff; color: var(--ink); }
.payment-note { margin: 8px 0 12px; color: var(--muted); font-size: 13px; }
.primary-btn { width: 100%; min-height: 56px; border-radius: 18px; background: var(--yellow); color: var(--ink); font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.primary-btn:disabled { background: #ece7dc; color: #a9a49a; }
.primary-btn.with-arrow { justify-content: space-between; padding: 0 24px; }
.secondary-btn { width: 100%; min-height: 54px; border-radius: 18px; border: 1.5px solid #ded8cc; background: #fffdf8; color: var(--ink); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.secondary-btn:disabled { color: #aaa59b; background: #f8f5ef; }
.secondary-btn.end-shift { background: #ff3838; border-color: #ff3838; color: #fff; }
.text-btn { display: block; margin: 12px auto 0; padding: 7px 12px; color: var(--muted); font-size: 14px; }

/* order */
.order-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.status { font-size: 27px; line-height: 1.05; letter-spacing: -.7px; font-weight: 900; }
.substatus { color: var(--muted); font-size: 13px; margin-top: 5px; }
.fare { font-size: 30px; line-height: 1; font-weight: 900; white-space: nowrap; }
.black-card { display: flex; align-items: center; gap: 14px; background: #1b1b1d; color: #fff; border-radius: 22px; padding: 15px; margin: 16px 0 12px; }
.black-card-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: var(--yellow); color: #1b1b1d; display: grid; place-items: center; font-size: 25px; }
.black-card-copy { flex: 1; min-width: 0; }
.black-card-copy b { display: block; font-size: 19px; }
.black-card-copy span { display: block; color: #a6a6ac; font-size: 13px; margin-top: 3px; }
.black-card-side { color: var(--yellow); font-size: 13px; font-weight: 600; white-space: nowrap; }
.route-lines { background: var(--field); border-radius: 18px; padding: 13px 14px; margin-top: 12px; }
.route-lines > div { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 14px; line-height: 1.35; }
.route-lines .address-dot { margin-top: 4px; }
.payment-row { display: flex; align-items: center; gap: 10px; background: var(--field); border-radius: 16px; padding: 13px 15px; margin: 12px 0; color: var(--muted); font-size: 14px; }
.payment-row b { color: var(--ink); font-weight: 600; }
.payment-row > span:last-child { margin-left: auto; color: var(--ink); white-space: nowrap; }
.driver-status-line { display: flex; align-items: center; gap: 8px; padding-top: 3px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.status-label { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.route-legend { display: flex; gap: 18px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.route-legend span { display: flex; align-items: center; gap: 8px; }
.legend-line { width: 38px; height: 4px; border-radius: 99px; }
.legend-line.black { background: #1b1b1d; }
.legend-line.blue { background: var(--blue); }
.two-buttons { display: flex; gap: 10px; margin-bottom: 10px; }
.two-buttons > * { flex: 1; }
#navBtn { margin-bottom: 10px; font-size: 15px; }

/* waiting */
.waiting-top { padding-top: 4px; }
#driver-shift .waiting-top { margin-top: -4px; margin-bottom: 22px; }
.radar { width: 88px; height: 88px; margin: 4px auto 16px; border-radius: 50%; background: radial-gradient(circle, #d7f0df 0 40%, #eef9f1 41% 100%); display: grid; place-items: center; font-size: 38px; box-shadow: 0 0 0 12px rgba(184,224,200,.18); }
.radar.small { width: 68px; height: 68px; font-size: 30px; box-shadow: 0 0 0 9px rgba(184,224,200,.16); }
.waiting-top .sheet-title { font-size: 28px; }
.waiting-top .muted { margin: 7px auto 16px; max-width: 320px; }
.profile-row { display: flex; align-items: center; gap: 12px; background: var(--field); border-radius: 18px; padding: 11px; margin-bottom: 14px; }
.avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 20px; font-weight: 900; }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy b { display: block; font-size: 15px; }
.profile-copy span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-link { color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px; }
.shift-buttons { display: flex; gap: 10px; }
.shift-buttons > * { flex: 1; }
.shift-buttons + .secondary-btn { margin-top: 10px; }
.incoming-tag { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 7px; }
.incoming-from { color: var(--muted); font-size: 13px; margin-top: 5px; }
.demo-pill { background: #e7f5ea; color: #7c6817; border-radius: 7px; padding: 4px 7px; font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.incoming-actions { display: flex; gap: 10px; margin-top: 14px; }
.incoming-actions > * { flex: 1; }
.incoming-routes { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.route-summary-box { background: var(--field); border-radius: 14px; padding: 10px 13px; color: var(--ink); font-size: 13px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,20,23,.55); }
.modal-card { position: relative; width: min(400px,100%); max-height: 84dvh; overflow-y: auto; background: var(--surface); border-radius: 28px; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.modal-card h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.7px; }
.modal-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 18px; }
.modal-actions button { padding: 10px 12px; font-size: 14px; font-weight: 700; }
.modal-actions .danger { color: var(--red); }
.modal-actions .muted-btn { color: var(--muted); }
.profile-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.profile-top .avatar { width: 82px; height: 82px; flex-basis: 82px; font-size: 36px; }
.profile-name { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 900; }
.profile-name button { color: var(--muted); font-size: 17px; }
.stars { color: #8fca9f; font-size: 17px; margin-top: 4px; }
.stars small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.menu-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--field); border-radius: 20px; padding: 16px; margin-top: 10px; text-align: left; }
.menu-row b { display: block; font-size: 18px; }
.menu-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.menu-chev { color: #9b968c; font-size: 24px; }
.earn-card { background: #e7f5ea; border-radius: 20px; padding: 16px; margin-top: 10px; }
.earn-card small { display: block; color: #827126; font-size: 12px; }
.earn-card b { display: block; font-size: 33px; letter-spacing: -1px; margin-top: 3px; }
.menu-close { width: 100%; min-height: 54px; border: 1.5px solid #ded8cc; border-radius: 18px; margin-top: 12px; font-size: 16px; font-weight: 700; }
.history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.history-card { background: var(--field); border-radius: 18px; padding: 14px; }
.history-head { display: flex; justify-content: space-between; gap: 12px; }
.history-card p { margin: 0; font-size: 14px; line-height: 1.35; }
.history-card p + p { margin-top: 5px; }
.history-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.history-card .fare { font-size: 18px; }
.cancel-mark { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 17px; }
.field-label { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.input { width: 100%; border: 1px solid #ded8cc; border-radius: 14px; padding: 12px; margin-top: 8px; font-size: 15px; outline: none; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(24,24,28,.94); color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 13px; max-width: 88vw; text-align: center; }

/* markers */
.map-car-marker, .map-pickup-marker, .map-dest-marker { background: transparent; border: 0; }
.map-car { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-items: center; color: var(--ink); font-size: 20px; }
.map-pickup { position: relative; width: 42px; height: 56px; }
.map-pickup-head { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); }
.map-pickup-tail { position: absolute; left: 50%; top: 38px; width: 10px; height: 16px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 5px 5px; }
.map-dest { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--yellow); }

@media (max-width: 360px) {
  .role-screen { padding-left: 18px; padding-right: 18px; }
  .sheet { padding-left: 16px; padding-right: 16px; }
  .sheet-title { font-size: 27px; }
}


/* ---------- dark theme ---------- */
body { background: #121214; color: var(--ink); }
.role-screen { background: var(--background); }
.role-screen::before {
  background: radial-gradient(circle, rgba(184,224,200,.18), transparent 68%);
  width: 420px; height: 420px; top: -180px; right: -180px;
}
.role-hero p, .role-note, .role-server, .role-server span { color: var(--muted); }
.demo-badge { background: rgba(184,224,200,.14); color: var(--yellow); }
.passenger-card { color: var(--on-accent); }
.passenger-card .role-card-copy small { color: rgba(16,32,24,.66); }
.driver-card { background: #17171a; border: 1px solid var(--line); }
.app { background: #121214; }
.pill, .circle-btn { background: rgba(27,27,32,.96); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.pill-text small { color: var(--muted); }
.sheet { background: var(--surface); box-shadow: 0 -16px 44px rgba(0,0,0,.45); }
.sheet-handle { background: #3b3b43; }
.address-card, .route-lines, .payment-row, .profile-row, .menu-row, .history-card { background: var(--field); }
.address-divider, .fare-section { border-color: var(--line); }
.address-copy small { color: var(--muted); }
.address-copy div, .address-copy input { color: var(--ink); }
.address-copy input::placeholder { color: #777780; }
.suggestions { background: #232329; border-color: var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.suggestion { border-color: #33333a; }
.suggestion:hover { background: #2b2b32; }
.nearby-chip { background: rgba(184,224,200,.12); color: #b8e0c8; }
.stepper { background: #202025; border-color: var(--line); color: var(--ink); }
.payment-segment { background: var(--field); }
.payment-option { color: var(--muted); }
.payment-option.active { background: var(--yellow); color: var(--on-accent); }
.primary-btn { color: var(--on-accent); }
.primary-btn:disabled { background: #2d2d33; color: #777780; }
.secondary-btn { background: #202025; border-color: var(--line); color: var(--ink); }
.secondary-btn:disabled { background: #242429; color: #6d6d76; }
.modal-card { background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.modal-card p { color: var(--muted); }
.input { background: #202025; border-color: var(--line); color: var(--ink); }
.input::placeholder { color: #777780; }
.field-label, .menu-row small, .profile-copy span, .history-card small { color: var(--muted); }
.menu-chev { color: #777780; }
.black-card { background: #0f0f12; border: 1px solid var(--line); }
.payment-row { color: var(--muted); }
.payment-row b { color: var(--ink); }
.payment-row > span:last-child { color: var(--ink); }
.route-summary { color: var(--muted); }
.demo-pill { background: rgba(184,224,200,.12); color: #b8e0c8; }
.incoming-from { color: var(--muted); }
.toast { background: rgba(12,12,15,.96); }
.map-attribution { background: rgba(255,255,255,.82); color: #2a2a2a; }
.location-badge { background: rgba(12,12,15,.92); }

.map-car { width: 32px; height: 32px; border-width: 2px; border-color: var(--marker-ink); color: var(--marker-ink); }
.map-pickup-head { border-color: var(--marker-ink); }
.map-pickup-tail { background: var(--marker-ink); }
.map-dest { background: var(--marker-ink); }


/* compact role cards, same height as landing entry cards */
.role-card {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: 24px;
}
.role-card-icon { flex: 0 0 54px; }
.role-card-copy { margin-top: 0; flex: 1; }
.role-card-copy b { font-size: 25px; }
.role-card-copy small { font-size: 13px; margin-top: 4px; }
.role-card-arrow { display: none; }
.role-passenger-art { height: 92px; width: 38px; right: 24px; bottom: 8px; }
.role-car-art { width: 130px; height: 72px; right: 16px; bottom: 4px; }

#incomingAccept { color: #17171a; }


.route-summary-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route-line { width: 38px; height: 4px; flex: 0 0 38px; border-radius: 2px; }
.route-line.black { background: #17171a; box-shadow: 0 0 0 1px #fff; }
.route-line.blue { background: #2f6bff; }

/* updated marker icons */
.map-car { width: 32px; height: 32px; border-width: 2px; border-color: var(--marker-ink); color: var(--marker-ink); }
.map-car svg { width: 18px; height: 18px; }
.map-client, .map-route-end { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
.map-client svg, .map-route-end svg { width: 32px; height: 32px; display: block; }


.black-card-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.black-card-title b { display: block; min-width: 0; }
.black-card-title .black-card-rating { display: inline; margin: 0; color: #a6a6ac; font-size: 12px; white-space: nowrap; }


.history-card summary { list-style: none; cursor: pointer; }
.history-card summary::-webkit-details-marker { display: none; }
.history-details { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.history-review b { font-size: 12px; color: var(--ink); margin-right: 7px; }
.history-review .review-stars { color: #d2a53a; letter-spacing: 1px; }
.history-review p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }


.review-stars { display: flex; justify-content: center; gap: 5px; margin: 12px 0 4px; }
.review-star { border: 0; background: transparent; color: #5a5a60; font-size: 36px; line-height: 1; cursor: pointer; padding: 0 2px; }
.review-star.active { color: #d2a53a; }
textarea.input { resize: vertical; min-height: 86px; font-family: inherit; }


.history-review .review-stars { display: inline; margin: 0; justify-content: flex-start; font-size: 14px; letter-spacing: 1px; }


#menuBtn { position: relative; }
.menu-badge { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; background: #e04a4a; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #17171a; }
.chat-fab { position: absolute; z-index: 20; top: calc(70px + env(safe-area-inset-top)); left: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #000; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; }
.chat-fab .menu-badge { top: -1px; right: -1px; }
.chat-list { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding-right: 3px; }
.chat-message { max-width: 82%; padding: 9px 11px; border-radius: 14px; font-size: 14px; line-height: 1.35; background: var(--field); color: var(--ink); align-self: flex-start; }
.chat-message.mine { background: var(--yellow); color: #102018; align-self: flex-end; }
.chat-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 0; }
.history-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: 0 0 auto; }
.history-chat { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; }
.history-chat.unread { background: #fff; border-color: #e0b4b4; }


.chat-fab img { width: 20px; height: 15px; display: block; }
.history-chat img { width: 18px; height: 14px; display: block; }

.trip-card { background: var(--field); border-radius: 18px; padding: 13px; margin-top: 4px; }
.trip-title b { display: block; font-size: 15px; }
.trip-title small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.trip-input-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 13px; padding: 0 12px; margin-top: 10px; }
.trip-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; padding: 12px 0; }
.trip-active { color: var(--green); font-size: 13px; margin-top: 9px; }
.trip-card .primary-btn { margin-top: 9px; min-height: 48px; }


/* ---------- tablet / desktop ---------- */
@media (min-width: 760px) {
  body { overflow: hidden; }
  .role-screen {
    max-width: 820px;
    padding: 34px 48px 46px;
    margin: 0 auto;
  }
  .role-hero { margin: 58px 0 32px; }
  .role-hero h1 { font-size: clamp(58px, 7vw, 78px); }
  .role-hero p { font-size: 18px; max-width: 470px; }
  .role-card { min-height: 156px; }
  .role-card-copy b { font-size: 32px; }
  .role-card-copy small { font-size: 15px; }
  .role-car-art { width: 205px; height: 112px; }
  .role-passenger-art { right: 50px; }

  .app {
    max-width: none;
    width: 100%;
    height: 100dvh;
    margin: 0;
  }
  .sheet {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    border-radius: 28px;
    padding: 18px 20px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.32);
  }
  .sheet-handle { display: none; }
  .topbar { right: auto; }
  .map-attribution { bottom: 14px; left: 14px; }
  .location-badge { max-width: calc(100vw - 520px); }
}

@media (min-width: 1100px) {
  .role-screen { max-width: 920px; padding-left: 64px; padding-right: 64px; }
  .role-hero { margin-top: 70px; }
  .sheet { width: 440px; right: 28px; bottom: 28px; max-height: calc(100dvh - 56px); }
  .map-attribution { bottom: 16px; left: 16px; }
}
