:root{--navy:#062b5b;--blue:#0c63d6;--bg:#f4f7fb;--card:#fff;--text:#142033;--muted:#687386;--border:#dbe2ea;--green:#15803d;--danger:#b42318;--shadow:0 12px 30px rgba(8,30,58,.14)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input{font:inherit}button{touch-action:manipulation}.screen{display:none;min-height:100vh}.screen.active{display:block}.hidden{display:none!important}
.login-screen{background:linear-gradient(160deg,#062b5b 0 34%,#f4f7fb 34%)}.login-shell{max-width:430px;margin:auto;padding:72px 22px 40px}.brand-mark{width:82px;height:82px;border-radius:24px;background:white;color:var(--navy);display:grid;place-items:center;font-size:26px;font-weight:900;box-shadow:var(--shadow);margin-bottom:20px}.login-shell h1{margin:0;color:#fff;font-size:30px}.subtext{color:#dbe8f7;margin:8px 0 28px}.login-card{background:#fff;border-radius:22px;padding:22px;box-shadow:var(--shadow)}label{display:block;font-size:13px;font-weight:700;margin:0 0 7px;color:#374151}.login-card input,.address-editor input{width:100%;height:48px;border:1px solid var(--border);border-radius:12px;padding:0 14px;font-size:16px;background:#fff}.login-card label:not(:first-child){margin-top:16px}.password-wrap{position:relative}.password-wrap input{padding-right:60px}.text-button{position:absolute;right:8px;top:5px;height:38px;border:0;background:none;color:var(--blue);font-weight:700}.primary-button{width:100%;min-height:50px;border:0;border-radius:14px;background:var(--navy);color:white;font-weight:800;font-size:16px;padding:0 18px}.login-card .primary-button{margin-top:12px}.error-text{min-height:20px;color:var(--danger);font-size:13px}.login-footer{text-align:center;color:var(--muted);font-size:12px;margin-top:20px}
.map-screen{background:#dfe7ef;overflow:hidden}.topbar{height:64px;padding:env(safe-area-inset-top) 14px 0;display:flex;align-items:center;gap:10px;background:var(--navy);color:#fff;position:relative;z-index:10}.brand-mini{font-weight:900;border:2px solid #fff;border-radius:8px;padding:5px 7px;font-size:12px}.topbar-title{flex:1;font-weight:800}.icon-button{width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:24px;border-radius:50%}.icon-button.dark{color:var(--text)}.setup-notice{position:absolute;z-index:40;left:12px;right:12px;top:76px;background:#fff4d8;border:1px solid #f4c95d;border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);font-size:13px}.setup-notice strong,.setup-notice span{display:block}.setup-notice span{margin-top:3px;color:#5f4a16}
.map-stage{position:relative;height:calc(100vh - 64px);min-height:520px;background:#d9e1e9}.geo-view{position:absolute;inset:0;display:block}.map-overlay-card{position:absolute;z-index:15;left:50%;top:50%;transform:translate(-50%,-50%);width:min(84%,320px);background:rgba(255,255,255,.96);border-radius:18px;padding:18px;text-align:center;box-shadow:var(--shadow)}.map-overlay-card strong,.map-overlay-card span{display:block}.map-overlay-card span{margin-top:5px;font-size:13px;color:var(--muted)}.spinner{width:28px;height:28px;border:3px solid #d7e2ef;border-top-color:var(--blue);border-radius:50%;margin:0 auto 10px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.map-message{position:absolute;z-index:18;left:12px;right:12px;top:16px;background:#fff;border-radius:12px;padding:12px;box-shadow:var(--shadow);font-size:13px}.floating-icon{position:absolute;z-index:18;right:16px;bottom:92px;width:48px;height:48px;border-radius:50%;border:0;background:#fff;color:var(--navy);font-size:24px;box-shadow:var(--shadow)}.select-property-button{position:absolute;z-index:18;left:16px;right:76px;bottom:92px;height:50px;border:0;border-radius:14px;background:var(--navy);color:#fff;font-weight:800;box-shadow:var(--shadow)}
.property-sheet{position:absolute;z-index:30;left:0;right:0;bottom:0;max-height:83%;overflow:auto;background:#f8fafc;border-radius:24px 24px 0 0;box-shadow:0 -12px 35px rgba(8,30,58,.22);padding:8px 16px calc(18px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .22s ease}.property-sheet.open{transform:translateY(0)}.sheet-handle{width:44px;height:5px;border-radius:99px;background:#c8d0da;margin:2px auto 10px}.sheet-head{display:flex;gap:10px;align-items:flex-start}.sheet-head>div{flex:1;min-width:0}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;color:var(--blue);margin:0 0 3px}.sheet-head h2{font-size:19px;line-height:1.25;margin:0}.coords-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 14px;color:var(--muted);font-size:12px}.link-button{border:0;background:transparent;color:var(--blue);font-weight:800;padding:8px}.address-editor{background:#fff;border:1px solid var(--border);border-radius:16px;padding:12px;margin-bottom:14px}.house-row{display:flex;gap:10px}.house-row>div:first-child{width:132px}.grow{flex:1;min-width:0}.stepper{display:grid;grid-template-columns:38px 1fr 38px}.stepper button{border:1px solid var(--border);background:#f7f9fc;font-weight:900}.stepper button:first-child{border-radius:10px 0 0 10px}.stepper button:last-child{border-radius:0 10px 10px 0}.stepper input{border-radius:0!important;text-align:center}.address-grid{display:grid;grid-template-columns:1.5fr .7fr 1fr;gap:8px;margin-top:10px}.section-title-row{display:flex;justify-content:space-between;align-items:end;margin:10px 0}.section-title-row h3{margin:0;font-size:17px}.section-title-row span{font-size:11px;color:var(--muted)}.toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.data-toggle{min-height:70px;border:1px solid var(--border);border-radius:15px;background:#fff;padding:10px;display:grid;grid-template-columns:34px 1fr 32px;gap:8px;align-items:center;text-align:left;color:var(--text)}.data-toggle .emoji{font-size:22px}.data-toggle strong,.data-toggle small{display:block}.data-toggle strong{font-size:13px}.data-toggle small{font-size:10px;color:var(--muted);margin-top:2px}.switch{width:30px;height:18px;background:#ccd5df;border-radius:20px;position:relative}.switch:after{content:"";position:absolute;width:14px;height:14px;background:#fff;border-radius:50%;left:2px;top:2px;transition:left .16s}.data-toggle.selected{border-color:#84aef0;background:#eef5ff}.data-toggle.selected .switch{background:var(--blue)}.data-toggle.selected .switch:after{left:14px}.submit-button{margin-top:14px}.status-message{min-height:18px;text-align:center;font-size:12px;color:var(--green);font-weight:700}
@media(max-width:360px){.toggle-grid{grid-template-columns:1fr}.address-grid{grid-template-columns:1fr 70px 1fr}.select-property-button{right:70px}}
@media(min-width:800px){.property-sheet{left:auto;width:430px;top:64px;max-height:none;border-radius:0;transform:translateX(105%)}.property-sheet.open{transform:translateX(0)}.select-property-button{left:24px;right:auto;width:300px}.floating-icon{right:auto;left:336px}.map-stage{height:calc(100vh - 64px)}}

.topbar-title{display:flex;flex-direction:column;min-width:0}.topbar-title small{font-size:11px;color:#c9d8ea;text-transform:capitalize;margin-top:2px}
.forgot-button{width:100%;border:0;background:transparent;color:var(--blue);font-weight:700;padding:14px 0 4px}
.notes-label{margin-top:14px}.property-sheet textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:12px;font:inherit;resize:vertical;background:#fff}
.users-screen{background:var(--bg)}.users-shell{max-width:720px;margin:0 auto;padding:18px}.users-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px;margin-bottom:14px}.users-card h2,.users-card h3{margin:0 0 8px}.muted{color:var(--muted);font-size:13px;line-height:1.45}.users-list{margin-top:14px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-top:1px solid var(--border)}.user-row:first-child{border-top:0}.user-row strong,.user-row small{display:block}.user-row small{text-transform:capitalize;color:var(--muted);margin-top:3px}.status-pill{font-size:11px;font-weight:800;border-radius:99px;padding:6px 9px}.status-pill.active{background:#e8f6ed;color:#166534}.status-pill.disabled{background:#f3f4f6;color:#6b7280}
