:root{color:#182533;background:linear-gradient(180deg,#e6edf3,#d6dfe7);font-family:SF Pro Text,Segoe UI,Helvetica Neue,Arial,sans-serif;font-size:14px;color-scheme:light;--app-bg: #f4f7fa;--panel-bg: #ffffff;--panel-strong: #ffffff;--border-soft: #dfe6ec;--text-main: #182533;--text-muted: #6d7f92;--text-faint: #8e9dad;--accent: #3390ec;--accent-strong: #2b7fd1;--accent-soft: #e8f3ff;--bubble-in: #ffffff;--bubble-out: #e3f5d8;--danger-soft: #fff0f0;--danger-text: #b74545;--success-text: #2d7a44;--shadow-xl: 0 6px 20px rgba(45, 76, 107, .12);--shadow-sm: 0 1px 2px rgba(80, 107, 134, .08)}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{min-height:100dvh;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{width:100%;border:1px solid var(--border-soft);border-radius:8px;background:#fff;color:var(--text-main);padding:7px 10px;font-size:13px;outline:none;transition:border-color .12s ease,box-shadow .12s ease}input:not([type=checkbox]):not([type=radio]):focus,select:focus{border-color:#3390eca6;box-shadow:0 0 0 4px #3390ec24}input[type=checkbox],input[type=radio]{flex:0 0 auto;width:auto}input::placeholder{color:var(--text-faint)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none}.app-shell{height:100dvh;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden}.workspace-frame{display:grid;grid-template-columns:308px minmax(0,1fr) 320px;gap:8px;height:calc(100dvh - 16px);min-height:0}.workspace-frame--client{grid-template-columns:var(--dialogs-pane-width, 308px) 8px minmax(0,1fr)}.workspace-frame__resizer{position:relative;min-width:12px;cursor:col-resize;touch-action:none}.workspace-frame__resizer:before{content:"";position:absolute;top:12px;bottom:12px;left:50%;width:4px;transform:translate(-50%);border-radius:999px;background:#a0b5c647;transition:background-color .12s ease}.workspace-frame__resizer:hover:before,.workspace-frame__resizer:focus-visible:before{background:#5797c97a}.dialogs-pane,.chat-pane{min-width:0;min-height:0}.dialogs-pane,.chat-pane{display:grid;background:var(--app-bg);border:1px solid var(--border-soft);border-radius:12px;box-shadow:var(--shadow-xl);overflow:hidden}.dialogs-pane{grid-template-rows:auto minmax(0,1fr)}.chat-pane{grid-template-rows:auto minmax(0,1fr);background:#f7fafc;position:relative}.pane-header{padding:10px 12px;border-bottom:1px solid var(--border-soft);background:#fff}.pane-header--dialogs{display:grid;gap:8px}.pane-header--chat{padding:10px 14px}.pane-row{display:flex;justify-content:space-between;gap:8px;align-items:center}.persona,.chat-summary{display:flex;align-items:center;gap:10px;min-width:0}.chat-summary__open{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit}.chat-summary__open:hover{opacity:.85}.account-trigger{width:100%;min-width:0;display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;text-align:left}.persona__avatar,.chat-summary__avatar,.dialog-list__avatar,.dialog-preview__avatar{position:relative;overflow:hidden;display:grid;place-items:center;border-radius:50%;color:#fff;font-weight:700;letter-spacing:.02em;background:linear-gradient(135deg,#58a8f7,#3f8fe8)}.persona__avatar,.chat-summary__avatar{width:34px;height:34px;font-size:13px}.chat-avatar__fallback{position:relative;z-index:0}.chat-avatar__image{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;image-rendering:auto;transform:translateZ(0)}.status-dot{position:absolute;z-index:2;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;border:2px solid #ffffff;box-sizing:content-box;background:#98a4ae}.status-dot--connected{background:#4bb96b}.status-dot--connecting{background:#f0b138;animation:status-dot-pulse 1.2s ease-in-out infinite}.status-dot--disconnected{background:#c4503d}.status-dot--online{background:#4bb96b}.reconnect-banner{position:fixed;top:max(8px,env(safe-area-inset-top));left:50%;transform:translate(-50%);z-index:80;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:#2c3640;color:#fff;font-size:12px;font-weight:600;letter-spacing:.01em;box-shadow:0 6px 18px #0000002e;animation:reconnect-banner-in .22s cubic-bezier(.2,.7,.2,1)}.reconnect-banner__dot{width:8px;height:8px;border-radius:50%;background:#f0b138;animation:status-dot-pulse 1.2s ease-in-out infinite}@keyframes reconnect-banner-in{0%{transform:translate(-50%,-120%);opacity:0}to{transform:translate(-50%);opacity:1}}.typing-indicator{display:inline-flex;align-items:center;gap:3px;height:1em;vertical-align:middle}.typing-indicator__dot{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.4;animation:typing-indicator-bounce 1.1s ease-in-out infinite}.typing-indicator__dot:nth-child(2){animation-delay:.15s}.typing-indicator__dot:nth-child(3){animation-delay:.3s}@keyframes typing-indicator-bounce{0%,to{transform:translateY(0);opacity:.4}50%{transform:translateY(-2px);opacity:1}}.dialog-list__item--active .typing-indicator__dot{background:#fff}@keyframes status-dot-pulse{0%,to{opacity:1}50%{opacity:.45}}.dialog-list__avatar .status-dot,.persona__avatar .status-dot,.chat-summary__avatar .status-dot{width:8px;height:8px;border-width:2px}.dialog-list__avatar{width:40px;height:40px;flex:0 0 auto;font-size:14px}.persona__body,.chat-summary__body{min-width:0;flex:1 1 auto}.persona__title,.chat-summary__title{margin:0;font-size:14px;font-weight:600;line-height:1.2}.persona__subtitle,.chat-summary__subtitle,.side-card__subtitle,.account-list__meta,.dialog-list__preview,.dialog-list__time,.message-bubble__meta{margin:0;color:var(--text-muted);font-size:12px}.search-field input{background:#f4f7fa;border-radius:8px}.search-field--with-icon{position:relative}.search-field__icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-faint);font-size:13px;pointer-events:none}.search-field--with-icon input{padding-left:28px}.toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}.icon-button{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--border-soft);border-radius:50%;background:#fff;color:var(--text-main);font-size:15px;line-height:1}.icon-button--mobile-only{display:none}.icon-button--back{display:none;flex:0 0 auto}.button{border:1px solid var(--border-soft);border-radius:8px;background:#fff;color:var(--text-main);padding:6px 12px;font-size:13px;line-height:1.3;transition:border-color .12s ease,background-color .12s ease}.button:hover:not(:disabled){border-color:#3390ec73}.button:disabled{cursor:default;opacity:.58}.button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.button--primary:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}.button--ghost{background:#f3f7fb}.button--danger{background:#ffefeff5;border-color:#dfa4a4cc;color:var(--danger-text)}.status-stack{display:grid;gap:8px}.status-stack__item{border-radius:14px;padding:10px 12px;font-size:13px;display:flex;align-items:flex-start;gap:8px}.status-stack__item-text{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.status-stack__item-close{flex:0 0 auto;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:#0000000f;color:inherit;font-size:16px;line-height:1;cursor:pointer}.status-stack__item-close:hover{background:#0000001f}.status-stack__clear{align-self:flex-end;border:0;background:transparent;color:var(--text-muted);font-size:12px;cursor:pointer;padding:2px 6px}.status-stack__clear:hover{color:var(--text-main)}.status-stack__item--error{background:var(--danger-soft);color:var(--danger-text)}.dialog-list__load-more{display:block;margin:8px auto;padding:8px 16px;border:1px solid var(--border-soft);border-radius:999px;background:#fff;color:var(--accent-strong);font-size:13px;font-weight:600;cursor:pointer}.dialog-list__folder-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.dialog-list__folder-chips-chip{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;background:#419fd91f;color:var(--accent-strong);font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap}.dialog-list__folder-chips-chip--archive{background:#7d7d7d2e;color:var(--text-muted)}.dialog-list__load-more:hover{background:#419fd914}.dialog-list{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.dialog-list__topline{display:flex;justify-content:space-between;align-items:center;padding:8px 12px 6px;font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.dialog-list__topline-actions{display:inline-flex;align-items:center;gap:8px}.dialog-list__create-folder{border:1px solid var(--accent-strong);background:var(--accent-soft, rgba(65, 159, 217, .08));color:var(--accent-strong);border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700;cursor:pointer;text-transform:none;letter-spacing:0}.dialog-list__create-folder:hover{background:#419fd92e}.dialog-list__layout{min-height:0;display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:6px;padding:0 6px 8px 8px}.dialog-list__layout--single{grid-template-columns:minmax(0,1fr);padding-left:6px}.dialog-list__folders{min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:8px;padding:4px 0 4px 4px}.dialog-list__folder{position:relative;display:flex;align-items:stretch;border:1px solid var(--border-soft);border-radius:10px;background:#fff;color:var(--text-main);font-size:12px;overflow:hidden}.dialog-list__folder-button{flex:1;display:grid;gap:2px;text-align:left;background:transparent;border:0;color:inherit;padding:7px 9px;font:inherit;cursor:pointer}.dialog-list__folder-menu{width:24px;border:0;border-left:1px solid var(--border-soft);background:transparent;color:var(--text-muted);font-size:16px;line-height:1;cursor:pointer;padding:0}.dialog-list__folder-menu:hover{background:#419fd91a;color:var(--accent-strong)}.dialog-list__folder--active{background:linear-gradient(180deg,#419fd924,#54aee52e);border-color:#419fd95c}.dialog-list__folder-title{font-size:13px;font-weight:700;line-height:1.25}.dialog-list__folder-kind,.dialog-list__folder-state{color:var(--text-muted);font-size:11px}.dialog-list__folder--active .dialog-list__folder-kind,.dialog-list__folder--active .dialog-list__folder-state{color:var(--accent-strong)}.dialog-list__folder-unread{position:absolute;top:6px;right:8px;min-width:20px;height:18px;padding:0 6px;display:inline-grid;place-items:center;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}.dialog-list__folder--active .dialog-list__folder-unread{background:var(--accent-strong)}.dialog-list__folder--add{display:grid;place-items:center;font-size:18px;font-weight:700;color:var(--accent-strong);background:#419fd90f;border-style:dashed;padding:8px 9px}.dialog-list__folder--add:hover{background:#419fd924}.dialog-list__new-folder{display:block;width:100%;text-align:center;padding:8px 9px;border:1px dashed var(--accent-strong);background:#419fd90f;color:var(--accent-strong);border-radius:10px;font-size:12px;font-weight:700;cursor:pointer}.dialog-list__new-folder:hover{background:#419fd924}.dialog-context-menu__item--danger{color:#c0392b}.folder-editor{position:fixed;top:0;right:0;bottom:0;left:0;z-index:110;display:grid;place-items:center}.folder-editor__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a6b;border:0;padding:0;cursor:default}.folder-editor__panel{position:relative;background:#fff;border-radius:14px;width:min(520px,92vw);max-height:min(80vh,720px);display:flex;flex-direction:column;padding:16px;gap:12px;box-shadow:0 10px 40px #0f172a2e}.folder-editor__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.folder-editor__row{display:grid;gap:4px;font-size:12px;color:var(--text-muted)}.folder-editor__row input[type=text],.folder-editor__row input[type=number],.folder-editor__row input[type=date],.folder-editor__row select{padding:8px 10px;border-radius:8px;border:1px solid var(--border-soft);font-size:14px;color:var(--text-main)}.folder-editor__hint{font-size:12px;color:var(--text-muted)}.folder-editor__limit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.folder-editor__limit-hint{font-size:12px;color:var(--text-muted)}.dialog-context-menu__item--disabled{color:var(--text-muted);font-size:12px;padding:8px 12px;cursor:default}.folder-editor__chats{flex:1;min-height:0;overflow-y:auto;border:1px solid var(--border-soft);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:2px}.folder-editor__chat{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;font-size:13px;cursor:pointer;min-width:0}.folder-editor__chat:hover{background:#419fd914}.folder-editor__chat-title{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;word-break:break-word}.folder-editor__more{margin-top:6px;padding:10px 12px;border:1px dashed var(--accent-strong);background:#419fd90f;color:var(--accent-strong);border-radius:10px;font-weight:600;cursor:pointer}.folder-editor__more:hover{background:#419fd924}.folder-editor__empty{padding:16px;color:var(--text-muted);text-align:center}.folder-editor__actions{display:flex;justify-content:flex-end;gap:8px}.dialog-context-menu__layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90}.dialog-context-menu{position:fixed;min-width:200px;background:#fff;border:1px solid var(--border-soft);border-radius:10px;box-shadow:0 12px 28px #1118272e;padding:4px;display:grid;gap:0;z-index:91}.dialog-context-menu__item{background:transparent;border:0;text-align:left;padding:8px 12px;border-radius:6px;font-size:13px;color:var(--text-main);cursor:pointer}.dialog-context-menu__item:hover,.dialog-context-menu__item:focus-visible{background:#419fd91f;outline:none}.dialog-context-menu__divider{height:1px;background:var(--border-soft);margin:4px 6px}.dialog-context-menu__section{padding:4px 12px;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.pane-header__self-profile{margin-left:4px;font-size:18px}.chat-profile__contact{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0;font-size:13px}.chat-profile__contact dt{color:var(--text-muted);font-weight:600}.chat-profile__contact dd{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;word-break:break-word}.chat-profile__copy{font-size:11px;padding:2px 8px}.chat-profile__media-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.chat-profile__media-tab{padding:4px 10px;border-radius:999px;border:1px solid var(--border-soft);background:#fff;font-size:12px;cursor:pointer}.chat-profile__media-tab--active{background:var(--accent);border-color:var(--accent);color:#fff}.chat-profile__media-list{list-style:none;padding:0;margin:0;display:grid;gap:6px;max-height:240px;overflow-y:auto}.chat-profile__media-item{display:block}.chat-profile__media-link{display:grid;gap:2px;width:100%;padding:6px 8px;border-radius:8px;border:0;background:#00000008;font-size:12px;text-align:left;cursor:pointer;color:inherit}.chat-profile__media-link:hover{background:#00000012}.chat-profile__media-meta{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:11px}.chat-profile__media-author{font-weight:600;color:var(--accent-strong)}.chat-profile__media-author--outgoing{color:#2c7c47}.chat-profile__media-empty,.chat-profile__media-hint{font-size:12px;color:var(--text-muted);padding:6px 0}.chat-profile__photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:6px 0}.chat-profile__photo-tile{position:relative;display:block;width:100%;aspect-ratio:1 / 1;border:0;padding:0;margin:0;background:#0000000d;border-radius:6px;overflow:hidden;cursor:pointer}.chat-profile__photo-tile img{width:100%;height:100%;object-fit:cover;display:block}.chat-profile__photo-tile:hover img{opacity:.86}.chat-profile__photo-tile-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--text-muted);font-size:14px}.self-profile__layer{position:fixed;top:0;right:0;bottom:0;left:0;background:#1118276b;z-index:95;display:grid;place-items:center;padding:24px}.self-profile__panel{background:#fff;border-radius:14px;box-shadow:0 24px 48px #11182738;width:min(480px,100%);max-height:min(80vh,600px);overflow-y:auto;padding:16px;display:grid;gap:14px}.self-profile__header{display:flex;justify-content:space-between;align-items:center;font-size:15px}.self-profile__list{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0;font-size:13px}.self-profile__list dt{color:var(--text-muted);font-weight:600}.self-profile__list dd{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;word-break:break-word}.self-profile__bio pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:13px;background:#0000000a;padding:6px 8px;border-radius:8px;width:100%}.self-profile__empty{padding:12px;font-size:13px;color:var(--text-muted);text-align:center}.integrations-card__list{display:grid;gap:12px}.integration-row{border:1px solid var(--border-soft);border-radius:12px;padding:12px;display:grid;gap:10px;background:#fffffff5}.integration-row__head{display:grid;gap:2px}.integration-row__hint{color:var(--text-muted);font-size:12px}.integration-row__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.integration-row__grid label{display:grid;gap:4px;font-size:12px;color:var(--text-muted)}.integration-row__grid label input{font-size:13px}.integration-row__toggle{flex-direction:row;align-items:center;gap:8px;display:flex!important;align-self:end}.integration-row__actions{display:flex;gap:8px;flex-wrap:wrap}.integration-row__model{grid-column:1 / -1}.integration-row__model-row{display:flex;gap:6px;align-items:stretch}.integration-row__model-row input{flex:1}.integration-row__model-list{margin-top:6px;display:grid;gap:6px;padding:8px;border:1px solid var(--border-soft);border-radius:8px;background:#00000005}.integration-row__model-filter{font-size:12px}.integration-row__model-options{display:grid;gap:2px;max-height:220px;overflow-y:auto}.integration-row__model-option{display:flex;flex-direction:column;text-align:left;padding:4px 8px;border-radius:6px;border:0;background:transparent;cursor:pointer;font-size:12px;color:var(--text-main)}.integration-row__model-option em{font-style:normal;color:var(--text-muted);font-size:11px}.integration-row__model-option:hover{background:#0000000d}.integration-row__model-option--active{background:#407ad629}.integration-row__model-more{color:var(--text-muted);font-size:11px;padding:4px 8px}.integration-row__model-manual{margin-top:4px;font-size:12px}.integration-row__model-manual summary{cursor:pointer;color:var(--text-muted)}.integration-row__model-manual input{margin-top:4px;width:100%}.integration-row__secret{-webkit-text-security:disc;text-security:disc;letter-spacing:1px}.integration-row__test{margin-top:6px;padding:6px 8px;border-radius:6px;font-size:12px;word-break:break-word}.integration-row__test--ok{background:#2ecc711f;color:#1e8449}.integration-row__test--fail{background:#c0392b1f;color:#c0392b}.composer__bot-keyboard{position:relative;display:grid;gap:4px;padding:6px 26px 6px 8px;margin-bottom:6px;background:#439fd914;border-radius:8px}.composer__bot-keyboard-hint{font-size:11px;color:var(--text-muted);padding:0 4px 2px}.composer__bot-keyboard-row{display:flex;flex-wrap:wrap;gap:4px}.composer__bot-keyboard-button{flex:1 1 auto;min-height:28px;padding:4px 10px;font-size:12px;background:#fff;border:1px solid rgba(67,159,217,.42);border-radius:6px;color:var(--accent-strong);font-weight:500;cursor:pointer}.composer__bot-keyboard-button:hover{background:#439fd91f}.composer__bot-keyboard-close{position:absolute;top:4px;right:4px;width:18px;height:18px;padding:0;background:transparent;border:0;color:var(--text-muted);cursor:pointer;font-size:14px;line-height:1}.composer__bot-keyboard-close:hover{color:var(--text-main)}.account-access{margin-top:6px}.account-access__list{display:grid;gap:4px;margin-top:4px}.account-access__item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;background:#00000008;font-size:13px}.account-access__item small{color:var(--text-muted);font-size:11px}.integrations-card__warning{display:grid;gap:4px;padding:10px 12px;border-radius:10px;background:#d99f411f;color:var(--text-main);font-size:12px}.integrations-card__warning code{font-family:monospace;background:#0000000f;padding:1px 4px;border-radius:4px}.moderation-card__queue{display:grid;gap:10px}.moderation-item{border:1px solid var(--border-soft);border-left:4px solid var(--accent);border-radius:10px;padding:10px 12px;display:grid;gap:6px;background:#fffffff5}.moderation-item__head{display:flex;gap:12px;font-size:11px;color:var(--text-muted)}.moderation-item__text{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:13px;background:#0000000a;padding:6px 8px;border-radius:6px}.moderation-item__reasons{display:flex;flex-wrap:wrap;gap:4px}.moderation-item__reason{font-size:11px;font-weight:600;background:#d99f4129;color:#8a5a16;padding:2px 8px;border-radius:999px}.moderation-item__actions{display:flex;gap:8px}.moderation-card__triggers,.moderation-card__add{display:grid;gap:6px;margin-top:10px}.moderation-card__add{display:flex;gap:6px}.moderation-card__hint{font-size:11px;color:var(--text-muted)}.moderation-card__chips{display:flex;flex-wrap:wrap;gap:4px}.moderation-card__chip{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#0000000f;font-size:12px}.moderation-card__chip button{background:transparent;border:0;font-size:14px;cursor:pointer;color:var(--text-muted);padding:0}.support-activity{display:grid;gap:12px}.support-activity__filters{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.support-activity__metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}.support-activity__metric{background:#419fd914;padding:8px 12px;border-radius:10px;display:grid;gap:2px}.support-activity__metric-label{font-size:11px;color:var(--text-muted)}.support-activity__metric-value{font-size:18px;font-weight:700;color:var(--accent-strong)}.composer__translate{display:inline-flex;align-items:stretch;gap:2px;border-radius:8px;background:#0000000a;padding:2px}.composer__translate-lang{border:0;background:transparent;font-size:11px;font-weight:700;padding:0 4px;border-radius:6px;cursor:pointer}.composer__translate-trigger{font-size:14px}.message-bubble__keyboard{display:grid;gap:4px;margin-top:6px}.message-bubble__keyboard-row{display:flex;gap:4px;flex-wrap:wrap}.message-bubble__keyboard-button{flex:1 1 0;min-width:0;padding:6px 10px;border-radius:8px;border:1px solid rgba(65,159,217,.4);background:#419fd914;color:var(--accent-strong);font-size:12px;font-weight:600;cursor:pointer;text-align:center;text-decoration:none;white-space:normal;word-break:break-word}.message-bubble__keyboard-button:hover{background:#419fd929}.message-bubble__keyboard-button--link{background:#419fd90a}.message-bubble__keyboard-button--disabled{background:#0000000a;color:var(--text-muted);border-color:var(--border-soft);cursor:not-allowed}.chat-tools__topics{display:flex;flex-wrap:wrap;gap:4px;padding:4px 0;border-bottom:1px dashed var(--border-soft);max-height:120px;overflow-y:auto}.chat-tools__topics-empty{padding:4px 0;font-size:12px;color:var(--text-muted)}.chat-tools__topic{padding:4px 10px;border-radius:999px;border:1px solid var(--border-soft);background:#fff;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}.chat-tools__topic--active{background:var(--accent);color:#fff;border-color:var(--accent)}.chat-tools__topic-unread{background:#0000002e;color:#fff;padding:0 6px;border-radius:999px;font-size:11px;font-weight:700;min-width:16px;text-align:center}.chat-tools__topic--active .chat-tools__topic-unread{background:#ffffff52}.bot-toasts{position:fixed;bottom:16px;right:16px;display:grid;gap:8px;z-index:92;max-width:360px}.bot-toasts__item{background:#fff;border:1px solid var(--border-soft);border-radius:10px;padding:10px 30px 10px 12px;box-shadow:0 10px 24px #11182729;position:relative;font-size:13px;display:grid;gap:6px}.bot-toasts__item--alert{border-left:4px solid var(--accent)}.bot-toasts__link{font-weight:600;font-size:12px;color:var(--accent-strong)}.bot-toasts__dismiss{position:absolute;top:4px;right:4px;background:transparent;border:0;font-size:16px;cursor:pointer;padding:4px 8px}.pending-call{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:96}.pending-call__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#11182752;border:0;padding:0;cursor:pointer}.pending-call__panel{position:relative;background:#fff;border-radius:14px;box-shadow:0 20px 48px #1118273d;padding:22px 24px 18px;min-width:280px;max-width:360px;display:grid;gap:14px;text-align:center}.pending-call__title{font-size:16px;font-weight:600}.pending-call__progress,.pending-call__outcome{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;color:var(--text);min-height:24px}.pending-call__outcome-icon{font-size:18px}.pending-call__spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(51,144,236,.25);border-top-color:#3390ec;border-radius:50%;animation:pending-call-spin .8s linear infinite}@keyframes pending-call-spin{to{transform:rotate(360deg)}}.pending-call__close{justify-self:center;min-width:110px}.dialog-list__tabs{display:flex;gap:8px;padding:0 18px 12px;overflow-x:auto;scrollbar-width:none}.dialog-list__tabs::-webkit-scrollbar{display:none}.dialog-list__tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(208,220,230,.96);border-radius:999px;background:#f5f9fcf2;color:var(--text-muted);padding:8px 13px;font-size:13px;white-space:nowrap}.dialog-list__tab--active{background:linear-gradient(180deg,#419fd9,#54aee5);border-color:transparent;color:#fff}.dialog-list__tab-state{font-size:12px;opacity:.8}.dialog-list__items{list-style:none;margin:0;padding:0 0 12px;overflow:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain}.dialog-list__virtual>div{padding-bottom:4px}.dialog-list__spacer{list-style:none;pointer-events:none}.dialog-list__item{width:100%;border:0;background:transparent;text-align:left;display:flex;gap:10px;align-items:center;border-radius:10px;padding:6px 8px;position:relative}.dialog-list__item:hover{background:#e9f2fab8}.dialog-list__item--draggable{cursor:grab}.dialog-list__item--draggable:active{cursor:grabbing}.dialog-list__item--dragging{opacity:.45}.dialog-list__item--drop-above:before,.dialog-list__item--drop-below:after{content:"";position:absolute;left:6px;right:6px;height:2px;border-radius:2px;background:#3390ec;pointer-events:none}.dialog-list__item--drop-above:before{top:-1px}.dialog-list__item--drop-below:after{bottom:-1px}.dialog-list__item--active{background:#3390ec;color:#fff}.dialog-list__item--active .dialog-list__preview,.dialog-list__item--active .dialog-list__time,.dialog-list__item--active .dialog-list__title{color:inherit}.dialog-list__meta{min-width:0;flex:1 1 auto;display:grid;gap:2px;align-content:center}.dialog-list__row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center;min-width:0}.dialog-list__title,.dialog-list__preview{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-list__preview-row{min-width:0;display:flex;align-items:baseline;gap:4px}.dialog-list__preview{flex:1 1 auto;min-width:0;display:block}.dialog-list__ticks{flex:0 0 auto;font-size:12px;font-weight:700;letter-spacing:-1px;line-height:1}.dialog-list__ticks--sent{color:var(--text-muted)}.dialog-list__ticks--read{color:var(--accent-strong)}.dialog-list__item--active .dialog-list__ticks--sent,.dialog-list__item--active .dialog-list__ticks--read{color:#ffffffeb}.dialog-list__tags{display:flex;flex-wrap:nowrap;overflow:hidden;gap:4px;margin-top:2px}.dialog-list__tag{display:inline-flex;align-items:center;min-width:0;max-width:100%;padding:1px 6px;border-radius:4px;background:#3390ec1a;color:var(--accent-strong);font-size:10px;font-weight:600}.dialog-list__tag--more{background:#f0f5f9eb;color:var(--text-muted)}.dialog-list__preview--draft{color:#d0632a;font-weight:600}.dialog-list__time,.dialog-list__badge{white-space:nowrap}.dialog-list__side{display:grid;justify-items:end;gap:3px;min-width:0}.dialog-list__title{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--text-main)}.dialog-list__title-text{min-width:0;overflow:hidden;text-overflow:ellipsis}.dialog-list__pin{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1}.dialog-list__empty{padding:24px 16px;color:var(--text-muted);font-size:14px}.dialog-list__skeleton{display:grid;gap:6px;padding:4px 8px}.dialog-list__skeleton-row{display:flex;align-items:center;gap:10px;padding:6px 8px}.dialog-list__skeleton-avatar{width:40px;height:40px;flex:0 0 auto;border-radius:50%;background:linear-gradient(90deg,#e9eef3,#f2f5f8,#e9eef3);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite}.dialog-list__skeleton-lines{flex:1 1 auto;display:grid;gap:6px;min-width:0}.dialog-list__skeleton-line{height:10px;border-radius:4px;background:linear-gradient(90deg,#e9eef3,#f2f5f8,#e9eef3);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite}.dialog-list__skeleton-line--title{width:55%}.dialog-list__skeleton-line--preview{width:80%;height:8px}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.dialog-list__badge{flex:0 0 auto;min-width:18px;height:18px;display:inline-grid;place-items:center;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;line-height:1}.dialog-list__item--active .dialog-list__badge{background:#ffffff3d}.dialog-list__badge--dot{min-width:12px;width:12px;height:12px;padding:0;background:var(--accent-strong, #2f80ed)}.dialog-list__item--active .dialog-list__badge--dot{background:#fff}.dialog-list__item--active .dialog-list__preview--draft{color:#ffffffeb}.dialog-list__item--active .dialog-list__tag{background:#ffffff38;color:#fff}.dialog-preview{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:grid;place-items:center}.dialog-preview__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#1522304d}.dialog-preview__panel{position:relative;width:min(440px,calc(100vw - 24px));max-height:min(78vh,720px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:12px;border-radius:12px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-xl)}.dialog-preview__header,.dialog-preview__footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.dialog-preview__summary{display:flex;align-items:center;gap:12px}.dialog-preview__summary strong{display:block;margin-bottom:4px}.dialog-preview__summary span{color:var(--text-muted);font-size:13px}.dialog-preview__avatar{width:32px;height:32px;flex:0 0 auto;font-size:12px}.dialog-preview__body{min-height:0;overflow:auto}.dialog-preview__messages{display:grid;gap:10px}.dialog-preview__message{display:grid;gap:2px;padding:6px 10px;border-radius:10px 10px 10px 4px;background:#fff;border:1px solid var(--border-soft);font-size:13px}.dialog-preview__message--outgoing{border-radius:10px 10px 4px;background:#e3f5d8}.dialog-preview__message strong{font-size:12px;color:var(--accent-strong)}.dialog-preview__message span,.dialog-preview__empty{line-height:1.45;white-space:pre-wrap;word-break:break-word}.dialog-preview__empty{color:var(--text-muted);font-size:14px}.chat-view{min-height:0;display:flex;flex-direction:column;padding:10px 14px 12px;gap:8px;position:relative}.chat-view__translator-fab{position:fixed;top:50%;right:8px;transform:translateY(-50%);width:38px;height:38px;border-radius:999px;border:1px solid var(--border-soft);background:#fff;color:var(--accent-strong);font-size:14px;font-weight:700;letter-spacing:.02em;box-shadow:0 6px 18px #2d4c6b2e;cursor:grab;display:inline-grid;place-items:center;z-index:40;touch-action:none;-webkit-user-select:none;user-select:none;transition:background-color .12s ease}.chat-view__translator-fab:active{cursor:grabbing}.chat-view__translator-fab:hover{background:var(--accent-soft)}.chat-view__translator-fab--active{background:var(--accent);color:#fff;border-color:var(--accent)}.chat-view__body{flex:1 1 0}.chat-tools{display:grid;gap:6px}.chat-tools__actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.chat-tools__button{justify-self:start}.chat-tools__button--payment{border-color:#439fd98c;color:var(--accent-strong);font-weight:600}.chat-tools__button--payment-on{background:var(--accent-strong);color:#fff;border-color:transparent}.chat-tools__button--close{margin-left:auto;color:var(--text-muted)}.chat-tools__button--close:hover{color:var(--text-main)}.chat-tools__button--active{border-color:#439fd96b;background:#e8f4fbeb;color:var(--accent-strong)}.chat-tools__button--translate{border-color:#439fd98c;color:var(--accent-strong);font-weight:600}.chat-tools__button--translate-on{border-color:transparent;background:var(--accent-strong);color:#fff}.chat-tools__button--translate-on:hover{background:var(--accent-strong);filter:brightness(1.05)}.chat-tools__translate-status{display:inline-flex;align-items:center;margin-left:8px;font-size:12px;white-space:nowrap;opacity:.85}.chat-pinned-message{display:flex;align-items:center;gap:8px;margin:-10px -14px 0;padding:4px 12px;background:#fff;border:0;border-bottom:1px solid var(--border-soft);border-left:3px solid var(--accent);min-height:36px}.chat-pinned-message__summary{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:8px;text-align:left;border:0;background:transparent;padding:0;cursor:pointer}.chat-pinned-message__summary:hover{opacity:.85}.chat-pinned-message__label{flex:0 0 auto;color:var(--accent-strong);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.chat-pinned-message__text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--text-main)}.chat-pinned-message__text strong{color:var(--accent-strong);font-weight:600;margin-right:4px}.chat-pinned-message__close{flex:0 0 auto;width:24px;height:24px;border:0;background:transparent;border-radius:4px;color:var(--text-muted);font-size:18px;line-height:1;cursor:pointer}.chat-pinned-message__close:hover{background:#0000000f;color:var(--text-main)}.chat-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid var(--border-soft)}.chat-search__scopes{display:inline-flex;gap:8px}.chat-search__scope{border:1px solid rgba(208,220,230,.96);border-radius:999px;background:#f4f9fcfa;color:var(--text-muted);padding:8px 11px;font-size:12px;font-weight:700}.chat-search__scope--active{background:#e8f4fbf5;color:var(--accent-strong);border-color:#439fd96b}.chat-search-results{display:grid;gap:6px;padding:8px;border-radius:8px;background:#f4f7fa;border:1px solid var(--border-soft)}.chat-search-results__topline{display:flex;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:12px}.chat-search-results__list{display:grid;gap:8px;max-height:180px;overflow:auto}.chat-search-results__item{display:grid;gap:4px;text-align:left;border:0;border-radius:14px;background:#fffffff5;padding:10px 12px}.chat-search-results__item strong,.chat-search-results__item span,.chat-search-results__empty{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-search-results__empty{color:var(--text-muted);font-size:13px}.chat-inspector,.deleted-store,.trust-center{display:grid;gap:6px;padding:8px;border-radius:10px;background:#f4f7fa;border:1px solid var(--border-soft)}.chat-inspector__header,.deleted-store__header,.trust-center__header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.chat-inspector__header strong,.deleted-store__header strong,.trust-center__header strong{display:block;margin-bottom:4px}.chat-inspector__header span,.deleted-store__header span,.trust-center__header span{color:var(--text-muted);font-size:13px;line-height:1.4}.chat-inspector__controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.chat-inspector__tags{display:flex;flex-wrap:wrap;gap:8px}.chat-inspector__tag{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#e6eff7e6;color:var(--accent-strong);font-size:12px;font-weight:700}.chat-inspector__error{color:var(--danger-text);font-size:13px}.deleted-store__empty{color:var(--text-muted);font-size:13px}.deleted-store__list{display:grid;gap:10px;max-height:320px;overflow:auto}.deleted-store__item{display:grid;gap:8px;padding:12px;border-radius:16px;background:#fffffff5;border:1px solid rgba(220,229,236,.94)}.deleted-store__meta{display:grid;gap:3px}.deleted-store__meta span{color:var(--text-muted);font-size:12px}.deleted-store__content{min-width:0}.trust-center--below-composer{max-height:40vh;overflow-y:auto;border-top:1px solid var(--border-soft);padding-top:8px;margin-top:4px}.chat-view__folders{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:4px 6px;font-size:12px;color:var(--text-muted)}.chat-view__folders-label{font-weight:600}.chat-view__folder-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#419fd924;color:var(--accent-strong);font-weight:600;font-size:11px;line-height:1.4}.chat-view__folder-chip--archive{background:#7d7d7d29;color:var(--text-muted)}.chat-view__folder-chip--main{background:#7d7d7d1a;color:var(--text-muted)}.trust-center__create-toggle{display:flex;justify-content:flex-end}.trust-center__create-toggle-button{font-weight:600}.trust-center__create-toggle-button--active{background:#419fd929}.trust-center__create{display:grid;gap:10px;padding:12px;border-radius:16px;background:#fffffff5;border:1px solid rgba(221,229,236,.94)}.trust-center__create-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.trust-center__create textarea,.trust-center__create select,.trust-center__filters input{width:100%}.trust-center__hint{align-self:center;color:var(--text-muted);font-size:12px;line-height:1.4}.trust-center__selected{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;background:#f0f6faeb}.trust-center__selected span,.trust-center__create-actions span,.trust-center__item-copy span,.trust-center__empty{color:var(--text-muted);font-size:13px;line-height:1.4}.trust-center__create-actions{display:flex;justify-content:space-between;gap:12px;align-items:center}.trust-center__filters,.trust-center__list{display:grid;gap:10px}.trust-center__item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border-radius:16px;background:#fffffff5;border:1px solid rgba(221,229,236,.94)}.trust-center__item-copy{min-width:0;display:grid;gap:4px}.trust-center__item-copy strong{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.trust-center__badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#e4eef6f2;color:var(--accent-strong);font-size:11px;font-weight:700}.trust-center__support{color:var(--text-primary);font-size:12px}.trust-center__item-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.chat-view__body{min-height:0;overflow:auto;padding:6px 2px;overscroll-behavior:contain;position:relative;transition:background-color .12s ease,box-shadow .12s ease}.chat-view__body--drop{background-color:#3390ec0f;box-shadow:inset 0 0 0 2px #3390ec66;border-radius:8px}.chat-view__empty{min-height:100%;display:grid;place-items:center;padding:24px;text-align:center;color:var(--text-muted);font-size:13px}.chat-view__skeleton{display:grid;gap:6px;padding:10px 6px}.chat-view__skeleton-bubble{height:30px;border-radius:12px 12px 12px 4px;background:linear-gradient(90deg,#e9eef3,#f2f5f8,#e9eef3);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite;justify-self:start}.chat-view__skeleton-bubble--outgoing{justify-self:end;border-radius:12px 12px 4px;background:linear-gradient(90deg,#e1edd6,#ebf3df,#e1edd6);background-size:200% 100%}.message-list{width:100%}.message-list__item{display:grid;min-width:0;padding-bottom:4px}.message-list__top{display:grid;gap:4px;padding-bottom:4px}.message-list__spacer{pointer-events:none}.message-list__status{justify-self:center;color:var(--text-muted);font-size:12px;padding:2px 10px}.message-list__date-badge{justify-self:center;position:sticky;top:0;z-index:1;background:#edf4f9eb;color:var(--text-muted);padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;box-shadow:var(--shadow-sm)}.message-bubble{justify-self:start;max-width:min(70%,560px);background:var(--bubble-in);border:1px solid var(--border-soft);border-radius:12px 12px 12px 4px;padding:6px 10px 4px;font-size:13px;box-shadow:var(--shadow-sm)}.message-bubble--deleted{border-style:dashed;background:#f4f7faf5}.message-bubble--outgoing{justify-self:end;background:var(--bubble-out);border-radius:12px 12px 4px}.message-bubble--outgoing.message-bubble--deleted{background:#ecf3e6f2}.message-bubble__deleted-label{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;color:var(--danger-text);font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.message-bubble__content--deleted{opacity:.72}.message-bubble__text{white-space:pre-wrap;word-break:break-word;line-height:1.4}.message-bubble__text a{color:var(--accent-strong);text-decoration:underline}.message-code{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.92em;padding:0 4px;border-radius:4px;background:#0000000f}.message-pre{margin:4px 0;padding:6px 8px;border-radius:6px;background:#0000000f;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.92em;white-space:pre-wrap;overflow-x:auto}.message-spoiler{background:currentColor;color:transparent;border-radius:3px;transition:background-color .12s ease,color .12s ease;cursor:pointer}.message-spoiler:hover{background:transparent;color:inherit}.message-mention{color:var(--accent-strong)}.message-bubble__translation{margin-top:6px;padding:6px 8px;border-left:2px solid var(--accent);border-radius:4px;background:#3390ec14}.message-bubble__translation-label{font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}.message-bubble__translation-clear{border:0;background:transparent;color:var(--accent-strong);font-size:10px;text-transform:lowercase;letter-spacing:0;cursor:pointer;padding:0}.message-bubble__reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.message-bubble__reaction{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;border:1px solid var(--border-soft);background:#fff;font-size:12px;cursor:pointer;line-height:1.2}.message-bubble__reaction--chosen{background:#3390ec24;border-color:#3390ec80;color:var(--accent-strong)}.message-bubble__reaction-count{font-weight:600}.message-bubble__reaction-picker{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;padding:4px 6px;border-radius:8px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-sm)}.message-bubble__reaction-picker-item{border:0;background:transparent;font-size:18px;line-height:1;padding:2px 4px;border-radius:6px;cursor:pointer;transition:background-color .1s ease}.message-bubble__reaction-picker-item:hover{background:#3390ec1a}.composer__schedule{display:flex;align-items:center;gap:8px;padding:0 6px 4px;font-size:11px;color:var(--text-muted)}.composer__schedule-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.composer__schedule-input{width:auto;padding:2px 6px;font-size:11px;border-radius:6px}.composer__schedule-clear{border:0;background:transparent;color:var(--accent-strong);font-size:11px;cursor:pointer;padding:0}.message-media{display:grid;gap:10px}.message-media__photo-link{display:block}.message-media__photo{display:block;width:min(100%,380px);max-height:420px;object-fit:cover;border-radius:16px;box-shadow:var(--shadow-sm)}.message-media__video,.message-media__audio{display:block;width:min(100%,380px);border-radius:16px;box-shadow:var(--shadow-sm);background:#e2eaf1eb}.message-media__audio{width:min(100%,320px)}.message-media__placeholder{display:grid;place-items:center;min-height:160px;min-width:220px;border-radius:16px;background:#e9f0f5eb;color:var(--text-muted);font-size:14px}.message-media--document{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:min(100%,420px);min-width:0}.message-media--sticker{background:transparent;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.message-media__sticker-image{width:192px;max-width:192px;height:auto;object-fit:contain;background:transparent;border-radius:4px}.message-media__sticker-glyph{font-size:96px;line-height:1;padding:12px 16px}.message-media__document-thumb,.message-media__document-icon{width:56px;height:56px;border-radius:14px;flex:0 0 auto}.message-media__document-thumb{display:block;object-fit:cover}.message-media__document-icon{display:grid;place-items:center;background:#e3ecf4eb;color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.08em}.message-media__document-body{min-width:0;display:grid;gap:4px}.message-media__document-name,.message-media__document-caption{word-break:break-word}.message-media__document-name{font-weight:700}.message-media__document-hint{color:var(--text-muted);font-size:12px}.message-media__document-caption{line-height:1.45}.message-media__action{align-self:center;white-space:nowrap;color:var(--accent-strong);font-size:13px;font-weight:700}.message-media__action--muted{color:var(--text-muted)}.message-bubble__sender{margin-bottom:6px;color:var(--accent-strong);font-size:12px;font-weight:700}.message-bubble__forwarded{display:flex;align-items:flex-start;gap:6px;margin-bottom:6px;padding:4px 8px 4px 6px;border-left:2px solid var(--accent-strong);background:#419fd914;border-radius:6px;font-size:12px;line-height:1.3;color:var(--text-muted);min-width:0}.message-bubble__forwarded-icon{color:var(--accent-strong);font-weight:700;flex:0 0 auto}.message-bubble__forwarded-copy{min-width:0;display:inline-flex;flex-wrap:wrap;align-items:baseline;column-gap:4px}.message-bubble__forwarded-label{color:var(--text-muted)}.message-bubble__forwarded strong{color:var(--accent-strong);font-weight:700;word-break:break-word}.message-bubble__forwarded em{font-style:normal;color:var(--text-muted)}.message-bubble__internal-author{display:flex;justify-content:flex-end;margin-bottom:6px;color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.02em}.message-bubble__internal-author--deleted{justify-content:flex-start;margin-bottom:0;color:var(--accent-strong)}.message-bubble__pin-indicator{display:inline-flex;align-self:flex-start;margin-bottom:6px;padding:4px 8px;border-radius:999px;background:#439fd91f;color:var(--accent-strong);font-size:11px;font-weight:700}.message-bubble__meta{display:flex;justify-content:flex-end;gap:4px;margin-top:2px;font-size:11px}.message-bubble__footer{display:grid;gap:4px;margin-top:4px}.message-bubble__actions{display:flex;flex-wrap:wrap;gap:8px;opacity:0;transition:opacity .12s ease}.message-bubble:hover .message-bubble__actions{opacity:1}.message-bubble__action{border:0;padding:0;background:transparent;color:var(--text-muted);font-size:11px;font-weight:600}.message-bubble__action--danger{color:var(--danger-text)}.message-reply{width:100%;display:grid;gap:2px;margin-bottom:4px;padding:4px 8px;border:0;border-left:2px solid var(--accent);border-radius:6px;background:#3390ec14;text-align:left;font-size:12px}.message-reply strong,.message-reply span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-bubble__status{letter-spacing:-.04em}.message-bubble__status--read{color:var(--accent-strong)}.composer{display:grid;gap:6px;background:#fff;border:1px solid var(--border-soft);border-radius:12px;padding:6px;box-shadow:var(--shadow-sm)}.composer__context{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px;border-radius:18px;background:#f0f6faeb}.composer__context-copy{min-width:0;display:grid;gap:4px}.composer__context-copy strong,.composer__context-copy span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__context-copy span{color:var(--text-muted);font-size:13px}.composer__forward{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border-radius:18px;border-left:3px solid var(--accent-strong);background:#dcebf8d1}.composer__forward-actions{display:inline-flex;align-items:center;gap:6px}.composer__forward-pick{padding:6px 12px;font-size:12px;font-weight:600;border-radius:999px;white-space:nowrap}.composer__forward-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--accent-strong);color:#fff;font-size:16px;line-height:1}.composer__forward-copy{min-width:0;display:grid;gap:2px}.composer__forward-copy strong,.composer__forward-copy span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__forward-copy strong{font-size:13px;color:var(--accent-strong)}.composer__forward-copy span{color:var(--text-main);font-size:13px}.composer__forward-hint{font-style:normal;font-size:11px;color:var(--text-muted);white-space:normal!important;overflow:visible!important}.composer__recording{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:18px;background:#ffeeeeeb;border:1px solid rgba(230,190,190,.86)}.composer__recording-copy{min-width:0;display:grid;gap:4px}.composer__recording-copy strong,.composer__recording-copy span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__recording-copy span{color:var(--danger-text);font-size:13px}.composer__recording-button{min-width:132px}.composer__row{display:flex;align-items:center;gap:4px}.composer__row>.composer__textarea{flex:1 1 auto;min-width:0;margin:0 4px}.composer__row>.composer__send{flex:0 0 auto}.composer input{border:0;background:transparent;box-shadow:none;padding:6px 10px;font-size:14px}.composer__textarea{border:0;background:transparent;box-shadow:none;padding:6px 10px;font:inherit;font-size:14px;line-height:1.4;color:var(--text-main);outline:none;resize:none;min-height:32px;max-height:140px;box-sizing:border-box}@supports (field-sizing: content){.composer__textarea{field-sizing:content}}.composer__textarea::placeholder{color:var(--text-faint)}.composer input:focus{box-shadow:none}.composer__file-input{display:none}.composer__attach,.composer__record,.composer__schedule-toggle,.composer__emoji-trigger{width:32px;height:32px;flex:0 0 auto}.composer-picker-anchor{position:relative;flex:0 0 auto}.composer-picker{position:absolute;bottom:calc(100% + 8px);left:0;z-index:40;width:min(360px,calc(100vw - 32px));max-height:420px;background:var(--surface, #fff);border:1px solid rgba(0,0,0,.08);border-radius:14px;box-shadow:0 18px 40px #0000002e;display:flex;flex-direction:column;overflow:hidden}.composer-picker__tabs{display:flex;border-bottom:1px solid rgba(0,0,0,.07)}.composer-picker__tab{flex:1 1 50%;padding:8px 12px;background:transparent;border:0;cursor:pointer;font-size:14px;color:#000000a6}.composer-picker__tab--active{color:#000000eb;background:#0000000a;font-weight:600}.composer-picker__body{flex:1 1 auto;overflow-y:auto;padding:8px}.composer-picker__category-title{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#00000080;padding:6px 4px 4px}.composer-picker__grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}.composer-picker__grid--stickers{grid-template-columns:repeat(4,1fr)}.composer-picker__emoji,.composer-picker__sticker{border:0;background:transparent;padding:4px;cursor:pointer;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;border-radius:8px;aspect-ratio:1 / 1}.composer-picker__emoji:hover,.composer-picker__sticker:hover{background:#0000000f}.composer-picker__sticker img{max-width:100%;max-height:100%;object-fit:contain}.composer-picker__sticker-emoji{font-size:28px}.composer-picker__empty{padding:24px 12px;text-align:center;color:#0000008c;font-size:13px}.composer__record{color:var(--danger-text)}.composer__record--active{background:#ffeeeefa;border-color:#e2bbbbe6}.composer__attachment{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px;border-radius:18px;background:#f0f6faeb}.composer__attachment-preview,.composer__attachment-icon{width:52px;height:52px;border-radius:14px}.composer__attachment-preview{display:block;object-fit:cover}.composer__attachment-icon{display:grid;place-items:center;background:#dde8f1f5;color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.08em}.composer__attachment-meta{min-width:0;display:grid;gap:4px}.composer__attachment-meta strong,.composer__attachment-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__attachment-meta span{color:var(--text-muted);font-size:13px}.forward-sheet{display:grid;gap:6px;padding:8px;border-radius:10px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-sm)}.forward-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:110;display:flex;align-items:center;justify-content:center}.forward-modal__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;padding:0;background:#0f172a73;cursor:pointer}.forward-modal__panel{position:relative;width:min(420px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 64px));display:grid;gap:12px;padding:16px;border-radius:16px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-lg, 0 12px 32px rgba(15, 23, 42, .2));overflow:hidden}.forward-modal__panel .forward-sheet__list{max-height:380px}.forward-modal__empty{padding:14px;color:var(--text-muted);font-size:13px;text-align:center}.forward-sheet__search{padding:8px 12px;border-bottom:1px solid var(--border-soft)}.forward-sheet__search input{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--border-soft);font-size:14px}.forward-sheet__more{margin:4px;padding:10px 12px;border:1px dashed var(--accent-strong);background:#419fd90f;color:var(--accent-strong);border-radius:10px;font-weight:600;cursor:pointer}.forward-sheet__more:hover{background:#419fd924}.message-media__lightbox-trigger{margin-top:6px;align-self:flex-start;border:1px solid var(--border-soft);background:#ffffffb3;color:var(--accent-strong);border-radius:999px;padding:3px 10px;font-size:12px;cursor:pointer}.message-media__lightbox-trigger:hover{background:#419fd924}.message-media__voice-meta{font-size:12px;color:var(--text-muted);margin-bottom:4px}.media-lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:flex;align-items:center;justify-content:center}.media-lightbox__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;padding:0;background:#000000c7;cursor:pointer}.media-lightbox__panel{position:relative;z-index:1;display:flex;flex-direction:column;gap:8px;width:min(960px,calc(100vw - 32px));max-height:calc(100vh - 48px);background:#0e0e10;border-radius:12px;padding:12px;box-shadow:0 24px 60px #0000008c}.media-lightbox__header{display:flex;align-items:center;justify-content:space-between;color:#f4f4f5}.media-lightbox__sender{font-weight:600;font-size:13px}.media-lightbox__video{width:100%;max-height:calc(100vh - 160px);background:#000;border-radius:8px}.media-lightbox__caption{color:#d4d4d8;font-size:13px;max-height:80px;overflow:auto}.forward-sheet__header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.forward-sheet__header p{margin:4px 0 0;color:var(--text-muted);font-size:13px}.forward-sheet__list{display:grid;gap:8px;max-height:220px;overflow:auto}.forward-sheet__item{display:grid;gap:4px;text-align:left;border:1px solid rgba(216,226,234,.96);border-radius:16px;background:#fffffff5;padding:10px 12px}.forward-sheet__item strong,.forward-sheet__item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forward-sheet__item span{color:var(--text-muted);font-size:13px}.composer__error{color:var(--danger-text);font-size:13px;padding:0 6px 2px}.composer__send{min-width:124px}.side-card{background:var(--panel-strong);border:1px solid rgba(255,255,255,.72);border-radius:24px;box-shadow:var(--shadow-xl);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);padding:18px}.side-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.side-card__title{margin:0;font-size:18px}.stack-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:14px}.stack-form--compact{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.account-list{display:grid;gap:10px;margin-top:14px}.account-list__item{text-align:left;border:1px solid var(--border-soft);border-radius:16px;background:#f7fafcf5;padding:12px}.account-list__item--active{border-color:#3390ec80;background:var(--accent-soft)}.account-list__meta+.account-list__meta{margin-top:6px}.side-card__empty,.side-card__hint,.side-card__success,.side-card__error{margin-top:14px;font-size:14px}.side-card__hint{color:var(--text-muted)}.side-card__link{margin-top:6px;word-break:break-word}.side-card__success{color:var(--success-text)}.side-card__error{color:var(--danger-text)}.account-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;pointer-events:none}.account-sheet--open{pointer-events:auto}.account-sheet__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#1f2f4247;opacity:0;transition:opacity .16s ease}.account-sheet--open .account-sheet__backdrop{opacity:1}.account-sheet__panel{position:absolute;left:12px;top:12px;bottom:12px;width:min(360px,calc(100vw - 24px));display:grid;grid-template-rows:auto auto 1fr;gap:10px;padding:12px;border-radius:12px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-xl);transform:translate(-12px);opacity:0;transition:transform .16s ease,opacity .16s ease;overflow:hidden}.account-sheet--open .account-sheet__panel{transform:translate(0);opacity:1}.account-sheet__header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.account-sheet__title{margin:0;font-size:16px;font-weight:600}.account-sheet__subtitle{margin:4px 0 0;color:var(--text-muted);font-size:12px;line-height:1.4}.account-sheet__stats{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.account-sheet__stat{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:#eef3f8;color:var(--text-muted);font-size:11px;font-weight:600}.account-sheet__stat--ready{background:#dbf3e0eb;color:var(--success-text)}.account-sheet__stat--attention{background:#fff0f0eb;color:var(--danger-text)}.account-sheet__create{display:grid;gap:10px}.account-sheet__create-copy{display:grid;gap:4px}.account-sheet__create-copy strong{font-size:15px}.account-sheet__create-copy span{color:var(--text-muted);font-size:13px;line-height:1.45}.account-switcher-list{display:grid;gap:6px;overflow:auto;padding-right:4px;min-height:0}.account-switcher-list__item{display:grid;gap:8px;border:1px solid var(--border-soft);border-radius:10px;background:#fff;padding:10px;transition:border-color .12s ease,background-color .12s ease}.account-switcher-list__item:hover{border-color:#3390ec52}.account-switcher-list__item--active{border-color:#3390ec7a;background:#f0f7ff}.account-switcher-list__avatar{width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;color:#fff;font-weight:700;font-size:12px;background:var(--accent)}.account-switcher-list__card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:flex-start}.account-switcher-list__select{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:0;border:0;background:transparent;text-align:left}.account-switcher-list__body{min-width:0;flex:1 1 auto}.account-switcher-list__topline{display:flex;justify-content:space-between;gap:12px;align-items:center}.account-switcher-list__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-switcher-list__meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:5px;color:var(--text-faint);font-size:12px}.account-switcher-list__status{margin-top:4px;color:var(--text-muted);font-size:13px;line-height:1.45}.account-switcher-list__badge{flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#3390ec24;color:var(--accent-strong);font-size:12px;font-weight:700}.account-switcher-list__badge--ready{background:#dbf3e0f2;color:var(--success-text)}.account-switcher-list__badge--pending{background:#e8f3fff2;color:var(--accent-strong)}.account-switcher-list__badge--error{background:#ffececf2;color:var(--danger-text)}.account-switcher-list__badge--idle{background:#eef3f7f2;color:var(--text-muted)}.account-switcher-list__action{margin-top:8px;color:var(--accent-strong);font-size:12px;font-weight:700}.account-switcher-list__controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.account-switcher-list__control{border:1px solid var(--border-soft);border-radius:6px;background:#fff;color:var(--text-muted);padding:4px 8px;font-size:11px;font-weight:600}.account-switcher-list__control--danger{color:var(--danger-text);background:#fff2f2fa;border-color:#e2bbbbe6}.account-inline-form,.account-delete-confirm{display:grid;gap:10px;padding:14px;border-radius:16px;background:#f1f7fce6;border:1px solid rgba(219,229,238,.92)}.account-inline-form__label{font-size:12px;font-weight:700;color:var(--text-muted)}.account-inline-form__actions,.account-delete-confirm__actions{display:flex;gap:10px;flex-wrap:wrap}.account-delete-confirm__copy{display:grid;gap:4px}.account-delete-confirm__copy strong{font-size:14px}.account-delete-confirm__copy span{color:var(--text-muted);font-size:13px;line-height:1.45}.account-delete-confirm__button{background:#ffededfa;border-color:#dfa4a4cc;color:var(--danger-text)}.account-sheet__empty{padding:18px;border-radius:18px;background:#f0f6fbf2;color:var(--text-muted);line-height:1.45}.site-access{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:linear-gradient(180deg,#eef5fb,#f7fafc 60%,#eef3f8)}.site-access--loading{min-height:100dvh}.site-access__card{width:min(380px,100%);display:grid;gap:14px;padding:24px 22px;border-radius:12px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-xl)}.site-access__hero{text-align:center}.site-access__brand{width:44px;height:44px;display:grid;place-items:center;margin:0 auto 10px;border-radius:10px;font-size:14px;font-weight:700;letter-spacing:.06em;color:#fff;background:var(--accent)}.site-access__title{margin:0;font-size:20px;font-weight:600;line-height:1.2}.site-access__subtitle{margin:6px auto 0;max-width:320px;color:var(--text-muted);font-size:13px;line-height:1.5}.site-access__form{display:grid;gap:8px}.site-access__actions{display:flex;justify-content:center;margin-top:4px}.settings-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;pointer-events:none}.settings-sheet--open{pointer-events:auto}.settings-sheet__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#12253852;opacity:0;transition:opacity .14s ease}.settings-sheet--open .settings-sheet__backdrop{opacity:1}.settings-sheet__panel{position:absolute;top:12px;right:12px;bottom:12px;left:12px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;padding:14px;border-radius:12px;background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-xl);transform:translateY(8px);opacity:0;transition:opacity .16s ease,transform .16s ease}.settings-sheet--open .settings-sheet__panel{transform:translateY(0);opacity:1}.settings-sheet__header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.settings-sheet__title{margin:0;font-size:18px;font-weight:600}.settings-sheet__subtitle{margin:4px 0 0;color:var(--text-muted);font-size:13px;line-height:1.5}.settings-sheet__grid{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-right:4px}.settings-card{display:grid;gap:8px;align-content:start;padding:12px;border-radius:10px;background:#fff;border:1px solid var(--border-soft)}.settings-card--wide{grid-column:1 / -1}.settings-card__header{display:grid;gap:4px}.settings-card__title{margin:0;font-size:14px;font-weight:600}.settings-card__subtitle{margin:0;color:var(--text-muted);line-height:1.4;font-size:12px}.settings-form{display:grid;gap:8px}.settings-actions{display:flex;gap:6px;flex-wrap:wrap}.settings-actions--compact{align-items:end}.settings-users,.settings-audit{display:grid;gap:6px}.settings-user,.settings-audit__item{display:grid;gap:6px;padding:10px;border-radius:8px;background:#f7fafc;border:1px solid var(--border-soft)}.settings-user__topline,.settings-audit__topline{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.settings-user__meta,.settings-audit__meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--text-muted);font-size:12px}.settings-audit__error{color:#c0392b;font-weight:600}.settings-audit__raw{margin-top:4px;font-size:11px}.settings-audit__raw pre{max-height:180px;overflow:auto;padding:6px 8px;background:#0000000a;border-radius:6px;white-space:pre-wrap;word-break:break-word}.settings-user__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.auth-screen{min-height:0;min-width:0;display:grid;justify-items:center;align-content:start;padding:16px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.auth-screen__card{width:min(460px,100%);max-width:100%;background:#fff;border:1px solid var(--border-soft);border-radius:12px;padding:20px 22px;box-shadow:var(--shadow-xl)}.auth-screen__meta{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-bottom:12px}.auth-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600}.auth-chip--account,.auth-chip--subtle,.auth-chip--idle{background:#eef3f7f2;color:var(--text-muted)}.auth-chip--pending{background:#e8f3fff2;color:var(--accent-strong)}.auth-chip--ready{background:#dbf3e0f2;color:var(--success-text)}.auth-chip--error{background:#ffececf2;color:var(--danger-text)}.auth-screen__hero{text-align:center}.auth-screen__brand{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 12px;border-radius:50%;color:#fff;font-size:22px;background:var(--accent)}.auth-screen__title{margin:0;font-size:20px;font-weight:600;line-height:1.2}.auth-screen__subtitle{margin:6px auto 0;max-width:380px;color:var(--text-muted);font-size:13px;line-height:1.5}.auth-screen__actions{display:flex;justify-content:center;gap:8px;margin-top:14px;flex-wrap:wrap}.auth-progress{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:14px}.auth-progress__step{display:grid;gap:8px;justify-items:center;color:var(--text-faint)}.auth-progress__dot{width:12px;height:12px;border-radius:50%;background:#d4dfe8f5;box-shadow:inset 0 0 0 3px #fffffff2}.auth-progress__label{font-size:11px;font-weight:700;text-align:center}.auth-progress__step--current{color:var(--accent-strong)}.auth-progress__step--current .auth-progress__dot{background:var(--accent)}.auth-progress__step--done{color:var(--success-text)}.auth-progress__step--done .auth-progress__dot{background:#4bb96b}.auth-screen__guide{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f4f7fa;border:1px solid var(--border-soft)}.auth-screen__guide-title{display:block;margin:0;font-size:13px;font-weight:600}.auth-screen__guide-text{margin:4px 0 0;color:var(--text-muted);line-height:1.45;font-size:12px}.auth-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:22px;align-items:end}.auth-form--double{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.auth-field{display:grid;gap:7px;min-width:0}.auth-field__label{color:var(--text-muted);font-size:12px;font-weight:700}.auth-field__hint{margin-top:-2px;font-size:12px;color:var(--text-muted)}.auth-screen__linkbox{margin-top:22px;padding:14px 16px;border-radius:18px;background:#eff6fcf2;text-align:center;word-break:break-word;overflow-wrap:anywhere}.auth-screen__linktitle{margin-bottom:8px;font-size:14px;font-weight:700}.auth-screen__linkhint{margin:0 0 14px;color:var(--text-muted);font-size:13px;line-height:1.45}.auth-qr{display:inline-flex;padding:10px;margin-bottom:14px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px #16324f14;max-width:100%}.auth-qr__image{width:min(240px,calc(100vw - 168px));max-width:100%;height:auto;display:block;border-radius:12px}.auth-qr__placeholder,.auth-qr__error{margin-bottom:14px;color:var(--text-muted);font-size:13px}.auth-screen__linkactions{display:flex;justify-content:center;gap:10px;margin-top:14px;flex-wrap:wrap}a{color:var(--accent-strong)}@media(max-width:1320px){.workspace-frame,.workspace-frame--client{grid-template-columns:320px minmax(0,1fr)}}@media(max-width:980px){.app-shell{padding:12px;height:auto;min-height:100dvh;overflow:visible}.workspace-frame,.workspace-frame--client{grid-template-columns:1fr;height:auto;min-height:auto}.workspace-frame__resizer{display:none}.dialogs-pane,.chat-pane{min-height:0;height:calc(100dvh - 24px)}.dialog-list__layout{grid-template-columns:104px minmax(0,1fr)}}@media(max-width:640px){.workspace-frame,.workspace-frame--client{position:relative;overflow:hidden}.workspace-frame__resizer{display:none}.dialogs-pane,.chat-pane{height:calc(100dvh - 24px)}.dialogs-pane--mobile-hidden,.chat-pane{display:none}.chat-pane--mobile-active{display:grid}.pane-header,.chat-view,.side-card,.auth-screen{padding-left:14px;padding-right:14px}.toolbar-actions{flex-direction:column}.dialog-list__layout,.dialog-list__layout--single{grid-template-columns:1fr;padding-left:10px}.dialog-list__folders{grid-auto-flow:column;grid-auto-columns:minmax(120px,1fr);overflow-x:auto;overflow-y:hidden;padding-right:4px}.chat-inspector__controls,.trust-center__create-row,.trust-center__item,.trust-center__selected{grid-template-columns:1fr}.trust-center__create-actions{flex-direction:column;align-items:stretch}.icon-button--back,.icon-button--mobile-only{display:grid}.stack-form,.stack-form--compact,.composer,.auth-form,.auth-form--double{grid-template-columns:1fr}.composer__row{flex-wrap:wrap}.composer__row>.composer__send{flex:1 0 100%}.message-media__photo{width:100%}.message-media--document{grid-template-columns:auto minmax(0,1fr)}.message-media__action{grid-column:1 / -1}.message-bubble{max-width:90%}.account-sheet__panel{left:12px;right:12px;top:12px;bottom:12px;width:auto;border-radius:24px}.settings-sheet__panel{top:12px;right:12px;bottom:12px;left:12px;padding:16px;border-radius:24px}.settings-sheet__grid,.settings-user__row{grid-template-columns:1fr}.auth-screen__card{padding:26px 20px;border-radius:24px}.auth-screen__title{font-size:24px}.auth-progress{grid-template-columns:repeat(4,minmax(0,1fr))}}.chat-profile{position:absolute;top:0;right:0;bottom:0;width:320px;display:grid;grid-template-rows:auto auto auto auto;align-content:start;gap:8px;background:#fff;border-left:1px solid var(--border-soft);box-shadow:-6px 0 18px #2d4c6b14;padding:8px 12px 16px;overflow-y:auto;overscroll-behavior:contain;z-index:4;animation:chat-profile-slide-in .18s ease}@keyframes chat-profile-slide-in{0%{transform:translate(12px);opacity:0}to{transform:translate(0);opacity:1}}.chat-profile__header{display:flex;justify-content:flex-end}.chat-profile__hero{display:grid;justify-items:center;gap:4px;padding:4px 8px 12px}.chat-profile__avatar{position:relative;width:96px;height:96px;display:grid;place-items:center;border-radius:50%;overflow:hidden;color:#fff;font-size:28px;font-weight:700;letter-spacing:.02em;background:linear-gradient(135deg,#58a8f7,#3f8fe8);margin-bottom:4px}.chat-profile__title{margin:0;font-size:17px;font-weight:600;text-align:center;word-break:break-word;line-height:1.25}.chat-profile__status{margin:0;color:var(--text-muted);font-size:12px;text-align:center}.chat-profile__badges{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:4px}.chat-profile__badge{padding:2px 8px;border-radius:999px;background:#3390ec1a;color:var(--accent-strong);font-size:11px;font-weight:600}.chat-profile__section{display:grid;gap:6px;padding:10px 4px 4px;border-top:1px solid var(--border-soft)}.chat-profile__section-title{color:var(--text-muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.chat-profile__actions{display:flex;flex-wrap:wrap;gap:6px}.chat-profile__tags{display:flex;flex-wrap:wrap;gap:4px;min-height:24px;padding:2px 0}.chat-profile__tag{display:inline-flex;align-items:center;gap:4px;padding:3px 4px 3px 8px;border-radius:6px;background:#3390ec1a;color:var(--accent-strong);font-size:12px;font-weight:600}.chat-profile__tag-remove{border:0;background:transparent;color:inherit;padding:0 4px;font-size:14px;line-height:1;opacity:.65;cursor:pointer}.chat-profile__tag-remove:hover{opacity:1}.chat-profile__tags-empty{color:var(--text-faint);font-size:12px}.chat-profile__tag-input{font-size:13px}.chat-profile__error{color:var(--danger-text);font-size:12px}.chat-profile__save{display:flex;gap:6px}@media(max-width:640px){.chat-profile{width:100%;border-left:0}}.quick-switcher{position:fixed;top:0;right:0;bottom:0;left:0;z-index:220;display:grid;place-items:start center;padding-top:14vh;animation:quick-switcher-fade .12s ease-out}@keyframes quick-switcher-fade{0%{opacity:0}to{opacity:1}}.quick-switcher__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#1522306b}.quick-switcher__panel{position:relative;z-index:1;width:min(520px,calc(100vw - 24px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:68vh;background:#fff;border:1px solid var(--border-soft);border-radius:12px;box-shadow:0 24px 60px #00000040;overflow:hidden}.quick-switcher__input-wrap{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border-soft)}.quick-switcher__icon{color:var(--text-faint);font-size:14px}.quick-switcher__input{flex:1 1 auto;border:0;padding:4px 0;background:transparent;font-size:15px;outline:none}.quick-switcher__hint{padding:2px 8px;border:1px solid var(--border-soft);border-radius:4px;font-size:11px;color:var(--text-muted);font-family:ui-monospace,monospace}.quick-switcher__results{overflow-y:auto;padding:4px}.quick-switcher__row{width:100%;display:flex;gap:10px;align-items:center;padding:6px 8px;border:0;background:transparent;border-radius:8px;text-align:left;cursor:pointer}.quick-switcher__row--active{background:#3390ec1a}.quick-switcher__avatar{position:relative;width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;overflow:hidden;color:#fff;font-size:12px;font-weight:700;background:linear-gradient(135deg,#58a8f7,#3f8fe8)}.quick-switcher__meta{min-width:0;flex:1 1 auto;display:grid;gap:2px}.quick-switcher__title{font-size:13px;font-weight:600;color:var(--text-main);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-switcher__mark{background:#3390ec38;color:var(--accent-strong);padding:0;border-radius:2px}.quick-switcher__preview{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-switcher__badge{flex:0 0 auto;min-width:18px;height:18px;display:inline-grid;place-items:center;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:700}.quick-switcher__empty{padding:18px;text-align:center;color:var(--text-muted);font-size:13px}.quick-switcher__footer{padding:6px 12px;border-top:1px solid var(--border-soft);background:#f4f7fa;color:var(--text-muted);font-size:11px}.quick-switcher__footer kbd{padding:1px 5px;border:1px solid var(--border-soft);border-radius:4px;background:#fff;font-family:ui-monospace,monospace;font-size:10px}@media(hover:none)and (pointer:coarse){.icon-button{width:36px;height:36px;font-size:17px}.button{padding:8px 14px;min-height:36px;font-size:14px}.dialog-list__item{padding:8px;min-height:56px}.dialog-list__avatar{width:44px;height:44px}.composer__attach,.composer__record,.composer__send{min-height:36px}.message-bubble__actions{opacity:1}.message-bubble__action{padding:4px 8px;font-size:12px}.account-switcher-list__control{padding:6px 10px;min-height:32px;font-size:12px}}.translator-modal{gap:10px}.translator-modal__row{display:flex;gap:12px;align-items:center}.translator-modal__label{display:inline-flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-muted)}.translator-modal__label select{min-width:180px}.translator-modal__input{width:100%;resize:vertical;font:inherit;padding:10px 12px;border:1px solid var(--border-soft);border-radius:10px;background:#fff;outline:none}.translator-modal__input:focus{border-color:#3390eca6;box-shadow:0 0 0 4px #3390ec24}.translator-modal__actions{display:flex;gap:8px;justify-content:flex-end}.translator-modal__error{color:var(--danger-text);font-size:13px;background:var(--danger-soft);padding:8px 10px;border-radius:8px}.translator-modal__result{background:#f7fafc;border:1px solid var(--border-soft);border-radius:10px;padding:10px 12px;white-space:pre-wrap;word-break:break-word;max-height:220px;overflow-y:auto}.error-boundary{display:grid;place-items:center;height:100%;padding:24px}.error-boundary__card{background:#fff;border:1px solid var(--border-soft);border-radius:14px;box-shadow:var(--shadow-xl);padding:24px;display:grid;gap:14px;max-width:460px;width:100%}.error-boundary__card h1{margin:0;font-size:18px}.error-boundary__message{margin:0;color:var(--text-muted);font-size:13px;white-space:pre-wrap;word-break:break-word}.error-boundary__actions{display:flex;gap:8px;justify-content:flex-end}.error-boundary__actions button{width:auto;border:1px solid var(--border-soft);background:#fff;color:var(--text-main);border-radius:8px;padding:7px 14px;font-size:13px}.error-boundary__actions button:hover{background:var(--accent-soft)}
