/* Isolated passenger journey surface. */
#s-active{
  --ride-bg:var(--booking-surface);--ride-surface:var(--booking-field);--ride-line:var(--booking-divider);
  --ride-text:var(--booking-text);--ride-muted:var(--booking-muted);
  --ride-signal:var(--booking-text);--ride-glass:var(--booking-glass);--ride-signal-wash:#282828;--ride-contact-surface:var(--booking-field);
  --ride-blue:#398fe5;--ride-spacing:24px;--ride-ease:cubic-bezier(.16,1,.3,1);
  --ride-sheet-fill:linear-gradient(180deg,color-mix(in srgb,var(--ride-bg) 82%,transparent),var(--ride-bg) 42px);
  position:fixed;inset:0;color:var(--ride-text);background:var(--ride-bg);
  font:14px/1.5 var(--font-ui,Manrope),system-ui,sans-serif;color-scheme:dark;isolation:isolate
}
#s-active .map-full{position:absolute;inset:0;background:var(--ride-bg)}#s-active .maplibregl-canvas{outline:none}
#s-active button{font:500 12px/1.3 var(--font-ui,Manrope),sans-serif;letter-spacing:0;min-height:44px;padding:11px 14px;border:1px solid var(--ride-line);border-radius:6px;background:#ffffff05;color:var(--ride-text);box-shadow:none;transition:background var(--ui-motion-fast,160ms),opacity var(--ui-motion-fast,160ms)}
#s-active button:hover{opacity:1;filter:none;background:#ffffff0b}#s-active button:disabled{opacity:.5;cursor:not-allowed}#s-active button:focus-visible,#s-active summary:focus-visible{outline:2px solid var(--ride-signal);outline-offset:3px}#s-active .icon{stroke:currentColor;width:18px;height:18px}
#s-active .active-icon-button{width:44px;height:44px;padding:0;border:0;display:flex;align-items:center;justify-content:center;flex:none;background:#171a1dea}
#s-active .active-top{position:absolute;left:0;right:0;top:0;z-index:600;display:flex;justify-content:flex-end;align-items:center;padding:calc(24px + env(safe-area-inset-top)) var(--ride-spacing);background:linear-gradient(#0c0e1038,transparent);pointer-events:none}#s-active .active-top>*{pointer-events:auto}
#s-active .active-trip-state{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#s-active .active-top{justify-content:space-between;gap:16px}
/* One camera action leaves the city in view; the label describes the next view. */
#s-active .active-camera-view{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;
  min-height:44px;height:44px;max-width:160px;padding:0 12px;box-sizing:border-box;
  border:1px solid var(--ride-line);border-radius:4px;background:var(--ride-glass);
  color:var(--ride-text);font-size:12px;font-weight:600;white-space:nowrap;
}
#s-active .active-camera-view>span{display:inline-flex;align-items:center}
#s-active .active-camera-view>span[hidden]{display:none}
#s-active .active-camera-view .icon{width:17px;height:17px;color:var(--ride-signal)}
#s-active .active-camera-view:hover{background:var(--ride-signal-wash)}
#s-active .active-route-guidance{
  position:absolute;top:calc(92px + env(safe-area-inset-top));left:var(--ride-spacing);z-index:590;
  display:flex;gap:13px;align-items:center;max-width:calc(100% - var(--ride-spacing)*2);
  box-sizing:border-box;padding:8px 17px 8px 10px;border-radius:16px;pointer-events:none;
  background:var(--ride-surface);
  border:1px solid var(--ride-line);box-shadow:0 4px 20px #0002;
}
#s-active .active-route-guidance[hidden]{display:none}
#s-active #active-guidance-icon{
  display:grid;place-items:center;flex:none;width:40px;height:40px;
  color:var(--ride-signal);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--ride-signal) 25%,transparent))
}
#s-active #active-guidance-icon svg{width:100%;height:100%}#s-active #active-guidance-icon[data-direction="left"] svg{transform:scaleX(-1)}
#s-active .active-route-guidance strong,#s-active .active-route-guidance div>span{display:block;line-height:1.4}
#s-active .active-route-guidance strong{font-size:13px;font-weight:600;letter-spacing:-.01em;color:var(--ride-text)}
#s-active .active-route-guidance div>span{margin-top:2px;font-size:12px;color:var(--ride-muted);font-variant-numeric:tabular-nums}
#s-active[data-guidance="true"] .active-map-status{top:calc(164px + env(safe-area-inset-top))}
#s-active .active-profile-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #ffffff38;background:#181a1c;color:#eceeed;font-size:16px;box-shadow:0 0 0 3px #080a0b55}
#s-active .active-map-status{position:absolute;top:calc(88px + env(safe-area-inset-top));left:var(--ride-spacing);z-index:600;display:flex;align-items:center;gap:10px;width:fit-content;max-width:min(310px,calc(100% - var(--ride-spacing) - var(--ride-spacing)));color:#b8bdc1;font-size:11px;line-height:1.45;background:#111214d9;padding:8px 10px;border-radius:4px}#s-active .active-map-status[hidden]{display:none}#s-active .active-map-status button{min-height:32px;padding:5px 9px;font-size:11px;white-space:nowrap}
#s-active .active-map-actions{position:absolute;right:var(--ride-spacing);bottom:calc(var(--ride-sheet-height,200px) + 14px);z-index:600;display:flex;align-items:center;gap:8px}
/* One quiet bottom surface; continuous cartography behind its upper fade. */
#s-active .active-arrival{position:absolute;bottom:0;left:0;right:0;z-index:600;box-sizing:border-box;padding:0 var(--ride-spacing) calc(22px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--ride-bg) 38px);pointer-events:none}#s-active .active-arrival>*{pointer-events:auto}
#s-active .active-sheet-grip{display:flex;justify-content:center;align-items:center;width:100%;height:44px;min-height:44px;padding:0;background:transparent;border:0;touch-action:none;cursor:ns-resize;margin:0}#s-active .active-sheet-grip:hover{background:transparent}#s-active .active-sheet-grip span{display:block;width:26px;height:2px;border-radius:2px;background:#777d81}
#s-active .active-sheet-controls{display:grid;grid-template-columns:44px minmax(44px,1fr) 44px;align-items:center}
#s-active .active-sheet-controls>.active-sheet-grip{grid-column:2}
#s-active .active-sheet-controls>.active-sheet-menu{grid-column:3;display:grid;place-items:center;width:44px;height:44px;padding:0;background:transparent;border:1px solid var(--ride-line);border-radius:12px}
#s-active .active-sheet-controls>.active-sheet-menu:focus-visible{outline-offset:-4px}
#s-active .active-sheet-controls>.active-sheet-menu:hover{background:#ffffff0b}
#s-active #active-menu .icon{transform:rotate(90deg)}
#s-active .active-destination>span{font-size:11px;font-weight:400;color:var(--ride-muted);letter-spacing:0}#s-active .active-title-row{display:flex;align-items:center;gap:8px}#s-active .active-destination h1{flex:1;min-width:0;font-size:25px;line-height:1.28;font-weight:500;letter-spacing:-.035em;margin:5px 0 11px;text-wrap:pretty;color:var(--ride-text)}
#s-active .active-destination-link{display:inline-flex;align-items:flex-start;gap:4px;max-width:100%;min-height:0;padding:0;margin:0;border:0;border-radius:4px;background:transparent;font:inherit;letter-spacing:inherit;color:inherit;text-align:left;box-shadow:none}#s-active .active-destination-link:hover{background:transparent;opacity:.82}#s-active .active-destination-link>span:first-child{min-width:0;overflow-wrap:anywhere}#s-active .active-destination-link .icon{flex:none;width:20px;height:20px;margin-top:.3em;color:var(--ride-muted)}
#s-active .active-arrival-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0;font-size:12px;color:#b5bbc0;font-variant-numeric:tabular-nums}#s-active .active-arrival-line strong{font-size:15px;font-weight:500;letter-spacing:-.015em;color:var(--ride-text)}#s-active #active-arrival-time:not(:empty):before{content:'·';margin-right:10px;color:#666d72}#s-active .active-live-note{font-size:10px;line-height:1.5;color:#7f878c;margin:6px 0 0}
#s-active .active-primary-actions{display:flex;gap:10px;margin-top:18px}#s-active .active-primary-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:#ffffff04}
#s-active .active-approach{margin-bottom:18px}
#s-active .active-phase-heading{font-size:22px;line-height:1.25;font-weight:500;letter-spacing:-.025em;margin:2px 0 4px;color:var(--ride-text)}
#s-active .active-arrive-line{margin:0 0 16px;font-size:15px;line-height:1.4;letter-spacing:-.01em;color:#c9ced2;font-variant-numeric:tabular-nums}
#s-active .active-enter-vehicle{margin:0 0 4px;font-size:13px;line-height:1.5;color:#c9ced2}#s-active #active-wait-limit{color:var(--ride-muted)}
#s-active .active-wait-timer{margin:0 0 16px;font-size:12px;line-height:1.5;color:var(--ride-muted);font-variant-numeric:tabular-nums;letter-spacing:.01em}
#s-active .active-identity{display:flex;align-items:center;gap:14px;min-height:48px}#s-active .active-identity-car{position:relative;flex:0 0 72px;width:72px;height:40px;display:grid;place-items:center}#s-active .active-identity-car img{position:relative;z-index:1;width:64px;height:32px;object-fit:contain}
#s-active .active-wait-ring{position:absolute;inset:-5px -3px;border-radius:50%;--wait-progress:0;background:conic-gradient(var(--ride-signal) calc(var(--wait-progress,0) * 360deg),#ffffff16 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1.5px));transition:background .6s linear}
#s-active .active-identity-copy{flex:1;min-width:0}#s-active .active-identity-copy b{display:block;font-size:15px;font-weight:500;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:var(--ride-text)}#s-active .active-identity-copy small{display:block;color:var(--ride-muted);font-size:11px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#s-active .active-identity-driver{font-size:11px;line-height:1.4;color:var(--ride-muted);max-width:118px;text-align:right}
#s-active[data-phase=waiting] .active-identity{min-height:56px}#s-active[data-phase=waiting] .active-identity-copy b{font-size:20px;letter-spacing:.12em}
#s-active .active-icon-actions{display:flex;gap:6px;margin:18px 0 0}#s-active .active-icon-actions button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;padding:5px 4px;border:0;border-radius:8px;background:transparent;font-size:10px;line-height:1.3;font-weight:400;letter-spacing:.01em;color:var(--ride-text)}#s-active .active-icon-actions button:hover{background:#ffffff08}#s-active .active-icon-actions .icon{width:18px;height:18px;color:#d3d8da}
#s-active .active-dropoff-row{display:flex;align-items:center;gap:10px;margin:16px 0 0;padding-top:14px;border-top:1px solid var(--ride-line);font-size:13px;line-height:1.4;color:#c9ced2;font-variant-numeric:tabular-nums}#s-active .active-dropoff-row .icon{flex:none;width:16px;height:16px;color:var(--ride-muted)}#s-active #active-dropoff-row-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#s-active[data-phase=assigned] .active-destination>span,#s-active[data-phase=assigned] .active-title-row,#s-active[data-phase=assigned] .active-arrival-line,#s-active[data-phase=waiting] .active-destination>span,#s-active[data-phase=waiting] .active-title-row,#s-active[data-phase=waiting] .active-arrival-line,#s-active[data-phase=waiting] .active-live-note{display:none}#s-active[data-phase=assigned] .active-approach,#s-active[data-phase=waiting] .active-approach{margin-bottom:12px}
#s-active .active-visible-pin{display:flex;justify-content:space-between;align-items:center;padding:14px 0;margin:18px 0 0;border-top:1px solid var(--ride-line);font-size:12px;color:var(--ride-muted)}#s-active .active-visible-pin strong{color:var(--ride-text);font-size:23px;letter-spacing:.18em;font-weight:500}
#s-active .active-expanded-info{font-size:12px;line-height:1.6;color:var(--ride-muted);padding:10px 0}#s-active .active-expanded-info p{margin:10px 0}#s-active .active-expanded-info p:nth-child(2){color:#e1e3e5}
#s-active .active-arrival[data-sheet-state=collapsed] .active-identity,#s-active .active-arrival[data-sheet-state=collapsed] .active-icon-actions,#s-active .active-arrival[data-sheet-state=collapsed] .active-dropoff-row,#s-active .active-arrival[data-sheet-state=collapsed] .active-visible-pin,#s-active .active-arrival[data-sheet-state=collapsed] .active-primary-actions,#s-active .active-arrival[data-sheet-state=collapsed] .active-live-note{display:none}#s-active .active-arrival[data-sheet-state=collapsed] .active-approach{margin-bottom:0}#s-active .active-arrival[data-sheet-state=collapsed] .active-arrive-line,#s-active .active-arrival[data-sheet-state=collapsed] .active-wait-timer{margin-bottom:4px}#s-active .active-arrival[data-sheet-state=expanded]{max-height:76dvh;overflow:auto;background:linear-gradient(transparent,var(--ride-bg) 24px)}#s-active .active-arrival [hidden],#s-active .active-detail-sheet [hidden]{display:none}
/* Contextual drawer. */
#s-active .active-detail-sheet{position:fixed;inset:auto 0 0;margin:0 auto;padding:24px 24px calc(24px + env(safe-area-inset-bottom));width:min(520px,100%);max-width:100%;box-sizing:border-box;max-height:88dvh;overflow:auto;border:0;border-radius:12px 12px 0 0;background:var(--ride-surface);color:var(--ride-text);font:14px/1.5 var(--font-ui,Manrope),sans-serif;box-shadow:0 -12px 48px #0004;animation:none}#s-active .active-detail-sheet::backdrop{background:#06080970}
#s-active .active-detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}#s-active .active-detail-head h2{font-size:21px;font-weight:500;letter-spacing:-.03em;color:var(--ride-text);margin:0}
#s-active .active-detail-route{display:flex;flex-direction:column;gap:16px;padding-left:20px;margin:0 0 24px;position:relative;font-size:13px}#s-active .active-detail-route:before{content:'';position:absolute;width:1px;background:#555e65;left:4px;top:9px;bottom:9px}#s-active .active-detail-route>span:before{content:'';position:absolute;left:0;width:9px;height:9px;background:#e1e5e7;border:2px solid var(--ride-surface);outline:1px solid #7e8790;margin-top:6px;border-radius:50%}#s-active .active-detail-route>span:last-child:before{border-radius:1px}
#s-active .active-driver{display:flex;align-items:center;gap:12px;border-top:1px solid var(--ride-line);padding-top:22px}#s-active .active-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;background:#292e32;border-radius:50%;font-size:17px}#s-active .active-driver>div{flex:1;min-width:0}#s-active .active-driver b{display:block;font-size:13px;font-weight:500}#s-active .active-driver p{margin:3px 0 0;font-size:11px;color:var(--ride-muted)}#s-active #drv-rating{font-size:10px;color:var(--ride-muted)}#s-active #drv-plate{font-size:12px;font-weight:500;letter-spacing:.03em}
#s-active .active-detail-note{color:var(--ride-muted);font-size:11px;margin:20px 0;line-height:1.6}#s-active .active-contact-actions{display:flex;gap:7px}#s-active .active-contact-actions button{flex:1;display:flex;justify-content:center;align-items:center;gap:6px;padding:10px 7px}
#ios-pickup-directions[hidden]{display:none!important}
#s-active .active-overview-action{display:flex;align-items:center;gap:10px;background:transparent;border:0;border-radius:0;padding:16px 0;width:100%;font-weight:400;text-align:left}
#s-active .active-safety-actions{display:flex;flex-direction:column;margin-top:20px;gap:5px}#s-active .active-safety-actions button{background:transparent;border:0;text-align:left;font-size:12px;color:var(--ride-muted);display:flex;align-items:center;gap:8px}
#s-active .pin-banner{background:#252a2e;color:var(--ride-text);font-size:11px;padding:12px;gap:12px;display:flex;justify-content:space-between}#s-active .pin-banner small{display:block;color:var(--ride-muted)}#s-active #pin-digits{font-size:20px;letter-spacing:.2em}
#s-active .active-account-link{display:block;width:100%;background:transparent;border:0;border-radius:0;color:var(--ride-muted);font-size:12px;padding:14px 0;margin-top:12px;text-align:left}
#s-active .maplibregl-ctrl-attrib{background:#111416d0;color:#8c959c;font:9px/1.6 var(--font-ui,Manrope),sans-serif;padding:2px 6px}#s-active .maplibregl-ctrl-attrib a{color:#8c959c}#s-active .maplibregl-ctrl-bottom-left{bottom:calc(var(--ride-sheet-height,200px) + 8px);left:12px}#s-active .active-flat-fallback .leaflet-tile-pane{filter:grayscale(1) invert(1) contrast(.85) brightness(.7)}
#s-active .maplibregl-ctrl-attrib.maplibregl-compact{background:transparent;max-width:min(310px,calc(100vw - 48px));padding:0;border-radius:4px}#s-active .maplibregl-ctrl-attrib summary{width:44px;height:44px;background-color:transparent;background-size:21px;background-position:center;background-repeat:no-repeat;filter:invert(1);opacity:.6;cursor:pointer}#s-active .maplibregl-ctrl-attrib summary:hover{opacity:1}#s-active .maplibregl-ctrl-attrib[open]{background:#111416ed;padding:8px 44px 8px 12px}#s-active .maplibregl-ctrl-attrib[open] summary{position:absolute;left:0;top:0}#s-active .maplibregl-ctrl-attrib[open] .maplibregl-ctrl-attrib-inner{padding:0 0 0 34px;max-height:144px;overflow:auto}
body:has(#s-active.visible) #modal-holder .modal-bg{background:#080b10a6}body:has(#s-active.visible) #modal-holder .modal{background:#181b1e;color:#f3f4f4;border:1px solid #ffffff14}body:has(#s-active.visible) #modal-holder h3{color:#f3f4f4}body:has(#s-active.visible) #modal-holder .muted{color:#a0a9b0}body:has(#s-active.visible) #modal-holder input{background:#252a2e;color:#f3f4f4}body:has(#s-active.visible) #modal-holder button{background:#252a2e;color:#f3f4f4}body:has(#s-active.visible) #modal-holder :is(button.cta,#chat-send,#share-copy){background:var(--booking-action);color:var(--booking-action-ink)}body:has(#s-active.visible) #modal-holder button.ghost{background:transparent;color:#f3f4f4;border:1px solid var(--booking-edge);margin-top:10px}body:has(#s-active.visible) #modal-holder .support-ticket-row{background:transparent;color:#f3f4f4;border-bottom-color:var(--booking-divider)}body:has(#s-active.visible) #modal-holder .tag{background:#252a2e;border-color:#384047;color:#e3e8ec}
body:has(#s-active.visible) #modal-holder .active-ride-modal{position:fixed;inset:auto 0 0;margin:0 auto;width:min(520px,100%);max-width:100%;padding:24px 24px calc(24px + env(safe-area-inset-bottom));max-height:88dvh;border-radius:12px 12px 0 0;border-bottom:0;font:14px/1.5 var(--font-ui,Manrope),sans-serif}body:has(#s-active.visible) #modal-holder .active-ride-modal .modal-head button{width:44px;height:44px;min-height:44px;background:transparent;color:#e3e8ec;border:0}body:has(#s-active.visible) #modal-holder .active-ride-modal .chat-msg.mine{background:#333a40;color:#f3f4f4}body:has(#s-active.visible) #modal-holder .active-ride-modal .chat-msg.theirs{background:#252a2e;color:#f3f4f4}
.passenger-app .stop-del{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--muted);padding:4px;min-height:32px;width:32px}

@media(min-width:760px){#s-active{--ride-spacing:32px}#s-active .active-arrival{left:50%;right:auto;transform:translateX(-50%);width:520px;background:linear-gradient(transparent,var(--ride-bg) 38px);padding-bottom:24px}#s-active .active-top{padding-top:28px}#s-active .active-destination h1{font-size:28px}#s-active .active-map-actions{bottom:28px;right:28px}#s-active .maplibregl-ctrl-bottom-left{bottom:8px;left:8px}#s-active .active-detail-sheet,body:has(#s-active.visible) #modal-holder .active-ride-modal{inset:0 0 0 auto;max-height:100dvh;height:100%;margin:0;border-radius:0;width:440px;padding:32px}}
@media(max-width:360px){#s-active{--ride-spacing:20px}#s-active .active-destination h1{font-size:23px}#s-active .active-contact-actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){#s-active *,#s-active *:before,#s-active *:after{animation:none;transition:none}}
/* The same ride composition in a soft porcelain environment. Theme colours
   stay on controls/surfaces; the WebGL city receives real themed materials. */
html[data-theme=light] #s-active{--ride-bg:#f7f7f7;--ride-surface:#fafbf8;--ride-line:#26352a29;--ride-text:#172019;--ride-muted:#526056;--ride-signal:#195d2e;--ride-glass:#fafbf8f5;--ride-signal-wash:#eeeeee;--ride-blue:#2d75b4;color-scheme:light}
html[data-theme=light] #s-active button{background:#ffffff50;color:var(--ride-text)}
html[data-theme=light] #s-active button:hover{background:#ffffff90}
html[data-theme=light] #s-active .active-icon-button,
html[data-theme=light] #s-active .active-top{background:linear-gradient(#edf0ed38,transparent)}
html[data-theme=light] #s-active .active-profile-button{background:#f4f6f3;color:#394244;border-color:#65716e40;box-shadow:0 0 0 3px #edf0ed55}
html[data-theme=light] #s-active .active-map-status{background:#f3f5f0e8;color:#556264}
html[data-theme=light] #s-active .active-arrival{background:linear-gradient(transparent,var(--ride-bg) 38px)}
html[data-theme=light] #s-active .active-arrival[data-sheet-state=expanded]{background:linear-gradient(transparent,var(--ride-bg) 24px)}
html[data-theme=light] #s-active .active-sheet-grip,html[data-theme=light] #s-active .active-sheet-grip:hover,html[data-theme=light] #s-active .active-title-row #active-menu{background:transparent;box-shadow:none}
html[data-theme=light] #s-active .active-sheet-grip span{background:#8c9797}
html[data-theme=light] #s-active .active-arrival-line{color:#596669}
html[data-theme=light] #s-active #active-arrival-time:not(:empty):before{color:#8c9698}
html[data-theme=light] #s-active .active-live-note{color:#748083}
html[data-theme=light] #s-active .active-primary-actions button{background:#ffffff50}
html[data-theme=light] #s-active .active-arrive-line,html[data-theme=light] #s-active .active-enter-vehicle,html[data-theme=light] #s-active .active-dropoff-row{color:#3c484c}
html[data-theme=light] #s-active .active-sheet-menu,html[data-theme=light] #s-active .active-destination-link,html[data-theme=light] #s-active .active-icon-actions button{background:transparent;box-shadow:none}
html[data-theme=light] #s-active .active-sheet-menu:hover,html[data-theme=light] #s-active .active-icon-actions button:hover{background:#29363a0d}
html[data-theme=light] #s-active .active-icon-actions .icon{color:#455357}
html[data-theme=light] #s-active .active-wait-ring{background:conic-gradient(var(--ride-signal) calc(var(--wait-progress,0) * 360deg),#29363a1f 0)}
html[data-theme=light] #s-active .active-expanded-info p:nth-child(2){color:#3c484c}
html[data-theme=light] #s-active .active-detail-sheet{box-shadow:0 -12px 48px #52615b1f}
html[data-theme=light] #s-active .active-detail-sheet::backdrop{background:#53615d38}
html[data-theme=light] #s-active .active-detail-route:before{background:#a0aaa9}
html[data-theme=light] #s-active .active-detail-route>span:before{background:#657d86;outline-color:#9ba6a8}
html[data-theme=light] #s-active .active-avatar{background:#e0e6e1;color:#455357}
html[data-theme=light] #s-active .pin-banner{background:#e4e9e3}
html[data-theme=light] #s-active .active-overview-action,html[data-theme=light] #s-active .active-safety-actions button,html[data-theme=light] #s-active .active-account-link{background:transparent}
html[data-theme=light] #s-active .maplibregl-ctrl-attrib{background:#edf0edde!important;color:#637073!important}
html[data-theme=light] #s-active .maplibregl-ctrl-attrib a{color:#52666d}
html[data-theme=light] #s-active .maplibregl-ctrl-attrib.maplibregl-compact{background:transparent!important}
html[data-theme=light] #s-active .maplibregl-ctrl-attrib summary{filter:none}
html[data-theme=light] #s-active .maplibregl-ctrl-attrib[open]{background:#f4f6f3ed!important}
html[data-theme=light] #s-active .active-flat-fallback .leaflet-tile-pane{filter:grayscale(1) contrast(.90) brightness(1.01)}
html[data-theme=light] #s-active .mobility-destination b{background:#3c5664;border-color:#edf0ed;outline-color:#74888f}
html[data-theme=light] #s-active .mobility-destination i,html[data-theme=light] #s-active .mobility-destination span{border-color:#74888f}
html[data-theme=light] #s-active .mobility-destination i{background:#74888f}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .modal-bg{background:#1717173d}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .modal{background:var(--booking-surface);color:var(--booking-text);border-color:var(--booking-divider)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder h3{color:var(--booking-text)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .muted{color:var(--booking-muted)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder input{background:var(--booking-field);color:var(--booking-text)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder button{background:var(--booking-field);color:var(--booking-text)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder :is(button.cta,#chat-send,#share-copy){background:var(--booking-action);color:var(--booking-action-ink)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder button.ghost{background:transparent;color:var(--booking-text);border:1px solid var(--booking-edge)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .support-ticket-row{background:transparent;color:var(--booking-text);border-bottom-color:var(--booking-divider)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .tag{background:var(--booking-field);border-color:var(--booking-divider);color:var(--booking-text)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .active-ride-modal .modal-head button{background:transparent;color:var(--booking-text)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .active-ride-modal .chat-msg.mine{background:#e6e6e6;color:var(--booking-text)}
html[data-theme=light] body:has(#s-active.visible) #modal-holder .active-ride-modal .chat-msg.theirs{background:var(--booking-field);color:var(--booking-text)}
@media(min-width:760px){html[data-theme=light] #s-active .active-arrival{background:linear-gradient(transparent,var(--ride-bg) 38px)}html[data-theme=light] #s-active .active-arrival[data-sheet-state=expanded]{background:linear-gradient(transparent,var(--ride-bg) 24px)}}
/* Identification stays visible while the confirmed car approaches/waits. */
@media(max-width:380px){#s-active .active-identity{gap:10px}#s-active .active-identity-driver{max-width:96px}#s-active[data-phase=waiting] .active-identity-copy b{font-size:18px;letter-spacing:.1em}}
@media(min-width:760px){#s-active .active-phase-heading{font-size:24px}}


/* Short screens and enlarged text retain the existing composition while every
   action remains reachable. Only the grip drags; content scroll stays native. */
#s-active .active-arrival{max-height:calc(100dvh - 96px - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:44px calc(22px + env(safe-area-inset-bottom));scrollbar-width:thin}
#s-active .active-arrival[data-sheet-state=expanded]{max-height:min(76dvh,max(120px,calc(100dvh - var(--ride-map-top,136px) - 112px - var(--ride-panel-bottom,0px))))}
#s-active .active-detail-sheet{overscroll-behavior-y:contain;scroll-padding-block:72px calc(24px + env(safe-area-inset-bottom))}
#s-active .active-detail-head{position:sticky;top:0;z-index:2;background:var(--ride-surface)}
#s-active .active-detail-route>span,#s-active .active-expanded-info p,#s-active .active-identity-driver{overflow-wrap:anywhere}
#s-active .active-map-status button{min-height:44px;min-width:44px}
#s-active .active-destination-link{min-height:44px;align-items:center}
#s-active .active-live-note{font-size:12px;color:var(--ride-muted)}
#s-active .active-icon-actions button{font-size:12px;min-height:48px}
/* The indication follows user camera changes and geometry cues. Distances
   keep updating inside the same indication as the car moves. */
@media(prefers-reduced-motion:no-preference){
  #s-active #active-guidance-icon svg{
    animation:ride-direction-appear var(--ui-motion-standard,240ms) var(--ui-motion-ease,var(--ride-ease));
  }
}
@keyframes ride-direction-appear{
  from{opacity:0;translate:0 5px;scale:.92}
  to{opacity:1;translate:0 0;scale:1}
}
@media(prefers-reduced-motion:reduce){body:has(#s-active.visible) #modal-holder .active-ride-modal{animation:none;transition:none;scroll-behavior:auto}}

/* The controls sit on a readable surface below the softened map horizon. */
#s-active .active-arrival,
#s-active .active-arrival[data-sheet-state=expanded],
html[data-theme=light] #s-active .active-arrival,
html[data-theme=light] #s-active .active-arrival[data-sheet-state=expanded] {
  border:0;
  border-radius:0;
  background:var(--ride-sheet-fill);
  box-shadow:none;
  pointer-events:auto;
}
#s-active .active-destination { position:relative; }
#s-active[data-phase=in_progress] .active-destination { padding:0 0 0 25px; }
#s-active .destination-station { display:none; }
#s-active[data-phase=in_progress] .destination-station {
  display:block; position:absolute; top:5px; left:0; width:10px; height:10px;
  border:2px solid var(--ride-signal); border-radius:2px;
}
#s-active[data-phase=in_progress] .destination-station::after {
  content:""; position:absolute; top:12px; left:2px; width:1px; height:28px;
  background:var(--ride-line);
}
#s-active #act-eta-label { font-size:12px; color:var(--ride-muted); }
#s-active .active-destination h1 { font-size:clamp(23px,4vw,30px); letter-spacing:-.035em; font-weight:570; margin:0 0 4px; }
#s-active .active-destination .active-arrival-line {
  padding-top:9px; border-top:1px solid var(--ride-line);
  justify-content:space-between; align-items:center; column-gap:8px;
}
#s-active .active-arrival-line strong { font-size:14px; font-weight:550; }
#s-active #active-arrival-time { color:var(--ride-text); font-size:15px; font-weight:630; font-variant-numeric:tabular-nums; }
#s-active #active-arrival-time:not(:empty)::before { content:none; }
#s-active .active-route-guidance {
  background:var(--ride-surface);
  border-color:var(--ride-line);
  border-radius:16px;
  padding:11px 18px 11px 12px; gap:13px;
}
#s-active #active-guidance-icon {
  width:40px; height:40px; padding:3px; box-sizing:border-box;
  filter:none;
}
#s-active .active-route-guidance div { display:flex; flex-direction:column; gap:3px; }
#s-active .active-route-guidance strong { color:var(--ride-muted); font-size:12px; line-height:1.2; font-weight:540; letter-spacing:0; }
#s-active .active-route-guidance div>span { order:-1; margin:0; color:var(--ride-text); font-size:clamp(19px,4vw,24px); line-height:1.1; font-weight:640; font-variant-numeric:tabular-nums; letter-spacing:-.025em; }



/* Keep guidance on a solid surface so street details never compete with it. */
#s-active :is(#active-map-mode,#active-map-satellite) {
  width:44px; height:44px; min-height:44px; border-radius:10px;
  border:1px solid var(--ride-line); background:var(--ride-glass);
  color:var(--ride-signal); box-shadow:none; font-size:13px; font-weight:650;
}
#s-active #active-map-mode:not(:disabled):hover{background:var(--ride-signal-wash)}
#s-active .active-camera-view,#s-active .active-map-actions button{backdrop-filter:var(--passenger-backdrop-blur,none);-webkit-backdrop-filter:var(--passenger-backdrop-blur,none)}
#s-active .active-route-guidance{padding:9px 12px;border-radius:13px;background:var(--ride-surface);gap:10px}
#s-active #active-guidance-icon{width:32px;height:32px}
#s-active .active-route-guidance strong{font-size:12px;color:var(--ride-text);font-weight:600;line-height:1.35}
#s-active .active-route-guidance div>span{font-size:20px;line-height:1.15}
#s-active .active-pickup-access:not([hidden]) {display:grid;gap:6px;margin:6px 0 10px}
#s-active .active-pickup-access>div {display:grid;grid-template-columns:66px minmax(0,1fr);align-items:baseline;gap:8px}
#s-active .active-pickup-access small {color:var(--ride-muted);font-size:12px}
#s-active .active-pickup-access strong {color:var(--ride-text);font-size:13px;font-weight:570;overflow-wrap:anywhere}
#s-active .active-arrival[data-sheet-state=collapsed] .active-pickup-access {display:none}
@media (max-width:599px) {
  #s-active .active-route-guidance {padding:6px 9px;border-radius:10px;gap:7px}
  #s-active #active-guidance-icon {width:25px;height:25px;padding:1px}
  #s-active .active-route-guidance div {gap:1px}
  #s-active .active-route-guidance div>span {font-size:16px}
  #s-active .active-route-guidance strong {font-size:11px}
}
#s-active .active-live-note,#s-active .active-arrival-line{font-size:12px;line-height:1.4}
html[data-theme=light] #s-active{--ride-surface:#fff;--ride-glass:#fffffff2;--ride-line:#899d8e;--ride-text:#14221a;--ride-muted:#46584e;--ride-signal:#145d35;--ride-signal-wash:#eeeeee}
html[data-theme=light] #s-active .active-live-note,html[data-theme=light] #s-active .active-arrival-line{color:#46584e}
html[data-theme=light] #s-active #active-guidance-icon{filter:none}
@media(max-width:759px){
  #s-active{--ride-spacing:20px}
  #s-active .active-top{padding-top:calc(12px + env(safe-area-inset-top));gap:10px}
  #s-active .active-route-guidance{top:calc(72px + env(safe-area-inset-top))}
  #s-active[data-guidance=true] .active-map-status{top:calc(142px + env(safe-area-inset-top))}
  #s-active .active-arrival{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  #s-active .active-destination h1{font-size:21px;line-height:1.2;margin-bottom:2px}
  #s-active .active-destination-link>span:first-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
  #s-active .active-destination .active-arrival-line{padding-top:6px}
  #s-active .active-sheet-grip{height:44px;min-height:44px}
}
@media(max-width:359px){#s-active .active-top{gap:8px;padding-inline:16px}#s-active .active-camera-view{padding-inline:10px}}
#s-active[data-phase=in_progress] .active-arrival #active-arrival-time:not(:empty) {
  border:1px solid color-mix(in srgb,var(--ride-signal) 22%,var(--ride-line));
  border-radius:8px;
  background:var(--ride-surface);
  color:var(--ride-signal);
  padding:4px 9px;
}
@media (max-width:759px) {
  #s-active {
    --ride-horizon:clamp(28px,calc((100dvh - var(--ride-sheet-height,200px) - var(--ride-map-top,136px)) / 3),126px);
  }
  #s-active.visible:not([data-boarding])::before,
  #s-active.visible[data-boarding=map]::before {
    content:"";
    position:absolute;
    z-index:580;
    inset:auto 0 max(0px,calc(var(--ride-sheet-height,200px) - 26px));
    height:var(--ride-horizon);
    pointer-events:none;
    background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--ride-bg) 27%,transparent) 47%,var(--ride-bg));
  }
  #s-active .maplibregl-ctrl-bottom-left,
  #s-active .leaflet-bottom {
    bottom:calc(var(--ride-sheet-height,200px) + var(--ride-horizon) - 20px);
  }
}
@media(min-width:760px) {
  #s-active { --ride-sheet-fill:var(--ride-bg); --ride-panel-bottom:20px; }
  #s-active .active-arrival { bottom:var(--ride-panel-bottom); border:1px solid var(--ride-line); border-radius:20px; }
}
#s-active .active-detail-sheet::backdrop {
  -webkit-backdrop-filter:var(--passenger-backdrop-blur,none);
  backdrop-filter:var(--passenger-backdrop-blur,none);
}
@media (forced-colors:active) {
  #s-active { --ride-sheet-fill:var(--ride-bg); }
  #s-active.visible::before { display:none; }
  #s-active .active-detail-sheet::backdrop { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media (max-width:759px) and (forced-colors:active) {
  #s-active { --ride-horizon:28px; }
}

/* Expanded cabin controls share the trip sheet; the map remains in view. */
#s-active .active-expanded-info{padding:12px 0 0}
#s-active .active-trip-facts{padding:8px 4px;font-size:11px;line-height:1.6}
#s-active .active-trip-facts p{margin:8px 0;color:var(--ride-muted)}
#s-active[data-phase=in_progress] .active-arrival[data-sheet-state=expanded] .active-destination{padding:13px 14px;border:1px solid var(--ride-line);border-radius:14px;background:var(--ride-surface)}
#s-active[data-phase=in_progress] .active-arrival[data-sheet-state=expanded] .active-destination h1{font-size:19px;line-height:1.25}
#s-active[data-phase=in_progress] .active-arrival[data-sheet-state=expanded] .active-destination::before{display:none}
@media(prefers-reduced-motion:no-preference){#s-active .active-expanded-info:not([hidden]){animation:cabin-controls-enter var(--ui-motion-standard,230ms) var(--ui-motion-ease,cubic-bezier(.16,1,.3,1))}}
@keyframes cabin-controls-enter{from{opacity:.65;translate:0 8px}to{opacity:1;translate:0 0}}

/* Journey console: one status, one arrival time and the taxi's fleet identity. */
#s-active .active-top{justify-content:flex-start}
#s-active .active-profile-button{display:none}
#s-active .active-approach{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;align-items:center}
#s-active .active-approach>[hidden]{display:none}
/* The stem ends at the reported coordinate. Only the inner face animates:
   both renderers own the outer anchor's transform throughout a pan or tilt. */
#s-active .ride-road-anchor {display:block;width:0;height:0;pointer-events:none;z-index:4}
#s-active .ride-road-leaflet .ride-road-anchor {position:relative}
#s-active .ride-road-marker {
  --pin-surface:#20252a;--pin-edge:#555c61;--pin-ink:#fcfaf5;--pin-accent:#ffd296;
  position:absolute;bottom:15px;left:0;transform:translateX(-50%);
  display:grid;place-items:end center;width:max-content;min-height:44px;
  padding:0 0 7px;border:0;border-radius:0;background:transparent;color:var(--pin-ink);
  font:600 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;pointer-events:auto;
}
#s-active .ride-road-face {
  display:flex;align-items:center;gap:6px;max-width:min(185px,54vw);min-height:29px;
  padding:4px 10px 4px 7px;box-sizing:border-box;border:1px solid var(--pin-edge);border-radius:11px;
  background:var(--pin-surface);box-shadow:0 2px 6px #0002;text-align:start;
}
#s-active .ride-road-marker::before,#s-active .ride-road-marker::after {
  content:"";position:absolute;left:50%;pointer-events:none;background:var(--pin-accent);
}
#s-active .ride-road-marker::before {width:1px;bottom:-13px;height:20px}
#s-active .ride-road-marker::after {width:5px;height:5px;border-radius:50%;bottom:-17px;transform:translateX(-50%);box-shadow:0 0 0 1px var(--pin-surface)}
#s-active .ride-road-face svg {width:17px;height:17px;flex:none;color:var(--pin-accent)}
#s-active .ride-road-marker[data-kind=signal],#s-active .ride-road-marker[data-kind=stopped] {--pin-accent:#d2e0eb}
html[data-theme=light] #s-active .ride-road-marker {--pin-surface:#fffdf9;--pin-edge:#bfbab1;--pin-ink:#242526;--pin-accent:#94531b}
html[data-theme=light] #s-active .ride-road-marker:is([data-kind=signal],[data-kind=stopped]) {--pin-accent:#425a6c}
#s-active .ride-road-marker:focus-visible {outline:0}
#s-active .ride-road-marker:focus-visible .ride-road-face {outline:2px solid currentColor;outline-offset:2px}
@media (prefers-reduced-motion:no-preference) {
  html:not([data-ios-reduced-motion=true]) #s-active .ride-road-face {animation:ride-road-enter 150ms ease-out both}
}
@keyframes ride-road-enter {from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
#s-active .active-approach>*{grid-column:1/-1}
#s-active .active-phase-heading{grid-column:1;grid-row:1;margin:0;font-size:24px;line-height:1.15;font-weight:600;letter-spacing:-.03em}
#s-active .active-arrive-line{grid-column:2;grid-row:1;margin:0;display:flex;flex-direction:column;align-items:flex-end;gap:3px;color:var(--ride-muted);text-align:right;font-size:11px;line-height:1.3}
#s-active .active-eta-duration{font-size:23px;font-weight:650;line-height:1.1;letter-spacing:-.025em;color:var(--ride-text);white-space:nowrap}
#s-active .active-eta-clock{font-size:12px;font-weight:450;color:var(--ride-muted)}
#s-active .active-identity{gap:10px;min-height:51px;margin-top:8px;padding-top:8px;border-top:1px solid var(--ride-line)}
#s-active .active-identity-car{width:68px;flex-basis:68px;height:38px}
#s-active .active-identity-car img{width:68px;height:38px}
#s-active .active-identity-copy b,#s-active[data-phase=waiting] .active-identity-copy b{font-size:19px;line-height:1.25;letter-spacing:-.015em;font-weight:600;font-variant-numeric:normal}
#s-active .active-live-note,#s-active .active-trip-facts,#s-active .active-visible-pin,#s-active #active-action-pin,#s-active #act-price-note{display:none!important}
#s-active .active-arrival[data-sheet-state=collapsed] .active-arrive-line{margin-bottom:0}
#s-active .active-enter-vehicle{margin:4px 0;color:var(--ride-muted);font-size:13px}
#s-active .active-wait-timer{font-size:12px;color:var(--ride-muted);margin:2px 0 8px}
#s-active .active-dropoff-row{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--ride-line);font-size:12px}
#s-active .active-icon-actions{margin-top:8px}
#s-active .active-icon-actions button{flex-direction:row;gap:7px;font-size:12px;font-weight:500;color:var(--ride-text)}
#s-active :is(#active-action-call,#active-action-chat,#btn-call-driver,#btn-chat){background:var(--ride-contact-surface)}
#s-active .active-icon-actions .icon{color:currentColor}
#s-active .active-icon-actions #active-action-share{background:transparent;color:var(--ride-muted)}
#s-active :is(#active-action-call,#active-action-chat,#btn-call-driver,#btn-chat):not(:disabled):hover{background:var(--ride-signal-wash)}
#s-active .active-contact-actions button{min-height:48px;border:0;border-radius:8px;background:var(--ride-surface)}
#s-active .active-contact-actions #btn-share-ride{background:transparent;color:var(--ride-muted)}
#s-active :is(#active-action-share,#btn-share-ride):not(:disabled):hover{background:var(--ride-signal-wash)}
html[data-theme=light] #s-active{--ride-contact-surface:#e2e9e3}
#s-active .active-destination .active-arrival-line{border:0;padding-top:4px;align-items:center}
#s-active .active-destination h1{font-size:23px;font-weight:600;letter-spacing:-.025em;line-height:1.2}
#s-active[data-phase=in_progress] .active-arrival[data-sheet-state=expanded] .active-destination{padding:0 0 14px;border:0;border-bottom:1px solid var(--ride-line);border-radius:0;background:transparent}
#s-active[data-phase=in_progress] .active-arrival #active-arrival-time:not(:empty){border:0;border-radius:0;background:transparent;padding:0;color:var(--ride-muted);font-size:12px;font-weight:450}
#s-active .active-primary-actions{gap:8px;margin-top:14px}
#s-active .active-primary-actions button{min-height:44px;border-radius:12px;font-size:12px;background:var(--ride-surface)}
#s-active .active-detail-sheet{border-radius:18px 18px 0 0;padding:16px 20px calc(18px + env(safe-area-inset-bottom))}
#s-active .active-detail-head{margin-bottom:18px;padding-bottom:10px;border-bottom:1px solid var(--ride-line);gap:12px}
#s-active .active-detail-head h2{font-size:20px;font-weight:620;line-height:1.25}
#s-active .active-detail-route{margin:0;padding:4px 0 4px 24px;gap:18px}
#s-active .active-detail-route>span{display:grid;gap:2px;min-width:0}
#s-active .active-detail-route>span:before{left:1px;margin-top:19px;width:8px;height:8px;background:var(--ride-signal);outline:0;border:0}
#s-active .active-detail-route:before{left:4px;top:27px;bottom:24px;background:var(--ride-line)}
#s-active .active-detail-route small{color:var(--ride-muted);font-size:11px;line-height:1.4;font-weight:450}
#s-active .active-detail-route strong{color:var(--ride-text);font-size:14px;font-weight:560;line-height:1.45;overflow-wrap:anywhere}
#s-active .active-driver-contact{margin:14px 0 6px;padding:0 0 14px;border-bottom:1px solid var(--ride-line)}
#s-active .active-driver-contact .active-driver{margin:0 0 12px;padding:0;border:0;gap:10px}
#s-active .active-driver-contact .active-avatar{width:38px;height:38px;background:var(--ride-contact-surface);color:var(--ride-signal);font-size:16px}
#s-active .active-driver-contact .active-driver b{font-size:14px;font-weight:620}
#s-active .active-driver-contact #drv-car{margin:2px 0 0;font-size:12px;color:var(--ride-muted)}
#s-active .active-contact-actions{gap:8px}
#s-active .active-contact-actions button{min-height:46px;padding:8px 6px;background:var(--ride-contact-surface);border:1px solid var(--ride-line);border-radius:10px;font-size:12px;font-weight:600}
#s-active .active-contact-actions #btn-call-driver{color:var(--ride-signal);border-color:color-mix(in srgb,var(--ride-signal) 35%,var(--ride-line))}
#s-active .active-contact-actions #btn-share-ride{background:var(--ride-contact-surface);color:var(--ride-text)}
#s-active .active-contact-feedback{margin:10px 0 0;font-size:12px;line-height:1.45;color:var(--ride-muted)}
#s-active .active-detail-note:empty{display:none}
#s-active .active-detail-sheet .active-overview-action{min-height:46px;padding:12px 2px;gap:12px;font-size:13px;font-weight:520;border-bottom:1px solid var(--ride-line)}
#s-active .active-detail-sheet .active-overview-action svg{color:var(--ride-signal);flex:none}
#s-active .active-safety-actions{margin-top:12px;gap:0}
#s-active .active-safety-actions button{min-height:44px;padding:10px 2px;font-size:12px}
#s-active .active-safety-actions #btn-cancel-active{color:var(--ride-text);border-top:1px solid var(--ride-line);margin-top:5px}
#s-active .active-account-link{min-height:44px;padding:12px 2px;margin-top:0;box-sizing:border-box;line-height:20px}
#s-active .active-detail-route{font-size:13px}
#s-active #drv-name:empty,#s-active #drv-rating:empty,#s-active #drv-plate:empty,#s-active #drv-initial:empty{display:none}
#s-active #drv-car{font-size:18px;font-weight:600;letter-spacing:-.015em;color:var(--ride-text)}
@media(max-width:380px){#s-active .active-phase-heading{font-size:22px}#s-active .active-eta-duration{font-size:21px}#s-active .active-approach{column-gap:12px}}
@media(min-width:760px){#s-active .active-detail-sheet{border-radius:0}#s-active .active-phase-heading{font-size:26px}}

/* Destination and arrival time form one balanced row above the safe area. */
#s-active .active-destination-meta{display:none}
#s-active[data-phase=in_progress] .active-destination{display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:14px;row-gap:2px;align-items:start;padding:10px 0 6px}
#s-active[data-phase=in_progress] .active-destination-meta{
  grid-column:1;grid-row:1;display:flex;align-items:center;gap:7px;min-width:0;
  color:var(--ride-muted);font-size:12px;line-height:1.4
}
#s-active #active-trip-distance:not([hidden]){
  white-space:nowrap;font-variant-numeric:tabular-nums
}
#s-active #active-trip-distance:not([hidden])::before{
  content:"";display:inline-block;width:3px;height:3px;margin-inline-end:7px;
  border-radius:50%;background:currentColor;vertical-align:.18em
}
#s-active[data-phase=in_progress] .active-title-row{grid-column:1;grid-row:2;min-width:0}
#s-active[data-phase=in_progress] .active-destination h1{font-size:clamp(19px,5.4vw,22px);line-height:1.26;margin:0;letter-spacing:-.025em}
#s-active[data-phase=in_progress] .active-destination-link{width:100%;min-height:44px;justify-content:space-between;gap:5px}
#s-active[data-phase=in_progress] .active-destination-link>span:first-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#s-active[data-phase=in_progress] .active-destination-link .icon{margin:0;width:15px;height:15px}
#s-active[data-phase=in_progress] .active-destination .active-arrival-line{grid-column:2;grid-row:1/3;align-self:stretch;display:grid;align-content:center;justify-items:end;gap:4px;padding-block:0;padding-inline:12px 0;border:0;border-inline-start:1px solid var(--ride-line);min-width:68px;max-width:106px;text-align:end}
#s-active[data-phase=in_progress] .active-arrival-line strong{font-size:21px;line-height:1.2;font-weight:650;letter-spacing:-.025em}
#s-active[data-phase=in_progress] #act-eta[data-state=updating]{font-size:12px;line-height:1.4;font-weight:500;letter-spacing:0;color:var(--ride-muted)}
#s-active[data-phase=in_progress] #active-arrival-time:not(:empty){font-size:12px;line-height:1.4;font-weight:450}
#s-active[data-phase=in_progress] .destination-station{
  position:static;flex:none;width:8px;height:8px;border-width:1.5px;
  border-color:var(--ride-route-accent,var(--ride-signal));border-radius:2px
}
#s-active[data-phase=in_progress] .destination-station::after{content:none}
#s-active[data-phase=in_progress] .active-arrival[data-sheet-state=expanded] .active-destination{padding:10px 0 12px}
@media(max-width:340px){
 #s-active[data-phase=in_progress] .active-destination{column-gap:10px}
 #s-active[data-phase=in_progress] .active-destination-meta{gap:5px;font-size:11px}
 #s-active[data-phase=in_progress] .active-destination .active-arrival-line{min-width:60px;padding-inline-start:9px}
 #s-active[data-phase=in_progress] .active-arrival-line strong{font-size:19px}
}
@media(orientation:landscape){
 #s-active[data-phase=in_progress] .active-destination-link>span:first-child{-webkit-line-clamp:3}
}

/* Recovery must be as easy to read and tap as the normal ride actions. */
#s-active .active-map-status{flex-wrap:wrap;color:#d5ddd7;font-size:13px;line-height:1.45}
#s-active .active-map-status button{min-width:44px;min-height:44px;font-size:13px}

#s-active .active-phase-heading{display:flex;align-items:center;gap:10px}
#s-active .active-phase-symbol{
  display:grid;place-items:center;flex:none;width:30px;height:30px;
  border:0;
  background:transparent;color:var(--ride-signal)
}
#s-active .active-phase-symbol>span{display:flex}
html[data-theme=dark] #s-active:is([data-phase=assigned],[data-phase=waiting]) .active-phase-symbol{
  color:var(--ride-signal);
}
#s-active .active-phase-symbol .icon{width:17px;height:17px}
#s-active .active-phase-symbol>span:last-child,
#s-active[data-phase=waiting] .active-phase-symbol>span:first-child{display:none}
#s-active[data-phase=waiting] .active-phase-symbol>span:last-child{display:flex}
#s-active .active-pickup-caption{display:flex;align-items:baseline;gap:7px;min-width:0;margin:4px 0 0;color:var(--ride-muted);font-size:13px;line-height:1.4}
#s-active .active-pickup-caption>span:first-child{align-self:center;flex:none;display:flex}
#s-active .active-pickup-caption .icon{width:15px;height:15px}
#s-active #active-pickup-caption-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#s-active .active-identity-symbol{
  position:absolute;inset:auto;display:grid;place-items:center;width:42px;height:32px;
  border-radius:12px;background:var(--ride-contact-surface);color:var(--ride-muted)
}
#s-active .active-identity-symbol .icon{width:24px;height:24px}
#s-active .active-identity-car img:not([data-ready]){visibility:hidden}
#s-active .active-identity-car:has(img[data-ready]:not([hidden])) .active-identity-symbol{display:none}
#s-active :is(#active-find-vehicle,#active-boarding)>span{display:inline-flex;margin-inline-end:4px;vertical-align:middle}
#s-active :is(#active-find-vehicle,#active-boarding) .icon{width:18px;height:18px}
@media(max-width:350px){
  #s-active .active-phase-heading{gap:6px;font-size:20px}
  #s-active .active-phase-symbol{width:26px;height:26px;border-radius:8px}
}

.passenger-driver-identity:not([hidden]){display:inline-flex;align-items:center;gap:.45rem;min-width:0;color:inherit;font-size:.81rem;font-weight:550;line-height:1.25}
.passenger-driver-identity [data-driver-name]{overflow-wrap:anywhere}
.driver-portrait-frame{position:relative;overflow:hidden;isolation:isolate}
.passenger-driver-identity .driver-portrait-frame{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#393c40;font-size:.68rem;letter-spacing:.015em}
.driver-portrait-frame img:not([hidden]){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.find-vehicle-details .passenger-driver-identity,.boarding-controls .passenger-driver-identity{margin-block:.15rem}
@media(max-height:450px) and (orientation:landscape){.passenger-driver-identity .driver-portrait-frame{width:23px;height:23px;flex-basis:23px}}

/* Office mobility appearance */
#s-active[data-map-mode="3d"] #active-map-mode:not(:disabled),#s-active .active-turn-distance{color:var(--ride-signal);border-color:var(--ride-signal)}

#s-active .active-phase-heading{font-size:clamp(18px,5vw,22px);line-height:1.2}
#s-active .active-identity-copy small{font-size:12px;line-height:1.35}
#s-active .active-identity,
#s-active .active-arrival[data-sheet-state=collapsed] .active-identity {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  column-gap:clamp(8px,2.4vw,16px);min-height:66px;margin:0;padding:12px 0 2px;
  border-top:1px solid var(--ride-line);
}
#s-active .ride-identity-portraits {display:flex;align-items:center}
#s-active #active-summary-driver:not([hidden]) {
  display:grid;place-items:center;flex:none;width:clamp(40px,11vw,52px);aspect-ratio:1;border-radius:50%;
  background:var(--ride-contact-surface);color:var(--ride-text);font-size:15px;font-weight:650
}
#s-active #active-summary-driver img {width:100%;height:100%;object-fit:cover}
#s-active #active-summary-driver .active-wait-ring {inset:0;z-index:2}
#s-active .active-identity-car {width:clamp(54px,16vw,76px);aspect-ratio:1.5;height:auto;flex:none}
#s-active .active-identity-car>* {grid-area:1/1}
#s-active .active-identity-car img {width:100%;height:100%;object-fit:cover;object-position:57% center}
#s-active .active-identity-car .active-identity-symbol {position:static;width:auto;height:auto}
#s-active .active-identity-car .active-identity-symbol .icon {width:34px;height:34px}
#s-active .active-identity-copy {min-width:0;line-height:1.28}
#s-active .active-identity-copy>strong {display:block;font-size:clamp(15px,4.2vw,18px);font-weight:680;letter-spacing:-.02em;overflow-wrap:anywhere}
#s-active .ride-vehicle-identifiers {display:flex;align-items:baseline;gap:2px 7px;flex-wrap:wrap;margin-top:3px}
#s-active .ride-vehicle-identifiers>* {font-size:13px;font-variant-numeric:tabular-nums;line-height:1.3}
#s-active .ride-vehicle-identifiers>span {color:var(--ride-muted);overflow-wrap:anywhere}
#s-active .active-identity-copy small {margin-top:2px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
#s-active #active-driver-chat:not([hidden]) {display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--ride-line);border-radius:50%;background:var(--ride-bg);color:var(--ride-text)}
#s-active #active-driver-chat .icon {width:19px;height:19px}
#s-active #active-driver-chat {position:relative}
#s-active #active-driver-chat[data-unread=true]::after {content:"";position:absolute;inset:7px 6px auto auto;width:7px;height:7px;border-radius:50%;background:var(--ride-signal)}
#s-active .active-sheet-controls>.active-sheet-menu {border:0;border-radius:50%}
#s-active .active-arrival .active-primary-actions {margin-top:4px;border-top:1px solid var(--ride-line)}
#s-active .active-arrival .active-primary-actions>button:not([hidden]) {border:0;border-radius:0;background:transparent;box-shadow:none;padding:4px 2px;gap:5px;font-size:12px}
#s-active .active-arrival .active-primary-actions>button:active {background:var(--ride-surface)}

#s-active .active-arrival {height:var(--ride-sheet-user-size, auto);--ride-sheet-min-height:120px}
#s-active .active-sheet-grip {align-items:flex-start;padding-top:9px}
@media (orientation:portrait) and (max-width:759px) {
  #s-active .active-arrival {padding-inline:var(--trip-inline-start) var(--trip-inline-end)}
  #s-active .active-arrival[data-sheet-state=expanded] .active-primary-actions:not([hidden]) {
    display:flex;gap:4px;
  }
  #s-active .active-arrival .active-primary-actions>button:not([hidden]) {
    flex:1 1 auto;width:auto;min-width:0;min-height:44px;font-size:13px;line-height:1.25;
  }
}
@media (orientation:portrait) and (max-width:380px) {
  #s-active .active-arrival .active-primary-actions>button:not([hidden]) {
    flex:1 1 0;flex-direction:column;min-height:50px;justify-content:center;gap:3px;
    padding:4px;text-align:center;text-wrap:balance;
  }
  #s-active .active-primary-actions .icon {display:block;width:16px;height:16px}
}
#s-active .active-identity-symbol {background:transparent}
#s-active .active-approach {column-gap:10px}
@media(orientation:landscape){
  #s-active .active-phase-heading {font-size:18px;gap:7px}
}
@media(prefers-reduced-motion:no-preference){
  html:not([data-ui-performance=low]) .passenger-driver-identity .driver-portrait-frame img:not([hidden]) {animation:ride-portrait-in 140ms ease-out}
  @keyframes ride-portrait-in {from{opacity:0}to{opacity:1}}
}
#s-active .active-identity-copy b,#s-active[data-phase=waiting] .active-identity-copy b{font-size:13px;letter-spacing:0;font-weight:620;overflow-wrap:anywhere}
#s-active .boarding-visual[hidden]{display:none}
.ride-vehicle-model {font-size:.84rem;line-height:1.35;margin:3px 0 0;overflow-wrap:anywhere}
#s-active .boarding-identity .ride-vehicle-model{grid-column:1/-1}

/* Experience 207, passenger flow (one block, kept last).
   PAX-02: after a driver accepts, the booking map stays on screen under the ride
   view while the ride map loads; the ride map then fades in over it. The fade uses
   the shared motion token, so reduced motion swaps at once. */
#s-active[data-map-handoff]{background:transparent}
#s-active[data-map-handoff]>#map-active{opacity:0;pointer-events:none}
#s-active[data-map-handoff=reveal]>#map-active{opacity:1;transition:opacity var(--ui-motion-effect,155ms) var(--ui-response,cubic-bezier(.16,.96,.36,1))}
/* ZM-09 approach line (APPROACH_LINE in active-ride.js; owner decision Q2, ships off). The fill
   scales from the left and the car's full-width wrapper translates by a percentage: nothing is
   measured, and both are moved by the compositor. */
#s-active .active-approach-line{position:relative;height:16px;margin:12px 7px -2px}
#s-active .active-approach-line[hidden]{display:none}
#s-active .active-approach-line::before{content:"";position:absolute;left:0;right:0;top:7px;height:2px;border-radius:2px;background:var(--ride-line)}
#s-active .active-approach-fill{position:absolute;left:0;right:0;top:7px;height:2px;border-radius:2px;background:var(--ride-text);transform-origin:0 50%;scale:0 1}
#s-active .active-approach-car{position:absolute;inset:0;display:block;pointer-events:none}
#s-active .active-approach-car svg{position:absolute;left:-8px;top:0;width:16px;height:16px;fill:var(--ride-text)}
#s-active .active-approach-line[data-stale=true]{opacity:.5}
#s-active[data-approach-line] .active-identity{border-top-color:transparent;margin-top:2px}
/* ZM-07 (P8): before the first prediction the arrival line keeps its place, empty and unseen, so the ETA
   arriving later moves nothing on the panel. */
#s-active .active-arrive-line[data-pending]{visibility:hidden}
#mobility-map-root[inert] :is(.maplibregl-control-container,.leaflet-control-container){visibility:hidden}
/* PAX-12: a departure without a measured map car (2D, medium quality, a late map)
   lets the boarding car leave first; only then does its backdrop dissolve, so two
   cars of different size are never on screen together. */
@media(prefers-reduced-motion:no-preference){
  #s-active #boarding-experience[data-phase=map][data-handoff=dissolve] #boarding-stage{animation:boarding-map-dissolve var(--ui-motion-fast,125ms) ease-out forwards}
  #s-active #boarding-experience[data-phase=map][data-handoff=dissolve]::before{animation:boarding-map-dissolve .65s cubic-bezier(.16,1,.3,1) var(--ui-motion-fast,125ms) both}
}
/* PAX-04: a first arrival dissolves the parked-car picture into the 3D stage with
   the stage's own fade instead of cutting it away while the stage is still clear.
   The picture stays hidden (boarding.css) only once that fade is over; a picture
   that was already hidden (the live roll-in) never reappears. */
#s-active .boarding-visual:has(#boarding-stage[data-ready=true]) .boarding-fallback{opacity:0;transition:opacity var(--ui-motion-standard,195ms) ease-out,visibility 0s linear var(--ui-motion-standard,195ms)}

/* The driver, car and identifying numbers stay together at every sheet height. */
#s-active .ride-pickup-tools {display:none}
#s-active[data-phase=waiting] .ride-pickup-tools {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;align-items:center;margin-top:8px;
}
#s-active .ride-pickup-tools>* {grid-column:1/-1}
#s-active .ride-pickup-tools #active-find-vehicle {grid-column:1;margin:4px 0 0}
#s-active .ride-pickup-tools #active-boarding {grid-column:2;margin:4px 0 0;min-height:48px;border-radius:24px;background:var(--ride-contact-surface);color:var(--ride-text)}
#s-active .ride-pickup-tools #active-find-vehicle[hidden]+#active-boarding {grid-column:1/-1}
#s-active .active-arrival[data-sheet-state=collapsed] .ride-pickup-tools {display:none}
#s-active .active-identity+.active-pickup-access {margin-top:12px}
#s-active .active-arrival:not([data-sheet-state=expanded]) .active-primary-actions {display:none}
#s-active .active-arrival[data-sheet-state=expanded] .active-identity {padding-bottom:10px}
#s-active[data-phase=assigned] .active-approach,
#s-active[data-phase=waiting] .active-approach {margin-bottom:10px}
#s-active .active-arrival .active-sheet-controls {position:relative;background:transparent}
#s-active .active-phase-heading {gap:8px;font-size:clamp(20px,5.3vw,25px);letter-spacing:-.04em}
#s-active .active-phase-symbol {width:13px;height:13px}
#s-active .active-phase-symbol .icon {width:13px;height:13px}
#s-active[data-phase=assigned] .active-phase-symbol {color:var(--ride-route-accent,var(--ride-text))}
#s-active .active-sheet-grip span {width:34px;height:3px;background:var(--ride-muted);opacity:.55}
#s-active #active-menu .icon {transform:none;width:20px;height:20px}
#s-active .active-sheet-controls>.active-sheet-menu {color:var(--ride-muted)}
@media (orientation:portrait) {
  body.passenger-app #s-active #active-arrival-panel {
    --ride-sheet-fill:var(--ride-bg);
    border:1px solid var(--ride-line);border-bottom:0;border-radius:22px 22px 0 0;
    background:var(--ride-bg);padding-bottom:calc(14px + env(safe-area-inset-bottom));
  }
  #s-active.visible:not([data-boarding])::before,#s-active.visible[data-boarding=map]::before {display:none}
  #s-active .maplibregl-ctrl-bottom-left,#s-active .leaflet-bottom {
    bottom:calc(var(--ride-sheet-height,200px) + 10px);
  }
}
@media (min-width:760px) and (orientation:portrait) {
  body.passenger-app #s-active #active-arrival-panel {border:1px solid var(--ride-line);border-radius:22px}
}
@media (orientation:landscape) {
  #s-active .active-arrival[data-sheet-state=collapsed] .active-identity {min-height:44px;padding-top:6px}
  #s-active .active-arrival[data-sheet-state=collapsed] .active-identity-car {width:50px;height:32px}
  #s-active .active-arrival[data-sheet-state=collapsed] #active-summary-driver {width:34px}
}
@media (prefers-reduced-motion:no-preference) {
  html:not([data-ios-reduced-motion=true]) #s-active #active-summary-driver img:not([hidden]) {animation:ride-portrait-in 140ms ease-out}
  html:not([data-ios-reduced-motion=true]) #s-active #active-driver-chat {transition:scale var(--ui-motion-fast,140ms) ease-out}
  html:not([data-ios-reduced-motion=true]) #s-active #active-driver-chat:active {scale:.95}
}
