:root{--font-scale: 1;--base-size: .94rem;--title-size: 1.08rem;--small-size: .82rem;--nav-rail-width: 92px;--sidebar-default-width: 420px;--sidebar-layout-width: var(--sidebar-default-width);--sidebar-settings-width: var(--sidebar-default-width);--z-floating-menu: 21650;--z-floating-modal: 21000;--z-floating-overlay: 21450;--z-floating-surface: 21750;--z-floating-toast: 22050}*{-webkit-tap-highlight-color:transparent;box-sizing:border-box;margin:0;padding:0;-webkit-overflow-scrolling:touch}html,body{height:100%;width:100%;overflow:hidden;position:relative;--keyboard-offset: 0px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#0f172a;touch-action:manipulation;overscroll-behavior:none}body.settings-open{overflow:hidden}body.settings-open #chatArea{pointer-events:none;background:#0f172a}body.settings-open #chatArea>*{visibility:hidden}#chatArea[aria-hidden=true]{pointer-events:none;visibility:hidden}#chatArea[aria-hidden=true]>*{visibility:hidden}html{font-size:calc(16px * var(--font-scale, 1))}#app{width:100%;height:100%;height:var(--app-height, 100dvh);display:flex;overflow:hidden;position:relative}@supports (padding-top: env(safe-area-inset-top)){#app{padding-top:env(safe-area-inset-top);padding-bottom:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}#sidebar{width:100%;height:100%;background:transparent;display:flex;flex-direction:row;position:absolute;z-index:20;transition:transform .3s cubic-bezier(.4,0,.2,1);overflow:visible}#sidebarMain{flex:none;min-width:0;height:100%;background:#1e293b;display:flex;flex-direction:column;overflow:hidden;position:relative;width:calc(100% - var(--nav-rail-width));max-width:calc(100% - var(--nav-rail-width));margin-left:var(--nav-rail-width);z-index:3;transition:transform .24s ease}.sidebar-resizer{display:none}body.settings-open .sidebar-resizer{display:none!important}body.is-resizing-sidebar,body.is-resizing-sidebar *{cursor:col-resize!important;user-select:none!important}#chatArea{flex:1 1 auto;min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;position:relative;overflow:hidden;z-index:1}#activeChat{flex:1 1 auto;min-height:0}.nav-rail{width:var(--nav-rail-width);min-width:var(--nav-rail-width);flex-shrink:0;background:linear-gradient(180deg,#2563eb,#1d4ed8);border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;align-items:center;position:fixed;top:0;left:0;bottom:0;padding:calc(16px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom));gap:18px;z-index:17030;box-shadow:14px 0 30px #02061766}.nav-rail-brand{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.nav-rail-bolt{width:48px;height:48px;border-radius:50%;background:#ffffff2e;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;box-shadow:0 10px 25px #0f172a33}.nav-rail-title{font-size:18px;line-height:1.1;font-weight:800;color:#fff}.nav-rail-id{font-size:11px;line-height:1.4;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#dbeafee0;word-break:break-all}.nav-rail-actions{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}.nav-rail-btn{width:100%;min-height:58px;border-radius:18px;border:none;background:#1e40af73;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 6px;cursor:pointer;transition:transform .18s ease,background .18s ease;box-shadow:inset 0 0 0 1px #ffffff14}.nav-rail-btn-label{display:block;font-size:10px;line-height:1.05;font-weight:700;letter-spacing:.01em;white-space:nowrap}.nav-rail-btn:hover,.nav-rail-btn:active{background:#1e40afcc;transform:translateY(-1px)}.nav-rail-btn.is-active{background:#ffffff38;box-shadow:inset 0 0 0 1px #ffffff2e,0 12px 24px #0f172a2e}.feature-disabled-control,[aria-disabled=true].nav-rail-btn,[aria-disabled=true].btn-round{opacity:.62;filter:saturate(.72);cursor:not-allowed;box-shadow:inset 0 0 0 1px #94a3b833}[aria-disabled=true].nav-rail-btn:hover,[aria-disabled=true].nav-rail-btn:active,[aria-disabled=true].btn-round:hover,[aria-disabled=true].btn-round:active{transform:none}.sidebar-topbar{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:12px;padding:10px 12px;background:#1e293b;border-bottom:1px solid #334155;flex-shrink:0;min-height:64px;color:#f8fafc;z-index:2}.sidebar-topbar-slot,.sidebar-mobile-actions{min-width:40px;min-height:40px;display:flex;align-items:center}.sidebar-mobile-actions{justify-content:flex-end}.sidebar-topbar-spacer,.settings-header-spacer{width:40px;height:40px;flex-shrink:0}.sidebar-topbar-btn{width:40px;height:40px;border-radius:999px;border:1px solid rgba(148,163,184,.32);background:#2563eb2e;color:inherit;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s ease,transform .18s ease,border-color .18s ease,color .18s ease}.sidebar-topbar-btn:hover{background:#2563eb47;border-color:#60a5fa73}.sidebar-topbar-btn:active{transform:scale(.97)}.sidebar-topbar-copy{min-width:0;width:100%;display:flex;align-items:center;justify-content:center;text-align:center}.sidebar-topbar-title{font-size:1.2rem;line-height:1.2;font-weight:800;color:inherit;width:100%;text-align:center}.sidebar-topbar-plus{background:#2563ebe6;border-color:#60a5fa6b;color:#fff}.sidebar-topbar-plus:hover,.sidebar-topbar-plus:active{background:#1d4ed8}.sidebar-topbar-back{background:#0f172adb;border-color:#94a3b861}.sidebar-topbar-mobile-only{display:inline-flex}#sidebarMain [data-sidebar-mode=settings],#sidebarMain .sidebar-pane-settings,#sidebarMain[data-sidebar-surface=settings] [data-sidebar-mode=chats],#sidebarMain[data-sidebar-surface=settings] .sidebar-pane-chats{display:none!important}#sidebarMain[data-sidebar-surface=settings] .sidebar-topbar-btn[data-sidebar-mode=settings]{display:inline-flex!important}#sidebarMain[data-sidebar-surface=settings] .sidebar-topbar-spacer[data-sidebar-mode=settings]{display:block!important}#sidebarMain[data-sidebar-surface=settings] .sidebar-pane-settings{display:flex!important}@media(min-width:900px){#sidebar{width:var(--sidebar-layout-width);flex:0 0 var(--sidebar-layout-width);position:relative;transform:none!important;border-right:1px solid #334155;overflow:visible}#sidebarMain{position:relative;left:auto;top:auto;bottom:auto;transform:none!important;opacity:1!important;pointer-events:auto!important;box-shadow:none}.sidebar-topbar-mobile-only{display:none!important}.sidebar-resizer{display:block;position:absolute;top:0;bottom:0;left:calc(var(--sidebar-layout-width) - 7px);width:14px;z-index:17045;cursor:col-resize;touch-action:none}.sidebar-resizer:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translate(-50%);border-radius:999px;background:#94a3b82e;transition:background .18s ease,box-shadow .18s ease}.sidebar-resizer:hover:before,body.is-resizing-sidebar .sidebar-resizer:before{background:#60a5fab8;box-shadow:0 0 0 1px #60a5fa2e}}@media(max-width:899px){:root{--nav-rail-width: 90px}#sidebar{flex:0 0 100%;width:100%;max-width:100%;z-index:60;transform:none!important;overflow:visible;pointer-events:none}#chatArea{flex:0 0 calc(100% - var(--nav-rail-width));width:calc(100% - var(--nav-rail-width));margin-left:var(--nav-rail-width)}#sidebar.chat-open-mobile+#chatArea{flex:1 1 100%;width:100%;margin-left:0;position:relative;z-index:17040}#sidebar.chat-open-mobile{flex-basis:0;width:0;min-width:0;max-width:0;z-index:10}#sidebar.chat-open-mobile.rail-open{flex-basis:100%;width:100%;min-width:100%;max-width:100%}.nav-rail{width:var(--nav-rail-width);min-width:var(--nav-rail-width);transform:none!important;transition:none;pointer-events:auto}#sidebarMain{position:absolute;left:var(--nav-rail-width);top:0;bottom:0;width:calc(100vw - var(--nav-rail-width));max-width:calc(100vw - var(--nav-rail-width));margin-left:0;transform:translate(0);opacity:1;pointer-events:auto;transition:transform .24s ease,opacity .24s ease;box-shadow:18px 0 34px #02061757;z-index:17020}#sidebar.chat-open-mobile #sidebarMain{transform:translate(calc(-100% - var(--nav-rail-width) - 24px));opacity:0;pointer-events:none}#sidebar.chat-open-mobile.rail-open #sidebarMain{transform:translate(0);opacity:1;pointer-events:auto}.sidebar-rail-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:var(--nav-rail-width);background:#0f172a73;backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .24s ease;z-index:17010}#sidebar.chat-open-mobile.rail-open .sidebar-rail-overlay{opacity:1;pointer-events:auto}#sidebar.chat-open-mobile .nav-rail{transform:translate(calc(-100% - 16px))!important;opacity:0;pointer-events:none}#sidebar.chat-open-mobile.rail-open .nav-rail{transform:translate(0)!important;opacity:1;pointer-events:auto}#sidebar.sidebar-hidden{transform:none!important}}.sidebar-hidden{transform:translate(-100%)}#messagesContainer{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px;padding-bottom:calc(18px + env(safe-area-inset-bottom));position:relative;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scroll-padding-bottom:calc(180px + env(safe-area-inset-bottom))}@media(min-width:900px){#messagesContainer{padding:16px 20px}}.message-bubble p,#messageInput,.contact-name{font-size:var(--base-size)}.contact-preview{font-size:var(--small-size)}#chatName{font-size:var(--title-size)}.menu-item{font-size:var(--base-size)}.mode-option{font-size:var(--small-size)}.pinned-message{flex-shrink:0;background:#3b82f61a;border-bottom:2px solid #3b82f6;padding:12px 16px;display:none;align-items:center;gap:12px;cursor:pointer;position:relative}.pinned-message.active{display:flex}.pinned-message:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#3b82f6}.pinned-icon{color:#3b82f6;font-size:20px}.pinned-content{flex:1;min-width:0}.pinned-name{font-size:var(--small-size);color:#3b82f6;font-weight:600;margin-bottom:2px}.pinned-text{font-size:var(--small-size);color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pinned-close{color:#94a3b8;cursor:pointer;padding:4px}.pinned-close:hover{color:#ef4444}.mode-selector{flex-shrink:0;width:100%;background:#1e293b;border-top:1px solid #334155;padding:8px 12px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.mode-selector::-webkit-scrollbar{display:none}body.keyboard-open #messagesContainer{scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom))}.mode-option{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;font-weight:600;white-space:nowrap;cursor:pointer;transition:transform .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease;border:2px solid transparent;background:#0f172a;color:#94a3b8;touch-action:manipulation}.mode-option:active{transform:scale(.95)}.mode-option.active{border-color:currentColor;background:#ffffff1a}.mode-option.normal{color:#60a5fa}.mode-option.normal.active{background:#3b82f633}.mode-option.ghost{color:#c084fc}.mode-option.ghost.active{background:#a855f733}.mode-option.burn{color:#fb923c}.mode-option.burn.active{background:#fb923c33}.mode-option.boomerang{color:#4ade80}.mode-option.boomerang.active{background:#4ade8033}.mode-option.shake{color:#f87171}.mode-option.shake.active{background:#f8717133}.mode-option.voice-expire{color:#facc15}.mode-option.voice-expire.active{background:#facc1533}.input-area{flex-shrink:0;width:100%;background:#1e293b;border-top:1px solid #334155;padding:10px 10px max(10px,env(safe-area-inset-bottom));position:relative;display:flex;flex-direction:column;gap:10px;overflow:visible;z-index:1005}@media(max-width:899px){body.composer-focus .mode-selector{display:block}body.composer-focus .input-area{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}}@media(min-width:900px){.input-area{padding:14px 16px max(14px,env(safe-area-inset-bottom))}}.input-wrapper{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-end;gap:8px;width:100%;margin:0;min-width:0}@media(min-width:900px){.input-wrapper{gap:12px}}.composer-tools-toggle,.composer-send-btn{width:44px;height:44px}.composer-tools-toggle{background:#334155eb;color:#e2e8f0;border:1px solid rgba(100,116,139,.55)}.composer-tools-toggle[aria-expanded=true]{background:#2563eb2e;border-color:#60a5fa8c;color:#bfdbfe}.composer-send-btn{background:linear-gradient(180deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 14px 30px #2563eb47}.composer-send-btn.composer-audio-mode{background:#0f172aeb;border:1px solid rgba(100,116,139,.52);color:#bfdbfe;box-shadow:0 12px 26px #0f172a47}.composer-send-btn.recording,.composer-send-btn.composer-audio-mode.recording{background:linear-gradient(180deg,#ef4444,#dc2626);color:#fff;border-color:#f871716b;box-shadow:0 16px 34px #ef444452}.composer-textarea-shell{position:relative;min-width:0;display:flex;align-items:stretch;flex:1 1 auto}#messageInput{width:100%;background:#0f172a;border:1px solid #475569;border-radius:22px;padding:11px 14px;color:#fff;line-height:1.45;max-height:min(160px,32vh);min-height:44px;resize:none;outline:none;-webkit-appearance:none;font-family:inherit;overflow-y:auto;overscroll-behavior:contain}@media(min-width:900px){.composer-tools-toggle,.composer-send-btn,.btn-round{width:48px;height:48px}#messageInput{min-height:48px;border-radius:24px;padding:12px 18px}}#messageInput:focus{border-color:#3b82f6;background:#172033}.btn-round{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;flex-shrink:0;transition:transform .15s ease,opacity .15s ease,background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;-webkit-touch-callout:none}.btn-round:active{transform:scale(.92);opacity:.8}.btn-round.recording{background:#ef4444!important;color:#fff!important;animation:pulse-red 1s infinite}.btn-round.feature-disabled-control{background:#334155b8!important;color:#94a3b8!important}.composer-tools-menu,.gif-menu{position:fixed;left:12px;transform:none;background:#1e293b;border:1px solid #334155;border-radius:20px;box-shadow:0 18px 48px #0206177a;z-index:var(--z-floating-menu)}.composer-tools-menu{width:min(272px,calc(100vw - 24px));max-width:calc(100vw - 24px);display:grid;gap:4px;padding:10px;overflow-y:auto}.composer-tools-item{width:100%;min-height:50px;border:none;background:#0f172ab3;border-radius:16px;padding:0 14px;color:#e2e8f0;display:flex;align-items:center;gap:12px;text-align:left;font-weight:700;transition:background .18s ease,color .18s ease,transform .18s ease}.composer-tools-item:hover,.composer-tools-item:focus-visible{background:#2563eb33;color:#eff6ff}.composer-tools-item i,.composer-tools-item-gif{width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#2563eb29;color:#93c5fd;font-size:.82rem;flex-shrink:0}.composer-tools-item-gif{font-size:.68rem;font-weight:800;letter-spacing:.06em}.gif-menu{width:min(var(--gif-menu-max-width, 360px),calc(100vw - 24px));max-width:calc(100vw - 24px);padding:12px;display:none;max-height:var(--gif-menu-max-height, 420px);overflow:hidden}.gif-menu.active{display:block;animation:popIn .2s ease}.gif-search-box{position:relative;margin-bottom:8px}.gif-search-box i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8}.gif-search-box input{width:100%;background:#0f172a;border:1px solid #475569;border-radius:12px;padding:8px 12px 8px 36px;color:#fff;font-size:14px;outline:none;transition:border-color .2s}.gif-search-box input:focus{border-color:#3b82f6}.gif-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:calc(var(--gif-menu-max-height, 420px) - 120px);overflow-y:auto}.gif-item img{width:100%;height:80px;object-fit:contain;background:transparent;border-radius:8px;cursor:pointer;transition:transform .2s}.gif-item:hover img{transform:scale(1.1);background:#3b82f633}.reactions-container{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}.reaction{display:inline-flex;align-items:center;gap:2px;padding:2px 6px;background:#ffffff1a;border-radius:12px;font-size:var(--small-size);cursor:pointer;transition:transform .16s ease,background-color .16s ease;user-select:none}.reaction:hover{transform:scale(1.1)}.reaction.me{background:#3b82f6;color:#fff}.voice-message{display:flex;align-items:center;gap:12px;min-width:200px}.voice-wave-container{flex:1;height:40px;display:flex;align-items:center;cursor:pointer}.voice-wave-canvas{width:100%;height:100%;border-radius:8px}.speed-control{display:flex;gap:4px;margin-top:4px;justify-content:center}.speed-btn{padding:2px 6px;border-radius:10px;font-size:10px;background:#ffffff1a;color:#94a3b8;border:none;cursor:pointer;transition:transform .16s ease,background-color .16s ease,color .16s ease}.speed-btn.active{background:#3b82f6;color:#fff}.swipe-cancel-area{position:absolute;top:-60px;left:50%;transform:translate(-50%);background:#ef4444;color:#fff;padding:8px 16px;border-radius:30px;font-size:12px;font-weight:700;display:none;align-items:center;gap:8px;z-index:100;animation:slideDown .2s ease;white-space:nowrap}.swipe-cancel-area.active{display:flex}.voice-expire-bar{position:absolute;bottom:0;left:0;height:3px;background:linear-gradient(90deg,#f59e0b,#ef4444);border-radius:0 0 0 12px}.mention{background:#3b82f633;color:#3b82f6;font-weight:600;padding:2px 4px;border-radius:12px;cursor:pointer;transition:background-color .16s ease,color .16s ease}.mention:hover{background:#3b82f64d}.mention.self-mention{background:#3b82f64d;border:1px solid #3b82f6}.mention-badge{background:#3b82f6;color:#fff;font-size:10px;padding:2px 6px;border-radius:10px;margin-left:4px}.mention-menu{position:absolute;left:0;bottom:calc(100% + 8px);width:min(260px,100%);background:#1e293b;border:1px solid #334155;border-radius:14px;max-height:220px;overflow-y:auto;z-index:var(--z-floating-menu);box-shadow:0 10px 40px #00000080;display:none}.mention-menu.active{display:block}.mention-item{padding:10px 12px;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background .2s}.mention-item:hover{background:#ffffff1a}.mention-item.selected{background:#3b82f64d}.contact-dnd{position:relative}.dnd-icon{position:absolute;bottom:-2px;right:-2px;background:#ef4444;color:#fff;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:8px;border:2px solid #1e293b}.recording-indicator{display:none;align-items:center;justify-content:center;gap:12px;color:#ef4444;font-weight:600;padding:8px;font-size:var(--base-size);background:#ef44441a;border-radius:12px;margin:0 12px 8px;position:relative;z-index:calc(var(--z-floating-toast) - 1)}.recording-indicator.active{display:flex}.recording-dot{width:12px;height:12px;background:#ef4444;border-radius:50%;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)}}.reply-preview{background:#3b82f61a;border-left:3px solid #3b82f6;padding:8px 12px;margin:0 12px 8px;border-radius:0 8px 8px 0;display:none;position:relative}.reply-preview.active{display:block}.edit-preview{background:#a855f71a;border-left-color:#a855f7}.reply-preview .reply-name{color:#3b82f6;font-weight:600;margin-bottom:2px;font-size:var(--small-size)}.edit-preview .reply-name{color:#c084fc}.reply-preview .reply-text{color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--small-size)}.reply-preview button{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:#94a3b8;background:none;border:none;cursor:pointer}.message-edited-label{color:#cbd5e1;font-weight:700;letter-spacing:.02em}.message-bubble{width:fit-content;max-width:min(90%,500px);min-width:60px;word-wrap:break-word;overflow-wrap:anywhere;hyphens:auto;position:relative;cursor:pointer;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}.message-bubble.highlighted{position:relative;z-index:10004!important;box-shadow:0 0 0 2px #3b82f6,0 10px 30px #0009!important;transform:scale(1.02);transition:transform .2s cubic-bezier(.175,.885,.32,1.275)}.message-pop.menu-target{position:relative;z-index:10003!important}.message-bubble.has-reply{padding-top:8px}.quoted-content{background:#ffffff1a;border-left:2px solid rgba(255,255,255,.3);padding:4px 8px;margin-bottom:6px;border-radius:0 4px 4px 0;opacity:.9}@media(min-width:900px){.message-bubble{max-width:min(75%,600px)}}@media(min-width:1024px){.message-bubble{max-width:min(65%,550px)}}.message-pop{animation:messagePop .25s cubic-bezier(.34,1.56,.64,1);will-change:transform}@keyframes messagePop{0%{transform:scale(.3) translateY(10px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}.shake{animation:shake .5s cubic-bezier(.36,.07,.19,.97) both}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.ghost-text{filter:blur(5px);transition:filter .2s;user-select:none}.ghost-text:hover,.ghost-text:active{filter:blur(0)}.burn-bar{position:absolute;bottom:0;left:0;height:3px;background:linear-gradient(90deg,#f59e0b,#ef4444);animation:burn 10s linear forwards;border-radius:0 0 0 12px}@keyframes burn{0%{width:100%}to{width:0%}}@keyframes boomerang{0%{transform:translate(0)}30%{transform:translate(18px)}60%{transform:translate(-8px)}80%{transform:translate(6px)}to{transform:translate(0)}}.boomerang-anim{animation:boomerang .7s ease forwards}.chat-image{max-width:100%;max-height:200px;border-radius:12px;cursor:pointer;display:block;object-fit:cover}@media(min-width:900px){.chat-image{max-height:300px}}.chat-sticker{max-width:160px;max-height:160px;object-fit:contain;background:transparent;border-radius:0;cursor:pointer;display:block}@media(min-width:900px){.chat-sticker{max-width:200px;max-height:200px}}.file-card{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;background:#0f172a6b;border:1px solid rgba(148,163,184,.18);backdrop-filter:blur(10px);min-width:min(280px,72vw);max-width:min(360px,82vw)}.file-card-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#3b82f62e;color:#93c5fd;flex-shrink:0}.file-card-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.file-card-title{font-size:.9rem;font-weight:700;color:#f8fafc;word-break:break-word}.file-card-meta{display:flex;flex-wrap:wrap;gap:6px;color:#94a3b8;font-size:.72rem}.file-card-meta span{padding:3px 8px;border-radius:999px;background:#334155bf}.file-card-cta{font-size:.76rem;font-weight:700;color:#bfdbfe;margin-top:2px}.date-separator{display:flex;align-items:center;justify-content:center;margin:16px 0 14px}.date-separator span{padding:6px 12px;border-radius:999px;font-size:.74rem;font-weight:700;color:#cbd5e1;background:#0f172a8c;border:1px solid rgba(148,163,184,.16);backdrop-filter:blur(10px)}.image-preview-container{flex-shrink:0;background:#1e293b;border-top:1px solid #334155;padding:8px 12px;display:none}.image-preview-container.active{display:block}.preview-box{position:relative;display:inline-block;margin-right:8px;margin-bottom:8px}.preview-box img{max-height:60px;border-radius:8px;border:2px solid #3b82f6}.preview-box button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;background:#ef4444;color:#fff;border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:11px;box-shadow:0 2px 4px #0000004d}#imageModal{display:none;position:fixed;inset:0;background:#000000f2;z-index:3000;align-items:center;justify-content:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#imageModal.active{display:flex}#imageModal img{max-width:100%;max-height:100%;object-fit:contain}input[type=file]{display:none}.typing-bubble span{display:inline-block;width:6px;height:6px;background:#64748b;border-radius:50%;margin:0 1px;animation:typing 1.4s infinite ease-in-out both}.typing-bubble span:nth-child(1){animation-delay:-.32s}.typing-bubble span:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(.6)}40%{transform:scale(1)}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#475569;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#64748b}@keyframes pulse-red{0%,to{box-shadow:0 0 #ef4444b3}50%{box-shadow:0 0 0 10px #ef444400}}.chat-header{flex-shrink:0;background:#1e293b;border-bottom:1px solid #334155;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));display:flex;align-items:center;gap:10px;z-index:5;position:relative}.chat-header-identity{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:10px}.chat-header-copy{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:2px}.chat-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.chat-header-primary{display:flex;align-items:center;gap:6px}.chat-header-action-btn{width:38px;height:38px;border:1px solid rgba(100,116,139,.34);border-radius:999px;background:#0f172ab8;color:#cbd5e1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease}.chat-header-action-btn:hover,.chat-header-action-btn:focus-visible{background:#2563eb29;border-color:#60a5fa6b;color:#eff6ff}.chat-header-action-btn:active{transform:scale(.96)}.chat-header-overflow{position:relative}.chat-header-more-btn[aria-expanded=true]{background:#2563eb33;border-color:#60a5fa7a;color:#bfdbfe}.chat-header-menu{position:fixed;top:0;left:12px;width:min(248px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(62vh,340px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#111827;border:1px solid rgba(51,65,85,.95);border-radius:16px;padding:5px;box-shadow:0 22px 50px #02061785;z-index:var(--z-floating-menu)}.chat-header-menu-section+.chat-header-menu-section{margin-top:6px;padding-top:6px;border-top:1px solid rgba(51,65,85,.85)}.chat-header-menu-item{width:100%;border:none;background:transparent;border-radius:14px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#e2e8f0;text-align:left;font-weight:700;transition:background .18s ease,color .18s ease,transform .18s ease}.chat-header-menu-item:hover,.chat-header-menu-item:focus-visible{background:#2563eb29;color:#f8fafc}.chat-header-menu-item-main{min-width:0;display:inline-flex;align-items:center;gap:10px;font-size:.88rem}.chat-header-menu-item-main i{width:16px;text-align:center;flex-shrink:0}.chat-header-menu-section-danger .chat-header-menu-item{color:#fecaca}.chat-header-menu-section-danger .chat-header-menu-item:hover,.chat-header-menu-section-danger .chat-header-menu-item:focus-visible{background:#7f1d1d59;color:#fee2e2}@media(min-width:900px){.chat-header{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}.chat-header-action-btn{width:42px;height:42px}}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}.message-menu{position:fixed;background:#1e293b;border-radius:16px;padding:6px 0;display:none;flex-direction:column;box-shadow:0 15px 50px #0009;z-index:10006;border:1px solid #334155;min-width:220px;width:min(280px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(70vh,420px);overflow-y:auto;transform-origin:top left}.message-menu.active{display:flex;animation:menuPop .2s cubic-bezier(.175,.885,.32,1.275)}@keyframes menuPop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.message-menu-preview{padding:14px 16px 12px;border-bottom:1px solid #334155;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#0f172ad1,#0f172a4d)}.message-menu-preview.hidden{display:none}.menu-preview-media{width:100%;max-height:220px;border-radius:18px;object-fit:cover;display:block;background:#0f172a73}.menu-preview-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#93c5fd;font-size:.76rem;font-weight:700}.menu-preview-topline span:last-child{color:#94a3b8;font-weight:600}.menu-preview-title{color:#f8fafc;font-weight:800;line-height:1.4;word-break:break-word}.menu-preview-body{color:#cbd5e1;font-size:.84rem;line-height:1.55;word-break:break-word}.menu-preview-meta{display:flex;flex-wrap:wrap;gap:8px}.menu-preview-meta span{border-radius:999px;background:#334155b8;color:#cbd5e1;font-size:.72rem;font-weight:600;padding:4px 8px}.menu-section{padding:6px 0;border-top:1px solid rgba(51,65,85,.75)}#messageMenu .menu-section:nth-child(3){border-top:0}.reaction-row{display:flex;gap:8px;padding:8px 16px 12px;border-bottom:1px solid #334155;margin-bottom:4px;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.reaction-btn{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;transition:transform .1s;background:transparent;border:none}.reaction-btn:hover,.reaction-btn:active{background:#ffffff1a;transform:scale(1.2)}.reaction-btn-more{font-size:18px;font-weight:800;color:#cbd5e1}.menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 12px);margin:0 6px;padding:12px 14px;border-radius:14px;cursor:pointer;transition:transform .15s ease,background-color .15s ease,color .15s ease;color:#e2e8f0;background:transparent;border:none;text-align:left}.menu-item-content{display:flex;align-items:center;gap:12px;min-width:0}.menu-item-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.menu-item-copy span{font-weight:700}.menu-item-copy small{color:#94a3b8;font-size:.72rem;line-height:1.35}.menu-item:hover{background:#ffffff1a}.menu-item.delete{color:#ef4444}.message-menu.mobile-sheet{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px);left:12px!important;right:12px;top:auto!important;border-radius:22px 22px 16px 16px;padding-bottom:max(8px,env(safe-area-inset-bottom));transform-origin:bottom center}.menu-overlay{position:fixed;inset:0;background:#0f172a80;backdrop-filter:blur(3px);z-index:10000;opacity:0;pointer-events:none;transition:opacity .2s}.menu-overlay.hidden{display:none!important}.menu-overlay.active{opacity:1;pointer-events:auto}.swipe-action-icon{position:absolute;width:36px;height:36px;background:#334155;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;opacity:0;transform:scale(.5);transition:opacity .2s,transform .2s;z-index:10}.swipe-action-icon.active{background:#3b82f6;transform:scale(1)}.search-container{padding:8px 12px;background:#1e293b;border-bottom:1px solid #334155;display:none}.search-container.active{display:block}.search-input{width:100%;background:#0f172a;border:1px solid #475569;border-radius:20px;padding:8px 16px;color:#fff;outline:none}.avatar-media-shell{width:100%;height:100%;display:block;border-radius:inherit;overflow:hidden}.avatar-media-shell[data-avatar-format=svg]{padding:14%;background:radial-gradient(circle at top,rgba(255,255,255,.22),transparent 48%),#0f172a2e}.avatar-media{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}.avatar-media-shell[data-avatar-format=svg] .avatar-media,.incoming-call-avatar .avatar-media-shell[data-avatar-format=svg] .avatar-media,.call-avatar-fallback .avatar-media-shell[data-avatar-format=svg] .avatar-media{object-fit:contain;border-radius:22%;background:#ffffff0f}.settings-side-panel{display:none}.settings-modal{display:none;position:fixed;inset:0 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom)) 0;background:#020617eb;z-index:var(--z-floating-modal);isolation:isolate;align-items:stretch;justify-content:stretch;padding:0;overflow:hidden;backdrop-filter:blur(10px)}.settings-modal.active{display:flex}.settings-content{background:linear-gradient(180deg,#0f172afa,#0f172af5);flex:1 1 auto;min-width:0;width:auto;max-width:none;height:100%;max-height:none;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid rgba(51,65,85,.95);box-shadow:-24px 0 60px #02061759;isolation:isolate}.settings-header{position:sticky;top:0;z-index:3;padding:16px 18px;border-bottom:1px solid #334155;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:12px;background:#0f172af5;backdrop-filter:blur(16px);color:#f8fafc}.settings-header-copy{display:flex;align-items:center;justify-content:center;justify-self:center;min-width:0;width:100%;text-align:center;color:inherit}.settings-modal-title{margin:0;font-size:1.25rem;line-height:1.2;font-weight:800;color:#f8fafc;width:100%;text-align:center}.settings-header-copy>div,.settings-header-title-wrap{min-width:0;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.settings-header-subtitle{display:none;margin-top:4px;color:#94a3b8;font-size:.82rem;line-height:1.45}.settings-mobile-back{width:40px;height:40px;border-radius:999px;border:1px solid #334155;background:#0f172aeb;color:#cbd5e1;display:inline-flex;align-items:center;justify-content:center;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}.settings-mobile-back:active{transform:scale(.97)}.settings-mobile-back.hidden{visibility:hidden;pointer-events:none}.settings-overview-list{display:flex;flex-direction:column;gap:12px;padding:10px 0 4px}.settings-overview-item{width:100%;min-height:64px;border-radius:22px;border:1px solid rgba(51,65,85,.92);background:#0f172ad6;color:#e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;text-align:left;font-size:.96rem;font-weight:700;transition:border-color .18s ease,background .18s ease,transform .18s ease}.settings-overview-item span{display:inline-flex;align-items:center;gap:12px}.settings-overview-item i:last-child{color:#94a3b8}.settings-overview-item:active{transform:scale(.985)}.settings-overview-item:hover{background:#3b82f629;color:#bfdbfe;border-color:#60a5faa6}.settings-section{display:none;padding:18px 24px 24px;border-bottom:1px solid #334155;min-height:0}.settings-section.active{display:flex;flex:1 1 auto;flex-direction:column;overflow-y:auto}.emergency-stack{gap:16px}.emergency-card{background:#0f172ab8;border:1px solid #334155;border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:14px}.emergency-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.emergency-status-box{border-radius:18px;border:1px solid #334155;background:#020617b8;padding:12px;display:flex;flex-direction:column;gap:6px}.emergency-status-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}.emergency-status-value{font-size:.95rem;color:#f8fafc}.emergency-contacts-list,.emergency-relay-messages{display:flex;flex-direction:column;gap:10px}.emergency-contact-item{border-radius:18px;border:1px solid #334155;background:#020617b8;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.emergency-contact-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.emergency-contact-copy strong{color:#f8fafc;font-size:.95rem}.emergency-contact-copy span{color:#94a3b8;font-size:.78rem;line-height:1.4}.emergency-contact-actions{display:flex;align-items:center;gap:8px}.emergency-contact-btn{min-width:42px;height:42px;border-radius:14px;border:1px solid rgba(148,163,184,.18);background:#0f172ae6;color:#e2e8f0;display:inline-flex;align-items:center;justify-content:center;font-weight:700;transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease}.emergency-contact-btn:active{transform:scale(.97)}.emergency-contact-btn.primary{padding:0 14px;min-width:auto;color:#bfdbfe;border-color:#60a5fa59}.emergency-contact-btn.favorite{color:#fde68a;border-color:#facc154d}.emergency-relay-target{border-radius:18px;border:1px solid #334155;background:#020617b8;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.emergency-relay-entry{border-radius:18px;border:1px solid #334155;background:#020617bd;padding:12px 14px}.emergency-relay-entry.outgoing{border-color:#3b82f66b;background:#1e40af2e}.emergency-relay-entry-meta{display:flex;justify-content:space-between;gap:12px;color:#94a3b8;font-size:.72rem;margin-bottom:6px}.emergency-relay-entry-body{color:#f8fafc;line-height:1.5;white-space:pre-wrap;word-break:break-word}.emergency-code-area,.emergency-message-input{width:100%;border-radius:18px;border:1px solid #334155;background:#020617d1;color:#e2e8f0;padding:14px 16px;resize:vertical;outline:none}.emergency-code-area{min-height:120px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;line-height:1.45;word-break:break-all}.emergency-message-input{min-height:86px;font-size:.95rem}.emergency-messages-list{min-height:110px;max-height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.emergency-message-item{border-radius:18px;border:1px solid #334155;background:#020617bd;padding:12px 14px}.emergency-message-item.me{border-color:#3b82f666;background:#1e40af2e}.emergency-message-meta{display:flex;justify-content:space-between;gap:12px;font-size:.72rem;color:#94a3b8;margin-bottom:6px}.emergency-message-body{color:#f8fafc;line-height:1.5;white-space:pre-wrap;word-break:break-word}.emergency-compose-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.emergency-advanced{border:1px solid #334155;border-radius:18px;background:#0206178f;overflow:hidden}.emergency-advanced summary{list-style:none;cursor:pointer;padding:14px 16px;color:#cbd5e1;font-weight:700}.emergency-advanced summary::-webkit-details-marker{display:none}.emergency-advanced-body{padding:0 16px 16px}.emergency-qr-shell{margin-top:4px;border-radius:22px;border:1px solid #334155;background:#020617ad;padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px}.emergency-qr-box{min-width:220px;min-height:220px;border-radius:22px;background:#fff;padding:12px;display:flex;align-items:center;justify-content:center}.emergency-qr-box>div,.emergency-qr-box canvas,.emergency-qr-box img{max-width:100%;height:auto}.emergency-scan-modal{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:20px;background:#020617d6;backdrop-filter:blur(18px);opacity:0;pointer-events:none;transition:opacity .18s ease}.emergency-scan-modal.active{opacity:1;pointer-events:auto}.emergency-scan-sheet{width:min(100%,420px);border-radius:28px;border:1px solid rgba(148,163,184,.24);background:#0f172af5;box-shadow:0 28px 90px #02061773;padding:18px;display:flex;flex-direction:column;gap:16px}.emergency-scan-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.emergency-scan-header h3{margin:0;color:#f8fafc;font-size:1.2rem;font-weight:800}.emergency-scan-header p{margin:6px 0 0;color:#94a3b8;font-size:.84rem;line-height:1.5}.emergency-scan-close{width:40px;height:40px;border-radius:999px;border:1px solid rgba(148,163,184,.2);background:#1e293beb;color:#e2e8f0;display:flex;align-items:center;justify-content:center;flex-shrink:0}.emergency-scan-video-wrap{position:relative;width:100%;aspect-ratio:1 / 1;border-radius:24px;overflow:hidden;background:#020617;border:1px solid rgba(148,163,184,.16)}.emergency-scan-video{width:100%;height:100%;object-fit:cover;display:block}.emergency-scan-target{position:absolute;inset:18%;border:3px solid rgba(96,165,250,.92);border-radius:28px;box-shadow:0 0 0 999px #02061752,0 0 0 1px #ffffff1f inset}.emergency-scan-status{min-height:50px;border-radius:18px;border:1px solid rgba(148,163,184,.16);background:#0f172ad1;color:#bfdbfe;display:flex;align-items:center;gap:10px;padding:12px 14px;font-size:.9rem;font-weight:600}.emergency-scan-status[data-tone=green]{color:#86efac}.emergency-scan-status[data-tone=yellow]{color:#fde68a}.emergency-scan-status[data-tone=red]{color:#fca5a5}.settings-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.settings-stack{display:flex;flex-direction:column;gap:14px;padding:12px 0}.settings-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-caption{font-size:.78rem;color:#94a3b8;line-height:1.5}.settings-segment{display:flex;gap:10px;flex-wrap:wrap}.settings-pill{border:1px solid #334155;background:#0f172a;color:#cbd5e1;border-radius:999px;padding:8px 14px;font-size:.84rem;font-weight:700;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}.settings-pill.active{background:#3b82f629;color:#bfdbfe;border-color:#60a5faa6}.settings-pill:active{transform:scale(.98)}.settings-range-wrap{display:flex;flex-direction:column;gap:10px}.settings-range{width:100%;appearance:none;height:8px;border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa);outline:none}.settings-range::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #1d4ed8;box-shadow:0 4px 16px #2563eb59}.settings-range::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid #1d4ed8;box-shadow:0 4px 16px #2563eb59}.settings-range-scale{display:flex;justify-content:space-between;color:#94a3b8;font-size:.74rem}.settings-preview-box{background:#0f172ab8;border:1px solid #334155;border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}.settings-select-wrap{display:flex;flex-direction:column;gap:10px}.settings-select-label{font-size:.78rem;color:#94a3b8;font-weight:700}.settings-select{width:100%;min-height:52px;border-radius:18px;border:1px solid #334155;background:#0f172aeb;color:#e2e8f0;padding:0 16px;outline:none;font-size:.95rem;font-weight:600;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#94a3b8 50%),linear-gradient(135deg,#94a3b8 50%,transparent 50%);background-position:calc(100% - 24px) calc(50% - 3px),calc(100% - 18px) calc(50% - 3px);background-size:6px 6px,6px 6px;background-repeat:no-repeat}.settings-select:focus{border-color:#60a5fad9;box-shadow:0 0 0 3px #3b82f62e}.profile-settings-card{display:flex;flex-direction:column;gap:18px;padding:10px 0 4px;flex:1 1 auto;min-height:100%}.profile-settings-top{display:flex;gap:18px;align-items:flex-start}.profile-avatar-picker{position:relative;width:92px;height:92px;border:none;background:transparent;padding:0;cursor:pointer;flex-shrink:0}.profile-avatar-core{width:100%;height:100%;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1d4ed8);display:flex;align-items:center;justify-content:center;color:#fff;font-size:2rem;font-weight:800;overflow:hidden;box-shadow:0 18px 34px #2563eb38}.profile-avatar-edit{position:absolute;right:-4px;bottom:-4px;width:34px;height:34px;border-radius:50%;background:#0f172a;border:2px solid #1d4ed8;display:flex;align-items:center;justify-content:center;color:#bfdbfe;box-shadow:0 8px 16px #0206174d}.profile-settings-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}.profile-name-input{width:100%;min-height:52px;border-radius:18px;border:1px solid #334155;background:#0f172aeb;color:#e2e8f0;padding:0 16px;outline:none;font-size:.98rem;font-weight:700}.profile-name-input:focus{border-color:#60a5fad9;box-shadow:0 0 0 3px #3b82f62e}.profile-id-chip{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;width:fit-content;max-width:100%;padding:10px 14px;border-radius:999px;border:1px solid #334155;background:#0f172ab8;color:#94a3b8;font-size:.78rem}.profile-id-chip code{color:#dbeafe;font-size:.76rem;word-break:break-all}.profile-settings-actions{display:flex;gap:10px;flex-wrap:wrap}.profile-qr-card{border-radius:28px;border:1px solid #334155;background:#0f172aad;padding:28px 22px 24px;display:flex;flex-direction:column;gap:20px;align-items:center;text-align:center;margin-top:4px}#settingsSectionProfile.active .profile-settings-card{flex:1 1 auto}#settingsSectionProfile.active .profile-qr-card{margin-top:0;flex:1 1 auto}.profile-qr-header{display:flex;flex-direction:column;align-items:center;gap:8px}.profile-qr-avatar{width:76px;height:76px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:800;overflow:hidden;box-shadow:0 0 0 4px #ffffff0d,0 14px 28px #2563eb38}.profile-qr-header strong{font-size:1.35rem;line-height:1.1}.profile-qr-subtitle{color:#94a3b8;font-size:.84rem}.profile-qr-caption{color:#94a3b8;font-size:.82rem;line-height:1.55;max-width:420px}.profile-qr-shell{background:#fff;border-radius:24px;padding:18px 18px 14px;box-shadow:0 18px 38px #02061738;flex-shrink:0}#settingsProfileQRCode{display:flex;align-items:center;justify-content:center}#settingsProfileQRCode img,#settingsProfileQRCode canvas{display:block;max-width:100%}#qr-container.scanning{box-shadow:0 0 0 1px #60a5fa73,0 18px 34px #2563eb2e}@media(min-width:900px){.settings-modal{inset:0 0 0 var(--sidebar-settings-width);background:#0f172a}.settings-content{width:auto;max-width:none;overflow:hidden;scrollbar-gutter:stable;box-shadow:none}body.settings-open #sidebar{filter:none;opacity:1;pointer-events:auto}#sidebarMain{min-height:0}#sidebarMain[data-sidebar-surface=settings]{background:#1e293b}#sidebarMain[data-sidebar-surface=settings] #settingsSidebarPanel{flex:1 1 auto;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-gutter:stable}body.settings-open .settings-section.active{overflow-y:auto;min-height:0;padding-bottom:28px}#settingsSectionOverview,#settingsMobileBackBtn,.settings-header-subtitle{display:none!important}.settings-side-panel{display:none;flex-direction:column;gap:14px;height:100%;overflow-y:auto;overflow-x:hidden;padding:14px 14px 22px;min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}.settings-side-panel>*{flex:0 0 auto}.settings-side-header{padding:18px 18px 8px}.settings-side-topline{display:flex;align-items:center;gap:10px;margin-bottom:8px}.settings-side-icon{width:34px;height:34px;border-radius:12px;background:#3b82f61f;color:#60a5fa;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #60a5fa24}.settings-side-header h2{color:#f8fafc;font-size:1.2rem;font-weight:800}.settings-side-header p{color:#94a3b8;font-size:.85rem;line-height:1.5}.settings-side-profile-card{border:none;background:#0f172abd;border-radius:24px;padding:18px;display:flex;align-items:center;gap:14px;cursor:pointer;box-shadow:inset 0 0 0 1px #334155e6;text-align:left}.settings-side-avatar{width:62px;height:62px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:800;overflow:hidden;flex-shrink:0}.settings-side-profile-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.settings-side-profile-copy strong{color:#f8fafc;font-size:1.02rem;font-weight:800}.settings-side-profile-copy span{color:#94a3b8;font-size:.77rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all}.settings-side-group{background:#0f172abd;border-radius:24px;box-shadow:inset 0 0 0 1px #334155e6;overflow:hidden}.settings-side-item{width:100%;border:none;background:transparent;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;color:#e2e8f0;font-size:.98rem;font-weight:700;cursor:pointer;transition:background .18s ease,color .18s ease}.settings-side-item+.settings-side-item{border-top:1px solid rgba(51,65,85,.9)}.settings-side-item span{display:inline-flex;align-items:center;gap:10px}.settings-side-item i:last-child{color:#94a3b8}.settings-side-item.active{background:#2563eb29;color:#bfdbfe}.settings-side-item.active i:last-child{color:#bfdbfe}.settings-content{overflow:hidden}#settingsSectionProfile.active{gap:16px}#settingsSectionProfile.active>h4{flex:0 0 auto}}@media(min-width:900px){#settingsSectionProfile.active{display:grid;grid-template-rows:auto minmax(0,1fr);align-content:stretch}#settingsSectionProfile.active .profile-settings-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:24px;align-items:stretch;min-height:0;height:100%}#settingsSectionProfile.active .profile-settings-top{min-height:0}#settingsSectionProfile.active .profile-qr-card{min-height:100%;height:100%;margin-top:0;justify-content:center}}@media(min-width:1024px){:root{--sidebar-default-width: 420px;--sidebar-settings-width: 420px}}@media(min-width:1200px){.settings-header,.settings-section{padding-left:32px;padding-right:32px}}@media(max-width:899px){.emergency-status-grid,.emergency-compose-row{grid-template-columns:1fr}.settings-modal{inset:0 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom)) 0}.profile-settings-top,.profile-qr-card{flex-direction:column;align-items:stretch}.profile-avatar-picker,.profile-qr-shell{align-self:center}.settings-section{padding:16px 18px 22px;min-height:0;border-bottom:none}#settingsSectionOverview.active{display:block}.settings-header{padding:14px 16px}.chat-header-menu{border-radius:14px;padding:4px}.chat-header-menu-item{padding:9px 10px}.chat-header-menu-item-main{font-size:.84rem;gap:9px}#sidebar.chat-open-mobile+#chatArea,#sidebar.chat-open-mobile+#chatArea #activeChat,#sidebar.chat-open-mobile+#chatArea #emptyState{min-height:100dvh}}.security-stack{display:flex;flex-direction:column;gap:12px;padding:12px 0}.security-grid{display:grid;grid-template-columns:1fr;gap:10px}@media(min-width:640px){.security-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.security-card{background:#0f172ab8;border:1px solid #334155;border-radius:20px;padding:16px}.security-card.compact{padding:14px}.security-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.security-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:800;letter-spacing:.02em;margin-bottom:10px;border:1px solid transparent}.security-badge.good{background:#10b98124;color:#a7f3d0;border-color:#10b98157}.security-badge.warn{background:#3b82f61f;color:#bfdbfe;border-color:#60a5fa59}.security-badge.danger{background:#ef444424;color:#fecaca;border-color:#f8717157}.security-badge.info{background:#6366f124;color:#c7d2fe;border-color:#818cf852}.security-badge.neutral{background:#47556947;color:#cbd5e1;border-color:#64748b59}.security-title{color:#f8fafc;font-size:1rem;font-weight:800;line-height:1.35}.security-body{color:#cbd5e1;font-size:.9rem;line-height:1.6;margin-top:8px}.security-label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;font-weight:800;margin-bottom:8px}.security-code{display:block;width:100%;padding:12px 14px;border-radius:14px;border:1px solid #334155;background:#02061780;color:#e2e8f0;font-size:.87rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.55;word-break:break-all;white-space:normal}.security-card-footer{display:flex;gap:10px;margin-top:12px}.security-btn,.security-icon-btn{border:0;cursor:pointer;font-weight:700;transition:transform .18s ease,opacity .18s ease,background .18s ease,color .18s ease}.security-btn{border-radius:14px;padding:10px 14px;background:#2563eb;color:#fff}.security-btn.secondary{background:#1e293beb;border:1px solid #334155;color:#cbd5e1}.security-btn.danger{background:#dc2626}.security-btn:disabled{opacity:.46;cursor:not-allowed}.security-icon-btn{width:40px;height:40px;border-radius:14px;background:#1e293be6;border:1px solid #334155;color:#cbd5e1;display:flex;align-items:center;justify-content:center}.security-btn:active,.security-icon-btn:active{transform:scale(.98)}.security-facts{display:flex;flex-direction:column;gap:10px}.security-fact{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:18px;border:1px solid #334155;background:#0f172a99}.security-fact-icon{width:36px;height:36px;border-radius:12px;flex-shrink:0;background:#3b82f624;color:#93c5fd;display:flex;align-items:center;justify-content:center}.security-fact-title{color:#e2e8f0;font-size:.88rem;font-weight:700;margin-bottom:4px}.security-fact-body{color:#94a3b8;font-size:.82rem;line-height:1.5}.privacy-shield{position:fixed;inset:0;z-index:15050;display:none;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top,rgba(59,130,246,.14),transparent 34%),#020617eb;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.privacy-shield.active{display:flex}.privacy-shield-card{width:min(100%,320px);padding:24px 22px;border-radius:24px;border:1px solid rgba(148,163,184,.28);background:#0f172ae6;box-shadow:0 24px 80px #02061773;text-align:center}.privacy-shield-icon{width:62px;height:62px;margin:0 auto 14px;border-radius:20px;background:#3b82f629;color:#bfdbfe;display:flex;align-items:center;justify-content:center;font-size:26px}.privacy-shield-card h3{color:#f8fafc;font-size:1.1rem;font-weight:800;margin-bottom:8px}.privacy-shield-card p{color:#cbd5e1;font-size:.92rem;line-height:1.55}.privacy-shield-btn{margin-top:18px;width:100%;border:0;border-radius:14px;padding:12px 16px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer}.privacy-shield-btn:active{transform:scale(.99)}.toggle{width:50px;height:28px;background:#475569;border-radius:14px;position:relative;cursor:pointer;transition:background-color .22s ease,border-color .22s ease}.toggle.active{background:#3b82f6}.toggle:after{content:"";position:absolute;width:24px;height:24px;background:#fff;border-radius:50%;top:2px;left:2px;transition:transform .22s cubic-bezier(.23,1,.32,1)}.toggle.active:after{left:24px}@keyframes highlight{0%,to{background:transparent}50%{background:#3b82f64d}}.highlight-message{animation:highlight 2s ease}.forward-modal{display:none;position:fixed;inset:0;background:#000c;z-index:1500;align-items:flex-end;justify-content:center}.forward-modal.active{display:flex}.forward-content{background:#1e293b;border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow-y:auto;border:1px solid #334155;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.forward-header{padding:20px;border-bottom:1px solid #334155;display:flex;justify-content:space-between;align-items:center}#toast{position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translate(-50%);background:#1e293bf2;backdrop-filter:blur(10px);color:#fff;padding:12px 20px;border-radius:50px;box-shadow:0 10px 40px #0006;z-index:var(--z-floating-toast);display:none;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.1);max-width:90%}@media(max-width:899px){#toast{top:auto;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;max-width:calc(100vw - 24px);padding:10px 14px;border-radius:18px;pointer-events:none}#toastText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mode-selector{padding:7px 10px}#modeOptions{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}#modeOptions::-webkit-scrollbar{display:none}.mode-option{padding:5px 9px;gap:4px}.chat-header{gap:8px;padding-left:10px;padding-right:10px}.chat-header-copy{flex:1 1 0;min-width:0}#chatName{display:-webkit-box!important;max-width:100%;overflow:hidden;white-space:normal!important;text-overflow:clip;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}.chat-header-actions{gap:6px}.chat-header-primary{gap:4px}.chat-header-action-btn{width:34px;height:34px}}#connCount,#p2pStatus,#statusText{color:#e2e8f0;font-weight:600}#addModal>div{max-height:90vh;overflow-y:auto;margin:16px;width:calc(100% - 32px)}@media(min-width:640px){#addModal>div{max-width:400px;margin:auto}}@media(max-height:500px)and (orientation:landscape){.chat-header{padding-top:8px;padding-bottom:8px}#messagesContainer{padding:8px}.input-area,.mode-selector{padding:6px 12px}.pinned-message{padding:8px 12px}}.loading-spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin 1s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.tab-btn{transition:transform .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease}.tab-btn:hover{color:#fff}#qr-container{width:min(100%,320px);aspect-ratio:1 / 1;height:auto!important;max-height:min(58vh,320px);margin-left:auto;margin-right:auto}#qr-container:after{content:"";position:absolute;inset:18%;border:2px solid rgba(255,255,255,.88);border-radius:14px;box-shadow:0 0 0 999px #0206171f;pointer-events:none;z-index:30}#qr-video{width:100%;height:100%;background:#020617;transform:none;object-fit:contain}@media(max-width:380px),(max-height:640px){#qr-container{width:min(100%,280px);max-height:min(48vh,280px)}}.group-sender{font-size:11px;color:#93c5fd;font-weight:700;margin-bottom:2px}.blocked-banner{display:none;text-align:center;padding:10px;background:#ef444420;color:#f87171;font-size:13px;font-weight:700}.blocked-banner.active{display:block}#addModal{z-index:14050!important}body.theme-light{background:#eef4ff;color:#0f172a}body.theme-light #app,body.theme-light #chatArea,body.theme-light #messagesContainer,body.theme-light .empty-state{background:#f8fbff}body.theme-light #sidebar{background:#dbeafe}body.theme-light #sidebarMain,body.theme-light .sidebar-topbar,body.theme-light .search-container,body.theme-light .chat-header,body.theme-light .input-area,body.theme-light .mode-selector,body.theme-light .settings-content,body.theme-light .settings-header,body.theme-light .settings-section,body.theme-light .gif-menu,body.theme-light .mention-menu,body.theme-light .message-menu,body.theme-light .image-preview-container,body.theme-light .pinned-message,body.theme-light #addModalInner{background:#fff!important;border-color:#cbd5e1!important}body.theme-light .sidebar-topbar,body.theme-light .settings-header{color:#0f172a!important}body.theme-light .nav-rail{background:linear-gradient(180deg,#60a5fa,#3b82f6);border-right-color:#2563eb2e}body.theme-light .nav-rail-btn{background:#ffffffad;color:#1d4ed8;box-shadow:inset 0 0 0 1px #2563eb24}body.theme-light .nav-rail-btn:hover,body.theme-light .nav-rail-btn:active{background:#eff6ff}body.theme-light .sidebar-topbar-title,body.theme-light #settingsHeaderTitle,body.theme-light .settings-modal-title,body.theme-light .sidebar-topbar-copy,body.theme-light .settings-header-copy{color:#0f172a!important}body.theme-light .sidebar-topbar-plus{background:#2563eb;border-color:#2563eb59;color:#fff!important}body.theme-light .chat-header-action-btn,body.theme-light .composer-tools-toggle{background:#eff6ff;border-color:#94a3b88c;color:#1e293b}body.theme-light .chat-header-menu,body.theme-light .composer-tools-menu{background:#fff!important;border-color:#cbd5e1!important}body.theme-light .chat-header-menu-item,body.theme-light .composer-tools-item{color:#0f172a}body.theme-light .chat-header-menu-item:hover,body.theme-light .chat-header-menu-item:focus-visible,body.theme-light .composer-tools-item:hover,body.theme-light .composer-tools-item:focus-visible{background:#2563eb1a}body.theme-light .composer-tools-item{background:#f8fbff}body.theme-light .chat-header-menu-section-danger .chat-header-menu-item{color:#b91c1c}body.theme-light .composer-textarea-shell #messageInput{background:#f8fbff;color:#0f172a}.chat-header-menu,.composer-tools-menu,.gif-menu,.mention-menu,.message-menu{z-index:var(--z-floating-menu)!important}#imageModal,.forward-modal,.draw-modal,#addModal,.call-overlay,.feedback-modal,.privacy-shield,[data-modal-root=true]{z-index:var(--z-floating-surface)!important}.menu-overlay{z-index:var(--z-floating-overlay)!important}body.theme-light .emergency-card,body.theme-light .emergency-status-box,body.theme-light .emergency-code-area,body.theme-light .emergency-message-input,body.theme-light .emergency-message-item,body.theme-light .emergency-advanced,body.theme-light .emergency-contact-item,body.theme-light .emergency-relay-target,body.theme-light .emergency-relay-entry{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}body.theme-light .emergency-advanced summary{color:#0f172a!important}body.theme-light .emergency-contact-copy strong,body.theme-light .emergency-relay-entry-body{color:#0f172a!important}body.theme-light .emergency-contact-copy span,body.theme-light .emergency-relay-entry-meta{color:#475569!important}body.theme-light .emergency-contact-btn{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}body.theme-light .emergency-contact-btn.favorite{color:#b45309!important}body.theme-light .emergency-qr-shell,body.theme-light .emergency-scan-sheet,body.theme-light .emergency-scan-status{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}body.theme-light .emergency-scan-header h3,body.theme-light .emergency-scan-header p{color:#0f172a!important}body.theme-light .emergency-scan-close{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}body.theme-light .btn-round:not(#sendButton){background:#e2e8f0!important;color:#334155!important;border-color:#cbd5e1!important}body.theme-light #messageInput,body.theme-light .search-input,body.theme-light .gif-search-box input,body.theme-light #settingsModal select,body.theme-light #addModal input{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}body.theme-light .message-bubble.bg-slate-700{background:#e2e8f0!important;color:#0f172a!important}body.theme-light .message-bubble.bg-slate-700 .quoted-content{background:#0f172a0d;border-left-color:#0f172a2e}body.theme-light .message-bubble.bg-slate-700 .group-sender{color:#2563eb}body.theme-light .reaction{background:#0f172a14;color:#0f172a}body.theme-light .mode-option{background:#e2e8f0;color:#475569}body.theme-light .mode-option.active{background:#dbeafe}body.theme-light .toggle{background:#cbd5e1}body.theme-light .toggle.active{background:#3b82f6}body.theme-light .text-slate-100,body.theme-light .text-slate-200,body.theme-light .text-slate-300,body.theme-light .contact-name,body.theme-light #settingsModal h3,body.theme-light #settingsModal h4,body.theme-light #settingsModal .settings-item span,body.theme-light #addModal h3,body.theme-light #addModal label{color:#0f172a!important}body.theme-light .text-slate-400,body.theme-light .text-slate-500,body.theme-light .contact-preview{color:#64748b!important}body.theme-light .border-slate-700,body.theme-light .border-slate-800{border-color:#cbd5e1!important}body.theme-light .bg-slate-900,body.theme-light .bg-slate-800{background:#fff!important}body.theme-light .bg-slate-700{background:#e2e8f0!important}body.theme-light .settings-pill{background:#f8fbff;color:#1e293b;border-color:#cbd5e1}body.theme-light .settings-pill.active{background:#3b82f61f;color:#1d4ed8;border-color:#2563eb66}body.theme-light .settings-preview-box,body.theme-light .message-menu-preview,body.theme-light .date-separator span,body.theme-light .file-card,body.theme-light .menu-item:hover{background:#eff6fff5}body.theme-light .settings-range-scale,body.theme-light .settings-caption,body.theme-light .menu-item-copy small,body.theme-light .menu-preview-topline span:last-child,body.theme-light .menu-preview-body,body.theme-light .file-card-meta,body.theme-light .security-fact-body,body.theme-light .security-label{color:#64748b}body.theme-light .privacy-shield{background:radial-gradient(circle at top,rgba(37,99,235,.1),transparent 34%),#f1f5f9eb}body.theme-light .privacy-shield-card{background:#fffffff0;border-color:#94a3b84d;box-shadow:0 24px 80px #94a3b83d}body.theme-light .privacy-shield-card h3{color:#0f172a}body.theme-light .privacy-shield-card p{color:#475569}body.theme-light .security-card,body.theme-light .security-fact{background:#f8fafceb;border-color:#cbd5e1}body.theme-light .security-title,body.theme-light .security-fact-title{color:#0f172a}body.theme-light .security-body,body.theme-light .security-code,body.theme-light .security-icon-btn,body.theme-light .security-btn.secondary{color:#1e293b}body.theme-light .security-code,body.theme-light .security-btn.secondary,body.theme-light .security-icon-btn{background:#fff;border-color:#cbd5e1}body.theme-light .security-fact-icon{background:#2563eb1a;color:#2563eb}body.theme-light .menu-preview-title,body.theme-light .file-card-title{color:#0f172a}body.theme-light .menu-preview-meta span,body.theme-light .file-card-meta span{background:#eff6ff;color:#334155}body.theme-light #connCount,body.theme-light #p2pStatus,body.theme-light #statusText{color:#0f172a}.onboarding-overlay{position:fixed;inset:0;z-index:16000;display:none;pointer-events:auto}.onboarding-overlay.active{display:block!important}.onboarding-spotlight{position:fixed;left:0;top:0;width:120px;height:80px;border-radius:24px;border:2px solid rgba(96,165,250,.92);background:#3b82f614;box-shadow:0 0 0 9999px #020617c2,0 0 0 10px #3b82f61f;transition:left .28s ease,top .28s ease,width .28s ease,height .28s ease,border-radius .28s ease;pointer-events:none}.onboarding-spotlight:after{content:"";position:absolute;inset:-10px;border-radius:inherit;border:1px solid rgba(147,197,253,.55);animation:onboardingPulse 1.6s ease-in-out infinite}.onboarding-card{position:fixed;left:16px;top:16px;width:min(360px,calc(100vw - 32px));background:linear-gradient(180deg,#1e293bfa,#0f172afa);border:1px solid rgba(148,163,184,.22);border-radius:24px;box-shadow:0 22px 60px #02061794;padding:20px;color:#fff;transition:left .28s ease,top .28s ease}.onboarding-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.onboarding-badge{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#2563eb29;color:#bfdbfe;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;padding:6px 12px}.onboarding-close{width:42px;height:42px;border-radius:14px;border:1px solid rgba(71,85,105,.9);background:#0f172ae6;color:#cbd5e1}.onboarding-title{margin-top:14px;font-size:26px;line-height:1.1;font-weight:900}.onboarding-text{margin-top:10px;color:#cbd5e1;font-size:14px;line-height:1.6}.onboarding-hint{margin-top:14px;border-radius:16px;background:#0f172ad1;border:1px solid rgba(59,130,246,.22);color:#93c5fd;font-size:13px;line-height:1.5;padding:12px 14px}.onboarding-progress{display:flex;gap:8px;margin-top:18px}.onboarding-progress span{flex:1;height:6px;border-radius:999px;background:#475569b3;overflow:hidden}.onboarding-progress span.active{background:linear-gradient(90deg,#3b82f6,#60a5fa)}.onboarding-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.onboarding-btn{flex:1;min-height:46px;border-radius:16px;font-weight:800;font-size:14px;border:1px solid rgba(71,85,105,.9);background:#0f172adb;color:#e2e8f0}.onboarding-btn.primary{background:linear-gradient(90deg,#2563eb,#1d4ed8);border-color:transparent;color:#fff;box-shadow:0 14px 30px #1d4ed852}@keyframes onboardingPulse{0%,to{opacity:.45;transform:scale(1)}50%{opacity:1;transform:scale(1.03)}}@media(max-width:899px){.onboarding-card{width:calc(100vw - 24px);inset:auto 12px 12px;max-height:min(56vh,420px);overflow-y:auto;padding:18px;border-radius:22px}.onboarding-title{font-size:22px}}:root{--brand-accent: #2563eb;--brand-accent-2: #60a5fa;--brand-bg: #0f172a;--brand-bg-rgb: 15, 23, 42;--brand-surface: #1e293b;--brand-surface-rgb: 30, 41, 59;--brand-surface-2: #162236;--brand-border: #334155;--brand-text: #f8fafc;--brand-text-muted: #94a3b8;--brand-accent-soft: rgba(37, 99, 235, .18);--brand-accent-soft-strong: rgba(37, 99, 235, .34);--brand-accent-shadow: rgba(37, 99, 235, .28);--brand-accent-text: #bfdbfe;--brand-on-accent: #ffffff;--brand-nav-button-bg: rgba(30, 64, 175, .45);--brand-nav-button-bg-strong: rgba(30, 64, 175, .8)}.brand-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.brand-color-card{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:18px;border:1px solid var(--brand-border);background:rgba(var(--brand-surface-rgb),.92)}.brand-color-label{font-size:.78rem;font-weight:700;color:var(--brand-text-muted);text-transform:uppercase;letter-spacing:.08em}.brand-color-input-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand-color-input{width:48px;height:48px;border:none;padding:0;border-radius:16px;background:transparent;cursor:pointer;overflow:hidden}.brand-color-input::-webkit-color-swatch-wrapper{padding:0}.brand-color-input::-webkit-color-swatch,.brand-color-input::-moz-color-swatch{border:2px solid rgba(255,255,255,.08);border-radius:16px}.brand-color-value{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;color:var(--brand-text);word-break:break-all}.brand-preview-card{display:flex;align-items:center;gap:16px;padding:18px;border-radius:24px;border:1px solid var(--brand-border);background:linear-gradient(135deg,rgba(var(--brand-surface-rgb),.98),rgba(var(--brand-bg-rgb),.96));box-shadow:0 20px 44px rgba(var(--brand-bg-rgb),.32)}.brand-preview-icon-shell{width:78px;height:78px;border-radius:24px;padding:10px;flex-shrink:0;background:rgba(var(--brand-bg-rgb),.82);border:1px solid var(--brand-border);box-shadow:inset 0 0 0 1px #ffffff05}.brand-preview-icon-image{width:100%;height:100%;display:block;border-radius:0;object-fit:contain;background:transparent}.brand-preview-copy{min-width:0;display:flex;flex-direction:column;gap:5px}html,body{background:var(--brand-bg);color:var(--brand-text)}#chatArea,#messagesContainer,.empty-state{background:var(--brand-bg)!important}#sidebarMain,.sidebar-topbar,.search-container,.chat-header,.chat-header-menu,.input-area,.composer-tools-menu,.mode-selector,.settings-content,.settings-header,.settings-section,.gif-menu,.mention-menu,.message-menu,.image-preview-container,.forward-content,.profile-qr-card,.settings-preview-box,.profile-id-chip,.security-card,.security-fact,.file-card,#addModalInner{border-color:var(--brand-border)!important}#sidebarMain,.sidebar-topbar,.search-container,.chat-header,.chat-header-menu,.input-area,.composer-tools-menu,.mode-selector,.gif-menu,.mention-menu,.message-menu,.image-preview-container,.forward-content,.profile-qr-card,.settings-preview-box,.profile-id-chip,.security-card,.security-fact,.file-card,#addModalInner{background:var(--brand-surface)!important}.settings-content{background:linear-gradient(180deg,rgba(var(--brand-bg-rgb),.98),rgba(var(--brand-surface-rgb),.96))!important}.settings-header{background:rgba(var(--brand-bg-rgb),.96)!important}.nav-rail{background:linear-gradient(180deg,var(--brand-accent) 0%,var(--brand-accent-2) 100%)!important}.nav-rail-btn{background:var(--brand-nav-button-bg)!important}.nav-rail-btn:hover,.nav-rail-btn:active{background:var(--brand-nav-button-bg-strong)!important}.nav-rail-bolt,.profile-avatar-core,.profile-qr-avatar,.settings-side-avatar{background:linear-gradient(135deg,var(--brand-accent),var(--brand-accent-2))!important;box-shadow:0 18px 34px var(--brand-accent-shadow)}.profile-avatar-edit{border-color:var(--brand-accent)!important;color:var(--brand-accent-text)!important}.settings-pill.active,.brand-preset-pill.active,.reaction.me,.speed-btn.active,.toggle.active,.swipe-action-icon.active,.security-btn:not(.secondary),#sendButton,.bg-blue-600{background:var(--brand-accent)!important;color:var(--brand-on-accent)!important}.reply-preview,.mention.self-mention{background:var(--brand-accent-soft)!important;border-color:var(--brand-accent)!important}.pinned-message:before{background:var(--brand-accent)!important}.pinned-icon,.pinned-name,.reply-preview .reply-name,.group-sender,.file-card-icon,.text-blue-100,.text-blue-200,.text-blue-300,.text-blue-400,.text-blue-500,.text-blue-600{color:var(--brand-accent-text)!important}.border-blue-400,.border-blue-500,.border-l-blue-500{border-color:var(--brand-accent)!important}.hover\:bg-blue-500:hover,.bg-blue-700{background:var(--brand-accent-2)!important}.search-input,.gif-search-box input,#messageInput,.profile-name-input,.settings-select,.settings-pill,.btn-round:not(#sendButton),.security-btn.secondary,.security-icon-btn,.profile-id-chip{background:var(--brand-surface-2)!important;border-color:var(--brand-border)!important}.search-input,.gif-search-box input,#messageInput,.profile-name-input,.settings-select,.security-btn.secondary,.security-icon-btn{color:var(--brand-text)!important}#messageInput:focus,.search-input:focus,.gif-search-box input:focus,.profile-name-input:focus,.settings-select:focus{border-color:var(--brand-accent)!important;box-shadow:0 0 0 3px var(--brand-accent-soft)!important}.settings-range{background:linear-gradient(90deg,var(--brand-accent),var(--brand-accent-2))!important}.settings-range::-webkit-slider-thumb,.settings-range::-moz-range-thumb{border-color:var(--brand-accent)!important;box-shadow:0 4px 16px var(--brand-accent-shadow)!important}.settings-caption,.settings-range-scale,.profile-qr-subtitle,.profile-qr-caption,.contact-preview,.text-slate-400,.text-slate-500{color:var(--brand-text-muted)!important}@media(max-width:640px){.brand-color-grid{grid-template-columns:1fr}.brand-preview-card{flex-direction:column;align-items:flex-start}}.feedback-modal{position:fixed;inset:0;z-index:1400;display:none;align-items:flex-end;justify-content:center;padding:16px;background:#0f172ab8;backdrop-filter:blur(8px)}.feedback-modal.hidden{display:none}.feedback-modal:not(.hidden){display:flex}#settingsModal{z-index:var(--z-floating-modal)!important}#groupModal,#forwardModal,#drawModal,#callModal,#addModal,#imageModal,#issueReportModal,#transferReceiveModal,#transferSendModal,#permissionsModal,#qrAcceptModal,#contactActionsModal,[data-modal-root=true]{position:fixed!important;inset:0;isolation:isolate;z-index:var(--z-floating-surface)!important}#toast{z-index:var(--z-floating-toast)!important}.feedback-sheet{width:min(100%,520px);border-radius:24px;background:#0f172a;border:1px solid #334155;padding:18px;display:flex;flex-direction:column;gap:16px}.feedback-header,.feedback-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.feedback-header strong{color:#f8fafc;display:block;margin-bottom:4px}.feedback-header p,.feedback-meta{color:#94a3b8;font-size:.82rem;line-height:1.45}.feedback-body{display:flex;flex-direction:column;gap:10px}.feedback-textarea{width:100%;min-height:132px;resize:vertical;border-radius:16px;border:1px solid #334155;background:#020617;color:#e2e8f0;padding:14px 16px;outline:none}.feedback-textarea:focus{border-color:#3b82f6}@media(max-width:899px){.profile-settings-top{flex-direction:column;align-items:stretch}.profile-avatar-picker{margin:0 auto}.profile-settings-actions{flex-direction:column}.profile-settings-actions .security-btn{width:100%}.feedback-modal{padding:12px}.feedback-sheet{border-radius:22px 22px 18px 18px;padding-bottom:calc(18px + env(safe-area-inset-bottom));max-height:calc(100dvh - 24px);overflow-y:auto}.feedback-footer{flex-direction:column}.feedback-footer .security-btn{width:100%}}.chat-gif{max-width:160px;max-height:160px;object-fit:contain;background:transparent;border-radius:18px;cursor:default;display:block}@media(min-width:900px){.chat-gif{max-width:200px;max-height:200px}}.brand-color-grid,.brand-color-card,.brand-preview-card,#brandPresetButtons{display:none!important}html,body{background:#0f172a!important;color:#f8fafc!important}#chatArea,#messagesContainer,.empty-state{background:#0f172a!important}#sidebarMain,.sidebar-topbar,.search-container,.chat-header,.chat-header-menu,.input-area,.composer-tools-menu,.mode-selector,.settings-content,.settings-header,.settings-section,.gif-menu,.mention-menu,.message-menu,.image-preview-container,.forward-content,.profile-qr-card,.settings-preview-box,.profile-id-chip,.security-card,.security-fact,.file-card,#addModalInner{background:#1e293b!important;border-color:#334155!important}.settings-content,.settings-header,.nav-rail,.profile-avatar-core,.profile-qr-avatar,.settings-side-avatar,.onboarding-card,.onboarding-progress span.active,.onboarding-btn.primary,.nav-rail-bolt{background-image:none!important}.settings-content,.settings-header{background:#0f172a!important}.nav-rail{background:#1d4ed8!important}.nav-rail-btn{background:#1e40afc7!important;box-shadow:none!important}.nav-rail-btn:hover,.nav-rail-btn:active{background:#1e40afeb!important}.nav-rail-bolt,.profile-avatar-core,.profile-qr-avatar,.settings-side-avatar{background:#2563eb!important;box-shadow:none!important}.settings-pill.active,.reaction.me,.speed-btn.active,.toggle.active,.swipe-action-icon.active,.security-btn:not(.secondary),#sendButton,.bg-blue-600{background:#2563eb!important;color:#fff!important}.hover\:bg-blue-500:hover,.bg-blue-700{background:#1d4ed8!important}.settings-range{background:#cbd5e1!important}.settings-range::-webkit-slider-thumb,.settings-range::-moz-range-thumb{border-color:#2563eb!important;box-shadow:none!important}body.theme-light{background:#eef4ff!important;color:#0f172a!important}body.theme-light #app,body.theme-light #chatArea,body.theme-light #messagesContainer,body.theme-light .empty-state,body.theme-light .settings-content,body.theme-light .settings-header{background:#f8fbff!important}body.theme-light .nav-rail{background:#bfdbfe!important}body.theme-light .nav-rail-btn{background:#fff!important;color:#1d4ed8!important;box-shadow:none!important}body.theme-light .nav-rail-btn:hover,body.theme-light .nav-rail-btn:active{background:#eff6ff!important}body.theme-light .privacy-shield{background:#f1f5f9f0!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:where(button,a,[role=button],input,textarea,select,.toggle,.nav-rail-btn,.sidebar-topbar-btn,.settings-side-item,.menu-item,.file-card):focus-visible{outline:3px solid rgba(96,165,250,.95);outline-offset:3px;box-shadow:0 0 0 6px #2563eb38}#messageInput{caret-color:#60a5fa}#messageInput::placeholder{color:#94a3b8}.preview-box{min-width:64px;min-height:64px}.preview-box img{width:64px;height:64px;object-fit:cover}.preview-box button{display:inline-flex;align-items:center;justify-content:center}.file-card,.menu-item,.settings-side-item,.nav-rail-btn,.btn-round{transition:transform .18s ease,background .18s ease,box-shadow .18s ease,color .18s ease}.message-bubble img,.chat-image,.chat-sticker,video{content-visibility:auto}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.animate-bounce,.message-pop,.boomerang-anim,.shake{animation:none!important;transform:none!important}}@media(max-width:899px){.input-area{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}#messagesContainer{padding-left:10px;padding-right:10px}}#sendButton.composer-disabled{opacity:.58;box-shadow:none;transform:none;cursor:default}#sendButton.composer-ready{box-shadow:0 14px 34px #2563eb52;transform:translateY(-1px)}#sendButton.composer-ready:active{transform:translateY(0)}:root{--flashchat-shell-height: var(--app-height, 100dvh);--flashchat-layer-sidebar: 20;--flashchat-layer-sidebar-panel: 30;--flashchat-layer-nav-rail: 50;--flashchat-layer-chat-ui: 70;--flashchat-layer-menu-overlay: 1200;--flashchat-layer-message-menu: 1210;--flashchat-layer-image: 1300;--flashchat-layer-sheet: 1400;--flashchat-layer-dialog: 1450;--flashchat-layer-settings: 1500;--flashchat-layer-privacy: 1550;--flashchat-layer-transfer: 1600;--flashchat-layer-onboarding: 1650;--flashchat-layer-toast: 1700;--flashchat-layer-drop-zone: 1750}:where(#RESPONSIVE-VIEWER-ROOT,[id^=RESPONSIVE-VIEWER-ROOT],[id*=RESPONSIVE-VIEWER-ROOT]){position:relative;width:100%;height:100%;min-height:100%;overflow:hidden;isolation:isolate;background:#0f172a}html,body,#app{min-height:100%}body,#app,#sidebar,#chatArea{isolation:isolate}body[data-responsive-viewer=true]{min-height:var(--flashchat-shell-height);overflow:hidden}body[data-responsive-viewer=true] #app{height:var(--flashchat-shell-height);max-height:var(--flashchat-shell-height)}#sidebar{z-index:var(--flashchat-layer-sidebar)}.nav-rail{z-index:var(--flashchat-layer-nav-rail)}#sidebarMain,.sidebar-topbar{position:relative;z-index:var(--flashchat-layer-sidebar-panel)}.chat-header{position:relative;z-index:var(--flashchat-layer-chat-ui)}.menu-overlay{z-index:var(--flashchat-layer-menu-overlay)}.message-menu{z-index:var(--flashchat-layer-message-menu)}#imageModal{z-index:var(--flashchat-layer-image)!important}#imageModal>.absolute{z-index:calc(var(--flashchat-layer-image) + 1)}.forward-modal{z-index:var(--flashchat-layer-sheet)}#groupModal,#addModal,#qrAcceptModal,#permissionsModal{z-index:var(--flashchat-layer-dialog)!important}.settings-modal{z-index:var(--flashchat-layer-settings)}.privacy-shield{z-index:var(--flashchat-layer-privacy)}#transferReceiveModal,#transferSendModal{z-index:var(--flashchat-layer-transfer)!important}.onboarding-overlay{z-index:var(--flashchat-layer-onboarding)}#toast{z-index:var(--flashchat-layer-toast)}#dropZone{position:fixed;inset:0;z-index:var(--flashchat-layer-drop-zone);display:none;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top,rgba(59,130,246,.2),transparent 32%),#020617db;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}#dropZone:not(.hidden){display:flex}:is(#imageModal,.forward-modal,.settings-modal,#groupModal,#addModal,#qrAcceptModal,#permissionsModal,#transferReceiveModal,#transferSendModal,.privacy-shield,.onboarding-overlay,#dropZone){overscroll-behavior:contain}body.has-blocking-layer #app{pointer-events:none;user-select:none;-webkit-user-select:none}body.has-blocking-layer :is(#imageModal,#groupModal,#forwardModal,#settingsModal,#addModal,#qrAcceptModal,#permissionsModal,#transferReceiveModal,#transferSendModal,#privacyShield,#onboardingOverlay){pointer-events:auto}body.has-floating-layer :is(#messageMenu,#menuOverlay,#toast,#dropZone){pointer-events:auto}@media(max-width:899px){body[data-responsive-viewer=true] .settings-content{height:var(--flashchat-shell-height)}body[data-responsive-viewer=true] #imageModal img{max-height:calc(var(--flashchat-shell-height) - 32px)}}:root{--mobile-bottom-nav-height: 78px;--flashchat-layer-call: 1725;--flashchat-layer-call-controls: 1735}.nav-rail-btn{gap:6px;flex-direction:column}.nav-rail-btn-label{display:none;font-size:.68rem;font-weight:700;line-height:1}.nav-rail-btn.is-active{background:#3b82f638;box-shadow:inset 0 0 0 1px #bfdbfe3d}.nav-rail-btn[disabled],.call-action-btn[disabled],.call-control-btn[disabled]{opacity:.46;pointer-events:none}#chatHeaderActions{min-width:0}.call-overlay{position:fixed;inset:0;z-index:var(--flashchat-layer-call);display:none;align-items:stretch;justify-content:stretch;padding:0;background:radial-gradient(circle at top,rgba(37,99,235,.24),transparent 28%),#020617e6;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.call-overlay.active{display:flex}.call-sheet{width:100%;min-height:100%;border-radius:0;border:0;background:radial-gradient(circle at top,rgba(37,99,235,.2),transparent 30%),linear-gradient(180deg,#0f172afc,#0f172af5);box-shadow:none;padding:max(32px,env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));color:#f8fafc;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.incoming-call-avatar,.call-avatar-fallback{width:84px;height:84px;margin:0 auto 16px;border-radius:26px;background:#2563eb29;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#dbeafe;font-size:1.7rem;font-weight:800}.incoming-call-avatar img,.call-avatar-fallback img{width:100%;height:100%;object-fit:cover}.incoming-call-name{font-size:1.2rem;font-weight:800;margin-bottom:6px}.incoming-call-meta{color:#93c5fd;font-size:.92rem;line-height:1.55}.incoming-call-actions{display:flex;gap:12px;margin-top:22px}.incoming-call-btn{flex:1;min-height:52px;border:0;border-radius:18px;font-weight:800;color:#fff;cursor:pointer}.incoming-call-btn.reject{background:#ef4444}.incoming-call-btn.accept{background:linear-gradient(135deg,#16a34a,#22c55e)}.call-modal{position:relative;width:100%;height:100%;border-radius:0;overflow:hidden;border:0;background:linear-gradient(180deg,#0f172afa,#0f172aeb);box-shadow:none}.call-modal-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#020617}.call-remote-audio{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.call-remote-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 22px 120px;text-align:center;color:#dbeafe;background:radial-gradient(circle at top,rgba(37,99,235,.18),transparent 32%),#0f172ab8}.call-remote-placeholder p{max-width:240px;color:#cbd5e1;font-size:.95rem;line-height:1.55}.call-topbar{position:absolute;inset:0 0 auto;z-index:var(--flashchat-layer-call-controls);display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:max(18px,env(safe-area-inset-top)) 18px 12px;background:linear-gradient(180deg,rgba(2,6,23,.78),transparent)}.call-topbar-copy{min-width:0}.call-topbar-copy strong{display:block;font-size:1.05rem;font-weight:800;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-topbar-copy span{display:block;margin-top:4px;color:#bfdbfe;font-size:.85rem}.call-topbar-actions{display:flex;align-items:center;gap:10px}.call-topbar-btn,.call-end-inline{width:44px;height:44px;border:0;border-radius:999px;background:#0f172ac2;color:#fff;cursor:pointer}.call-topbar-btn.active{background:#2563eb47}.call-end-inline{background:#ef4444eb}.call-status-badge{position:absolute;top:max(86px,calc(env(safe-area-inset-top) + 64px));left:50%;z-index:var(--flashchat-layer-call-controls);transform:translate(-50%);border-radius:999px;padding:8px 14px;background:#0f172ab8;border:1px solid rgba(148,163,184,.2);color:#e2e8f0;font-size:.78rem;font-weight:700;backdrop-filter:blur(10px)}.call-local-preview{position:absolute;top:max(72px,calc(env(safe-area-inset-top) + 54px));right:16px;z-index:var(--flashchat-layer-call-controls);width:116px;height:154px;border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.16);background:#0f172adb;box-shadow:0 18px 42px #02061757}.call-local-preview video{width:100%;height:100%;object-fit:cover}.call-local-preview video.call-video-rotate-fix{transform:rotate(90deg) scale(1.34);transform-origin:center center}.call-secondary-actions{position:absolute;left:16px;right:16px;bottom:calc(104px + env(safe-area-inset-bottom));z-index:var(--flashchat-layer-call-controls);display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.call-chip-btn{min-height:42px;padding:0 14px;border-radius:999px;border:1px solid rgba(148,163,184,.2);background:#0f172ab8;color:#e2e8f0;display:inline-flex;align-items:center;gap:8px;font-size:.82rem;font-weight:700;cursor:pointer;backdrop-filter:blur(10px)}.call-chip-btn.active{background:#2563eb3d;border-color:#60a5fa6b;color:#dbeafe}.call-chip-btn[disabled]{opacity:.46;pointer-events:none}.call-controls{position:absolute;inset:auto 0 0;z-index:var(--flashchat-layer-call-controls);display:flex;justify-content:center;gap:14px;padding:20px 20px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(0deg,rgba(2,6,23,.92),transparent)}.call-control-btn{width:58px;height:58px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:#1e293bd6;color:#fff;cursor:pointer}.call-control-btn.active{background:#2563eb38;border-color:#60a5fa66;color:#dbeafe}.call-control-btn.end{border:0;background:#ef4444}.call-modal[data-has-remote-video=true] .call-remote-placeholder{opacity:0;pointer-events:none}.call-modal[data-call-mode=audio] .call-local-preview,.call-modal[data-call-mode=audio] .call-modal-video{display:none}.call-modal[data-call-mode=audio] .call-remote-placeholder{opacity:1;pointer-events:auto}.call-overlay.minimized{display:block;pointer-events:none;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}.call-overlay.minimized .call-modal{position:fixed;top:max(14px,calc(env(safe-area-inset-top) + 8px));right:14px;width:min(88vw,360px);height:220px;border-radius:28px;border:1px solid rgba(148,163,184,.18);overflow:hidden;pointer-events:auto;box-shadow:0 24px 60px #0206176b}.call-overlay.minimized .call-topbar{padding:12px}.call-overlay.minimized .call-topbar-copy strong{font-size:.95rem}.call-overlay.minimized .call-topbar-copy span{font-size:.75rem}.call-overlay.minimized .call-status-badge{top:60px;left:14px;transform:none;font-size:.68rem;padding:6px 10px}.call-overlay.minimized .call-local-preview{top:70px;right:12px;width:72px;height:96px;border-radius:18px}.call-overlay.minimized .call-secondary-actions{display:none}.call-overlay.minimized .call-controls{justify-content:flex-end;gap:10px;padding:0 12px 12px;background:linear-gradient(0deg,rgba(2,6,23,.9),transparent 88%)}.call-overlay.minimized .call-control-btn{width:46px;height:46px}.call-overlay.minimized .call-remote-placeholder{align-items:flex-start;justify-content:flex-end;text-align:left;padding:70px 16px 68px;gap:8px}.call-overlay.minimized .call-avatar-fallback{width:56px;height:56px;margin:0;border-radius:18px}.call-overlay.minimized .call-remote-placeholder p{max-width:180px;font-size:.82rem}@media(max-width:899px){.nav-rail{inset:auto 0 0;width:100%;min-width:0;height:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:12px;flex-direction:row;justify-content:space-between;align-items:center;border-right:0;border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#1e40affa,#1d4ed8fa);box-shadow:0 -14px 36px #02061761}.nav-rail-brand,#navRailConnCount{display:none!important}.nav-rail-actions{width:100%;flex-direction:row;justify-content:space-between;gap:8px}.nav-rail-btn{width:calc(25% - 6px);min-width:0;height:58px;border-radius:18px;padding:8px 4px}.nav-rail-btn-label{display:block}#sidebar{position:fixed;inset:0;width:100%;height:100%;transform:none!important;overflow:visible;pointer-events:none}#chatArea{width:100%;flex:1;margin-left:0}#sidebarMain{position:fixed;left:0;right:0;top:0;bottom:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));width:auto;max-width:none;height:auto;margin-left:0;transform:translateY(0);opacity:1;pointer-events:auto;border-right:0;box-shadow:0 20px 42px #02061766;z-index:75}#sidebar.chat-open-mobile #sidebarMain{transform:translateY(calc(100% + 16px));opacity:0;pointer-events:none}#sidebar.chat-open-mobile.rail-open #sidebarMain{transform:translateY(0);opacity:1;pointer-events:auto}.sidebar-topbar{display:grid;position:sticky;top:0;z-index:2;grid-template-columns:40px minmax(0,1fr) 40px;gap:12px;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));justify-content:stretch;align-items:center}.sidebar-mobile-actions{display:flex;align-items:center;justify-content:flex-end;width:40px;gap:0}.sidebar-topbar-copy span{display:inline}.sidebar-rail-overlay{display:block;position:fixed;inset:0 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom)) 0;background:#0f172a6b;backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .24s ease;z-index:70}#sidebar.chat-open-mobile.rail-open .sidebar-rail-overlay{opacity:1;pointer-events:auto}body:not(.chat-mobile-open) #activeChat,body:not(.chat-mobile-open) #emptyState{padding-bottom:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom))}body:not(.chat-mobile-open) #messagesContainer{scroll-padding-bottom:calc(220px + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom))}body.chat-mobile-open .nav-rail{transform:translateY(calc(100% + 16px))!important;opacity:0;pointer-events:none}body.chat-mobile-open #activeChat,body.chat-mobile-open #emptyState{padding-bottom:0}body.chat-mobile-open #messagesContainer{scroll-padding-bottom:calc(170px + env(safe-area-inset-bottom))}#chatHeaderActions{overflow-x:auto;scrollbar-width:none;padding-bottom:2px}#chatHeaderActions::-webkit-scrollbar{display:none}.call-modal{width:100%;height:100%;border-radius:0}.call-local-preview{width:92px;height:124px;right:12px}.call-secondary-actions{left:12px;right:12px;bottom:calc(96px + env(safe-area-inset-bottom));gap:8px;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.call-secondary-actions::-webkit-scrollbar{display:none}.call-chip-btn{flex:0 0 auto}.call-overlay.minimized .call-modal{top:auto;bottom:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 12px);right:12px;width:min(92vw,330px);height:196px}}.chat-link{color:#bfdbfe;text-decoration:underline;text-underline-offset:2px;word-break:break-word}.link-preview-card{margin-top:10px;width:min(320px,72vw);border:1px solid rgba(148,163,184,.22);border-radius:18px;background:#0f172a6b;overflow:hidden;backdrop-filter:blur(10px);cursor:pointer;text-align:left}.link-preview-card.has-image{width:min(340px,78vw)}.link-preview-card img{width:100%;max-height:160px;object-fit:cover;display:block;background:#0f172ab8}.link-preview-copy{padding:12px 14px 13px}.link-preview-host{font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#93c5fd}.link-preview-title{margin-top:6px;font-size:.92rem;font-weight:800;color:#f8fafc;word-break:break-word}.link-preview-body{margin-top:6px;font-size:.78rem;line-height:1.45;color:#cbd5e1;word-break:break-word}.link-preview-cta{margin-top:10px;font-size:.72rem;font-weight:800;color:#bfdbfe}.rich-viewer-modal{position:fixed;inset:0;z-index:3200;display:none;align-items:stretch;justify-content:stretch;background:#020617f5;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.rich-viewer-modal.active{display:flex}.rich-viewer-modal.wide .rich-viewer-shell{padding:0}.rich-viewer-shell{width:100%;height:100%;display:flex;flex-direction:column;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));color:#f8fafc}.rich-viewer-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:8px 2px 14px}.rich-viewer-window{display:flex;align-items:center;gap:8px}.rich-viewer-window-btn{width:14px;height:14px;border:0;border-radius:999px;padding:0;cursor:pointer}.rich-viewer-window-btn.close{background:#ef4444}.rich-viewer-window-btn.min{background:#f59e0b}.rich-viewer-window-btn.max{background:#22c55e}.rich-viewer-copy{min-width:0}.rich-viewer-copy strong{display:block;font-size:1rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rich-viewer-copy span{display:block;margin-top:4px;font-size:.76rem;color:#93c5fd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rich-viewer-browserbar{display:grid;grid-template-columns:42px minmax(0,1fr) repeat(2,42px);gap:8px;align-items:center}.rich-viewer-address{min-width:0;min-height:42px;border-radius:999px;border:1px solid rgba(148,163,184,.2);background:#0f172ab8;padding:0 16px;display:flex;align-items:center;color:#cbd5e1;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rich-viewer-btn{width:42px;height:42px;border:0;border-radius:999px;background:#0f172ab8;color:#fff;cursor:pointer}.rich-viewer-body{flex:1;min-height:0;border-radius:26px;overflow:hidden;border:1px solid rgba(148,163,184,.18);background:#0f172ab8;position:relative}.rich-viewer-frame,.rich-viewer-text{width:100%;height:100%;border:0}.rich-viewer-frame{background:#fff}.rich-viewer-text{display:none;margin:0;padding:18px;overflow:auto;font-size:.9rem;line-height:1.6;white-space:pre-wrap;color:#e2e8f0;background:#0f172aeb}.rich-viewer-fallback{position:absolute;inset:auto 16px 16px;border-radius:18px;padding:12px 14px;background:#020617d1;border:1px solid rgba(148,163,184,.18);color:#cbd5e1;font-size:.78rem;line-height:1.45}.image-modal-stage{position:relative;width:min(94vw,1100px);height:min(78dvh,calc(100dvh - 150px));display:flex;align-items:center;justify-content:center;padding:18px 18px 92px}.rich-collage-source-hidden,.rich-collage-hidden{display:none!important}.rich-image-collage{width:min(320px,78vw);aspect-ratio:1 / 1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:6px}.rich-image-collage[data-count="2"]{aspect-ratio:1.62 / 1;grid-template-rows:1fr}.rich-image-collage[data-count="3"] .rich-image-collage-item[data-slot="1"]{grid-row:1 / span 2}.rich-image-collage-item{position:relative;border:0;padding:0;border-radius:18px;overflow:hidden;background:#0f172a8c;cursor:pointer}.rich-image-collage-item img{width:100%;height:100%;object-fit:cover;display:block}.rich-image-collage-more{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0206177a;color:#fff;font-size:2rem;font-weight:800;backdrop-filter:blur(4px)}.image-modal-nav{position:static;transform:none;z-index:3002;width:48px;height:48px;border:0;border-radius:999px;background:#0000008c;color:#fff;cursor:pointer}.image-modal-dock{position:absolute;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translate(-50%);z-index:3002;width:min(92vw,430px);display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:12px}.image-modal-meta{position:static;transform:none;padding:8px 14px;border-radius:999px;background:#0000009e;color:#fff;font-size:.78rem;font-weight:700;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.message-pop[data-image-stack=start]{margin-bottom:6px!important}.message-pop[data-image-stack=middle]{margin-top:-2px;margin-bottom:6px!important}.message-pop[data-image-stack=end]{margin-top:-2px}body.theme-light .link-preview-card,body.theme-light .rich-viewer-body{background:#fffffff5}body.theme-light .link-preview-title,body.theme-light .rich-viewer-copy strong,body.theme-light .rich-viewer-address{color:#0f172a}body.theme-light .link-preview-body,body.theme-light .rich-viewer-fallback,body.theme-light .rich-viewer-text{color:#475569}body.theme-light .rich-viewer-fallback,body.theme-light .rich-viewer-btn,body.theme-light .rich-viewer-address,body.theme-light .image-modal-meta{background:#f1f5f9eb;color:#0f172a}@media(max-width:899px){.link-preview-card,.link-preview-card.has-image{width:min(290px,80vw)}.rich-viewer-browserbar{grid-template-columns:repeat(3,40px);grid-template-areas:"reload share download" "address address address address address"}#richViewerReloadBtn{grid-area:reload}#richViewerShareBtn{grid-area:share}#richViewerDownloadBtn{grid-area:download}.rich-viewer-address{grid-area:address}.rich-image-collage{width:min(280px,82vw);gap:4px}.image-modal-stage{width:min(96vw,680px);height:min(74dvh,calc(100dvh - 132px));padding:12px 10px 88px}.image-modal-dock{width:min(92vw,360px);grid-template-columns:42px minmax(0,1fr) 42px;gap:10px}.image-modal-nav{width:42px;height:42px}}.draw-modal{position:fixed;inset:0;z-index:3400;background:transparent}.draw-modal.hidden{display:none}body.draw-modal-open{overflow:hidden}.draw-sheet{position:fixed;top:var(--draw-top, 0px);left:var(--draw-left, 0px);width:var(--draw-width, 100vw);height:var(--draw-height, 100dvh);pointer-events:none;background:transparent;border:0;box-shadow:none;max-height:none;padding:0}.draw-stage{position:absolute;inset:0;background:transparent;border:0;padding:0}#drawCanvas{width:100%;height:100%;display:block;background:transparent;border:0;border-radius:0;touch-action:none;pointer-events:auto}.draw-header,.draw-toolbar,.draw-footer{position:absolute;left:12px;right:12px;display:flex;align-items:center;gap:10px;pointer-events:none;z-index:2}.draw-header{top:max(12px,env(safe-area-inset-top));justify-content:space-between}.draw-toolbar{bottom:calc(72px + env(safe-area-inset-bottom));flex-direction:column;align-items:stretch}.draw-footer{bottom:max(12px,env(safe-area-inset-bottom));justify-content:space-between}.draw-header-copy,.draw-tool-row,.draw-size-row,.draw-color-row,.draw-footer-copy{pointer-events:auto}.draw-header-copy{display:inline-flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:16px;background:#0f172ab8;border:1px solid rgba(148,163,184,.18)}.draw-header-copy strong{color:#f8fafc;font-size:.95rem}.draw-header-copy p,.draw-footer-copy{color:#cbd5e1;font-size:.78rem}.draw-icon-btn,.draw-tool-btn,.draw-size-btn,.draw-send-btn{pointer-events:auto;border:1px solid rgba(148,163,184,.18);background:#0f172ab8;color:#f8fafc;transition:background-color .18s ease,color .18s ease,border-color .18s ease}.draw-icon-btn,.draw-send-btn,.draw-tool-btn,.draw-size-btn{min-height:42px;border-radius:999px;cursor:pointer}.draw-icon-btn{width:42px;justify-content:center;flex:0 0 auto}.draw-tool-row,.draw-size-row,.draw-color-row{display:flex;flex-wrap:wrap;gap:8px}.draw-tool-btn,.draw-size-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-size:.83rem;font-weight:600}.draw-tool-btn.active,.draw-size-btn.active,.draw-send-btn{background:#2563ebe6;border-color:#93c5fd73}.draw-color-btn{pointer-events:auto;width:34px;height:34px;border-radius:999px;border:3px solid transparent;background:var(--draw-swatch, #ffffff);cursor:pointer}.draw-color-btn.active{border-color:#fff}.draw-send-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;font-weight:700}body.theme-light .draw-header-copy,body.theme-light .draw-icon-btn,body.theme-light .draw-tool-btn,body.theme-light .draw-size-btn,body.theme-light .draw-send-btn,body.theme-light .draw-footer-copy{background-image:none!important;box-shadow:none!important}body.theme-light .draw-header-copy{background:#ffffffeb;border-color:#94a3b842}body.theme-light .draw-header-copy strong{color:#0f172a}body.theme-light .draw-header-copy p,body.theme-light .draw-footer-copy{color:#475569}body.theme-light .draw-icon-btn,body.theme-light .draw-tool-btn,body.theme-light .draw-size-btn{background:#fffffff0;color:#0f172a;border-color:#94a3b842}body.theme-light .draw-tool-btn.active,body.theme-light .draw-size-btn.active,body.theme-light .draw-send-btn{background:#2563eb;color:#fff}@media(max-width:640px){.draw-header,.draw-toolbar,.draw-footer{left:10px;right:10px}.draw-header{top:max(10px,env(safe-area-inset-top))}.draw-toolbar{bottom:calc(78px + env(safe-area-inset-bottom))}.draw-footer{flex-direction:column;align-items:stretch;bottom:max(10px,env(safe-area-inset-bottom))}.draw-send-btn{width:100%}}.chat-doodle-card{display:inline-flex;flex-direction:column;gap:8px;max-width:min(320px,72vw);padding:10px;border-radius:22px;border:1px solid rgba(148,163,184,.18);background:#0f172a66}.chat-doodle-media{display:block;max-width:100%;max-height:360px;object-fit:contain;border-radius:16px;background:transparent}.chat-doodle-label{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#cbd5e1}body.theme-light .chat-doodle-card{background:#fff;border-color:#dbe4ee;box-shadow:none!important}body.theme-light .chat-doodle-label{color:#475569}body.theme-light .settings-content,body.theme-light .settings-header,body.theme-light .settings-section,body.theme-light .sidebar-topbar,body.theme-light #sidebarMain,body.theme-light .chat-header,body.theme-light .input-area,body.theme-light .mode-selector,body.theme-light .gif-menu,body.theme-light .mention-menu,body.theme-light .message-menu,body.theme-light .pinned-message,body.theme-light .image-preview-container,body.theme-light .file-card,body.theme-light .privacy-shield-card,body.theme-light .sidebar-topbar-btn,body.theme-light .btn-round,body.theme-light .nav-rail-btn,body.theme-light .message-bubble,body.theme-light #sendButton{box-shadow:none!important;background-image:none!important}body.theme-light .nav-rail,body.theme-light #sidebar{background:#dbeafe!important}body.theme-light .nav-rail-btn,body.theme-light .sidebar-topbar-btn,body.theme-light .btn-round:not(#sendButton){background:#eef4ff!important}body.theme-light .message-bubble.bg-slate-700,body.theme-light .message-bubble.bg-blue-600{background-image:none!important}body.theme-light .privacy-shield-card,body.theme-light .settings-preview-box,body.theme-light .message-menu-preview{box-shadow:none!important}body.theme-light .edit-preview{background:#a855f714;border-left-color:#a855f7}body.theme-light .edit-preview .reply-name,body.theme-light .message-edited-label{color:#7c3aed}body.theme-light .feedback-sheet{background:#fff;border-color:#dbe4ee}body.theme-light .feedback-header strong,body.theme-light .feedback-textarea{color:#0f172a}body.theme-light .feedback-textarea{background:#f8fbff;border-color:#dbe4ee}@media(max-width:899px){body.chat-mobile-open #chatArea{position:fixed!important;inset:0!important;width:100vw!important;height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important;padding:0!important;margin:0!important;z-index:18000!important;background:#0f172a!important;overflow:hidden!important}body.chat-mobile-open #emptyState,body.chat-mobile-open #emptyState.hidden{display:none!important;flex:0 0 0!important;width:0!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important}body.chat-mobile-open #activeChat{flex:1 1 100%!important;align-self:stretch!important;width:100vw!important;height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important;min-height:0!important}body.chat-mobile-open #sidebar:not(.rail-open){z-index:0!important;pointer-events:none!important}body.chat-mobile-open #sidebar:not(.rail-open) #sidebarMain,body.chat-mobile-open #sidebar:not(.rail-open) .nav-rail,body.chat-mobile-open #sidebar:not(.rail-open) .sidebar-rail-overlay{opacity:0!important;pointer-events:none!important;visibility:hidden!important}body.chat-mobile-open #sidebar.rail-open{z-index:19000!important;pointer-events:auto!important}body.chat-mobile-open #messagesContainer{padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}}@media(min-width:900px){:root{--sidebar-settings-width: 420px}body.settings-open #sidebar{width:var(--sidebar-settings-width)!important;flex:0 0 var(--sidebar-settings-width)!important;min-width:var(--sidebar-settings-width)!important;max-width:var(--sidebar-settings-width)!important}body.settings-open #sidebarMain{width:calc(var(--sidebar-settings-width) - var(--nav-rail-width))!important;max-width:calc(var(--sidebar-settings-width) - var(--nav-rail-width))!important}body.settings-open .settings-modal,body.settings-open #settingsModal.settings-modal{left:var(--sidebar-settings-width)!important;width:calc(100vw - var(--sidebar-settings-width))!important}body.settings-open .sidebar-resizer{display:none!important}.nav-rail-btn-label{font-size:11px;line-height:1.1;letter-spacing:0}.chat-header-action-btn,.sidebar-topbar-btn{width:auto;min-width:44px;gap:7px;padding-left:11px;padding-right:11px;border-radius:14px}.chat-header-action-btn[aria-label]:after,.sidebar-topbar-btn[aria-label]:after{content:attr(aria-label);display:inline-block;max-width:128px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;line-height:1;font-weight:750;letter-spacing:0}.chat-header-more-btn[aria-label]:after{content:"Mas"}.sidebar-topbar-back[aria-label]:after{content:"Chats"}}@media(min-width:900px)and (max-width:1023px){.chat-header-action-btn[aria-label]:after,.sidebar-topbar-btn[aria-label]:after{max-width:92px;font-size:.68rem}}#qr-container{width:min(100%,300px)!important;aspect-ratio:1 / 1!important;height:auto!important;max-height:min(52vh,300px)!important;margin-left:auto!important;margin-right:auto!important}#qr-video{object-fit:contain!important;background:#020617!important}#myQRCode canvas,#myQRCode img,#settingsProfileQRCode canvas,#settingsProfileQRCode img{width:min(72vw,240px)!important;height:auto!important;max-width:100%!important;image-rendering:pixelated}@media(max-width:380px),(max-height:640px){#qr-container{width:min(100%,260px)!important;max-height:min(46vh,260px)!important}#myQRCode canvas,#myQRCode img,#settingsProfileQRCode canvas,#settingsProfileQRCode img{width:min(70vw,214px)!important}}#emptyState.hidden{display:none!important;flex:0 0 0!important;width:0!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important}.nav-rail-btn-label{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;letter-spacing:0!important}.sidebar-topbar-back[data-sidebar-mode=settings]{display:none!important}@media(min-width:900px){.chat-header-action-btn,.sidebar-topbar-btn{width:42px!important;min-width:42px!important;gap:0!important;padding-left:0!important;padding-right:0!important;border-radius:999px!important}.chat-header-action-btn[aria-label]:after,.sidebar-topbar-btn[aria-label]:after{content:none!important;display:none!important}}.settings-header{min-height:72px!important;padding:16px 20px!important;gap:10px!important}.settings-modal-title{font-size:clamp(1.05rem,2.4vw,1.35rem)!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:normal!important}@media(max-width:899px){.settings-header{min-height:64px!important;padding:12px 10px!important;grid-template-columns:38px minmax(0,1fr) 38px!important}.settings-modal-title{font-size:1.06rem!important}}#settingsModal{z-index:21000!important}#addModal,#groupModal,#forwardModal,#drawModal,#callModal,#imageModal,#issueReportModal,#transferReceiveModal,#transferSendModal,#permissionsModal,#qrAcceptModal,#contactActionsModal,[data-modal-root=true]{z-index:28200!important}#addModal{z-index:28400!important}#addModalInner{position:relative!important;z-index:1!important}.chat-header-menu,.mention-menu,.message-menu{z-index:28600!important}#chatHeaderMenu.chat-header-menu{max-height:min(360px,calc(100dvh - 24px))!important;overflow-y:auto!important}#composerToolsMenu[hidden]{display:none!important}.input-area #composerToolsMenu:not([hidden]){position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;max-height:none!important;display:flex!important;gap:8px!important;padding:8px 2px!important;overflow-x:auto!important;overflow-y:hidden!important;border-radius:0!important;border:0!important;border-top:1px solid rgba(51,65,85,.8)!important;background:transparent!important;box-shadow:none!important;scrollbar-width:none!important;z-index:auto!important}.input-area #composerToolsMenu:not([hidden])::-webkit-scrollbar{display:none!important}.input-area #composerToolsMenu .composer-tools-item{width:auto!important;min-width:max-content!important;min-height:38px!important;flex:0 0 auto!important;border-radius:999px!important;padding:0 12px!important;gap:8px!important}.input-area #composerToolsMenu .composer-tools-item i,.input-area #composerToolsMenu .composer-tools-item-gif{width:24px!important;height:24px!important}.input-area #gifMenu{position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;max-height:min(320px,42vh)!important;margin:0!important;border-radius:18px!important;box-shadow:none!important;z-index:auto!important}.input-area #gifMenu.active{display:block!important}.input-area #gifMenu .gif-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important;max-height:min(210px,30vh)!important}#qr-container{width:min(100%,260px)!important;max-height:min(46vh,260px)!important}#myQRCode canvas,#myQRCode img,#settingsProfileQRCode canvas,#settingsProfileQRCode img{width:min(62vw,200px)!important}body.settings-open .sidebar-topbar-back,body.settings-sidebar-mode .sidebar-topbar-back,#sidebarMain[data-sidebar-surface=settings] .sidebar-topbar-back,.sidebar-topbar-back[data-sidebar-mode=settings]{display:none!important;width:0!important;min-width:0!important;height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;pointer-events:none!important}body.settings-open .sidebar-topbar-back,body.settings-sidebar-mode .sidebar-topbar-back,#sidebarMain[data-sidebar-surface=settings] .sidebar-topbar-back,.sidebar-topbar-back[data-sidebar-mode=settings]{flex:0 0 0!important;opacity:0!important;visibility:hidden!important;border:0!important;min-height:0!important;max-width:0!important;max-height:0!important}body.gif-keyboard-open .input-area{gap:8px!important}.input-area #gifMenu.gif-keyboard-panel,.input-area #gifMenu.gif-keyboard-panel.active{position:static!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:10px!important;border-radius:18px!important;border:1px solid rgba(71,85,105,.86)!important;background:linear-gradient(180deg,#0f172afa,#0f172af0)!important;box-shadow:inset 0 1px #ffffff0a!important;overflow:hidden!important;z-index:auto!important}.input-area #gifMenu.gif-keyboard-panel #gifSearch{height:40px!important;border-radius:14px!important;background:#020617b3!important}.input-area #gifMenu.gif-keyboard-panel .gif-meta-row{margin:6px 0!important}.input-area #gifMenu.gif-keyboard-panel .gif-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))!important;gap:7px!important;max-height:none!important;overflow-y:auto!important;padding-right:2px!important}.input-area #gifMenu.gif-keyboard-panel .gif-item img{height:78px!important;border-radius:10px!important;object-fit:cover!important;background:#0f172ab8!important}@media(max-width:520px){.input-area #gifMenu.gif-keyboard-panel,.input-area #gifMenu.gif-keyboard-panel.active{height:min(34vh,286px)!important;max-height:min(34vh,286px)!important;padding:8px!important}.input-area #gifMenu.gif-keyboard-panel .gif-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:calc(min(34vh,286px) - 96px)!important}.input-area #gifMenu.gif-keyboard-panel .gif-item img{height:72px!important}}#sendButton.composer-audio-mode,#sendButton.composer-audio-mode.composer-disabled{opacity:1!important;cursor:pointer!important;background:linear-gradient(180deg,#2563eb,#1d4ed8)!important;border:0!important;color:#fff!important;box-shadow:0 14px 30px #2563eb57!important}#sendButton.composer-audio-mode:active{transform:scale(.94)!important}.voice-message{align-items:center!important;min-width:min(260px,calc(100vw - 110px))!important}.voice-wave-container{height:34px!important;min-width:118px!important;overflow:hidden!important;border-radius:999px!important;background:#ffffff1a!important;padding:0 8px!important}.voice-wave-bars{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:2px!important}.voice-wave-bar{flex:1 1 0!important;min-width:2px!important;max-width:4px!important;height:min(var(--bar-height),28px)!important;border-radius:999px!important;background:#ffffff9e!important}:root{--flashchat-calls-accent: #38bdf8}#composerToolsMenu,.input-area #composerToolsMenu:not([hidden]){border-top:0!important}#voiceBtn,#composerToolsMenu #voiceBtn{display:none!important}#sendButton.composer-audio-mode,#sendButton[data-composer-mode=audio]{opacity:1!important;filter:none!important;cursor:pointer!important;background:#2563eb!important;color:#fff!important}#sendButton.composer-audio-mode:disabled,#sendButton[data-composer-mode=audio]:disabled{opacity:.95!important}#gifMenu.gif-clean-panel{padding-top:8px!important}#gifMenu.gif-clean-panel .relative,#gifMenu.gif-clean-panel .gif-meta-row,#gifMenu.gif-clean-panel #gifGridTitle,#gifMenu.gif-clean-panel #gifAttribution,#gifMenu.gif-clean-panel #gifGridStatus,#gifMenu.gif-clean-panel .gif-item-ad,#gifMenu.gif-clean-panel .gif-empty-state,#gifMenu.gif-clean-panel .gif-grid-status-card{display:none!important}#gifMenu.gif-clean-panel #gifGrid{margin-top:0!important}#gifMenu.gif-clean-panel .gif-grid{padding-top:0!important}body.gif-keyboard-open #composerToolsMenu:not([hidden]){display:none!important}body.calls-open #searchContainer,body.calls-open #contactsList,body.calls-open #statusBar,body.calls-open .sidebar-pane-chats,body.calls-open .sidebar-pane-settings{display:none!important}#callsSidebarPanel{display:none;min-height:0}body.calls-open #callsSidebarPanel{display:flex!important;flex:1 1 auto;min-height:0;overflow-y:auto;flex-direction:column;padding:12px;gap:12px}.calls-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 10px;border-bottom:1px solid rgba(148,163,184,.16)}.calls-panel-head h3{margin:0;color:#f8fafc;font-size:1.05rem;font-weight:800;line-height:1.2}.calls-panel-head span{color:#94a3b8;font-size:.76rem}.calls-list{display:flex;flex-direction:column;gap:8px}.calls-item{width:100%;border:0;border-radius:12px;background:#0f172ab8;color:#e2e8f0;display:flex;align-items:center;gap:12px;padding:12px;text-align:left;cursor:pointer}.calls-item:hover{background:#1e293be6}.calls-item-icon{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#38bdf82e;color:#7dd3fc;flex:0 0 38px}.calls-item.missed .calls-item-icon{background:#f871712e;color:#f87171}.calls-item.outgoing .calls-item-icon{background:#22c55e29;color:#86efac}.calls-item-body{display:flex;min-width:0;flex-direction:column;gap:3px}.calls-item-body strong,.calls-item-body small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calls-item-body strong{font-size:.93rem;color:#f8fafc}.calls-item-body small{font-size:.76rem;color:#94a3b8}.calls-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:10px;color:#94a3b8;text-align:center}.calls-empty i{font-size:1.6rem;color:#475569}.settings-header-copy,.settings-header-title-wrap{min-width:0!important;width:100%!important}#settingsHeaderTitle.settings-modal-title,.settings-modal-title{display:block!important;writing-mode:horizontal-tb!important;white-space:nowrap!important;word-break:keep-all!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}#qr-container{width:100%!important;max-width:380px!important;aspect-ratio:1 / 1!important;max-height:min(58vh,380px)!important;margin:0 auto 1rem!important;border:0!important;outline:0!important;box-shadow:none!important;background:#000!important}#qr-video{width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;outline:0!important;background:#000!important}#qr-container:before,#qr-container:after{display:none!important}#chatHeaderMenu.chat-header-menu{border-radius:16px!important;border:1px solid rgba(148,163,184,.18)!important;background:#0f172afa!important;box-shadow:0 18px 42px #0206176b!important;padding:8px!important}#chatHeaderMenu .chat-header-menu-section{gap:6px!important}#chatHeaderMenu .chat-header-menu-item{min-height:42px!important;border-radius:12px!important}@media(min-width:900px){:root{--sidebar-settings-width: 420px}body:not(.settings-open) #sidebar{width:var(--sidebar-settings-width)!important;flex:0 0 var(--sidebar-settings-width)!important;min-width:var(--sidebar-settings-width)!important;max-width:var(--sidebar-settings-width)!important}body:not(.settings-open) #sidebarMain{width:calc(var(--sidebar-settings-width) - var(--nav-rail-width))!important;max-width:calc(var(--sidebar-settings-width) - var(--nav-rail-width))!important}}@media(max-width:899px){.nav-rail-actions{gap:4px!important}.nav-rail-actions .nav-rail-btn{width:calc(20% - 4px)!important;min-width:0!important}.nav-rail-actions .nav-rail-btn-label{font-size:10px!important}body.calls-open #sidebar{pointer-events:auto!important;z-index:17000!important}}.sensitive-media-setting{align-items:center}body.sensitive-media-shield-enabled .message-bubble.sensitive-media-protected:not(.sensitive-media-revealed) img.chat-image:not(.chat-gif){filter:blur(18px) saturate(.7) brightness(.72);transform:scale(1.015)}body.sensitive-media-shield-enabled .message-bubble.sensitive-media-protected:not(.sensitive-media-revealed):after{content:"Foto protegida \b7  tocar para ver";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;max-width:calc(100% - 28px);padding:8px 12px;border-radius:999px;background:#0f172adb;color:#e2e8f0;border:1px solid rgba(148,163,184,.28);font-size:12px;font-weight:700;text-align:center;pointer-events:none;white-space:nowrap}body.sensitive-media-shield-enabled .message-bubble.sensitive-media-revealed img.chat-image:not(.chat-gif){filter:none;transform:none}#sendButton.composer-audio-mode,#sendButton[data-voice-ready=true]{opacity:1!important;filter:none!important;cursor:pointer!important;pointer-events:auto!important;background:#2563eb!important;color:#fff!important}#sendButton.recording{background:#dc2626!important;box-shadow:0 0 0 8px #dc262629,0 16px 34px #dc262652!important}@media(min-width:900px){body.settings-open #sidebar,body.settings-open #sidebarMain{width:var(--sidebar-default-width)!important;flex-basis:var(--sidebar-default-width)!important}body.settings-open .sidebar-resizer{display:none!important}}@media(min-width:900px){body:not(.settings-open) #sidebar{width:var(--sidebar-layout-width)!important;flex:0 0 var(--sidebar-layout-width)!important;min-width:var(--sidebar-layout-width)!important;max-width:var(--sidebar-layout-width)!important}body:not(.settings-open) #sidebarMain{width:calc(var(--sidebar-layout-width) - var(--nav-rail-width))!important;max-width:calc(var(--sidebar-layout-width) - var(--nav-rail-width))!important}body.settings-open #sidebar{width:var(--sidebar-settings-width, 420px)!important;flex:0 0 var(--sidebar-settings-width, 420px)!important;min-width:var(--sidebar-settings-width, 420px)!important;max-width:var(--sidebar-settings-width, 420px)!important}body.settings-open #sidebarMain{width:calc(var(--sidebar-settings-width, 420px) - var(--nav-rail-width))!important;max-width:calc(var(--sidebar-settings-width, 420px) - var(--nav-rail-width))!important}}#sendButton,#sendButton *,body.flash-audio-hold-active,body.flash-audio-hold-active *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}#sendButton.composer-audio-mode,#sendButton[data-composer-mode=audio]{touch-action:none!important}#settingsHeaderTitle.settings-modal-title,.settings-modal-title{max-width:none!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}#chatHeaderMenu.chat-header-menu.chat-header-menu-row,#chatHeaderMenu.chat-header-menu.chat-header-menu-inline{display:flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px!important;width:min(272px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:96px!important;background:#1e293b!important;border:1px solid #334155!important;border-radius:20px!important;box-shadow:0 18px 48px #0206177a!important;scrollbar-width:none}#chatHeaderMenu.chat-header-menu::-webkit-scrollbar{display:none}#chatHeaderMenu .chat-header-menu-section,#chatHeaderMenu .chat-header-menu-section-danger{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-width:max-content!important;border:0!important;margin:0!important;padding:0!important}#chatHeaderMenu .chat-header-menu-item{width:auto!important;min-width:max-content!important;min-height:42px!important;padding:0 12px!important}body.sensitive-media-shield-enabled .message-bubble.sensitive-media-protected:not(.sensitive-media-risky) img.chat-image:not(.chat-gif){filter:none!important;transform:none!important}body.sensitive-media-shield-enabled .message-bubble.sensitive-media-protected:not(.sensitive-media-risky):after{content:none!important}body.sensitive-media-shield-enabled .message-bubble.sensitive-media-risky.sensitive-media-protected:not(.sensitive-media-revealed):after{content:"Foto protegida - tocar para ver"!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item{min-height:50px!important;border:none!important;background:#0f172ab3!important;border-radius:16px!important;color:#e2e8f0!important;gap:10px!important;transition:background .18s ease,color .18s ease,transform .18s ease!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item:hover,#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item:focus-visible{background:#2563eb33!important;color:#eff6ff!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item i{width:28px!important;height:28px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#2563eb29!important;color:#93c5fd!important;font-size:.82rem!important;flex-shrink:0!important}.sensitive-media-setting{display:none!important}body .message-bubble.sensitive-media-protected img.chat-image:not(.chat-gif),body.sensitive-media-shield-enabled .message-bubble.sensitive-media-protected img.chat-image:not(.chat-gif){filter:none!important;transform:none!important}body .message-bubble.sensitive-media-protected:after,body.sensitive-media-shield-enabled .message-bubble.sensitive-media-protected:after{content:none!important;display:none!important}#chatHeaderMenu.chat-header-menu-inline{width:auto!important;max-height:92px!important;border-radius:20px!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item{border-radius:16px!important}#activeChat #chatHeaderMenu.chat-header-menu-inline,#chatHeaderMenu.chat-header-menu-inline{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-top:0!important;box-shadow:none!important;background:#1e293b!important;padding:8px 12px!important;overflow-x:auto!important;overflow-y:hidden!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item{min-height:50px!important;border-radius:16px!important}body.theme-light #chatHeaderMenu.chat-header-menu-inline{background:#fff!important;border-color:#cbd5e1!important}.input-area #gifMenu.gif-keyboard-panel,.input-area #gifMenu.gif-keyboard-panel.active{height:auto!important;max-height:none!important}.input-area #gifMenu.gif-keyboard-panel .gif-grid{max-height:none!important}#activeChat #chatHeaderMenu.chat-header-menu-inline,#chatHeaderMenu.chat-header-menu-inline{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;max-width:none!important;max-height:68px!important;padding:8px 12px!important;border:0!important;border-top:1px solid rgba(51,65,85,.8)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}#chatHeaderMenu.chat-header-menu-inline::-webkit-scrollbar{display:none!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-section,#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-section-danger{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-width:max-content!important;margin:0!important;padding:0!important;border:0!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item{width:auto!important;min-width:max-content!important;min-height:38px!important;flex:0 0 auto!important;border:0!important;border-radius:999px!important;padding:0 12px!important;gap:8px!important;background:#0f172ab8!important;color:#e2e8f0!important;box-shadow:none!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item i{width:24px!important;height:24px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#2563eb29!important;color:#93c5fd!important}#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item:hover,#chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item:focus-visible{background:#2563eb38!important;color:#eff6ff!important}body.theme-light #chatHeaderMenu.chat-header-menu-inline{border-top-color:#cbd5e1e6!important;background:transparent!important}body.theme-light #chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item{background:#f8fbff!important;color:#0f172a!important}body.theme-light #chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item:hover,body.theme-light #chatHeaderMenu.chat-header-menu-inline .chat-header-menu-item:focus-visible{background:#2563eb1a!important}.input-area #gifMenu.gif-keyboard-panel .gif-grid,#gifMenu.gif-clean-panel .gif-grid,#gifMenu.gif-clean-panel #gifGrid{display:flex!important;grid-template-columns:none!important;grid-auto-flow:column!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;padding:0 2px 4px 0!important;scroll-snap-type:x proximity!important;scrollbar-width:thin!important}.input-area #gifMenu.gif-keyboard-panel .gif-item,#gifMenu.gif-clean-panel .gif-item{flex:0 0 112px!important;width:112px!important;min-width:112px!important;scroll-snap-align:start!important}.input-area #gifMenu.gif-keyboard-panel .gif-item img,#gifMenu.gif-clean-panel .gif-item img{width:112px!important;height:84px!important}.call-caption-panel{display:none;width:100%;margin:10px 0 12px;padding:10px;border-radius:18px;border:1px solid rgba(51,65,85,.85);background:#0f172ac7;color:#e2e8f0;box-shadow:inset 0 1px #ffffff0a}body.call-captions-active .call-caption-panel{display:block}.call-caption-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#93c5fd;font-size:11px;font-weight:800;text-transform:uppercase}.call-caption-row{display:grid;gap:4px;padding:8px 10px;border-radius:14px;background:#0206176b}.call-caption-row+.call-caption-row{margin-top:8px}.call-caption-row span{color:#94a3b8;font-size:11px;font-weight:700}.call-caption-row p{min-height:20px;margin:0;color:#f8fafc;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.call-caption-row p.is-interim{color:#bfdbfe}#callCaptionsBtn[aria-pressed=true]{background:#2563eb42!important;color:#dbeafe!important}body.theme-light .call-caption-panel{border-color:#cbd5e1e6;background:#f8fbfff2;color:#0f172a}body.theme-light .call-caption-row{background:#e2e8f0b3}body.theme-light .call-caption-row p{color:#0f172a}@media(max-width:520px){.input-area #gifMenu.gif-keyboard-panel .gif-item,#gifMenu.gif-clean-panel .gif-item{flex-basis:96px!important;width:96px!important;min-width:96px!important}.input-area #gifMenu.gif-keyboard-panel .gif-item img,#gifMenu.gif-clean-panel .gif-item img{width:96px!important;height:76px!important}}html[data-boot-theme=light],html[data-boot-theme=light] body,body.theme-light{background:#f8fbff!important;color:#0f172a!important}#navGroupBtn{display:none!important}@media(max-width:899px){.nav-rail-actions .nav-rail-btn{width:calc(25% - 4px)!important}}.add-modal-choice-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}.add-modal-choice{min-height:44px;border:1px solid rgba(71,85,105,.9);border-radius:16px;background:#0f172ab8;color:#cbd5e1;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800}.add-modal-choice.is-active{background:#2563eb3d;color:#eff6ff;border-color:#60a5fa94}body.theme-light .add-modal-choice{background:#f8fbff;border-color:#cbd5e1;color:#0f172a}body.theme-light .add-modal-choice.is-active{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}body.theme-light .security-badge.info,body.theme-light .security-badge.good,body.theme-light .security-badge.warn,body.theme-light .security-badge.neutral{background:#e0f2fe!important;color:#075985!important;border-color:#bae6fd!important}body.theme-light #sidebarStatusBar,body.theme-light .calls-item,body.theme-light #callsSidebarPanel,body.theme-light .call-chip-btn,body.theme-light .settings-item,body.theme-light .settings-overview-item,body.theme-light .settings-side-item{background:#fff!important;color:#0f172a!important;border-color:#dbe3ef!important}body.theme-light .calls-panel-head h3,body.theme-light .calls-item-body strong,body.theme-light .settings-item span,body.theme-light .settings-overview-item span,body.theme-light .settings-side-item span{color:#0f172a!important}body.theme-light .calls-panel-head span,body.theme-light .calls-item-body small,body.theme-light .settings-caption,body.theme-light .text-slate-400,body.theme-light .text-slate-500{color:#475569!important}.call-secondary-actions{overflow-x:auto!important;scrollbar-width:none!important}.call-secondary-actions::-webkit-scrollbar{display:none!important}#callCaptionsBtn.call-chip-btn,.call-captions-chip{display:inline-flex!important;flex:0 0 auto!important}#callModal.minimized{pointer-events:none!important}#callModal.minimized .call-modal{top:var(--call-mini-top, max(14px, calc(env(safe-area-inset-top) + 8px) ))!important;left:var(--call-mini-left, auto)!important;right:auto!important;bottom:auto!important;pointer-events:auto!important;cursor:grab!important;touch-action:none!important}#callModal.minimized .call-modal.is-dragging-call{cursor:grabbing!important;transition:none!important}#chatHeaderMenu[data-chat-context=group] #optBlock,#chatHeaderMenu[data-chat-context=group] #optRename,#chatHeaderMenu[data-chat-context=group] #optDelete,#chatHeaderMenu[data-chat-context=self] #dndToggle,#chatHeaderMenu[data-chat-context=self] #optBlock,#chatHeaderMenu[data-chat-context=self] #optRename,#chatHeaderMenu[data-chat-context=self] #optDelete,#chatHeaderMenu[data-chat-context=self] #optLeaveGroup,#chatHeaderMenu[data-chat-context=self] #groupManageBtn,#chatHeaderMenu[data-chat-context=direct] #groupManageBtn,#chatHeaderMenu[data-chat-context=direct] #optLeaveGroup,#activeChat #chatHeaderMenu.chat-header-menu[hidden],#activeChat #chatHeaderMenu.chat-header-menu-inline[hidden],#chatHeaderMenu.chat-header-menu.chat-header-menu-row[hidden],#activeChat #composerToolsMenu[hidden],#composerToolsMenu[hidden]{display:none!important}:root{--flashchat-app-height: 100dvh;--flashchat-safe-bottom: env(safe-area-inset-bottom, 0px);--flashchat-nav-mobile-height: calc(78px + var(--flashchat-safe-bottom));--flashchat-accent: #3b82f6;--flashchat-panel: rgba(15, 23, 42, .98);--flashchat-border: rgba(148, 163, 184, .24)}[hidden]{display:none!important}html,body,#app{max-width:100%;overscroll-behavior:none}button,[role=button],input,textarea,select,.nav-rail-btn,.settings-item{touch-action:manipulation}button,[role=button],.nav-rail,.sidebar-topbar,.composer-toolbar{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}input,textarea,select,.message-bubble,.story-viewer-copy,.release-copyable{-webkit-user-select:text;user-select:text}.release-modal-root{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,env(safe-area-inset-bottom,0px));background:#020617c7;backdrop-filter:blur(12px)}.release-modal{width:min(560px,100%);max-height:min(760px,calc(var(--flashchat-app-height) - 32px));overflow:auto;border:1px solid var(--flashchat-border);border-radius:22px;background:var(--flashchat-panel);color:#f8fafc;box-shadow:0 24px 80px #0206177a}.release-modal-wide{width:min(820px,100%)}.release-modal-header,.release-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--flashchat-border)}.release-modal-footer{justify-content:flex-end;border-top:1px solid var(--flashchat-border);border-bottom:0}.release-modal-body{display:grid;gap:16px;padding:18px}.release-modal h2,.release-modal h3,.release-modal p{margin:0}.release-close,.release-icon-btn{display:inline-grid;min-width:44px;min-height:44px;place-items:center;border:1px solid var(--flashchat-border);border-radius:14px;background:#1e293be6;color:#e2e8f0}.release-btn{min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:14px;background:#2563eb;color:#fff;font-weight:700}.release-btn:hover,.release-btn:focus-visible{background:#3b82f6}.release-btn.secondary{border-color:var(--flashchat-border);background:#1e293be6;color:#e2e8f0}.release-btn.danger{background:#b91c1c}.release-field{display:grid;gap:7px}.release-field>span{color:#cbd5e1;font-size:.82rem;font-weight:700}.release-field input,.release-field textarea,.release-field select{width:100%;min-height:46px;border:1px solid var(--flashchat-border);border-radius:13px;background:#0f172a;color:#f8fafc;padding:11px 13px;outline:none}.release-field textarea{min-height:92px;resize:vertical}.release-field input:focus,.release-field textarea:focus,.release-field select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #3b82f62e}.release-hint,.release-muted{color:#94a3b8;font-size:.82rem}.release-error{color:#fca5a5;font-size:.84rem}.schedule-trigger{display:none!important;min-width:36px;height:44px;align-items:center;justify-content:center;border:1px solid rgba(96,165,250,.45);border-radius:14px;background:#2563eb24;color:#bfdbfe}.scheduled-message-card{align-self:flex-end;width:min(430px,calc(100% - 20px));margin:8px 10px 10px auto;padding:12px 13px;border:1px dashed rgba(96,165,250,.58);border-radius:16px 16px 5px;background:#1e40af33;color:#dbeafe}.scheduled-message-card p{margin:0 0 8px;overflow-wrap:anywhere}.scheduled-message-meta,.scheduled-message-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.scheduled-message-actions{margin-top:10px}.scheduled-message-actions button{min-height:36px;padding:6px 10px;border-radius:10px;background:#0f172abd;color:#e0f2fe}.story-rail{display:flex;gap:16px;overflow-x:auto;padding:14px 14px 12px;border-bottom:1px solid var(--flashchat-border);scrollbar-width:thin}.story-chip{display:grid;flex:0 0 84px;gap:7px;justify-items:center;color:#cbd5e1;font-size:.78rem;font-weight:700;text-align:center}body.theme-light .story-chip{color:#334155}.story-avatar{position:relative;width:72px;height:72px;display:grid;place-items:center;overflow:hidden;border:3px solid #3b82f6;border-radius:50%;background:#1e293b;color:#f8fafc;font-weight:800;font-size:1rem}.story-avatar>i{position:absolute;right:-1px;bottom:-1px;width:23px;height:23px;display:grid;place-items:center;border:3px solid #0f172a;border-radius:50%;background:#2563eb;color:#fff;font-size:.62rem}.story-chip.seen .story-avatar{border-color:#64748b}.story-avatar img{width:100%;height:100%;object-fit:cover}.story-viewer{position:fixed;inset:0;z-index:31000;display:grid;grid-template-rows:auto 1fr auto;background:#020617;color:#fff}.story-progress{display:flex;gap:4px;padding:max(10px,env(safe-area-inset-top,0px)) 10px 6px}.story-progress-track{height:3px;flex:1;overflow:hidden;border-radius:99px;background:#ffffff52}.story-progress-fill{height:100%;transform-origin:left;background:#fff}.story-viewer-content{position:relative;display:grid;min-height:0;place-items:center;overflow:hidden}.story-viewer-content img,.story-viewer-content video{max-width:100%;max-height:100%;object-fit:contain}.story-viewer-overlay{position:absolute;z-index:3;max-width:min(86vw,680px);transform:translate(-50%,-50%);padding:8px 12px;border-radius:12px;background:#0206173d;font-weight:800;line-height:1.2;overflow-wrap:anywhere;text-shadow:0 2px 12px rgba(2,6,23,.92)}.story-viewer-link{position:absolute;z-index:5;left:50%;bottom:18px;transform:translate(-50%);display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:#0f172acc;color:#fff;font-weight:800;backdrop-filter:blur(12px)}.story-pause-indicator{position:absolute;z-index:6;left:50%;top:50%;width:62px;height:62px;display:grid;place-items:center;transform:translate(-50%,-50%) scale(.88);border-radius:50%;background:#0206179e;opacity:0;transition:opacity .16s ease,transform .16s ease;pointer-events:none}.story-viewer.is-paused .story-pause-indicator{opacity:1;transform:translate(-50%,-50%) scale(1)}.story-viewer-copy{max-width:760px;padding:32px;font-size:clamp(1.5rem,5vw,3.5rem);font-weight:800;line-height:1.2;text-align:center;overflow-wrap:anywhere}.story-nav-hit{position:absolute;inset-block:0;width:38%;background:transparent;z-index:2}.story-nav-hit.prev{left:0}.story-nav-hit.next{right:0}.story-viewer-toolbar{display:flex;align-items:center;gap:10px;padding:10px 12px max(10px,env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,#020617eb)}.story-capture-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.story-capture-btn{min-height:88px;display:grid;place-items:center;align-content:center;gap:4px;padding:10px;border:1px solid var(--flashchat-border);border-radius:16px;background:#1e293bb8;color:#e2e8f0}.story-capture-btn.primary{border-color:#60a5fa94;background:#2563eb38}.story-capture-btn i{color:#60a5fa;font-size:1.25rem}.story-capture-btn span{font-weight:800}.story-capture-btn small{color:#94a3b8;font-size:.68rem}.story-draft-rail{display:flex;gap:8px;overflow-x:auto}.story-draft-chip{flex:0 0 62px;min-height:58px;display:grid;place-items:center;border:1px solid var(--flashchat-border);border-radius:13px;background:#0f172a;color:#cbd5e1}.story-draft-chip.active{border-color:#60a5fa;background:#2563eb38;color:#fff}.story-draft-chip span{font-weight:900}.story-draft-chip small{font-size:.65rem}.story-editor{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(260px,1.22fr);gap:16px;align-items:start}.story-editor-stage{position:relative;width:min(100%,310px);aspect-ratio:9 / 16;justify-self:center;overflow:hidden;border:1px solid var(--flashchat-border);border-radius:20px;background:#1d4ed8;touch-action:none}.story-editor-stage img,.story-editor-stage video{width:100%;height:100%;object-fit:cover}.story-editor-overlay{position:absolute;z-index:3;max-width:88%;transform:translate(-50%,-50%);padding:7px 10px;border-radius:10px;background:#0206173d;font-weight:900;line-height:1.18;text-align:center;overflow-wrap:anywhere;text-shadow:0 2px 10px rgba(2,6,23,.9);cursor:grab}.story-editor-link{position:absolute;z-index:4;left:50%;bottom:16px;transform:translate(-50%);padding:7px 12px;border-radius:999px;background:#0f172ac7;color:#fff;font-size:.72rem;font-weight:800}.story-editor-controls{display:grid;gap:12px}.story-editor-row{display:grid;grid-template-columns:.72fr .72fr 1.56fr;gap:10px}.chat-header-identity{cursor:pointer}#contactsList>[data-action=open-chat]{min-height:76px;padding-block:11px!important}#contactsList>[data-action=open-chat]>.relative>div:first-child{width:56px!important;height:56px!important;font-size:1.08rem!important}body.theme-light #contactsList>.m-3.rounded-2xl.border{border-color:#dbe3ef!important;background:#fff!important;color:#475569!important;box-shadow:0 10px 26px #0f172a12}body.theme-light #contactsList>.m-3.rounded-2xl.border .text-slate-200{color:#0f172a!important}body.theme-light #contactsList>.m-3.rounded-2xl.border .text-slate-500{color:#64748b!important}body.theme-light #contactsList>.m-3.rounded-2xl.border .bg-slate-800{background:#eff6ff!important}#callsSidebarPanel .calls-panel-head{order:3;margin-top:auto;padding:11px 10px max(11px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--flashchat-border);border-bottom:0;background:#0f172af5;box-shadow:0 -14px 32px #0206173d}body.calls-open #callsSidebarPanel{position:absolute;inset:64px 0 0;z-index:4;width:100%}body.theme-light #callsSidebarPanel .calls-panel-head{border-color:#dbe3ef;background:#fffffffa;box-shadow:0 -14px 32px #0f172a1f}body.theme-light #callsSidebarPanel .calls-panel-head span{color:#475569!important}#callsSidebarPanel .calls-list,#callsSidebarPanel .calls-empty{order:1}.profile-invite-card{grid-column:1 / -1;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px;border:1px solid rgba(96,165,250,.34);border-radius:18px;background:#2563eb1a}.profile-invite-card p{margin-top:3px;color:#94a3b8;font-size:.78rem}.profile-invite-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#2563eb38;color:#93c5fd;font-size:1.1rem}.profile-invite-card .release-btn,.invite-empty-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}.invite-empty-btn{width:100%;min-height:44px;margin-top:9px;padding:9px 13px;border:1px solid rgba(96,165,250,.38);border-radius:12px;background:#2563eb1f;color:#bfdbfe;font-size:.82rem;font-weight:800}body.theme-light .invite-empty-btn{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}body.theme-light .profile-invite-card{border-color:#bfdbfe;background:#eff6ff}body.theme-light .profile-invite-card p{color:#64748b}body.theme-light .profile-invite-icon{background:#dbeafe;color:#1d4ed8}.shared-profile-hero{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.shared-profile-avatar{width:74px;height:74px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#2563eb,#7c3aed);color:#fff;font-size:1.25rem;font-weight:900}.shared-profile-avatar img{width:100%;height:100%;object-fit:cover}.shared-profile-hero h3{color:#f8fafc;font-size:1.2rem;font-weight:900}.shared-profile-hero p{margin-top:3px;color:#64748b;font-family:ui-monospace,monospace;font-size:.72rem;overflow-wrap:anywhere}.shared-profile-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px}.shared-profile-tabs button{flex:0 0 auto;min-height:42px;padding:8px 12px;border:1px solid var(--flashchat-border);border-radius:12px;background:#0f172a;color:#94a3b8;font-size:.78rem;font-weight:800}.shared-profile-tabs button.active{border-color:#60a5fa;background:#2563eb33;color:#fff}.shared-profile-tabs button span{display:inline-grid;min-width:20px;height:20px;place-items:center;margin-left:5px;border-radius:99px;background:#94a3b829;font-size:.66rem}.shared-profile-panel{display:none;min-height:180px}.shared-profile-panel.active{display:block}.shared-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shared-media-item{position:relative;aspect-ratio:1;overflow:hidden;border-radius:13px;background:#020617}.shared-media-item img,.shared-media-item video{width:100%;height:100%;object-fit:cover}.shared-media-item span{position:absolute;inset:auto 0 0;padding:18px 7px 6px;background:linear-gradient(transparent,#020617e6);color:#fff;font-size:.68rem;text-align:left}.shared-list-item{width:100%;min-height:58px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:10px 12px;border-bottom:1px solid var(--flashchat-border);color:#cbd5e1;text-align:left}.shared-list-item>i:first-child{color:#60a5fa}.shared-list-item span{min-width:0;display:grid;gap:3px}.shared-list-item strong{overflow:hidden;color:#e2e8f0;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}.shared-list-item small{color:#64748b;font-size:.7rem}.shared-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:10px;color:#64748b;text-align:center}.shared-empty i{font-size:1.45rem}.chat-preview-note{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#10b9811a;color:#a7f3d0;font-size:.76rem}.chat-preview-list{display:grid;gap:8px;max-height:min(52vh,420px);overflow-y:auto;padding:4px}.chat-preview-message{width:min(88%,360px);padding:9px 11px;border-radius:14px 14px 14px 4px;background:#1e293b;color:#f8fafc}.chat-preview-message.mine{justify-self:end;border-radius:14px 14px 4px;background:#1d4ed8}.chat-preview-message small{color:#bfdbfe;font-size:.64rem;font-weight:800}.chat-preview-message p{margin:2px 0 0;font-size:.84rem;overflow-wrap:anywhere}.chat-preview-message time{display:block;margin-top:3px;color:#ffffff9e;font-size:.62rem;text-align:right}.chat-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#94a3b8;font-size:.78rem}.audio-transcription{margin-top:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.16)}.audio-transcribe-btn{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 10px;border-radius:11px;background:#ffffff21;color:#fff;font-size:.74rem;font-weight:800}.audio-transcribe-btn:disabled{opacity:.52}.audio-transcription-status{margin-top:5px;color:#ffffffb3;font-size:.68rem}.audio-transcript-copy{display:grid;gap:5px}.audio-transcript-copy strong{color:#dbeafe;font-size:.7rem}.audio-transcript-copy p{color:#fff;font-size:.79rem;line-height:1.4;overflow-wrap:anywhere}.audio-transcript-translation{display:grid;gap:3px;padding:7px 8px;border-radius:9px;background:#0206172e}.audio-transcript-translation span{color:#bfdbfe;font-size:.62rem;font-weight:800;text-transform:uppercase}.transcription-consent{display:grid;gap:12px;color:#cbd5e1;line-height:1.55}.transcription-consent>i{color:#60a5fa;font-size:1.8rem}.calendar-detected{padding:0 2px;border-bottom:1px dashed #60a5fa;color:inherit;cursor:pointer;text-decoration:none}.calendar-preview-grid,.release-grid{display:grid;gap:12px}.release-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.release-settings-card{display:grid;gap:12px;padding:16px;border:1px solid var(--flashchat-border);border-radius:16px;background:#0f172a94}.release-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.release-toggle-row input[type=checkbox]{width:22px;height:22px;accent-color:#2563eb}.key-history-list,.story-view-list{display:grid;gap:8px;max-height:260px;overflow:auto}.key-history-item,.story-view-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--flashchat-border);border-radius:12px;background:#1e293bad}.release-status-good{color:#86efac}.release-status-warn{color:#fde68a}.release-status-danger{color:#fca5a5}@media(max-width:899px){html,body,#app,#sidebar{width:100%;height:var(--flashchat-app-height)!important;min-height:0!important;overflow:hidden}body{position:fixed;inset:0}#sidebarMain{min-height:0;padding-bottom:var(--flashchat-nav-mobile-height)}.nav-rail{position:fixed!important;z-index:26000!important;inset:auto 0 0!important;width:100%!important;height:var(--flashchat-nav-mobile-height)!important;padding-bottom:var(--flashchat-safe-bottom)!important;transform:none!important}.settings-modal{z-index:25000!important;inset:0 0 var(--flashchat-nav-mobile-height) 0!important;width:100%!important;height:auto!important;max-height:none!important}body.keyboard-open .settings-modal,body.keyboard-open #sidebarMain{padding-bottom:0}body.keyboard-open .nav-rail{opacity:1;visibility:visible}.release-modal-root{align-items:end;padding:0}.release-modal{width:100%;max-height:calc(var(--flashchat-app-height) - env(safe-area-inset-top,0px));border-radius:22px 22px 0 0}.release-grid.two{grid-template-columns:1fr}.story-capture-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.story-capture-btn{min-height:78px;padding-inline:5px}.story-capture-btn small{display:none}.story-editor{grid-template-columns:1fr}.story-editor-stage{width:min(100%,270px);max-height:46vh}.story-editor-row{grid-template-columns:1fr 1fr}.story-editor-row .release-field:last-child{grid-column:1 / -1}.profile-invite-card,.shared-profile-hero{grid-template-columns:auto 1fr}.profile-invite-card .release-btn,.shared-profile-hero .release-btn{grid-column:1 / -1;width:100%}.shared-profile-avatar{width:66px;height:66px}.shared-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}#callsSidebarPanel .calls-panel-head{margin:auto -12px -12px}.story-viewer-copy{padding:22px}}html,body,#app{overflow-x:hidden!important;overscroll-behavior-x:none}.image-zoom-stage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;touch-action:none;cursor:zoom-in}.image-zoom-stage.is-zoomed{cursor:grab}.image-zoom-stage.is-zoomed:active{cursor:grabbing}#imageModal .image-zoom-stage img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;transition:transform .16s ease-out;will-change:transform;user-select:none;pointer-events:none}.image-zoom-btn{width:48px;height:48px;display:grid;place-items:center;border-radius:999px;background:#0000008c;color:#fff;font-size:1rem}.image-zoom-level{position:absolute;z-index:3001;left:50%;bottom:max(18px,env(safe-area-inset-bottom,0px));transform:translate(-50%);padding:6px 10px;border-radius:999px;background:#00000094;color:#fff;font-size:.75rem;font-weight:800;pointer-events:none}.news-side-panel{display:none;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden;background:#1e293b}body.news-open #newsSidebarPanel{display:flex!important}body.news-open #searchContainer,body.news-open #contactsList,body.news-open #sidebarStatusBar,body.news-open #settingsSidebarPanel,body.news-open #callsSidebarPanel,body.news-open .sidebar-pane-chats:not(#newsSidebarPanel){display:none!important}.news-panel-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 16px 13px;border-bottom:1px solid rgba(148,163,184,.18)}.news-panel-kicker{display:block;margin-bottom:3px;color:#60a5fa;font-size:.68rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.news-panel-header h2{margin:0;color:#f8fafc;font-size:1.15rem;font-weight:800}.news-add-button{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#2563eb;color:#fff;box-shadow:0 9px 24px #2563eb52}.news-status-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:7px 10px max(14px,env(safe-area-inset-bottom,0px))}.news-status-row{width:100%;min-height:82px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:10px 8px;border-radius:16px;color:#e2e8f0;text-align:left}.news-status-row:hover,.news-status-row:active{background:#334155b8}.status-avatar-ring{--status-count: 1;position:relative;width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:repeating-conic-gradient(#3b82f6 0 calc((360deg / var(--status-count)) - 4deg),transparent calc((360deg / var(--status-count)) - 4deg) calc(360deg / var(--status-count)))}.news-status-row:not(.has-unseen) .status-avatar-ring{background:#64748b}.news-status-row.is-empty .status-avatar-ring{background:#475569}.status-avatar-inner{width:56px;height:56px;display:grid;place-items:center;overflow:hidden;border:3px solid #1e293b;border-radius:50%;background:#0f172a;color:#fff;font-size:1rem;font-weight:850}.status-avatar-inner img{width:100%;height:100%;object-fit:cover}.status-avatar-ring>i{position:absolute;right:-2px;bottom:1px;width:23px;height:23px;display:grid;place-items:center;border:3px solid #1e293b;border-radius:50%;background:#2563eb;color:#fff;font-size:.58rem}.news-status-copy{min-width:0;display:grid;gap:4px}.news-status-copy strong{overflow:hidden;color:#f8fafc;font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}.news-status-copy small{overflow:hidden;color:#94a3b8;font-size:.74rem;text-overflow:ellipsis;white-space:nowrap}.news-status-count{min-width:27px;height:27px;display:grid;place-items:center;border-radius:999px;background:#2563eb33;color:#93c5fd;font-size:.72rem;font-weight:850}.news-status-chevron{color:#64748b;font-size:.72rem}body.theme-light .news-side-panel,body.theme-light .news-status-row,body.theme-light .news-panel-header{border-color:#dbe3ef!important;background:#fff!important;color:#0f172a!important}body.theme-light .news-status-row:hover,body.theme-light .news-status-row:active{background:#f1f5f9!important}body.theme-light .news-panel-header h2,body.theme-light .news-status-copy strong{color:#0f172a!important}body.theme-light .news-status-copy small{color:#475569!important}body.theme-light .status-avatar-inner,body.theme-light .status-avatar-ring>i{border-color:#fff}body.theme-light .settings-modal,body.theme-light .settings-content,body.theme-light .settings-section,body.theme-light .settings-overview-list,body.theme-light .settings-side-panel,body.theme-light #addModalInner,body.theme-light #groupModal>div{background:#fff!important;color:#0f172a!important}body.theme-light .settings-modal .bg-slate-900,body.theme-light .settings-modal .bg-slate-800,body.theme-light .settings-modal .bg-slate-700,body.theme-light #addModalInner .bg-slate-900,body.theme-light #addModalInner .bg-slate-800,body.theme-light #addModalInner .bg-slate-700,body.theme-light #groupModal .bg-slate-900,body.theme-light #groupModal .bg-slate-800,body.theme-light #groupModal .bg-slate-700{background:#f8fafc!important;color:#0f172a!important}body.theme-light .settings-modal label,body.theme-light .settings-modal p,body.theme-light .settings-modal span:not(.text-green-300):not(.text-blue-400):not(.text-red-400),body.theme-light #addModalInner label,body.theme-light #addModalInner p,body.theme-light #groupModal label,body.theme-light #groupModal p{color:#334155!important}@media(max-width:899px){.nav-rail{z-index:40000!important}.nav-rail-actions{gap:4px!important}.nav-rail-actions .nav-rail-btn{width:calc(20% - 4px)!important}.nav-rail-actions .nav-rail-btn-label{font-size:10px!important}#sidebarMain,body.settings-open #sidebarMain,body.calls-open #sidebarMain,body.news-open #sidebarMain,body.keyboard-open #sidebarMain,body.keyboard-open-stable #sidebarMain{padding-bottom:0!important}#contactsList{flex:1 1 auto!important;min-height:0!important}#sidebarStatusBar,#callsSidebarPanel .calls-panel-head{position:relative!important;inset:auto!important;z-index:4!important;width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 14px!important;align-items:center!important;border-radius:0!important;box-shadow:0 -12px 28px #0f172a29}body.calls-open #callsSidebarPanel{position:absolute!important;inset:64px 0 0!important;display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;overflow:hidden!important}#callsSidebarPanel .calls-list,#callsSidebarPanel .calls-empty{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:12px!important}#callsSidebarPanel .calls-panel-head{order:3!important}body.news-open #newsSidebarPanel{position:absolute;inset:64px 0 0}.settings-modal{z-index:30000!important;bottom:var(--flashchat-nav-mobile-height)!important}#addModalInner,#groupModal>div,.release-modal{max-height:min(96dvh,calc(var(--flashchat-app-height) - 8px))!important}#imageModal>.absolute{left:10px;right:10px;justify-content:flex-end;gap:7px!important}.image-zoom-btn,#imageModal>.absolute>a,#imageModal>.absolute>button{width:42px!important;height:42px!important}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.nav-rail{box-shadow:0 -18px 42px #0f172a47,0 -1px #ffffff1f!important}.mobile-sheet-surface{position:relative;transform:translateY(var(--mobile-sheet-drag-y, 0));transition:transform .22s cubic-bezier(.22,.8,.22,1);will-change:transform}.mobile-sheet-surface:before{content:"";position:sticky;z-index:8;top:7px;display:block;width:42px;height:5px;margin:7px auto -12px;border-radius:999px;background:#94a3b89e;pointer-events:none}.mobile-sheet-dragging{transition:none}.release-modal-root .release-modal{animation:release-sheet-enter .24s cubic-bezier(.22,.8,.22,1) both}@keyframes release-sheet-enter{0%{transform:translateY(44px);opacity:.35}to{transform:translateY(0);opacity:1}}.invite-arrival{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start}.invite-arrival-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:#2563eb33;color:#93c5fd;font-size:1.25rem}.invite-arrival-copy{margin-top:7px!important;color:#cbd5e1;line-height:1.5}.invite-arrival-copy.is-highlighted{padding:9px 11px;border-radius:11px;background:#2563eb29}.chat-preview-media{display:block;width:100%;max-height:210px;margin-top:5px;object-fit:cover;border-radius:10px;background:#020617}.chat-preview-audio,.chat-preview-file{display:flex;align-items:center;gap:9px;margin-top:6px;padding:8px 9px;border-radius:10px;background:#02061738}.chat-preview-audio audio{width:min(230px,100%);height:34px}.chat-preview-audio>span{font-size:.68rem}.chat-preview-file span{min-width:0;display:grid}.chat-preview-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-preview-file small{opacity:.7}.story-progress{position:relative;z-index:12;min-height:19px;padding-top:max(12px,env(safe-area-inset-top,0px));background:linear-gradient(rgba(2,6,23,.64),transparent)}.story-progress-track{height:4px;background:#ffffff61;box-shadow:0 1px 4px #02061799}.story-progress-fill{display:block;min-width:0;background:#fff;box-shadow:0 0 6px #ffffff8c}.voice-wave-container.is-analyzing{opacity:.58}.voice-wave-container[data-waveform-source=decoded-audio] .voice-wave-bar{transition:height .16s ease}#callsSidebarPanel .calls-panel-head{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:400!important}#callsSidebarPanel .calls-panel-head>span{color:#cbd5e1!important;font-size:.76rem;font-weight:400!important}.calls-p2p-state{display:inline-flex;align-items:center;gap:6px}.calls-p2p-state i{width:8px;height:8px;border-radius:50%;background:#f59e0b}.calls-p2p-state.active i{background:#22c55e}body.theme-light .release-modal,body.theme-light #addModalInner,body.theme-light #groupModal>div,body.theme-light .settings-preview-box,body.theme-light .release-settings-card,body.theme-light .key-history-item,body.theme-light .story-view-item,body.theme-light .story-draft-chip,body.theme-light .story-capture-btn{border-color:#dbe3ef!important;background:#fff!important;color:#0f172a!important}body.theme-light .release-modal-header,body.theme-light .release-modal-footer,body.theme-light #addModalInner .border-slate-700,body.theme-light #groupModal>div .border-slate-700{border-color:#dbe3ef!important}body.theme-light .release-modal h2,body.theme-light .release-modal h3,body.theme-light .release-modal strong,body.theme-light .shared-profile-hero h3,body.theme-light .shared-list-item strong,body.theme-light .transcription-consent,body.theme-light .invite-arrival-copy,body.theme-light #addModalInner .text-white,body.theme-light #addModalInner h3,body.theme-light #groupModal .text-white,body.theme-light .settings-modal .text-white,body.theme-light .settings-modal .text-slate-100,body.theme-light .settings-modal .text-slate-200{color:#0f172a!important}body.theme-light .release-muted,body.theme-light .release-hint,body.theme-light .release-field>span,body.theme-light .shared-profile-hero p,body.theme-light .shared-list-item,body.theme-light .shared-list-item small,body.theme-light .chat-preview-footer,body.theme-light #addModalInner .text-slate-300,body.theme-light #addModalInner .text-slate-400,body.theme-light #addModalInner .text-slate-500,body.theme-light .settings-modal .text-slate-300,body.theme-light .settings-modal .text-slate-400,body.theme-light .settings-modal .text-slate-500{color:#475569!important}body.theme-light .release-field input,body.theme-light .release-field textarea,body.theme-light .release-field select,body.theme-light #addModalInner input,body.theme-light #groupModal input,body.theme-light #groupModal textarea,body.theme-light .shared-profile-tabs button,body.theme-light .release-btn.secondary,body.theme-light .release-close,body.theme-light .release-icon-btn{border-color:#cbd5e1!important;background:#f8fafc!important;color:#0f172a!important}body.theme-light .shared-profile-tabs button.active{border-color:#60a5fa!important;background:#dbeafe!important;color:#1d4ed8!important}body.theme-light .chat-preview-note{background:#ecfdf5;color:#047857}body.theme-light .chat-preview-message:not(.mine){background:#e2e8f0;color:#0f172a}body.theme-light .chat-preview-message:not(.mine) small{color:#1d4ed8}body.theme-light .chat-preview-message:not(.mine) time{color:#64748b}body.theme-light .invite-arrival-icon{background:#dbeafe;color:#1d4ed8}body.theme-light .settings-mobile-back{border-color:#cbd5e1!important;background:#f8fafc!important;color:#0f172a!important}body.theme-light #themeDarkBtn{background:#0f172a!important;color:#fff!important}@media(max-width:899px){:root{--flashchat-nav-mobile-height: calc(72px + var(--flashchat-safe-bottom));--flashchat-status-mobile-height: 44px}#sidebarMain{padding-bottom:calc(var(--flashchat-nav-mobile-height) + var(--flashchat-status-mobile-height))!important}.nav-rail{display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;box-shadow:0 -18px 42px #0f172a4d,0 -1px #ffffff1f!important}body.theme-light .nav-rail{box-shadow:0 -18px 42px #0f172a29,0 -1px #dbe3ef!important}#sidebarStatusBar{position:absolute!important;z-index:25900!important;left:0!important;right:0!important;bottom:0!important;height:var(--flashchat-status-mobile-height)!important;padding:0 14px!important;align-items:center!important;box-shadow:0 -12px 28px #0f172a29}body.settings-open #sidebarStatusBar,body.calls-open #sidebarStatusBar,body.chat-mobile-open #sidebarStatusBar{display:none!important}body.settings-open #sidebarMain,body.keyboard-open #sidebarMain,body.keyboard-open-stable #sidebarMain{padding-bottom:var(--flashchat-nav-mobile-height)!important}.settings-modal{bottom:var(--flashchat-nav-mobile-height)!important;box-shadow:0 16px 44px #0f172a29!important}#addModal,#groupModal{align-items:flex-end!important;justify-content:stretch!important;padding:0!important;z-index:30000!important}#addModalInner,#groupModal>div{width:100%!important;max-width:none!important;margin:0!important;max-height:min(88dvh,calc(var(--flashchat-app-height) - 24px))!important;overflow-y:auto!important;padding-bottom:max(20px,env(safe-area-inset-bottom,0px))!important;border-radius:24px 24px 0 0!important;animation:release-sheet-enter .24s cubic-bezier(.22,.8,.22,1) both}.release-modal-root{place-items:end stretch}.release-modal{max-height:min(88dvh,calc(var(--flashchat-app-height) - 24px));padding-bottom:env(safe-area-inset-bottom,0px)}.release-modal-header,#addModalInner>div:first-child{min-height:64px;padding-top:18px}body.calls-open #callsSidebarPanel{position:absolute!important;inset:64px 0 0!important;margin:0!important;padding:12px 12px calc(var(--flashchat-status-mobile-height) + 12px)!important;overflow-y:auto!important}#callsSidebarPanel .calls-panel-head{position:absolute!important;z-index:25900!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:var(--flashchat-status-mobile-height)!important;margin:0!important;padding:0 14px!important;border-radius:0!important}html.flashchat-keyboard-open,html.flashchat-keyboard-open body,html.flashchat-keyboard-open #app{height:var(--flashchat-app-height)!important;transform:none!important}html.flashchat-keyboard-open .release-modal{max-height:var(--flashchat-visual-height)}html.flashchat-keyboard-open .input-area{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important}.chat-preview-message{width:min(94%,360px)}.chat-preview-audio{flex-wrap:wrap}.chat-preview-audio audio{flex:1 1 190px;min-width:0}}.mobile-sheet-surface{transition-duration:.38s!important}.release-modal-root .release-modal,#addModalInner,#groupModal>div{animation-duration:.44s!important}body.theme-light .nav-rail-btn,body.theme-light .nav-rail-btn i,body.theme-light .nav-rail-btn-label{color:#1d4ed8!important}body.theme-light .nav-rail-btn.is-active{background:#dbeafe!important;color:#1d4ed8!important}@media(max-width:899px){.nav-rail{z-index:40000!important}.nav-rail-actions{gap:4px!important}.nav-rail-actions .nav-rail-btn{width:calc(20% - 4px)!important}.nav-rail-actions .nav-rail-btn-label{font-size:10px!important}#sidebarMain,body.settings-open #sidebarMain,body.calls-open #sidebarMain,body.news-open #sidebarMain,body.keyboard-open #sidebarMain,body.keyboard-open-stable #sidebarMain{padding-bottom:0!important}#contactsList{flex:1 1 auto!important;min-height:0!important}#sidebarStatusBar,#callsSidebarPanel .calls-panel-head{position:relative!important;inset:auto!important;z-index:4!important;width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 14px!important;align-items:center!important;border-radius:0!important}body.calls-open #callsSidebarPanel{position:absolute!important;inset:64px 0 0!important;display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;overflow:hidden!important}#callsSidebarPanel .calls-list,#callsSidebarPanel .calls-empty{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:12px!important}#callsSidebarPanel .calls-panel-head{order:3!important}body.news-open #newsSidebarPanel{position:absolute;inset:64px 0 0}.settings-modal{z-index:30000!important;bottom:var(--flashchat-nav-mobile-height)!important}#addModalInner,#groupModal>div,.release-modal{max-height:min(96dvh,calc(var(--flashchat-app-height) - 8px))!important}}:root{--fc-nav-height: 72px;--fc-safe-bottom: env(safe-area-inset-bottom, 0px);--fc-status-height: 42px;--fc-surface-dark: #1e293b;--fc-surface-light: #ffffff;--fc-border-dark: rgba(148, 163, 184, .2);--fc-border-light: #dbe3ef}#sidebarMain{display:flex!important;min-width:0;min-height:0!important;flex-direction:column!important;overflow:hidden!important;background:var(--fc-surface-dark)}#searchContainer.search-always-visible{position:relative;display:block!important;flex:0 0 auto!important;min-height:0!important;padding:10px 12px 6px!important;background:var(--fc-surface-dark)!important}#searchContainer.search-always-visible .search-input{display:block!important;width:100%!important;min-height:42px;padding:0 42px!important;border:1px solid #475569!important;border-radius:999px!important;background:#0f172a!important;color:#f8fafc!important}#searchContainer.search-always-visible .search-input::-webkit-search-cancel-button{appearance:none}.chat-search-icon,.chat-search-clear{position:absolute;z-index:1;top:calc(50% + 2px);transform:translateY(-50%)}.chat-search-icon{left:27px;color:#94a3b8;pointer-events:none}.chat-search-clear{right:20px;width:34px;height:34px;display:grid;place-items:center;border-radius:999px;color:#94a3b8}.chat-search-clear:hover,.chat-search-clear:focus-visible{background:#94a3b829;color:#f8fafc}.chat-search-clear[hidden]{display:none!important}.chat-list-viewport{width:100%;min-width:0;min-height:0!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;background:var(--fc-surface-dark)}.chat-list-controls{position:static!important;inset:auto!important;padding:4px 10px 7px;border-bottom:1px solid var(--fc-border-dark);background:var(--fc-surface-dark)}.chat-filter-strip{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}.chat-filter-strip::-webkit-scrollbar{display:none}.chat-filter-chip{min-height:34px;flex:0 0 auto;padding:6px 11px;border:1px solid #475569;border-radius:999px;background:#0f172a;color:#cbd5e1;font-size:.75rem;font-weight:750;line-height:1}.chat-filter-chip b{display:inline-grid;min-width:18px;min-height:18px;margin-left:3px;place-items:center;border-radius:99px;background:#334155;color:#fff;font-size:.65rem}.chat-filter-chip.active{border-color:#3b82f6;background:#2563eb;color:#fff}.chat-filter-chip.active b{background:#ffffff38}.chat-selection-toolbar{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px;padding:5px 7px 5px 11px;border:1px solid rgba(96,165,250,.44);border-radius:13px;background:#2563eb26;color:#dbeafe;font-size:.78rem}.chat-selection-toolbar[hidden]{display:none!important}.chat-selection-toolbar>span{display:flex;gap:4px}.chat-selection-toolbar button{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#bfdbfe}.chat-selection-toolbar .chat-selection-done{width:auto;min-width:50px;padding-inline:10px;font-weight:800}#contactsList{width:100%;flex:0 0 auto!important;min-height:0!important;padding:0 8px!important;overflow:visible!important;background:var(--fc-surface-dark)}.chat-list-row{position:relative;min-height:70px;border-color:var(--fc-border-dark)!important;border-radius:0!important}.chat-list-row.is-favorite .contact-name:after{content:"\2605";margin-left:5px;color:#fbbf24;font-size:.7rem}.chat-selection-marker{width:0;height:24px;display:grid;flex:0 0 0;place-items:center;overflow:hidden;border:0 solid #60a5fa;border-radius:99px;color:transparent;transition:width .28s ease,flex-basis .28s ease,border-width .2s ease,color .2s ease}.chat-selection-open .chat-selection-marker{width:24px;flex-basis:24px;border-width:2px}.chat-list-row.is-selected{background:#2563eb33!important;box-shadow:inset 3px 0 #3b82f6}.chat-list-row.is-selected .chat-selection-marker{border-color:#2563eb;background:#2563eb;color:#fff}.chat-last-seen{display:block;margin-top:2px;overflow:hidden;color:#94a3b8;font-size:.68rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.chat-last-seen.is-online{color:#4ade80}.archived-chats-section{flex:0 0 auto;border-top:1px solid var(--fc-border-dark);background:var(--fc-surface-dark)}.archived-chats-toggle{width:100%;min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;color:#cbd5e1;font-size:.78rem;text-align:left}.archived-chats-toggle>span{display:flex;align-items:center;gap:9px}.archived-chats-toggle>span:last-child{color:#94a3b8}.archived-chats-toggle[aria-expanded=true] .archived-chevron{transform:rotate(180deg)}.archived-chevron{transition:transform .26s ease}.archived-chats-list{max-height:none;padding:0 8px;overflow:visible;border-top:1px solid var(--fc-border-dark)}.archived-chats-list[hidden]{display:none!important}.chat-search-empty{margin:18px 14px;padding:18px 14px;border:1px dashed var(--fc-border-dark);border-radius:16px;color:#94a3b8;font-size:.82rem;text-align:center}.chat-search-empty[hidden]{display:none!important}.sidebar-topbar{grid-template-columns:60px minmax(0,1fr) 60px;gap:6px}.sidebar-selection-toggle{width:auto!important;min-width:56px;height:36px;padding-inline:9px;font-size:.76rem;font-weight:800}#sidebarStatusBar{position:relative!important;inset:auto!important;z-index:4!important;width:100%!important;height:var(--fc-status-height)!important;min-height:var(--fc-status-height)!important;flex:0 0 var(--fc-status-height)!important;align-items:center!important;margin:0!important;padding:0 14px!important;border:0!important;border-top:1px solid var(--fc-border-dark)!important;border-radius:0!important;box-shadow:none!important;background:#0f172a!important}body.calls-open #callsSidebarPanel{position:relative!important;inset:auto!important;width:100%!important;min-height:0!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:var(--fc-surface-dark)!important}#callsSidebarPanel .calls-panel-head{position:relative!important;inset:auto!important;order:1!important;width:100%!important;height:48px!important;min-height:48px!important;display:flex!important;align-items:center!important;flex:0 0 48px!important;margin:0!important;padding:0 14px!important;border:0!important;border-bottom:1px solid var(--fc-border-dark)!important;background:var(--fc-surface-dark)!important;box-shadow:none!important}#callsSidebarPanel .calls-panel-head h3{color:#f8fafc!important;font-size:.96rem!important;font-weight:700!important}#callsSidebarPanel .calls-panel-head span{color:#94a3b8!important;font-weight:500!important}#callsSidebarPanel .calls-list,#callsSidebarPanel .calls-empty{order:2!important;min-height:0!important;flex:1 1 auto!important;margin:0!important;padding:12px!important;overflow-y:auto!important}body.news-open #newsSidebarPanel{position:relative!important;inset:auto!important;width:100%!important;min-height:0!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;overflow:hidden!important;background:var(--fc-surface-dark)!important}.news-panel-header{padding:13px 14px 11px!important}.news-panel-kicker{display:none!important}.news-panel-header h2{font-size:1.05rem!important}.news-add-button{width:40px!important;height:40px!important;border-radius:13px!important;box-shadow:none!important}.news-status-list{padding:4px 9px!important}.news-status-row{min-height:74px!important;gap:12px!important;padding:7px 8px!important}.status-avatar-ring{width:58px!important;height:58px!important;background:repeating-conic-gradient(#3b82f6 0 calc((360deg / var(--status-count)) - 2deg),transparent calc((360deg / var(--status-count)) - 2deg) calc(360deg / var(--status-count)))!important}.news-status-row:not(.has-unseen) .status-avatar-ring{background:#64748b!important}.news-status-row.is-empty .status-avatar-ring{background:#475569!important}.status-avatar-inner{width:53px!important;height:53px!important;border-width:2px!important}.status-avatar-ring>i{right:-3px!important;bottom:-1px!important;border-width:2px!important}.news-status-copy{gap:3px!important}.news-status-copy small{white-space:normal!important;line-height:1.25!important}.news-panel-intro{min-width:0;display:grid;gap:2px}.news-panel-intro .news-panel-kicker{margin:0}.news-panel-description{margin:0;color:#94a3b8;font-size:.76rem;line-height:1.25}body.theme-light .news-panel-description{color:#475569}.mobile-sheet-handle{width:100%;height:27px;display:none;place-items:center;flex:0 0 27px;cursor:grab;touch-action:none!important;user-select:none}.mobile-sheet-handle:before{content:"";width:44px;height:5px;border-radius:99px;background:#94a3b8}.mobile-sheet-handle:active{cursor:grabbing}.mobile-sheet-surface{transform:translateY(var(--mobile-sheet-drag-y, 0))!important;transition:transform .42s cubic-bezier(.22,.8,.22,1)!important}.mobile-sheet-dragging{transition:none!important}.mobile-sheet-surface.mobile-sheet-compact{--mobile-sheet-drag-y: min(28dvh, 210px)}.mobile-sheet-leaving{transform:translateY(105%)!important}@media(max-width:1180px),(pointer:coarse){.mobile-sheet-handle{display:grid}}body.theme-light #sidebarMain,body.theme-light #searchContainer.search-always-visible,body.theme-light .chat-list-viewport,body.theme-light .chat-list-controls,body.theme-light #contactsList,body.theme-light .archived-chats-section,body.theme-light .archived-chats-list,body.theme-light #callsSidebarPanel,body.theme-light #callsSidebarPanel .calls-panel-head,body.theme-light #newsSidebarPanel,body.theme-light .news-panel-header,body.theme-light .news-status-list,body.theme-light .settings-side-panel,body.theme-light .settings-modal,body.theme-light .settings-content,body.theme-light .settings-section,body.theme-light .release-modal,body.theme-light #addModalInner,body.theme-light #groupModal>div{background:var(--fc-surface-light)!important;color:#0f172a!important;border-color:var(--fc-border-light)!important}body.theme-light #searchContainer.search-always-visible .search-input,body.theme-light .chat-filter-chip{border-color:#cbd5e1!important;background:#f8fafc!important;color:#0f172a!important}body.theme-light .chat-search-icon,body.theme-light .chat-search-clear{color:#64748b}body.theme-light .chat-search-clear:hover,body.theme-light .chat-search-clear:focus-visible{background:#e2e8f0;color:#0f172a}body.theme-light .chat-filter-chip.active{border-color:#2563eb!important;background:#2563eb!important;color:#fff!important}body.theme-light .chat-filter-chip b{background:#dbeafe;color:#1d4ed8}body.theme-light .chat-filter-chip.active b{background:#ffffff40;color:#fff}body.theme-light .chat-list-controls,body.theme-light .chat-list-row,body.theme-light .archived-chats-section,body.theme-light .archived-chats-list,body.theme-light #callsSidebarPanel .calls-panel-head{border-color:var(--fc-border-light)!important}body.theme-light .chat-list-row:hover{background:#f1f5f9!important}body.theme-light .chat-list-row.is-selected{background:#dbeafe!important}body.theme-light .chat-list-row .contact-name,body.theme-light .chat-list-row .text-slate-200,body.theme-light .archived-chats-toggle,body.theme-light #callsSidebarPanel .calls-panel-head h3,body.theme-light #callsSidebarPanel .calls-item-body strong,body.theme-light .news-panel-header h2,body.theme-light .news-status-copy strong{color:#0f172a!important}body.theme-light .chat-list-row .contact-preview,body.theme-light .chat-list-row .text-slate-400,body.theme-light .chat-list-row .text-slate-500,body.theme-light .chat-last-seen,body.theme-light .archived-chats-toggle>span:last-child,body.theme-light #callsSidebarPanel .calls-panel-head span,body.theme-light #callsSidebarPanel .calls-item-body small,body.theme-light .news-status-copy small{color:#475569!important}body.theme-light .chat-last-seen.is-online{color:#15803d!important}body.theme-light .chat-selection-toolbar{border-color:#93c5fd;background:#eff6ff;color:#1e3a8a}body.theme-light .chat-selection-toolbar button{color:#1d4ed8}body.theme-light .chat-search-empty{border-color:#cbd5e1;color:#475569}body.theme-light #sidebarStatusBar{border-top-color:var(--fc-border-light)!important;background:#f8fafc!important;color:#0f172a!important}body.theme-light #sidebarStatusBar #p2pStatus{color:#15803d!important}body.theme-light .status-avatar-inner,body.theme-light .status-avatar-ring>i{border-color:#fff!important}body.theme-light .release-modal .release-field,body.theme-light .release-modal label,body.theme-light .release-modal p,body.theme-light .release-modal strong,body.theme-light .settings-modal label,body.theme-light .settings-modal p,body.theme-light .settings-modal strong,body.theme-light .settings-modal span:not(.security-badge),body.theme-light #addModalInner label,body.theme-light #addModalInner p,body.theme-light #addModalInner span,body.theme-light #groupModal label,body.theme-light #groupModal p,body.theme-light #groupModal span{color:#334155!important}body.theme-light .release-modal input,body.theme-light .release-modal textarea,body.theme-light .release-modal select,body.theme-light .settings-modal input,body.theme-light .settings-modal textarea,body.theme-light .settings-modal select,body.theme-light #addModalInner input,body.theme-light #groupModal input{border-color:#cbd5e1!important;background:#fff!important;color:#0f172a!important}@media(max-width:899px){:root{--flashchat-nav-mobile-height: calc(var(--fc-nav-height) + var(--fc-safe-bottom))}html,body,#app{height:100dvh!important;min-height:0!important;overflow:hidden!important}body:not(.settings-open) #sidebar,body.settings-open #sidebar{position:fixed!important;inset:0 0 calc(var(--fc-nav-height) + var(--fc-safe-bottom)) 0!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden!important}#sidebarMain,body.settings-open #sidebarMain,body.calls-open #sidebarMain,body.news-open #sidebarMain,body.keyboard-open #sidebarMain,body.keyboard-open-stable #sidebarMain{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:100%!important;padding:0!important}.nav-rail{position:fixed!important;z-index:40000!important;inset:auto 0 0!important;width:100%!important;height:calc(var(--fc-nav-height) + var(--fc-safe-bottom))!important;min-height:0!important;padding:4px 7px var(--fc-safe-bottom)!important;border:0!important;border-top:1px solid var(--fc-border-dark)!important;border-radius:0!important;box-shadow:none!important;transform:none!important}body.theme-light .nav-rail{border-top-color:var(--fc-border-light)!important;background:#fff!important;box-shadow:none!important}.nav-rail-actions{width:100%!important;gap:3px!important}.nav-rail-actions .nav-rail-btn{width:calc(20% - 3px)!important;min-height:60px!important}.nav-rail-actions .nav-rail-btn-label{font-size:10px!important}.sidebar-topbar{flex:0 0 58px!important;min-height:58px!important}#searchContainer.search-always-visible{padding-top:7px!important}#contactsList{padding-inline:5px!important}.chat-list-row{min-height:68px;padding:8px!important}.archived-chats-list{max-height:none;padding-inline:5px}body.settings-open #settingsSidebarPanel{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important}body.settings-open #sidebarStatusBar,body.calls-open #sidebarStatusBar,body.news-open #sidebarStatusBar,body.settings-open #chatListViewport,body.calls-open #chatListViewport,body.news-open #chatListViewport,body.settings-open #searchContainer,body.settings-open #chatListControls,body.settings-open #contactsList,body.settings-open #archivedChatsSection,body.calls-open #searchContainer,body.calls-open #chatListControls,body.calls-open #contactsList,body.calls-open #archivedChatsSection,body.news-open #searchContainer,body.news-open #chatListControls,body.news-open #contactsList,body.news-open #archivedChatsSection{display:none!important}body.calls-open #callsSidebarPanel,body.news-open #newsSidebarPanel{flex:1 1 auto!important}.settings-modal{z-index:30000!important;inset:0 0 calc(var(--fc-nav-height) + var(--fc-safe-bottom)) 0!important;height:auto!important;max-height:none!important}.release-modal-root,#addModal,#groupModal{z-index:45000!important}.release-modal,#addModalInner,#groupModal>div{max-height:min(92dvh,calc(100dvh - env(safe-area-inset-top,0px)))!important;padding-bottom:var(--fc-safe-bottom)!important;border-radius:24px 24px 0 0!important}}@media(min-width:900px){body:not(.settings-open) #sidebar,body.settings-open #sidebar{width:420px!important;max-width:420px!important;flex:0 0 420px!important}body:not(.settings-open) #sidebarMain,body.settings-open #sidebarMain{width:calc(420px - var(--nav-rail-width, 92px))!important;max-width:calc(420px - var(--nav-rail-width, 92px))!important;height:100%!important}.chat-list-controls{padding-inline:12px}.chat-filter-strip{gap:5px}.chat-filter-chip{padding-inline:8px;font-size:.72rem}#sidebarStatusBar{flex:0 0 var(--fc-status-height)!important}body.calls-open #callsSidebarPanel,body.news-open #newsSidebarPanel{height:auto!important}}@media(prefers-reduced-motion:reduce){.chat-selection-marker,.archived-chevron,.mobile-sheet-surface{transition-duration:.01ms!important}}body.theme-light #settingsModal .security-card,body.theme-light #settingsModal .security-fact{border-color:#cbd5e1!important;background:#fff!important;color:#0f172a!important}body.theme-light #settingsModal .security-title,body.theme-light #settingsModal .security-fact-title{color:#0f172a!important}body.theme-light #settingsModal .security-body,body.theme-light #settingsModal .security-fact-body,body.theme-light #settingsModal .security-label{color:#475569!important}body.theme-light #settingsModal .security-code,body.theme-light #settingsModal .security-icon-btn,body.theme-light #settingsModal .security-btn.secondary{border-color:#cbd5e1!important;background:#f8fafc!important;color:#1e293b!important}body.theme-light #settingsModal .profile-qr-card,body.theme-light #settingsSidebarPanel .settings-side-profile-card{border-color:#cbd5e1!important;background:#f8fafc!important;color:#0f172a!important}body.theme-light #settingsModal .profile-qr-card strong,body.theme-light #settingsModal .profile-qr-subtitle,body.theme-light #settingsModal .profile-qr-caption,body.theme-light #settingsSidebarPanel .settings-side-profile-card strong,body.theme-light #settingsSidebarPanel .settings-side-profile-card span{color:#334155!important}body.theme-light #settingsModal .security-btn:not(.secondary):not(.danger){background:#2563eb!important;color:#fff!important}body.theme-light #settingsModal [class*=bg-slate-900],body.theme-light #settingsModal [class*=bg-slate-800],body.theme-light #groupModal [class*=bg-slate-900],body.theme-light #groupModal [class*=bg-slate-800]{border-color:#cbd5e1!important;background:#f8fafc!important;color:#0f172a!important}body.theme-light #settingsModal [class*=bg-slate-700],body.theme-light #groupModal [class*=bg-slate-700]{border-color:#cbd5e1!important;background:#e2e8f0!important;color:#0f172a!important}body.theme-light #settingsSectionApp [class*=text-white],body.theme-light #settingsSectionData [class*=text-white],body.theme-light #groupModal [class*=text-slate-100],body.theme-light #groupModal [class*=text-slate-200]{color:#0f172a!important}body.theme-light #settingsSectionApp [class*=text-slate-300],body.theme-light #settingsSectionData [class*=text-slate-300],body.theme-light #groupModal [class*=text-slate-400]{color:#475569!important}body.theme-light #settingsSectionApp [class*=text-slate-400],body.theme-light #settingsSectionApp [class*=text-slate-500],body.theme-light #settingsSectionData [class*=text-slate-400],body.theme-light #settingsSectionData [class*=text-slate-500]{color:#64748b!important}body.theme-light #appPermissionGrid [id^=appPermissionStatus-]{border-color:#93c5fd!important;background:#dbeafe!important;color:#1d4ed8!important}body.theme-light #appPermissionGrid [id^=appPermissionStatus-][class*=red]{border-color:#fca5a5!important;background:#fee2e2!important;color:#b91c1c!important}body.theme-light #fontScaleRange.settings-range{height:8px!important;border:0!important;background:#cbd5e1!important}body.theme-light #fontScaleRange.settings-range::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(90deg,#2563eb 0 30%,#cbd5e1 30% 100%)}body.theme-light #fontScaleRange.settings-range::-moz-range-track{height:8px;border-radius:999px;background:#cbd5e1}body.theme-light #fontScaleRange.settings-range::-moz-range-progress{height:8px;border-radius:999px;background:#2563eb}body.theme-light #addModalInner button:disabled,body.theme-light #groupModal button:disabled{border-color:#cbd5e1!important;background:#e2e8f0!important;color:#64748b!important;opacity:1!important}#appPermissionGrid,#appPermissionGrid>div,#appPermissionGrid>div>div{min-width:0}@media(max-width:359px){#appPermissionGrid>div{align-items:stretch!important;flex-direction:column!important}#appPermissionGrid>div>.shrink-0{width:100%;justify-content:space-between;flex-wrap:wrap}}.nav-status-mark{position:relative;width:20px;height:20px;display:inline-grid;flex:0 0 20px;place-items:center;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;transform:rotate(-18deg)}.nav-status-mark:before,.nav-status-mark:after{content:"";position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor}.nav-status-mark:before{top:-2px;right:2px}.nav-status-mark:after{right:-2px;bottom:3px}.nav-status-mark>span{width:7px;height:7px;border:2px solid currentColor;border-radius:50%;transform:rotate(18deg)}#storyCreateModal .release-modal-header,#storyCreateModal .release-modal-footer{position:sticky;z-index:4;background:color-mix(in srgb,var(--flashchat-panel) 94%,transparent);backdrop-filter:blur(18px)}#storyCreateModal .release-modal-header{top:0}#storyCreateModal .release-modal-footer{bottom:0}body.theme-light #storyCreateModal .release-modal-header,body.theme-light #storyCreateModal .release-modal-footer{background:#fffffff5}#storyCreateModal.story-creator-busy .release-modal-body{cursor:progress}#storyCreateModal.story-creator-busy .story-draft-rail{pointer-events:none}.story-draft-section{min-width:0;display:grid;gap:9px;padding:12px;border:1px solid var(--flashchat-border);border-radius:17px;background:#0f172a6b}.story-draft-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.story-draft-heading>span{min-width:0;display:grid;gap:2px}.story-draft-heading small{color:#94a3b8;font-size:.72rem}.story-draft-heading b{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#2563eb2e;color:#bfdbfe;font-size:.7rem}.story-draft-section.is-empty .story-draft-rail{display:none}.story-draft-rail{gap:10px!important;padding:2px 2px 7px;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;scrollbar-width:thin;touch-action:pan-x}.story-draft-item{flex:0 0 106px;display:grid;gap:5px;scroll-snap-align:start}.story-draft-item .story-draft-chip{width:100%;min-height:66px;grid-template-rows:auto auto auto;gap:1px;border-radius:15px}.story-draft-item.active .story-draft-chip{border-color:#60a5fa;background:#2563eb47;color:#fff;box-shadow:0 0 0 2px #60a5fa1f}.story-draft-chip em{color:#94a3b8;font-size:.58rem;font-style:normal}.story-draft-item[data-story-draft-state=processing] .story-draft-chip{border-color:#38bdf8;animation:story-draft-pulse 1.25s ease-in-out infinite}.story-draft-item[data-story-draft-state=error] .story-draft-chip{border-color:#fb7185;background:#be185d29}.story-draft-item[data-story-draft-state=error] .story-draft-chip em{color:#fecdd3}.story-draft-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.story-draft-actions button{min-width:0;min-height:30px;display:grid;place-items:center;border:1px solid rgba(148,163,184,.22);border-radius:9px;background:#0f172ac7;color:#cbd5e1;font-size:.64rem}.story-draft-actions button:last-child{color:#fda4af}.story-draft-actions button:disabled{opacity:.3}.story-publish-status:not(:empty){min-height:42px;display:flex;align-items:center;padding:10px 12px;border:1px solid rgba(56,189,248,.26);border-radius:13px;background:#0e74901f;color:#bae6fd;font-size:.78rem}.story-editor-overlay:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}body.story-viewer-open{overflow:hidden!important}.story-viewer{z-index:50000!important;height:100dvh;min-height:0;isolation:isolate;overscroll-behavior:none}#storyViewersModal{z-index:51000!important}.story-viewer-head{position:relative;z-index:12;background:linear-gradient(180deg,rgba(2,6,23,.82),rgba(2,6,23,.3) 72%,transparent)}.story-viewer-head .release-modal-header{min-height:58px;padding:4px 12px 9px;border:0;background:transparent}.story-viewer-head .release-modal-header>div:last-child{display:flex;gap:7px}.story-viewer-head .release-icon-btn{min-width:42px;min-height:42px;border-color:#ffffff2e;background:#0206176b}.story-viewer-identity{min-width:0;display:flex;align-items:center;gap:10px}.story-viewer-identity>span:last-child{min-width:0;display:grid;gap:1px}.story-viewer-identity strong,.story-viewer-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-viewer-identity small{color:#e2e8f0c2;font-size:.7rem}.story-viewer-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;overflow:hidden;border:2px solid rgba(255,255,255,.8);border-radius:50%;background:#1e3a8a;color:#fff;font-size:.72rem;font-weight:900}.story-viewer-avatar img{width:100%;height:100%;object-fit:cover}.story-viewer-content{touch-action:none;user-select:none;-webkit-user-select:none;transform:translateZ(0) scale(1);transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .2s ease}.story-viewer.is-gesturing .story-viewer-content{transform:translate3d(var(--story-drag-x, 0),var(--story-drag-y, 0),0) scale(.992);transition:none}.story-viewer-media{width:100%;height:100%;object-fit:contain}.story-media-state{position:absolute;z-index:9;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:24px;color:#e2e8f0;font-size:.82rem;pointer-events:none}.story-viewer:not(.is-loading):not(.has-media-error):not(.needs-media-play) .story-media-state{display:none}.story-viewer.is-loading .story-viewer-media{opacity:.38}.story-loading-spinner{width:26px;height:26px;border:3px solid rgba(255,255,255,.24);border-top-color:#fff;border-radius:50%;animation:story-spin .8s linear infinite}.story-media-action,.story-media-error{pointer-events:auto}.story-media-action{min-height:54px;display:inline-flex;align-items:center;gap:10px;padding:11px 18px;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:#020617d1;color:#fff;font-weight:800;backdrop-filter:blur(12px)}.story-media-error{width:min(360px,92%);display:grid;justify-items:center;gap:12px;padding:20px;border:1px solid rgba(251,113,133,.36);border-radius:20px;background:#0f172ae6;text-align:center}.story-media-error>i{color:#fda4af;font-size:1.35rem}.story-media-error>span{display:flex;gap:8px}.story-media-error button{min-height:42px;padding:8px 13px;border-radius:11px;background:#2563eb;color:#fff;font-weight:800}.story-media-error button:last-child{background:#334155}.story-nav-hit{width:32%}.story-nav-hit i{position:absolute;top:50%;display:grid;width:36px;height:36px;place-items:center;transform:translateY(-50%);border-radius:50%;background:#0206177a;color:#fff;opacity:0;transition:opacity .15s ease}.story-nav-hit.prev i{left:12px}.story-nav-hit.next i{right:12px}.story-nav-hit:hover i,.story-nav-hit:focus-visible i{opacity:1}.story-viewer-toolbar{min-height:68px;justify-content:center;padding:10px max(12px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}.story-reply-input{min-width:0;min-height:46px;flex:1;padding:10px 14px;border:1px solid rgba(148,163,184,.38);border-radius:999px;background:#0f172adb;color:#fff;font-size:16px}.story-reply-input:focus{border-color:#60a5fa;outline:3px solid rgba(96,165,250,.16)}.story-gesture-hint{color:#e2e8f0ad;font-size:.68rem}@keyframes story-spin{to{transform:rotate(360deg)}}@keyframes story-draft-pulse{50%{box-shadow:0 0 0 3px #38bdf81f}}body.theme-light .story-draft-section{border-color:#dbe3ef;background:#f8fafc}body.theme-light .story-draft-heading small{color:#64748b!important}body.theme-light .story-draft-heading b{background:#dbeafe;color:#1e40af!important}body.theme-light .story-draft-actions button{border-color:#dbe3ef;background:#fff;color:#334155}body.theme-light .story-publish-status:not(:empty){border-color:#bae6fd;background:#f0f9ff;color:#075985}@media(max-width:899px){#storyCreateModal .release-modal{max-height:96dvh!important}#storyCreateModal .release-modal-body{padding:14px}.story-draft-section{padding-inline:9px}.story-draft-item{flex-basis:100px}.story-viewer{height:100dvh!important}.story-viewer-head .release-modal-header{padding-inline:9px}.story-viewer-head .release-icon-btn{min-width:40px;min-height:40px}.story-nav-hit i,.story-viewer-toolbar .release-btn span,.story-gesture-hint{display:none}}@media(orientation:landscape)and (max-height:540px){.story-viewer-head .release-modal-header{min-height:48px;padding-bottom:4px}.story-viewer-avatar{width:32px;height:32px;flex-basis:32px}.story-viewer-toolbar{min-height:54px;padding-block:5px max(5px,env(safe-area-inset-bottom,0px))}}@media(prefers-reduced-motion:reduce){.story-viewer-content,.story-nav-hit i,.story-draft-item[data-story-draft-state=processing] .story-draft-chip{transition-duration:.01ms!important;animation:none!important}}.recording-indicator .recording-live-content{min-width:0;width:min(520px,calc(100vw - 92px));display:grid;gap:5px}.recording-live-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.recording-live-level{position:relative;overflow:hidden;width:100%;height:8px;display:block;border-radius:999px;background:#0f172a38}.recording-live-level-fill{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#38bdf8,#60a5fa,#818cf8);transform:scaleX(.03);transform-origin:left center;transition:transform 90ms linear;will-change:transform}.recording-live-transcript{max-width:100%;margin:0;color:#e2e8f0;font-size:.75rem;font-weight:500;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recording-live-transcript.is-interim{color:#bfdbfe}.call-caption-settings{margin-top:9px;border-top:1px solid rgba(100,116,139,.38);padding-top:8px}#callModal .call-caption-panel{position:absolute;left:16px;right:16px;bottom:calc(166px + env(safe-area-inset-bottom));z-index:var(--flashchat-layer-call-controls);width:auto;max-height:min(42vh,330px);margin:0;overflow-y:auto;overscroll-behavior:contain}#callModal.minimized .call-caption-panel{display:none!important}.call-caption-settings summary{color:#bfdbfe;cursor:pointer;font-size:.72rem;font-weight:800;list-style:none}.call-caption-settings summary::-webkit-details-marker{display:none}.call-caption-settings-grid{display:grid;grid-template-columns:minmax(112px,.7fr) minmax(0,1.3fr);align-items:center;gap:8px 10px;margin-top:9px}.call-caption-settings-grid label,.call-caption-speak-toggle{color:#cbd5e1;font-size:.7rem;font-weight:700}.call-caption-settings-grid label output{color:#93c5fd;float:right}.call-caption-settings-grid select{min-width:0;width:100%;border:1px solid rgba(71,85,105,.9);border-radius:9px;background:#0f172ad6;color:#f8fafc;padding:6px 8px;font-size:.72rem}.call-caption-settings-grid input[type=range]{width:100%;accent-color:#3b82f6}.call-caption-speak-toggle{display:flex;align-items:center;gap:8px;margin-top:9px}.call-caption-speak-toggle input{accent-color:#3b82f6}.call-caption-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.call-caption-actions button{border:1px solid rgba(71,85,105,.9);border-radius:999px;background:#0f172ab3;color:#dbeafe;padding:6px 10px;font-size:.68rem;font-weight:800}body.theme-light .recording-live-transcript{color:#334155}body.theme-light .recording-live-level{background:#e2e8f0b8}body.theme-light .call-caption-settings-grid label,body.theme-light .call-caption-speak-toggle{color:#334155}body.theme-light .call-caption-settings-grid select,body.theme-light .call-caption-actions button{border-color:#cbd5e1;background:#fff;color:#0f172a}@media(max-width:520px){.recording-indicator{align-items:flex-start;gap:8px}.recording-indicator .recording-live-content{width:calc(100vw - 76px)}.call-caption-settings-grid{grid-template-columns:1fr}#callModal .call-caption-panel{left:12px;right:12px;bottom:calc(152px + env(safe-area-inset-bottom));max-height:min(38vh,300px)}}.flashchat-install-help-card{max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.flashchat-install-help-actions{position:sticky;bottom:-1px;z-index:2;padding-top:12px;padding-bottom:4px;background:#1e293b}#activeChat #chatHeaderMenu.chat-header-menu[hidden],#activeChat #chatHeaderMenu.chat-header-menu-inline[hidden],#chatHeaderMenu.chat-header-menu.chat-header-menu-row[hidden],#activeChat #composerToolsMenu[hidden],#composerToolsMenu[hidden]{display:none!important}body.theme-light .flashchat-install-help-card{background:#fff!important;border-color:#cbd5e1!important;color:#0f172a!important}body.theme-light .flashchat-install-help-actions{background:#fff}body.theme-light .flashchat-install-help-title{color:#0f172a!important}body.theme-light .flashchat-install-help-card .text-slate-300{color:#334155!important}body.theme-light .flashchat-install-help-card .bg-slate-900{background:#eef2f7!important;color:#334155!important}body.theme-light .flashchat-install-help-card .bg-slate-900\/70{background:#eef2f7!important;border-color:#cbd5e1!important}@media(max-width:480px){.flashchat-install-help-modal{align-items:flex-end!important;padding:0!important}.flashchat-install-help-card{max-width:none!important;max-height:calc(100dvh - env(safe-area-inset-top,0px));border-radius:24px 24px 0 0!important;border-width:1px 0 0!important;padding:20px!important}}.release-btn:disabled,.release-btn[aria-disabled=true]{opacity:.46;cursor:not-allowed;filter:saturate(.55);box-shadow:none}#mentionsButton.no-unread-mentions{display:none!important}#gifMenu.gif-clean-panel .relative{display:block!important}#gifMenu.gif-clean-panel .gif-meta-row{display:flex!important}#gifMenu.gif-clean-panel #gifGridTitle,#gifMenu.gif-clean-panel #gifAttribution{display:block!important}#gifMenu.gif-clean-panel #gifGridStatus:not(:empty){display:block!important}#gifMenu.gif-clean-panel .gif-empty-state,#gifMenu.gif-clean-panel .gif-grid-status-card{display:grid!important}.input-area #gifMenu.gif-keyboard-panel .gif-grid,#gifMenu.gif-clean-panel .gif-grid,#gifMenu.gif-clean-panel #gifGrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))!important;grid-auto-flow:row!important;gap:8px!important;overflow-x:hidden!important;overflow-y:auto!important;max-height:min(32vh,248px)!important;padding:0 2px 4px 0!important;scroll-snap-type:none!important}.input-area #gifMenu.gif-keyboard-panel .gif-item,#gifMenu.gif-clean-panel .gif-item{width:auto!important;min-width:0!important}.input-area #gifMenu.gif-keyboard-panel .gif-item img,#gifMenu.gif-clean-panel .gif-item img{width:100%!important;height:82px!important;object-fit:cover!important}@media(max-width:520px){.chat-header{gap:6px;padding-left:8px;padding-right:8px}.chat-header-identity{gap:7px}.chat-header-identity #chatAvatar{width:32px!important;height:32px!important;font-size:.86rem!important}.chat-header-copy>div:first-child{min-width:0;gap:4px!important}#chatName{flex:1 1 auto;min-width:0;font-size:.9rem;-webkit-line-clamp:1}#e2eeBadge{width:24px;height:24px;flex:0 0 24px;justify-content:center;padding:0!important;border-radius:999px}#e2eeBadge>span{display:none}.chat-header-actions,.chat-header-primary{gap:4px}.chat-header-action-btn{width:32px;height:32px}.mode-selector{overflow:visible;padding:7px 8px}#modeOptions{display:flex;flex-wrap:wrap;gap:6px!important;overflow:visible;padding:0}.mode-option{flex:1 1 auto;min-height:34px;justify-content:center;padding:4px 7px;font-size:.72rem}.input-area #gifMenu.gif-keyboard-panel,.input-area #gifMenu.gif-keyboard-panel.active{height:min(40dvh,324px)!important;max-height:min(40dvh,324px)!important}.input-area #gifMenu.gif-keyboard-panel .gif-grid,#gifMenu.gif-clean-panel .gif-grid,#gifMenu.gif-clean-panel #gifGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:calc(min(40dvh,324px) - 92px)!important}.input-area #gifMenu.gif-keyboard-panel .gif-item img,#gifMenu.gif-clean-panel .gif-item img{height:76px!important}}@media(max-width:350px){.chat-header{padding-left:6px;padding-right:6px}.chat-header-action-btn{width:30px;height:30px}.mode-option{font-size:.68rem}}:root{--fc-blue: #2563eb;--fc-blue-strong: #1d4ed8;--fc-blue-soft: #dbeafe;--fc-surface: #ffffff;--fc-surface-soft: #f5f8fc;--fc-surface-muted: #eaf1fb;--fc-line: #d7e0ec;--fc-text: #0f172a;--fc-muted: #64748b;--fc-dark: #0f172a;--fc-dark-soft: #17233a;--fc-dark-line: #334155;--flashchat-safe-bottom: env(safe-area-inset-bottom, 0px)}html,body{width:100%;height:100%;min-height:100%;min-height:100dvh;overscroll-behavior:none}html,html[data-boot-theme=light],body.theme-light{background:var(--fc-surface-soft)!important;color:var(--fc-text)}html[data-boot-theme=dark],body:not(.theme-light){background:var(--fc-dark)!important}body *,body *:before,body *:after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}body:after{content:"";position:fixed;z-index:-1;right:0;bottom:0;left:0;height:max(1px,env(safe-area-inset-bottom,0px));background:inherit;pointer-events:none}#app,#appContainer{width:100%!important;height:100%!important;height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--fc-surface-soft)!important;box-shadow:none!important}body.theme-light #app .nav-rail,body.theme-light #navRail{background:#dceafe!important;border-color:#bdd2ef!important;box-shadow:none!important}body.theme-light #app #sidebar,body.theme-light #sidebar,body.theme-light #sidebarMain,body.theme-light .sidebar-topbar,body.theme-light .sidebar-pane-chats,body.theme-light #sidebarStatusBar,body.theme-light #chatHeader,body.theme-light .input-area,body.theme-light .input-wrapper{background:var(--fc-surface)!important;border-color:var(--fc-line)!important;box-shadow:none!important}body #app #sidebar{inset:0 auto 0 0!important;height:100%!important;margin:0!important;padding:0!important;border-radius:0!important;border:0!important;background:var(--fc-surface)!important;box-shadow:none!important}body #app #sidebarMain,body #app .nav-rail,body #app .sidebar-pane,body #app .sidebar-topbar{margin:0!important;border-radius:0!important;box-shadow:none!important}body.theme-light #app #sidebar .nav-rail{border-radius:0!important;background:#dceafe!important;box-shadow:none!important}.bot-list-item,.bot-create-form button,.bot-token-result button,#settingsSectionBots a{gap:8px!important}.preview-box .pending-image-edit{position:absolute!important;right:4px!important;bottom:4px!important;top:auto!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:9px!important;color:#fff!important;background:var(--fc-blue)!important;box-shadow:none!important}body.theme-light #chatArea,body.theme-light #emptyState,body.theme-light #activeChat,body.theme-light #messagesContainer{background-color:var(--fc-surface-soft)!important;background-image:none!important}.nav-rail-btn,.sidebar-topbar-btn,.chat-header-action-btn,.btn-round,.composer-tools-toggle,.composer-send-btn,.round-icon-action,.security-icon-btn,.call-action-btn{border-radius:12px!important;box-shadow:none!important;transform:none!important}.nav-rail-btn.is-active,.nav-rail-btn:hover,.settings-side-item.active,.settings-overview-item:hover{background:#eef5ff!important;color:var(--fc-blue-strong)!important}.message-bubble,.contact-card,.file-card,.quoted-content,.pinned-message,.reply-preview,.edit-preview,.recording-indicator,.mode-selector,.chat-header-menu,.composer-tools-menu,.gif-menu,.message-menu,.settings-card,.security-card,.device-session-row,.device-session-panel,.device-session-hero,.botfather-hero,.bot-token-result{background-image:none!important;box-shadow:none!important}.message-bubble{border-radius:16px!important}.message-pop.justify-end .message-bubble{border-bottom-right-radius:5px!important}.message-pop.justify-start .message-bubble{border-bottom-left-radius:5px!important}.mobile-sheet-handle,#imageZoomLevel,#callModal.minimized,.story-gesture-hint{display:none!important}#callModal .call-modal{inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;transform:none!important}#addModal,#groupModal,#groupManageModal,#settingsModal,.settings-modal,.release-modal-root,.connected-modal-root,.feedback-modal,.draw-modal,.video-note-overlay,.story-editor-root,.story-viewer-root,.forward-modal{inset:0!important;width:100%!important;height:100%!important;height:100dvh!important;padding:0!important;align-items:stretch!important;justify-content:stretch!important;border-radius:0!important;background:var(--fc-surface-soft)!important}#addModalInner,#groupModal>div,#groupManageModal>div,.settings-content,.release-modal,.connected-calendar-sheet,.feedback-sheet,.draw-sheet,.video-note-sheet,.forward-content,.story-editor-sheet,.story-viewer-sheet{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--fc-surface)!important;background-image:none!important;box-shadow:none!important;transform:none!important;overflow:auto!important;padding-top:max(16px,env(safe-area-inset-top,0px))!important;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))!important}body:not(.theme-light) #addModal,body:not(.theme-light) #groupModal,body:not(.theme-light) #groupManageModal,body:not(.theme-light) #settingsModal,body:not(.theme-light) .release-modal-root,body:not(.theme-light) .feedback-modal,body:not(.theme-light) .draw-modal,body:not(.theme-light) .video-note-overlay,body:not(.theme-light) .forward-modal{background:var(--fc-dark)!important}body:not(.theme-light) #addModalInner,body:not(.theme-light) #groupModal>div,body:not(.theme-light) #groupManageModal>div,body:not(.theme-light) .settings-content,body:not(.theme-light) .release-modal,body:not(.theme-light) .feedback-sheet,body:not(.theme-light) .draw-sheet,body:not(.theme-light) .video-note-sheet,body:not(.theme-light) .forward-content{background:var(--fc-dark)!important}body.theme-light :is(#settingsModal,#addModal,#groupModal,#groupManageModal,.release-modal-root,.feedback-modal,.draw-modal) :is(.text-white,.text-slate-100,.text-slate-200,.text-slate-300){color:var(--fc-text)!important}body.theme-light :is(#settingsModal,#addModal,#groupModal,#groupManageModal,.release-modal-root,.feedback-modal) :is(.text-slate-400,.text-slate-500){color:var(--fc-muted)!important}body.theme-light :is(#settingsModal,#addModal,#groupModal,#groupManageModal,.release-modal-root,.feedback-modal) :is(.bg-slate-950,.bg-slate-900,.bg-slate-800,.bg-slate-700){background:var(--fc-surface-soft)!important;border-color:var(--fc-line)!important}body.theme-light :is(#settingsModal,#addModal,#groupModal,#groupManageModal,.release-modal-root,.feedback-modal) input,body.theme-light :is(#settingsModal,#addModal,#groupModal,#groupManageModal,.release-modal-root,.feedback-modal) textarea,body.theme-light :is(#settingsModal,#addModal,#groupModal,#groupManageModal,.release-modal-root,.feedback-modal) select{color:var(--fc-text)!important;background:var(--fc-surface)!important;border-color:var(--fc-line)!important}.settings-overview-item>span>i,.settings-side-item>span>i,.device-session-hero-icon,.connected-tool-icon.device,.botfather-avatar{color:var(--fc-blue)!important;background:var(--fc-blue-soft)!important;border-color:#b9d3fb!important}.rich-composer-toolbar{width:min(100%,960px);margin:0 auto 8px;padding:7px;display:flex;align-items:center;gap:6px;overflow-x:auto;border:1px solid var(--fc-line);border-radius:12px;background:var(--fc-surface);scrollbar-width:none}.rich-composer-toolbar::-webkit-scrollbar{display:none}.rich-composer-toolbar button,.rich-composer-toolbar select{min-width:38px;height:36px;padding:0 10px;border:1px solid var(--fc-line);border-radius:9px;color:var(--fc-text);background:var(--fc-surface-soft);font:inherit}.rich-composer-toolbar button.active,.rich-composer-toolbar button[aria-pressed=true]{color:#fff;border-color:var(--fc-blue);background:var(--fc-blue)}body:not(.theme-light) .rich-composer-toolbar{border-color:var(--fc-dark-line);background:var(--fc-dark-soft)}body:not(.theme-light) .rich-composer-toolbar button,body:not(.theme-light) .rich-composer-toolbar select{color:#e2e8f0;border-color:var(--fc-dark-line);background:var(--fc-dark)}.formatted-message{white-space:pre-wrap}.formatted-message[data-font=serif]{font-family:Georgia,Times New Roman,serif}.formatted-message[data-font=mono]{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.formatted-message[data-font=rounded]{font-family:ui-rounded,Arial Rounded MT Bold,system-ui,sans-serif}.formatted-message[data-font=handwriting]{font-family:Segoe Print,Bradley Hand,cursive}.formatted-message[data-size=small]{font-size:.86em}.formatted-message[data-size=large]{font-size:1.2em}.formatted-message[data-size=xlarge]{font-size:1.45em;line-height:1.35}.botfather-hero,.device-session-hero{padding:18px;display:flex;align-items:center;gap:14px;border:1px solid var(--fc-line);border-radius:16px;background:var(--fc-surface-soft)!important}.botfather-avatar,.device-session-hero-icon{width:48px;min-width:48px;height:48px;display:grid;place-items:center;border:1px solid;border-radius:14px}.bot-create-form{margin:16px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}.bot-token-result{margin-bottom:16px;padding:16px;border:1px solid #86efac;border-radius:14px;color:#14532d;background:#f0fdf4!important;overflow-wrap:anywhere}.bot-token-result code{display:block;margin-top:8px;font-family:ui-monospace,monospace}.bot-doc-links{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px}.bot-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.add-contact-existing{margin-top:22px;padding-top:18px;border-top:1px solid var(--fc-line)}.add-contact-existing-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--fc-text);font-weight:800}.add-contact-existing-list{margin-top:10px;display:grid;gap:8px}.add-contact-existing-row{width:100%;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--fc-line);border-radius:12px;color:var(--fc-text);background:var(--fc-surface-soft);text-align:left}.video-note-sheet{display:flex;flex-direction:column}.video-note-stage{flex:1;min-height:0;display:grid;place-items:center;align-content:center;gap:12px}.video-note-ring{width:min(72vmin,520px);aspect-ratio:1;overflow:hidden;border:5px solid var(--fc-blue);border-radius:50%;background:#0f172a}.video-note-ring video,.video-note-player video{width:100%;height:100%;object-fit:cover}.video-note-player{position:relative;width:min(62vw,320px);aspect-ratio:1;overflow:hidden;border-radius:50%;background:#0f172a}.video-note-actions{display:flex;justify-content:center;gap:12px}@media(max-width:899px){#appContainer{padding-bottom:env(safe-area-inset-bottom,0px)!important}#mobileBottomNav{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important;background:var(--fc-surface)!important}body:not(.theme-light) #mobileBottomNav{background:var(--fc-dark)!important}.rich-composer-toolbar{margin-bottom:5px;border-radius:10px}.bot-create-form{grid-template-columns:1fr}#addModalInner,#groupModal>div,.settings-content,.release-modal,.feedback-sheet,.draw-sheet,.video-note-sheet{padding-right:16px!important;padding-left:16px!important}}.official-bot-badge{width:auto!important;min-width:17px;height:19px;padding:0 6px;display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#0759c7;color:#fff;font-size:9px;font-weight:850;letter-spacing:.02em;white-space:nowrap}.official-bot-badge>span{line-height:1}.chat-list-row .contact-name+.official-bot-badge{flex:0 0 auto}.third-party-bot-badge{display:inline-flex;align-items:center;min-height:18px;padding:0 6px;border:1px solid var(--fc-line);border-radius:999px;color:var(--fc-muted);background:var(--fc-surface-muted);font-size:9px;font-weight:750;white-space:nowrap}.private-translation-card{margin-top:8px;padding:14px;border:1px solid var(--fc-line);border-left:4px solid var(--fc-blue);border-radius:14px;background:var(--fc-surface)}.private-translation-card .security-btn{margin-top:10px;width:fit-content}.private-translation-status[data-tone=success]{color:#047857!important}.private-translation-status[data-tone=warning]{color:#b45309!important}.private-translation-status[data-tone=danger]{color:#dc2626!important}.flash-accessibility-enhanced :focus-visible{outline:3px solid #facc15!important;outline-offset:3px!important;box-shadow:0 0 0 6px #2563eb61!important}.flash-accessibility-enhanced :is(button,[role=button],[role=switch],input,select,textarea,a){min-height:44px}.flash-high-contrast{--fc-line: #64748b;--fc-muted: #334155}.flash-high-contrast body:not(.theme-light){--fc-line: #cbd5e1;--fc-muted: #e2e8f0}.flash-high-contrast .message-bubble,.flash-high-contrast .settings-item,.flash-high-contrast .settings-select,.flash-high-contrast button{border-color:currentColor!important}.flash-reduce-motion *,.flash-reduce-motion *:before,.flash-reduce-motion *:after,.flash-system-reduce-motion *,.flash-system-reduce-motion *:before,.flash-system-reduce-motion *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}@media(max-width:899px){.official-bot-badge>span{display:none}.official-bot-badge{width:19px!important;padding:0;justify-content:center}.third-party-bot-badge{max-width:74px;overflow:hidden;text-overflow:ellipsis}.private-translation-card .security-btn{width:100%}}@media(min-width:900px){#addModalInner,#groupModal>div,#groupManageModal>div,.settings-content,.release-modal,.feedback-sheet,.video-note-sheet{padding-right:clamp(28px,5vw,72px)!important;padding-left:clamp(28px,5vw,72px)!important}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}#settingsModal .settings-content{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important}#settingsModal .settings-header{flex:0 0 auto;background:var(--fc-surface)!important;border-color:var(--fc-line)!important;backdrop-filter:none!important}#settingsModal .settings-section:not(.active){display:none!important}#settingsModal .settings-section.active{flex:1 1 auto;min-height:0;padding:18px 24px max(28px,env(safe-area-inset-bottom,0px))!important;overflow-x:hidden!important;overflow-y:auto!important}body:not(.theme-light) #settingsModal .settings-header{color:#f8fafc!important;background:var(--fc-dark)!important;border-color:var(--fc-dark-line)!important}.mesh-quick-status{width:100%;min-height:42px;padding:8px 12px;display:flex;align-items:center;gap:9px;border:0;border-top:1px solid var(--fc-line);color:var(--fc-muted);background:var(--fc-surface);font-size:12px;font-weight:700;text-align:left}.mesh-quick-status>span{flex:1}.mesh-quick-status .fa-bluetooth-b{color:var(--fc-blue);font-size:16px}.mesh-quick-status[data-mesh-state=active]{color:#166534;background:#f0fdf4}.mesh-quick-status[data-mesh-state=active] .fa-bluetooth-b{color:#16a34a}body:not(.theme-light) .mesh-quick-status{color:#cbd5e1;border-color:var(--fc-dark-line);background:var(--fc-dark-soft)}body:not(.theme-light) .mesh-quick-status[data-mesh-state=active]{color:#bbf7d0;background:#123524}@media(min-width:900px){#settingsModal.settings-modal{inset:0 0 0 var(--sidebar-settings-width)!important;width:auto!important;height:100dvh!important}#settingsModal .settings-section.active{padding-right:clamp(28px,4vw,56px)!important;padding-left:clamp(28px,4vw,56px)!important}}@media(min-width:900px)and (max-width:1199px){:root{--nav-rail-width: 76px;--sidebar-default-width: clamp(320px, 36vw, 360px);--sidebar-settings-width: var(--sidebar-default-width);--sidebar-layout-width: var(--sidebar-default-width)}body #app #sidebar,body:not(.settings-open) #app #sidebar,body.settings-open #app #sidebar{width:clamp(320px,36vw,360px)!important;max-width:clamp(320px,36vw,360px)!important;flex:0 0 clamp(320px,36vw,360px)!important;min-width:clamp(320px,36vw,360px)!important}body #app .nav-rail{width:var(--nav-rail-width)!important;min-width:var(--nav-rail-width)!important;flex:0 0 var(--nav-rail-width)!important}body #app #sidebarMain,body:not(.settings-open) #app #sidebarMain,body.settings-open #app #sidebarMain{width:calc(clamp(320px,36vw,360px) - var(--nav-rail-width))!important;max-width:calc(clamp(320px,36vw,360px) - var(--nav-rail-width))!important;flex:0 0 calc(clamp(320px,36vw,360px) - var(--nav-rail-width))!important;margin-left:var(--nav-rail-width)!important}body #app #chatArea{min-width:0!important;flex:1 1 auto!important}}@media(max-width:899px){#messageInput{font-size:16px!important}body #app .nav-rail,body.chat-mobile-open #app .nav-rail,body.settings-open #app .nav-rail{position:fixed!important;inset:auto 0 0!important;z-index:40000!important;display:flex!important;width:100%!important;height:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px))!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;background:var(--fc-surface)!important;border-top:1px solid var(--fc-line)!important}body #app #sidebar{z-index:40000!important;isolation:auto!important}body.settings-open #app #sidebar{background:transparent!important;border:0!important;box-shadow:none!important}body.settings-open #app #sidebarMain{opacity:0!important;visibility:hidden!important;pointer-events:none!important}body #app{isolation:auto!important}body:not(.theme-light) #app .nav-rail{background:var(--fc-dark)!important;border-top-color:var(--fc-dark-line)!important}body.chat-mobile-open #activeChat,body.chat-mobile-open #emptyState{padding-bottom:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px))!important}body.chat-mobile-open #messagesContainer{scroll-padding-bottom:calc(170px + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px))!important}#settingsModal.settings-modal{inset:0 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px)) 0!important;width:100%!important;height:auto!important;min-height:0!important}#settingsModal .settings-content{height:100%!important;min-height:0!important}#settingsModal .settings-section.active{padding-right:16px!important;padding-left:16px!important}#settingsSectionBots .bot-create-form input{width:100%;min-height:48px;font-size:16px;touch-action:manipulation}#settingsSectionBots .bot-create-form button{min-height:48px}}body #app #sidebar{position:relative;z-index:20;box-shadow:none!important}body:not(.theme-light) #app #sidebar{box-shadow:none!important}@media(min-width:900px){body #app #sidebar:after{content:none}body #app .nav-rail{box-shadow:8px 0 22px #0f172a2e!important}body:not(.theme-light) #app .nav-rail{box-shadow:8px 0 24px #00000057!important}}body.theme-light :is(.contact-name,#chatName,#statusText,.chat-header-copy,.chat-header-copy h2,.bot-list-item strong,.bot-list-item small,.bot-manager,.bot-manager strong,.bot-manager small){color:var(--fc-text)!important}body.theme-light :is(.contact-preview,.chat-last-seen,.bot-manager p,.bot-manager .bot-manager-muted){color:#475569!important}body.theme-light .nav-rail-title{color:#0f172a!important}body.theme-light .nav-rail-id{color:#334155!important}body.theme-light .nav-rail-status,body.theme-light .nav-rail .text-blue-100{color:#166534!important}.bot-call-disabled{display:none!important}.settings-overview-item>span>i,.settings-side-item>span>i,.settings-nav-svg{width:20px!important;min-width:20px!important;height:20px!important;padding:0!important;color:var(--fc-blue)!important;background:transparent!important;border:0!important;border-radius:0!important}.settings-nav-svg{display:inline-block;vertical-align:middle}.settings-side-item.active>span>i,.settings-side-item.active .settings-nav-svg,.settings-overview-item:hover>span>i,.settings-overview-item:hover .settings-nav-svg{color:var(--fc-blue)!important}.botfather-avatar{width:66px;min-width:66px;height:66px;padding:0;overflow:hidden;border:2px solid #93c5fd!important;border-radius:50%;background:#0b2a62!important}.botfather-avatar>i{color:#60a5fa;font-size:1.7rem}.botfather-initial{color:#fff;font-size:1.25rem;font-weight:900;line-height:1}.botfather-avatar img,.bot-avatar img,.bot-manager-avatar img,.bot-chat-avatar img{width:100%;height:100%;display:block;object-fit:cover}.bot-manager{margin:16px 0;padding:18px;border:1px solid var(--fc-line);border-radius:16px;background:var(--fc-surface-soft)}.bot-manager[hidden],.rich-composer-toolbar[hidden],.bot-commands-menu[hidden]{display:none!important}.bot-manager-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--fc-line)}.bot-manager-avatar,.bot-avatar{width:52px;min-width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:50%;color:#fff;background:var(--fc-blue)}.bot-manager-header-copy{min-width:0}.bot-manager-header-copy strong,.bot-manager-header-copy small{display:block;overflow-wrap:anywhere}.bot-manager-header-copy small{margin-top:3px;color:var(--fc-muted)}.bot-manager-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bot-manager-card{padding:14px;border:1px solid var(--fc-line);border-radius:13px;background:var(--fc-surface)}.bot-manager-card.wide{grid-column:1 / -1}.bot-manager-card>label,.bot-manager-card>strong{display:block;margin-bottom:8px;font-size:.8rem;font-weight:800}.bot-manager-card input,.bot-manager-card textarea,.bot-manager-card select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--fc-line);border-radius:10px;color:var(--fc-text);background:var(--fc-surface)}.bot-manager-card textarea{min-height:92px;resize:vertical}.bot-manager-actions{display:flex;flex-wrap:wrap;gap:8px}.bot-manager-actions button{min-height:40px;padding:9px 12px;border:1px solid var(--fc-line);border-radius:10px;color:var(--fc-text);background:var(--fc-surface);font-weight:750}.bot-manager-actions button.primary{color:#fff;border-color:var(--fc-blue);background:var(--fc-blue)}.bot-manager-actions button.danger{color:#b91c1c;border-color:#fecaca;background:#fff1f2}.bot-token-field{display:flex;align-items:center;gap:8px}.bot-token-field code{flex:1;min-width:0;padding:11px;overflow:hidden;text-overflow:ellipsis;border-radius:9px;color:#0f172a;background:#e2e8f0;font-family:ui-monospace,monospace;white-space:nowrap}.bot-visibility-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.bot-monthly-users{display:inline-flex;align-items:center;gap:7px;margin-top:10px;color:#166534;font-weight:800}.bot-commands-editor{display:grid;gap:8px}.bot-command-editor-row{display:grid;grid-template-columns:minmax(110px,.55fr) minmax(0,1fr) auto;gap:8px}.bot-commands-toggle{min-height:40px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid #bfdbfe;border-radius:12px;color:#1d4ed8;background:#eff6ff;font-size:.78rem;font-weight:800}.bot-commands-menu{width:min(100%,960px);max-height:240px;margin:0 auto 7px;padding:8px;overflow-y:auto;border:1px solid var(--fc-line);border-radius:12px;background:var(--fc-surface);box-shadow:0 14px 30px #0f172a29}.bot-command-item{width:100%;padding:10px;display:grid;grid-template-columns:auto 1fr;gap:10px;border-radius:9px;color:var(--fc-text);text-align:left}.bot-command-item:hover{background:var(--fc-surface-muted)}.bot-command-item code{color:var(--fc-blue-strong);font-weight:900}.bot-command-item span{color:var(--fc-muted)}.bot-start-card{width:min(92%,560px);margin:auto;padding:24px;border:1px solid var(--fc-line);border-radius:18px;color:var(--fc-text);background:var(--fc-surface);text-align:center}.bot-start-card .bot-chat-avatar{width:104px;height:104px;margin:0 auto 14px;overflow:hidden;border-radius:50%;background:var(--fc-blue)}.bot-start-card p{margin:8px auto 18px;color:var(--fc-muted);line-height:1.55}.bot-start-card button{min-height:46px;padding:10px 18px;border-radius:12px;color:#fff;background:var(--fc-blue);font-weight:900}body.bot-chat-not-started .input-area{display:none!important}.settings-item-button{width:100%;border:0;text-align:left}.settings-item-button>span{display:flex;align-items:center;min-width:0}.settings-item-button small{margin-left:auto;color:var(--fc-muted);font-size:.72rem;font-weight:600}.shared-profile-actions{display:grid;gap:9px}.shared-profile-actions>button{width:100%;min-height:62px;padding:11px 13px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--fc-line);border-radius:12px;color:var(--fc-text);background:var(--fc-surface);text-align:left}.shared-profile-actions>button>i:first-child{color:var(--fc-blue)}.shared-profile-actions>button span strong,.shared-profile-actions>button span small{display:block}.shared-profile-actions>button span small{margin-top:3px;color:var(--fc-muted);font-size:.72rem}.shared-profile-actions>button.danger,.shared-profile-actions>button.danger>i:first-child{color:#b91c1c}.rich-composer-toolbar{animation:rich-toolbar-in .16s ease-out}#richComposerToggle.is-active{color:#fff!important;background:var(--fc-blue)!important}@keyframes rich-toolbar-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(min-width:900px){body #app #sidebar,body:not(.settings-open) #app #sidebar,body.settings-open #app #sidebar{width:var(--sidebar-layout-width)!important;min-width:var(--sidebar-layout-width)!important;max-width:var(--sidebar-layout-width)!important;flex:0 0 var(--sidebar-layout-width)!important}body #app #sidebarMain,body:not(.settings-open) #app #sidebarMain,body.settings-open #app #sidebarMain{width:calc(var(--sidebar-layout-width) - var(--nav-rail-width))!important;max-width:calc(var(--sidebar-layout-width) - var(--nav-rail-width))!important;flex:0 0 calc(var(--sidebar-layout-width) - var(--nav-rail-width))!important}#sidebarResizer,body.settings-open #sidebarResizer{position:relative;inset:auto!important;z-index:30;width:8px!important;min-width:8px!important;display:block!important;cursor:col-resize;background:transparent}#sidebarResizer:after{content:"";position:absolute;inset:0 3px;background:transparent;transition:background .15s ease}#sidebarResizer:hover:after,#sidebarResizer:focus-visible:after,body.is-resizing-sidebar #sidebarResizer:after{background:var(--fc-blue)}#settingsModal.settings-modal{inset-inline-start:var(--sidebar-layout-width)!important}}@media(max-width:899px){body #app #sidebar{box-shadow:none!important}body.theme-light #app #sidebar>.nav-rail,body.theme-light.chat-mobile-open #app #sidebar>.nav-rail,body.theme-light.settings-open #app #sidebar>.nav-rail{box-shadow:0 -8px 24px #0f172a29!important}body:not(.theme-light) #app #sidebar>.nav-rail{box-shadow:0 -8px 26px #0000006b!important}.bot-manager-grid{grid-template-columns:1fr}.bot-manager-card.wide{grid-column:auto}.bot-manager-header{grid-template-columns:auto minmax(0,1fr)}.bot-manager-header>.bot-manager-close{grid-column:1 / -1;width:100%}.bot-command-editor-row{grid-template-columns:1fr}.bot-commands-toggle span{display:none}.bot-commands-toggle{width:42px;padding:0;justify-content:center}.settings-item-button small{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.input-wrapper{display:flex!important;flex-flow:row nowrap!important;align-items:flex-end!important;gap:8px!important}.input-wrapper>:is(button,.composer-textarea-shell){min-width:0}.input-wrapper>button{flex:0 0 auto}.input-wrapper>.composer-textarea-shell{flex:1 1 auto}:is(.btn-round,.composer-tools-toggle,.composer-send-btn,.chat-header-action-btn,.round-icon-action,.security-icon-btn,.call-action-btn,.sidebar-topbar-btn,.bot-commands-toggle){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;display:inline-grid!important;place-items:center!important;border-radius:50%!important}:is(.btn-round,.composer-tools-toggle,.composer-send-btn,.chat-header-action-btn,.round-icon-action,.security-icon-btn,.call-action-btn,.sidebar-topbar-btn,.bot-commands-toggle)[hidden],.bot-call-disabled{display:none!important}.bot-commands-toggle{gap:0!important}.nav-rail-btn{width:62px!important;min-width:62px!important;height:62px!important;min-height:62px!important;margin-inline:auto!important;padding:7px!important;border-radius:50%!important;color:var(--fc-blue)!important}.nav-rail-btn :is(i,.nav-status-mark),.settings-overview-item>span>i,.settings-side-item>span>i,.settings-nav-svg{color:var(--fc-blue)!important}.nav-rail-btn.is-active :is(i,.nav-status-mark){color:var(--fc-blue-strong)!important}.nav-rail-bolt{border-radius:50%!important}.bot-commands-toggle>span{display:none!important}.official-bot-badge{width:17px;height:17px;margin-inline-start:5px;display:inline-grid;place-items:center;vertical-align:middle;border-radius:50%;color:#fff;background:var(--fc-blue);font-size:9px;line-height:1}.chat-list-row .contact-name+.official-bot-badge{margin-inline-end:auto;flex:0 0 17px}.bot-activity-panel{width:min(92%,680px);margin:10px auto 4px;padding:11px 13px;display:flex;align-items:flex-start;gap:10px;border:1px solid #bfdbfe;border-radius:14px;color:var(--fc-text);background:var(--fc-surface)}.bot-activity-panel strong{display:block;color:var(--fc-blue-strong);font-size:.8rem}.bot-activity-panel pre{max-height:160px;margin-top:7px;overflow:auto;color:var(--fc-muted);font:12px/1.45 ui-monospace,monospace;white-space:pre-wrap}.bot-activity-pulse{width:10px;height:10px;margin-top:4px;flex:0 0 auto;border-radius:50%;background:var(--fc-blue);animation:bot-activity-pulse 1.1s ease-in-out infinite}@keyframes bot-activity-pulse{50%{opacity:.32;transform:scale(.72)}}.cache-storage-card{margin:12px 0;padding:16px;border:1px solid var(--fc-line);border-radius:16px;color:var(--fc-text);background:var(--fc-surface)}.cache-storage-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cache-storage-card header>i{color:var(--fc-blue);font-size:1.2rem}.cache-storage-card header p{margin-top:3px;color:var(--fc-muted);font-size:.75rem}.cache-capacity-track{height:13px;margin:15px 0 13px;overflow:hidden;border-radius:999px;background:var(--fc-surface-muted)}.cache-capacity-track>span{height:100%;display:block;border-radius:inherit;background:var(--fc-blue);transition:width .25s ease}.cache-breakdown{display:grid;gap:9px}.cache-breakdown>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:.78rem}.cache-breakdown strong{font-variant-numeric:tabular-nums}.cache-dot{width:9px;height:9px;border-radius:50%}.cache-dot.photos{background:#2563eb}.cache-dot.audio{background:#06b6d4}.cache-dot.files{background:#8b5cf6}.cache-dot.app{background:#64748b}.cache-segment-track{height:7px;margin-top:14px;display:flex;overflow:hidden;border-radius:999px;background:var(--fc-surface-muted)}.cache-segment-track>span{height:100%;transition:width .25s ease}.cache-segment-track>span:nth-child(1){background:#2563eb}.cache-segment-track>span:nth-child(2){background:#06b6d4}.cache-segment-track>span:nth-child(3){background:#8b5cf6}.cache-segment-track>span:nth-child(4){background:#64748b}@media(min-width:900px){.nav-rail-brand>.space-y-2{display:none!important}body #app #sidebar #sidebarMain{margin-inline-start:var(--nav-rail-width)!important}body.theme-light #app #sidebar .nav-rail{box-shadow:8px 0 22px #0f172a2e!important}body:not(.theme-light) #app #sidebar .nav-rail{box-shadow:8px 0 24px #00000057!important}}.nav-rail-btn-label{max-width:56px!important;overflow:visible!important;text-overflow:clip!important;font-size:9px!important}@media(max-width:899px){#sidebarResizer{display:none!important}body #app #sidebar>.nav-rail{box-shadow:0 -9px 25px #0f172a47!important}.nav-rail-btn{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;padding:5px!important}.input-wrapper{gap:6px!important}:is(.btn-round,.composer-tools-toggle,.composer-send-btn,.bot-commands-toggle){width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}body #app #sidebar>.nav-rail .nav-rail-btn{width:54px!important;min-width:54px!important;max-width:54px!important;height:54px!important;min-height:54px!important;max-height:54px!important;flex:0 0 54px!important;border-radius:50%!important}}#richComposerToggle,#richComposerToolbar{display:none!important}.official-bot-badge{display:inline-grid!important;width:1.08rem;height:1.08rem;padding:0!important;place-items:center;border:0!important;border-radius:999px;background:#168bff!important;color:#fff!important;font-size:.68rem!important;line-height:1;vertical-align:middle}.official-bot-badge>span{display:none!important}.flashchat-empty-bolt{width:clamp(92px,12vw,142px);height:clamp(92px,12vw,142px);margin:0 auto 1rem;object-fit:contain;filter:drop-shadow(0 18px 24px rgb(4 110 255 / .24));animation:flashchat-bolt-float 3.6s cubic-bezier(.77,0,.175,1) infinite}.flashchat-empty-primary{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:44px;margin:0 auto 14px;padding:.72rem 1rem;border:0;border-radius:14px;background:#246bfd;color:#fff;font-weight:800;touch-action:manipulation;transition:transform .14s cubic-bezier(.23,1,.32,1),background-color .14s ease;user-select:none;-webkit-user-select:none}.flashchat-empty-primary:active{transform:scale(.97)}.flashchat-empty-code{max-width:min(420px,calc(100vw - 2rem))}@media(hover:hover)and (pointer:fine){.flashchat-empty-primary:hover{background:#1558df}}@keyframes flashchat-bolt-float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){.flashchat-empty-bolt{animation:none}.flashchat-empty-primary{transition:background-color .14s ease}}@media(min-width:900px){.nav-rail-brand>.space-y-2{display:block!important;width:100%;min-width:0}.nav-rail-brand>.space-y-2>div,.nav-rail-brand .nav-rail-id,.nav-rail-brand .profile-hero-handle{display:none!important}.nav-rail-title{display:block!important;max-width:100%;overflow:hidden;font-size:12px!important;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}}body.group-chat-active .chat-header-identity{cursor:pointer;border-radius:14px;transition:background-color .16s ease,transform .16s ease}body.group-chat-active .chat-header-identity:hover,body.group-chat-active .chat-header-identity:focus-visible{background:#3b82f61c;outline:none}body.group-chat-active .chat-header-identity:active{transform:scale(.985)}body.group-chat-active #chatHeaderMoreBtn{display:none!important}.continuity-hero{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;margin:0 0 16px;padding:16px;border:1px solid rgb(37 137 255 / .28);border-radius:20px;background:linear-gradient(135deg,#006dff29,#0f172a14)}.continuity-hero img{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 10px 16px rgb(0 111 255 / .28))}.continuity-hero h5{margin:0 0 4px;color:var(--text-primary, #f8fafc);font-size:.98rem;font-weight:800}.continuity-hero p{margin:0;color:var(--text-secondary, #a8b3c6);font-size:.8rem;line-height:1.45}.continuity-send-btn{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid rgb(37 137 255 / .36);border-radius:10px;background:#006dff1f;color:#56a7ff;font-size:.76rem;font-weight:800}.continuity-send-btn:hover{background:#006dff38}.continuity-banner{position:fixed;z-index:1350;top:max(12px,env(safe-area-inset-top));left:50%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;width:min(560px,calc(100vw - 24px));padding:10px 12px;border:1px solid rgb(69 155 255 / .35);border-radius:18px;background:#101a2a;box-shadow:0 18px 50px #0000006b;color:#f8fafc;transform:translate(-50%,-140%);opacity:0;transition:transform .2s ease,opacity .2s ease}.continuity-banner.is-visible{transform:translate(-50%);opacity:1}.continuity-banner img{width:42px;height:42px;object-fit:contain}.continuity-banner strong,.continuity-banner span{display:block}.continuity-banner span{margin-top:2px;color:#aebbd0;font-size:.75rem}.continuity-banner-actions{display:flex;gap:7px}.continuity-banner button{min-height:34px;padding:0 10px;border-radius:10px;color:#dce9fb;font-size:.76rem;font-weight:800}.continuity-banner [data-continuity-action=open]{background:#087ff5;color:#fff}.continuity-banner [data-continuity-action=dismiss]{width:34px;padding:0;background:#94a3b81f}.group-call-shell{position:fixed;z-index:1600;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;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:radial-gradient(circle at 50% 18%,#162b51 0,#080e19 54%,#05080f);color:#fff}.group-call-shell[hidden],.group-call-invite[hidden]{display:none!important}.group-call-topbar{display:flex;gap:12px;align-items:center;justify-content:space-between}.group-call-topbar h3,.group-call-topbar p{margin:0}.group-call-topbar p{margin-top:3px;color:#9fafc7;font-size:.78rem}.group-call-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px;min-height:0;overflow:auto}.group-call-tile{position:relative;display:grid;min-height:180px;overflow:hidden;place-items:center;border:1px solid rgb(148 163 184 / .18);border-radius:24px;background:#101b2c}.group-call-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.group-call-tile.is-audio video{display:none}.group-call-avatar{display:grid;width:74px;height:74px;place-items:center;border-radius:50%;background:linear-gradient(135deg,#168bff,#385cff);box-shadow:0 0 0 9px #2d8fff1f;font-size:1.55rem;font-weight:900}.group-call-name{position:absolute;right:12px;bottom:11px;left:12px;overflow:hidden;color:#fff;font-size:.78rem;font-weight:800;text-overflow:ellipsis;text-shadow:0 1px 8px #000;white-space:nowrap}.group-call-pill{position:fixed;z-index:1590;right:max(16px,env(safe-area-inset-right));bottom:max(82px,calc(env(safe-area-inset-bottom) + 68px));display:inline-flex;gap:9px;align-items:center;min-height:48px;padding:0 14px;border:1px solid rgb(61 153 255 / .35);border-radius:16px;background:#0f213d;box-shadow:0 14px 38px #0006;color:#fff;font-size:.78rem;font-weight:850}.group-call-pill[hidden]{display:none!important}.group-call-pill strong{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#168bff;font-size:.7rem}.group-call-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}.group-call-controls button,.group-call-minimize{display:inline-grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#1e2b3e;color:#fff}.group-call-controls button.is-off{background:#f3f5f7;color:#111827}.group-call-controls button.is-end{background:#ef3340}.group-call-invite{position:fixed;z-index:1650;inset:0;display:grid;padding:18px;place-items:center;background:#02060dc2;backdrop-filter:blur(7px)}.group-call-invite-card{width:min(400px,100%);padding:24px;border:1px solid rgb(73 158 255 / .3);border-radius:26px;background:#101a2a;box-shadow:0 22px 70px #00000080;text-align:center}.group-call-invite-card img{width:88px;height:88px;margin:0 auto 8px;object-fit:contain}.group-call-invite-card h3{margin:0;color:#fff;font-size:1.2rem}.group-call-invite-card p{margin:6px 0 18px;color:#aebbd0;font-size:.85rem}.group-call-invite-actions{display:flex;gap:10px;justify-content:center}.group-call-invite-actions button{min-width:118px;min-height:44px;border-radius:14px;font-weight:900}.group-call-accept{background:#15a963;color:#fff}.group-call-decline{background:#ef3340;color:#fff}@media(max-width:560px){.continuity-banner{grid-template-columns:36px minmax(0,1fr)}.continuity-banner img{width:36px;height:36px}.continuity-banner-actions{grid-column:1 / -1}.continuity-banner [data-continuity-action=open]{flex:1}.group-call-shell{gap:10px;padding:max(12px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom))}.group-call-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.group-call-tile{min-height:150px;border-radius:18px}}html:not(.dark) .continuity-banner,html:not(.dark) .group-call-invite-card{background:#fff;color:#111827}html:not(.dark) .continuity-banner strong,html:not(.dark) .group-call-invite-card h3{color:#111827}:root{--sileo-spring-easing: linear( 0, .002 .6%, .007 1.2%, .015 1.8%, .026 2.4%, .041 3.1%, .06 3.8%, .108 5.3%, .157 6.6%, .214 8%, .467 13.7%, .577 16.3%, .631 17.7%, .682 19.1%, .73 20.5%, .771 21.8%, .808 23.1%, .844 24.5%, .874 25.8%, .903 27.2%, .928 28.6%, .952 30.1%, .972 31.6%, .988 33.1%, 1.01 35.7%, 1.025 38.5%, 1.034 41.6%, 1.038 45%, 1.035 50.1%, 1.012 64.2%, 1.003 73%, .999 83.7%, 1 );--sileo-duration: .6s;--sileo-height: 40px;--sileo-width: 350px;--sileo-state-success: oklch(.723 .219 142.136);--sileo-state-loading: oklch(.556 0 0);--sileo-state-error: oklch(.637 .237 25.331);--sileo-state-warning: oklch(.795 .184 86.047);--sileo-state-info: oklch(.685 .169 237.323);--sileo-state-action: oklch(.623 .214 259.815)}[data-sileo-toast]{position:relative;cursor:pointer;pointer-events:auto;touch-action:none;border:0;background:transparent;padding:0;width:var(--sileo-width);height:var(--_h, var(--sileo-height));opacity:0;transform:translateZ(0) scale(.95);transform-origin:center;contain:layout style;overflow:visible}[data-sileo-toast][data-state=loading]{cursor:default}[data-sileo-toast][data-ready=true]{opacity:1;transform:translateZ(0) scale(1);transition:transform calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),opacity calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),margin-bottom calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),margin-top calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),height var(--sileo-duration) var(--sileo-spring-easing)}[data-sileo-viewport][data-position^=top] [data-sileo-toast]:not([data-ready=true]){transform:translateY(-6px) scale(.95)}[data-sileo-viewport][data-position^=bottom] [data-sileo-toast]:not([data-ready=true]){transform:translateY(6px) scale(.95)}[data-sileo-toast][data-ready=true][data-exiting=true]{opacity:0;pointer-events:none}[data-sileo-viewport][data-position^=top] [data-sileo-toast][data-ready=true][data-exiting=true]{transform:translateY(-6px) scale(.95)}[data-sileo-viewport][data-position^=bottom] [data-sileo-toast][data-ready=true][data-exiting=true]{transform:translateY(6px) scale(.95)}[data-sileo-canvas]{position:absolute;left:0;right:0;pointer-events:none;transform:translateZ(0);contain:layout style;overflow:visible}[data-sileo-canvas][data-edge=top]{bottom:0;transform:scaleY(-1) translateZ(0)}[data-sileo-canvas][data-edge=bottom]{top:0}[data-sileo-svg]{overflow:visible}[data-sileo-header]{position:absolute;z-index:20;display:flex;align-items:center;padding:.5rem;height:var(--sileo-height);overflow:hidden;left:var(--_px, 0px);transform:var(--_ht);max-width:var(--_pw)}[data-sileo-toast][data-ready=true] [data-sileo-header]{transition:transform var(--sileo-duration) var(--sileo-spring-easing),left var(--sileo-duration) var(--sileo-spring-easing),max-width var(--sileo-duration) var(--sileo-spring-easing)}[data-sileo-header][data-edge=top]{bottom:0}[data-sileo-header][data-edge=bottom]{top:0}[data-sileo-header-stack]{position:relative;display:inline-flex;align-items:center;height:100%}[data-sileo-header-inner]{display:flex;align-items:center;gap:.5rem;white-space:nowrap;opacity:1;filter:blur(0px);transform:translateZ(0)}[data-sileo-header-inner][data-layer=current]{position:relative;z-index:1;animation:sileo-header-enter var(--sileo-duration) var(--sileo-spring-easing) both}[data-sileo-header-inner][data-layer=current]:not(:only-child),[data-sileo-header-inner][data-exiting=true]{will-change:opacity,filter}[data-sileo-header-inner][data-layer=prev]{position:absolute;left:0;top:0;z-index:0;pointer-events:none}[data-sileo-header-inner][data-exiting=true]{animation:sileo-header-exit calc(var(--sileo-duration) * .7) ease forwards}[data-sileo-badge]{display:flex;height:24px;width:24px;flex-shrink:0;align-items:center;justify-content:center;padding:2px;box-sizing:border-box;border-radius:9999px;color:var(--sileo-tone, currentColor);background-color:var(--sileo-tone-bg, transparent)}[data-sileo-title]{font-size:.825rem;line-height:1rem;font-weight:500;text-transform:capitalize;color:var(--sileo-tone, currentColor)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state]{--_c: var(--sileo-state-success)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state=loading]{--_c: var(--sileo-state-loading)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state=error]{--_c: var(--sileo-state-error)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state=warning]{--_c: var(--sileo-state-warning)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state=info]{--_c: var(--sileo-state-info)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state=action]{--_c: var(--sileo-state-action)}:is([data-sileo-badge],[data-sileo-title])[data-state]{--sileo-tone: var(--_c);--sileo-tone-bg: color-mix(in oklch, var(--_c) 20%, transparent)}[data-sileo-content]{position:absolute;left:0;z-index:10;width:100%;pointer-events:none;opacity:var(--_co, 0)}[data-sileo-content]:not([data-visible=true]){content-visibility:hidden}[data-sileo-toast][data-ready=true] [data-sileo-content]{transition:opacity calc(var(--sileo-duration) * .08) ease calc(var(--sileo-duration) * .04)}[data-sileo-content][data-edge=top]{top:0}[data-sileo-content][data-edge=bottom]{top:var(--sileo-height)}[data-sileo-content][data-visible=true]{pointer-events:auto}[data-sileo-toast][data-ready=true] [data-sileo-content][data-visible=true]{transition:opacity calc(var(--sileo-duration) * .6) ease calc(var(--sileo-duration) * .3)}[data-sileo-description]{width:100%;text-align:left;padding:1rem;font-size:.875rem;line-height:1.25rem;contain:layout style paint;content-visibility:auto}[data-sileo-button]{display:flex;align-items:center;justify-content:center;height:1.75rem;padding:0 .625rem;margin-top:.75rem;border-radius:9999px;border:0;font-size:.75rem;font-weight:500;cursor:pointer;color:var(--sileo-btn-color, currentColor);background-color:var(--sileo-btn-bg, transparent);transition:background-color .15s ease}[data-sileo-button]:hover{background-color:var(--sileo-btn-bg-hover, transparent)}[data-sileo-button][data-state]{--sileo-btn-color: var(--_c);--sileo-btn-bg: color-mix(in oklch, var(--_c) 15%, transparent);--sileo-btn-bg-hover: color-mix(in oklch, var(--_c) 25%, transparent)}[data-sileo-icon=spin]{animation:sileo-spin 1s linear infinite}@keyframes sileo-spin{to{transform:rotate(360deg)}}@keyframes sileo-header-enter{0%{opacity:0;filter:blur(6px)}to{opacity:1;filter:blur(0px)}}@keyframes sileo-header-exit{0%{opacity:1;filter:blur(0px)}to{opacity:0;filter:blur(6px)}}[data-sileo-viewport]{position:fixed;z-index:50;display:flex;gap:.75rem;padding:.75rem;pointer-events:none;max-width:calc(100vw - 1.5rem);contain:layout style}[data-sileo-viewport][data-position^=top] [data-sileo-toast]:not([data-ready=true]){margin-bottom:calc(-1 * (var(--sileo-height) + .75rem))}[data-sileo-viewport][data-position^=bottom] [data-sileo-toast]:not([data-ready=true]){margin-top:calc(-1 * (var(--sileo-height) + .75rem))}[data-sileo-viewport][data-position^=top]{top:0;flex-direction:column-reverse}[data-sileo-viewport][data-position^=bottom]{bottom:0;flex-direction:column}[data-sileo-viewport][data-position$=left]{left:0;align-items:flex-start}[data-sileo-viewport][data-position$=right]{right:0;align-items:flex-end}[data-sileo-viewport][data-position$=center]{left:50%;transform:translate(-50%);align-items:center}@media(prefers-reduced-motion:no-preference){[data-sileo-toast][data-ready=true]:hover,[data-sileo-toast][data-ready=true][data-exiting=true]{will-change:transform,opacity,height}}@media(prefers-reduced-motion:reduce){[data-sileo-viewport],[data-sileo-viewport] *,[data-sileo-viewport] *:before,[data-sileo-viewport] *:after{animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms}}[data-sileo-viewport][data-theme=dark] [data-sileo-description]{color:#00000080}[data-sileo-viewport][data-theme=light] [data-sileo-description]{color:#ffffff80}:root{color-scheme:light dark;--fc-blue: #246bfd;--fc-blue-hover: #1557e8;--fc-blue-pressed: #0f49c9;--fc-cyan: #45c7ff;--fc-green: #22c55e;--fc-red: #ef4444;--fc-amber: #f59e0b;--fc-text: #111827;--fc-text-2: #46536a;--fc-text-3: #6f7c91;--fc-canvas: #f3f6fb;--fc-surface: #fff;--fc-surface-2: #f8faff;--fc-surface-3: #edf2fa;--fc-material: rgba(255,255,255,.86);--fc-material-heavy: rgba(247,250,255,.96);--fc-stroke: rgba(69,83,107,.16);--fc-stroke-strong: rgba(69,83,107,.26);--fc-highlight: rgba(36,107,253,.1);--fc-highlight-strong: rgba(36,107,253,.18);--fc-shadow-1: 0 1px 2px rgba(17,24,39,.06),0 4px 14px rgba(17,24,39,.05);--fc-shadow-2: 0 12px 34px rgba(17,24,39,.12),0 2px 8px rgba(17,24,39,.06);--fc-shadow-3: 0 28px 80px rgba(10,20,40,.22),0 4px 16px rgba(10,20,40,.1);--fc-radius-xs: 9px;--fc-radius-sm: 13px;--fc-radius-md: 18px;--fc-radius-lg: 24px;--fc-radius-xl: 30px;--fc-duration-press: .12s;--fc-duration-fast: .16s;--fc-duration-ui: .22s;--fc-duration-sheet: .28s;--fc-ease-out: cubic-bezier(.23,1,.32,1);--fc-ease-in-out: cubic-bezier(.77,0,.175,1);--fc-ease-drawer: cubic-bezier(.32,.72,0,1);--fc-focus-ring: 0 0 0 3px rgba(36,107,253,.26);--fc-toast-bottom:1.25rem;font:100%/1.5 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-optical-sizing:auto;text-rendering:optimizeLegibility}body:not(.theme-light){--fc-text:#f5f7fb;--fc-text-2:#b9c3d4;--fc-text-3:#8996aa;--fc-canvas:#080d17;--fc-surface:#101827;--fc-surface-2:#151f31;--fc-surface-3:#1c2940;--fc-material:rgba(16,24,39,.86);--fc-material-heavy:rgba(16,24,39,.96);--fc-stroke:rgba(184,198,222,.14);--fc-stroke-strong:rgba(184,198,222,.24);--fc-highlight:rgba(69,141,255,.14);--fc-highlight-strong:rgba(69,141,255,.23);--fc-shadow-1:0 1px 2px rgba(0,0,0,.28),0 6px 18px rgba(0,0,0,.16);--fc-shadow-2:0 16px 42px rgba(0,0,0,.32),0 2px 8px rgba(0,0,0,.24);--fc-shadow-3:0 30px 90px rgba(0,0,0,.52),0 4px 18px rgba(0,0,0,.28)}html{min-height:100%;background:var(--fc-canvas);-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior:none}body{margin:0;min-height:100dvh;overflow:hidden;background:radial-gradient(circle at 92% 4%,rgba(69,199,255,.09),transparent 28rem),var(--fc-canvas)!important;color:var(--fc-text)!important;line-height:1.5;letter-spacing:0}#app{height:100dvh!important;background:transparent!important}h1,h2,h3,h4,h5,.settings-modal-title,#mobileSectionTitle,#chatName{color:var(--fc-text)!important;line-height:1.12;letter-spacing:-.022em;text-wrap:balance}p,label,input,textarea,select,button{letter-spacing:-.006em}small,.settings-caption,.contact-preview,.nav-rail-btn-label{color:var(--fc-text-2);line-height:1.38;letter-spacing:.006em}button,a,[role=button],[role=tab],.toggle,.mobile-sheet-handle{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,[role=button],[role=tab],a,.toggle{transition:transform var(--fc-duration-press) var(--fc-ease-out),background-color var(--fc-duration-fast) ease,border-color var(--fc-duration-fast) ease,color var(--fc-duration-fast) ease,opacity var(--fc-duration-fast) ease,box-shadow var(--fc-duration-fast) ease}button:active:not(:disabled),[role=button]:active,[role=tab]:active,a:active,.toggle:active{transform:scale(.97);transition-duration:var(--fc-duration-press)}.nav-rail-btn:active,.chat-header-action-btn:active,.release-icon-btn:active,.draw-icon-btn:active,#sendButton:active,.round-icon-action:active{transform:scale(.94)}button:focus-visible,[role=button]:focus-visible,[role=tab]:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.toggle:focus-visible,[tabindex]:focus-visible{outline:2px solid transparent!important;box-shadow:var(--fc-focus-ring)!important}button:disabled,button[aria-disabled=true],input:disabled,select:disabled,[role=button][aria-disabled=true]{opacity:.42!important;cursor:not-allowed!important;filter:saturate(.45)!important;box-shadow:none!important;transform:none!important}#sidebar{background:var(--fc-surface)!important;border-right:1px solid var(--fc-stroke)!important;box-shadow:none!important}body.theme-light #app #sidebar>.nav-rail,body:not(.theme-light) #app #sidebar>.nav-rail{background:linear-gradient(180deg,#0a54e8,#083aa9)!important;border:0!important;box-shadow:10px 0 34px #083aa933!important}.nav-rail-brand{gap:.55rem!important}.nav-rail-bolt{background:#fffffffa!important;color:var(--fc-blue)!important;border:1px solid rgba(255,255,255,.6)!important;box-shadow:0 8px 22px #00165438!important}.nav-rail-title,.nav-rail-id,body.theme-light .nav-rail-title,body.theme-light .nav-rail-id{color:#fff!important}.nav-rail-btn{color:#ffffffc7!important;border:1px solid transparent!important;background:transparent!important;border-radius:var(--fc-radius-md)!important}.nav-rail-btn.active,.nav-rail-btn[aria-current=page]{color:#fff!important;background:#ffffff29!important;border-color:#ffffff29!important;box-shadow:inset 0 1px #ffffff24!important}#sidebarMain,.settings-side-panel,.calls-side-panel,.news-side-panel{background:var(--fc-surface)!important}.mobile-header,.chat-header,.settings-header,.news-panel-header,.calls-panel-head,.settings-side-header{background:var(--fc-material-heavy)!important;border-color:var(--fc-stroke)!important;box-shadow:0 1px 0 var(--fc-stroke)!important}.search-input,input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select,.input-wrapper{min-height:44px;color:var(--fc-text)!important;background:var(--fc-surface-2)!important;border:1px solid var(--fc-stroke-strong)!important;border-radius:var(--fc-radius-sm)!important;box-shadow:inset 0 1px 2px #11182709!important;transition:border-color var(--fc-duration-fast) ease,box-shadow var(--fc-duration-fast) ease,background-color var(--fc-duration-fast) ease}input::placeholder,textarea::placeholder{color:var(--fc-text-3)!important;opacity:.82}input:focus,textarea:focus,select:focus,.input-wrapper:focus-within{background:var(--fc-surface)!important;border-color:#246bfd9e!important;box-shadow:var(--fc-focus-ring)!important}#chatListControls,.chat-filter-row{gap:.45rem!important;padding:.7rem .8rem!important}.chat-filter-chip,.tab-btn,.add-modal-choice{min-height:36px;padding-inline:.85rem!important;color:var(--fc-text-2)!important;background:var(--fc-surface-2)!important;border:1px solid var(--fc-stroke)!important;border-radius:999px!important;box-shadow:none!important;font-size:.78rem!important;font-weight:700!important}.chat-filter-chip.active,.chat-filter-chip[aria-selected=true],.tab-btn.active,.add-modal-choice.is-active{color:#fff!important;background:var(--fc-blue)!important;border-color:transparent!important;box-shadow:0 5px 15px #246bfd3d!important}#contactsList{padding:.35rem .55rem .9rem!important}#contactsList>[data-action=open-chat],.calls-item,.news-status-item,.add-contact-existing-item{min-height:70px;margin:.22rem 0;padding:.75rem!important;border:1px solid transparent!important;border-radius:var(--fc-radius-md)!important;background:transparent!important}#contactsList>[data-action=open-chat].bg-blue-600\/20,#contactsList>[data-action=open-chat][aria-current=true]{background:var(--fc-highlight)!important;border-color:#246bfd2e!important;box-shadow:inset 3px 0 var(--fc-blue)!important}.contact-name{color:var(--fc-text)!important;font-size:.94rem!important;letter-spacing:-.012em}.contact-preview{color:var(--fc-text-2)!important;font-size:.78rem!important}#sidebarStatusBar{min-height:44px;color:var(--fc-text-2)!important;background:var(--fc-surface-2)!important;border-color:var(--fc-stroke)!important}.sidebar-resizer{width:8px!important;background:transparent!important}.sidebar-resizer:after{content:"";display:block;width:2px;height:34px;margin:auto;border-radius:999px;background:transparent;transition:background-color var(--fc-duration-fast) ease,transform var(--fc-duration-fast) var(--fc-ease-out)}#mainContent,#emptyState,#activeChat{background:transparent!important}.empty-state{color:var(--fc-text-2)!important}.empty-state h2{font-size:clamp(1.65rem,2.3vw,2.35rem)!important;font-weight:760!important}.empty-state img{filter:drop-shadow(0 18px 34px rgba(36,107,253,.15))}.chat-header{min-height:68px!important;padding:.65rem 1rem!important}.chat-header-identity{border-radius:var(--fc-radius-sm);padding:.25rem .35rem}.chat-header-action-btn,.release-icon-btn,.security-icon-btn,.round-icon-action,.draw-icon-btn,.image-zoom-btn{width:42px!important;height:42px!important;min-width:42px;min-height:42px;display:inline-grid!important;place-items:center;color:var(--fc-blue)!important;background:var(--fc-highlight)!important;border:1px solid transparent!important;border-radius:999px!important;box-shadow:none!important}#messagesContainer{padding:1rem max(1rem,3vw) 1.35rem!important;overscroll-behavior:contain;scrollbar-gutter:stable}.message-row{margin-block:.16rem!important}.message-bubble{border:0!important;border-radius:20px!important;box-shadow:0 1px 2px #0a142814!important}.message-row:not(.me) .message-bubble,.message-bubble:not(.me){color:var(--fc-text)!important;background:var(--fc-surface)!important;border-bottom-left-radius:7px!important}.message-row.me .message-bubble,.message-bubble.me{color:#fff!important;background:linear-gradient(145deg,#2875ff,#1558df)!important;border-bottom-right-radius:7px!important}.message-time{color:inherit!important;opacity:.62}.input-area{padding:.65rem max(.75rem,env(safe-area-inset-right,0px)) calc(.65rem + env(safe-area-inset-bottom,0px)) max(.75rem,env(safe-area-inset-left,0px))!important;background:var(--fc-material-heavy)!important;border-color:var(--fc-stroke)!important;box-shadow:0 -10px 30px #1118270f!important}.input-wrapper{min-height:48px!important;padding:.25rem .35rem .25rem .75rem!important;border-radius:22px!important}#messageInput{min-height:40px!important;border:0!important;box-shadow:none!important;background:transparent!important}#sendButton{width:42px!important;height:42px!important;min-width:42px;color:#fff!important;background:var(--fc-blue)!important;border-radius:50%!important;box-shadow:0 7px 18px #246bfd47!important}.security-btn,.release-btn,.draw-send-btn,.profile-settings-actions button,.feedback-footer button,#createGroupBtn,#addContactBtn{min-height:44px;padding:.68rem 1rem!important;color:#fff!important;background:var(--fc-blue)!important;border:1px solid transparent!important;border-radius:var(--fc-radius-sm)!important;box-shadow:0 7px 18px #246bfd33!important;font-weight:720!important}.security-btn.secondary,.release-btn.secondary,.profile-settings-actions button.secondary,.feedback-footer button.secondary{color:var(--fc-text)!important;background:var(--fc-surface-2)!important;border-color:var(--fc-stroke-strong)!important;box-shadow:none!important}.danger,.delete,.security-btn.danger{color:var(--fc-red)!important}.toggle{width:48px!important;height:28px!important;padding:2px!important;background:var(--fc-surface-3)!important;border:1px solid var(--fc-stroke-strong)!important;border-radius:999px!important;box-shadow:inset 0 1px 2px #1118271a!important}.toggle:after{width:22px!important;height:22px!important;top:2px!important;left:2px!important;background:#fff!important;box-shadow:0 2px 5px #11182738!important;transition:transform var(--fc-duration-ui) var(--fc-ease-out)!important}.toggle.active,.toggle[aria-checked=true]{background:var(--fc-blue)!important;border-color:var(--fc-blue)!important}.toggle.active:after,.toggle[aria-checked=true]:after{transform:translate(20px)!important}.security-card,.profile-settings-card,.profile-qr-card,.device-session-panel,.cache-storage-card,.settings-item,.settings-overview-item,.settings-side-profile-card,.bot-manager-card,.privacy-shield-card,.call-caption-panel{color:var(--fc-text)!important;background:var(--fc-surface)!important;border:1px solid var(--fc-stroke)!important;border-radius:var(--fc-radius-md)!important;box-shadow:var(--fc-shadow-1)!important}.security-card,.profile-settings-card,.device-session-panel,.cache-storage-card{padding:1.15rem!important}.settings-side-nav{gap:.35rem!important}.settings-side-item{min-height:48px;padding:.65rem .8rem!important;color:var(--fc-text-2)!important;background:transparent!important;border:1px solid transparent!important;border-radius:var(--fc-radius-sm)!important}.settings-side-item.active,.settings-side-item[aria-current=page]{color:var(--fc-blue)!important;background:var(--fc-highlight)!important;border-color:#246bfd21!important}.settings-section{max-width:880px;margin-inline:auto;padding:clamp(1rem,2vw,2rem)!important}.settings-section>h4{margin-bottom:1rem!important;color:var(--fc-text-3)!important;font-size:.72rem!important;letter-spacing:.08em!important}.profile-avatar-core,.profile-qr-avatar,.settings-side-avatar,#chatAvatar,.contact-avatar,.story-viewer-avatar,.status-avatar-inner{overflow:hidden;border:2px solid var(--fc-surface)!important;box-shadow:0 0 0 1px var(--fc-stroke),0 7px 20px #1118271f!important}.avatar-media-shell,.avatar-media,.blobatar-fallback{display:block;width:100%;height:100%;border-radius:inherit}.avatar-media,.blobatar-fallback{object-fit:cover}.menu-overlay,.forward-modal,.feedback-modal,.draw-modal,.release-modal-root,#addModal,#groupModal,.call-overlay{background:#040a1670!important;-webkit-backdrop-filter:blur(8px) saturate(115%);backdrop-filter:blur(8px) saturate(115%);transition:opacity var(--fc-duration-ui) var(--fc-ease-out)!important}.message-menu,.chat-header-menu,.forward-content,.feedback-sheet,.draw-sheet,.release-modal,#addModalInner,.group-modal-panel,.call-sheet,.call-modal{color:var(--fc-text)!important;background:var(--fc-material-heavy)!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:var(--fc-radius-lg)!important;box-shadow:var(--fc-shadow-3)!important;transform-origin:var(--menu-origin,center)!important;transition:opacity var(--fc-duration-ui) var(--fc-ease-out),transform var(--fc-duration-ui) var(--fc-ease-out)!important}.message-menu,.chat-header-menu{--menu-origin:top right}.menu-section{border-color:var(--fc-stroke)!important}.menu-item,.chat-header-menu-item{min-height:46px!important;color:var(--fc-text)!important;background:transparent!important;border-radius:var(--fc-radius-sm)!important}.menu-item small,.chat-header-menu-item small{color:var(--fc-text-2)!important}.mobile-sheet-surface{will-change:transform;transition:transform var(--fc-duration-sheet) var(--fc-ease-drawer),opacity var(--fc-duration-ui) var(--fc-ease-out)!important}.mobile-sheet-surface.mobile-sheet-dragging{transition:none!important}.mobile-sheet-surface.mobile-sheet-compact{transform:translateY(min(28dvh,210px))}.mobile-sheet-surface.mobile-sheet-leaving{transform:translateY(105%)!important;opacity:.55}.mobile-sheet-handle{width:56px!important;height:28px!important;min-height:28px!important;margin:0 auto -.2rem!important;background:transparent!important;border:0!important}.mobile-sheet-handle:after{content:"";display:block;width:38px;height:5px;margin:auto;border-radius:999px;background:var(--fc-text-3);opacity:.48}.mobile-sheet-surface:before{display:none!important}.typing-indicator,.skeleton,[aria-busy=true]{color:var(--fc-text-2)!important}.loading-spinner,.fa-spinner{animation-duration:.66s!important}[data-sileo-viewport]{z-index:31000!important}[data-sileo-toast]{font-family:inherit;filter:drop-shadow(0 16px 28px rgba(8,18,38,.18))}#toast{display:none!important}.sidebar-selection-toggle{display:inline-flex!important;width:auto!important;min-width:54px!important;height:44px!important;padding-inline:8px!important;border-radius:10px!important}@media(min-width:900px){.nav-rail{padding-top:max(1rem,env(safe-area-inset-top,0px))!important}.settings-modal{background:transparent!important;backdrop-filter:none!important}.settings-container{background:var(--fc-canvas)!important}}@media(max-width:899px){:root{--fc-toast-bottom:5.25rem}.chat-back-button,[data-action=back-to-contacts]{display:flex!important;flex:0 0 44px!important;width:44px!important;height:44px!important}.sidebar-selection-toggle{display:inline-flex!important;width:auto!important;min-width:54px!important;height:44px!important;padding-inline:8px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--fc-text-2)!important}#settingsModal.settings-modal{inset:0 0 calc(68px + env(safe-area-inset-bottom,0px)) 0!important;height:auto!important;min-height:0!important}body.theme-light.settings-open #app #sidebar>.nav-rail,body.theme-light #app #sidebar>.nav-rail,body:not(.theme-light) #app #sidebar>.nav-rail{z-index:50000!important;display:flex!important;position:fixed!important;inset:auto 0 0!important;width:100%!important;height:calc(68px + env(safe-area-inset-bottom,0px))!important;padding:6px 8px env(safe-area-inset-bottom,0px)!important;background:var(--fc-surface)!important;border-top:1px solid var(--fc-stroke)!important;box-shadow:0 -8px 28px #1118271a!important}body.theme-light #app #sidebar>.nav-rail .nav-rail-btn,body:not(.theme-light) #app #sidebar>.nav-rail .nav-rail-btn{width:60px!important;min-width:60px!important;max-width:68px!important;height:54px!important;min-height:54px!important;max-height:54px!important;flex:1 1 60px!important;border-radius:var(--fc-radius-sm)!important;color:var(--fc-text-3)!important;background:transparent!important}body #app #sidebar>.nav-rail .nav-rail-btn.active,body #app #sidebar>.nav-rail .nav-rail-btn[aria-current=page]{color:var(--fc-blue)!important;background:var(--fc-highlight)!important;border-color:transparent!important;box-shadow:none!important}.settings-side-panel{height:100%!important;padding:0 14px 18px!important;gap:8px!important;scrollbar-width:thin;scrollbar-color:var(--fc-stroke-strong) transparent}.settings-side-header{position:sticky!important;top:0;z-index:2;margin:0 -14px 4px!important;padding:13px 16px!important}.settings-side-header p{display:none!important}.settings-side-profile-card{width:100%!important;min-height:64px!important;margin:4px 0 6px!important;padding:10px 12px!important;border-radius:var(--fc-radius-md)!important}.settings-side-group{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:2px!important;margin:0!important;padding:4px!important;background:var(--fc-surface)!important;border:1px solid var(--fc-stroke)!important;border-radius:var(--fc-radius-md)!important;box-shadow:var(--fc-shadow-1)!important}.settings-side-item{width:100%!important;min-width:0!important;min-height:46px!important;height:46px!important;margin:0!important;padding:8px 10px!important;border-radius:11px!important;box-shadow:none!important}#settingsSectionOverview.settings-section,#settingsSectionOverview.settings-section.active{width:100%!important;max-width:none!important;margin:0!important;padding:.9rem .85rem 5.5rem!important;scrollbar-width:none}#settingsSectionOverview::-webkit-scrollbar{display:none}.settings-overview-list{display:grid!important;grid-template-columns:1fr!important;gap:1px!important;width:100%!important;padding:4px!important;background:var(--fc-surface)!important;border:1px solid var(--fc-stroke)!important;border-radius:var(--fc-radius-md)!important;box-shadow:var(--fc-shadow-1)!important}.settings-overview-item{width:100%!important;min-height:48px!important;margin:0!important;padding:.68rem .75rem!important;border:0!important;border-radius:11px!important;box-shadow:none!important;background:transparent!important}:root{font-size:16px}#app,#sidebar,#mainContent,.settings-modal{min-height:100dvh!important}input,textarea,select{font-size:16px!important}button,[role=button],[role=tab],.toggle{min-height:44px}.nav-rail{background:#f4f8ffe8!important;border-top:1px solid rgba(61,78,107,.14)!important;box-shadow:0 -12px 34px #1125481f!important;-webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%)}body:not(.theme-light) .nav-rail{background:#0c1422e8!important}.nav-rail-btn{color:var(--fc-text-2)!important;border-radius:var(--fc-radius-md)!important}.nav-rail-btn.active,.nav-rail-btn[aria-current=page]{color:var(--fc-blue)!important;background:var(--fc-highlight)!important}.mobile-header{padding-top:max(.45rem,env(safe-area-inset-top,0px))!important}#contactsList{padding:.3rem .65rem 6.5rem!important}#messagesContainer{padding-inline:.65rem!important}.message-bubble{max-width:86%!important}.settings-section{padding:1rem .9rem 6.5rem!important}.message-menu,.forward-content,.feedback-sheet,.draw-sheet,.release-modal,#addModalInner,.group-modal-panel{border-radius:var(--fc-radius-xl) var(--fc-radius-xl) 0 0!important;padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px))!important}body.chat-mobile-open #activeChat{padding-bottom:0!important}#sidebarMain .sidebar-topbar-plus{color:#fff!important;background:var(--fc-blue)!important;border-color:transparent!important;box-shadow:0 6px 16px #246bfd47!important}}@media(hover:hover)and (pointer:fine){.nav-rail-btn:hover{color:#fff!important;background:#ffffff1c!important}#contactsList>[data-action=open-chat]:hover,.calls-item:hover,.news-status-item:hover,.settings-side-item:hover,.menu-item:hover,.chat-header-menu-item:hover{background:var(--fc-highlight)!important}.security-btn:hover,.release-btn:hover,#sendButton:hover{background:var(--fc-blue-hover)!important}.chat-header-action-btn:hover,.release-icon-btn:hover,.round-icon-action:hover{background:var(--fc-highlight-strong)!important}.sidebar-resizer:hover:after,.sidebar-resizer:focus-visible:after{background:var(--fc-blue);transform:scaleY(1.22)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.12s!important;transition-delay:0ms!important}.mobile-sheet-surface,.message-menu,.chat-header-menu,.forward-content,.feedback-sheet,.draw-sheet,.release-modal{transform:none!important}button:active:not(:disabled),[role=button]:active,[role=tab]:active,a:active,.toggle:active{transform:none!important;opacity:.72}}@media(prefers-reduced-transparency:reduce){.nav-rail,.mobile-header,.chat-header,.settings-header,.input-area,.menu-overlay,.forward-modal,.feedback-modal,.draw-modal,.release-modal-root,.message-menu,.chat-header-menu,.forward-content,.feedback-sheet,.draw-sheet,.release-modal,#addModalInner,.group-modal-panel{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.nav-rail,.mobile-header,.chat-header,.settings-header,.input-area{background:var(--fc-surface)!important}.message-menu,.chat-header-menu,.forward-content,.feedback-sheet,.draw-sheet,.release-modal,#addModalInner,.group-modal-panel{background:var(--fc-surface)!important;border-color:var(--fc-stroke-strong)!important}}@media(prefers-contrast:more){:root{--fc-stroke:currentColor;--fc-stroke-strong:currentColor;--fc-text-2:var(--fc-text)}button,[role=button],input,textarea,select,.message-bubble,.security-card,.settings-item{border-width:2px!important}:focus-visible{outline-color:currentColor!important;outline-offset:2px!important}}
