:root{--teal:#003DA5;--teal2:#002B7F;--lime:#FFD200;--ink:#002B7F;--muted:#667085;--bg:#F5F7FA;--good:#4CAF50;--warn:#FF9800;--bad:#F44336;--shadow:0 4px 14px rgba(0,43,127,.13)}
html,body{font-family:Roboto,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172B4D;background:#F5F7FA}
.splash{background:#fff url('assets/escavee_logo.png') center/220px auto no-repeat;color:transparent}.splash>*{visibility:hidden}
.topbar{height:64px;background:#003DA5;border-bottom:0;box-shadow:0 3px 10px rgba(0,43,127,.22)}
.mini-brand,.icon-btn,.link-btn{color:#fff}.mini-brand img{display:block;width:auto;height:56px;object-fit:contain}.mini-brand .pin{background:#fff;color:#003DA5;border-radius:9px}.mini-brand strong{color:#FFD200}
main{padding:22px 14px 60px}.login-view{min-height:calc(100vh - 108px);display:flex;align-items:center;justify-content:center}
.app:has(#loginView:not(.hidden)) .topbar{display:none}.app:has(#loginView:not(.hidden)) main{padding-top:0}
.android-login{width:min(100%,560px);min-height:calc(100vh - 108px);display:flex;flex-direction:column;background:#fff;padding:0 14px 8px}
.android-login img{display:block;width:100%;height:min(69vh,730px);object-fit:contain;min-height:0}
.android-login .login-form{margin:auto 0 0}.android-login .login-form label{display:none}
.android-login .login-form input{display:block;width:100%;height:52px;border:0;border-bottom:2px solid #71809B;border-radius:0;padding:10px 5px;outline:none;font-size:17px}
.android-login .login-form input:focus{border-bottom-color:#003DA5}.android-login .login-form button{display:block;width:100%;border:0;border-radius:5px;background:#003DA5;color:#fff;font-weight:800;padding:14px 24px;margin-top:16px;cursor:pointer}
.android-login .form-error{color:#C62828}.android-login footer{text-align:center;color:#344054;font-size:13px;padding-top:2px}
.page-head{background:#002B7F;color:#fff;border-radius:20px;padding:18px;align-items:center;box-shadow:0 6px 14px rgba(0,43,127,.2)}.page-head h2{font-size:23px}.page-head p{color:#D9E5FF}.page-head .eyebrow{color:#FFD200}
.segmented{background:#ffffff2e}.segmented button{color:#fff}.segmented button.active{background:#FFD200;color:#002B7F}
.summary-grid{grid-template-columns:repeat(5,1fr)}.metric{box-shadow:none;border:1px solid var(--tone);border-top:1px solid var(--tone);text-align:center;background:#fff}.metric span,.metric b{color:var(--tone)}
.panel,.toilet-card,.device-card{border-radius:16px}.dealer-score{background:#fff;color:#172B4D;display:block;text-align:center;border-radius:16px}.score-ring{margin:0 auto 12px;width:130px;height:130px;font-size:58px;border:0;color:#172B4D}.dealer-score p{color:#667085}
.toilet-card,.device-card{border-top:0;border:1px solid #DDE3EC}.sensor{background:#F5F7FA}.secondary-btn{border-color:#003DA5;color:#003DA5}.device-actions button{background:#003DA5;color:#fff}.loading{background:rgba(245,247,250,.86)}
#dealerView:before{content:"";position:fixed;inset:64px 0 0;z-index:-1;background:#fff url('assets/thooimai_bg.jpeg') top center/100% auto no-repeat}
@media(max-width:800px){.summary-grid{grid-template-columns:repeat(3,1fr)}.summary-grid .metric:first-child{grid-column:auto}.android-login img{height:min(65vh,680px)}}
@media(max-width:520px){main{padding:14px 12px 45px}.topbar{height:60px}.mini-brand img{height:50px}.android-login{min-height:calc(100vh - 86px);padding:0 2px 6px}.android-login img{height:min(62vh,580px)}.page-head{border-radius:18px}.summary-grid{grid-template-columns:repeat(3,1fr)}.summary-grid .metric{padding:12px 5px}.metric b{font-size:28px}.metric span{font-size:11px}.segmented{width:100%}}
.leaflet-tooltip.territory-label{display:block}.territory-summary-web{background:#fff;border:0;border-radius:13px;padding:10px!important;box-shadow:0 5px 18px #2344;font-size:11px;line-height:1.4;color:#002B7F;white-space:nowrap;text-align:center}
.restroom-pin-svg{display:block;width:48px;height:62px;filter:drop-shadow(0 4px 5px rgba(0,43,80,.35))}
