/* Ride v78. Map first, one primary action, compact supporting details. */
body[data-wipye-driver="78"]{background:#f2f5f9;color:#122239;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
body[data-wipye-driver="78"] .wt-shell{max-width:1040px;margin:auto;padding:14px 16px 30px}
body[data-wipye-driver="78"] .wt-header{gap:12px;margin:8px 0 14px;align-items:center}
body[data-wipye-driver="78"] .wt-header h1{font-size:21px;letter-spacing:-.5px;margin:0}
body[data-wipye-driver="78"] .wt-header img{width:40px;height:40px;border-radius:12px}
body[data-wipye-driver="78"] #accountBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:transparent;padding:0;border:0;box-shadow:none;margin:0 0 14px}
body[data-wipye-driver="78"] #accountBar[hidden]{display:none}body[data-wipye-driver="78"] #identity{font-size:12px;color:#5a6c82;margin-right:auto}
body[data-wipye-driver="78"] #accountBar button{font-size:12px;min-height:38px;padding:8px 12px;margin:0}
body[data-wipye-driver="78"] #workspace>.w78-driver-work{display:grid;grid-template-columns:1fr auto;gap:0;padding:0;overflow:hidden;border:1px solid #e0e6ef;border-radius:28px;background:#fff;box-shadow:0 12px 42px #172d4810;margin:0 0 16px}
.w78-driver-work>h2{font-size:20px;letter-spacing:-.5px;margin:22px 20px 12px}.w78-driver-work>.w78-driver-state{align-self:center;margin:16px 18px 10px 0;font-size:12px;font-weight:700;padding:8px 12px;border-radius:30px;background:#f0f3f7;color:#576779}
.w78-driver-work[data-online="true"]>.w78-driver-state{background:#ddf6eb;color:#106b4d}.w78-driver-work>.w78-gps-state{grid-column:1/-1;margin:0 20px 12px;color:#657990;font-size:12px}
.w78-driver-work>.wt-map{grid-column:1/-1;width:100%;height:48dvh;min-height:300px;max-height:560px;border:0;border-radius:0;margin:0}
.w78-driver-work>.w78-driver-eta{grid-column:1/-1;margin:0;padding:10px 20px;background:#f0f5fd;color:#294a72;font-size:13px;font-weight:600}.w78-driver-eta:empty{display:none}
.w78-driver-work>.w78-availability{grid-column:1/-1;display:flex;gap:10px;padding:16px 20px;align-items:center}.w78-availability button{margin:0;min-height:48px;border-radius:15px;padding:12px 20px;font-weight:700}.w78-availability button.primary{flex:1;background:#1557e8;color:white;border:0;box-shadow:0 5px 14px #1557e830}.w78-availability button[hidden]{display:none!important}
.w78-driver-work>.w78-driver-requests,.w78-driver-work>.w78-driver-detail,.w78-driver-work>.wt-note{grid-column:1/-1}.w78-driver-work>.wt-note{font-size:11px;line-height:1.5;margin:12px 20px;color:#78889b}
.w78-driver-detail>.wt-active{padding:20px;border-top:1px solid #e6ebf3;margin:0;display:flex;flex-wrap:wrap;gap:10px}.w78-driver-detail>.wt-active>h3{font-size:21px;letter-spacing:-.4px;flex-basis:100%;margin:0 0 8px}.wt-active>.w78-pickup,.wt-active>.w78-dropoff{flex-basis:100%;margin:0;padding:12px 14px 12px 34px;border-radius:12px;background:#f5f7fa;position:relative;font-size:14px}.w78-pickup:before,.w78-dropoff:before{content:'';position:absolute;left:14px;top:18px;width:8px;height:8px;border-radius:50%;background:#2563eb}.w78-dropoff:before{border-radius:2px;background:#172a43}.wt-active>strong{font-size:24px;flex-basis:100%}.wt-active>.primary{background:#1557e8;border-radius:14px;min-height:52px;font-size:16px;flex:1}.wt-active>.danger{border-radius:14px;min-height:44px;font-size:13px}.wt-active>.wt-note{font-size:11px;color:#728198;flex-basis:100%}
.w78-queue-empty{margin:0;padding:18px 20px;text-align:center;color:#61738c;font-size:14px}.w78-offer{position:relative;margin:12px 16px;padding:20px;border:1px solid #d7e2f5;border-radius:20px;background:#f7faff}.w78-offer h2{font-size:14px;color:#607391}.w78-offer>strong{display:block;font-size:30px;letter-spacing:-1px;margin:14px 0}.w78-offer details{margin:12px 0}.w78-offer summary{cursor:pointer;font-weight:600;font-size:14px;min-height:44px;padding:10px 0}.w78-offer .w78-pickup,.w78-offer .w78-dropoff{position:relative;padding:12px 12px 12px 30px;border-top:1px solid #e4eaf3}.w78-offer button.primary{width:65%;min-height:52px;font-size:16px;border-radius:14px;background:#1557e8}.w78-offer button.secondary{min-height:52px;border-radius:14px}
.w78-driver-profile,.w78-driver-history{border:1px solid #e2e8f0;background:white;border-radius:20px;margin:14px 0;overflow:hidden}.w78-driver-profile>summary,.w78-driver-history>summary{padding:20px;font-size:14px;font-weight:650;cursor:pointer;color:#263b57}.w78-driver-profile[open]{padding-bottom:18px}.w78-driver-profile>label{margin:12px 18px}.w78-driver-profile>button,.w78-driver-profile>a{margin-left:18px}.w78-driver-profile .wp-vehicle{border:0;box-shadow:none;margin:12px 0;padding:16px 20px}
body[data-ride-layout="client"]{background:#f4f7fa;color:#13243c;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
body[data-ride-layout="client"] .wr-header{background:#ffffffed;border-bottom:1px solid #e5eaf1;backdrop-filter:blur(12px)}
body[data-ride-layout="client"] .wr-header h1{letter-spacing:-.7px;font-weight:750;font-size:20px}
body[data-ride-layout="client"] .wr-sheet{border-radius:28px 28px 0 0;box-shadow:0 -8px 32px #11294712;background:white;padding:24px 20px calc(24px + env(safe-area-inset-bottom));gap:16px}
body[data-ride-layout="client"] .wr-flow-heading{letter-spacing:-.8px;font-size:25px;margin:0 0 20px}body[data-ride-layout="client"] .wr-addresses{border:1px solid #d9e1ed;background:#f7f9fc;border-radius:18px;overflow:hidden}
body[data-ride-layout="client"] .wr-address{margin:0;padding:12px 14px;background:transparent;border:0;border-radius:0}.wr-address+.wr-address{border-top:1px solid #e5eaf2!important}
body[data-ride-layout="client"] .wr-address input{background:transparent;min-height:38px;font-size:16px}body[data-ride-layout="client"] .ride{border:1px solid #e0e7f0;border-radius:19px;box-shadow:none;min-height:90px}body[data-ride-layout="client"] .ride.selected{border:2px solid #1c5beb;background:#f2f6ff}
body[data-ride-layout="client"] .wr-flow-primary,body[data-ride-layout="client"] #orderBtn{background:#1557e8;color:white;border:0;border-radius:16px;min-height:54px;font-weight:700;box-shadow:0 6px 18px #1557e824}
body[data-ride-layout="client"] .wr-driver-person{border:1px solid #e0e6f1;border-radius:20px;padding:18px;background:linear-gradient(135deg,#f4f8ff,#fff)}body[data-ride-layout="client"] .wr-driver-initials{background:#e1eafd;color:#2656a1;border:4px solid #fff;box-shadow:0 2px 9px #24508418}
body[data-ride-layout="client"] .wr-driver-plate{display:inline-block;padding:6px 12px;border:1px solid #c7d4e5;border-left:5px solid #2460df;background:white;border-radius:6px;letter-spacing:1px}.wr-driver-contacts>a,.wr-driver-contacts>button{border-radius:14px!important;min-height:48px!important}
body[data-ride-layout="client"] .wr-search-state{padding:0;background:transparent}.wr-search-line{height:4px!important;border-radius:5px;overflow:hidden}.wr-search-route{background:#f5f7fb!important;border-radius:16px;padding:16px!important;line-height:1.75}.wr-dispatch-status{font-size:12px;color:#147260;line-height:1.5}.wr-dispatch-status:empty{display:none}
.wr-nearby-status{position:absolute;left:16px;bottom:22px;z-index:5;margin:0;padding:11px 15px;border-radius:24px;background:#ffffffef;box-shadow:0 3px 18px #183b5825;color:#244463;font-size:12px;font-weight:650;max-width:75%;backdrop-filter:blur(8px)}
/* The same compact conversation on both sides. */
.wrc-chat{box-sizing:border-box;margin:0;background:#f5f8fc;border:1px solid #e3e9f2;border-radius:22px;overflow:hidden;color:#172a43;font-family:ui-sans-serif,system-ui,sans-serif;text-align:left}.wrc-chat>header{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;padding:16px 16px 8px;background:#fff}.wrc-chat h2{font-size:18px;letter-spacing:-.3px;margin:0;flex:1}.wrc-chat .wrc-status{font-size:11px;color:#5c7494;margin:0;max-width:100%}.wrc-chat .wrc-translation{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;padding:6px 16px;background:white}.wrc-translation input{width:17px;height:17px;min-height:0;margin:0;accent-color:#1557e8}.wrc-chat>small{display:block;color:#7b899b;font-size:10px;line-height:1.5;padding:2px 16px 12px;background:white}.wrc-chat [hidden]{display:none!important}
.wrc-messages{display:flex;flex-direction:column;gap:12px;height:32dvh;min-height:160px;max-height:440px;overflow-y:auto;padding:18px 14px;scrollbar-width:thin;overscroll-behavior:contain}.wrc-bubble{align-self:flex-start;max-width:85%;border-radius:17px 17px 17px 4px;padding:10px 13px;background:#fff;border:1px solid #e2e9f3;box-shadow:0 2px 4px #10203304;overflow-wrap:anywhere}.wrc-bubble.mine{align-self:flex-end;border-radius:17px 17px 4px 17px;background:#e6edff;border-color:#d7e3ff}.wrc-bubble>p{margin:3px 0;white-space:pre-wrap;font-size:15px;line-height:1.5}.wrc-bubble>small{display:block;font-size:10px;text-align:right;color:#71829a;margin-top:4px}.wrc-bubble details{font-size:12px;color:#657898;margin:6px 0}.wrc-bubble details p{white-space:pre-wrap}.wrc-bubble audio{width:230px;max-width:100%;height:42px}.wrc-bubble button{width:auto;border:0;border-radius:12px;color:#28517f;background:#edf3fb;font-size:12px;margin:4px 0;padding:10px;min-height:40px}.wrc-bubble .wrc-media-card{min-width:150px;min-height:85px;font-size:15px;background:linear-gradient(135deg,#e1eafd,#f3f7ff)}
.wrc-chat .wrc-compose{display:flex;align-items:center;gap:4px;padding:10px 8px;background:white;border-top:1px solid #e4eaf4;margin:0}.wrc-chat .wrc-compose button{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:44px;min-height:44px;margin:0;padding:9px;border:0;border-radius:50%;background:transparent;color:#476586;font-size:26px;box-shadow:none}.wrc-compose button svg{width:22px;height:22px;pointer-events:none}.wrc-chat .wrc-compose button[type="submit"]{background:#1557e8;color:white}.wrc-chat .wrc-compose button.recording{background:#fddfe3;color:#cc1235}.wrc-chat .wrc-compose textarea{box-sizing:border-box;resize:none;flex:1;min-width:40px;width:100%;min-height:44px;height:44px;max-height:120px;font:400 16px/22px system-ui;padding:10px 12px;border:1px solid #e0e7f1;border-radius:22px;background:#f5f7fb;color:#142740;margin:0;box-shadow:none}.wrc-chat button:disabled{opacity:.45}.wrc-chat button:focus-visible,.wrc-chat input:focus-visible,.wrc-chat textarea:focus-visible{outline:3px solid #669aff;outline-offset:2px}.w78-driver-detail .wrc-chat{margin:16px}.wr-sheet #chatBox{padding:0!important;background:transparent!important;margin:16px 0!important}
/* Immersive media with thumb-sized controls and a touch seek bar. */
.wrc-modal{position:fixed;inset:0;z-index:650;background:#080a0e;color:white;width:100%;height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:contain;color-scheme:dark}.wrc-modal-body{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:#080a0e}.wrc-modal [hidden]{display:none!important}.wrc-modal button{min-height:44px;border:0;background:#253344;color:white;border-radius:24px;padding:12px 18px;font:600 15px system-ui;width:auto;margin:0}.wrc-modal button:focus-visible{outline:3px solid #62ddf5;outline-offset:2px}.wrc-modal .wrc-modal-close{position:absolute;top:max(16px,env(safe-area-inset-top));left:16px;z-index:4;background:#111a}.wrc-media-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;overflow:hidden;touch-action:none}.wrc-media-stage>img,.wrc-media-stage>video{width:100%;height:100%;object-fit:contain}.wrc-media-stage>audio{width:90%}.wrc-modal-body>p{padding:8px 20px;margin:0;text-align:center;font-size:12px}.wrc-modal .wrc-send-media{margin:10px 20px max(16px,env(safe-area-inset-bottom));background:#62d6ef;color:#092b3b;font-weight:750;min-height:52px}.wrc-modal .wc-media-icon svg{width:24px;height:24px}
.w78-video-controls{position:absolute;inset:auto 0 0;z-index:9;display:flex;align-items:center;gap:10px;padding:30px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#080a0edb);color:white;font:500 12px system-ui;touch-action:none;box-sizing:border-box}.w78-video-controls button{flex:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:#ffffff25!important;color:#fff!important;font-size:20px!important}.w78-video-controls input[type="range"]{min-width:30px!important;flex:1!important;width:100%!important;min-height:40px!important;height:40px!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;accent-color:#70e1fa;touch-action:none}.w78-video-controls output,.w78-video-controls span{flex:none;font-variant-numeric:tabular-nums;color:white}.w78-seeking .w78-video-controls{background:linear-gradient(transparent,#0b2844ef)}
#view-chat #chatModal[data-layout="gallery"] .wc-gallery-top{position:absolute;inset:0 0 auto;background:linear-gradient(#000b,transparent);padding-bottom:25px}#view-chat #chatModal[data-layout="gallery"] .wc-gallery-stage{position:absolute;inset:0;height:100%;width:100%;touch-action:none}#view-chat #chatModal[data-layout="gallery"] .wc-gallery-main{height:100%;width:100%;max-height:none;object-fit:contain}#view-chat #chatModal[data-layout="gallery"] .wc-gallery-footer{position:absolute;inset:auto 0 0;z-index:10;background:linear-gradient(transparent,#080a0eef 18%);padding-top:30px;max-height:48%;gap:8px}#view-chat #chatModal[data-layout="gallery"] .w78-video-controls{bottom:var(--w78-gallery-footer,195px);padding-bottom:8px}#view-chat #chatModal[data-layout="gallery"] .wc-gallery-strip{min-height:40px}#view-chat #chatModal[data-layout="gallery"] .wc-gallery-thumb{width:36px;flex-basis:36px;height:38px;min-height:38px}
#view-chat #chatModal[data-layout="media-viewer"]{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-height:none;padding:0;z-index:400;background:#080a0e}#view-chat #chatModal[data-layout="media-viewer"] .wc-dialog{width:100%;height:100%;max-height:none;max-width:none;border-radius:0;padding:0;margin:0;background:#080a0e}#view-chat #chatModal[data-layout="media-viewer"] #chatModalBody{height:100%;max-height:none;padding:0;background:#080a0e}#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;background:#080a0e;touch-action:none}#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-media{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-toolbar{position:absolute;inset:0 0 auto;z-index:12;background:linear-gradient(#000b,transparent)}#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-controls{position:absolute;bottom:150px;left:0;right:0;z-index:12}#view-chat #chatModal[data-layout="media-viewer"] .w78-video-controls{bottom:180px}#view-chat #chatModal[data-layout="media-viewer"].wc-viewer-clean .w78-video-controls{bottom:0;opacity:1;pointer-events:auto}#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-strip{position:absolute;bottom:80px;left:0;right:0;z-index:12}#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-footer{position:absolute;inset:auto 0 0;z-index:12;background:linear-gradient(transparent,#000a)}
@media(min-width:850px){body[data-ride-layout="client"] .wr-sheet{border-radius:28px;padding:28px}.w78-driver-work>.wt-map{height:520px}.w78-driver-detail{display:grid;grid-template-columns:1fr 1fr}.w78-driver-detail>.wt-active{display:block}.w78-driver-detail>.wt-active>p{margin:12px 0}.wrc-messages{height:360px}}
@media(max-width:360px){.wrc-chat .wrc-compose{gap:1px;padding:8px 4px}.wrc-chat .wrc-compose button{flex-basis:33px;width:33px;padding:7px}.w78-video-controls{gap:6px;padding-left:6px;padding-right:6px}.w78-video-controls span{display:none}}
@media(prefers-reduced-motion:reduce){.wr-search-line:before{animation:none!important}.wrc-chat *{scroll-behavior:auto!important}}

/* Shared camera layout in Ride. */
.wrc-modal[data-layout="camera"] .wc-capture-stage{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;border-radius:0;overflow:hidden;background:#08090b}
.wrc-modal[data-layout="camera"] .wc-capture-stage video{display:block;width:100%;height:100%;max-height:none;object-fit:cover}
.wrc-modal[data-layout="camera"][data-capture-mode="video"] .wc-capture-stage video{object-fit:contain}
.wrc-modal[data-layout="camera"] .wc-capture-stage video.is-front{transform:scaleX(-1)}
.wrc-modal[data-layout="camera"] .wc-capture-top{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:max(14px,env(safe-area-inset-top)) 18px 28px;gap:12px;background:linear-gradient(#0009,transparent);z-index:2}
.wrc-modal[data-layout="camera"] .wc-capture-top [aria-pressed="true"]{background:#f2cf51;color:#111}
.wrc-modal[data-layout="camera"] .wc-capture-timer{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:7px 13px;border-radius:18px;background:#b32536;color:white;font:600 15px/1.2 system-ui;font-variant-numeric:tabular-nums}
.wrc-modal[data-layout="camera"] .wc-capture-timer:before{content:'';height:7px;width:7px;background:white;border-radius:50%}
.wrc-modal[data-layout="camera"] .wc-capture-bottom{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;gap:12px;padding:50px 18px max(12px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#000b 35%,#000e);z-index:2}
.wrc-modal[data-layout="camera"] .wc-capture-controls{display:flex;align-items:center;justify-content:space-between;width:min(100%,390px);gap:28px;margin:0;padding:0}
.wrc-modal[data-layout="camera"] .wc-capture-shutter{display:flex;align-items:center;justify-content:center;width:82px;height:82px;min-width:82px;padding:5px;border:4px solid #fff;border-radius:50%;background:transparent;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .15s}
.wrc-modal[data-layout="camera"] .wc-capture-disc{display:block;width:62px;height:62px;border-radius:50%;background:white;transition:width .15s,height .15s,border-radius .15s;pointer-events:none}
.wrc-modal[data-layout="camera"][data-capture-mode="video"] .wc-capture-disc{background:#f34659}
.wrc-modal[data-layout="camera"].is-recording .wc-capture-disc{width:30px;height:30px;border-radius:8px}
.wrc-modal[data-layout="camera"] .wc-capture-flip{width:48px;height:48px;background:#383b42aa}
.wrc-modal[data-layout="camera"] .wc-capture-modes{display:flex;justify-content:center;gap:8px;margin:0}
.wrc-modal[data-layout="camera"] .wc-capture-modes button{min-width:74px;min-height:38px;padding:9px 16px;border-radius:22px;background:transparent;color:#ddd}
.wrc-modal[data-layout="camera"] .wc-capture-modes [aria-pressed="true"]{background:white;color:#141519}
.wrc-modal[data-layout="camera"] .wc-capture-help{max-width:100%;color:#e8e8eb;font-size:12px;text-align:center;margin:0}
.wrc-modal[data-layout="camera"] .wc-capture-zoom{min-height:36px;width:48px;padding:6px;border-radius:22px;background:#17191ebf;color:#fff}
.wrc-modal[data-layout="camera"] .wc-capture-recents{display:flex;gap:5px;width:min(100%,550px);overflow-x:auto;scrollbar-width:none}
.wrc-modal[data-layout="camera"] .wc-capture-recents button{position:relative;flex:0 0 58px;width:58px;height:60px;padding:0;border-radius:7px;overflow:hidden}
.wrc-modal[data-layout="camera"] .wc-capture-recents img,.wrc-modal[data-layout="camera"] .wc-capture-recents video{width:100%;height:100%;object-fit:cover}
.wrc-modal[data-layout="camera"] .wc-capture-error{position:absolute;top:24%;left:50%;transform:translateX(-50%);z-index:3;width:min(85%,370px);padding:20px;border-radius:20px;background:#202227ed;box-shadow:0 10px 30px #0005;text-align:center}
.wrc-modal[data-layout="camera"] .wc-capture-error p{margin:0 0 14px;color:#fff;font-size:15px;line-height:1.5}
.wrc-modal[data-layout="camera"] .wc-capture-error button{width:100%;padding:12px;margin-top:8px;border-radius:12px;background:#fff;color:#111}

.wrc-media-card img{display:block;width:100%;max-width:240px;max-height:260px;object-fit:cover;border-radius:10px;margin-bottom:7px}.wrc-modal .wc-media-icon{display:flex;align-items:center;justify-content:center;padding:10px;min-width:44px;width:44px;height:44px}.wrc-modal .wc-capture-shutter{width:82px;height:82px}
