/* Top bar global: o mesmo header usado em profile.php agora aparece em todo o sistema. */
.nav-dropdown summary::after {
    display: none !important;
    content: none !important;
}

/* Termos e privacidade sem abandonar o cadastro — 13.6.1 */
.registration-consent{align-items:flex-start!important}.registration-consent input{margin-top:4px}.registration-legal-dialog{width:min(760px,calc(100% - 28px));max-height:min(92vh,880px);padding:0;border:0;border-radius:24px;overflow:hidden;box-shadow:0 25px 75px rgba(16,40,71,.3)}.registration-legal-dialog::backdrop{background:rgba(8,25,43,.66);backdrop-filter:blur(4px)}.registration-legal-modal{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:min(92vh,880px);background:#fff}.registration-legal-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:26px 28px 20px;border-bottom:1px solid var(--line)}.registration-legal-modal>header .eyebrow{margin:0}.registration-legal-modal>header h2{margin:4px 0 0;font-size:29px}.registration-legal-modal>header button{flex:0 0 auto;width:40px;height:40px;border:0;border-radius:50%;background:#eef3ef;color:var(--navy);font-size:27px;cursor:pointer}.registration-legal-scroll{max-height:60vh;padding:8px 28px 28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-behavior:smooth}.registration-legal-scroll section{padding:22px 0 10px}.registration-legal-scroll section+section{border-top:1px solid var(--line)}.registration-legal-scroll h3{margin:0 0 14px;font-size:24px;color:var(--navy)}.registration-legal-scroll h4{margin:20px 0 5px;font-size:16px;color:var(--navy)}.registration-legal-scroll p{margin:0;color:#4c5d68;line-height:1.65}.registration-legal-modal>footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 28px;border-top:1px solid var(--line);background:#fbfcfb}@media(max-width:600px){.registration-legal-dialog{width:calc(100% - 18px);max-height:94vh;border-radius:19px}.registration-legal-modal{max-height:94vh}.registration-legal-modal>header{padding:19px 18px 15px}.registration-legal-modal>header h2{font-size:23px}.registration-legal-scroll{max-height:none;padding:4px 18px 22px}.registration-legal-scroll section{padding-top:18px}.registration-legal-scroll h3{font-size:21px}.registration-legal-modal>footer{padding:12px;display:grid;grid-template-columns:.8fr 1.2fr}.registration-legal-modal>footer .button{width:100%;padding-inline:10px}}

/* Pré-cadastro progressivo e confirmação de contato. */
.registration-flow-dialog{width:min(540px,calc(100% - 28px));padding:0;border:0;border-radius:25px;box-shadow:0 25px 75px rgba(16,40,71,.28)}.registration-flow-dialog::backdrop{background:rgba(8,25,43,.64);backdrop-filter:blur(4px)}.registration-flow{position:relative;min-height:430px;padding:34px;overflow:hidden}.registration-close{position:absolute;z-index:3;right:16px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:#f0f3f1;color:var(--navy);font-size:27px;cursor:pointer}.registration-progress{height:6px;margin:4px 52px 30px 0;overflow:hidden;border-radius:10px;background:#e8ece9}.registration-progress i{display:block;width:20%;height:100%;border-radius:10px;background:var(--green);transition:width .25s ease}.registration-flow>.eyebrow{margin-bottom:12px}.registration-step{display:none;animation:registration-step-in .22s ease}.registration-step.active{display:grid;gap:18px}.registration-step h2{margin:0;font-size:30px;line-height:1.08}.registration-step>p{margin:-9px 0 2px;color:var(--muted)}.registration-step label{display:grid;gap:8px;font-weight:800}.registration-step input{min-height:56px;font-size:18px}.registration-step>.button{width:100%;margin-top:5px}.registration-back,.registration-resend{justify-self:start;padding:0;border:0;background:none;color:var(--green);font-weight:900;cursor:pointer}.registration-channels{display:grid;gap:12px}.registration-channels>button{min-height:82px;padding:13px;display:grid;grid-template-columns:52px 1fr;align-items:center;gap:13px;border:2px solid var(--line);border-radius:17px;background:#fff;color:var(--navy);text-align:left;cursor:pointer}.registration-channels>button:hover{border-color:var(--green);background:var(--green-soft)}.registration-channels>button>span{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:var(--green-soft);color:var(--green);font-size:24px}.registration-channels>button>div{display:grid}.registration-channels strong{font-size:17px}.registration-channels small{color:var(--muted)}.registration-code input{text-align:center;font-size:30px;font-weight:900;letter-spacing:.35em;padding-left:.35em}.registration-error{position:absolute;left:34px;right:34px;bottom:14px;margin:0}.registration-error[hidden]{display:none}@keyframes registration-step-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
@media(max-width:700px){.registration-flow{min-height:445px;padding:27px 20px 58px}.registration-progress{margin-right:48px}.registration-step h2{font-size:26px}.registration-error{left:20px;right:20px}.registration-code input{font-size:26px}}

/* Marcadores personalizados do mapa. */
.subrim-map-marker{position:relative;width:50px;height:58px;display:grid;place-items:start center;filter:drop-shadow(0 8px 10px rgba(16,40,71,.28));cursor:pointer;transform-origin:50% 100%}.subrim-map-marker::after{content:"";position:absolute;left:50%;bottom:2px;width:15px;height:15px;background:var(--green);transform:translateX(-50%) rotate(45deg);border-radius:2px}.subrim-map-marker-face{position:relative;z-index:2;width:46px;height:46px;display:grid;place-items:center;overflow:hidden;border:4px solid #fff;border-radius:50%;background:var(--green);color:#fff;font-size:21px;box-shadow:0 0 0 2px var(--green)}.subrim-map-marker-face b{font-weight:800;line-height:1}.subrim-map-marker-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}.subrim-map-marker>i{position:absolute;z-index:3;right:-2px;top:-3px;width:19px;height:19px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#fff;color:var(--green);font-size:11px;font-style:normal;font-weight:900}.subrim-map-marker.is-active{width:60px;height:68px;animation:subrim-marker-float 1.6s ease-in-out infinite}.subrim-map-marker.is-active::before{content:"";position:absolute;z-index:0;top:-7px;width:58px;height:58px;border:3px solid rgba(244,125,99,.65);border-radius:50%;animation:subrim-marker-pulse 1.6s ease-out infinite}.subrim-map-marker.is-active::after{bottom:2px;background:var(--coral)}.subrim-map-marker.is-active .subrim-map-marker-face{width:54px;height:54px;background:var(--coral);box-shadow:0 0 0 3px var(--coral)}.subrim-map-marker.is-active>i{background:var(--navy);color:#fff;transform:rotate(-35deg)}
@keyframes subrim-marker-pulse{0%{transform:scale(.72);opacity:1}100%{transform:scale(1.55);opacity:0}}@keyframes subrim-marker-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.subrim-map-marker.is-active,.subrim-map-marker.is-active::before{animation:none}}
.location-switch{width:calc(100% - 24px);min-height:52px;margin:0 12px 12px;padding:8px 12px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;border:1px solid #dce6e0;border-radius:14px;background:#fff;color:var(--navy);cursor:pointer;text-align:left}.location-switch>span{width:46px;height:26px;padding:3px;display:flex;align-items:center;border-radius:99px;background:#c8d0cc;transition:.22s}.location-switch>span i{width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(16,40,71,.22);transition:.22s}.location-switch b{font-size:13px}.location-switch small{color:var(--muted);font-size:11px}.location-switch.is-on{border-color:#b9ddcc;background:var(--green-soft)}.location-switch.is-on>span{background:var(--green)}.location-switch.is-on>span i{transform:translateX(20px)}.location-switch.is-on small{color:var(--green);font-weight:900}.tracking-technician-map{min-height:520px}.technician-map-copy{position:absolute;z-index:5;left:14px;right:14px;top:16px;display:grid;padding:13px 15px;border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(16,40,71,.14)}.technician-map-copy small{color:var(--muted)}.map-switch{position:absolute;z-index:6;left:6px;right:6px;bottom:4px;width:auto}.technician-destination{position:absolute;z-index:5;left:16px;right:70px;top:146px;display:grid;padding:10px 13px;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 7px 20px rgba(16,40,71,.12)}.technician-destination small{color:var(--muted);font-size:10px}.technician-destination strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
@media(min-width:701px){.mobile-tracking-home.is-technician,.mobile-tracking-home.is-client{display:block;margin-bottom:30px}.mobile-tracking-home.is-technician .tracking-topbar,.mobile-tracking-home.is-client .tracking-topbar{display:none}.mobile-tracking-home.is-technician .tracking-map-wrap,.mobile-tracking-home.is-client .tracking-map-wrap{min-height:540px;border-radius:22px;box-shadow:var(--shadow)}.mobile-tracking-home.is-technician+.dashboard-heading,.mobile-tracking-home.is-client+.dashboard-heading{margin-top:10px}}
.map-filter-row{display:flex;align-items:center;gap:7px;margin-top:11px;overflow-x:auto;scrollbar-width:none}.map-filter-row::-webkit-scrollbar{display:none}.map-filter-row button,.map-filter-row select{flex:0 0 auto;height:34px;padding:0 11px;border:1px solid #d8e3dd;border-radius:999px;background:#fff;color:var(--navy);font:inherit;font-size:11px;font-weight:800;cursor:pointer}.map-filter-row button.active{border-color:var(--green);background:var(--green);color:#fff}.map-filter-row select{max-width:190px}.map-search-area{position:absolute;z-index:8;top:142px;left:50%;transform:translateX(-50%);min-height:40px;padding:0 17px;border:0;border-radius:999px;background:var(--navy);color:#fff;font:inherit;font-size:12px;font-weight:900;box-shadow:0 8px 22px rgba(16,40,71,.24);cursor:pointer}.map-search-area[hidden]{display:none}.map-technician-sheet{position:absolute;z-index:9;left:16px;right:16px;bottom:18px;padding:18px;background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.9);border-radius:20px;box-shadow:0 17px 45px rgba(16,40,71,.22)}.map-technician-sheet[hidden]{display:none}.map-technician-sheet>[data-map-tech-content]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.map-sheet-close{position:absolute;right:8px;top:7px;width:30px;height:30px;border:0;border-radius:50%;background:#eef3ef;color:var(--navy);font-size:20px;cursor:pointer}.map-sheet-avatar{position:relative;width:58px;height:58px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--green);color:#fff;font-size:23px;font-weight:900}.map-sheet-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.map-sheet-details{display:grid;gap:2px;min-width:0}.map-sheet-details>strong{font-size:18px}.map-sheet-details>small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-sheet-facts{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:6px;color:var(--navy);font-size:12px;font-weight:800}.map-sheet-facts span:first-child{color:#a46b00}.map-sheet-actions{display:flex;gap:8px;padding-right:22px}.tracking-nearby-wrap.has-selected-tech .nearby-map-cta{display:none}@media(max-width:700px){.nearby-map-copy{padding:11px 12px}.map-filter-row{margin-top:8px}.map-filter-row button,.map-filter-row select{height:32px}.map-search-area{top:137px}.map-technician-sheet{left:10px;right:10px;bottom:12px;padding:16px 13px}.map-technician-sheet>[data-map-tech-content]{grid-template-columns:auto minmax(0,1fr)}.map-sheet-avatar{width:48px;height:48px}.map-sheet-actions{grid-column:1/-1;padding:3px 0 0}.map-sheet-actions .button{flex:1}.map-sheet-details>strong{font-size:16px}}
.subrim-action-float{position:fixed;z-index:145;right:22px;bottom:22px;min-height:58px;padding:8px 18px 8px 9px;display:flex;align-items:center;gap:10px;border:0;border-radius:32px;background:var(--green);color:#fff;box-shadow:0 12px 30px rgba(31,122,90,.3);font:inherit;font-weight:900;cursor:pointer;transition:.2s ease}.subrim-action-float:hover{transform:translateY(-3px);background:var(--green-dark)}.subrim-action-float>span{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.18);font-size:25px}.technician-support-float{background:var(--navy)}.technician-support-float:hover{background:#071c35}.service-channel-dialog{width:min(520px,calc(100% - 28px));padding:0;border:0;border-radius:24px;box-shadow:0 24px 70px rgba(16,40,71,.28)}.service-channel-dialog::backdrop{background:rgba(8,25,43,.62);backdrop-filter:blur(3px)}.service-channel-content{position:relative;padding:34px}.service-channel-close{position:absolute;right:16px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:#f0f3f1;color:var(--navy);font-size:27px;cursor:pointer}.service-channel-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--green-soft);color:var(--green);font-size:29px}.service-channel-content h2{margin:18px 0 7px;font-size:28px;line-height:1.1}.service-channel-content>p{margin:0;color:var(--muted)}.service-channel-options{display:grid;gap:12px;margin-top:25px}.service-channel-option{min-height:86px;padding:14px;display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:13px;border:2px solid var(--line);border-radius:17px;background:#fff;transition:.18s ease}.service-channel-option:hover{border-color:var(--green);transform:translateY(-1px);box-shadow:0 9px 24px rgba(16,40,71,.08)}.service-channel-option>span{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:var(--green-soft);color:var(--green);font-size:25px}.service-channel-option>div{display:grid}.service-channel-option strong{font-size:17px}.service-channel-option small{color:var(--muted);line-height:1.35}.service-channel-option>i{color:var(--green);font-size:31px;font-style:normal}.service-channel-option.phone>span{background:#eef2f6;color:var(--navy)}

@media (max-width: 700px) {
    body:has(.mobile-tracking-home) > .site-header {
        display: flex;
    }

    .mobile-tracking-home {
        margin: 0 -18px 28px;
    }

    .mobile-tracking-home .tracking-topbar {
        display: none;
    }

    /* Apenas o destino atual recebe o destaque elevado. */
    .mobile-bottom-nav a.active {
        height: 66px;
        margin-top: -21px;
        color: #fff;
        background: var(--green);
        border: 5px solid #fff;
        border-radius: 20px;
        box-shadow: 0 9px 22px rgba(31, 122, 90, .28);
    }

    .mobile-bottom-nav a.active svg {
        width: 25px;
        height: 25px;
    }

    .mobile-bottom-nav a:not(.active) {
        margin-top: 0;
        color: var(--muted);
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .subrim-action-float{right:12px;bottom:calc(100px + env(safe-area-inset-bottom));min-height:54px;padding-right:15px}.subrim-action-float>span{width:38px;height:38px}.service-channel-content{padding:27px 20px 22px}.service-channel-content h2{font-size:25px}.service-channel-option{min-height:88px;padding:12px;grid-template-columns:48px 1fr auto}.service-channel-option>span{width:48px;height:48px}
}
