/* Compact identity stays visible; illustration never dominates the ride sheet. */
body #rideActionPanel .px-matched-summary {display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px 10px;}
body #rideActionPanel .px-matched-summary>.contact-actions {display:flex;flex-wrap:nowrap;width:100%;padding:4px;gap:8px;margin:0;min-width:0;}
body #rideActionPanel .px-matched-summary .contact-profile-avatar {width:48px;height:48px;min-width:48px;flex:0 0 48px;overflow:hidden;border-radius:50%;}
body #rideActionPanel .px-matched-summary .contact-profile-avatar img {width:100%;height:100%;object-fit:cover;}
body #rideActionPanel .px-matched-summary .contact-identity {flex:1;min-width:0;}
body #rideActionPanel .px-matched-summary .contact-identity small {display:none;}
body #rideActionPanel .px-matched-summary .matched-rider-vehicle {display:grid!important;grid-template-columns:92px minmax(0,1fr);gap:3px 10px!important;padding:8px!important;border-radius:12px!important;font-size:14px;line-height:1.3;}
body #rideActionPanel .matched-rider-vehicle>strong:first-child {display:none;}
body #rideActionPanel .matched-rider-vehicle>[role=img] {grid-row:1/5;grid-column:1;align-self:center;}
body #rideActionPanel .matched-rider-vehicle svg {width:92px!important;height:50px!important;max-width:92px!important;}
body #rideActionPanel .matched-rider-vehicle>:not([role=img]) {grid-column:2;}
body #rideActionPanel .matched-rider-vehicle>small {font-size:11px;line-height:1.25;}
body #rideActionPanel .px-agreed-fare {margin:0;font-weight:700;}
/* Contact is a dedicated sheet bounded by the visible keyboard-safe viewport. */
body.passenger-active-ride-map-active #boardGrid:has(#rideActionPanel[data-ride-tool-panel="contact"]) {position:fixed!important;top:var(--waka-visible-top,0px)!important;bottom:auto!important;left:0!important;right:0!important;width:100%!important;height:var(--waka-visible-height,100dvh)!important;max-height:var(--waka-visible-height,100dvh)!important;margin:0!important;transform:none!important;z-index:1200;overflow:hidden!important;}
body.passenger-active-ride-map-active #boardGrid #rideActionPanel[data-ride-tool-panel="contact"] {height:100%!important;max-height:100%!important;min-height:0!important;box-sizing:border-box;overflow:hidden!important;}
body #rideActionPanel[data-ride-tool-panel="contact"] .px-matched-summary>.matched-rider-vehicle,
body #rideActionPanel[data-ride-tool-panel="contact"] .px-matched-summary>.px-trip-details,
body #rideActionPanel[data-ride-tool-panel="contact"] .px-matched-summary>.px-agreed-fare {display:none!important;}
body.passenger-active-ride-map-active #rideActionPanel[data-ride-tool-panel="contact"] .passenger-ride-tool-content>.contact-actions {display:none!important;}
body #rideActionPanel[data-ride-tool-panel="contact"] .ride-tool-toolbar {padding:2px;}
body #rideActionPanel[data-ride-tool-panel="contact"] .passenger-ride-dock {padding:4px;gap:4px;}
body #rideActionPanel[data-ride-tool-panel="contact"] .ride-tool-button {min-height:40px;padding:6px;font-size:13px;}
body #rideActionPanel[data-ride-tool-panel="contact"] .ride-tool-icon {display:none;}
body #rideActionPanel[data-ride-tool-panel="contact"] #chatThread {min-height:72px;overscroll-behavior:contain;}
body #rideActionPanel[data-ride-tool-panel="contact"] #chatForm {padding-bottom:env(safe-area-inset-bottom);}
body #rideActionPanel[data-ride-tool-panel="contact"] #chatForm input {font-size:16px;}
body.passenger-active-ride-map-active #boardGrid:has(#rideActionPanel[data-ride-tool-panel="contact"] #chatForm:not([hidden])) {height:var(--waka-visible-height,100dvh)!important;max-height:var(--waka-visible-height,100dvh)!important;}
body.passenger-active-ride-map-active #boardGrid.board-grid.passenger-active-ride-mode #rideActionPanel[data-ride-tool-panel="contact"]:has(#chatForm:not([hidden])) {height:100%!important;max-height:100%!important;}
body #rideActionPanel[data-ride-tool-panel="contact"] #chatForm {display:flex;gap:6px;align-items:center;}
body #rideActionPanel[data-ride-tool-panel="contact"] #chatForm input {flex:1;min-width:0;}
