:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183a31;background:#f3f5f0;font-synthesis:none;--green:#176650;--muted:#6b7a72}
.portal .brand{justify-content:space-between;gap:12px;padding-bottom:10px;flex-wrap:wrap}.brand-title{display:flex;align-items:center;gap:10px}.brand-title img{width:40px;height:40px}.brand-title .eyebrow{font-size:10px;letter-spacing:1px}
.brand .connection{border:0;background:transparent;padding:5px 0;min-height:44px;max-width:165px;margin-left:auto;color:var(--green);font-size:11px}.brand .connection:disabled{opacity:1;cursor:default}.connection-pill{display:flex;align-items:center;gap:7px;border-radius:30px;background:#e2eddf;padding:8px 11px;text-align:left;font-weight:650}.connection.blocked .connection-pill{background:#f9e9e5;color:#a23338}.connection-dot{width:7px;height:7px;border-radius:50%;flex:none;background:#b23e39}.connection[data-state=ready] .connection-dot{background:#198251}.connection[data-state=setup] .connection-dot{background:#bd8213}.connection.online:before{display:none!important}
.portal .identity{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:0 0 16px}.identity-building{min-width:0}.identity-building .eyebrow{text-transform:uppercase}.identity-building>strong{display:block;font-size:18px;line-height:1.35}.identity h1{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:7px;min-width:0;font-size:25px;letter-spacing:-.6px;line-height:1.2;text-align:right;margin:0!important}.identity.apartment h1{font-size:34px;letter-spacing:-1px}.identity #subject-kind{font-size:16px;letter-spacing:0;font-weight:650}
.portal-settings{border-top:1px solid #dce4d8;padding-top:22px;margin-top:24px}.portal-settings>h2{font-size:21px;margin:0 0 16px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px}.settings-grid>div{min-width:0}.settings-tile{width:100%;height:100%;min-height:125px;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:16px;border:1px solid #d8e1d4;border-radius:18px;background:white;color:#183a31}.settings-tile[aria-pressed=true]{background:#e8efe3}.tile-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px;color:var(--green)}.tile-top>svg{width:21px;height:21px;flex:none}.tile-chevron{font-size:25px;line-height:20px;color:var(--muted)}.settings-tile>strong{font-size:14px;line-height:1.35;margin-top:auto;font-weight:650;overflow-wrap:anywhere}.tile-status{font-size:11px;line-height:1.45;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.tile-switch{display:block;width:29px;height:17px;padding:3px;border-radius:20px;background:#c7d3c5;flex:none}.tile-switch:after{content:"";display:block;width:11px;height:11px;background:white;border-radius:50%}.settings-tile[aria-pressed=true] .tile-switch{background:var(--green)}.settings-tile[aria-pressed=true] .tile-switch:after{transform:translateX(12px)}.settings-feedback{font-size:12px;color:var(--muted);line-height:1.5;margin:14px 0 0}.settings-feedback:empty{display:none}
.portal-detail-dialog{background:white;overscroll-behavior:contain}.portal-detail-dialog .dialog-heading{margin-bottom:15px}.portal-detail-dialog .primary{justify-content:center}.connection-details{margin:18px 0}.connection-details>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dce4d8;padding:12px 0;font-size:13px}.connection-details dt{font-weight:400}.connection-details dd{margin:0;color:var(--muted);text-align:right}.monitor-manage-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;border-top:1px solid #dce4d8;padding-top:16px;margin-top:16px}#monitor-dialog .monitor-manage-actions button{width:100%;min-height:48px}.portal-detail-dialog .signed-record:first-child{border:0;margin-top:0;padding-top:0}
.foreground-events{position:fixed;z-index:50;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:512px;display:flex;gap:10px;align-items:flex-start;border:1px solid #cbd7c9;border-radius:16px;background:#fff;padding:14px 12px 14px 16px;box-shadow:0 8px 30px #183a3122}.foreground-events p{margin:0;font-size:13px;line-height:1.5}.foreground-events p+p{border-top:1px solid #dce4d8;margin-top:9px;padding-top:9px}.foreground-events>button{background:transparent;border:0;color:var(--green);min-width:44px;min-height:44px;font-size:25px;margin-left:auto}
@media(max-width:370px){.portal .brand{gap:5px}.brand-title{gap:7px}.brand-title img{width:34px;height:36px}.brand-title strong{font-size:18px}.brand-title .eyebrow{letter-spacing:0}.brand .connection{max-width:135px}.settings-tile{padding:13px;min-height:119px}.settings-tile>strong{font-size:13px}.identity.apartment h1{font-size:30px}.identity #subject-kind{font-size:14px}.identity-building>strong{font-size:16px}}
#foreground-event-items{min-width:0;overflow-wrap:anywhere}
.monitor-resident-actions,#monitor-dialog .monitor-settings-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}
html.portal-dialog-open{overflow:hidden;overscroll-behavior:none}
html.portal-dialog-open body{position:fixed;top:var(--portal-scroll-top);left:var(--portal-scroll-left);width:100%;padding-right:var(--portal-scrollbar);overflow:hidden;overscroll-behavior:none}
#monitor-dialog{width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:22px;border:1px solid #d8dfdb;border-radius:18px;color:#183a31;background:#fff}
#monitor-dialog h2{font-size:22px;margin:0 0 16px;overflow-wrap:anywhere}
#monitor-dialog .monitor-settings-actions button,#monitor-dialog .monitor-resident-actions button{width:100%;min-height:48px;justify-content:center}
#monitor-dialog .primary{justify-content:center}
#monitor-dialog::backdrop{background:#14271d77}
.monitor-danger{color:#a23338;border-color:#d8b9b8}.primary.monitor-danger{background:#a23338;color:#fff}
*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.48;cursor:default}.resident-app :focus,.resident-app :focus-visible{outline:none!important;box-shadow:none!important}[hidden]{display:none!important}
.portal{width:100%;max-width:560px;min-height:100svh;margin:0 auto;padding:28px 24px max(24px,env(safe-area-inset-bottom))}.brand{display:flex;gap:11px;align-items:center;padding-bottom:34px}.brand strong{display:block;font-size:19px;letter-spacing:-.5px}.eyebrow{display:block;font-size:10px;letter-spacing:1.5px;font-weight:750;line-height:1.7;color:var(--muted)}.connection{margin-left:auto;font-size:11px;color:var(--muted);text-align:right;max-width:100px}.connection.online{color:var(--green)}.connection.online:before{content:"";display:inline-block;width:6px;height:6px;background:#259d6a;border-radius:50%;margin-right:6px}
h1{font-size:36px;line-height:1.12;letter-spacing:-1.3px;margin:12px 0 18px;overflow-wrap:anywhere}h2{font-size:25px;letter-spacing:-.7px;margin:5px 0 0}.welcome{padding:32px 0}.welcome h1{font-size:48px}.welcome>p{max-width:340px;color:var(--muted);font-size:17px;line-height:1.6}.onboarding{display:flex;gap:16px;background:white;border:1px solid #e1e7df;border-radius:20px;padding:22px;margin:32px 0 20px}.step{font-size:12px;background:#eef4e7;border-radius:50%;width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;color:var(--green)}.onboarding strong{font-size:15px}.onboarding p{font-size:14px;line-height:1.55;color:var(--muted);margin:8px 0 0}.primary{background:var(--green);color:white;border:0;border-radius:14px;min-height:56px;padding:16px 20px;width:100%;font-weight:650;display:flex;justify-content:space-between}
.identity{padding:8px 0 27px}.identity h1{margin:10px 0 16px}.access-state{font-size:12px;font-weight:650;border-radius:20px;padding:7px 11px;display:inline-block;background:#e2eddf;color:#2a6744}.access-state.blocked{background:#fff0db;color:#845818}.muted{font-size:13px;line-height:1.6;color:var(--muted);margin:10px 0 0}.guest-section{border-top:1px solid #dce4d8;padding-top:28px}.section-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}.counter{font-size:12px;font-weight:650;white-space:nowrap;color:var(--muted);padding:8px 11px;border:1px solid #d9e0d6;border-radius:30px}.create-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.create{display:flex;align-items:flex-start;flex-direction:column;text-align:left;border:1px solid #d4e3d7;border-radius:18px;background:#e8efe3;padding:20px 18px;color:#1c5442;min-height:143px}.create:not(:disabled):hover{background:#ddebd9}.create strong{font-size:16px;margin:15px 0 5px}.create>span:last-child{font-size:12px;color:#547262}.kind-icon{height:34px;width:34px;font-size:34px;line-height:34px}svg.kind-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.disabled-reason{font-size:13px;line-height:1.5;color:#8a622d}.disabled-reason:empty{display:none}.codes{display:grid;gap:12px}.code-card{background:#fff;border:1px solid #e0e7dd;border-radius:18px;padding:20px}.code-top{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:12px}.code-value{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:6px;font-size:38px;color:#173e31;display:block;margin:14px 0 12px}.code-bottom{border-top:1px dashed #dfe5da;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.code-expiry{font-size:11px;line-height:1.6;color:var(--muted)}.share{min-height:44px;border:0;background:#f1f5ed;color:#315a43;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:650}.point-usage{font-size:12px;color:var(--muted);margin:9px 0;line-height:1.5;overflow-wrap:anywhere}.empty{border:1px dashed #cdd9c9;border-radius:18px;padding:26px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}.hint{display:flex;align-items:flex-start;gap:12px;margin:23px 0}.hint>span{font-size:23px;color:#6c8667}.hint p{font-size:12px;line-height:1.7;margin:0;color:var(--muted)}.hint strong{font-weight:650;color:#496346}.sync{font-size:11px;color:#7b887d;text-align:center}.message{background:#fff0dc;border:1px solid #e5d7bd;border-radius:14px;padding:16px;font-size:14px;line-height:1.5;margin:18px 0;overflow-wrap:anywhere}.retry{width:100%;min-height:48px;background:white;border:1px solid #cbd7c9;border-radius:12px;color:var(--green)}footer{text-align:center;font-size:11px;color:#74836f;margin:35px 0 0;line-height:1.6}footer p{font-size:10px;color:#8b9586;margin:10px 0}.lock{font-size:17px;vertical-align:-1px;margin-right:4px}
@media(max-width:360px){.portal{padding:22px 16px}.brand{gap:8px}.brand strong{font-size:17px}.welcome h1{font-size:41px}.create{padding:16px}.code-card{padding:17px}.code-value{font-size:35px}.connection{font-size:10px;max-width:82px}}
@media(min-width:700px){.portal{margin:28px auto;background:#f8faf5;border:1px solid #e1e8dc;border-radius:28px;min-height:calc(100svh - 56px);padding:32px}.welcome{padding-top:40px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease,opacity .15s ease}}
html,body{touch-action:pan-y}button{touch-action:manipulation}.code-main{display:flex;align-items:center;justify-content:space-between;gap:12px}.code-main .code-value{margin:16px 0}.share{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0}.code-bottom{display:grid;gap:8px}.point-usage{margin:0}.point-usage strong,.point-usage span{display:block}.point-usage strong{font-weight:650;color:#315a43;margin-bottom:3px}.install-note{font-size:12px;line-height:1.6;color:var(--muted);padding:16px;border:1px solid #dce4d8;border-radius:14px;margin-top:24px}
.guest-subheading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 16px}.guest-subheading h3{font-size:17px;margin:0}.small{font-size:12px}.plate-create{margin:12px 0}.plate-value{font-size:27px;letter-spacing:2px;overflow-wrap:anywhere}.completed{background:#eef2ec}.completed .code-value{color:#6b7a72}.code-bottom{align-items:start}dialog{border:1px solid #dce4d8;border-radius:20px;padding:24px;color:#183a31;background:#f8faf5;width:calc(100% - 32px);max-width:430px;max-height:90svh;overflow:auto}dialog::backdrop{background:#102d2373}.dialog-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}.dialog-heading h2{font-size:22px;flex:1}.dialog-close{border:0;background:transparent;font-size:30px;min-width:44px;min-height:44px;color:var(--green)}dialog label{display:block;font-size:14px;margin-bottom:8px}dialog input{width:100%;font-size:20px;font-family:ui-monospace,monospace;text-transform:uppercase;padding:14px;border:1px solid #bfcfbd;border-radius:12px;color:inherit;background:white}dialog .primary{margin-top:20px}
.code-main .delete-guest { margin-left: .4rem; color: #9c4941; flex-shrink: 0; }
.code-main { gap: 8px; } .code-main .delete-guest { margin-left: 0; }
.code-actions{display:flex;gap:4px;margin-left:auto;flex:none}
.portal-settings .tile-top>svg{width:29px;height:29px}
.portal-settings .tile-switch{width:42px;height:24px}
.portal-settings .tile-switch:after{width:18px;height:18px}
.portal-settings .settings-tile[aria-pressed=true] .tile-switch:after{transform:translateX(18px)}
.portal-settings .sync{margin:16px 0 0}
#monitor-dialog .monitor-settings .monitor-copy-all{background:#fff;color:var(--green);border-color:#cbd7c9}
dialog h2:focus{outline:none}
.setting-confirm-actions{display:flex;gap:10px;margin-top:20px}.setting-confirm-actions>button{flex:1;margin:0}
.push-settings{border-top:1px solid #dce4d8;padding-top:24px;margin-top:28px}.push-settings h2{font-size:21px}.push-settings button{margin-top:10px}
.plate-actions{grid-template-columns:1fr}.plate-actions .create{width:100%}
#guest-history{margin-top:24px}#guest-history>summary{cursor:pointer;font-size:17px;font-weight:650;padding:12px 0}#guest-history>summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}#history-period{font-size:12px;font-weight:400;color:var(--muted)}#guest-history[open]>.codes{margin-top:8px}

/* Prevent accidental selection on touch screens, including the call surface. */
body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body .monitor-settings-row dd{-webkit-user-select:none;user-select:none}
input,textarea{caret-color:var(--green)}
.call-icons{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
body.call-open{overflow:hidden;overscroll-behavior:none}
.call-screen{position:fixed;inset:0;margin:0;border:0;border-radius:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;padding:0;background:radial-gradient(ellipse at 50% 36%,#e4eee0 0,transparent 55%),#f3f5f0;color:#183a31;overflow:auto;overscroll-behavior:contain}
.call-screen::backdrop{background:#f3f5f0}
.call-shell{display:flex;flex-direction:column;align-items:stretch;min-height:100%;width:100%;max-width:460px;margin:auto;padding:max(36px,env(safe-area-inset-top)) 28px max(18px,env(safe-area-inset-bottom))}
.call-heading{text-align:center;padding:8px 0 0}.call-heading .eyebrow{font-size:10px;letter-spacing:2px;color:#6b826e}
.call-heading h2{font-size:clamp(25px,6.8vw,36px);line-height:1.2;letter-spacing:-1px;margin:22px 0 12px;overflow-wrap:anywhere;text-wrap:balance}
.call-heading p{font-size:14px;line-height:1.5;color:#557561;margin:0}
.call-center{flex:1;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 0 18px}
.call-avatar{position:relative;display:grid;place-items:center;width:126px;height:126px;border-radius:40px;background:#e0eadb;border:1px solid #cfdfc8;color:var(--green);box-shadow:0 0 0 16px #e6eee150,0 0 0 33px #e6eee135}
.call-avatar svg{width:64px;height:64px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.call-wave{display:none;align-items:center;gap:5px;height:25px;margin-top:30px}.call-wave i{width:4px;height:10px;border-radius:4px;background:#7b9d7c}.call-wave i:nth-child(2),.call-wave i:nth-child(4){height:17px}.call-wave i:nth-child(3){height:25px}
.call-timer{font-size:40px;line-height:1.2;letter-spacing:1px;font-weight:450;font-variant-numeric:tabular-nums;text-align:center;margin:0 0 30px;color:#214f3d}
.call-bottom{margin-top:auto}.call-feedback{min-height:22px;margin:0 0 16px;text-align:center;font-size:13px;line-height:1.5;color:#47694f;overflow-wrap:anywhere}
.call-utilities{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.call-utilities:has(> :not([hidden])){margin-bottom:18px}.call-utilities:not(:has(> :not([hidden]))){display:none}
.call-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.call-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:94px;border:0;border-radius:24px;font-size:15px;font-weight:650;padding:18px;color:#fff}
.call-action svg,.call-door svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.call-accept{background:#176650;box-shadow:0 6px 16px #17665018;order:2}.call-decline{background:#b54940;order:1}.call-decline>svg{transform:rotate(135deg)}
.call-points:empty{display:none}.call-points{display:flex;flex-direction:column;gap:12px;grid-column:1/-1;order:0}
.call-door{width:100%;min-height:76px;border:1px solid #ceddca;border-radius:20px;background:#fff;color:#215a42;display:flex;align-items:center;gap:16px;text-align:left;padding:16px 20px}
.call-door.error{background:#f9e3df;border-color:#d38d83;color:#a13934}.call-door.error small{color:#a13934}.call-door.opened{background:#e2efdf;border-color:#98ba99}.call-door.opened small{color:#176650}
.call-door>svg{width:26px;height:26px}.call-door>span{display:flex;flex-direction:column;gap:4px;min-width:0}.call-door small{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#6c836f}.call-door strong{font-weight:650;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.call-screen[data-phase="connected"] .call-center{padding-bottom:14px;min-height:130px}.call-screen[data-phase="connected"] .call-avatar{width:98px;height:98px;border-radius:32px;box-shadow:none}.call-screen[data-phase="connected"] .call-avatar svg{width:50px;height:50px}.call-screen[data-phase="connected"] .call-wave{display:flex}
.call-screen:not([data-phase="ringing"]) .call-controls{grid-template-columns:1fr}.call-screen:not([data-phase="ringing"]) .call-decline{flex-direction:row;min-height:64px;border-radius:20px;gap:12px}
.call-screen[data-phase="ended"] .call-decline,.call-screen[data-phase="waiting"] .call-decline{background:#e2eade;color:#315d45}.call-screen[data-phase="ended"] .call-decline>svg,.call-screen[data-phase="waiting"] .call-decline>svg{display:none}
.call-screen audio{display:none}
@media(prefers-reduced-motion:no-preference){.call-screen[data-phase="ringing"] .call-avatar{animation:call-breathe 2.4s ease-in-out infinite}@keyframes call-breathe{50%{box-shadow:0 0 0 20px #dce8d850,0 0 0 40px #e6eee120}}}
@media(max-width:360px){.call-shell{padding-left:20px;padding-right:20px}.call-heading h2{font-size:27px}.call-door{padding:14px 16px}}
@media(max-height:690px){.call-shell{padding-top:max(20px,env(safe-area-inset-top))}.call-heading h2{margin-top:14px;font-size:27px}.call-center{min-height:100px;padding:22px 0}.call-avatar{width:90px;height:90px;border-radius:30px}.call-avatar svg{width:48px;height:48px}.call-screen[data-phase="connected"] .call-center{min-height:85px;padding:16px 0 8px}.call-screen[data-phase="connected"] .call-avatar{width:64px;height:64px;border-radius:22px}.call-screen[data-phase="connected"] .call-avatar svg{width:38px;height:38px}.call-wave{display:none!important}.call-timer{font-size:32px;margin-bottom:14px}.call-feedback{margin-bottom:10px;min-height:18px}.call-door{min-height:66px}}
@media(orientation:landscape) and (max-height:500px){.call-shell{max-width:640px;padding-top:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.call-center,.call-heading .eyebrow{display:none}.call-heading{padding:0;margin-bottom:8px}.call-heading h2{font-size:24px;margin:0 0 6px}.call-timer{font-size:24px;margin:4px 0 12px}.call-feedback:empty{display:none}.call-action{min-height:70px}.call-door{min-height:58px;padding:10px 16px}.call-points{gap:10px}.call-controls{gap:10px}.call-screen:not([data-phase="ringing"]) .call-decline{min-height:52px;padding:12px}}
