:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#16191f;background:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--surface: #fff;--surface-muted: #f0f2f5;--conversation: #f0f3f6;--text: #16191f;--muted: #7a818f;--border: #e9edf2;--accent: #087aff;--accent-soft: #e3f0ff;--outgoing: #d3eaff;--icon: #747b89;--shadow: 0 2px 8px #192e4d07}[data-theme=dark]{color-scheme:dark;--surface: #1b2028;--surface-muted: #272e38;--conversation: #141a22;--text: #edf1f7;--muted: #9ba6b7;--border: #2b323e;--accent: #368fff;--accent-soft: #223e60;--outgoing: #234c70;--icon: #a3afc0;--shadow: 0 2px 8px #00000012}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{overflow:hidden;background:var(--surface);color:var(--text)}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:not-allowed}a{color:var(--accent);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button,a{touch-action:manipulation}svg{flex-shrink:0;stroke-width:1.8}button,input,textarea,a{-webkit-user-drag:none}input,textarea{color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[type=search]::-webkit-search-cancel-button{display:none}button{transition:background-color .13s ease,color .13s ease,opacity .13s ease}button:disabled{opacity:.55}button:disabled:hover{cursor:not-allowed}::selection{background:#b8d8ff;color:#122f51}.application{display:flex;flex-direction:column;height:100dvh;width:100%;overflow:hidden}.app-shell{display:grid;grid-template-columns:72px 320px minmax(0,1fr);flex:1;min-height:0}.demo-banner{min-height:30px;background:#fff7e5;color:#876322;border-bottom:1px solid #f4e8c9;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 12px;font-size:11px;line-height:16px}.demo-banner strong{font-weight:600}.demo-banner-detail{color:#a18751;margin-left:9px}.demo-banner-dot{height:5px;width:5px;border-radius:50%;background:#dba539}[data-theme=dark] .demo-banner{background:#332d20;border-color:#49402c;color:#ebc777}[data-theme=dark] .demo-banner-detail{color:#bca575}.rail{border-right:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;align-items:center;min-height:0;padding:17px 10px 16px}.brand{display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;margin:0 0 25px}.brand .max-mark{width:34px;height:34px}.brand span{color:var(--text);font-size:14px;letter-spacing:-.4px;font-weight:800}.rail-main,.rail-bottom{display:flex;flex-direction:column;gap:15px;align-items:center}.rail-bottom{margin-top:auto;gap:22px}.rail-button{width:52px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:12px;color:#656c7a}.rail-button svg{width:25px;height:25px;stroke-width:1.9}.rail-button:hover{background:var(--surface-muted)}.rail-button.active{background:#d7eaff;color:#087aff}[data-theme=dark] .rail-button.active{background:#223e60;color:#69acff}.operator-button{display:flex;padding:0;border-radius:50%}.avatar{border-radius:50%;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:600;line-height:1;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.sidebar{min-width:0;min-height:0;background:var(--surface);display:flex;flex-direction:column;border-right:1px solid var(--border)}.sidebar-heading{height:66px;padding:0 17px 0 19px;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}.sidebar h1{margin:0;font-size:25px;font-weight:750;letter-spacing:-.75px}.sidebar-heading-actions{display:flex;gap:4px}.new-chat-button{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:var(--surface-muted);color:#5f6775}.new-chat-button:hover{background:var(--accent-soft);color:var(--accent)}.sidebar-search{margin:0 16px 11px;height:39px;min-height:39px;display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:11px;background:var(--surface-muted);color:var(--muted)}.sidebar-search input{width:100%;min-width:0;border:0;outline:none;background:none;font-size:14px;height:100%}.sidebar-search:focus-within{box-shadow:inset 0 0 0 1.5px #87bdff}.sidebar-search input:focus-visible{outline:none}.clear-search{display:flex;padding:2px;color:var(--muted)}.max-folders{padding:0 16px 10px;flex:0 0 auto}.max-folders-label{display:block;color:var(--muted);font-size:10px;margin:0 0 6px}.folder-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:1px 1px 3px}.folder-tabs button{flex:0 0 auto;font-size:12px;padding:7px 10px;border-radius:9px;color:var(--muted);background:var(--surface-muted)}.folder-tabs button:hover,.folder-tabs button.selected{color:var(--accent);background:var(--accent-soft)}.folder-notice{flex:0 0 auto;color:var(--muted);font-size:10px;line-height:15px;margin:-2px 17px 10px}.chat-filters{display:flex;gap:9px;padding:0 16px 12px;flex-shrink:0}.chat-filters button{font-size:13px;height:31px;line-height:1;padding:0 13px;border-radius:12px;color:#656c7b;white-space:nowrap}.chat-filters button.selected{color:#087aff;background:var(--accent-soft);font-weight:600}.chat-filters button:hover:not(.selected){background:var(--surface-muted)}.chat-list{flex:1;min-height:0;overflow-y:auto;padding:0 5px 8px;scrollbar-width:thin;scrollbar-color:#d5dbe3 transparent}.chat-row{width:100%;display:flex;align-items:center;gap:11px;min-height:75px;padding:11px 12px;text-align:left;border-radius:10px;position:relative}.chat-row:hover{background:var(--surface-muted)}.chat-row:after{content:"";position:absolute;height:1px;bottom:0;left:66px;right:12px;background:var(--border)}.chat-row.selected{color:#fff;background:#087aff}.chat-row.selected:after{background:transparent}.chat-row-content{flex:1;min-width:0}.chat-row-top{display:flex;align-items:baseline;gap:5px;margin-bottom:5px;min-width:0}.chat-title{font-size:14px;font-weight:650;letter-spacing:-.17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-row-top time{color:var(--muted);font-size:10px;margin-left:auto;white-space:nowrap;flex-shrink:0}.chat-row-bottom{display:flex;align-items:center;gap:7px;min-width:0}.chat-preview{color:#656c77;font-size:12px;line-height:17px;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.chat-row-markers{margin-left:auto;color:#b1b6c1;flex-shrink:0;display:flex;align-items:center}.unread-count{min-width:20px;height:20px;padding:0 5px;border-radius:12px;background:#087aff;color:#fff;font-size:11px;font-weight:650;display:flex;align-items:center;justify-content:center}.chat-row.selected .chat-preview,.chat-row.selected time,.chat-row.selected .chat-row-markers{color:#fff}.chat-row.selected .avatar{background-color:#ffffff30!important}.chat-row.selected .unread-count{color:#087aff;background:#fff}.chat-muted{color:var(--muted)}[data-theme=dark] .chat-preview,[data-theme=dark] .chat-filters button:not(.selected){color:var(--muted)}.connection-footer{display:flex;align-items:center;gap:7px;flex-shrink:0;height:44px;padding:0 18px;border-top:1px solid var(--border);text-align:left;font-size:11px;color:#747c89}.connection-footer span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.connection-footer:hover{background:var(--surface-muted)}.connection-notice{display:flex;align-items:center;flex-shrink:0;gap:11px;padding:12px 22px;color:#835d22;background:#fff8e9;border-bottom:1px solid #f2e7cf}.connection-notice>div{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}.connection-notice strong{font-size:12px;line-height:16px;font-weight:600}.connection-notice span{font-size:11px;line-height:16px}.connection-notice button{padding:7px 10px;border-radius:7px;background:#f8eacb;font-size:11px;line-height:16px;font-weight:600;white-space:nowrap}.connection-notice button:hover{background:#f2dfb3}.connection-notice.compact{display:grid;grid-template-columns:19px minmax(0,1fr);gap:9px;padding:13px 16px;border-top:1px solid #f2e7cf;border-bottom:0}.connection-notice.compact>svg{align-self:start;margin-top:2px}.connection-notice.compact button{justify-self:start;grid-column:2;padding:4px 0;background:none;color:var(--accent)}[data-theme=dark] .connection-notice{color:#e6c27b;background:#332d20;border-color:#49402c}[data-theme=dark] .connection-notice button{color:#e6c27b;background:#4a3d24}[data-theme=dark] .connection-notice.compact button{color:var(--accent);background:none}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0;background:#a6aebb}.status-dot.online{background:#36c45b}.status-dot.offline{background:#c3ad77}.sidebar-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;gap:11px;text-align:center;justify-content:center;color:var(--muted);padding:24px;font-size:12px}.sidebar-empty strong{color:var(--text);font-size:14px;font-weight:600}.sidebar-empty svg{color:#b3bfcd}.text-button{color:var(--accent);font-size:13px;padding:5px}.conversation{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--conversation);overflow:hidden}.conversation-header{height:72px;flex:0 0 auto;display:flex;align-items:center;gap:13px;background:var(--surface);border-bottom:1px solid var(--border);padding:0 22px}.conversation-heading{min-width:0}.conversation-heading h2{margin:0 0 5px;font-size:18px;line-height:21px;font-weight:700;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-heading>span{font-size:12px;color:var(--muted)}.conversation-header-actions{display:flex;align-items:center;gap:13px;margin-left:auto}.icon-button{width:36px;height:36px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;padding:5px;color:var(--icon);flex-shrink:0}.icon-button:hover,.icon-button.is-open{background:var(--surface-muted);color:var(--accent)}.header-menu-control{position:relative}.header-menu,.attachment-menu{z-index:8;position:absolute;min-width:205px;border-radius:12px;padding:6px;background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 32px #1c304a1a}.header-menu{right:0;top:43px}.header-menu button,.attachment-menu button{display:flex;width:100%;align-items:center;gap:11px;border-radius:7px;padding:11px 10px;text-align:left;font-size:13px;white-space:nowrap}.header-menu button:hover,.attachment-menu button:hover{background:var(--surface-muted)}.header-menu svg,.attachment-menu svg{color:var(--icon)}.conversation-search{display:flex;align-items:center;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--border);height:49px;gap:12px;padding:0 20px;color:var(--muted)}.conversation-search input{flex:1;width:0;border:0;background:none;font-size:13px;height:100%;outline:none}.conversation-search>span{font-size:12px}.messages-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#cbd3dd transparent;overscroll-behavior:contain}.messages-content{min-height:100%;padding:19px 24px 20px}.date-separator{display:flex;justify-content:center;margin:1px 0 25px}.date-separator span{padding:6px 14px;background:#ffffffa6;border-radius:20px;color:#727c8c;font-size:12px;line-height:16px}[data-theme=dark] .date-separator span{background:#293340a6;color:#a5b2c5}.message-row{display:flex;align-items:center;gap:7px;margin-bottom:13px}.message-row.outgoing{flex-direction:row-reverse}.message-stack{max-width:min(83%,690px);min-width:70px}.message-row.outgoing .message-stack{display:flex;flex-direction:column;align-items:flex-end}.message-bubble{position:relative;border-radius:15px;padding:12px 13px 9px;background:var(--surface);box-shadow:var(--shadow);max-width:100%;overflow-wrap:anywhere}.message-bubble:after{content:"";display:block;clear:both}.outgoing .message-bubble{background:var(--outgoing)}.message-text{display:inline;font-size:15px;line-height:22px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.message-text a{text-decoration:underline;text-underline-offset:2px}.message-meta{float:right;display:inline-flex;align-items:center;justify-content:flex-end;height:15px;margin:7px 0 0 16px;gap:4px;color:#87919f;font-size:10px;line-height:12px;white-space:nowrap}.message-meta svg{color:var(--accent)}.message-bubble.failed .message-meta svg{color:#d56565}.message-sender{font-size:12px;font-weight:650;color:var(--accent);margin-bottom:5px}.message-reply{border-left:2px solid var(--accent);border-radius:3px;padding:5px 8px;background:#087aff0a;display:flex;flex-direction:column;margin-bottom:8px;min-width:120px;font-size:12px;gap:3px}.message-reply strong{color:var(--accent);font-size:11px;font-weight:600}.message-reply span{color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.message-actions{display:flex;opacity:0;pointer-events:none;border-radius:15px;padding:3px;background:#ffffffc4;transition:opacity .14s ease}.message-row:hover .message-actions,.message-row:focus-within .message-actions{opacity:1;pointer-events:auto}.message-actions button{display:grid;place-items:center;height:28px;width:28px;color:#7a8a9c;border-radius:50%}.message-actions button:hover{color:var(--accent);background:var(--accent-soft)}.message-forwarded{display:flex;align-items:center;gap:5px;color:var(--accent);font-size:11px;line-height:16px;margin-bottom:6px}.message-forwarded span{overflow-wrap:anywhere}[data-theme=dark] .message-actions{background:#283444}.message-attachments{display:flex;flex-direction:column;gap:7px}.message-attachments+.message-text{display:block;margin-top:9px}.image-attachment{display:block;padding:0;border-radius:11px;max-width:100%;overflow:hidden}.image-attachment img{display:block;width:420px;max-width:100%;max-height:400px;aspect-ratio:5/3;object-fit:cover}.message-bubble.media-only{padding:3px;border-radius:14px}.media-only .message-meta{position:absolute;right:9px;bottom:9px;background:#112b42a6;color:#fff;border-radius:5px;padding:4px 6px;margin:0;height:auto}.media-only .message-meta svg{color:#fff}.file-attachment{display:flex;align-items:center;gap:13px;min-height:54px;width:303px;max-width:100%;color:var(--text)}.file-symbol{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:43px;height:48px;flex-shrink:0;background:#3387da;color:#fff;border-radius:7px 13px 7px 7px}.file-symbol.pdf{background:#f55}.file-symbol>svg{position:absolute;opacity:.16;height:40px;width:35px}.file-symbol>span{position:relative;font-size:10px;font-weight:700}.file-info{display:flex;flex-direction:column;gap:7px;min-width:0}.file-info strong{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-info>span{font-size:12px;color:var(--muted)}.file-download{margin-left:auto;color:var(--muted);opacity:0}.file-attachment:hover .file-download{opacity:1}.video-attachment{width:420px;max-width:100%}.video-attachment video{display:block;width:100%;max-height:360px;border-radius:10px;background:#171b22}.video-attachment>a{display:flex;gap:7px;align-items:center;font-size:12px;margin-top:8px}.video-attachment>a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audio-attachment{max-width:100%;display:flex;flex-direction:column;gap:9px;font-size:12px}.audio-attachment audio{width:290px;max-width:100%}.media-error{width:320px;max-width:100%;height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:var(--surface-muted);color:var(--muted);border-radius:10px;font-size:13px}.media-error>button{color:var(--accent);display:flex;align-items:center;gap:5px;font-size:12px}.upload-state{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin:6px 5px 0}.upload-state progress{width:68px;height:4px;accent-color:var(--accent);border:0;border-radius:3px}.send-error{display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin:6px 4px 0;color:#c55757;font-size:11px;max-width:360px;line-height:16px;text-align:right}.send-error>button{display:flex;align-items:center;gap:4px;color:#c55757;font-size:11px;font-weight:600;padding:1px}.load-history{border-radius:20px;background:var(--surface);color:var(--muted);display:flex;align-items:center;gap:6px;margin:0 auto 20px;padding:8px 15px;font-size:12px}.messages-loading,.no-messages{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;color:var(--muted);gap:13px;font-size:13px}.no-messages strong{font-weight:550;color:var(--text)}.empty-conversation{display:flex;align-items:center;justify-content:center}.empty-conversation h2{margin:19px 0 9px;font-size:20px;font-weight:600}.empty-conversation p{margin:0 0 22px;font-size:13px;color:var(--muted)}.empty-chat-illustration{height:78px;width:78px;display:grid;place-items:center;border-radius:50%;color:#829bb6;background:#dce5ee}.scroll-bottom{position:absolute;bottom:90px;right:25px;display:grid;place-items:center;width:38px;height:38px;background:var(--surface);border:1px solid var(--border);box-shadow:0 3px 13px #142b4a14;border-radius:50%;color:var(--muted);z-index:4}.drop-overlay{position:absolute;inset:72px 0 0;background:#e5f1fff0;border:2px dashed #61a9ff;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#247cdb;pointer-events:none}.drop-overlay strong{font-size:21px;font-weight:600}.drop-overlay span{color:#6087ae;font-size:14px}.composer-area{flex:0 0 auto;padding:12px 16px 15px;position:relative}.composer-shell{background:var(--surface);border-radius:21px;box-shadow:var(--shadow);border:1px solid #e9edf329}.composer-row{min-height:53px;display:flex;align-items:center;gap:8px;padding:6px 7px 6px 11px}.composer-row>textarea{flex:1;min-width:0;font-size:15px;line-height:22px;padding:0;margin:0;resize:none;border:0;outline:none;background:none;max-height:144px;scrollbar-width:thin}.composer-row>textarea:focus-visible{outline:none}.composer-row .icon-button{border-radius:50%;width:34px;height:36px}.send-button{display:flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:50%;background:#087aff;color:#fff;flex-shrink:0;padding:0 2px 0 0}.send-button:hover:not(:disabled){background:#006ae5}.send-button svg{margin-left:-1px}.composer-attachment-control,.emoji-control{position:relative;display:flex;align-items:center}.attachment-menu{bottom:50px;left:-7px}.emoji-picker{position:absolute;bottom:49px;right:-35px;width:208px;padding:9px;display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 32px #1c304a1a;z-index:7}.emoji-picker button{height:40px;width:44px;border-radius:8px;font-size:23px}.emoji-picker button:hover{background:var(--surface-muted)}.reply-preview{display:flex;align-items:center;gap:12px;padding:12px 15px 10px;border-bottom:1px solid var(--border);color:var(--accent)}.reply-preview>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.reply-preview strong{font-size:12px;font-weight:600}.reply-preview span{font-size:12px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply-preview .icon-button{width:27px;height:27px}.attachment-previews{display:flex;gap:9px;overflow-x:auto;padding:11px 12px;border-bottom:1px solid var(--border)}.attachment-preview{display:flex;gap:8px;align-items:center;border-radius:10px;background:var(--surface-muted);padding:6px;flex:0 0 auto;max-width:225px;min-width:145px}.attachment-preview>img,.preview-file-icon{width:39px;height:39px;object-fit:cover;border-radius:6px;flex-shrink:0}.preview-file-icon{color:#629ad1;display:grid;place-items:center;background:#dceafa}.attachment-preview>div:not(.preview-file-icon){min-width:0;display:flex;flex-direction:column;gap:4px}.attachment-preview strong{font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-preview span{font-size:10px;white-space:nowrap;color:var(--muted)}.attachment-preview>button{margin-left:auto;flex-shrink:0;align-self:flex-start;width:19px;height:19px;display:grid;place-items:center;color:var(--muted);padding:0}.composer-error{background:#fff0ed;color:#b85b50;border:1px solid #f8d7d1;border-radius:11px;padding:10px 12px;font-size:12px;line-height:17px;display:flex;gap:8px;margin-bottom:8px}.composer-error button{margin-left:auto;padding:0;align-self:flex-start}.composer-disconnected{text-align:center;font-size:11px;line-height:16px;color:var(--muted);padding:0 10px 10px}.modal{color:var(--text);background:var(--surface);padding:0;border:1px solid var(--border);border-radius:21px;width:min(470px,calc(100vw - 32px));max-height:min(90dvh,850px);box-shadow:0 24px 100px #102a4c33;overflow:auto;scrollbar-width:thin}.modal::backdrop{background:#15233466;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:17px 21px 13px;background:var(--surface);border-bottom:1px solid var(--border)}.modal-header h2{margin:0;font-size:19px;font-weight:650;letter-spacing:-.2px}.modal-header .icon-button{height:31px;width:31px}.forward-content{padding:16px 21px 20px}.forward-preview{display:flex;align-items:flex-start;gap:8px;background:var(--surface-muted);border-left:3px solid var(--accent);border-radius:8px;padding:10px;font-size:12px;line-height:18px}.forward-preview svg{color:var(--accent);margin-top:1px}.forward-preview span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.forward-search{display:flex;align-items:center;gap:8px;padding:0 10px;background:var(--surface-muted);border-radius:9px;height:40px;color:var(--muted);margin:14px 0 8px}.forward-search input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;font-size:13px}.forward-search:focus-within{box-shadow:inset 0 0 0 1.5px var(--accent)}.forward-targets{max-height:min(36dvh,340px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.forward-target{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:9px;padding:8px;font-size:13px}.forward-target>span:not(.avatar){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forward-target:hover,.forward-target.selected{background:var(--accent-soft)}.forward-target>svg{color:var(--accent)}.forward-destination{color:var(--muted);font-size:12px;line-height:18px;margin:12px 0 0;overflow-wrap:anywhere}.forward-destination strong{color:var(--text);font-weight:600}.forward-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:17px}.settings-content{padding:0 23px 23px}.settings-section{padding:22px 0;border-bottom:1px solid var(--border)}.connection-settings-section{scroll-margin-top:68px;outline:none}.settings-section h3{font-size:13px;font-weight:650;margin:0 0 15px}.profile-summary{display:flex;align-items:center;gap:13px;margin-bottom:21px}.profile-summary>div{display:flex;flex-direction:column;gap:6px}.profile-summary strong{font-size:17px;font-weight:650}.profile-summary span:not(.avatar){font-size:12px;color:var(--muted)}.form-label{display:block;font-size:12px;font-weight:550;margin-bottom:8px}.text-input{height:42px;width:100%;font-size:14px;border:1px solid var(--border);background:var(--surface-muted);padding:0 12px;border-radius:10px;outline:none}.text-input:focus{border-color:#8ebfff}.inline-input{display:flex;gap:8px}.inline-input input{min-width:0}.field-hint{margin:8px 0 0;font-size:11px;line-height:16px;color:var(--muted)}.primary-button,.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:41px;padding:10px 15px;border-radius:10px;font-size:13px;line-height:18px;font-weight:550;white-space:nowrap}.primary-button{background:#087aff;color:#fff}.primary-button:hover:not(:disabled){background:#006fe9}.secondary-button{background:var(--surface-muted);color:var(--text)}.secondary-button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}.full-width{width:100%}.theme-section{display:flex;align-items:center;justify-content:space-between}.theme-section h3{margin:0}.theme-options{background:var(--surface-muted);border-radius:10px;padding:4px;display:flex;gap:3px}.theme-options button{display:flex;align-items:center;gap:6px;height:33px;padding:0 10px;border-radius:7px;font-size:11px;color:var(--muted)}.theme-options button.selected{background:var(--surface);color:var(--text);box-shadow:0 1px 5px #2335480c}.account-connection{display:flex;align-items:center;gap:11px;margin-bottom:16px}.account-status-icon{display:grid;place-items:center;height:43px;width:43px;border-radius:12px;color:#8b9bb0;background:var(--surface-muted)}.account-status-icon.connected{color:#28a95b;background:#e9f7ee}.account-connection>div{display:flex;flex-direction:column;gap:6px}.account-connection strong{font-size:13px;font-weight:600}.account-connection span:not(.account-status-icon){font-size:11px;color:var(--muted)}.admin-form>p{font-size:12px;line-height:18px;color:var(--muted);margin:0 0 15px}.admin-form .secondary-button,.two-factor-form .primary-button{margin-top:10px}.auth-note{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:17px}.preview-explanation{display:flex;gap:13px;background:var(--surface-muted);border-radius:12px;padding:16px}.preview-explanation>svg{color:#8297b2}.preview-explanation strong{font-size:13px;font-weight:600}.preview-explanation p{margin:7px 0 0;font-size:12px;line-height:18px;color:var(--muted)}.qr-section{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;margin-bottom:17px}.qr-frame{background:#fff;padding:12px;border-radius:14px;border:1px solid var(--border);margin-bottom:5px}.qr-frame img{display:block;width:186px;height:186px;object-fit:contain}.qr-section>strong{font-size:15px;font-weight:600}.qr-section>p{margin:0;font-size:12px;line-height:18px}.qr-section>span{font-size:11px;color:var(--muted)}.qr-awaiting{display:flex;align-items:center;justify-content:center;gap:7px;margin:12px 0 0;font-size:11px;color:var(--muted)}.qr-expired{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 14px;margin-bottom:16px;border-radius:12px;background:var(--surface-muted);text-align:center}.qr-expired svg{color:var(--muted)}.qr-expired strong{font-size:15px;font-weight:600}.qr-expired p{margin:0;font-size:12px;line-height:18px;color:var(--muted)}.auth-waiting{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:25px 10px;color:var(--muted);font-size:13px}.logout-button{display:flex;align-items:center;gap:10px;margin-top:19px;font-size:12px;color:#c56c6b;padding:6px 0}.form-error{font-size:12px;line-height:18px;color:#bd5858;background:#fff0ed;border-radius:9px;padding:10px 12px;margin-top:12px}[data-theme=dark] .form-error,[data-theme=dark] .composer-error{background:#482c2d;color:#f7abab;border-color:#5d3535}.new-chat-form{padding:25px}.new-chat-icon{width:56px;height:56px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;border-radius:50%;margin:0 auto 20px}.new-chat-form>p:not(.field-hint){font-size:13px;line-height:20px;color:var(--muted);margin:0 0 22px;text-align:center}.new-chat-form>.primary-button{margin-top:20px}.image-lightbox{width:min(1000px,calc(100vw - 32px))}.lightbox-image{display:block;max-height:70dvh;object-fit:contain;width:100%;background:var(--conversation)}.lightbox-footer{display:flex;align-items:center;gap:9px;padding:13px 18px}.lightbox-footer>span{margin-right:auto;color:var(--muted);font-size:12px}.lightbox-footer .secondary-button{font-size:12px;min-height:35px;padding:7px 10px}.login-screen{height:100dvh;overflow:auto;display:grid;place-items:center;background:var(--conversation);padding:28px 18px}.login-card{width:370px;max-width:100%;padding:34px 30px 25px;border-radius:24px;background:var(--surface);box-shadow:0 12px 60px #1832500c;text-align:center;border:1px solid var(--border)}.login-card>.max-mark{width:49px;height:49px}.login-card>h1{font-size:23px;margin:18px 0 10px;letter-spacing:-.5px;font-weight:700}.login-card>p{font-size:13px;line-height:20px;color:var(--muted);margin:0 0 23px}.login-card form{text-align:left}.login-card .text-input{margin-bottom:17px}.login-card .primary-button{margin:2px 0 0}.login-card .form-error{margin:-2px 0 15px}.login-footnote{font-size:10px;display:block;margin-top:23px;color:var(--muted)}.login-demo-note{font-size:11px;background:#fff6dd;color:#8b6d2f;border-radius:8px;margin-bottom:20px;padding:9px}.boot-screen{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:var(--muted);padding:24px;font-size:13px;text-align:center}.boot-screen strong{color:var(--text);font-weight:600;font-size:18px}.boot-screen p{max-width:500px;line-height:20px;margin:0}.workspace-error{position:fixed;z-index:35;bottom:20px;left:50%;transform:translate(-50%);display:flex;align-items:flex-start;gap:15px;background:#fff0ee;border:1px solid #f6d4cf;color:#b35951;border-radius:13px;padding:13px 15px;max-width:min(560px,calc(100vw - 30px));width:max-content;box-shadow:0 6px 30px #6f301022;font-size:12px;line-height:18px}.workspace-error>button{padding:0;display:flex}.toast{position:fixed;z-index:60;left:50%;bottom:26px;transform:translate(-50%);padding:11px 17px;border-radius:12px;background:#263545eb;color:#fff;font-size:12px;text-align:center;max-width:calc(100vw - 32px);box-shadow:0 5px 24px #10243a22}.spin{animation:spin .95s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mobile-back,.mobile-settings{display:none}@media(min-width:1500px){.app-shell{grid-template-columns:76px 350px minmax(0,1fr)}.chat-row{min-height:80px}.chat-title{font-size:15px}.chat-preview{font-size:13px}.chat-row-top time{font-size:11px}}@media(max-width:1050px)and (min-width:761px){.app-shell{grid-template-columns:64px 285px minmax(0,1fr)}.rail{padding-left:6px;padding-right:6px}.chat-row{gap:9px;padding-left:9px;padding-right:9px}.chat-row>.avatar{width:40px!important;height:40px!important;font-size:14px!important}.chat-title{font-size:13px}.chat-preview{font-size:11px}.chat-row-top time{font-size:9px}.messages-content{padding-left:16px;padding-right:16px}.conversation-header{padding:0 17px}.conversation-heading h2{font-size:16px}.message-stack{max-width:88%}.message-actions{position:absolute;right:3px}.outgoing .message-actions{right:auto;left:3px}.message-row{position:relative}}@media(max-width:760px){.app-shell{display:block;position:relative}.rail{display:none}.sidebar{position:absolute;inset:0;width:100%;height:100%;border-right:0}.conversation{display:none;position:absolute;inset:0;width:100%;height:100%}.mobile-chat-open .sidebar{display:none}.mobile-chat-open .conversation{display:flex}.mobile-back,.mobile-settings{display:inline-flex}.demo-banner{min-height:29px;font-size:10px;padding:5px 10px}.demo-banner-detail{display:none}.sidebar-heading{height:67px;padding-left:20px;padding-right:16px}.sidebar h1{font-size:28px}.sidebar-search{height:42px;min-height:42px;margin-left:16px;margin-right:16px}.sidebar-search input{font-size:16px}.chat-filters{padding-bottom:13px;gap:9px}.chat-filters button{font-size:14px;height:33px}.chat-list{padding-left:6px;padding-right:6px}.chat-row{min-height:80px;padding:12px 13px;gap:13px}.chat-row>.avatar{width:48px!important;height:48px!important;font-size:16px!important}.chat-title{font-size:15px}.chat-preview{font-size:13px;line-height:18px}.chat-row-top time{font-size:11px}.connection-footer{height:46px;font-size:12px}.conversation>.connection-notice{display:grid;grid-template-columns:19px minmax(0,1fr);align-items:start;gap:7px 10px;padding:10px 16px}.conversation>.connection-notice>svg{margin-top:2px}.conversation>.connection-notice button{grid-column:2;justify-self:start;padding:3px 0;background:none;color:var(--accent)}.conversation-header{height:65px;padding:0 11px 0 5px;gap:9px}.conversation-header>.avatar{width:39px!important;height:39px!important;font-size:13px!important}.conversation-heading h2{font-size:15px;margin-bottom:4px;letter-spacing:-.2px}.conversation-heading>span{font-size:11px}.conversation-header-actions{gap:0}.conversation-header-actions .icon-button{width:30px}.conversation-header-actions svg{width:21px;height:21px}.mobile-back{width:32px;padding:3px}.messages-content{padding:17px 12px 14px}.date-separator{margin-bottom:20px}.date-separator span{font-size:11px;padding:5px 12px}.message-stack{max-width:89%}.message-row{gap:0;position:relative;margin-bottom:10px}.message-bubble{border-radius:14px;padding:10px 12px 8px}.message-text{font-size:14px;line-height:21px}.message-meta{font-size:9px;margin-left:12px}.message-actions{position:absolute;right:0;opacity:0;z-index:4;background:var(--surface)}.outgoing .message-actions{left:0;right:auto}.image-attachment img{width:350px;aspect-ratio:5/3}.file-attachment{width:270px;gap:11px}.file-info strong{font-size:13px}.file-info>span{font-size:11px}.file-symbol{width:38px;height:45px}.file-download{display:none}.message-bubble.media-only{border-radius:13px}.composer-area{padding:7px 8px max(9px,env(safe-area-inset-bottom))}.composer-shell{border-radius:22px}.composer-row{padding-left:6px;gap:5px;min-height:51px}.composer-row>textarea{font-size:16px}.composer-row .icon-button{width:30px}.composer-row .icon-button svg{width:23px;height:23px}.send-button{width:36px;height:36px}.send-button svg{height:21px;width:21px}.scroll-bottom{bottom:78px;right:16px}.modal{width:calc(100vw - 24px);border-radius:18px;max-height:93dvh}.modal-header{padding:16px 18px 12px}.modal-header h2{font-size:18px}.settings-content{padding:0 19px 20px}.settings-section{padding-top:20px;padding-bottom:20px}.text-input{font-size:16px}.theme-options button{font-size:11px;padding:0 8px}.theme-section h3{font-size:12px}.login-card{padding:28px 24px 23px}.drop-overlay{inset:65px 0 0}.conversation-search{padding-left:16px}.conversation-search input{font-size:16px}.toast{bottom:17px}}@media(hover:none){.message-row,.message-row.outgoing{flex-direction:column;align-items:flex-start;gap:2px}.message-row.outgoing{align-items:flex-end}.message-actions,.outgoing .message-actions{position:static;opacity:1;pointer-events:auto;background:transparent}}@media(max-width:420px){.forward-content{padding-left:16px;padding-right:16px}.forward-footer{flex-wrap:wrap}.forward-footer button{flex:1 1 auto}.forward-search input{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}.sidebar-shortcuts{display:flex;gap:6px;padding:0 15px 12px}.sidebar-shortcuts>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:31px;flex:1;border:1px solid var(--border);color:var(--muted);border-radius:8px;font-size:11px}.sidebar-shortcuts>button:hover{color:var(--accent);background:var(--accent-soft)}kbd{font:inherit;display:inline-flex;align-items:center;gap:1px;font-size:10px;color:var(--muted);padding:2px 4px;border-radius:4px;background:var(--surface-muted)}.chat-list[data-virtualized]{overflow-anchor:none}.chat-list[data-virtualized] .chat-row{min-height:80px}.saved-search-modal{width:min(680px,calc(100vw - 32px))}.quick-switcher-modal{width:min(570px,calc(100vw - 32px))}.saved-search-scope{padding:13px 21px 2px;font-size:11px;color:var(--muted);line-height:18px}.saved-search-input{display:flex;align-items:center;gap:10px;margin:13px 18px;padding:0 12px;min-height:44px;background:var(--surface-muted);color:var(--muted);border:1px solid var(--border);border-radius:10px}.saved-search-input input{flex:1;min-width:0;height:42px;outline:none;border:0;color:var(--text);background:transparent;font-size:14px}.saved-search-results{height:min(470px,55dvh);overflow-y:auto;overscroll-behavior:contain}.saved-search-result{padding:13px 42px 13px 21px;display:flex;flex-direction:column;gap:5px;text-align:left;color:var(--text);border-bottom:1px solid var(--border);min-height:105px}.saved-search-result.selected,.quick-chat-row.selected{background:var(--accent-soft)}.search-result-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline;width:100%}.search-result-top strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result-top time{flex-shrink:0;color:var(--muted);font-size:10px}.search-result-sender{font-size:10px;color:var(--accent)}.search-result-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:19px;overflow-wrap:anywhere}.search-result-files{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.search-result-arrow{position:absolute;right:16px;top:calc(50% - 8px);color:var(--muted)}.search-empty{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;min-height:220px;padding:24px;text-align:center;color:var(--muted)}.search-empty strong{font-size:14px;color:var(--text);font-weight:550}.search-empty span{font-size:12px;line-height:19px}.search-feedback{margin:8px 20px}.search-modal-footer{padding:11px 20px;border-top:1px solid var(--border);color:var(--muted);display:flex;align-items:center;justify-content:space-between;min-height:43px;font-size:10px}.quick-chat-results{height:min(420px,55dvh);overflow-y:auto}.quick-chat-row{display:flex;gap:12px;align-items:center;text-align:left;padding:9px 21px;color:var(--text)}.quick-chat-row>span:not(.avatar){flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.quick-chat-row strong{font-size:13px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-chat-row small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-chat-row>svg{color:var(--muted)}.history-context-bar{flex-shrink:0;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 20px;background:var(--accent-soft);border-bottom:1px solid var(--border);color:var(--muted);font-size:11px;line-height:17px}.history-context-bar button{color:var(--accent);font-weight:550;font-size:11px;flex-shrink:0}.messages-content.virtual-messages-content{padding:0}.virtual-message-row{padding:0 24px}.history-loader-row{text-align:center}.messages-scroll[data-virtualized]{overflow-anchor:none}.message-search-focus .message-bubble{outline:2px solid #ffba38;outline-offset:3px}@media(max-width:760px){.sidebar-shortcuts{padding-left:16px;padding-right:16px}.saved-search-modal,.quick-switcher-modal{width:calc(100vw - 20px)}.saved-search-input input{font-size:16px}.virtual-message-row{padding-left:12px;padding-right:12px}.history-context-bar{padding:9px 13px;font-size:10px}.history-context-bar button{max-width:115px}.search-modal-footer{font-size:9px;padding-left:14px;padding-right:14px}}
