.chat-voice{position:relative;flex:1;width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;color:var(--theme-text, #f5f5f7);background:var(--theme-panel, #15161b);touch-action:none;-webkit-user-select:none;user-select:none}.chat-voice__row{display:flex;align-items:center;gap:6px;min-width:0}.chat-voice .chat-voice__button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--theme-panel-elevated, #23232a);color:var(--theme-text-soft, #c5c7d1);cursor:pointer}.chat-voice .chat-voice__primary{background:var(--theme-accent-strong, #6d50ca);color:var(--theme-on-accent, #fff)}.chat-voice--holding .chat-voice__mic{background:var(--theme-danger, #ef737e);color:var(--theme-on-accent, #fff)}.chat-voice--cancel-armed .chat-voice__hint,.chat-voice--cancel-armed .chat-voice__delete{color:var(--theme-danger, #ef737e)}.chat-voice .chat-voice__delete{background:transparent;color:var(--theme-muted, #9ca3af)}.chat-voice .chat-voice__delete:hover{color:var(--theme-danger, #ef737e)}.chat-voice__button:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:2px}.chat-voice__button:disabled{opacity:.55;cursor:wait}.chat-voice__capture,.chat-voice__preview{flex:1;min-width:0}.chat-voice__meter{display:flex;align-items:center;gap:6px;min-width:0;height:28px}.chat-voice__time{color:var(--theme-text, #f5f5f7);font-size:14px;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap}.chat-voice__dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--theme-muted, #9ca3af)}.chat-voice__dot--active{background:var(--theme-danger, #ef737e)}.chat-voice__wave{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex:1;min-width:0;height:28px;overflow:hidden}.chat-voice__wave i{display:block;width:3px;height:3px;flex:0 0 3px;border-radius:2px;background:var(--theme-accent, #8b70e0)}.chat-voice__hint{display:flex;align-items:center;gap:3px;min-height:17px;color:var(--theme-muted, #9ca3af);font-size:11px;line-height:17px}.chat-voice__lock-hint{position:absolute;z-index:1;right:17px;bottom:calc(100% + 6px);display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 9px;border:1px solid var(--theme-border, #2d2d33);border-radius:20px;background:var(--theme-panel-elevated, #23232a);color:var(--theme-text-soft, #c5c7d1);pointer-events:none}.chat-voice__preview audio{display:block;width:100%;min-width:0;height:40px}.chat-voice__preview small{display:block;color:var(--theme-muted, #9ca3af);font-size:11px;margin:4px 0 0}.chat-voice__error{margin:6px 0 0;color:var(--theme-danger, #ef737e);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.chat-voice__spinner{animation:chat-voice-spin .9s linear infinite}@keyframes chat-voice-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.chat-voice__spinner{animation:none}}@media(max-width:360px){.chat-voice{padding-inline:6px}.chat-voice__row{gap:3px}.chat-voice__meter{gap:4px}}[translate=no].chat-text-private,[translate=no].chat-text-private *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}[translate=no].chat-text-private :is(input,textarea,[contenteditable]:not([contenteditable=false])),[translate=no].chat-text-private [contenteditable]:not([contenteditable=false]) *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.chat-media__layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:16px;background:#05060a94;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);min-width:0}.chat-media__panel{width:min(460px,100%);max-height:100%;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--theme-border, #2d2d33);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:14px;background:var(--theme-panel, #15161b);color:var(--theme-text, #f5f5f7);box-shadow:0 20px 70px #00000061;min-width:0}.chat-media__panel--viewer{width:min(760px,100%)}.chat-media__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-media__header h3{font-size:17px;font-weight:700;margin:0;min-width:0;overflow-wrap:anywhere}.chat-media__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;background:transparent;color:inherit;border:1px solid var(--theme-border, #2d2d33);border-radius:9px;cursor:pointer}.chat-media__actions{display:flex;gap:8px;flex-wrap:wrap}.chat-media__button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 11px;border-radius:9px;border:1px solid var(--theme-border, #2d2d33);background:var(--theme-panel-elevated, #1a1c24);color:var(--theme-text, #f5f5f7);font-size:12px;cursor:pointer}.chat-media__button--primary{background:var(--theme-accent, #6d50ca);color:var(--theme-on-accent, #fff)}.chat-media__button:disabled,.chat-media__sticker-choice:disabled{opacity:.55;cursor:wait}.chat-media__panel button:focus-visible,.chat-media__attachment button:focus-visible,.chat-media__panel input:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:3px}.chat-media__hint,.chat-media__attachment small,.chat-media__file-picker small{font-size:12px;line-height:1.5;color:var(--theme-muted, #9ca3af);margin:0}.chat-media__error{font-size:12px;line-height:1.5;color:var(--theme-danger, #ef737e);margin:0;overflow-wrap:anywhere}.chat-notification-server-check{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px;border:1px solid var(--theme-border, #2d2d33);border-radius:10px;background:var(--theme-panel-elevated, #1a1c24);color:var(--theme-text, #f5f5f7);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat-notification-server-check__title{display:flex;align-items:center;gap:7px;font-size:13px}.chat-notification-server-check__title svg{flex:0 0 auto;color:var(--theme-accent, #6d50ca)}.chat-notification-server-check--failed .chat-notification-server-check__title svg{color:var(--theme-danger, #ef737e)}.chat-notification-server-check__address{font-variant-numeric:tabular-nums}.chat-media__protect{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5}.chat-media__protect input{accent-color:var(--theme-accent, #8b70e0);width:17px;height:17px;flex:0 0 auto}.chat-media__file-picker{display:flex;flex-direction:column;gap:10px;font-size:13px;border:1px dashed var(--theme-border, #444453);border-radius:12px;padding:14px;min-width:0}.chat-media__file-picker>span{display:inline-flex;align-items:center;gap:8px}.chat-media__file-picker input{max-width:100%;min-width:0;font-size:12px}.chat-media__capture,.chat-media__draft{display:flex;flex-direction:column;gap:12px;min-width:0}.chat-media__camera-switch{width:44px;height:44px}.chat-media__capture .chat-media__button{min-height:44px}.chat-media__recording-status{margin:0;font-size:13px;font-variant-numeric:tabular-nums}.chat-media__capture>video,.chat-media__preview{display:block;width:100%;max-height:min(50dvh,420px);object-fit:contain;border-radius:10px;background:#08090b}.chat-media__panel audio{display:block;width:100%;max-width:100%}.chat-media__filename{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere;margin:0}.chat-media__selection{display:flex;flex-direction:column;gap:8px;min-width:0}.chat-media__file-list{list-style:none;padding:0;margin:0;max-height:26dvh;overflow-y:auto;overscroll-behavior:contain}.chat-media__file-item{display:flex;align-items:center;gap:6px;padding:3px;min-width:0}.chat-media__file-review{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:48px;padding:8px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--theme-text, #f5f5f7);text-align:left;cursor:pointer}.chat-media__file-review[aria-pressed=true]{background:var(--theme-panel-elevated, #1a1c24);border-color:var(--theme-accent, #8b70e0)}.chat-media__file-review>svg{flex:0 0 auto}.chat-media__file-review>span{min-width:0}.chat-media__file-item>.chat-media__icon{width:44px;height:44px}.chat-media__file-item button:disabled{opacity:.55;cursor:default}.chat-media__protected-placeholder{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 12px;border:1px solid var(--theme-border, #2d2d33);background:var(--theme-panel-elevated, #1a1c24);border-radius:12px;text-align:center;font-size:13px}.chat-media__protected-placeholder small{color:var(--theme-muted, #9ca3af);line-height:1.5}.chat-media__attachment{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;width:min(320px,100%);padding:10px 0 2px;color:inherit}.chat-media__attachment--has-menu:not(.chat-media__attachment--visual) .chat-media__attachment-head{padding-right:48px}.chat-media-menu{position:relative;flex:0 0 auto;color:var(--theme-text, #f5f5f7)}.chat-media-menu--card{position:absolute;top:14px;right:4px;z-index:3}.chat-media-menu[open]{z-index:3}.chat-media-menu--card[open]{z-index:4}.chat-media-menu>summary{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:0;border:1px solid var(--theme-border-strong, #3d3d43);border-radius:12px;background:var(--theme-panel-elevated, #23232a);color:var(--theme-text, #f5f5f7);list-style:none;cursor:pointer;touch-action:manipulation}.chat-media-menu>summary::-webkit-details-marker{display:none}.chat-media-menu>summary:focus-visible,.chat-media-menu__items>button:focus-visible{outline:2px solid var(--theme-accent, #34d399);outline-offset:3px}.chat-media-menu__items{position:absolute;top:calc(100% + 5px);right:0;width:192px;max-width:calc(100vw - 32px);padding:5px;border:1px solid var(--theme-border-strong, #3d3d43);border-radius:12px;background:var(--theme-panel-elevated, #23232a);color:var(--theme-text, #f5f5f7);box-shadow:0 8px 24px var(--theme-shadow, #0005)}.chat-media-menu__items>button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:10px 9px;border:0;border-radius:7px;background:transparent;color:var(--theme-text, #f5f5f7);font-size:12px;text-align:left;cursor:pointer;touch-action:manipulation}.chat-media-menu__items>button:hover{background:var(--theme-accent-soft, rgba(52, 211, 153, .16))}.chat-media-menu__items>button:disabled{cursor:default;opacity:.5}.chat-media__attachment-head{display:flex;align-items:center;gap:10px;min-width:0}.chat-media__attachment-head>svg{flex:0 0 auto}.chat-media__attachment-head>div{min-width:0}.chat-media__attachment progress{width:100%;accent-color:var(--theme-accent, #8b70e0)}.chat-media__relay{display:grid;grid-template-columns:14px minmax(0,1fr);align-items:center;gap:5px 6px;min-width:0;color:var(--theme-muted, #9ca3af);font-size:11px;line-height:1.4}.chat-media__relay>progress{grid-column:2;height:4px}.chat-media__relay>span{overflow-wrap:anywhere}.chat-gallery-card__server-control.chat-media__server-control,.chat-media__server-ready{position:relative;inset:auto;transform:none;flex:0 0 52px;width:52px;height:52px;z-index:0}.chat-media__server-control .chat-gallery-card__server-upload{width:44px;height:44px}.chat-media__server-control .chat-gallery-card__server-progress>svg{width:100%;height:100%}.chat-media__server-ready{display:grid;place-items:center;color:var(--theme-accent, #34d399);pointer-events:none}.chat-media__server-ready>svg{box-sizing:content-box;padding:10px;border:1px solid var(--theme-border-strong, #3d3d43);border-radius:50%;background:var(--theme-panel-elevated, #23232a)}.chat-media__server-copy{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 0;border-bottom:1px solid var(--theme-border, #2d2d33)}.chat-media__server-copy>div{flex:1;min-width:0}.chat-media__server-copy strong{display:block;overflow-wrap:anywhere;font-size:12px}.chat-media__sticker-preview{align-self:flex-start;padding:0;border:0;background:transparent;cursor:pointer}.chat-media__sticker-preview img{display:block;max-width:160px;max-height:160px;object-fit:contain}.chat-media__tabs{display:flex;gap:8px}.chat-media__tabs [aria-selected=true]{border-color:var(--theme-accent, #8b70e0);background:var(--theme-panel-elevated, #272031)}.chat-media__emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:5px}.chat-media__emoji{border:0;background:transparent;font-size:25px;min-height:40px;border-radius:8px;cursor:pointer}.chat-media__emoji:hover{background:var(--theme-panel-elevated, #272031)}.chat-media__sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;margin-bottom:14px}.chat-media__sticker-choice{border:1px solid var(--theme-border, #2d2d33);background:transparent;color:inherit;border-radius:10px;padding:6px;min-height:76px;cursor:pointer;overflow-wrap:anywhere;font-size:11px}.chat-media__sticker-choice img{width:100%;height:72px;object-fit:contain}.chat-media__form{display:flex;flex-direction:column;gap:14px;min-width:0}.chat-media__field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;line-height:1.4}.chat-media__field>span{color:var(--theme-text-soft, #d4d4d8)}.chat-media__field input,.chat-media__field select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;border:1px solid var(--theme-border, #2d2d33);border-radius:9px;padding:9px 11px;font-size:14px;background:var(--theme-input, #0f0f12);color:var(--theme-text, #f5f5f7)}.chat-media__field input:disabled,.chat-media__field select:disabled{opacity:.65}.chat-media__field select:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:3px}.chat-media__field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(75px,.6fr);gap:10px}.chat-media__password-field{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px}.chat-media__password-field .chat-media__icon{height:40px;width:40px}.chat-media__verification-code{display:flex;flex-direction:column;align-items:center;gap:12px;border:1px solid var(--theme-border-strong, #3d3d43);border-radius:12px;background:var(--theme-panel-elevated, #23232a);padding:18px 12px}.chat-media__verification-code code{font-size:19px;line-height:1.65;text-align:center;overflow-wrap:anywhere;white-space:pre-wrap;letter-spacing:.05em;-webkit-user-select:all;user-select:all}.chat-media__fingerprint{font-size:11px;line-height:1.6;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;padding:8px;border-radius:8px;background:var(--theme-input, #0f0f12)}.chat-media__verification-qr{display:flex;justify-content:center;max-width:100%;overflow:hidden}.chat-media__verification-qr img,.chat-media__verification-qr svg{max-width:100%;height:auto}.chat-media__button--danger{color:var(--theme-danger, #fca5a5);background:var(--theme-danger-soft, rgb(127 29 29 / 22%))}.chat-media__endpoint{margin:0;min-width:0;display:flex;flex-direction:column;gap:11px;padding:12px;border:1px solid var(--theme-border, #2d2d33);border-radius:11px}.chat-media__endpoint legend{padding:0 5px;font-size:12px;font-weight:600}.chat-media__endpoint-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--theme-muted, #9ca3af)}@container (max-width: 440px){.chat-media__layer{padding:10px;align-items:flex-end}.chat-media__panel{padding:12px}.chat-media__actions .chat-media__button{flex:1 1 auto}}@media(max-width:640px){.chat-media__layer{padding:10px;align-items:flex-end}.chat-media__panel{border-radius:16px 16px 0 0;padding-bottom:max(14px,env(safe-area-inset-bottom))}}.chat-camera{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1400;display:flex;flex-direction:column;min-width:0;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:contain;background:#08090b;color:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.chat-camera[hidden]{display:none}.chat-camera *,.chat-camera *:before,.chat-camera *:after{box-sizing:border-box}.chat-camera button{-webkit-appearance:none;appearance:none;cursor:pointer;color:inherit;flex-shrink:0;touch-action:manipulation}.chat-camera button:disabled{opacity:.5;cursor:wait}.chat-camera button:focus-visible,.chat-camera input:focus-visible{outline:3px solid #fff;outline-offset:5px}.chat-camera__header{position:relative;z-index:2;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:8px;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:linear-gradient(#08090bef,#08090b99)}.chat-camera__header h3{margin:0;text-align:center;font-size:15px;font-weight:600}.chat-camera__control{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#ffffff17}.chat-camera__header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:48px}.chat-camera__light{background:transparent}.chat-camera__light--on{color:#ffe08a!important}.chat-camera__light--on svg{fill:#ffe08a}.chat-camera__light:disabled{cursor:default}.chat-camera__protect{position:relative;width:48px;height:48px;display:grid;place-items:center;cursor:pointer}.chat-camera__protect input{position:absolute;top:0;right:0;bottom:0;left:0;appearance:none;-webkit-appearance:none;width:48px;height:48px;margin:0;border:1px solid #ffffff50;border-radius:50%;background:transparent;cursor:pointer}.chat-camera__protect input:checked{border-color:#ab9ae8;background:#8b70e066}.chat-camera__protect svg{position:relative;pointer-events:none}.chat-camera__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-camera__stage{position:relative;display:flex;flex:1 1 0;min-height:0;min-width:0;align-items:center;justify-content:center;overflow:hidden}.chat-camera__media{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;background:#08090b}.chat-camera__welcome,.chat-camera__locked-preview{display:flex;flex-direction:column;align-items:center;gap:18px;max-width:320px;padding:24px;text-align:center;line-height:1.5}.chat-camera__welcome{color:#aaaeb8}.chat-camera__welcome p{margin:0;font-size:14px}.chat-camera__locked-preview small{color:#aaaeb8}.chat-camera__unlock{min-height:44px;padding:10px 20px;border:1px solid #ffffff60;border-radius:24px;font-size:14px;background:#ffffff16}.chat-camera__stage-status{position:absolute;left:16px;right:16px;text-align:center;font-size:14px}.chat-camera__timer{display:flex;justify-content:center;align-items:center;gap:7px;margin:0;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.chat-camera__indicator{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#fa4d64}.chat-camera__indicator--paused{background:#ffd36b}.chat-camera__footer{position:relative;z-index:2;flex:0 0 auto;padding:12px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:linear-gradient(#08090b99,#08090b)}.chat-camera__controls{display:grid;grid-template-columns:64px 80px 64px;align-items:center;justify-content:center;gap:clamp(24px,7vw,64px)}.chat-camera__shutter{grid-column:2;grid-row:1;display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;padding:5px;border:3px solid #fff;border-radius:50%;background:transparent}.chat-camera__shutter>span:not(.chat-camera__send-progress){display:block;width:100%;height:100%;border-radius:50%;background:#fff}.chat-camera__shutter.chat-camera__shutter--record>span{background:#fa4d64}.chat-camera__shutter--stop{background:#000}.chat-camera__shutter.chat-camera__shutter--stop>span{width:28px;height:28px;border-radius:4px;background:#fff}.chat-camera__shutter--send{border-color:#a991f6;background:#7856d1}.chat-camera .chat-camera__shutter--send[aria-busy=true]{position:relative;border-color:#5c5174;background:#302740;opacity:1}.chat-camera__send-ring{position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;width:calc(100% + 6px);height:calc(100% + 6px);transform:rotate(-90deg);pointer-events:none}.chat-camera__send-ring circle{fill:none;stroke:#c2adff;stroke-width:3;stroke-dasharray:100;stroke-linecap:round;transition:stroke-dashoffset .16s linear}.chat-camera__send-progress{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px;font-variant-numeric:tabular-nums}.chat-media__button[aria-busy=true]{opacity:1;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.chat-camera__send-ring circle{transition:none}}.chat-camera__control--left{grid-column:1;grid-row:1;justify-self:center}.chat-camera__control--right{grid-column:3;grid-row:1;justify-self:center}.chat-camera__switch{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.chat-camera__switch-more{position:absolute;bottom:1px;font-size:16px;line-height:12px;letter-spacing:1px}.chat-camera__choices-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4}.chat-camera__choices{position:fixed;z-index:5;right:max(16px,env(safe-area-inset-right));bottom:calc(132px + env(safe-area-inset-bottom));width:min(240px,calc(100vw - 32px));max-height:min(320px,calc(100dvh - 220px));overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #ffffff30;border-radius:16px;background:#25262a;box-shadow:0 8px 32px #0008}.chat-camera__choices button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:10px;text-align:left;font:inherit;font-size:13px;background:transparent}.chat-camera__choices button[aria-checked=true]{background:#8b70e044}.chat-camera__choices button:focus-visible{outline-offset:-3px}.chat-camera__quality{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:4px;border:0;border-radius:10px;background:transparent;font-size:12px;font-weight:600}.chat-camera__quality small{font-size:9px;font-weight:400;color:#bbbfc8;white-space:nowrap}.chat-camera__caption{margin:12px auto 0;max-width:640px;text-align:center;font-size:12px;line-height:1.4;color:#bbbfc8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-camera__error{max-width:640px;margin:0 auto 12px;color:#ffa2ad;font-size:13px;line-height:1.4;text-align:center}.chat-camera__zoom{display:flex;align-items:center;gap:8px;width:100%;max-width:360px;margin:0 auto 6px;font-size:12px;color:#fff}.chat-camera__zoom-value{flex:0 0 7ch;width:7ch;overflow:hidden;white-space:nowrap;font-variant-numeric:tabular-nums}.chat-camera__zoom-busy{flex:0 0 16px;width:16px;height:16px}.chat-camera__zoom-busy svg{animation:chat-camera-zoom-spin 1s linear infinite}@keyframes chat-camera-zoom-spin{to{transform:rotate(360deg)}}.chat-camera__zoom input{flex:1;min-width:0;min-height:44px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;accent-color:#c2adff}[data-theme] .chat-camera .chat-camera__zoom input[type=range],.chat-camera .chat-camera__zoom input[type=range]{background:transparent;border:0;padding:0;box-shadow:none}.chat-camera__zoom input::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,#72dfc6 0 var(--chat-camera-wide-end, 0%),transparent var(--chat-camera-wide-end, 0%) 100%),linear-gradient(to right,#c2adff 0 var(--chat-camera-zoom-fill, 0%),#65656c var(--chat-camera-zoom-fill, 0%) 100%)}.chat-camera__zoom input::-moz-range-track{height:4px;border-radius:2px;background:linear-gradient(to right,#72dfc6 0 var(--chat-camera-wide-end, 0%),transparent var(--chat-camera-wide-end, 0%) 100%),linear-gradient(to right,#c2adff 0 var(--chat-camera-zoom-fill, 0%),#65656c var(--chat-camera-zoom-fill, 0%) 100%)}.chat-camera__zoom input::-moz-range-progress{background:transparent}.chat-camera__zoom input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-7px;border-radius:50%;border:2px solid #fff;background:#c2adff}.chat-camera__zoom input::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;border-radius:50%;border:2px solid #fff;background:#c2adff}.chat-camera__zoom input:focus-visible{outline:2px solid #c2adff;outline-offset:2px;border-radius:4px}@media(orientation:landscape)and (max-height:500px){.chat-camera__choices{right:calc(156px + env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));max-height:calc(100dvh - 32px)}.chat-camera__header{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}.chat-camera__stage{margin-right:128px}.chat-camera__footer{position:absolute;top:max(68px,env(safe-area-inset-top));right:0;bottom:0;width:148px;display:flex;flex-direction:column;justify-content:safe center;overflow-y:auto;padding:10px max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) 10px}.chat-camera__stage{margin-right:148px}.chat-camera__zoom{display:grid;grid-template-columns:1fr 16px;gap:0 8px;width:100%;margin-bottom:4px}.chat-camera__zoom input{grid-row:2;grid-column:1 / -1;width:100%}.chat-camera__zoom-busy{grid-row:1;grid-column:2}.chat-camera__controls{display:flex;flex-direction:column;gap:12px}.chat-camera__shutter{width:64px;height:64px;order:1}.chat-camera__control--left{order:0}.chat-camera__control--right{order:2}.chat-camera__caption{white-space:normal;font-size:10px}.chat-camera__error{font-size:11px}}@media(prefers-reduced-motion:reduce){.chat-camera__zoom-busy svg{animation:none}}.chat-media__attachment--audio{gap:4px;padding-top:2px}.chat-media__attachment--audio .chat-media-menu--card{top:3px;right:0}.chat-media__audio-player{min-width:0;padding-right:49px}.chat-media__audio-player--cloud{display:flex;align-items:flex-start;gap:8px}.chat-media__audio-player--cloud>.chat-inline-audio{flex:1 1 0}.chat-media__audio-player--cloud .chat-inline-audio__waveform{min-width:24px}.chat-media__audio-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;min-width:0;padding-left:56px}.chat-media__audio-file-info{font-size:10px;line-height:1.4;color:var(--theme-muted, #9ca3af)}.chat-media__audio-metadata{display:flex;flex:0 0 auto;align-items:center;font-size:10px;color:var(--theme-muted, #9ca3af)}.chat-gallery{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1500;width:100%;height:100%;height:100dvh;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain;background:var(--theme-bg, #0f0f12);color:var(--theme-text, #f5f5f7);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.chat-gallery *,.chat-gallery *:before,.chat-gallery *:after{box-sizing:border-box}.chat-gallery button{color:inherit;cursor:pointer;touch-action:manipulation}.chat-gallery button:disabled{cursor:default;opacity:.35}.chat-gallery button:focus-visible,.chat-gallery input:focus-visible{outline:2px solid var(--theme-accent, #34d399);outline-offset:3px}.chat-gallery__header{position:relative;z-index:2;display:flex;align-items:center;gap:14px;flex:0 0 auto;padding:max(10px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));background:var(--theme-panel, #16161a);border-bottom:1px solid var(--theme-border, #2d2d33)}.chat-gallery__title{flex:1;min-width:0}.chat-gallery__title h3{margin:0 0 4px;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-gallery__title small{font-size:12px;color:var(--theme-text-soft, #d4d4d8)}.chat-gallery__icon,.chat-gallery__nav{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--theme-panel-elevated, #23232a)}.chat-gallery__stage{position:relative;flex:1 1 0;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}.chat-gallery__image,.chat-gallery__video{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}.chat-gallery__image{will-change:transform}.chat-gallery__video{touch-action:manipulation}.chat-gallery__stage>audio{width:min(600px,calc(100% - 40px))}.chat-gallery__nav{position:absolute;z-index:2;top:50%;transform:translateY(-50%);background:var(--theme-panel-elevated, #23232a);border:1px solid var(--theme-border-strong, #3d3d43)}.chat-gallery__nav--previous{left:max(12px,env(safe-area-inset-left))}.chat-gallery__nav--next{right:max(12px,env(safe-area-inset-right))}.chat-gallery__placeholder{display:flex;flex-direction:column;align-items:center;gap:16px;width:min(420px,calc(100% - 112px));max-height:100%;padding:16px;text-align:center;font-size:14px;line-height:1.5;overflow-y:auto}.chat-gallery__authorization[hidden]{display:none}.chat-gallery__placeholder p{margin:0}.chat-gallery__placeholder .chat-media__panel{width:100%;flex-shrink:0;max-height:none;overflow:visible;text-align:left;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}.chat-gallery__authorization{overscroll-behavior:contain;touch-action:pan-y}.chat-gallery__placeholder .chat-media__form{text-align:left}.chat-gallery__placeholder progress{width:100%;accent-color:var(--theme-accent, #34d399)}.chat-gallery__secret-mark{display:grid;place-items:center;width:90px;height:90px;flex-shrink:0;border-radius:30px;background:var(--theme-accent-soft, rgba(52, 211, 153, .16));border:1px solid var(--theme-border-strong, #3d3d43)}.chat-gallery__footer{z-index:2;flex:0 0 auto;padding:10px max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:var(--theme-panel, #16161a)}.chat-gallery__actions{min-height:44px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px}.chat-gallery__action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:var(--theme-panel-elevated, #23232a);font-size:12px}.chat-gallery__zoom{display:flex;align-items:center;gap:3px}.chat-gallery__zoom-reset{min-width:54px;min-height:44px;border:0;padding:0;background:transparent;font-size:12px;font-variant-numeric:tabular-nums}.chat-gallery__error{max-width:650px;margin:0 auto 10px;color:var(--theme-danger, #fca5a5);font-size:12px;line-height:1.5;text-align:center;overflow-wrap:anywhere}.chat-gallery .chat-media__button--primary{background:var(--theme-accent-strong, #10b981);color:var(--theme-on-accent, #fff)}.chat-gallery__authorization .chat-media__hint{color:var(--theme-text-soft, #d4d4d8)}.chat-gallery__authorization .chat-media__button:disabled{opacity:1;background:var(--theme-panel-elevated, #23232a);color:var(--theme-text-soft, #d4d4d8)}.chat-gallery__authorization .chat-media__field input:disabled,.chat-gallery__authorization .chat-media__icon:disabled{opacity:1;color:var(--theme-text-soft, #d4d4d8)}.chat-media__attachment--visual{gap:6px}.chat-gallery-card-frame{position:relative;width:100%}.chat-gallery-card{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4 / 3;overflow:hidden;border:1px solid #ffffff1a;border-radius:14px;padding:0;background:#292c38;color:#fff;cursor:pointer;isolation:isolate;touch-action:manipulation}.chat-gallery-card__cancel:focus-visible{outline:2px solid #c2b3ff;outline-offset:3px}.chat-gallery-card{-webkit-clip-path:inset(0 round 14px);clip-path:inset(0 round 14px)}.chat-gallery-card:focus-visible{outline:none}.chat-gallery-card:focus-visible:after{content:"";position:absolute;top:3px;right:3px;bottom:3px;left:3px;border:2px solid #c2b3ff;border-radius:10px;pointer-events:none}.chat-gallery-card img,.chat-gallery-card video{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.chat-gallery-card__spoiler{position:absolute;top:-12%;right:-12%;bottom:-12%;left:-12%;z-index:-1;background:radial-gradient(ellipse at 28% 28%,#c5a7e882,transparent 56%),radial-gradient(ellipse at 78% 73%,#6387958c,transparent 54%),#363247;filter:blur(16px)}.chat-gallery-card__sparkles{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;opacity:.6;background-image:radial-gradient(circle,#f4eaff 1px,transparent 1.5px),radial-gradient(circle,#e2e7ffbb .7px,transparent 1.4px);background-size:19px 23px,31px 29px;background-position:0 0,9px 15px;animation:chat-secret-shimmer 5s ease-in-out infinite alternate}.chat-gallery-card__center{display:grid;place-items:center;padding:14px;border-radius:50%;background:#17131d61;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-shadow:0 1px 8px #0008}.chat-gallery-card__center:empty{display:none}.chat-gallery-card__center>svg{display:block;width:27px;height:27px}.chat-gallery-card__center--server-ready{padding:12px;border:1px solid var(--theme-border-strong, #3d3d43);background:var(--theme-panel-elevated, #23232a);color:var(--theme-accent, #34d399);text-shadow:none}.chat-gallery-card__server-control{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;pointer-events:none}.chat-gallery-card__server-upload{display:grid;place-items:center;box-sizing:border-box;width:54px;height:54px;padding:0;border:1px solid var(--theme-border-strong, #3d3d43);border-radius:50%;background:var(--theme-panel-elevated, #23232a);color:var(--theme-accent, #34d399);box-shadow:0 2px 8px var(--theme-shadow, #0005);cursor:pointer;pointer-events:auto;touch-action:manipulation}.chat-gallery-card__server-upload>svg{display:block}.chat-gallery-card__server-upload:focus-visible{outline:2px solid var(--theme-accent, #34d399);outline-offset:4px}.chat-gallery-card__server-upload:disabled{opacity:1;cursor:default}.chat-gallery-card__server-progress{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:var(--theme-panel, #16161a);color:var(--theme-accent, #34d399);z-index:-1}.chat-gallery-card__server-progress>svg{display:block;transform:rotate(-90deg)}.chat-gallery-card__server-progress-value{transition:stroke-dashoffset .3s ease}.chat-gallery-card__server-progress--preparing>svg{animation:chat-card-download-spin 1.2s linear infinite}.chat-gallery-card--recipient-deleted{opacity:.45}.chat-gallery-card__badge{position:absolute;bottom:10px;left:10px;padding:4px 7px;border-radius:6px;background:#0008;font-size:11px}.chat-gallery-card__badge--state{left:auto;right:10px}.chat-gallery-card__filename{margin:0;color:var(--theme-muted, #9ca3af);font-size:10px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-media__hint.chat-gallery-card__receipt{font-size:10px;line-height:1.4}.chat-media__attachment--video{gap:7px;padding-top:2px}.chat-media__attachment--video .chat-gallery-card{aspect-ratio:2.2 / 1}.chat-media__attachment--video .chat-media-menu--card{top:8px;right:6px}.chat-media__attachment--video .chat-gallery-card__filename{color:var(--theme-text, #e6ecf5);font-size:13px;line-height:1.4}.chat-gallery-card__badge--video{left:auto;right:7px;bottom:7px;display:flex;align-items:center;gap:5px;max-width:calc(100% - 14px);box-sizing:border-box;white-space:nowrap;background:#07121ddd;color:#f5f5f7}.chat-gallery-card__badge--video>svg{flex:0 0 auto}.chat-media__attachment--video .chat-gallery-card__badge--state{left:7px;right:auto;top:7px;bottom:auto;max-width:calc(100% - 64px)}.chat-gallery-card__footer{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;min-width:0}.chat-gallery-card__status{min-width:0;flex:1 1 auto}.chat-gallery-card__status>.chat-gallery-card__receipt{display:flex;align-items:center;gap:6px;font-size:11px}.chat-gallery-card__status>.chat-gallery-card__receipt>svg{flex:0 0 auto}.chat-gallery-card__status>.chat-gallery-card__receipt>span{min-width:0;overflow-wrap:anywhere}.chat-gallery-card__status>progress{display:block;height:3px;margin-top:4px}.chat-gallery-card__metadata{flex:0 0 auto;min-width:0;font-size:11px;color:var(--theme-muted, #9ca3af)}.chat-gallery-card__transfer{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:#17131d61;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none}.chat-gallery-card__transfer>svg{display:block;transform:rotate(-90deg);pointer-events:none}.chat-gallery-card__transfer-value{transition:stroke-dashoffset .3s ease}.chat-gallery-card__transfer--indeterminate>svg{animation:chat-card-download-spin 1.2s linear infinite}.chat-gallery-card__recipient-transfer{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:76px;color:#4ade80;pointer-events:none}.chat-gallery-card__recipient-transfer>svg{display:block;transform:rotate(-90deg);pointer-events:none}.chat-gallery-card__recipient-transfer-value{transition:stroke-dashoffset .3s ease;animation:chat-card-recipient-pulse 1.6s ease-in-out infinite}.chat-gallery-card__recipient-transfer--starting>svg{animation:chat-card-download-spin 1.2s linear infinite}.chat-gallery-card__recipient-transfer--complete .chat-gallery-card__recipient-transfer-value{animation:none;transition:none}.chat-gallery-card__cancel{box-sizing:border-box;position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:#fff;background:transparent;cursor:pointer;pointer-events:auto;touch-action:manipulation}.chat-gallery-card__cancel:hover{background:#ffffff16}.chat-gallery-card__cancel:disabled{cursor:default;opacity:.5}@keyframes chat-secret-shimmer{0%{opacity:.35;transform:translate(0)}to{opacity:.75;transform:translate(2px,2px)}}@keyframes chat-card-download-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes chat-card-recipient-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.chat-gallery-card__sparkles,.chat-gallery-card__transfer--indeterminate>svg,.chat-gallery-card__recipient-transfer--starting>svg,.chat-gallery-card__recipient-transfer-value,.chat-gallery-card__server-progress--preparing>svg{animation:none}.chat-gallery-card__transfer-value,.chat-gallery-card__recipient-transfer-value,.chat-gallery-card__server-progress-value{transition:none}}@media(max-width:560px){.chat-gallery__actions{gap:5px}.chat-gallery__action{padding:8px}.chat-gallery__action span{font-size:11px}.chat-gallery__nav{width:36px;height:44px;border-radius:12px}.chat-gallery__nav--previous{left:4px}.chat-gallery__nav--next{right:4px}.chat-gallery__placeholder{width:calc(100% - 80px);padding:8px}}.chat-inline-audio{display:flex;flex:1 1 100%;flex-direction:column;gap:7px;min-width:0;width:100%}.chat-inline-audio__row{display:flex;align-items:center;gap:10px;min-width:0}.chat-inline-audio__play{display:inline-flex;flex:0 0 46px;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:1px solid var(--theme-border, #2d2d33);border-radius:50%;background:var(--theme-panel-elevated, #1a1c24);color:var(--theme-accent, #8b70e0);cursor:pointer;touch-action:manipulation}.chat-inline-audio__play:disabled{opacity:.65;cursor:wait}.chat-inline-audio__spinner,.chat-inline-audio__download-progress--indeterminate svg{animation:chat-inline-audio-spin 1s linear infinite}.chat-inline-audio__play:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:3px}.chat-inline-audio__timeline{display:flex;flex:1;align-items:center;gap:10px;min-width:0}.chat-inline-audio__waveform{position:relative;flex:1;min-width:52px;height:44px}.chat-inline-audio__bars{display:flex;align-items:center;justify-content:space-between;gap:1px;height:100%;overflow:hidden}.chat-inline-audio__bars>span{display:block;flex:1 1 2px;min-width:0;max-width:3px;height:var(--audio-bar-height, 4px);border-radius:2px;background:var(--theme-muted, #9ca3af);opacity:.6}.chat-inline-audio__bars>.chat-inline-audio__bar--played{background:var(--theme-accent, #8b70e0);opacity:1}.chat-inline-audio__seek{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;touch-action:pan-y}.chat-inline-audio__seek:disabled{cursor:default}.chat-inline-audio__waveform:has(.chat-inline-audio__seek:focus-visible){outline:2px solid var(--theme-accent, #8b70e0);outline-offset:2px;border-radius:4px}.chat-inline-audio__time{flex:0 0 auto;color:var(--theme-text, #f5f5f7);font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}.chat-inline-audio__error{margin:0;color:var(--theme-danger, #ef737e);font-size:12px;line-height:1.5;overflow-wrap:anywhere}@keyframes chat-inline-audio-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.chat-inline-audio__spinner,.chat-inline-audio__download-progress--indeterminate svg{animation:none}}.chat-inline-audio__control{position:relative;flex:0 0 46px;width:46px;height:46px}.chat-inline-audio__download-progress{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;color:var(--theme-accent, #8b70e0);pointer-events:none}.chat-inline-audio__download-progress svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.chat-emoji-sheet{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:hidden;border:0;border-bottom:1px solid var(--theme-border, #2d2d33);border-radius:0;background:var(--theme-panel, #15161b);color:var(--theme-text, #f5f5f7)}.chat-emoji-sheet__categories{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 10px;scrollbar-width:thin;background:var(--theme-panel, #15161b)}.chat-emoji-sheet__category{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--theme-muted, #9ca3af);cursor:pointer;touch-action:manipulation}.chat-emoji-sheet__category[aria-selected=true]{background:var(--theme-accent, #8b70e0);color:var(--theme-on-accent, #fff);border-color:var(--theme-accent, #8b70e0)}.chat-emoji-sheet__row{display:flex;align-items:center;gap:2px;min-width:0;padding:10px 9px 12px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border-top:1px solid var(--theme-border, #2d2d33);background:var(--theme-input, #0f0f12)}.chat-emoji-sheet__emoji{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--theme-text, #f5f5f7);font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:31px;line-height:1;cursor:pointer;touch-action:manipulation}.chat-emoji-sheet__category:hover:not([aria-selected=true]),.chat-emoji-sheet__emoji:hover{background:var(--theme-panel-elevated, #272031)}.chat-emoji-sheet button:focus-visible,.chat-emoji-sheet input:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:2px}.chat-emoji-sheet__stickers{display:flex;flex-direction:column;gap:12px;max-height:min(34dvh,260px);overflow-y:auto;overscroll-behavior-y:contain;border-top:1px solid var(--theme-border, #2d2d33);padding:12px}.chat-emoji-sheet__stickers .chat-media__sticker-grid{margin-bottom:0}.chat-emoji-sheet__error{padding:0 12px 12px}.chat-notification-toast{position:fixed;z-index:300;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));display:flex;width:min(360px,calc(100vw - 32px));overflow:hidden;border:1px solid var(--theme-border, #41414b);border-radius:14px;background:var(--theme-panel, #202128);color:var(--theme-text, #f5f5f7);box-shadow:0 8px 32px #0004}.chat-notification-toast__open{display:flex;flex:1;min-width:0;align-items:center;gap:12px;padding:16px;border:0;background:none;color:inherit;text-align:left;cursor:pointer}.chat-notification-toast__open>svg{flex-shrink:0}.chat-notification-toast__open span{min-width:0}.chat-notification-toast__open strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.chat-notification-toast__open small{display:block;margin-top:3px;font-size:12px;color:var(--theme-muted, #bbb)}.chat-notification-toast__close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;border:0;background:none;color:inherit;cursor:pointer}.chat-notification-toast button:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:-3px}.chat-notification-permission{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--theme-border, #41414b);background:var(--theme-panel-elevated, #222);color:var(--theme-text, #f5f5f7);font-size:12px}.chat-notification-permission>svg{flex-shrink:0}.chat-notification-permission__text{flex:1 1 140px;min-width:0;overflow-wrap:anywhere}.chat-notification-permission__text small{display:block;margin-top:4px;color:var(--theme-danger, #ef4444)}.chat-notification-permission button{min-height:44px;border-radius:8px;cursor:pointer;font:inherit}.chat-notification-permission__enable{border:1px solid var(--theme-border, #41414b);padding:6px 10px;background:var(--theme-panel, #202128);color:inherit;max-width:100%;white-space:normal}.chat-notification-permission__dismiss{display:inline-flex;align-items:center;justify-content:center;width:44px;flex-shrink:0;border:0;background:transparent;color:inherit}.chat-notification-permission button:disabled{cursor:default;opacity:.6}.chat-notification-permission button:focus-visible{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:2px}.chat-qr-scanner{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1400;display:flex;flex-direction:column;width:100%;height:100%;height:100dvh;min-width:0;overflow:hidden;overscroll-behavior:contain;background:#08090b;color:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.chat-qr-scanner *,.chat-qr-scanner *:before,.chat-qr-scanner *:after{box-sizing:border-box}.chat-qr-scanner button{-webkit-appearance:none;appearance:none;color:inherit;cursor:pointer;flex-shrink:0;touch-action:manipulation}.chat-qr-scanner button:disabled{opacity:.45;cursor:wait}.chat-qr-scanner button:focus-visible{outline:3px solid #fff;outline-offset:3px}.chat-qr-scanner__header{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:12px;align-items:center;flex:0 0 auto;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}.chat-qr-scanner__header h3{margin:0;text-align:center;font-size:16px;line-height:1.3;font-weight:600}.chat-qr-scanner__control{display:inline-flex;justify-content:center;align-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#ffffff17}.chat-qr-scanner__control svg{flex-shrink:0}.chat-qr-scanner__stage{position:relative;flex:1 1 0;min-height:0;min-width:0;display:grid;place-items:center;overflow:hidden}.chat-qr-scanner__video{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.chat-qr-scanner__video--selfie{transform:scaleX(-1)}.chat-qr-scanner__guide{position:absolute;z-index:1;width:min(76vw,52dvh);aspect-ratio:1;max-width:80%;max-height:80%;border:2px solid #ffffff90;border-radius:20px;display:grid;place-items:center;pointer-events:none;color:#ffffff90}.chat-qr-scanner__footer{flex:0 0 auto;max-height:46%;overflow-y:auto;padding:12px max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));text-align:center}.chat-qr-scanner__footer p{margin:0 auto 8px;max-width:620px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.chat-qr-scanner__footer .chat-qr-scanner__status{color:#adb4c0;font-size:12px}.chat-qr-scanner__footer .chat-qr-scanner__error{color:#ffafb8}.chat-qr-scanner__retry{min-height:44px;margin-top:4px;padding:10px 20px;border:1px solid #ffffff70;border-radius:24px;font-size:14px;background:#ffffff17}@media(orientation:landscape)and (max-height:500px){.chat-qr-scanner__header{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}.chat-qr-scanner__footer{padding-top:6px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.chat-qr-scanner__footer p{margin-bottom:4px;font-size:12px}}.chat-conversation-lock-settings-layer,.chat-conversation-lock-settings,.chat-conversation-lock-settings *{box-sizing:border-box}.chat-conversation-lock-settings{overflow-wrap:anywhere}.chat-conversation-lock-settings .chat-media__button,.chat-conversation-lock-settings__choice{min-height:44px}.chat-conversation-lock-settings .chat-media__icon{width:44px;height:44px}.chat-conversation-lock-settings__choice{cursor:pointer}.chat-conversation-lock-settings__choice svg{flex-shrink:0}.chat-conversation-lock-settings__choice span{min-width:0}.chat-conversation-lock-settings__methods{min-width:0;display:flex;flex-direction:column;gap:4px;padding:0;margin:0;border:0}.chat-conversation-lock-settings__methods legend{padding:0;margin-bottom:4px;font-size:12px;color:var(--theme-muted, #9ca3af)}.chat-conversation-lock-settings__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.chat-contact-profile{width:min(420px,100%)}.chat-contact-profile__photo-row{display:flex;align-items:center;gap:16px}.chat-contact-profile__avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 72px;width:72px;height:72px;border-radius:50%;overflow:hidden;color:var(--theme-muted, #a5a5b8);background:var(--theme-panel-elevated, #292b35)}.chat-contact-profile__avatar img{width:100%;height:100%;object-fit:cover}.chat-contact-profile__photo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.chat-contact-profile__choose{position:relative;cursor:pointer}.chat-contact-profile__choose input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.chat-contact-profile__choose:focus-within{outline:2px solid var(--theme-accent, #8b70e0);outline-offset:3px}.chat-contact-profile__choose--disabled{opacity:.55;cursor:wait}.chat-contact-profile__reset{align-self:flex-start}.chat-contact-profile__actions{justify-content:flex-end}.chat-contact-profile__identity{width:100%;box-sizing:border-box;overflow-wrap:anywhere;resize:none;font:12px/1.5 monospace}.chat-contact-profile__delete{color:#ef6666;margin-top:12px}.webrtc-chat-modal{position:fixed;top:0;right:0;bottom:0;left:0;box-sizing:border-box;height:100vh;height:100dvh;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));z-index:140;display:flex;align-items:center;justify-content:center;background:#0000008c;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}[data-theme] .webrtc-chat-modal__dialog,[data-theme] .webrtc-chat-modal__thread-header,[data-theme] .webrtc-chat-modal__composer,[data-theme] .webrtc-chat-modal__invite-panel,[data-theme] .webrtc-chat-modal__manual-panel{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}[data-theme] .webrtc-chat-dock,[data-theme] .webrtc-chat-modal__thread,[data-theme] .webrtc-chat-modal__messages{background:var(--theme-bg)}[data-theme] .webrtc-chat-modal__contacts,[data-theme] .webrtc-chat-modal__menu-items,[data-theme] .webrtc-chat-modal__peer-recents-items{background:var(--theme-panel-strong);border-color:var(--theme-border)}[data-theme] .webrtc-chat-modal__header,[data-theme] .webrtc-chat-modal__thread-contacts,[data-theme] .webrtc-chat-modal__encryption-divider,[data-theme] .webrtc-chat-modal__status,[data-theme] .webrtc-chat-modal__subtitle,[data-theme] .webrtc-chat-modal__contacts-count{color:var(--theme-muted);border-color:var(--theme-border)}[data-theme] .webrtc-chat-modal__title,[data-theme] .webrtc-chat-modal__thread-title,[data-theme] .webrtc-chat-modal__empty-title,[data-theme] .webrtc-chat-modal__menu-item,[data-theme] .webrtc-chat-modal__contact,[data-theme] .webrtc-chat-modal__conversation-main,[data-theme] .webrtc-chat-modal__contact-bubble{color:var(--theme-text)}[data-theme] .webrtc-chat-modal__contact-search,[data-theme] .webrtc-chat-modal__input,[data-theme] .webrtc-chat-modal__composer-field,[data-theme] .webrtc-chat-modal__composer-tool,[data-theme] .webrtc-chat-modal__composer-emoji{background:var(--theme-input);border-color:var(--theme-border);color:var(--theme-text)}[data-theme] .webrtc-chat-modal__contact-input,[data-theme] .webrtc-chat-modal__composer-input{color:var(--theme-text)}[data-theme] .webrtc-chat-modal__contact,[data-theme] .webrtc-chat-modal__conversation-main,[data-theme] .webrtc-chat-modal__button,[data-theme] .webrtc-chat-modal__icon-button,[data-theme] .webrtc-chat-modal__back,[data-theme] .webrtc-chat-modal__menu-summary,[data-theme] .webrtc-chat-modal__status-chip,[data-theme] .webrtc-chat-modal__security-note{background:var(--theme-panel-elevated);border-color:var(--theme-border);color:var(--theme-text)}[data-theme] .webrtc-chat-modal__contact:hover,[data-theme] .webrtc-chat-modal__conversation-main:hover,[data-theme] .webrtc-chat-modal__menu-item:hover{background:var(--theme-border-strong)}[data-theme] .webrtc-chat-modal__contact--active,[data-theme] .webrtc-chat-modal__conversation--active .webrtc-chat-modal__conversation-main,[data-theme] .webrtc-chat-modal__thread-contact-wrap--active{background:var(--theme-accent-soft);border-color:var(--theme-accent)}[data-theme] .webrtc-chat-modal__message{background:var(--theme-panel-elevated);color:var(--theme-text)}[data-theme] .webrtc-chat-modal__message--self{background:var(--theme-accent-soft)}[data-theme] .webrtc-chat-modal__message-meta,[data-theme] .webrtc-chat-modal__delivery,[data-theme] .webrtc-chat-modal__peer-recent-id,[data-theme] .webrtc-chat-modal__contact-meta,[data-theme] .webrtc-chat-modal__contact-state,[data-theme] .webrtc-chat-modal__contact-section-title,[data-theme] .webrtc-chat-modal__peer-recents-empty{color:var(--theme-muted)}[data-theme] .webrtc-chat-modal__icon-button--send,[data-theme] .webrtc-chat-modal__button--primary{background:var(--theme-accent-strong);color:#fff}[data-theme] .webrtc-chat-modal__icon-button--send:hover,[data-theme] .webrtc-chat-modal__button--primary:hover{filter:brightness(1.12)}[data-theme] .webrtc-chat-modal__invite-layer{background:color-mix(in srgb,var(--theme-bg) 78%,transparent)}[data-theme] .webrtc-chat-modal__feedback{background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-border)}[data-theme] .webrtc-chat-dock-divider,[data-theme] .webrtc-chat-dock-divider:after{background:var(--theme-bg-alt)}.webrtc-chat-modal--docked{position:relative;isolation:isolate;inset:auto;z-index:auto;background:transparent;align-items:stretch;justify-content:stretch;height:100%;width:100%;padding:0}.webrtc-chat-modal__dialog{position:relative;box-sizing:border-box;width:100%;max-height:100%;height:100%;display:flex;flex-direction:column;background:#16161a;border:1px solid #2d2d33;border-radius:12px;box-shadow:0 18px 60px #0000006b;overflow:hidden;container-type:inline-size}.webrtc-chat-modal--docked .webrtc-chat-modal__dialog{width:100%;max-height:none;height:100%;border-radius:0;box-shadow:none}.webrtc-chat-modal__header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #2d2d33;position:relative}.webrtc-chat-modal__title-wrap{min-width:0;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:8px}.webrtc-chat-modal__title{margin:0;color:#f5f5f7;font-size:16px;font-weight:700}.webrtc-chat-modal__subtitle{color:#9ca3af;font-size:12px;line-height:1.4;word-break:break-word;white-space:nowrap}.webrtc-chat-modal__close{width:34px;height:34px;border:1px solid transparent;border-radius:10px;background:transparent;color:#9ca3af;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}.webrtc-chat-modal__header-actions{display:inline-flex;align-items:center;gap:6px}.webrtc-chat-modal__menu{position:relative}.webrtc-chat-modal__menu[open]{z-index:4}.webrtc-chat-modal__menu-summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid #2d2d33;background:#111318;color:#c4c7d0;border-radius:9px;padding:4px;cursor:pointer}.webrtc-chat-modal button,.webrtc-chat-modal summary{-webkit-tap-highlight-color:transparent;transition:background-color .14s ease,border-color .14s ease,color .14s ease,filter .14s ease,opacity .14s ease,transform .1s ease}.webrtc-chat-modal button:not(:disabled):hover,.webrtc-chat-modal summary:hover{filter:brightness(1.08)}.webrtc-chat-modal button:not(:disabled):active,.webrtc-chat-modal summary:active{transform:translateY(1px) scale(.985)}.webrtc-chat-modal button:focus-visible,.webrtc-chat-modal summary:focus-visible,.webrtc-chat-modal input:focus-visible{outline:2px solid rgba(74,222,128,.72);outline-offset:2px}.webrtc-chat-modal__menu-summary::-webkit-details-marker{display:none}.webrtc-chat-modal__menu-items{position:absolute;top:calc(100% + 8px);right:0;min-width:160px;padding:6px;border:1px solid #2d2d33;border-radius:12px;background:#111318;box-shadow:0 18px 60px #0000006b;display:flex;flex-direction:column;gap:4px;z-index:2}.webrtc-chat-modal__menu-item{border:0;background:transparent;color:#f5f5f7;font-size:12px;padding:8px 10px;text-align:left;border-radius:10px;cursor:pointer}.webrtc-chat-modal__menu-item:hover{background:#ffffff0f}.webrtc-chat-dock{box-sizing:border-box;display:flex;flex-direction:column;flex:0 1 clamp(260px,32vw,420px);width:auto;min-width:0;max-width:min(100%,max(520px,50vw));height:100%;background:#0f0f12}.webrtc-chat-dock--left{border-right:1px solid #2d2d33}.webrtc-chat-dock--right{border-left:1px solid #2d2d33}.webrtc-chat-dock-divider{position:relative;z-index:30;display:flex;width:6px;flex:0 0 6px;cursor:col-resize;align-items:stretch;justify-content:center;background:#0b0b0d}.webrtc-chat-dock-divider:after{content:"";display:block;width:1px;margin:8px 0;background:#2d2d33}.webrtc-chat-modal__content{display:grid;grid-template-columns:300px minmax(0,1fr);height:100%;min-height:0;padding:0}.webrtc-chat-modal__toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;flex-shrink:0}.webrtc-chat-modal__toolbar>button{width:100%;min-width:0;min-height:44px;padding:10px 12px;border-radius:10px;font-size:14px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.webrtc-chat-modal__toolbar>button>svg{flex:0 0 auto}.webrtc-chat-modal__contacts{min-height:0;border-right:1px solid #2d2d33;background:#111318;padding:12px;display:flex;flex-direction:column;gap:8px}.webrtc-chat-modal__contacts-count{color:#9ca3af;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;min-width:1.5em;text-align:right;white-space:nowrap}.webrtc-chat-modal__contact-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #2d2d33;border-radius:8px;background:#0f0f13;color:#9ca3af;padding:0 10px}.webrtc-chat-modal__contact-input{width:100%;min-width:0;border:0;background:transparent;color:#f5f5f7;padding:9px 0;outline:none;font-size:13px}.webrtc-chat-modal__contact-results{max-height:168px;overflow:auto;display:flex;flex-direction:column;gap:6px}.webrtc-chat-modal__contact{border:1px solid #262933;border-radius:8px;background:#161922;color:#f5f5f7;min-height:44px;padding:7px 9px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;cursor:pointer;text-align:left}.webrtc-chat-modal__contact:hover{background:#1c202b}.webrtc-chat-modal__contact--active,.webrtc-chat-modal__conversation--active .webrtc-chat-modal__conversation-main{border-color:#4f46e580;background:#202436}.webrtc-chat-modal__contact-avatar{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#232631;color:#c4c7d0}.secure-chat__contact-portrait{position:relative;display:inline-flex;flex:0 0 32px;width:32px;height:32px;align-items:center;justify-content:center}.secure-chat__directory-search{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:0 12px 12px}.secure-chat__directory-search small{color:var(--theme-muted, #aaa);font-size:11px}.secure-chat__contact-portrait>img{width:32px;height:32px;object-fit:cover;border-radius:50%}.secure-chat__contact-portrait--custom .webrtc-chat-modal__contact-avatar{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;border:1px solid var(--theme-bg, #151720)}.secure-chat__contact-portrait--custom .webrtc-chat-modal__contact-avatar svg{width:13px;height:13px}.webrtc-chat-modal__contact-main{min-width:0;display:flex;flex-direction:column;gap:2px}.webrtc-chat-modal__contact-name,.webrtc-chat-modal__contact-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-chat-modal__contact-name{font-size:12px;font-weight:600}.webrtc-chat-modal__contact-name--connected{color:var(--theme-success, #4ade80)}html[data-theme^=light] .webrtc-chat-modal__contact-name--connected{color:#15803d}.webrtc-chat-modal__contact-meta{color:#f5f5f794;font-size:11px}.webrtc-chat-modal__contact-state{color:#f5f5f775;font-size:11px;display:inline-flex;align-items:center;gap:5px}.webrtc-chat-modal__contact-state--online{color:#86efac}.webrtc-chat-modal__contact-empty{min-height:34px;display:flex;align-items:center;color:#f5f5f794;font-size:12px;line-height:1.35}.webrtc-chat-modal__contact-empty--error{color:#fda4af}.webrtc-chat-modal__contact-section{min-height:0;display:flex;flex:1;flex-direction:column;gap:6px}.webrtc-chat-modal__contact-section-title{color:#f5f5f794;font-size:11px;font-weight:600;text-transform:uppercase}.webrtc-chat-modal__conversation-list{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px}.webrtc-chat-modal__conversation{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px;align-items:stretch}.webrtc-chat-modal__conversation-main{min-width:0;border:1px solid #262933;border-radius:8px;background:#161922;color:#f5f5f7;min-height:48px;padding:7px 8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;cursor:pointer;text-align:left}.webrtc-chat-modal__conversation-main:hover{background:#1c202b}.webrtc-chat-modal__conversation--unread .webrtc-chat-modal__conversation-main{border-color:var(--theme-accent, #6888ff);background:var(--theme-accent-soft, #202436);box-shadow:inset 3px 0 0 var(--theme-accent, #6888ff)}.webrtc-chat-modal__conversation--unread .webrtc-chat-modal__contact-name{font-weight:750}.webrtc-chat-modal__contact-attention{display:inline-flex;align-items:center;gap:6px}.webrtc-chat-modal__contact-unread{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--theme-accent, #6888ff);color:var(--theme-on-accent, #fff);font-size:11px;line-height:1;font-weight:700}.webrtc-chat-modal__input,.webrtc-chat-modal__composer-input{width:100%;border:1px solid #2d2d33;border-radius:9px;background:#0f0f13;color:#f5f5f7;padding:9px 11px;outline:none;min-width:0}.webrtc-chat-modal__input:focus,.webrtc-chat-modal__composer-input:focus{border-color:#4f46e5}.webrtc-chat-modal__button{border:1px solid #2d2d33;border-radius:9px;background:#23232a;color:#f5f5f7;padding:9px 12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;white-space:nowrap}.webrtc-chat-modal__button:disabled{opacity:.45;cursor:default}.webrtc-chat-modal__button--primary{background:#262836}.webrtc-chat-modal__button--wide{width:100%}.webrtc-chat-modal__icon-button{width:40px;height:40px;border:1px solid #2d2d33;border-radius:9px;background:#181b22;color:#f5f5f7;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.webrtc-chat-modal__icon-button:disabled{opacity:.45;cursor:default}.webrtc-chat-modal__icon-button--send{background:#262836}.webrtc-chat-modal__status{display:flex;flex-wrap:wrap;gap:6px;color:#9ca3af;font-size:11px}.webrtc-chat-modal__status-chip{border:1px solid #2d2d33;border-radius:999px;padding:4px 8px;background:#111318;display:inline-block;max-width:100%}.webrtc-chat-modal__peer-recents{position:relative;display:inline-block}.webrtc-chat-modal__peer-recents-summary{list-style:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-chat-modal__peer-recents-summary::-webkit-details-marker{display:none}.webrtc-chat-modal__peer-recents-items{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;max-width:min(320px,calc(100vw - 32px));max-height:260px;overflow:auto;padding:6px;border:1px solid #2d2d33;border-radius:12px;background:#111318;box-shadow:0 18px 60px #0000006b;z-index:3}.webrtc-chat-modal__peer-recents-empty{padding:8px 10px;color:#f5f5f79e;font-size:12px}.webrtc-chat-modal__peer-recent{display:flex;align-items:center;gap:6px}.webrtc-chat-modal__peer-recent-main{flex:1;min-width:0;border:0;background:transparent;color:#f5f5f7;font-size:12px;padding:8px 10px;text-align:left;border-radius:10px;cursor:pointer;display:flex;flex-direction:column;gap:2px}.webrtc-chat-modal__peer-recent-main:hover{background:#ffffff0f}.webrtc-chat-modal__peer-recent-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-chat-modal__peer-recent-id{color:#f5f5f78f;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-chat-modal__peer-recent-remove{border:0;background:transparent;color:#f5f5f78f;cursor:pointer;padding:6px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}.webrtc-chat-modal__peer-recent-remove:hover{background:#ffffff0f;color:#f5f5f7d6}.webrtc-chat-modal__status-chip--connected{border-color:#22c55e59;background:#22c55e24;color:#86efac}.webrtc-chat-modal__status-chip--online{border-color:#22c55e59}.webrtc-chat-modal__thread{min-width:0;min-height:0;display:flex;flex-direction:column;background:#0f0f13}.webrtc-chat-modal__thread--empty{background:radial-gradient(circle at 50% 40%,rgba(79,70,229,.08),transparent 28%),#0f0f13}.webrtc-chat-modal__thread-header{min-height:58px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #2d2d33;background:#15161b;color:var(--theme-text, #f5f5f7)}.webrtc-chat-modal__back{display:inline-flex;width:36px;height:36px;border:1px solid #2d2d33;border-radius:9px;background:#181b22;color:#f5f5f7;align-items:center;justify-content:center;cursor:pointer}.webrtc-chat-modal__thread-peer{min-width:0;display:flex;flex-direction:column;gap:3px}.webrtc-chat-modal__thread-title{color:#f5f5f7;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-chat-modal__thread-status{color:#f5f5f785;font-size:11px;display:inline-flex;align-items:center;gap:5px}.webrtc-chat-modal__thread-status--online{color:#facc15}.webrtc-chat-modal__thread-status--connected{color:#86efac}.webrtc-chat-modal__thread-connect{min-height:36px;padding:7px 10px}.secure-chat__history{position:relative;display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0}.secure-chat__new-messages{position:absolute;z-index:3;left:50%;bottom:12px;transform:translate(-50%);display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:calc(100% - 32px);min-height:44px;padding:10px 18px;border:1px solid var(--theme-accent);border-radius:999px;background:var(--theme-accent-strong);color:var(--theme-on-accent);box-shadow:0 4px 16px #0003;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}.secure-chat__new-messages svg{flex-shrink:0}.secure-chat__new-messages:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}.webrtc-chat-modal__messages{min-height:0;overflow-y:auto;overflow-anchor:none;overscroll-behavior-y:contain;display:flex;align-items:stretch;flex-direction:column;flex-grow:1;gap:8px;padding:12px;background:#0f0f13}.webrtc-chat-modal__message-list{display:flex;flex-direction:column;flex-shrink:0;gap:8px;min-width:0}.chat-message-text__link{color:inherit;text-decoration:underline;text-underline-offset:.15em;overflow-wrap:anywhere}.webrtc-chat-modal:not(.webrtc-chat-modal--docked){top:var(--chat-viewport-top, 0px);bottom:auto;height:var(--chat-viewport-height, 100dvh)}.webrtc-chat-modal--docked .webrtc-chat-modal__dialog{max-height:var(--chat-dock-visible-height, 100%)}.webrtc-chat-modal__empty{margin:auto;max-width:260px;color:#8b90a0;font-size:14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.webrtc-chat-modal__empty small{color:#6b7280;font-size:12px;line-height:1.4}.webrtc-chat-modal__message{max-width:80%;display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:10px;background:#1c1f26;color:#f5f5f7;margin-right:auto}.webrtc-chat-modal__message--stacked{margin-top:-5px;padding-top:7px}.webrtc-chat-modal__message--self{margin-left:auto;background:#2d2253;margin-right:0}.webrtc-chat-modal__message-meta{color:#f5f5f7b8;font-size:11px;margin-bottom:6px}.webrtc-chat-modal__delivery{color:#f5f5f79e;font-size:11px}.webrtc-chat-modal__message-text{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.4}.webrtc-chat-modal__composer{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:center;padding:10px 12px;border-top:1px solid #2d2d33;background:#15161b}.webrtc-chat-modal__feedback-container{position:absolute;left:16px;right:16px;bottom:14px;z-index:9;display:flex;justify-content:center;pointer-events:none;min-height:0;padding:0;background:transparent}.webrtc-chat-modal__feedback-container:empty{display:none}.webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__feedback-container{bottom:92px}.webrtc-chat-modal--has-peer .webrtc-chat-modal__feedback-container{bottom:78px}.webrtc-chat-modal__feedback{display:inline-flex;align-items:center;gap:8px;max-width:min(520px,100%);border:1px solid rgba(74,222,128,.28);border-radius:12px;background:#111318f5;box-shadow:0 12px 36px #00000052;color:#dcfce7;font-size:13px;line-height:1.35;padding:10px 12px;text-align:left}.webrtc-chat-modal__feedback svg{flex:0 0 auto}.webrtc-chat-modal__feedback--info{border-color:#60a5fa57;color:#bfdbfe}.webrtc-chat-modal__feedback--error{border-color:#fb71855c;color:#fecdd3}.webrtc-chat-modal__encrypted{display:inline-flex;align-items:center;gap:8px;color:#4ade80;font-size:14px;font-weight:600;white-space:nowrap}.webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__content,.webrtc-chat-modal--has-peer .webrtc-chat-modal__content{grid-template-columns:1fr}.webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__thread,.webrtc-chat-modal--has-peer .webrtc-chat-modal__contacts{display:none}.webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__contacts{border-right:0;padding:12px;background:radial-gradient(circle at 50% 18%,rgba(74,222,128,.06),transparent 32%),#0f0f13}.webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__contact-search{min-height:44px;border-radius:10px;padding:0 12px}.webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__contact-input{font-size:16px}.webrtc-chat-modal__contact-strip{min-height:92px;display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;padding:4px 2px 8px}.webrtc-chat-modal__contact-bubble{width:70px;flex:0 0 70px;border:0;background:transparent;color:#f5f5f7;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;min-width:0}.webrtc-chat-modal__bubble-avatar{position:relative;width:54px;height:54px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#34313f,#1d2028);color:#f5f5f7;border:1px solid rgba(255,255,255,.08);font-size:14px;font-weight:800}.webrtc-chat-modal__contact-bubble--new .webrtc-chat-modal__bubble-avatar{background:#4ade8029;border-color:#4ade806b;color:#4ade80}.webrtc-chat-modal__contact-bubble--active .webrtc-chat-modal__bubble-avatar{background:linear-gradient(145deg,#4c2f91,#2d2253)}.webrtc-chat-modal__online-dot{position:absolute;right:3px;bottom:3px;width:11px;height:11px;border-radius:50%;background:#4ade80;border:2px solid #0f0f13}.webrtc-chat-modal__bubble-name{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5f5f7d1;font-size:13px}.webrtc-chat-modal__empty-inbox{min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:18px 8px;text-align:center}.webrtc-chat-modal__empty-shield{position:relative;color:#94a3b857}.webrtc-chat-modal__empty-title{color:#f5f5f7;font-size:24px;font-weight:800}.webrtc-chat-modal__invite-primary{width:min(440px,100%);min-height:52px;border:0;border-radius:12px;background:linear-gradient(135deg,#52c990,#3dbd7a);color:#f8fffb;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:800;cursor:pointer}.webrtc-chat-modal__manual-link{border:0;background:transparent;color:#4ade80;cursor:pointer;font-size:15px;font-weight:800;text-align:center;padding:4px 8px;border-radius:10px}.webrtc-chat-modal__manual-link:hover{background:#4ade8014}.webrtc-chat-modal__security-note{margin-top:auto;border:1px solid #2d2d33;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:12px;color:#a5a9b5;background:#ffffff05}.webrtc-chat-modal__security-note span{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:#86efac;background:#22c55e24;border:1px solid rgba(34,197,94,.22)}.webrtc-chat-modal__security-note p{margin:0;font-size:13px;line-height:1.4}.webrtc-chat-modal__security-note>svg{flex:0 0 auto}.webrtc-chat-modal__thread-contacts{display:flex;min-height:64px;overflow-x:auto;gap:8px;padding:8px 12px;border-bottom:1px solid #2d2d33;background:#14151a}.webrtc-chat-modal__thread-contact,.webrtc-chat-modal__thread-add{border:0;background:transparent;color:#f5f5f7c7;min-width:84px;border-radius:12px;padding:6px 8px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.webrtc-chat-modal__thread-contact-wrap{display:inline-flex;align-items:center;flex:0 0 auto;min-width:0;border:1px solid transparent;border-radius:12px;background:transparent}.webrtc-chat-modal__thread-contact-wrap--active{background:#2d2253;border-color:#a78bfa47}.webrtc-chat-modal__thread-contact-wrap .webrtc-chat-modal__thread-contact{min-width:0;border-radius:11px 0 0 11px}.webrtc-chat-modal__thread-contact-close{width:25px;height:30px;flex:0 0 25px;border:0;border-left:1px solid rgba(255,255,255,.08);border-radius:0 10px 10px 0;background:transparent;color:#f5f5f785;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.webrtc-chat-modal__thread-contact-close:hover{color:#fda4af;background:#fb71851a}.webrtc-chat-modal__thread-contact--active{background:#2d2253;color:#f5f5f7}.webrtc-chat-modal__thread-contact-avatar{position:relative;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#333646;font-size:11px;font-weight:800}.webrtc-chat-modal__thread-add{min-width:48px;justify-content:center;border-left:1px solid #2d2d33;border-radius:0}.webrtc-chat-modal__encryption-divider{display:grid;grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr);align-items:center;gap:8px;color:#9ca3af;font-size:12px;padding:10px 14px 2px}.webrtc-chat-modal__encryption-divider span{height:1px;background:#2d2d33}.webrtc-chat-modal__encryption-divider strong{font-weight:600}.webrtc-chat-modal__composer{grid-template-columns:42px minmax(0,1fr) 54px;gap:8px;padding:10px 12px 12px;background:#121319}.webrtc-chat-modal__composer-tool,.webrtc-chat-modal__composer-emoji{width:42px;height:42px;border:1px solid #2d2d33;background:#1a1c24;color:#9ca3af;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.webrtc-chat-modal__composer-tool{border-radius:10px}.webrtc-chat-modal__composer-field{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;border:1px solid #2d2d33;min-height:42px;border-radius:13px;background:#0d0e12;box-shadow:inset 0 0 0 1px #ffffff04;overflow:hidden}.webrtc-chat-modal__composer-field .webrtc-chat-modal__composer-input{border:0;background:transparent;padding:10px 13px;font-size:14px}.webrtc-chat-modal__composer-emoji{border:0;background:transparent;border-radius:0}.webrtc-chat-modal__icon-button--send{width:54px;height:42px;border:0;background:#4f39a5;color:#f0eaff;border-radius:13px}.webrtc-chat-modal__invite-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:7;display:flex;align-items:center;justify-content:center;padding:18px;background:#05060a8a;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.webrtc-chat-modal__invite-panel{width:min(430px,100%);border:1px solid #2d2d33;border-radius:16px;background:#15161b;box-shadow:0 20px 70px #0000007a;padding:16px;display:flex;flex-direction:column;gap:14px}.webrtc-chat-modal__invite-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.webrtc-chat-modal__invite-title{color:#f5f5f7;font-size:18px;font-weight:800}.webrtc-chat-modal__invite-subtitle{margin-top:3px;color:#9ca3af;font-size:13px}.webrtc-chat-modal__qr-wrap{align-self:center;width:min(230px,68vw);aspect-ratio:1;border-radius:18px;background:#f8fafc;padding:12px;display:flex;align-items:center;justify-content:center}.webrtc-chat-modal__qr{width:100%;height:100%;display:block}.webrtc-chat-modal__qr-fallback{color:#111827;font-size:13px;line-height:1.35;text-align:center}.webrtc-chat-modal__invite-link-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:center}.webrtc-chat-modal__invite-link{grid-column:1 / -1;width:100%;min-width:0;height:42px;border:1px solid #2d2d33;border-radius:10px;background:#0f0f13;color:#d8dbe5;padding:0 11px;font-size:12px;outline:none;text-overflow:ellipsis}.webrtc-chat-modal__button--copy{width:100%;height:42px;min-height:42px;padding-inline:12px}.webrtc-chat-modal__manual-toolbar-button{min-height:40px;border:1px solid #2d2d33;border-radius:10px;background:#181b22;color:#d8dbe5;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;white-space:nowrap}.webrtc-chat-modal__manual-panel{width:min(480px,100%)}.secure-chat__invite-input-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px}.secure-chat__invite-input-row .chat-media__input{min-width:0;min-height:44px}.secure-chat__invite-input-row .chat-media__icon{width:44px;height:44px}.webrtc-chat-modal__manual-panel-form{display:grid;grid-template-columns:minmax(0,1fr) auto 42px;gap:8px;align-items:center}.webrtc-chat-modal__manual-panel-form .webrtc-chat-modal__input{height:42px}.webrtc-chat-modal__button--manual-connect{height:42px;min-height:42px}@container (max-width: 720px){.webrtc-chat-modal__title-wrap{grid-template-columns:auto minmax(0,1fr)}.webrtc-chat-modal__subtitle,.webrtc-chat-modal__status{display:none}.webrtc-chat-modal__content{grid-template-columns:1fr}.webrtc-chat-modal__contacts{border-right:0}.webrtc-chat-modal__thread,.webrtc-chat-modal--has-peer .webrtc-chat-modal__contacts{display:none}.webrtc-chat-modal--has-peer .webrtc-chat-modal__thread{display:flex}.webrtc-chat-modal__back{display:inline-flex}}@container (max-width: 520px){.webrtc-chat-modal__toolbar{grid-template-columns:minmax(0,1fr)}}@media(max-width:640px){.webrtc-chat-modal{align-items:stretch;justify-content:stretch;background:#0f0f12}.webrtc-chat-modal:not(.webrtc-chat-modal--docked){padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.webrtc-chat-modal__dialog{width:100%;height:100%;max-height:none;border:0;border-radius:0}.webrtc-chat-modal__header{padding:10px 12px}.webrtc-chat-modal__subtitle,.webrtc-chat-modal__status{display:none}.webrtc-chat-modal__content{grid-template-columns:1fr;min-height:0}.webrtc-chat-modal__contacts{border-right:0;height:100%;min-height:0}.webrtc-chat-modal__thread,.webrtc-chat-modal--has-peer .webrtc-chat-modal__contacts{display:none}.webrtc-chat-modal--has-peer .webrtc-chat-modal__thread{display:flex}.webrtc-chat-modal__back{display:inline-flex}.webrtc-chat-modal__thread-header{min-height:54px;padding:8px 10px}.webrtc-chat-modal__thread-connect span{display:none}.webrtc-chat-modal__button--primary{width:100%}.webrtc-chat-modal__composer{grid-template-columns:38px minmax(0,1fr) 48px;gap:8px}.webrtc-chat-modal__composer-tool,.webrtc-chat-modal__composer-emoji{width:38px;height:40px}.webrtc-chat-modal__composer-field{grid-template-columns:minmax(0,1fr) 38px}.webrtc-chat-modal__icon-button--send{width:48px;height:40px}.webrtc-chat-modal__message{max-width:86%}.webrtc-chat-modal__invite-layer{align-items:flex-end;padding:10px}.webrtc-chat-modal__invite-panel{border-radius:16px 16px 0 0}.webrtc-chat-modal__manual-panel-form{grid-template-columns:minmax(0,1fr) 42px}.webrtc-chat-modal__button--manual-connect{grid-column:1 / -1;width:100%}}html[data-theme^=light] .webrtc-chat-modal{background:#0f172a3d;color:var(--theme-text)}html[data-theme^=light] .webrtc-chat-modal__dialog{background:var(--theme-panel)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}html[data-theme^=light] .webrtc-chat-modal__header,html[data-theme^=light] .webrtc-chat-modal__thread-header,html[data-theme^=light] .webrtc-chat-modal__composer{background:var(--theme-panel)!important;border-color:var(--theme-border)!important}html[data-theme^=light] .webrtc-chat-modal__title,html[data-theme^=light] .webrtc-chat-modal__invite-title,html[data-theme^=light] .webrtc-chat-modal__empty-title,html[data-theme^=light] .webrtc-chat-modal__menu-item,html[data-theme^=light] .webrtc-chat-modal__close{color:var(--theme-text)!important}html[data-theme^=light] .webrtc-chat-modal__subtitle,html[data-theme^=light] .webrtc-chat-modal__invite-subtitle,html[data-theme^=light] .webrtc-chat-modal__contacts-count,html[data-theme^=light] .webrtc-chat-modal__empty small{color:var(--theme-muted)!important}html[data-theme^=light] .webrtc-chat-modal__contacts-count,html[data-theme^=light] .webrtc-chat-modal__contact-section-title{color:var(--theme-accent-strong)!important}html[data-theme^=light] .webrtc-chat-modal__contacts,html[data-theme^=light] .webrtc-chat-modal:not(.webrtc-chat-modal--has-peer) .webrtc-chat-modal__contacts{background:radial-gradient(circle at 50% 18%,var(--theme-accent-soft),transparent 32%),var(--theme-bg)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}html[data-theme^=light] .webrtc-chat-modal__contact-search{background:var(--theme-input)!important;border-color:var(--theme-border-strong)!important;color:var(--theme-muted)!important}html[data-theme^=light] .webrtc-chat-modal__contact-input,html[data-theme^=light] .webrtc-chat-modal__input,html[data-theme^=light] .webrtc-chat-modal__composer-input{background:transparent!important;color:var(--theme-text)!important}html[data-theme^=light] .webrtc-chat-modal__contact-input::placeholder,html[data-theme^=light] .webrtc-chat-modal__composer-input::placeholder{color:var(--theme-muted)!important;opacity:.9}html[data-theme^=light] .webrtc-chat-modal__contact-bubble,html[data-theme^=light] .webrtc-chat-modal__bubble-name,html[data-theme^=light] .webrtc-chat-modal__security-note,html[data-theme^=light] .webrtc-chat-modal__thread-contact{color:var(--theme-text)!important}html[data-theme^=light] .webrtc-chat-modal__empty-shield{color:var(--theme-accent-strong)!important}html[data-theme^=light] .webrtc-chat-modal__contact-bubble--new .webrtc-chat-modal__bubble-avatar{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important;color:var(--theme-accent-strong)!important}html[data-theme^=light] .webrtc-chat-modal__security-note span{color:var(--theme-accent-strong)!important;background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}html[data-theme^=light] .webrtc-chat-modal__security-note{background:var(--theme-panel-elevated)!important;border-color:var(--theme-border)!important}html[data-theme] .webrtc-chat-modal__contact-input:focus-visible{outline:none;outline-offset:0}html[data-theme] .webrtc-chat-modal__contact-search:focus-within{border-color:var(--theme-accent)!important;box-shadow:0 0 0 2px var(--theme-accent-soft)}html[data-theme^=light] .webrtc-chat-modal__button,html[data-theme^=light] .webrtc-chat-modal__icon-button,html[data-theme^=light] .webrtc-chat-modal__back,html[data-theme^=light] .webrtc-chat-modal__menu-summary{background:var(--theme-panel-elevated)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}html[data-theme^=light] .webrtc-chat-modal__button--primary,html[data-theme^=light] .webrtc-chat-modal__icon-button--send,html[data-theme^=light] .webrtc-chat-modal__invite-primary{background:var(--theme-accent-strong)!important;color:#fff!important}html[data-theme^=light] .webrtc-chat-modal__manual-link,html[data-theme^=light] .webrtc-chat-modal__encrypted{color:var(--theme-accent-strong)!important}.secure-chat__notice{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 16px;font-size:12px;color:var(--theme-text, #eee);background:var(--theme-panel-elevated, #222);border-bottom:1px solid var(--theme-border, #333);overflow-wrap:anywhere}.secure-chat__notice>span{flex:1;min-width:0}.secure-chat__notice>button{flex-shrink:0;max-width:30%;min-height:36px}.secure-chat__notice>button[aria-label="Dismiss notice"]{width:36px}.secure-chat__notice button,.secure-chat__message-actions button{background:transparent;color:inherit;border:0;cursor:pointer}.secure-chat__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;gap:16px;flex:1;color:var(--theme-muted, #bbb)}.secure-chat__qr{width:min(100%,320px);align-self:center;background:#fff;border-radius:8px}.secure-chat__message-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:8px;font-size:11px;align-items:center}.secure-chat__message-actions button{font-size:11px;text-decoration:underline}.secure-chat__composer{flex-wrap:wrap}.secure-chat__media-tools{display:flex;flex-wrap:wrap;gap:4px;width:100%}.secure-chat__composer .webrtc-chat-modal__composer-field{width:100%}.secure-chat__composer textarea{resize:vertical;min-height:42px;max-height:180px}.secure-chat__discovery{display:grid;gap:6px;padding:10px}.webrtc-chat-modal__thread-peer small{display:block;color:var(--theme-muted, #aaa);font-size:11px;margin-top:4px}.webrtc-chat-modal__message .chat-media__attachment{max-width:100%}.webrtc-chat-modal__menu-items button{display:flex;align-items:center;gap:6px}.secure-chat__archive{max-height:60vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.webrtc-chat-modal__header-actions{flex-shrink:0}.webrtc-chat-modal__title-wrap{display:flex;align-items:center;flex:1}.webrtc-chat-modal__title-wrap .webrtc-chat-modal__title{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}.webrtc-chat-modal__build{color:var(--theme-text-soft);font-size:11px;font-weight:400;line-height:1.3;white-space:nowrap}.webrtc-chat-modal__title-wrap .webrtc-chat-modal__encrypted{font-size:11px;white-space:nowrap}@container (max-width: 400px){.webrtc-chat-modal__header{gap:6px;padding-inline:10px}.webrtc-chat-modal__title-wrap .webrtc-chat-modal__title{font-size:14px;gap:4px}.webrtc-chat-modal__title-wrap .webrtc-chat-modal__encrypted{font-size:10px}}.webrtc-chat-modal__thread-header{display:flex;flex-wrap:nowrap;flex-shrink:0;gap:8px}.webrtc-chat-modal__thread-peer{flex:1;min-width:0}.webrtc-chat-modal__thread-peer strong,.webrtc-chat-modal__thread-peer small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-chat-modal__thread-peer{gap:1px}.webrtc-chat-modal__thread-peer strong{line-height:1.25}.webrtc-chat-modal__thread-peer small{margin-top:0;line-height:1.2;font-size:12px}.secure-chat__thread-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;overflow:hidden;border-radius:50%;background:var(--theme-panel-elevated);color:var(--theme-text-soft);font-size:20px;font-weight:500}.secure-chat__thread-avatar img{width:100%;height:100%;object-fit:cover}.secure-chat__contact-menu>summary{position:relative;overflow:visible}.secure-chat__verification-needed{position:absolute;right:-4px;top:-5px;display:grid;place-items:center;box-sizing:border-box;width:16px;height:16px;border-radius:50%;background:var(--theme-danger-strong);color:#fff;font-size:11px;font-weight:700;line-height:1}.webrtc-chat-modal__thread-header>button{flex-shrink:0}.secure-chat__contact-actions{display:flex;align-items:center;flex-shrink:0;gap:4px}.webrtc-chat-modal .secure-chat__contact-icon{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;min-height:36px;padding:0}.secure-chat__contact-menu .webrtc-chat-modal__menu-items{min-width:210px;max-width:calc(100vw - 24px)}.secure-chat__reconnect:disabled{opacity:1;cursor:default}.secure-chat__reconnect[data-connection-state=connected]{color:var(--theme-success, #4ade80)}.secure-chat__reconnect[data-connection-state=blocked]{opacity:.5}.secure-chat__reconnect--active{color:var(--theme-accent, #a998ff)}.secure-chat__reconnect--active svg{animation:chat-reconnect-spin 1s linear infinite}@keyframes chat-reconnect-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.secure-chat__reconnect--active svg{animation:none}}@container (max-width: 400px){.webrtc-chat-modal__thread-header{gap:6px;padding-inline:8px}}.webrtc-chat-modal__composer.secure-chat__composer{display:flex;flex-direction:column;align-items:stretch;flex-shrink:0}.secure-chat__media-tools{flex-wrap:nowrap}@container (max-width: 520px){.secure-chat__verification-label{display:none}}@media(max-width:640px){.secure-chat__verification-label{display:none}}.webrtc-chat-modal__message-meta{display:flex;flex-wrap:wrap;gap:8px}.secure-chat__media-tools .webrtc-chat-modal__composer-emoji{border:1px solid var(--theme-border, #2d2d33);border-radius:10px;background:var(--theme-panel-elevated, #1a1c24)}.secure-chat__conversation-locked{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 12px}.secure-chat__conversation-locked .chat-media__panel{margin:auto;width:min(100%,520px)}.secure-chat__message-row{position:relative;display:flex;width:100%;min-width:0;border-radius:10px;touch-action:pan-y}.secure-chat__message-row--selected{background:color-mix(in srgb,var(--accent-color, #609afa) 18%,transparent)}.secure-chat__message-row:focus-visible{outline:2px solid var(--accent-color, #609afa);outline-offset:2px}.secure-chat__message-check{flex:0 0 18px;width:18px;height:18px;margin:auto 8px auto 2px;accent-color:var(--accent-color, #609afa)}.secure-chat__message-row .webrtc-chat-modal__message{min-width:0}.webrtc-chat-modal__message-meta{display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap}.secure-chat__message-stamp{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;margin-left:auto}.webrtc-chat-modal__delivery{display:inline-flex;align-items:center;gap:4px}.webrtc-chat-modal__delivery svg{flex-shrink:0}.secure-chat__receipt--delivered{color:var(--theme-accent, #60a5fa)}.secure-chat__receipt--server{color:#9ca3af}.secure-chat__message-stamp--compact{flex-wrap:nowrap;white-space:nowrap;font-size:11px;gap:4px}.secure-chat__date-separator{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:6px 0;color:var(--theme-muted);font-size:11px;-webkit-user-select:none;user-select:none}.secure-chat__date-separator:before,.secure-chat__date-separator:after{content:"";height:1px;flex:1;background:var(--theme-border)}.secure-chat__date-separator>span{padding:5px 12px;border-radius:999px;background:var(--theme-panel-strong);color:var(--theme-text-soft)}.secure-chat__new-divider>span{color:var(--theme-accent)}.secure-chat__new-divider:before,.secure-chat__new-divider:after{background:var(--theme-accent-soft)}.secure-chat__selection-actions{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0}.secure-chat__selection-actions>span{font-size:12px;white-space:nowrap}.webrtc-chat-modal__thread-header:has(.secure-chat__selection-actions)>.secure-chat__contact-portrait,.webrtc-chat-modal__thread-header:has(.secure-chat__selection-actions)>.secure-chat__thread-avatar,.webrtc-chat-modal__thread-header:has(.secure-chat__selection-actions)>.webrtc-chat-modal__thread-peer{display:none}.webrtc-chat-modal__contact-name--offline{color:#f87171}:root[data-theme=light] .webrtc-chat-modal__contact-name--offline,:root[data-theme=light-warm] .webrtc-chat-modal__contact-name--offline,:root[data-theme=light-mint] .webrtc-chat-modal__contact-name--offline{color:#b91c1c}.webrtc-chat-modal__composer.chat-composer{flex-wrap:nowrap;gap:0;padding:0;border-top:1px solid var(--theme-border);background:var(--theme-panel);color:var(--theme-text);min-width:0}.chat-composer__row{display:flex;align-items:flex-end;gap:8px;padding:12px;min-width:0}.chat-composer__toggle,.chat-composer__emoji,.chat-composer__send{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-panel-elevated);color:var(--theme-text-soft);cursor:pointer}.chat-composer__field{display:flex;align-items:flex-end;flex:1;min-width:0;border:1px solid var(--theme-border-strong);border-radius:24px;background:var(--theme-input);overflow:hidden}.chat-composer__field:focus-within{border-color:var(--theme-accent)}.chat-composer .webrtc-chat-modal__composer-input{display:block;flex:1;width:0;min-width:0;min-height:44px;max-height:144px;box-sizing:border-box;resize:none;border:0;border-radius:0;outline:0;box-shadow:none;padding:11px 2px 11px 14px;background:transparent;color:var(--theme-text);font:inherit;font-size:16px;line-height:22px;overflow-y:auto;scrollbar-width:thin}.chat-composer .webrtc-chat-modal__composer-input::placeholder{color:var(--theme-muted)}.chat-composer .chat-composer__emoji{border:0;background:transparent;color:var(--theme-text-soft)}.chat-composer__emoji[aria-expanded=true]{color:var(--theme-accent)}.chat-composer .chat-composer__send{border-color:var(--theme-accent-strong);border-radius:15px;background:var(--theme-accent-strong);color:var(--theme-on-accent)}.chat-composer .chat-composer__send--voice{border-radius:50%}.chat-composer button:disabled{opacity:.45;cursor:not-allowed}.chat-composer button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}.chat-composer__toggle:hover:not(:disabled),.chat-composer__emoji:hover:not(:disabled){background:var(--theme-accent-soft);color:var(--theme-accent)}.chat-composer__sheet{border-bottom:1px solid var(--theme-border);border-radius:0;background:linear-gradient(160deg,var(--theme-panel-elevated),var(--theme-panel));padding:10px 12px 12px}.chat-composer__sheet h3{margin:0 0 12px 4px;color:var(--theme-text);font-size:16px;font-weight:600}.chat-composer__attachments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.chat-composer__attachment{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:84px;padding:12px 4px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-panel-strong);color:var(--theme-text);font:inherit;font-size:13px;cursor:pointer}.chat-composer__attachment:hover:not(:disabled){background:var(--theme-panel-elevated);border-color:var(--theme-border-strong)}.chat-composer__attachment--photo svg{color:#60a5fa}.chat-composer__attachment--camera svg{color:#c084fc}.chat-composer__attachment--video svg{color:#f87171}.chat-composer__attachment--file svg{color:#4ade80}[data-theme^=light] .chat-composer__attachment--photo svg{color:#2563eb}[data-theme^=light] .chat-composer__attachment--camera svg{color:#9333ea}[data-theme^=light] .chat-composer__attachment--video svg{color:#dc2626}[data-theme^=light] .chat-composer__attachment--file svg{color:#15803d}.chat-composer>small{padding:0 12px 10px}@container (max-width: 360px){.chat-composer__row{padding:10px 8px;gap:6px}.chat-composer__attachments{gap:6px}.chat-composer__sheet{padding-inline:8px}}@media(max-height:500px){.chat-composer__sheet{max-height:32dvh;overflow-y:auto}.chat-composer__attachment{min-height:64px;padding-block:8px;gap:6px}.chat-composer__sheet h3{margin-bottom:8px}}.chat-composer__row[hidden]{display:none}.chat-composer__send--voice{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.pwa-update-notice{position:fixed;bottom:calc(5rem + env(safe-area-inset-bottom,0px));left:50%;z-index:1600;transform:translate(-50%);box-sizing:border-box;width:min(calc(100% - 1.5rem),30rem);display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:.5rem;padding:.625rem .75rem .75rem;border:1px solid var(--theme-border);border-radius:.75rem;background:var(--theme-panel);color:var(--theme-text);box-shadow:0 4px 20px var(--theme-shadow);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.875rem;line-height:1.4}.pwa-update-notice__title{font-weight:600}.pwa-update-notice__description{grid-column:1 / -1;padding-top:.25rem;color:var(--theme-text-soft);font-size:.75rem;line-height:1.5}.pwa-update-notice__reload,.pwa-update-notice__close{display:inline-flex;align-items:center;justify-content:center;min-height:2rem;padding:0;border:0;border-radius:.5rem;background:transparent;font:inherit;cursor:pointer}.pwa-update-notice__reload{padding-inline:.625rem;color:var(--theme-accent);font-size:.8125rem;font-weight:600}.pwa-update-notice__close{width:2rem;color:var(--theme-text-soft)}.pwa-update-notice__reload:hover{background:var(--theme-accent-soft)}.pwa-update-notice__close:hover{background:var(--theme-panel-elevated);color:var(--theme-text)}.pwa-update-notice__reload:focus-visible,.pwa-update-notice__close:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}.chat-origin-migration{box-sizing:border-box;min-height:100dvh;height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:var(--theme-bg);color:var(--theme-text)}.chat-origin-migration .chat-origin-migration__panel{box-sizing:border-box;width:min(520px,100%);max-height:none;flex-shrink:0;margin-block:auto}.chat-origin-migration header{display:flex;gap:12px;align-items:center}.chat-origin-migration h1{margin:0;font-size:1.2rem;line-height:1.35}.chat-origin-migration p{line-height:1.55;overflow-wrap:anywhere}.chat-origin-migration progress{width:100%;accent-color:var(--theme-accent, #347bf5)}.chat-origin-migration .chat-media__hint svg{vertical-align:text-bottom;margin-right:5px}.chat-origin-migration .chat-media__actions{flex-wrap:wrap}.chat-origin-migration .chat-media__button{min-height:44px}:root{--theme-bg: #0f0f12;--theme-bg-alt: #0d0d10;--theme-panel: #16161a;--theme-panel-strong: #1a1a1f;--theme-panel-elevated: #23232a;--theme-input: #0f0f12;--theme-border: #2d2d33;--theme-border-strong: #3d3d43;--theme-text: #f5f5f7;--theme-text-soft: #d4d4d8;--theme-muted: #9ca3af;--theme-subtle: #6b7280;--theme-accent: #34d399;--theme-accent-strong: #10b981;--theme-accent-soft: rgba(52, 211, 153, .16);--theme-on-accent: #ffffff;--theme-success: #a7f3d0;--theme-success-soft: rgba(6, 78, 59, .25);--theme-warning: #fde68a;--theme-warning-strong: #f59e0b;--theme-warning-soft: rgba(120, 53, 15, .25);--theme-danger: #fca5a5;--theme-danger-strong: #ef4444;--theme-danger-soft: rgba(127, 29, 29, .22);--theme-shadow: rgba(0, 0, 0, .35);--theme-overlay: rgba(0, 0, 0, .5);--theme-editor-bg: #0f0f12;--theme-editor-text: #d4d4d4;--theme-editor-gutter: #4a4a4f;--theme-editor-active: #1a1a1f;--theme-editor-selection: #264f78;--theme-editor-cursor: #aeafad;--theme-indent-marker: rgba(148, 163, 184, .18);--theme-indent-marker-active: rgba(148, 163, 184, .42);color-scheme:dark}:root[data-theme=light]{--theme-bg: #f5f7fb;--theme-bg-alt: #eef2f7;--theme-panel: #ffffff;--theme-panel-strong: #f8fafc;--theme-panel-elevated: #e9eef5;--theme-input: #ffffff;--theme-border: #d8dee8;--theme-border-strong: #c4ccd8;--theme-text: #172033;--theme-text-soft: #334155;--theme-muted: #64748b;--theme-subtle: #94a3b8;--theme-accent: #2563eb;--theme-accent-strong: #1d4ed8;--theme-accent-soft: rgba(37, 99, 235, .12);--theme-editor-bg: #ffffff;--theme-editor-text: #1f2937;--theme-editor-gutter: #64748b;--theme-editor-active: #eef2ff;--theme-editor-selection: #bfdbfe;--theme-editor-cursor: #1d4ed8;--theme-indent-marker: rgba(71, 85, 105, .2);--theme-indent-marker-active: rgba(71, 85, 105, .44);color-scheme:light}:root[data-theme=light-warm]{--theme-bg: #fbf7f1;--theme-bg-alt: #f4ede4;--theme-panel: #fffdf9;--theme-panel-strong: #faf3ea;--theme-panel-elevated: #eee2d3;--theme-input: #fffdf9;--theme-border: #ded0bf;--theme-border-strong: #cbb9a4;--theme-text: #2b2118;--theme-text-soft: #4b382a;--theme-muted: #806b59;--theme-subtle: #a89480;--theme-accent: #c2410c;--theme-accent-strong: #9a3412;--theme-accent-soft: rgba(194, 65, 12, .12);--theme-editor-bg: #fffdf9;--theme-editor-text: #3b2f26;--theme-editor-gutter: #806b59;--theme-editor-active: #fff1df;--theme-editor-selection: #fed7aa;--theme-editor-cursor: #9a3412;--theme-indent-marker: rgba(120, 53, 15, .2);--theme-indent-marker-active: rgba(120, 53, 15, .42);color-scheme:light}:root[data-theme=light-mint]{--theme-bg: #f2faf7;--theme-bg-alt: #e5f3ee;--theme-panel: #fbfffd;--theme-panel-strong: #f0faf6;--theme-panel-elevated: #d9eee6;--theme-input: #fbfffd;--theme-border: #c7dfd6;--theme-border-strong: #a9cabe;--theme-text: #15332c;--theme-text-soft: #285449;--theme-muted: #5d8176;--theme-subtle: #88a99f;--theme-accent: #0f766e;--theme-accent-strong: #115e59;--theme-accent-soft: rgba(15, 118, 110, .12);--theme-editor-bg: #fbfffd;--theme-editor-text: #20473d;--theme-editor-gutter: #5d8176;--theme-editor-active: #e2f5ee;--theme-editor-selection: #99f6e4;--theme-editor-cursor: #115e59;--theme-indent-marker: rgba(15, 118, 110, .2);--theme-indent-marker-active: rgba(15, 118, 110, .42);color-scheme:light}:root[data-theme=dark-blue]{--theme-bg: #0b1220;--theme-bg-alt: #0f1a2b;--theme-panel: #101b2d;--theme-panel-strong: #16243a;--theme-panel-elevated: #1d304b;--theme-input: #0b1627;--theme-border: #243754;--theme-border-strong: #345174;--theme-text: #e5eefb;--theme-text-soft: #c4d5e9;--theme-muted: #8fa8c4;--theme-subtle: #6d86a2;--theme-accent: #60a5fa;--theme-accent-strong: #3b82f6;--theme-accent-soft: rgba(96, 165, 250, .16);--theme-editor-bg: #0b1220;--theme-editor-text: #c7d7eb;--theme-editor-gutter: #6d86a2;--theme-editor-active: #16243a;--theme-editor-selection: #21466d;--theme-editor-cursor: #93c5fd;--theme-indent-marker: rgba(147, 197, 253, .2);--theme-indent-marker-active: rgba(147, 197, 253, .42);color-scheme:dark}:root[data-theme=dark-violet]{--theme-bg: #120e1a;--theme-bg-alt: #161021;--theme-panel: #1a1326;--theme-panel-strong: #251a35;--theme-panel-elevated: #322246;--theme-input: #140e1f;--theme-border: #3b2a51;--theme-border-strong: #594176;--theme-text: #f3eafa;--theme-text-soft: #dfcfee;--theme-muted: #ad93c1;--theme-subtle: #8b70a3;--theme-accent: #c084fc;--theme-accent-strong: #a855f7;--theme-accent-soft: rgba(192, 132, 252, .16);--theme-editor-bg: #120e1a;--theme-editor-text: #e2d5eb;--theme-editor-gutter: #8b70a3;--theme-editor-active: #251a35;--theme-editor-selection: #563678;--theme-editor-cursor: #d8b4fe;--theme-indent-marker: rgba(216, 180, 254, .2);--theme-indent-marker-active: rgba(216, 180, 254, .42);color-scheme:dark}:root[data-theme^=light]{--theme-success: var(--theme-accent-strong);--theme-success-soft: var(--theme-accent-soft);--theme-warning: #92400e;--theme-warning-strong: #d97706;--theme-warning-soft: rgba(245, 158, 11, .1);--theme-danger: #b91c1c;--theme-danger-strong: #dc2626;--theme-danger-soft: rgba(220, 38, 38, .08);--theme-shadow: rgba(15, 23, 42, .16);--theme-overlay: rgba(15, 23, 42, .28)}html,body,#root{box-sizing:border-box;width:100%;height:100%;min-height:100dvh;margin:0;background:var(--theme-bg);color:var(--theme-text)}body{overflow:hidden;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea{font:inherit}[data-chat-standalone] .webrtc-chat-modal{padding:0;background:var(--theme-bg)}[data-chat-standalone] .webrtc-chat-modal__dialog{width:100%;max-width:none;height:100%;max-height:none;border-radius:0;border:0}.chat-client-closed{display:grid;height:100%;place-items:center}
