body{background:#fff}header{border-bottom:1px solid #dbe1e7}.card{border-radius:2px}.primary,.secondary{border-radius:5px}.metrics{border-radius:0;background:#102641;padding:24px 0}.seg{background:white;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;gap:0}.seg button{border-radius:0;padding-block:13px;color:#73808b}.seg button.active{box-shadow:none;background:transparent;border-bottom:2px solid #102641;color:#102641}.badge{background:transparent!important;border-radius:0;padding:0;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:400}.badge:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.leadrow{min-height:75px}.leadrow b{font-size:16px}.leadrow small{color:#82909b}.rankrow{padding-block:20px}.rankrow.me{background:#f4f6f8}.pill{border:0;background:#f3f5f7;border-radius:3px}.review-banner{border-radius:2px}.simulation-label{border-radius:0}nav{box-shadow:none}.map-page main{padding:0 0 88px;max-width:1100px}.fieldheader{display:flex;justify-content:space-between;align-items:center;padding:19px 22px}.fieldheader h1{font-size:24px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#788592}.locate{border:1px solid #d6dee5;width:44px;height:44px;display:grid;place-items:center;border-radius:4px}#fieldmap{height:48dvh;min-height:280px;max-height:520px;background:#d9e0e6;z-index:0}.locationbar{font-size:12px;padding:10px 20px;background:#f2f5f8;color:#53667c}.housepanel{position:relative;padding:20px 22px 25px;background:white;z-index:1}.sheet-handle{display:none}.housepanel h2{font-size:19px}.housepanel>p{font-size:13px;color:#7c8895;margin-top:8px}.visit-legend{display:flex;gap:13px;flex-wrap:wrap;margin:17px 0 3px}.visit-legend span{font-size:11px;display:flex;align-items:center;gap:6px}.visit-legend i{height:6px;width:6px;border-radius:50%}.housetitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.houseaddress{display:grid;gap:8px}.houseaddress>div{display:grid;grid-template-columns:90px 1fr;gap:8px}.houseaddress input{border-radius:3px;background:#fbfcfd;font-size:15px}.housepanel .map-limit{font-size:11px;line-height:1.5;color:#7c8895;margin:10px 0 16px}.visit-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 10px}.visit-actions button{padding:12px 5px;border:1px solid #d4dce4;font-size:12px;min-height:48px}.full{width:100%}.visited-before{background:#f3f5f7;border-left:2px solid #102641;padding:10px 12px;font-size:12px;margin-bottom:12px}.visited-before small{display:block;font-size:11px;margin-top:4px}.visit-history{max-height:60dvh;overflow:auto}.visitstatus{font-size:11px;text-align:right}.leaflet-container{font-family:Inter,Arial,sans-serif}.leaflet-control-attribution{font-size:9px!important}.map-page .leaflet-control-zoom{border:0;box-shadow:0 1px 8px #10264130}.map-page nav{z-index:1001}dialog{z-index:1500;border-radius:5px}#toast{z-index:2000}@media(min-width:800px){.map-page main{position:relative;max-width:none}.map-page #fieldmap{height:calc(100dvh - 225px);max-height:none}.map-page .housepanel{position:absolute;top:110px;left:30px;width:350px;max-height:calc(100dvh - 280px);overflow:auto;box-shadow:0 4px 20px #10264130}.map-page .fieldheader{max-width:1100px;margin:auto}.locationbar{position:absolute;bottom:88px;right:0}}@media(max-width:650px){.map-page header{height:58px}.fieldheader{padding:13px 18px}.fieldheader h1{font-size:22px}.housepanel{padding:18px}.metric strong{font-size:25px}.card.formcard{border-inline:0;padding-inline:0}.map-page #fieldmap{height:43dvh}.visit-actions button{font-size:11px}}

.locationbar{font-size:14px;line-height:1.5}.location-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.location-actions button{min-height:44px;padding:10px 14px;font-size:14px}@media(min-width:800px){.locationbar{max-width:440px}}

.maptiler-brand{display:block;padding:4px;background:#fff;border-radius:3px}.maptiler-brand img{display:block;width:90px;height:24px}.housepanel button:disabled{opacity:.5;cursor:wait}

/* Shared application header, including authentication and onboarding. */
body header.app-header{display:grid;grid-template-columns:minmax(64px,1fr) auto minmax(64px,1fr);align-items:center;gap:12px;height:auto;min-height:72px;padding:calc(10px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 10px max(20px,env(safe-area-inset-left,0px));background:#fff;border-bottom:1px solid #e5eaf0}
header.app-header>img{justify-self:start;display:block;width:58px;height:40px;object-fit:contain}
header.app-header>span{border:0;padding:0;text-align:center;color:#526174;font-size:14px;font-weight:500;line-height:1.35;letter-spacing:.01em;max-width:48vw}
header.app-header>.app-refresh{justify-self:end;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e2e8ef;border-radius:12px;background:#f7f9fb;color:#102641;transition:background .15s,border-color .15s}
header.app-header>.app-refresh svg{display:block;width:21px;height:21px}
header.app-header>.app-refresh:hover{background:#edf2f7;border-color:#cbd5e1}
header.app-header>.app-refresh:active{background:#e4ebf3}
@media(max-width:650px){body header.app-header{min-height:64px;padding-inline:max(16px,env(safe-area-inset-left,0px));gap:8px}header.app-header>img{width:52px;height:36px}}

/* Subtle residential backdrop for sign-in and password screens only. */
body:has(#login-form){background:#f8fafc;isolation:isolate}
body:has(#login-form)::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(rgba(255,255,255,.84),rgba(255,255,255,.87)),url("login-neighborhood.webp") center 58%/cover no-repeat}
body:has(#login-form) main{max-width:1000px;padding:30px 24px 64px;min-height:calc(100svh - 72px);position:relative}
body:has(#login-form) .auth-panel{background:rgba(255,255,255,.25);border-color:rgba(215,224,234,.85);box-shadow:0 12px 40px rgba(16,38,65,.055)}
body:has(#login-form) #nav:empty{display:none}
@media(max-width:650px){body:has(#login-form) main{padding:24px 16px 40px;min-height:calc(100svh - 64px)}body:has(#login-form)::before{background-position:center,center 55%}}
