:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#152033;background:#f3f6fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.65}.centered,.login-page{min-height:100vh;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom))}.login-page{background:radial-gradient(circle at top,#e9f1ff,#f7f9fc 56%)}.login-card{width:min(100%,420px);background:#fffffff5;border:1px solid #e1e7ef;border-radius:24px;padding:28px;box-shadow:0 20px 60px #1e365a1f}.brand-mark,.avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#1f63e9;color:#fff;font-weight:800;font-size:24px}h1{margin:14px 0 4px;font-size:clamp(26px,6vw,34px)}h2{margin:0 0 8px;font-size:18px}p{line-height:1.5}.muted{color:#66758c;margin:0}.eyebrow{color:#66758c;margin:0;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.login-form{display:grid;gap:16px;margin-top:26px}.login-form label{display:grid;gap:7px;font-weight:650}.login-form input{min-height:48px;border:1px solid #cbd5e3;border-radius:12px;padding:0 14px;background:#fff;color:#152033;outline:none}.login-form input:focus{border-color:#1f63e9;box-shadow:0 0 0 3px #1f63e924}.login-form button,.secondary{min-height:48px;border:0;border-radius:12px;padding:0 18px;background:#1f63e9;color:#fff;font-weight:700}.error{margin:-4px 0;color:#b42318;font-size:14px}.login-note{color:#78869a;font-size:13px;margin:20px 0 0}.app-shell{min-height:100vh}.topbar{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:max(12px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));border-bottom:1px solid #dfe5ee;background:#ffffffeb;position:sticky;top:0}.topbar>div{display:grid;gap:3px}.status-dot{color:#39724f;font-size:12px}.secondary{min-height:40px;background:#edf2f8;color:#25344b}.content{width:min(100%,1000px);margin:0 auto;padding:28px 18px 48px}.welcome-card{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #e0e6ef;border-radius:20px;padding:22px}.welcome-card h1{margin:2px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px}.grid article{background:#fff;border:1px solid #e0e6ef;border-radius:18px;padding:20px}.grid p{color:#66758c;margin:0}.loader{width:38px;height:38px;border:4px solid #d8e1ef;border-top-color:#1f63e9;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-color-scheme:dark){:root{color:#eef3fb;background:#101722}.login-page{background:#101722}.login-card,.welcome-card,.grid article,.topbar{background:#172130;border-color:#2b394d}.login-form input{background:#101722;color:#eef3fb;border-color:#41516a}.muted,.grid p,.eyebrow,.login-note{color:#a9b6c9}.secondary{background:#26354a;color:#eef3fb}}@media(max-width:520px){.login-card{padding:24px 20px;border-radius:20px}.topbar{align-items:center}.status-dot{display:none}.content{padding-top:18px}}.stack-form{display:grid;gap:16px;margin-top:26px}.stack-form label{display:grid;gap:7px;font-weight:650}.stack-form input,.admin-page input,.admin-page select{min-height:46px;border:1px solid #cbd5e3;border-radius:12px;padding:0 13px;background:#fff;color:#152033;outline:none}.stack-form input:focus,.admin-page input:focus,.admin-page select:focus{border-color:#1f63e9;box-shadow:0 0 0 3px #1f63e924}.stack-form>button,.admin-page button:not(.secondary):not(.danger-button):not(.danger-link){min-height:46px;border:0;border-radius:12px;padding:0 16px;background:#1f63e9;color:#fff;font-weight:700}.field-hint{color:#78869a;font-size:12px;font-weight:400}.notice{border-radius:14px;padding:14px 16px;margin:18px 0;line-height:1.45}.notice p{margin:6px 0}.notice.danger{background:#fff0ee;border:1px solid #f3c6c1;color:#8f2018}.notice a{color:inherit;font-weight:700}.brand-button{border:0;background:transparent;color:inherit;font:inherit;font-size:18px;font-weight:800;padding:8px 0}.topbar-actions{display:flex!important;grid-auto-flow:column;align-items:center;gap:8px!important}.secondary.active{background:#dfeaff;color:#164eb9}.clickable-card{cursor:pointer;transition:transform .15s ease,border-color .15s ease}.clickable-card:hover{transform:translateY(-1px);border-color:#a8bce1}.admin-page{display:grid;gap:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.section-heading h1,.section-heading h2{margin:2px 0 5px}.section-heading.compact{align-items:flex-end}.admin-section{background:#fff;border:1px solid #e0e6ef;border-radius:20px;padding:20px}.invite-create{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.invite-create select{min-width:120px}.invite-list,.user-list{display:grid;gap:12px;margin-top:18px}.invite-card,.user-card{border:1px solid #e0e6ef;border-radius:16px;background:#fbfcfe}.invite-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:16px;align-items:center}.invite-main{min-width:0}.invite-url{width:100%;margin:12px 0 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.qr-code{width:132px;height:132px;background:#fff;border-radius:10px;padding:5px;border:1px solid #e4e8ef}.row-gap,.button-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-badge,.role-badge{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:750}.status-active{background:#e5f6e9;color:#23623a}.status-used{background:#e8eef7;color:#465b77}.status-revoked,.status-expired{background:#fde9e7;color:#8f2d24}.role-badge{background:#eee9ff;color:#5539a5}.small{font-size:12px}.danger-button{min-height:40px;border:1px solid #e7a8a2;border-radius:10px;background:#fff3f1;color:#a02a21;font-weight:700;padding:0 12px}.danger-link{border:0;background:transparent;color:#a02a21;font-weight:700;padding:8px 4px}.small-button{min-height:34px;font-size:12px}.empty-state{color:#78869a;font-size:14px;margin:8px 0}.user-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px}.user-summary h3{margin:0}.user-actions{justify-content:flex-end}.user-details{border-top:1px solid #e0e6ef;padding:16px;display:grid;gap:22px}.details-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.details-heading h4{margin:0}.detail-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #edf0f5}.detail-row:first-of-type{border-top:0}.detail-row p{margin:3px 0 0;overflow-wrap:anywhere}.panel-loading{min-height:240px;display:grid;place-items:center}@media(prefers-color-scheme:dark){.stack-form input,.admin-page input,.admin-page select{background:#101722;color:#eef3fb;border-color:#41516a}.admin-section,.invite-card,.user-card{background:#172130;border-color:#2b394d}.user-details,.detail-row{border-color:#2b394d}.notice.danger{background:#3c201f;border-color:#67302c;color:#ffc4bd}.secondary.active{background:#29446e;color:#dce9ff}.invite-url{background:#101722}.status-active{background:#1f432e;color:#bce7c9}.status-used{background:#29384d;color:#c8d5e5}.status-revoked,.status-expired{background:#4a2927;color:#f8c2bc}.role-badge{background:#342a55;color:#d8ccff}.danger-button{background:#3b2624;border-color:#67403c;color:#ffc7c1}.danger-link{color:#ffaaa2}}@media(max-width:760px){.section-heading,.section-heading.compact,.user-summary{align-items:stretch;flex-direction:column}.invite-create,.user-actions{justify-content:flex-start}.invite-card{grid-template-columns:1fr}.qr-code{width:160px;height:160px}.detail-row{align-items:flex-start;flex-direction:column}.topbar-actions{gap:5px!important}.topbar-actions .secondary{padding:0 10px;font-size:13px}}.messenger-content{padding:18px;max-width:1440px;margin:0 auto;width:100%;box-sizing:border-box}.messenger{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);min-height:calc(100vh - 110px);border:1px solid #dfe5ec;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 14px 42px #18273a14}.chat-sidebar{border-right:1px solid #e5e9ef;background:#f8fafc;min-width:0}.chat-sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 14px}.chat-sidebar-heading h1{margin:2px 0 0;font-size:25px}.connection-dot{width:11px;height:11px;border-radius:999px;background:#e0a735;box-shadow:0 0 0 4px #e0a73524}.connection-dot.online{background:#2f9d61;box-shadow:0 0 0 4px #2f9d6124}.new-chat-panel{margin:0 12px 12px;border:1px solid #dfe5ec;border-radius:12px;background:#fff}.new-chat-panel summary{cursor:pointer;padding:11px 13px;font-weight:700;color:#245aa8}.new-chat-users{border-top:1px solid #edf0f4;max-height:230px;overflow:auto;padding:6px}.user-pick{width:100%;display:flex;align-items:center;gap:10px;padding:9px;border:0;border-radius:10px;background:transparent;text-align:left;color:inherit}.user-pick:hover{background:#f2f6fb}.user-pick span:not(.chat-avatar){display:flex;flex-direction:column;min-width:0}.user-pick small{color:#738092;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-list{padding:0 8px 12px;overflow-y:auto;max-height:calc(100vh - 235px)}.chat-list-item{width:100%;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:11px;padding:11px;border:0;border-radius:13px;background:transparent;color:inherit;text-align:left}.chat-list-item:hover{background:#eef3f9}.chat-list-item.active{background:#e5effd}.chat-avatar{width:44px;height:44px;border-radius:50%;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;background:#dce9fb;color:#245aa8;font-weight:800}.chat-avatar.family{background:#e8e3fb;color:#59449a}.chat-list-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.chat-list-title{display:flex;align-items:center;gap:8px;min-width:0}.chat-list-title strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-list-copy small{color:#687486;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-list-copy small.activity{font-size:11px;color:#919baa}.unread-badge{margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#2f6ec7;color:#fff;font-size:11px}.chat-empty{padding:16px}.conversation-panel{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;background:#eef3f8}.conversation-placeholder{align-self:center;justify-self:center;max-width:360px;padding:32px;text-align:center}.conversation-header{display:flex;align-items:center;gap:12px;padding:13px 18px;background:#fff;border-bottom:1px solid #e5e9ef}.conversation-header>div{display:flex;flex-direction:column;min-width:0}.conversation-header small{color:#778395}.realtime-label{margin-left:auto;font-size:12px;color:#9b6b12;background:#fff4d6;padding:5px 8px;border-radius:999px}.realtime-label.connected{color:#26784c;background:#e3f5ea}.message-history{min-height:0;overflow-y:auto;padding:18px 20px 12px;display:flex;flex-direction:column;gap:10px}.load-older{align-self:center;background:#fffc;color:#36516f;border:1px solid #dbe2ea;border-radius:999px;padding:7px 12px}.empty-thread{margin:auto;color:#778395;background:#ffffffbf;border-radius:12px;padding:12px 16px}.message-bubble{align-self:flex-start;max-width:min(75%,680px);background:#fff;border-radius:15px 15px 15px 5px;padding:9px 11px 7px;box-shadow:0 2px 8px #1c2e4414}.message-bubble.own{align-self:flex-end;background:#dcecff;border-radius:15px 15px 5px}.message-author{display:block;color:#2f6ec7;font-size:12px;margin-bottom:4px}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.42}.message-text.deleted{color:#8b95a2;font-style:italic}.reply-quote{display:flex;flex-direction:column;gap:1px;padding:6px 8px;margin-bottom:7px;border-left:3px solid #7294bd;border-radius:6px;background:#5076a317;font-size:12px;max-width:100%}.reply-quote span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-meta{display:flex;gap:5px;align-items:center;justify-content:flex-end;margin-top:4px;color:#7d8998;font-size:10px}.message-actions{display:flex;gap:8px;margin-top:4px;opacity:0;transition:opacity .15s ease}.message-bubble:hover .message-actions,.message-bubble:focus-within .message-actions{opacity:1}.message-actions button{padding:0;border:0;background:transparent;color:#526b88;font-size:11px}.chat-error{margin:0 14px 8px;padding:8px 10px;border-radius:9px;color:#8c3028;background:#fdecea;border:1px solid #f3c7c2}.reply-composer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 14px;background:#fff;border-top:1px solid #e5e9ef}.reply-composer>div{min-width:0;display:flex;flex-direction:column;font-size:12px}.reply-composer span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#687486}.icon-button{border:0;background:transparent;padding:4px 8px;font-size:24px;line-height:1;color:#637083}.message-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 14px 14px;background:#fff;border-top:1px solid #e5e9ef}.message-composer textarea{resize:none;min-height:42px;max-height:130px;border:1px solid #cfd7e1;border-radius:13px;padding:10px 12px;font:inherit;line-height:1.3}.message-composer button{min-width:102px;border-radius:12px}@media(prefers-color-scheme:dark){.messenger{background:#151d27;border-color:#2c3949;box-shadow:none}.chat-sidebar{background:#101720;border-color:#293646}.new-chat-panel,.conversation-header,.reply-composer,.message-composer{background:#151d27;border-color:#293646}.new-chat-panel,.new-chat-users{border-color:#293646}.user-pick:hover,.chat-list-item:hover{background:#1c2734}.chat-list-item.active{background:#22344c}.chat-avatar{background:#263b58;color:#c9dcf6}.chat-avatar.family{background:#352d52;color:#ddd4ff}.conversation-panel{background:#0e151d}.conversation-header{border-color:#293646}.message-bubble{background:#1b2633}.message-bubble.own{background:#203a5a}.load-older{background:#1b2633;color:#c9d5e2;border-color:#334253}.empty-thread{background:#1b2633cc}.message-composer textarea{background:#111923;color:#edf3fa;border-color:#334253}.reply-quote{background:#789ac41f}.chat-error{color:#ffc6c1;background:#432625;border-color:#6b3936}}@media(max-width:800px){.messenger-content{padding:8px}.messenger{grid-template-columns:minmax(190px,42%) minmax(0,1fr);min-height:calc(100vh - 92px);border-radius:12px}.chat-sidebar-heading{padding:15px 12px 10px}.chat-sidebar-heading h1{font-size:21px}.chat-list-item{grid-template-columns:38px minmax(0,1fr);padding:9px 7px;gap:7px}.chat-avatar{width:38px;height:38px}.chat-list-copy small.activity{display:none}.conversation-header{padding:9px 10px}.conversation-header .chat-avatar{display:none}.message-history{padding:12px 10px}.message-bubble{max-width:88%}.message-actions{opacity:1}.message-composer{padding:9px;grid-template-columns:minmax(0,1fr) auto}.message-composer button{min-width:74px;padding-left:10px;padding-right:10px}}.attachment-composer{grid-template-columns:auto minmax(0,1fr) auto;align-items:end}.composer-tools{display:flex;gap:5px;align-items:center}.message-composer .tool-button{min-width:38px;width:38px;height:38px;padding:0;border-radius:11px;background:#eef3f9;color:#334e6d;border:1px solid #d8e0e9;font-size:18px}.message-composer .tool-button:hover{background:#e2ebf5}.message-composer .tool-button.recording{background:#ffe5e2;color:#a43d34}.upload-progress,.upload-error,.voice-recorder{display:flex;gap:10px;align-items:center;padding:9px 14px;background:#fff;border-top:1px solid #e5e9ef;font-size:13px}.upload-progress progress{flex:1;min-width:80px;height:10px}.upload-progress button,.upload-error button,.voice-recorder button{min-width:0;padding:6px 10px;border-radius:9px}.upload-error{color:#8c3028;background:#fff3f1}.upload-error span{flex:1}.voice-recorder{flex-wrap:wrap}.voice-recorder audio{max-width:min(360px,100%);height:36px}.voice-recorder .secondary{background:#eef2f6;color:#43566e}.recording-dot{width:10px;height:10px;border-radius:50%;background:#d94539;box-shadow:0 0 0 4px #d945391f}.image-attachment{display:block;width:min(420px,100%);padding:0;margin:2px 0 4px;border:0;border-radius:12px;overflow:hidden;background:transparent}.image-attachment img{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:12px}.media-attachment,.voice-attachment{display:flex;flex-direction:column;gap:5px;max-width:min(500px,100%)}.media-attachment video{width:100%;max-height:420px;border-radius:12px;background:#000}.media-attachment small,.voice-attachment small{color:#748194}.voice-attachment audio{width:min(360px,72vw);max-width:100%}.file-attachment{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;min-width:min(360px,70vw);max-width:100%;padding:10px 11px;border:1px solid rgba(76,104,136,.18);border-radius:11px;color:inherit;text-decoration:none;background:#ffffff73}.file-attachment>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.file-attachment strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-attachment small{color:#6f7d8e;overflow-wrap:anywhere}.file-attachment b{color:#2f6ec7;font-size:12px}.file-icon{font-size:24px}.image-lightbox{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:32px;background:#060b12e0}.image-lightbox img{max-width:96vw;max-height:92vh;object-fit:contain;border-radius:8px}.image-lightbox>button{position:fixed;top:14px;right:18px;width:42px;height:42px;border-radius:50%;border:0;background:#ffffff29;color:#fff;font-size:28px}@media(prefers-color-scheme:dark){.upload-progress,.voice-recorder{background:#151d27;border-color:#293646}.upload-error{background:#432625;border-color:#6b3936;color:#ffc6c1}.message-composer .tool-button{background:#1c2734;border-color:#334253;color:#d6e3f2}.file-attachment{background:#0e151d59;border-color:#344456}}@media(max-width:800px){.attachment-composer{grid-template-columns:auto minmax(0,1fr) auto;gap:6px}.composer-tools{gap:2px}.message-composer .tool-button{width:34px;min-width:34px;height:38px;font-size:16px}.file-attachment{min-width:0;width:100%}.image-lightbox{padding:8px}}html,body,#root{min-height:100%}body{min-height:100dvh;overscroll-behavior-y:none}.app-shell{min-height:100dvh}.topbar{z-index:40}.brand-button{display:inline-flex;align-items:center;gap:9px}.brand-mini{width:30px;height:30px;border-radius:9px;display:inline-grid;place-items:center;background:#1f63e9;color:#fff;font-size:15px;font-weight:850}.mobile-nav{display:none}.network-banner{position:fixed;z-index:1200;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translate(-50%);width:min(calc(100% - 24px),660px);border-radius:12px;padding:10px 14px;text-align:center;font-size:13px;font-weight:700;box-shadow:0 8px 28px #12223638}.network-banner.offline{background:#7b2d25;color:#fff}.network-banner.restored{background:#226c45;color:#fff}.settings-page{display:grid;gap:18px}.settings-page>div:first-child h1{margin:2px 0 5px}.settings-hero{display:flex;align-items:center;gap:16px}.settings-hero h1{margin:2px 0}.profile-avatar{width:68px;height:68px;border-radius:22px;flex:0 0 auto;display:grid;place-items:center;background:#dce9fb;color:#245aa8;font-size:28px;font-weight:850}.settings-card{background:#fff;border:1px solid #e0e6ef;border-radius:18px;padding:20px}.settings-card h2{margin-top:0}.settings-card>p:last-child{margin-bottom:0}.settings-card>button:not(.danger-button){min-height:46px;border:0;border-radius:12px;padding:0 16px;background:#1f63e9;color:#fff;font-weight:750}.install-state{border-radius:12px;padding:12px 14px}.install-state.success{background:#e6f5eb;color:#25653f}.install-instructions p{margin:8px 0}.profile-details{margin:0;display:grid}.profile-details>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:16px;padding:12px 0;border-top:1px solid #edf0f5}.profile-details>div:first-child{border-top:0}.profile-details dt{color:#687486}.profile-details dd{margin:0;text-align:right;overflow-wrap:anywhere;font-weight:650}.danger-zone{border-color:#eed5d2}.mobile-back-button{display:none}.conversation-title{flex:1}.call-actions button{width:38px;height:38px;border-radius:50%;border:0;background:#edf2f8;font-size:17px}.call-actions button:disabled{opacity:.55;cursor:default}.failed-message{outline:1px solid #e19b93;background:#fff1ef!important}.failed-message-state{margin-top:7px;display:grid;gap:6px;color:#9b342b;font-size:11px}.failed-message-state>div{display:flex;gap:8px;justify-content:flex-end}.failed-message-state button{border:0;border-radius:8px;padding:5px 8px;background:#fff;color:#853128;font-size:11px;font-weight:700}@media(prefers-color-scheme:dark){.settings-card{background:#172130;border-color:#2b394d}.profile-avatar{background:#263b58;color:#c9dcf6}.profile-details>div{border-color:#2b394d}.profile-details dt{color:#a9b6c9}.install-state.success{background:#1f432e;color:#bce7c9}.call-actions button{background:#26354a}.failed-message{background:#432625!important;outline-color:#6b3936}.failed-message-state{color:#ffc6c1}.failed-message-state button{background:#2b1b1a;color:#ffc6c1}}@media(max-width:700px){:root{-webkit-tap-highlight-color:transparent}button,a,input,textarea,select{touch-action:manipulation}.topbar{min-height:56px;padding:max(8px,env(safe-area-inset-top)) 14px 8px}.brand-button{font-size:16px;padding:0}.brand-mini{width:32px;height:32px}.topbar-actions{display:none!important}.mobile-nav{position:fixed;z-index:60;left:0;right:0;bottom:0;min-height:calc(64px + env(safe-area-inset-bottom));padding:5px max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));display:flex;align-items:stretch;justify-content:space-around;gap:3px;border-top:1px solid #dfe5ee;background:#fffffff5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-nav-item{flex:1;min-width:0;min-height:54px;display:grid;place-items:center;align-content:center;gap:2px;border:0;border-radius:12px;background:transparent;color:#66758c}.mobile-nav-item>span{font-size:19px;line-height:1}.mobile-nav-item small{font-size:10px;font-weight:700}.mobile-nav-item.active{background:#e5effd;color:#164eb9}.content{width:100%;padding:16px 12px calc(82px + env(safe-area-inset-bottom))}.messenger-content{padding:0 0 calc(64px + env(safe-area-inset-bottom));max-width:none}.messenger{display:block;width:100%;height:calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:460px;border:0;border-radius:0;box-shadow:none}.chat-sidebar{display:flex;height:100%;flex-direction:column;border-right:0}.chat-sidebar-heading{padding:15px 16px 10px}.chat-sidebar-heading h1{font-size:25px}.new-chat-panel{margin:0 10px 9px}.new-chat-users{max-height:min(42vh,300px)}.chat-list{max-height:none;flex:1;overflow-y:auto;padding:0 7px calc(12px + env(safe-area-inset-bottom))}.chat-list-item{min-height:64px;grid-template-columns:46px minmax(0,1fr);padding:9px;gap:10px}.chat-avatar{width:46px;height:46px}.chat-list-copy small.activity{display:block}.conversation-panel{display:none;height:100%;grid-template-rows:auto minmax(0,1fr) auto auto auto}.messenger.mobile-thread-open .chat-sidebar{display:none}.messenger.mobile-thread-open .conversation-panel{display:grid}.conversation-header{min-height:58px;padding:8px 9px;gap:8px}.conversation-header .chat-avatar{display:none}.mobile-back-button{display:inline-grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border:0;border-radius:12px;background:#edf2f8;color:#294561;font-size:24px}.conversation-title{min-width:0}.conversation-title strong,.conversation-title small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.call-actions{margin-left:0;gap:2px}.call-actions button{width:36px;height:36px}.realtime-label{display:none}.message-history{padding:10px 9px;overscroll-behavior-y:contain}.message-bubble{max-width:90%}.reply-composer,.upload-progress,.upload-error,.voice-recorder{padding-left:9px;padding-right:9px}.message-composer{padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:5px;position:sticky;bottom:0}.attachment-composer{grid-template-columns:auto minmax(0,1fr) auto}.message-composer textarea{min-height:44px;border-radius:14px}.message-composer button[type=submit]{min-width:44px;min-height:44px;padding:0 10px;font-size:0}.message-composer button[type=submit]:after{content:"➤";font-size:18px}.message-composer .tool-button{width:42px;min-width:42px;height:44px;font-size:18px}.composer-tools .tool-button:nth-child(2){display:none}.settings-page{gap:14px}.settings-card{border-radius:16px;padding:16px}.settings-hero{align-items:flex-start}.profile-avatar{width:58px;height:58px;border-radius:18px}.profile-details>div{grid-template-columns:1fr;gap:4px}.profile-details dd{text-align:left}.network-banner{bottom:calc(72px + env(safe-area-inset-bottom));width:calc(100% - 18px);font-size:12px}.image-lightbox{padding-bottom:calc(8px + env(safe-area-inset-bottom))}}@media(prefers-color-scheme:dark)and (max-width:700px){.mobile-nav{background:#172130f7;border-color:#2b394d}.mobile-nav-item{color:#a9b6c9}.mobile-nav-item.active{background:#22344c;color:#dce9ff}.mobile-back-button{background:#26354a;color:#dce9ff}}.call-actions{display:flex;gap:5px;margin-left:auto}.call-actions button{width:40px;height:40px;padding:0;border-radius:50%;border:0;background:#edf2f8;color:inherit;font-size:18px}.call-actions button:disabled{opacity:.45;cursor:default}.call-overlay{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#080e18e6;color:#fff}.call-card{position:relative;z-index:2;width:min(430px,100%);display:grid;justify-items:center;gap:10px;padding:28px 22px;border-radius:28px;background:#182230f0;box-shadow:0 24px 80px #0000005c;text-align:center}.call-card h2{margin:2px 0 0;font-size:clamp(22px,5vw,30px)}.call-kind,.call-status,.call-terminal{margin:0}.call-kind{color:#c6d2e0}.call-status{min-height:22px;color:#e6edf6;font-variant-numeric:tabular-nums}.call-terminal{color:#f2c4bf}.call-avatar{width:92px;height:92px;border-radius:30px;display:grid;place-items:center;background:#2f6ec7;font-size:38px;font-weight:850}.incoming-call-actions,.active-call-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:12px}.call-control{min-width:118px;min-height:48px;border:0;border-radius:16px;padding:0 18px;color:#fff;font-weight:800}.call-control.accept{background:#24945c}.call-control.hangup,.call-round.hangup{background:#d7473f;color:#fff}.call-round{width:52px;height:52px;border:0;border-radius:50%;padding:0;background:#eff4fa;color:#152132;font-size:21px}.call-round.off{background:#596474;color:#fff}.video-call{padding:0;background:#05080c;overflow:hidden}.call-video-stage{position:absolute;inset:0;overflow:hidden}.remote-video{width:100%;height:100%;object-fit:cover;background:#020304}.local-video{position:absolute;top:max(18px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:min(28vw,180px);aspect-ratio:3 / 4;object-fit:cover;border-radius:18px;background:#121923;box-shadow:0 8px 30px #00000059;transform:scaleX(-1)}.call-video-wait{position:absolute;inset:0;display:grid;place-items:center;color:#c7d0dc;pointer-events:none}.video-call .call-card{align-self:end;width:min(620px,calc(100% - 24px));margin-bottom:max(16px,env(safe-area-inset-bottom));grid-template-columns:1fr;padding:14px 18px 16px;border-radius:24px;background:linear-gradient(180deg,#111924b8,#111924f0);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.video-call .call-avatar{display:none}.video-call .call-card h2{font-size:18px}.video-call .call-kind{display:none}.video-call .active-call-controls{margin-top:2px}@media(prefers-color-scheme:dark){.call-actions button{background:#26354a}}@media(max-width:700px){.call-actions{margin-left:auto}.call-actions button{width:42px;height:42px}.call-overlay:not(.video-call) .call-card{width:100%}.local-video{width:31vw;max-width:138px}.active-call-controls{gap:10px}.call-round{width:50px;height:50px}}.call-history-item{align-self:center;display:flex;align-items:center;gap:.65rem;max-width:min(90%,28rem);margin:.35rem auto;padding:.65rem .9rem;border-radius:1rem;background:#7f7f7f1f;font-size:.9rem}.call-history-item.missed{background:#be32321f}.call-history-item>span:last-child{display:grid;gap:.15rem}.call-history-item small{opacity:.7}.call-history-icon{font-size:1.25rem}
