:root{--bg: #0d1117;--panel: #151b23;--panel-2: #1c2430;--border: #2a3441;--text: #e6edf3;--muted: #8b98a5;--primary: #3b82f6;--primary-2: #2563eb;--danger: #ef4444;--orange: #f97316;--warn: #eab308;--ok: #22c55e;--info: #06b6d4;--purple: #a855f7;--radius: 10px;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:1.45rem;margin:.2rem 0}h3{margin:0 0 .75rem;font-size:1rem}h4{margin:1rem 0 .4rem;font-size:.9rem;color:var(--muted)}.muted{color:var(--muted)}.text-danger{color:var(--danger)}.mono{font-family:ui-monospace,Consolas,monospace;font-size:12px;color:var(--muted);max-width:380px;word-break:break-all}.pre{white-space:pre-wrap}.splash{display:grid;place-items:center;height:100%;color:var(--muted)}input,select,textarea{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font:inherit;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid var(--primary);outline-offset:-1px}textarea{resize:vertical;width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--panel-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 14px;font:inherit;font-weight:500;cursor:pointer;white-space:nowrap}.btn:hover:not(:disabled){filter:brightness(1.2);text-decoration:none}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-ok{background:var(--ok);border-color:var(--ok);color:#04210f}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-warn{background:var(--warn);border-color:var(--warn);color:#241c00}.btn-ghost{background:transparent}.btn-sm{padding:4px 9px;font-size:13px}.btn-lg{padding:12px 20px;font-size:16px}.btn-block{width:100%}.btn-icon{background:none;border:0;color:var(--muted);font-size:18px;cursor:pointer}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid transparent}.badge-danger{background:#ef444426;color:#fca5a5;border-color:#ef444455}.badge-orange{background:#f9731626;color:#fdba74;border-color:#f9731655}.badge-warn{background:#eab30822;color:#fde047;border-color:#eab30855}.badge-ok{background:#22c55e22;color:#86efac;border-color:#22c55e55}.badge-info{background:#06b6d422;color:#67e8f9;border-color:#06b6d455}.badge-purple{background:#a855f722;color:#d8b4fe;border-color:#a855f755}.badge-muted{background:#8b98a522;color:var(--muted);border-color:#8b98a544}.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}.app{display:grid;grid-template-columns:220px 1fr;min-height:100%}.sidebar{background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:16px;font-weight:700;font-size:18px}.sidebar nav{display:flex;flex-direction:column;padding:4px 8px;gap:2px;flex:1;overflow:auto}.sidebar nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;color:var(--muted)}.sidebar nav a:hover{background:var(--panel-2);color:var(--text);text-decoration:none}.sidebar nav a.active{background:#3b82f622;color:var(--text)}.nav-icon{width:20px;text-align:center}.sidebar-foot{padding:12px 16px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.me{display:flex;flex-direction:column}.me small,.conn{color:var(--muted);font-size:12px}.conn{display:flex;align-items:center;gap:4px}.content{padding:24px 24px 100px;min-width:0}.page{display:flex;flex-direction:column;gap:16px;max-width:1400px}.page.narrow{max-width:720px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:var(--muted)}.dot-registered{background:var(--ok);box-shadow:0 0 6px var(--ok)}.dot-connecting,.dot-connected{background:var(--warn)}.dot-error{background:var(--danger)}.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:baseline}.grid-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}.grid-2.reverse{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}.grid-2.tight{grid-template-columns:1fr 1fr;gap:12px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid-dash{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:16px;align-items:start}.span-2{grid-column:span 2}.row{display:flex;gap:8px;align-items:center}.row.wrap{flex-wrap:wrap}.empty{color:var(--muted);padding:24px;text-align:center;border:1px dashed var(--border);border-radius:var(--radius)}.error-box{background:#ef444420;border:1px solid #ef444466;color:#fecaca;padding:10px 12px;border-radius:8px}.form{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:13px;color:var(--muted);font-weight:500}.check{display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--muted)}.check input,.filters .check input{flex:none;width:18px;height:18px;padding:0;margin:0}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filters input{flex:1 1 240px}.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px}.stat.clickable{cursor:pointer}.stat.clickable:hover{border-color:var(--primary)}.stat-value{font-size:1.8rem;font-weight:700}.stat-label{color:var(--muted);font-size:13px}.stat-hint{color:var(--muted);font-size:12px;margin-top:2px}.stat-danger{border-color:var(--danger);background:#ef444418}.stat-danger .stat-value{color:#fca5a5}.stat-warn .stat-value{color:#fde047}.stat-ok .stat-value{color:#86efac}.bars{display:flex;flex-direction:column;gap:8px}.bar-row{display:grid;grid-template-columns:150px 1fr 36px;gap:8px;align-items:center;font-size:13px}.bar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-track{background:var(--panel-2);border-radius:6px;height:12px;overflow:hidden}.bar-fill{height:100%;border-radius:6px}.bar-value{text-align:right;color:var(--muted)}.bg-primary{background:var(--primary)}.bg-danger{background:var(--danger)}.bg-orange{background:var(--orange)}.bg-warn{background:var(--warn)}.bg-ok{background:var(--ok)}.bg-info{background:var(--info)}.bg-purple{background:var(--purple)}.bg-muted{background:var(--muted)}.day-chart{display:flex;gap:6px;align-items:flex-end;height:160px;padding-top:16px}.day-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}.day-bar{width:100%;max-width:36px;background:var(--primary);border-radius:4px 4px 0 0;min-height:2px}.day-label,.day-val{font-size:11px;color:var(--muted)}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--panel)}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}.table td{white-space:nowrap}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:var(--panel-2);white-space:nowrap}.table tr:last-child td{border-bottom:0}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td{background:var(--panel-2)}.cell-title{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-actions{white-space:nowrap;text-align:right}.row-sos td:first-child,.row-alerta_seguridad td:first-child{box-shadow:inset 3px 0 0 var(--danger)}.type-chips{display:flex;gap:8px;flex-wrap:wrap}.chip{background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:999px;padding:6px 12px;cursor:pointer;font:inherit}.chip.active{background:var(--primary);border-color:var(--primary);color:#fff}.feed{display:flex;flex-direction:column;gap:8px}.feed-item{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:10px 12px;background:var(--panel-2);border:1px solid var(--border);border-radius:8px;cursor:pointer}.feed-item:hover{border-color:var(--primary)}.feed-item.row-sos{border-color:var(--danger);background:#ef444414;animation:pulse-border 1.5s infinite}.feed-item.row-alerta_seguridad{border-color:var(--orange)}.feed-icon{font-size:24px;text-align:center}.feed-title{font-weight:600}.feed-meta{color:var(--muted);font-size:13px}.feed-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}@keyframes pulse-border{50%{box-shadow:0 0 0 3px #ef444455}}.nov-quick{display:flex;gap:6px;margin-bottom:12px}.nov-quick input{flex:1}.nov-list{display:flex;flex-direction:column;gap:10px}.nov-item{display:flex;gap:10px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid var(--border)}.nov-item:last-child{border-bottom:0}.house-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.house-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:8px}.house-card.inactive{opacity:.55}.house-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.house-code{font-size:1.15rem;font-weight:700}.resident-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.resident-list li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;background:var(--panel-2);border-radius:6px}.timeline{display:flex;flex-direction:column;gap:12px;max-height:60vh;overflow:auto;padding-right:4px}.tl-item{display:flex;gap:10px}.tl-icon{width:30px;height:30px;flex:none;border-radius:50%;background:var(--panel-2);display:grid;place-items:center;font-size:14px}.tl-body{flex:1;background:var(--panel-2);border-radius:8px;padding:8px 12px}.tl-comentario .tl-body{background:#3b82f614;border:1px solid #3b82f633}.tl-meta{font-size:13px}.tl-msg{white-space:pre-wrap;margin-top:2px}.comment-form{display:flex;flex-direction:column;gap:8px;margin-top:12px;align-items:flex-end}.details{display:grid;grid-template-columns:110px 1fr;gap:8px 12px;margin:0}.details dt{color:var(--muted);font-size:13px}.details dd{margin:0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.actions-box{border-top:1px solid var(--border);margin-top:16px;display:flex;flex-direction:column;gap:10px}.type-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.type-option{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border-radius:10px;border:2px solid var(--border);background:var(--panel-2);color:var(--text);cursor:pointer;font:inherit}.type-option.active{border-color:var(--primary);background:#3b82f622}.type-option.type-sos.active{border-color:var(--danger);background:#ef444422}.type-icon{font-size:26px}.resident-home{align-items:stretch;max-width:640px;margin:0 auto}.hello h1{font-size:1.6rem}.sos-button{align-self:center;width:210px;height:210px;border-radius:50%;border:0;cursor:pointer;color:#fff;background:radial-gradient(circle at 35% 30%,#ff6b6b,#dc2626 60%,#991b1b);box-shadow:0 0 0 10px #ef444426,0 0 0 22px #ef444412,0 12px 30px #0008;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .1s}.sos-button:active{transform:scale(.96)}.sos-button span{font-size:56px;font-weight:900;letter-spacing:2px}.sos-button small{font-size:15px;opacity:.9}.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.quick{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 10px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-align:center;cursor:pointer;font:inherit}.quick:hover:not(:disabled){border-color:var(--primary);text-decoration:none}.quick:disabled{opacity:.5;cursor:not-allowed}.quick.type-alerta_seguridad{border-color:#f9731666}.quick.type-call{border-color:#22c55e66}.card-list{display:flex;flex-direction:column;gap:8px}.ticket-card{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;padding:10px 12px;cursor:pointer}.ticket-card:hover{border-color:var(--primary)}.ticket-card-top{display:flex;justify-content:space-between;gap:8px}.ticket-card-title{font-weight:600;margin:6px 0 2px}.phone-fab{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:50%;border:0;font-size:24px;cursor:pointer;background:var(--panel-2);box-shadow:0 6px 18px #0009;z-index:40;border:3px solid var(--muted)}.phone-fab.status-registered{border-color:var(--ok)}.phone-fab.status-error{border-color:var(--danger)}.phone-fab.status-connecting{border-color:var(--warn)}.phone-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40}.phone-panel{position:fixed;right:20px;bottom:90px;width:300px;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 30px #000a;z-index:41}.phone-panel.in-call{bottom:20px;border-color:var(--ok);text-align:center}.phone-head{display:flex;align-items:center;gap:6px}.dial-form{display:flex;gap:6px}.dial-form input{flex:1;font-size:18px;letter-spacing:1px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.key{padding:10px;font-size:18px;border-radius:8px;background:var(--panel-2);color:var(--text);border:1px solid var(--border);cursor:pointer}.key:active{background:var(--primary)}.call-remote{font-size:1.2rem;font-weight:700}.call-state{color:var(--muted);font-variant-numeric:tabular-nums}.call-actions{display:flex;gap:6px;justify-content:center}.incoming-call{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}.incoming-pulse{font-size:64px;animation:ring .6s infinite alternate}.incoming-label{color:var(--muted)}.incoming-remote{font-size:1.8rem;font-weight:700;text-align:center;padding:0 16px}.incoming-actions{display:flex;gap:16px;margin-top:12px}@keyframes ring{0%{transform:rotate(-12deg) scale(1)}to{transform:rotate(12deg) scale(1.08)}}.sos-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#450a0acc;display:flex;align-items:center;justify-content:center;padding:16px;animation:flash 1s infinite}@keyframes flash{50%{background:#7f1d1dee}}.sos-box{background:var(--panel);border:2px solid var(--danger);border-radius:16px;padding:20px;width:min(640px,100%);max-height:90vh;overflow:auto;display:flex;flex-direction:column;gap:12px}.sos-box h2{margin:0;color:#fca5a5}.sos-item{display:flex;gap:12px;justify-content:space-between;padding:12px;border-radius:10px;background:var(--panel-2);border:1px solid var(--border);flex-wrap:wrap}.sos-item.sos-sos{border-color:var(--danger)}.sos-item.sos-alerta_seguridad{border-color:var(--orange)}.sos-type{font-weight:700;color:#fca5a5}.sos-house{font-size:1.6rem;font-weight:800}.sos-actions{display:flex;flex-direction:column;gap:8px;justify-content:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000a;z-index:70;display:flex;align-items:center;justify-content:center;padding:16px}.modal{background:var(--panel);border:1px solid var(--border);border-radius:14px;width:min(520px,100%);max-height:92vh;display:flex;flex-direction:column}.modal-wide{width:min(820px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border)}.modal-head h3{margin:0}.modal-body{padding:16px;overflow:auto;display:flex;flex-direction:column;gap:12px}.modal-foot{padding:12px 16px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.toasts{position:fixed;top:16px;right:16px;z-index:80;display:flex;flex-direction:column;gap:8px;width:min(360px,calc(100vw - 32px))}.toast{background:var(--panel-2);border:1px solid var(--border);border-left:4px solid var(--info);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;cursor:pointer;box-shadow:0 6px 18px #0008}.toast-ok{border-left-color:var(--ok)}.toast-error{border-left-color:var(--danger)}.login-page{min-height:100%;display:grid;place-items:center;padding:16px;background:radial-gradient(circle at 50% 0%,#1e3a5f55,transparent 60%)}.login-card{width:min(380px,100%);background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:14px}.login-brand{text-align:center}.login-brand h1{font-size:1.8rem;margin:8px 0 2px}.login-brand p{margin:0}.spinner{display:inline-block;width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}.upload-status{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-bottom:10px;border-radius:8px;background:#3b82f614;border:1px solid #3b82f633;font-size:13px}.att-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}.att{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:var(--panel-2);padding:0;cursor:pointer;color:var(--muted);font:inherit;font-size:12px}.att img{width:100%;height:100%;object-fit:cover;display:block}.att:hover{border-color:var(--primary)}.att-procesando,.att-error{cursor:default}.att-error{border-color:#ef444466}.att-state{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:6px;text-align:center}.att-badge{position:absolute;left:6px;bottom:6px;padding:2px 7px;border-radius:999px;background:#000b;color:#fff;font-size:11px;font-weight:600}.att-empty{margin:0;font-size:13px}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;background:#000e;display:flex;flex-direction:column}.lightbox-media{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px}.lightbox-media img,.lightbox-media video{max-width:100%;max-height:100%;border-radius:8px;background:#000}.lightbox-bar{display:flex;align-items:center;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--border)}.lightbox-info{flex:1;min-width:0;display:flex;flex-direction:column}.lightbox-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-picks{display:flex;flex-wrap:wrap;gap:8px}.file-pick,.file-add{position:relative;width:84px;height:84px;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:var(--panel-2)}.file-pick img,.file-pick video{width:100%;height:100%;object-fit:cover}.file-pick-x{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;border:0;background:#000c;color:#fff;cursor:pointer;font-size:12px}.file-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-style:dashed;color:var(--muted);cursor:pointer;font:inherit}.file-add span{font-size:24px}.file-add:hover:not(:disabled){border-color:var(--primary);color:var(--text)}.col{display:flex;flex-direction:column;gap:16px;min-width:0}.topbar,.bottom-nav,.only-mobile{display:none}.ticket-card-meta{display:block;margin-top:2px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:45;background:#000a;display:flex;align-items:flex-end;animation:fade-in .15s ease-out}.sheet{width:100%;background:var(--panel);border-top:1px solid var(--border);border-radius:18px 18px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:85vh;overflow:auto;animation:slide-up .2s ease-out}.sheet-handle{width:40px;height:4px;border-radius:4px;background:var(--border);align-self:center;margin-bottom:4px}.sheet-user{display:flex;flex-direction:column;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--border)}.sheet-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sheet-nav a{display:flex;align-items:center;gap:10px;padding:14px 12px;border-radius:10px;background:var(--panel-2);color:var(--text);border:1px solid var(--border)}.sheet-nav a.active{border-color:var(--primary);background:#3b82f622}.sheet-nav a:hover{text-decoration:none}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:none}}@keyframes fade-in{0%{opacity:0}}@media (max-width: 1100px){.grid-3,.grid-dash,.grid-2,.grid-2.reverse{grid-template-columns:1fr}}@media (max-width: 760px){:root{--nav-h: 62px}html{-webkit-text-size-adjust:100%}body{font-size:15px}input,select,textarea{font-size:16px;padding:10px 12px}.btn{padding:10px 14px}.btn-sm{padding:6px 10px}.only-mobile{display:flex}.only-desktop{display:none!important}.app{display:block}.sidebar{display:none}.topbar{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:30;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:color-mix(in srgb,var(--panel) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.topbar-title{display:flex;flex-direction:column;line-height:1.2;min-width:0;flex:1}.topbar-title small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-phone{display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:var(--panel-2);border:1px solid var(--border);color:var(--text);font-size:17px;cursor:pointer}.topbar-phone.status-registered{border-color:#22c55e88}.topbar-phone.status-error{border-color:#ef444488}.bottom-nav{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:35;background:color-mix(in srgb,var(--panel) 96%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:var(--nav-h);padding:6px 2px;background:none;border:0;color:var(--muted);font:inherit;font-size:11px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}.bottom-nav a:hover{text-decoration:none}.bottom-nav .active{color:var(--text)}.bn-icon{font-size:20px;line-height:1;padding:4px 16px;border-radius:999px;transition:background .15s}.bottom-nav .active .bn-icon{background:#3b82f633}.content{padding:16px 14px calc(var(--nav-h) + 84px + env(safe-area-inset-bottom))}.conn-label{font-size:12px}.page{gap:14px}h1{font-size:1.3rem}.page-head{align-items:center}.page-head>div{min-width:0}.page-head h1{overflow-wrap:anywhere}.panel{padding:14px}.grid-2.tight{grid-template-columns:1fr}.span-2{grid-column:auto}.filters{display:grid;grid-template-columns:1fr 1fr}.filters input,.filters .check{grid-column:1 / -1}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat{padding:10px}.stat-value{font-size:1.4rem}.stat-label{font-size:12px;line-height:1.25}.stat-hint{font-size:11px}.type-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:0 14px 4px;scrollbar-width:none}.type-chips::-webkit-scrollbar{display:none}.chip{flex:none}.bar-row{grid-template-columns:112px minmax(0,1fr) 28px}.day-chart{gap:3px;height:130px}.day-label{font-size:10px}.feed-item{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:10px}.feed-icon{font-size:22px}.feed-side{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center}.feed-side .row{margin-left:auto}.nov-quick select{max-width:110px}.ticket-grid{display:flex;flex-direction:column}.ticket-grid>aside{order:-1}.col{gap:14px}.att-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lightbox-media{padding:0}.lightbox-media img,.lightbox-media video{border-radius:0}.timeline{max-height:none}.comment-form .btn{width:100%}.details{grid-template-columns:100px minmax(0,1fr)}.actions-box .row:not(.wrap){flex-wrap:wrap}.actions-box .row select{flex:1}.actions-box .row.wrap .btn{flex:1 1 40%}.type-picker{grid-template-columns:repeat(2,1fr)}.type-picker .type-option:first-child{grid-column:1 / -1}.table.stack thead{display:none}.table.stack,.table.stack tbody,.table.stack tr,.table.stack td{display:block;width:100%}.table.stack tr{padding:12px 14px;border-bottom:1px solid var(--border)}.table.stack tr:last-child{border-bottom:0}.table.stack td{border:0;padding:3px 0;white-space:normal;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:right;overflow-wrap:anywhere}.table.stack td:before{content:attr(data-label);color:var(--muted);font-size:13px;text-align:left;flex:none}.table.stack td.cell-head{display:block;text-align:left;font-size:16px;padding-bottom:6px}.table.stack td.cell-head:before,.table.stack td.row-actions:before{display:none}.table.stack td.row-actions{justify-content:flex-end;padding-top:8px}.table.stack td.mono{max-width:none}.house-grid{grid-template-columns:1fr}.resident-home{gap:18px}.hello p{display:none}.sos-button{width:min(58vw,220px);height:min(58vw,220px);margin:8px 0}.sos-button span{font-size:clamp(40px,13vw,56px)}.quick-actions{grid-template-columns:1fr 1fr}.quick{padding:14px 8px;font-size:14px}.quick.type-call{grid-column:1 / -1;flex-direction:row;justify-content:center;gap:10px}.quick.type-call .type-icon{font-size:22px}.phone-fab{display:none}.phone-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0007}.phone-panel{left:8px;right:8px;width:auto;top:calc(58px + env(safe-area-inset-top));bottom:auto;max-height:calc(100vh - 150px);overflow:auto}.phone-panel.in-call{top:auto;bottom:calc(var(--nav-h) + 8px + env(safe-area-inset-bottom))}.key{padding:12px}.incoming-actions .btn{min-width:130px}.sos-overlay{padding:10px}.sos-box{max-height:none;padding:16px}.sos-item{flex-direction:column}.sos-actions{flex-direction:row}.sos-actions .btn{flex:1}.modal-backdrop{align-items:flex-end;padding:0}.modal,.modal-wide{width:100%;max-height:92vh;border-radius:18px 18px 0 0;animation:slide-up .2s ease-out}.modal-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.modal-foot .btn{flex:1}.toasts{top:calc(64px + env(safe-area-inset-top));left:12px;right:12px;width:auto}.login-card{padding:22px}}@media (max-width: 360px){.bn-icon{padding:4px 10px}.bottom-nav a,.bottom-nav button{font-size:10px}.stats{grid-template-columns:1fr 1fr}.details{grid-template-columns:1fr}}
