:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#193d38;background:#e7eeeb}*{box-sizing:border-box}body{margin:0}html,body,#map{width:100%;height:100%;height:100dvh}button,input,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #d7e3dc;background:white;border-radius:10px;padding:10px 14px;color:#22564b}button:hover{background:#edf5ef}button:disabled{opacity:.55;cursor:wait}a{color:#286451;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #319b80;outline-offset:3px}[hidden]{display:none!important}.panel{background:#ffffffed;border:1px solid #fff;border-radius:18px;box-shadow:0 8px 40px #18392b14}header{position:absolute;z-index:800;top:20px;left:20px;right:20px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;width:44px;height:44px;background:#256f57;color:white;border-radius:14px;font-size:23px}h1{font-size:20px;margin:0}header p{font-size:12px;margin:4px 0 0;color:#708078}nav{display:flex;align-items:center;gap:20px;font-size:13px}.members{position:absolute;z-index:700;left:20px;top:120px;width:310px;max-height:calc(100dvh - 155px);overflow:auto;padding:18px}.section-title{display:flex;align-items:center;justify-content:space-between}h2{font-size:18px;margin:0}#count{color:#788b80;font-weight:400}#status,.legend{font-size:12px;color:#6d7e73;line-height:1.7}.member{display:block;text-align:left;width:100%;margin:8px 0;padding:13px;border-radius:12px}.member strong{display:block;margin-bottom:5px;overflow-wrap:anywhere}.member small{display:block;font-size:12px;color:#788579;line-height:1.7}.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#298468;margin-left:6px}.legend i.old{background:#929a95}.actions{position:absolute;z-index:750;right:22px;bottom:40px;display:flex;gap:8px}.actions button{box-shadow:0 3px 15px #193d3822}.login-wrap{position:absolute;inset:110px 0 60px;z-index:900;display:flex;align-items:center;justify-content:center;pointer-events:none;padding:16px;overflow:auto}.login{pointer-events:auto;width:400px;max-width:100%;padding:28px}.eyebrow{font-size:10px;letter-spacing:3px;color:#43846c}.login h2{font-size:25px;margin-top:12px}.login p{font-size:14px;color:#728177;line-height:1.7}label{display:block;font-size:13px;margin:15px 0}input:not([type=checkbox]){display:block;width:100%;padding:12px;border:1px solid #d6e1d9;border-radius:9px;margin-top:7px;background:white}.consent{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.7}.consent input{margin-top:4px}.primary{background:#276e56;color:white;width:100%;border:0;padding:13px}.primary:hover{background:#205c47}details{font-size:12px;margin-top:18px}.login small{font-size:11px;color:#879288;line-height:1.7}#login-error{color:#ab463d}.person-marker{background:none;border:0}.avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#287e60;color:white;border:3px solid white;box-shadow:0 3px 10px #18392b44;font-weight:700}.person-marker.old .avatar{background:#89938c}.person-name{position:absolute;top:44px;left:20px;transform:translateX(-50%);background:white;border-radius:6px;box-shadow:0 2px 9px #18392b22;padding:4px 9px;font:600 12px system-ui;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}.tile-status{position:absolute;z-index:800;bottom:85px;right:20px;padding:12px;max-width:300px;font-size:12px}.leaflet-top{top:120px}.leaflet-popup-content{white-space:pre-line}@media(max-width:600px){header{top:10px;left:10px;right:10px;padding:12px}.logo{width:36px;height:36px}h1{font-size:17px}header p{display:none}nav{gap:10px;font-size:12px}nav button{padding:7px}.members{top:auto;bottom:30px;left:10px;width:240px;max-height:30dvh;padding:12px}.actions{right:10px;bottom:40px;flex-direction:column}.login-wrap{inset:82px 0 28px;align-items:flex-start}.login{padding:22px}.leaflet-top{top:92px}.tile-status{bottom:36dvh;left:10px;right:10px}.brand{gap:8px}}

/* Compact header and bottom-right app download. */
header{top:12px;left:12px;right:auto;max-width:calc(100% - 24px);padding:8px 12px;gap:20px;border-radius:12px}
.brand{gap:8px}.logo{width:30px;height:30px;border-radius:9px;font-size:17px}h1{font-size:16px}header p{display:none}nav{gap:12px}nav button{padding:6px 10px}
.members{top:76px;max-height:calc(100dvh - 111px)}.leaflet-top{top:76px}.login-wrap{top:76px;bottom:100px}
.actions{bottom:max(40px,env(safe-area-inset-bottom));align-items:stretch}.actions .download-app{display:flex;align-items:center;justify-content:center;border:1px solid #256f57;border-radius:10px;padding:10px 14px;background:#256f57;color:white;box-shadow:0 3px 15px #193d3822;white-space:nowrap}.actions .download-app:hover{background:#205c47}
@media(max-width:600px){header{top:10px;left:10px;max-width:calc(100% - 20px);padding:7px 10px;gap:16px}.logo{width:28px;height:28px;font-size:16px}h1{font-size:15px}.members{top:auto;width:min(240px,calc(100% - 134px));max-height:30dvh}.leaflet-top{top:68px}.login-wrap{top:68px;bottom:190px}.actions{gap:6px;font-size:13px}.actions button,.actions .download-app{min-height:44px;padding:9px 12px}}

/* Small screens: reserve a full-width bottom bar and keep forms scrollable. */
input:not([type=checkbox]){font-size:16px}.login-wrap{overscroll-behavior:contain}.login{flex-shrink:0}.actions a,.actions button,nav a,nav button{min-height:44px;display:flex;align-items:center;justify-content:center}
@media(max-width:600px){.actions{left:10px;right:10px;bottom:calc(22px + env(safe-area-inset-bottom,0px));flex-direction:row}.actions>*{flex:1}.members{left:10px;right:10px;width:auto;bottom:calc(80px + env(safe-area-inset-bottom,0px));max-height:30vh;max-height:30dvh}.login-wrap{top:76px;bottom:86px;padding:10px;align-items:flex-start}.login{padding:18px}.login h2{font-size:23px}.tile-status{bottom:calc(32vh + 85px)}header{gap:10px}.brand{flex-shrink:0}nav{gap:8px}}

/* AMap markers and attribution remain visible on all screen sizes. */
.person-marker{position:relative;width:40px;height:40px}.family-popup{white-space:pre-line;font:13px/1.6 system-ui}.amap-copyright{font-size:10px}.tile-status button{padding:6px 10px;min-height:44px}
