/* Estilos restritos ao ambiente do motorista. */
.driver-mode{--acc:#137a4b;--acc-soft:#e9f4e5;--off:#137a4b;--off-soft:#e9f4e5}
.driver-mode #scr{padding:0;gap:0;background:var(--soft)}
.driver-mode #nav{display:none!important}.driver-mode .mode-strip{background:#137a4b}
.driver-mode .drv-head{display:flex;align-items:center;gap:11px;padding:17px 18px 13px;background:var(--surface);flex-shrink:0}
.drv-head img{width:37px;height:37px;border-radius:11px}.drv-head h2{font-size:18px;letter-spacing:-.5px;margin:0}.drv-head .sub{font-size:11px;margin-top:3px}.drv-head .grow{min-width:0}.drv-head button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--soft);color:var(--ink);flex:none}
.drv-gains{display:flex;justify-content:space-between;align-items:center;margin:0 16px 12px;border-radius:18px;padding:15px 17px;background:#103d30;color:#fff;flex:none}.drv-gains small{display:block;font-size:10px;color:#d5e5d5;letter-spacing:.6px}.drv-gains strong{font-size:29px;letter-spacing:-1px;display:block;margin-top:5px}.drv-gains>div:last-child{text-align:right;border-left:1px solid #ffffff30;padding-left:18px}.drv-gains>div:last-child strong{font-size:23px}
.drv-map{height:clamp(230px,37vh,390px);min-height:230px;position:relative;isolation:isolate;background:var(--map);flex-shrink:0}.drv-map>div:first-child{height:100%;width:100%}.drv-map .drv-map-caption{position:absolute;z-index:500;top:12px;left:14px;background:var(--surface);padding:7px 11px;border-radius:20px;font-size:11px;box-shadow:0 3px 15px #0001;max-width:80%}.drv-map-caption:empty{display:none}
.drv-sheet{background:var(--surface);border-radius:23px 23px 0 0;position:relative;margin-top:-12px;padding:20px 18px 24px;z-index:501;flex:1;display:flex;flex-direction:column;gap:12px}.drv-sheet:before{content:"";display:block;height:4px;width:35px;border-radius:5px;background:var(--line);margin:-9px auto 1px}.drv-sheet h2{font-size:24px;letter-spacing:-.7px;margin:0}.drv-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.drv-pill{display:inline-block;border-radius:20px;font-size:10px;font-weight:750;padding:6px 9px;background:#e9f4e5;color:#137a4b;white-space:nowrap}.drv-pill.off{background:var(--soft);color:var(--muted)}.drv-pill.pending{background:#fff1d9;color:#835c17}.drv-vehicle{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line)}.drv-vehicle>span{font-size:25px;background:var(--soft);padding:9px;border-radius:12px}.drv-vehicle .name{font-size:13px}.drv-vehicle .sub{font-size:11px}.drv-vehicle button{color:var(--acc);background:none;border:0;font-size:12px}.drv-center{text-align:center}.drv-muted{color:var(--muted);font-size:11px;line-height:1.6}.drv-content{padding:18px;display:flex;flex-direction:column;gap:14px}.drv-content .hdr{margin-bottom:0}.drv-content .field{margin:0}.drv-content h2{font-size:24px}.drv-content h3{font-size:16px;margin:0}.drv-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:15px;display:flex;flex-direction:column;gap:10px}.drv-card .btn{margin:0}.drv-upload{display:flex;gap:9px;align-items:center;border:1px dashed #9bbba3;padding:14px;border-radius:12px;cursor:pointer;background:var(--surface);font-size:13px}.drv-upload span{flex:1}.drv-upload small{font-size:11px;color:var(--muted)}.drv-row{display:flex;gap:9px}.drv-row>*{flex:1;min-width:0}.drv-offer{padding:18px;border-radius:17px;background:#103d30;text-align:center;color:white}.drv-offer strong{display:block;font-size:36px;letter-spacing:-1px;margin:7px 0}.drv-offer small{font-size:11px;color:#d2e4d5}.drv-stops{display:grid;grid-template-columns:11px 1fr;gap:12px 10px;font-size:13px}.drv-stops i{width:8px;height:8px;background:#16844c;border-radius:50%;margin-top:6px}.drv-stops i:last-of-type{background:var(--ink);border-radius:2px}.drv-stops small{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.drv-stops strong{font-weight:600}.drv-metrics{display:flex;gap:8px}.drv-metrics>div{flex:1;background:var(--soft);padding:11px;border-radius:12px;font-size:16px;font-weight:700}.drv-metrics small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.drv-fare{background:var(--soft);border-radius:12px;padding:13px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.drv-fare strong{font-size:21px}.drv-contact{display:flex;gap:7px}.drv-contact a,.drv-contact button{flex:1;text-decoration:none;text-align:center;padding:12px 3px;font-size:12px;font-weight:600;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:var(--surface)}.driver-mode #corrslot{height:35vh;min-height:225px;flex-shrink:0;border-radius:0!important;margin:0}.drv-cancel{border:0;background:none;color:var(--bad);font-size:13px;padding:9px;text-align:center;cursor:pointer}.drv-success{width:65px;height:65px;margin:10px auto;border-radius:50%;display:grid;place-items:center;font-size:32px;background:#e6f4dc;color:#137a4b}.drv-success+strong{font-size:36px;text-align:center}.drv-guide{border:1px solid var(--line);padding:14px;border-radius:12px;font-size:13px;line-height:1.65;background:var(--surface)}.drv-steps{display:flex;gap:5px}.drv-steps i{flex:1;height:5px;background:var(--line);border-radius:5px}.drv-steps i.ok{background:#137a4b}.driver-mode .chatbar{position:relative;margin:0}.driver-mode .chat{min-height:100px;max-height:220px;overflow:auto}.driver-mode .toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:9999}.drv-profile-link{display:flex;align-items:center;justify-content:space-between;background:var(--surface);color:var(--ink);border:0;border-bottom:1px solid var(--line);padding:15px 0;text-align:left;gap:10px}.drv-profile-link small{color:var(--muted);display:block;margin-top:4px}.driver-mode .drv-content select{padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);width:100%;font:inherit}.drv-error{color:var(--bad);font-size:13px;line-height:1.5}
@media(max-width:600px){.driver-mode .drv-map{height:36vh;min-height:240px}.driver-mode .drv-head{padding-top:16px}.driver-mode .drv-sheet{padding-bottom:max(24px,env(safe-area-inset-bottom))}}

/* Painel enxuto: mapa e uma ação principal. */
.drv-home{display:flex;flex-direction:column;flex:1;min-height:100%}
.drv-home-map{position:relative;flex:1;min-height:240px;display:flex}
.driver-mode .drv-home .drv-map{height:auto;min-height:240px;flex:1}
.drv-home .drv-map-caption{display:none}
.drv-home-tools{position:absolute;top:18px;left:18px;right:18px;z-index:500;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}
.drv-home-tools>*{pointer-events:auto;box-shadow:0 3px 18px #00000014}
.drv-today{display:grid;grid-template-columns:auto auto;gap:2px 14px;align-items:baseline;padding:12px 17px;border-radius:18px;background:var(--surface)}
.drv-today small{font-size:11px;color:var(--muted);grid-column:1/-1}.drv-today strong{font-size:25px;letter-spacing:-.8px}.drv-today span{font-size:11px;color:var(--muted)}
.drv-account{border:1px solid var(--line);width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:var(--surface);color:var(--ink);flex:none}
.driver-mode .drv-home-sheet{flex:none;gap:10px;padding:22px 20px max(16px,env(safe-area-inset-bottom));margin-top:0;border-radius:22px 22px 0 0}
.drv-home-sheet:before{display:none}.drv-home-sheet h2{font-size:20px;letter-spacing:-.4px}
.drv-status-dot{width:9px;height:9px;background:var(--muted);border-radius:50%;flex:none}.drv-status-dot.on{background:#137a4b;box-shadow:0 0 0 4px #137a4b15}
.drv-current{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:none;padding:4px 0 10px;text-align:left;color:var(--muted);font-size:13px;min-height:44px}
.drv-current span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drv-home-sheet>.btn{min-height:52px;margin:0}.drv-home-sheet>.drv-return{min-height:40px;background:transparent;border:0;color:var(--muted);font-size:12px;box-shadow:none}
