/* Super Swish v1665: Rider Premium. 100% visual; isolated to signed-in Rider dashboard.
   No Firebase listeners, intervals, API calls, or changes to delivery state. */
html body#ssRacingPage:has(.ss-rider-dashboard){background:#0b0e12!important;color:#f4f5f7!important}
html body#ssRacingPage:has(.ss-rider-dashboard) #mainContainer{background:#0b0e12!important;color:#f4f5f7!important;max-width:1000px!important;padding-bottom:105px!important}
html body#ssRacingPage .ss-rider-dashboard{color:#f4f5f7!important;max-width:960px!important;gap:13px!important}
html body#ssRacingPage .ss-rider-brand{background:linear-gradient(115deg,#101317 20%,#171b20)!important;border-bottom:1px solid #34363d!important;border-radius:0!important;min-height:78px!important;padding-top:14px!important;padding-bottom:14px!important}
html body#ssRacingPage .ss-rider-brand-word{color:#fff!important;letter-spacing:-1.2px!important}
html body#ssRacingPage .ss-rider-brand-word small{color:#bac1cd!important;font-size:12px!important}
html body#ssRacingPage .ss-rider-header-actions #supportChat, html body#ssRacingPage .ss-rider-header-actions #notificationBell{border-radius:15px!important;background:#1f242a!important;border-color:#4c4d4d!important;color:#ffdc26!important}
/* Download and secondary consumer actions: small, useful but never dominate the radar. */
html body#ssRacingPage .ss-rider-dashboard>.ssw1665-apk-row{display:flex!important;justify-content:flex-end!important;margin:0!important;padding:2px 2px 0!important}
html body#ssRacingPage .ss-rider-dashboard .ssw1665-apk-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:31px!important;padding:4px 11px!important;max-width:100%!important;font-size:11px!important;font-weight:750!important;letter-spacing:.02em!important;color:#d3d9e2!important;border:1px solid #41464f!important;background:#1a2027!important;border-radius:999px!important;text-decoration:none!important;box-shadow:none!important}
html body#ssRacingPage .ss-rider-dashboard .ssw1665-apk-link:hover{color:#ffde36!important;border-color:#c8ac25!important}
html body#ssRacingPage .ss-rider-dashboard>.ss-rider-order-food{min-height:34px!important;padding:6px 12px!important;gap:8px!important;font-size:11px!important;border-radius:10px!important;box-shadow:0 3px 12px #ffce0020!important;background:#ffd326!important}
html body#ssRacingPage .ss-rider-dashboard>.ss-rider-order-food span:last-child{font-size:12px!important}
/* Modern greeting and mini scorecard */
html body#ssRacingPage .ss-rider-hello{padding:6px 3px 8px!important;gap:12px!important}
html body#ssRacingPage .ss-rider-hello h2{color:#fff!important;font-weight:900!important;font-size:clamp(22px,5.6vw,32px)!important;letter-spacing:-1px!important;margin-bottom:11px!important}
html body#ssRacingPage .ss-rider-status{background:#242c2c!important;border:1px solid #3a8c59!important;color:#b6f6c7!important;box-shadow:inset 0 0 12px #22a85514!important;border-radius:999px!important;font-size:13px!important;padding:9px 13px!important;min-height:38px!important}
html body#ssRacingPage .ss-rider-status.available{background:#174c2a!important;border-color:#43b96a!important;color:#b4ffd0!important}
html body#ssRacingPage .ss-rider-today{background:linear-gradient(140deg,#242830,#191c22)!important;border:1px solid #444951!important;box-shadow:0 5px 20px #0003!important;padding:12px 13px!important;border-radius:18px!important;gap:11px!important}
html body#ssRacingPage .ss-rider-today small{color:#b4bccb!important;font-size:11px!important}
html body#ssRacingPage .ss-rider-today strong{color:#fff!important;font-size:clamp(16px,4.5vw,21px)!important;letter-spacing:-.4px!important}
html body#ssRacingPage .ss-rider-today>div+div{border-left-color:#41464f!important;padding-left:12px!important}
/* Radar surface and unified header */
html body#ssRacingPage #ssw1656RiderCockpit.ssw1656-cockpit{margin:5px 0 12px!important;background:linear-gradient(160deg,#171a1d,#0d1116)!important;color:#fff!important;border:1px solid #6a5b26!important;border-top:2px solid #ffd334!important;border-radius:24px!important;box-shadow:0 18px 36px #0006!important;padding:13px 12px 11px!important;overflow:hidden!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-top{padding:10px 8px 9px!important;background:transparent!important;border:0!important;gap:10px!important;align-items:center!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-eyebrow{color:#ffda2e!important;font-size:10px!important;letter-spacing:.19em!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-top h2{color:#fff!important;font-size:clamp(18px,4.8vw,25px)!important;line-height:1.12!important;letter-spacing:-.5px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-indicator{background:#19482b!important;border:1px solid #417d56!important;color:#c0f6ce!important;font-size:11px!important;padding:8px 11px!important;border-radius:999px!important;max-width:36%;text-align:center!important}
html body#ssRacingPage #ssw1656RiderCockpit.ssw1664-busy .ssw1656-indicator{background:#5b441d!important;border-color:#9a7928!important;color:#ffe2a0!important}
html body#ssRacingPage #ssw1656RiderCockpit.ssw1656-paused .ssw1656-indicator{background:#32363d!important;border-color:#585b66!important;color:#d4d6de!important}
/* Compact shop counter: replaces overflowing 'Locales registrados cerca de tu GPS' */
html body#ssRacingPage #ssw1656RiderCockpit .ssw1664-shop-caption{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:38px!important;margin:0 8px 10px!important;padding:0!important;background:transparent!important;border:0!important;color:#fff!important;flex-wrap:wrap!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1665-shop-chip{display:inline-flex!important;align-items:center!important;gap:6px!important;border-radius:999px!important;border:1px solid #f0c323!important;padding:6px 10px!important;background:#181a19!important;color:#fff!important;font-size:12px!important;white-space:nowrap!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1665-shop-chip strong{font-size:12px!important;color:#fff!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1665-map-caption{font-size:11px!important;color:#c9ced5!important;font-weight:600!important;white-space:nowrap!important}
/* Map and useful controls: existing Leaflet canvas, no extra map instantiation */
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-map-wrap{height:clamp(250px,69vw,390px)!important;border:1px solid #424850!important;border-radius:20px!important;isolation:isolate!important;background:#19242a!important;margin:0 0 13px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-map{filter:brightness(.88) saturate(.86)!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-gps{font-size:11px!important;background:#101a21eb!important;color:#fff!important;border-color:#556471!important;padding:9px 12px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-recenter{background:#fff!important;border:1px solid #eee!important;color:#111!important;width:44px!important;height:44px!important;font-size:26px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-scan i{border-color:#f1c622!important}
/* Compact radar control card */
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state{margin:0 0 8px!important;padding:12px!important;border:1px solid #edc02c!important;border-radius:17px!important;box-shadow:inset 0 0 20px #e4bf2011!important;background:linear-gradient(115deg,#332d18,#161a20)!important;min-height:80px!important;gap:9px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-radar-badge{font-size:24px!important;color:#ffd52d!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state strong{font-size:13px!important;line-height:1.3!important;color:#fff!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state small{font-size:11px!important;color:#d0d3d8!important;line-height:1.3!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state button{border-radius:12px!important;min-width:74px!important;background:#ffd22d!important;color:#141414!important;font-size:12px!important;font-weight:900!important;padding:10px 8px!important;min-height:44px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-queue{padding:16px 4px 6px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-section-title h3{font-size:19px!important;color:#fff!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-section-title span{background:#ffd32a!important;border-radius:100px!important;font-size:11px!important;color:#111!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-footer{margin:10px 4px 4px!important;border-color:#3b4149!important;background:#11161b!important;border-radius:14px!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-empty{color:#c3c7cf!important;background:#171a21!important;border-color:#414851!important}
html body#ssRacingPage .ss-rider-limit{color:#b3bbc5!important;margin:0 0 8px!important}
/* Keep rest of rider workspace usable on dark body: order/action cards retain their white surfaces. */
html body#ssRacingPage .ss-rider-dashboard .ss-rider-orders>div[role=status],html body#ssRacingPage .ss-rider-dashboard #ssRiderGPSState{color:#b7d5c4!important}
html body#ssRacingPage .ss-rider-bottom{background:#12171d!important;border-top:1px solid #373e46!important;box-shadow:0 -7px 24px #0007!important}
html body#ssRacingPage .ss-rider-bottom button{background:transparent!important;color:#b7bdc7!important}
html body#ssRacingPage .ss-rider-bottom button[aria-current=page]{color:#ffdb36!important}
html body#ssRacingPage .ss-rider-bottom button[aria-current=page] svg{color:#ffda24!important}
@media(max-width:420px){
 html body#ssRacingPage:has(.ss-rider-dashboard) #mainContainer{padding-left:12px!important;padding-right:12px!important}
 html body#ssRacingPage .ss-rider-brand{margin:0 -12px!important;min-height:70px!important;padding:12px 14px!important}
 html body#ssRacingPage .ss-rider-dashboard{gap:11px!important}
 html body#ssRacingPage .ss-rider-header-actions #supportChat,html body#ssRacingPage .ss-rider-header-actions #notificationBell{width:37px!important;min-width:37px!important;height:37px!important;min-height:37px!important}
 html body#ssRacingPage .ss-rider-hello h2{font-size:23px!important}
 html body#ssRacingPage #ssw1656RiderCockpit.ssw1656-cockpit{padding:10px 9px!important;border-radius:21px!important}
 html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-indicator{padding:7px 9px!important;font-size:10px!important}
 html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-map-wrap{height:270px!important}
 html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state{padding:10px!important}
 html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state button{min-width:73px!important}
}
@media(max-width:340px){html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state{flex-wrap:wrap!important}html body#ssRacingPage #ssw1656RiderCockpit .ssw1656-state button{margin-left:auto!important}}
@media(prefers-reduced-motion:reduce){html body#ssRacingPage #ssw1656RiderCockpit *{animation:none!important;transition:none!important}}

/* Defensive mobile widths: prevent extra horizontal scrolling on small screens */
html body#ssRacingPage:has(.ss-rider-dashboard){margin:0!important;max-width:100vw!important;overflow-x:clip!important}
html body#ssRacingPage:has(.ss-rider-dashboard) #mainContainer{box-sizing:border-box!important;width:100%!important;max-width:100vw!important;min-width:0!important}
html body#ssRacingPage .ss-rider-dashboard{box-sizing:border-box!important;width:100%!important;min-width:0!important}
html body#ssRacingPage .ss-rider-brand-word{min-width:0!important;flex:1!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:420px){
 html body#ssRacingPage .ss-rider-brand-word{font-size:clamp(20px,5.3vw,25px)!important}
 html body#ssRacingPage .ss-rider-brand-avatar{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;flex:0 0 38px!important}
 html body#ssRacingPage .ss-rider-header-actions{gap:6px!important}
}

/* v1667: el chip del radar describe solo la recogida asignada o destino actual. */
html body#ssRacingPage #ssw1656RiderCockpit .ssw1664-shop-caption{max-width:100%!important;min-width:0!important}
html body#ssRacingPage #ssw1656RiderCockpit .ssw1665-shop-chip{min-width:0!important;max-width:100%!important;white-space:normal!important}
html body#ssRacingPage #ssw1656RiderCockpit #ssw1664ShopCount{display:block!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
@media(max-width:420px){html body#ssRacingPage #ssw1656RiderCockpit .ssw1665-shop-chip{max-width:100%!important}html body#ssRacingPage #ssw1656RiderCockpit .ssw1665-map-caption{font-size:10px!important}}
