:root{--ink:#263a3a;--muted:#77837e;--red:#b94436;--line:#e2e6df;--bg:#f5f6f0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:8px;padding:11px 16px;color:var(--ink)}button:hover{filter:brightness(.96)}button:focus-visible,input:focus,select:focus{outline:2px solid #b94436;outline-offset:2px}button.primary{background:var(--red);color:white;border-color:var(--red);font-weight:600}small{display:block;color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#fffef9;border-right:1px solid var(--line);padding:32px 23px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;font-weight:800;font-size:19px;letter-spacing:1px}.brand small{font-size:8px;letter-spacing:1.2px;margin-top:5px}.shield{background:var(--red);color:white;border-radius:13px 13px 20px 20px;padding:10px;font-size:22px}.season{margin:42px 0 24px;font-size:10px;color:var(--muted);letter-spacing:1.2px}.season b{display:block;color:var(--ink);font-size:16px;margin-top:8px}nav{display:grid;gap:9px}nav button{text-align:left;border:0;background:transparent;padding:14px 12px}nav .active{background:#f4e9e2;color:#a23f31;font-weight:600}.sidebar-bottom{margin-top:auto;font-size:12px}.sidebar-bottom small{font-size:10px;line-height:1.8;margin-top:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#218168;margin-right:6px}main{margin-left:245px;padding:35px 40px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--red)}h1{font-family:Georgia,serif;font-weight:400;font-size:38px;letter-spacing:-1px;margin:10px 0}p{color:var(--muted);line-height:1.6;margin:6px 0}h2{font-size:17px;margin:0 0 4px}h3{margin-top:30px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stats article{border:1px solid var(--line);border-radius:12px;background:#fffefb;padding:19px 21px}.stats span{color:#66736e;font-size:12px}.stats strong{display:block;font-size:31px;letter-spacing:-1px;margin:12px 0 7px;font-weight:600}.stats small{font-size:10px}.panel{border:1px solid var(--line);background:white;border-radius:14px;overflow:hidden}.panel-top{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-top p{font-size:12px}.filters{padding:0 24px 16px;display:flex;gap:8px;align-items:center}.filters button{padding:7px 13px;font-size:11px;border-radius:20px}.filters .selected{background:#263f3a;color:white;border-color:#263f3a}.filters span{margin-left:auto;color:var(--muted);font-size:11px}#map{height:480px;z-index:0;background:#e6e9dd}#mapFallback{padding:40px}.map-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 24px;font-size:10px;color:var(--muted)}i{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 4px 0 10px}footer{display:flex;justify-content:space-between;font-size:11px;color:#8b948d;padding-top:22px}dialog{border:0;border-radius:16px;padding:26px;width:min(520px,95vw);max-height:94vh;color:var(--ink);box-shadow:0 20px 80px #162a3033}dialog::backdrop{background:#1e302b66}label{display:block;font-size:12px;font-weight:600;margin:13px 0}input,select{display:block;width:100%;padding:11px;margin-top:7px;border:1px solid #d9dfd8;border-radius:7px;background:white;color:var(--ink)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head button{font-size:24px;padding:0 10px;border:0}.hint,#position{font-size:11px}.dialog-actions{margin-top:23px;justify-content:flex-end}.danger{color:var(--red);margin-right:auto}.settings{padding:28px}.settings form{max-width:380px}.record{padding:18px 24px;border-top:1px solid var(--line);display:flex;align-items:center;gap:18px}.record div{flex:1}.record small{margin-top:5px}.badge{padding:5px 9px;border-radius:20px;font-size:11px;background:#eef1eb}.empty{padding:60px 24px;text-align:center;color:var(--muted)}#search{max-width:330px;margin:0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263f3a;color:white;padding:13px 20px;border-radius:9px;z-index:9999;display:none}.popup-row{padding:8px 0;border-bottom:1px solid #eee}.popup-row button{margin-top:5px;font-size:11px;padding:5px 8px}.leaflet-popup-content{min-width:210px}.pin{border:3px solid white;border-radius:50%;box-shadow:0 2px 8px #0004;color:white;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}[hidden]{display:none!important}@media(min-width:1500px){#map{height:580px}}@media(max-width:1000px){.sidebar{width:205px;padding:25px 16px}main{margin-left:205px;padding:25px}.brand{font-size:16px}.stats{gap:9px}.stats article{padding:15px}h1{font-size:31px}.map-footer{flex-direction:column}}@media(max-width:720px){.sidebar{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:16px}.shield{font-size:17px;padding:7px}.season,.sidebar-bottom{display:none}nav{display:flex;margin-top:14px;gap:3px}nav button{font-size:11px;padding:10px 7px;flex:1;text-align:center}main{margin:0;padding:20px 14px}header{align-items:flex-start}h1{font-size:27px}header p{font-size:12px}header .primary{font-size:11px;max-width:130px;padding:11px}.stats{grid-template-columns:1fr 1fr;margin-bottom:18px}.stats strong{font-size:26px}.panel-top{padding:17px;align-items:flex-start}.panel-top button{font-size:11px;white-space:nowrap;padding:9px}.filters{padding:0 12px 12px;gap:4px;flex-wrap:wrap}.filters button{padding:7px 9px}.filters span{display:none}#map{height:460px}.map-footer{padding:13px;font-size:9px}.record{padding:15px;gap:8px;flex-wrap:wrap}.panel-top:has(input){flex-direction:column}.settings{padding:20px}.settings>button{margin-bottom:8px}footer{font-size:9px}}
.address-search{padding:0 24px 16px;position:relative}.address-search label{font-size:11px;margin:0}.address-search input{max-width:460px;margin:7px 0}.address-search small{font-size:10px;line-height:1.5}.address-search a{color:#536881}.address-number{background:#fffffff2;border:1px solid #a6ada3;border-radius:4px;padding:2px 4px;color:#364438;font-size:10px;font-weight:700;white-space:nowrap;width:max-content!important;height:auto!important;box-shadow:0 1px 3px #0002}#addressResults:has(button){position:absolute;top:73px;left:24px;right:24px;z-index:1100;max-height:250px;overflow:auto;background:white;box-shadow:0 8px 25px #0002;border:1px solid #ddd;border-radius:8px}#addressResults button{display:block;border:0;width:100%;text-align:left;border-radius:0}#addressResults small{padding:10px}
.brand-logo{width:64px;height:72px;object-fit:contain;flex-shrink:0}.brand{font-size:16px;letter-spacing:.5px}.panel-top{flex-wrap:wrap}.panel-top>div{margin-right:auto}button{touch-action:manipulation;min-height:44px}.popup-row button{min-height:44px}.record div{min-width:0;overflow-wrap:anywhere}input,select{min-width:0}.map-expanded{overflow:hidden}.map-expanded #mapView{position:fixed;inset:0;z-index:2000;border-radius:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.map-expanded #map{flex:1;min-height:180px;height:auto}.map-expanded #mapView .panel-top{padding:12px 16px}.map-expanded #mapView .panel-top p{display:none}.map-expanded .address-search{padding-bottom:8px}.map-expanded .map-footer{padding:8px}dialog{max-height:90dvh;overscroll-behavior:contain}#toast{max-width:calc(100vw - 24px);bottom:calc(18px + env(safe-area-inset-bottom));width:max-content}
@media(max-width:720px){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.sidebar{padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top))}.brand-logo{width:44px;height:50px}.brand{font-size:16px}nav{margin-top:8px}nav button{font-size:12px;min-height:48px}main{padding:14px 12px;padding-bottom:max(18px,env(safe-area-inset-bottom))}header{margin-bottom:14px;gap:8px}header h1{font-size:25px}header p{display:none}header .primary{min-height:48px;font-size:12px}.stats{gap:8px;margin-bottom:12px}.stats article{padding:10px 12px}.stats strong{font-size:24px;margin:6px 0}.stats small{font-size:10px}.panel-top{padding:12px;gap:8px}.panel-top>div{width:100%}.panel-top button{font-size:12px;flex:1;min-height:44px}.filters{gap:6px}.filters button{font-size:12px;min-height:44px;flex:1}.address-search{padding:0 12px 12px}.address-search input{max-width:none}input,select{font-size:16px;min-height:48px}#map{height:60vh;height:60dvh;min-height:320px}.map-footer{font-size:10px;line-height:1.6}dialog{padding:18px;width:calc(100% - 16px);max-width:520px;max-height:calc(100dvh - 24px);margin:auto}.dialog-head button{min-width:44px;min-height:44px}.form-row{gap:10px}label{font-size:13px}.hint,#position{font-size:12px}.dialog-actions{position:sticky;bottom:-18px;background:white;padding:12px 0;margin-top:10px}.dialog-actions .primary{flex:1;min-height:48px}.leaflet-touch .leaflet-bar a{width:44px;height:44px;line-height:44px}.leaflet-popup-content{font-size:14px}.map-expanded #map{min-height:120px}.map-expanded .address-search small{display:none}.map-expanded .map-footer>span:first-child{display:none}#addressResults:has(button){left:12px;right:12px}#addressResults button{min-height:48px;font-size:15px}}
@media(max-width:360px){.form-row{grid-template-columns:1fr}.stats small{line-height:1.4}.brand small{font-size:8px}nav button{font-size:11px}header h1{font-size:22px}}
input[name=initials]{text-transform:uppercase}#historyBlock{margin:16px 0;font-size:12px}#historyBlock summary{cursor:pointer;padding:12px 0;font-weight:600}#historyEntries{max-height:180px;overflow:auto}#historyEntries p{padding:8px;border-bottom:1px solid var(--line)}
.address-label{background:#fff;border:1px solid #8f9e92;border-radius:7px;color:#233d30;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px #0002;white-space:nowrap}.address-cluster{background:#263f3a;color:#fff;border:2px solid white;font-size:13px}.address-group p{font-size:12px}.address-group-list{max-height:240px;overflow:auto;margin:10px 0}.address-group button{display:block;width:100%;text-align:left;min-height:44px;margin:4px 0}.map-options{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px}.map-options label{margin:0;font-size:11px}.map-options select{margin-top:4px;font-size:13px;padding:7px;min-height:40px}.map-options .check-option{display:flex;align-items:center;gap:7px}.check-option input{width:18px;min-height:18px;height:18px;margin:0}#layoutInfo{font-size:11px;color:#617366;flex:1;min-width:160px}.map-expanded .map-options{margin-top:4px}.map-expanded #layoutInfo{display:none}@media(max-width:720px){.map-options{gap:8px}.map-options select{font-size:16px}.map-options .check-option{min-height:44px}#layoutInfo{flex-basis:100%;font-size:11px}.address-group-list button{font-size:15px}}

.sync-banner{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#e8f0e9;padding:12px 16px;border-radius:10px;margin-bottom:18px;font-size:12px}.sync-banner>div{flex:1}.sync-banner small{margin-top:4px}.sync-banner a{color:#a23f31}button:disabled{opacity:.55;cursor:default}input:disabled,select:disabled{background:#f0f1ee;color:#59635d}.sync-banner button{font-size:12px}

#adminResetForm input{font-size:16px}#resetResult{margin-top:20px;padding-top:12px;border-top:1px solid #ddd}#adminResetForm button{margin:6px}#resetMessage{white-space:pre-wrap}

.team-badge{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-size:12px;padding:5px 8px;background:#f3f4f0;border-radius:6px;margin:3px}.team-badge:before{content:"";display:inline-block;width:12px;height:12px;background:var(--team-color,#999);border-radius:50%;flex-shrink:0}.team-palette{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:14px}.team-palette .team-badge{font-size:11px}#accountName .team-badge{margin:0}
