.chat-composer .chat-compose-field.chat-compose-surface{display:flex;flex-direction:column;align-items:stretch;min-width:0;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}form.chat-composer .chat-compose-field.chat-compose-surface.chat-compose-expanded{border-radius:0}.chat-compose-input-line{display:flex;align-items:flex-end;width:100%;min-width:0}.chat-composer .chat-compose-surface .chat-file-preview{display:flex;align-items:center;gap:12px;width:auto;min-width:0;margin:0 12px;padding:12px 4px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent;box-sizing:border-box}.chat-attachment-thumb{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;overflow:hidden;border-radius:10px;background:var(--ui-selected);color:var(--ui-accent)}.chat-composer .chat-file-preview>.chat-attachment-thumb{flex:0 0 64px;display:grid}.chat-composer .chat-file-preview .chat-attachment-thumb :is(img,video){width:64px;height:64px;max-width:64px;max-height:64px;object-fit:cover;border-radius:0}.chat-attachment-info{flex:1;min-width:0}.chat-attachment-info strong{font-size:14px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-attachment-info small{font-size:12px}.chat-composer .chat-compose-surface .chat-composer-reply{margin:0 12px;padding:10px 4px;min-width:0;border-radius:0;border-bottom:1px solid var(--ui-border);background:transparent}.chat-composer .chat-compose-surface .chat-composer-reply>button,.chat-composer .chat-compose-surface .chat-file-preview>button{width:32px;height:32px;min-width:32px;flex:0 0 32px;border-radius:50%;background:transparent;color:var(--ui-muted)}.chat-composer .chat-compose-surface .chat-compose-input-line textarea{flex:1;min-width:0;width:0;max-height:180px;min-height:56px;margin:0;padding:16px 6px 16px 18px;border:0;border-radius:0;background:transparent;box-shadow:none;resize:none;line-height:24px;font-size:16px;outline:none;box-sizing:border-box}.chat-composer .chat-compose-surface .chat-compose-input-line>.chat-emoji-toggle{align-self:flex-end;flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:transparent;color:var(--ui-muted)}.chat-composer .chat-attach-toggle,.chat-composer .chat-send{align-self:flex-end;border-radius:50%}.chat-composer .chat-file-preview:has(audio){flex-wrap:wrap}.chat-file-preview:has(audio)>.chat-attachment-thumb{flex-basis:100%;width:100%;height:40px;background:transparent}.chat-file-preview .chat-attachment-thumb audio{width:100%;max-width:100%;height:40px}@media (max-width:600px){.chat-composer .chat-compose-surface .chat-compose-input-line textarea{min-height:48px;padding:12px 4px 12px 14px}.chat-composer .chat-compose-surface .chat-compose-input-line>.chat-emoji-toggle{width:48px;height:48px;flex-basis:48px}.chat-attachment-thumb,.chat-composer .chat-file-preview>.chat-attachment-thumb{width:52px;height:52px;flex-basis:52px}.chat-composer .chat-file-preview .chat-attachment-thumb :is(img,video){width:52px;height:52px}}form.chat-composer.chat-composer-replying{width:calc(100% - 24px);margin:0 12px max(12px,env(safe-area-inset-bottom));padding:6px;border-radius:28px;background:var(--message-in,var(--ui-surface));box-shadow:0 2px 8px #0001}form.chat-composer.chat-composer-replying>.chat-composer-reply{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:0 4px 4px;border:0;border-radius:0;background:transparent;box-sizing:border-box}form.chat-composer.chat-composer-replying .chat-reply-icon{flex:0 0 40px;color:var(--ui-accent);width:40px}form.chat-composer.chat-composer-replying>.chat-composer-reply>span{display:grid;gap:1px;flex:1;min-width:0;border:0;border-left:3px solid var(--ui-accent);border-radius:9px;padding:4px 8px;background:color-mix(in srgb,var(--ui-accent) 9%,transparent)}form.chat-composer.chat-composer-replying .chat-composer-reply strong{font-size:14px;font-weight:500;line-height:19px;color:var(--ui-accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}form.chat-composer.chat-composer-replying .chat-composer-reply small{font-size:13px;line-height:18px;color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}form.chat-composer.chat-composer-replying>.chat-composer-reply>button{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:transparent;color:var(--ui-accent)}form.chat-composer.chat-composer-replying .chat-compose-surface{border:0;border-radius:0;background:transparent;box-shadow:none}form.chat-composer.chat-composer-replying .chat-attach-toggle,form.chat-composer.chat-composer-replying .chat-emoji-toggle{background:transparent;color:var(--ui-muted)}form.chat-composer.chat-composer-replying .chat-send{background:var(--ui-accent);color:var(--on-accent)}form.chat-composer.chat-composer-replying .chat-send:disabled{opacity:1;background:var(--ui-muted);color:var(--ui-surface)}form.chat-composer.chat-composer-replying .chat-compose-input-line textarea{padding-left:0}@media (max-width:600px){form.chat-composer.chat-composer-replying{width:calc(100% - 16px);margin-inline:8px;border-radius:24px}form.chat-composer.chat-composer-replying .chat-reply-icon{flex-basis:32px;width:32px}form.chat-composer.chat-composer-replying .chat-composer-reply small,form.chat-composer.chat-composer-replying .chat-composer-reply strong{font-size:12px}}form.chat-composer:not(.chat-composer-replying) .chat-compose-row{box-sizing:border-box;display:flex;align-items:flex-end;gap:0;padding:4px;border-radius:32px;background:var(--message-in,var(--ui-surface));box-shadow:0 2px 8px #0001}form.chat-composer .chat-compose-field.chat-compose-surface{background:transparent;border:0;box-shadow:none;border-radius:0;outline:none}form.chat-composer .chat-attach-toggle,form.chat-composer .chat-emoji-toggle{background:transparent;color:var(--ui-text)}form.chat-composer .chat-send{background:var(--ui-accent);color:var(--on-accent);width:48px;height:48px;flex-basis:48px;margin:0;border-radius:50%;align-self:flex-end;box-shadow:none}form.chat-composer .chat-compose-input-line textarea{min-height:48px;padding:12px 6px;line-height:24px}form.chat-composer .chat-attach-toggle,form.chat-composer .chat-compose-input-line>.chat-emoji-toggle{width:48px;height:48px;flex-basis:48px}form.chat-composer .chat-send:disabled{opacity:1;background:var(--ui-muted);color:var(--ui-surface)}form.chat-composer.chat-composer-replying .chat-compose-row{padding:0;gap:0;background:transparent;box-shadow:none}.chat-workspace{height:100dvh;display:grid;grid-template-columns:340px minmax(0,1fr);background:var(--ui-bg);color:var(--ui-text);font-size:1rem}.chat-sidebar{min-height:0;overflow:auto;background:var(--ui-surface);border-inline-end:1px solid var(--ui-border)}.chat-sidebar header,.chat-thread>header{display:flex;align-items:center;gap:14px;min-height:76px;padding:16px 20px;background:var(--ui-surface)}.chat-sidebar header h1{font-size:1.375rem;font-weight:600;flex:1}.chat-sidebar header>a{min-height:44px;display:grid;place-items:center}.chat-search{display:flex;align-items:center;gap:10px;margin:0 16px 16px;padding:12px 16px;background:var(--form-surface);border-radius:24px;color:var(--ui-muted)}.chat-search input{min-width:0;width:100%;background:none;border:0;font-size:1rem;color:var(--ui-text)}.chat-conversation{display:flex;gap:12px;padding:14px 16px;margin:0 8px;border-radius:12px;min-width:0}@media (hover:hover) and (pointer:fine){.chat-conversation:hover{background:var(--ui-hover)}}.chat-conversation[aria-current=page]{background:var(--ui-selected)}.chat-avatar{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--ui-selected);color:var(--ui-accent)}.chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-conversation>span:last-child{min-width:0}.chat-conversation p,.chat-conversation span span,.chat-conversation strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-conversation p,.chat-conversation span span{color:var(--ui-muted);margin-top:4px}.chat-thread{display:flex;flex-direction:column;min-height:0;min-width:0}.chat-thread>header h2{font-size:1.125rem;font-weight:600}.chat-thread>header p{color:var(--ui-muted);margin-top:4px}.chat-messages{flex:1;overflow:auto;padding:24px max(24px,calc((100% - 850px) / 2));background:linear-gradient(145deg,var(--ui-bg),var(--ui-selected))}.chat-messages [role=log]{display:flex;flex-direction:column;gap:10px}.chat-composer{background:var(--ui-bg);padding:16px max(24px,calc((100% - 850px) / 2)) max(16px,env(safe-area-inset-bottom))}.chat-composer>div{display:flex;align-items:flex-end;gap:12px}.chat-composer textarea{resize:vertical;min-height:52px;max-height:180px;flex:1;min-width:0;background:var(--ui-surface);color:var(--ui-text);border:0;border-radius:16px;padding:16px;font-size:1rem}.chat-composer button{height:52px;width:52px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--ui-accent);color:var(--on-accent)}.chat-composer button:disabled{opacity:.45}.chat-composer>span{display:block;color:var(--ui-muted);margin-top:8px}.chat-composer [role=alert]{color:var(--ui-danger);margin-bottom:12px}.chat-empty,.chat-welcome{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:32px;text-align:center;color:var(--ui-muted)}.chat-empty h2,.chat-welcome h2{font-size:1.25rem;color:var(--ui-text)}.chat-empty a{color:var(--ui-accent)}.chat-first{text-align:center;color:var(--ui-muted);margin:24px}.chat-back{display:none}.chat-load{display:block;margin:0 auto 20px;padding:12px;color:var(--ui-accent)}.chat-workspace :is(a,button,textarea,input):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}@media (max-width:760px){.chat-workspace{grid-template-columns:1fr}.chat-has-selection .chat-sidebar,.chat-welcome{display:none}.chat-back{display:grid;place-items:center;min-width:44px;min-height:44px}.chat-messages{padding:16px}.chat-composer{padding:12px}.chat-composer>span{display:none}}.chat-thread{background:var(--chat-wallpaper,var(--ui-bg));isolation:isolate}.chat-thread:before{content:"";position:absolute;inset:0;z-index:-1;background:var(--ui-accent);mask:var(--chat-pattern-source) center/420px auto repeat;opacity:var(--chat-pattern-opacity,.125)}.chat-messages{background:none;padding-inline:max(24px,calc((100% - 720px) / 2))}.chat-messages [role=log]{gap:3px}.chat-composer{position:relative;background:none;padding:12px max(24px,calc((100% - 720px) / 2)) max(16px,env(safe-area-inset-bottom))}.chat-composer .chat-compose-row{display:flex;gap:8px}.chat-compose-field{display:flex;align-items:flex-end;flex:1;min-width:0;background:var(--ui-surface);border-radius:12px;box-shadow:0 1px 2px #0002}.chat-composer .chat-compose-field textarea{display:block;flex:1;resize:none;border-radius:0;padding:16px 14px 14px 0;background:transparent;outline:none}.chat-compose-field:focus-within{outline:2px solid var(--ui-accent);outline-offset:2px}.chat-composer .chat-emoji-toggle{width:52px;height:56px;flex-shrink:0;background:transparent;color:var(--ui-muted);border-radius:12px}.chat-composer .chat-send{height:56px;width:56px;box-shadow:0 1px 2px #0002}@media (hover:hover) and (pointer:fine){.chat-composer .chat-send:hover:not(:disabled){background:var(--ui-accent);color:var(--on-accent)}}.chat-composer .chat-emoji-picker{display:grid;grid-template-columns:repeat(6,44px);gap:4px;background:var(--ui-surface);padding:12px;border-radius:16px;position:absolute;bottom:90px;box-shadow:0 4px 24px #0002}.chat-composer .chat-emoji-picker button{width:44px;height:44px;font-size:26px;background:transparent}@media (hover:hover) and (pointer:fine){.chat-composer .chat-emoji-picker button:hover{background:var(--ui-hover)}}@media (max-width:760px){.chat-messages{padding:16px 20px}.chat-composer{padding-inline:12px}}.chat-participants-trigger{min-width:0;flex:1;text-align:start;padding:8px;border-radius:12px}.chat-pinned{display:flex;padding:12px 20px;background:var(--ui-surface);color:var(--ui-accent);border-top:1px solid var(--ui-border)}.chat-pinned>div{display:flex;overflow:auto;gap:16px;min-width:0}.chat-pinned button{display:grid;text-align:start;max-width:360px;min-width:180px}.chat-pinned span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ui-muted)}.chat-message-label{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--ui-accent);font-size:1rem;font-weight:500}.chat-message-label button{margin-inline-start:auto;width:32px;height:28px;display:grid;place-items:center;border-radius:50%;color:var(--ui-muted)}.chat-edited,.chat-forwarded{display:block;font-size:1rem;opacity:.7}.chat-editing{display:flex;align-items:center;gap:12px;background:var(--ui-surface);padding:12px 20px;color:var(--ui-accent)}.chat-editing span{flex:1}.chat-action-dialog,.chat-management-dialog{margin:auto;padding:20px;background:var(--chosen-menu,var(--ui-surface));color:var(--ui-text);border:0;border-radius:20px;width:min(440px,calc(100% - 32px));max-height:85dvh;overflow:auto}.chat-action-dialog{max-width:320px}.chat-action-dialog::backdrop,.chat-management-dialog::backdrop{background:#0005}.chat-dialog-close{display:grid;place-items:center;margin-left:auto;width:36px;height:36px;border-radius:50%}.chat-management-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.chat-management-dialog h2{font-size:1.125rem;font-weight:500}.chat-action-list{display:grid;gap:4px;margin-block:12px}.chat-action-list>button,.chat-action-list>div,.chat-action-list>label{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border-radius:12px;text-align:start}.chat-action-list>div>span{flex:1}.chat-action-list input{accent-color:var(--ui-accent);width:20px;height:20px}@media (hover:hover) and (pointer:fine){.chat-action-list>button:hover:not(:disabled),.chat-message-label button:hover,.chat-participants-trigger:hover{background:var(--ui-hover-layer)}}.chat-action-list>button:active{background:var(--ui-pressed)}.chat-thread{background-size:100% 100%;background-repeat:no-repeat}.chat-group-hint{font-size:16px;line-height:1.5;color:var(--ui-muted);margin-block:16px}.chat-management-dialog>.ds-button{width:100%;min-height:48px}.chat-context-menu{position:fixed;inset:auto;margin:0;width:280px;max-height:380px;padding:8px;border-radius:14px;box-shadow:0 12px 42px #0003;overflow:auto;backdrop-filter:blur(20px)}.chat-context-menu::backdrop{background:#0002}.chat-context-menu>.ui-close-button{display:none}.chat-context-menu .chat-action-list{margin:0;gap:2px}.chat-context-menu .chat-action-list>button{width:100%;min-height:44px;font-size:16px;font-weight:400}.chat-context-menu .chat-delete-action{color:var(--ui-danger);border-top:1px solid var(--ui-border);border-radius:0 0 10px 10px;margin-top:4px}.chat-context-menu .chat-action-list>button:focus-visible{outline:none;background:var(--ui-selected)}.chat-quote{display:grid;width:100%;gap:3px;border-inline-start:3px solid var(--ui-accent);padding:8px 10px;text-align:start;border-radius:4px 8px 8px 4px;background:color-mix(in srgb,var(--ui-accent) 10%,transparent);margin:4px 0 8px;cursor:pointer}.chat-quote strong{font-size:14px;font-weight:600;color:var(--ui-accent)}.chat-quote span{line-height:20px;text-overflow:ellipsis;white-space:nowrap}.chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble:target{animation:chat-highlight 1.3s ease-out}.chat-media-thumb{display:block;position:relative;border-radius:10px;overflow:hidden;margin-block:6px;max-width:360px;cursor:zoom-in}.chat-media-thumb img,.chat-media-thumb video{display:block;width:100%;max-height:360px;object-fit:cover}.chat-media-thumb>svg{position:absolute;left:calc(50% - 18px);top:calc(50% - 18px);color:white;filter:drop-shadow(0 2px 5px #000)}.chat-document,.chat-location-message{display:flex;align-items:center;gap:12px;padding:12px;margin-block:6px;border-radius:12px;background:color-mix(in srgb,var(--ui-accent) 9%,transparent);color:inherit;min-width:220px;max-width:100%}.chat-document>span,.chat-location-message>span{display:grid;gap:4px;overflow-wrap:anywhere;min-width:0}.chat-document svg,.chat-location-message svg{flex:none;color:var(--ui-accent)}.chat-document small,.chat-location-message small{font-size:14px;opacity:.75}.chat-sticker-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:120px;min-height:128px;padding:12px;filter:drop-shadow(0 2px 2px #0002)}.chat-sticker-art svg{paint-order:stroke;stroke-linejoin:round;filter:drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white) drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white)}.chat-sticker-art strong{font-size:16px;font-weight:700;text-align:center;background:white;padding:5px 9px;border-radius:10px;line-height:20px}.chat-composer .chat-composer-reply,.chat-composer .chat-file-preview{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--ui-surface);border-radius:12px;margin-bottom:8px}.chat-composer-reply>span,.chat-file-preview>span{flex:1;min-width:0;display:grid;gap:4px}.chat-composer-reply strong{color:var(--ui-accent);font-size:14px}.chat-composer-reply small,.chat-file-preview small{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ui-muted)}.chat-composer .chat-composer-reply>button,.chat-composer .chat-file-preview>button{width:36px;height:36px;background:transparent;color:var(--ui-muted)}.chat-composer .chat-symbol-panel{position:absolute;bottom:calc(100% - 4px);left:max(12px,calc((100% - 720px) / 2));display:block;width:340px;max-width:calc(100vw - 32px);border:1px solid var(--ui-border);border-radius:16px;overflow:hidden;box-shadow:0 8px 32px #0002;background:var(--chosen-menu,var(--ui-surface));z-index:5}.chat-symbol-tabs{display:flex;border-bottom:1px solid var(--ui-border);padding:6px}.chat-composer .chat-symbol-tabs button{display:flex;gap:8px;flex:1;width:auto;height:44px;border-radius:10px;background:none;color:var(--ui-muted);font-size:16px}.chat-composer .chat-symbol-tabs button[aria-selected=true]{background:var(--ui-selected);color:var(--ui-accent)}.chat-symbol-scroll{overflow:auto;overscroll-behavior:contain;padding:12px}.chat-symbol-scroll h3{font-size:14px;font-weight:500;color:var(--ui-muted);margin:8px 4px}.chat-symbol-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}.chat-composer .chat-symbol-grid button{width:100%;height:44px;background:transparent;font-size:26px;border-radius:10px;color:var(--ui-text)}.chat-sticker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.chat-composer .chat-sticker-grid button{width:100%;height:auto;min-height:136px;background:var(--form-surface);border-radius:14px}.chat-composer .chat-attach-menu{position:absolute;bottom:calc(100% - 4px);right:max(12px,calc((100% - 720px) / 2));display:grid;gap:4px;padding:8px;background:var(--chosen-menu,var(--ui-surface));border:1px solid var(--ui-border);border-radius:14px;box-shadow:0 8px 28px #0002;z-index:5;width:300px;max-width:calc(100vw - 32px)}.chat-composer .chat-attach-menu button{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px;width:100%;height:auto;min-height:48px;padding:10px;background:transparent;color:var(--ui-text);border-radius:10px;font-size:16px;text-align:start}.chat-attach-menu small{width:100%;padding-left:32px;font-size:14px;color:var(--ui-muted)}.chat-media-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px;border:0;background:#101419f5;color:#fff;outline:none}.chat-media-viewer::backdrop{background:#000c}.chat-media-viewer header{display:flex;align-items:center;gap:20px;max-width:1280px;margin:0 auto 20px}.chat-media-viewer header>span{flex:1;overflow-wrap:anywhere}.chat-media-viewer small{display:block;color:#bbb;font-size:14px;margin-top:4px}.chat-media-viewer .ui-close-button{background:#ffffff18;color:#fff}.chat-media-viewer header>a{width:44px;height:44px;display:grid;place-items:center}.chat-media-stage{display:flex;align-items:center;justify-content:space-between;gap:16px;height:calc(100% - 84px)}.chat-media-stage>img,.chat-media-stage>video{min-width:0;max-width:calc(100% - 120px);max-height:100%;object-fit:contain}.chat-media-stage>button{flex:0 0 44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff2;color:#fff}.chat-media-stage>button:disabled{opacity:.25}@media (hover:hover){.chat-composer .chat-attach-menu button:hover,.chat-composer .chat-symbol-grid button:hover{background:var(--ui-hover)}}@media (max-width:760px){.chat-sidebar header{gap:8px;padding:12px}.chat-sidebar header h1{font-size:20px}.chat-compose-field .chat-emoji-toggle{width:44px}.chat-media-viewer{padding:12px}.chat-media-stage{gap:4px}.chat-media-stage>img,.chat-media-stage>video{max-width:calc(100% - 96px)}}@keyframes chat-highlight{0%{box-shadow:0 0 0 6px var(--ui-selected)}to{box-shadow:none}}@media (prefers-reduced-motion:reduce){.chat-bubble:target{animation:none}}.chat-workspace{height:calc(100dvh - var(--app-header-height, 112px));min-height:0;overflow:hidden}.chat-thread{position:relative;overflow:hidden}.chat-composer,.chat-pinned,.chat-thread>header{flex-shrink:0}.chat-messages{min-height:0;overscroll-behavior:contain}.chat-composer .chat-compose-field{border-radius:16px;overflow:hidden}.chat-composer .chat-send{border-radius:50%;flex:0 0 56px;aspect-ratio:1}.chat-composer .chat-symbol-panel{max-height:min(420px,calc(100dvh - var(--app-header-height, 112px) - 160px));display:flex;flex-direction:column}.chat-symbol-scroll{min-height:0;max-height:310px}.chat-file-preview audio{max-width:100%;height:38px}.chat-message audio{max-width:100%}.chat-composer .chat-voice-recording{display:flex;align-items:center;gap:8px;color:var(--ui-danger)}.chat-voice-recording span{white-space:nowrap;font-variant-numeric:tabular-nums}.chat-composer .chat-voice-recording button{width:44px;height:44px;background:var(--ui-surface);color:var(--ui-accent)}.chat-composer{width:100%;max-width:768px;align-self:center;padding:8px 24px max(16px,env(safe-area-inset-bottom));box-sizing:border-box}.chat-compose-row{width:100%}.chat-composer .chat-compose-field{border-radius:16px 16px 6px 16px;box-shadow:0 1px 3px #0002}.chat-compose-field:focus-within{outline:none}.chat-composer .chat-compose-field textarea{font-size:16px;line-height:24px;padding:16px 4px;min-height:56px;max-height:180px;overflow:auto}.chat-composer .chat-send{background:var(--ui-surface);color:var(--ui-accent)}.chat-composer .chat-composer-reply{margin-bottom:0;margin-right:64px;border-radius:16px 16px 0 0;padding:10px 12px;align-items:center}.chat-composer-reply>span{border-left:3px solid var(--ui-accent);padding-left:10px}.chat-composer:has(.chat-composer-reply) .chat-compose-field{border-top-left-radius:0;border-top-right-radius:0}.chat-composer .chat-symbol-panel{left:24px;bottom:calc(100% + 8px);width:360px;max-width:calc(100% - 48px);max-height:min(420px,calc(100dvh - var(--app-header-height) - 160px))}.chat-symbol-tabs{flex-shrink:0}.chat-symbol-scroll{flex:1;overflow-y:auto}.chat-sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chat-composer .chat-sticker-grid button{min-height:110px;padding:8px}.chat-sticker-grid .chat-sticker-art svg{width:48px;height:48px}.chat-sticker-grid .chat-sticker-art strong{font-size:11px}.chat-pinned{align-items:center;min-height:52px;padding:6px 20px;gap:12px}.chat-pinned>div{width:100%}.chat-pinned button{width:100%;max-width:none;border-left:3px solid var(--ui-accent);padding-left:10px;gap:2px}.chat-pinned strong{font-size:14px;font-weight:500}.chat-pinned span{font-size:14px;line-height:18px}.chat-message-label{position:relative;font-size:13px;line-height:18px;min-height:0}.chat-message-label>button{position:absolute;right:-42px;top:0;opacity:0;background:var(--ui-surface);width:28px;height:28px}.chat-outgoing .chat-message-label>button{right:auto;left:-42px}.chat-bubble:hover .chat-message-label>button,.chat-message-label>button:focus-visible{opacity:1}.chat-own-label{height:0}.chat-bubble footer{font-size:12px;line-height:16px}.chat-bubble:has(.chat-sticker-art){background:transparent;box-shadow:none;padding:4px;min-width:160px}.chat-bubble:has(.chat-sticker-art) .chat-bubble-tail{display:none}.chat-bubble:has(.chat-sticker-art) footer{background:#0004;color:#fff;border-radius:10px;padding:2px 6px;width:fit-content;margin-left:auto}.chat-messages .chat-sticker-art{padding:8px}.chat-messages .chat-sticker-art svg{width:100px;height:100px}@media (pointer:coarse){.chat-message-label>button{opacity:1;position:static;background:transparent}.chat-own-label{height:auto;justify-content:flex-end}}@media (max-width:760px){.chat-composer{padding-inline:12px}.chat-composer .chat-symbol-panel{left:12px;max-width:calc(100% - 24px)}.chat-composer .chat-compose-field textarea{font-size:16px}.chat-compose-field .chat-emoji-toggle{width:44px}}.chat-composer .chat-symbol-panel{align-items:stretch;gap:0}.chat-symbol-scroll,.chat-symbol-tabs{width:100%;box-sizing:border-box}.chat-symbol-tabs{align-items:center}.chat-composer .chat-compose-row{align-items:flex-end}.chat-composer .chat-attach-menu{align-items:stretch}.chat-bubble-text .chat-quote{white-space:normal}.chat-quote span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:18px}.chat-composer-reply small{max-width:100%;display:block}.chat-symbol-panel button:focus-visible{outline-offset:-3px}.chat-symbol-scroll{scrollbar-width:thin}.chat-composer{max-width:none;padding:8px 12px max(12px,env(safe-area-inset-bottom))}.chat-composer .chat-compose-row{gap:0}.chat-composer .chat-send{margin-left:-2px;z-index:1}.chat-composer .chat-compose-field{border-radius:28px 0 0 28px;background:var(--message-in,var(--ui-surface));box-shadow:none;align-items:flex-end}.chat-composer .chat-compose-field textarea{padding:16px 8px 16px 4px}.chat-composer .chat-attach-toggle,.chat-composer .chat-emoji-toggle,.chat-composer .chat-send{width:56px;height:56px;flex:0 0 56px;border-radius:50%;aspect-ratio:1}.chat-composer .chat-attach-toggle,.chat-composer .chat-emoji-toggle{background:transparent;color:var(--ui-muted)}.chat-composer .chat-send{background:var(--ui-accent);color:var(--on-accent,#fff)}.chat-composer:has(.chat-composer-reply) .chat-compose-field{border-radius:0 0 28px 28px}.chat-composer .chat-composer-reply,.chat-composer .chat-file-preview{margin-right:64px;background:var(--message-in,var(--ui-surface))}.chat-composer .chat-symbol-panel{left:auto;right:76px}.chat-composer .chat-attach-menu{right:auto;left:12px}.chat-file-preview img,.chat-file-preview video{display:block;max-width:100%;max-height:220px;border-radius:12px;object-fit:contain}.chat-location-dialog{margin:auto;width:min(780px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:20px;border:0;border-radius:20px;background:var(--chosen-menu);color:var(--ui-text)}.chat-location-dialog::backdrop{background:#0006}.chat-location-dialog footer,.chat-location-dialog header{display:flex;gap:12px;align-items:center;justify-content:space-between}.chat-location-dialog p{margin:12px 0;color:var(--ui-muted)}.chat-location-map{height:min(50dvh,420px);min-height:240px;position:relative;border-radius:14px;overflow:hidden;margin-bottom:16px}.chat-location-map .map-canvas{height:100%;min-height:0}.chat-location-dialog footer{flex-wrap:wrap}@media (max-width:600px){.chat-composer .chat-attach-toggle,.chat-composer .chat-emoji-toggle,.chat-composer .chat-send{width:48px;height:48px;flex-basis:48px}.chat-composer .chat-compose-field textarea{min-height:48px;padding:12px}.chat-composer .chat-composer-reply,.chat-composer .chat-file-preview{margin-right:56px}.chat-composer .chat-symbol-panel{right:12px}}.chat-archive-folder{display:block;width:calc(100% - 32px);margin:0 16px 12px;padding:12px;text-align:start;color:var(--ui-accent);border-radius:12px;background:var(--ui-selected);font-size:14px}.chat-thread-menu{position:relative}.chat-thread-menu summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border-radius:50%;cursor:pointer}.chat-thread-menu summary::-webkit-details-marker{display:none}.chat-thread-menu>div{position:absolute;right:0;top:48px;z-index:20;min-width:240px;display:grid;padding:8px;background:var(--chosen-menu);box-shadow:0 6px 24px #0003;border-radius:14px;border:1px solid var(--ui-border)}.chat-thread-menu button{text-align:start;padding:12px;border-radius:8px}.chat-thread-menu button:hover{background:var(--ui-selected)}.chat-selection-bar{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:12px 20px;background:var(--chosen-menu);color:var(--ui-accent);flex-shrink:0}.chat-selection-bar button{display:flex;align-items:center;gap:6px}.chat-selection-bar strong{margin-right:auto}.chat-message-checkbox{position:absolute;left:-30px;top:12px;width:20px;height:20px;accent-color:var(--ui-accent)}.chat-bubble:has(.chat-message-checkbox:checked){outline:2px solid var(--ui-accent);outline-offset:3px}.chat-bubble .chat-message-checkbox{appearance:none;-webkit-appearance:none;position:absolute;left:-34px;top:calc(50% - 11px);margin:0;width:22px;height:22px;border:2px solid #ffffffcc;border-radius:50%;background:#0002;box-shadow:0 1px 3px #0002;cursor:pointer;transition:background-color .15s,border-color .15s;z-index:2}.chat-bubble .chat-message-checkbox:checked{background:var(--ui-accent);border-color:#fff}.chat-message-checkbox:checked:after{content:"";position:absolute;left:5px;top:2px;width:6px;height:10px;border-width:medium;border-left:0 solid var(--on-accent,#fff);border-bottom:2px solid var(--on-accent,#fff);border-right:2px solid var(--on-accent,#fff);border-top:0 solid var(--on-accent,#fff);transform:rotate(45deg)}.chat-bubble:has(.chat-message-checkbox:checked){outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent) 55%,transparent)}.chat-bubble{transition:transform .12s ease,box-shadow .12s ease;transform-origin:center;touch-action:pan-y}.chat-bubble:active:not(:has(button:active,a:active,input:active,audio:active,video:active)){transform:scale(.985)}.chat-bubble:has(.chat-message-checkbox):active{transform:none}@media (prefers-reduced-motion:reduce){.chat-bubble,.chat-message-checkbox{transition:none}.chat-bubble:active{transform:none!important}}.chat-thread>header{min-height:0;padding:8px 12px;gap:8px;align-items:center;border:0}.chat-heading-identity{display:flex;align-items:center;gap:10px;min-width:0;flex:1;border-radius:36px;padding:4px 12px 4px 6px;background:var(--message-in,var(--ui-surface))}.chat-heading-identity .chat-avatar{width:40px;height:40px}.chat-heading-identity .chat-participants-trigger{padding:0;border-radius:20px}.chat-heading-identity h2{font-size:16px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-thread .chat-heading-identity p{font-size:13px;line-height:17px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-thread-menu>summary{background:var(--message-in,var(--ui-surface));width:48px;height:48px;border-radius:50%}.chat-location-preview{width:min(320px,65vw);overflow:hidden;border-radius:12px}.chat-location-preview iframe{display:block;border:0;width:100%;height:180px}.chat-location-preview>a{display:flex;justify-content:space-between;gap:12px;padding:10px;font-size:13px;color:var(--ui-accent);background:color-mix(in srgb,var(--ui-accent) 8%,transparent)}.chat-location-preview a span{white-space:nowrap}.chat-bubble:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.chat-thread>header{padding:10px 12px 8px;background:transparent}.chat-heading-identity,.chat-thread .chat-pinned,.chat-thread-menu>summary{background:color-mix(in srgb,var(--message-in,var(--ui-surface)) 94%,transparent);backdrop-filter:blur(18px)}.chat-thread .chat-pinned{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 12px 8px;padding:6px 12px 6px 18px;border:0;border-radius:28px;color:var(--ui-text)}.chat-thread .chat-pinned>div{flex:1;min-width:0;overflow:hidden}.chat-thread .chat-pinned>div>button{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0;max-width:100%;gap:0;border-left:2px solid var(--ui-text);padding:0 0 0 10px;border-radius:0;color:var(--ui-text);background:transparent;text-align:start}.chat-thread .chat-pinned strong{font-size:14px;font-weight:500;line-height:18px}.chat-thread .chat-pinned span{display:block;width:100%;min-width:0;color:var(--ui-text);font-size:14px;line-height:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-thread .chat-pinned>.chat-pinned-dismiss{display:grid;place-items:center;flex:0 0 32px;width:32px;min-width:32px;height:32px;max-width:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ui-text)}.chat-pinned-dismiss:hover{background:var(--ui-hover)}.chat-location-map-crop{height:180px;overflow:hidden;position:relative}.chat-location-map-crop iframe{height:212px;pointer-events:none}.chat-location-preview>a.chat-location-attribution{display:block;padding:2px 8px 5px;background:transparent;font-size:10px;line-height:12px;color:var(--ui-muted);text-align:right}.chat-sidebar .chat-conversation{display:flex;align-items:center;gap:12px;margin:2px 8px;padding:10px 12px;border-radius:16px;min-height:76px;color:var(--ui-text);text-decoration:none;transition:background-color .15s}.chat-sidebar .chat-conversation:is(:hover,:focus-visible){text-decoration:none}.chat-sidebar .chat-conversation>.user-avatar{flex:0 0 52px;font-size:20px}.chat-sidebar .chat-conversation>.chat-conversation-body{display:block;flex:1;min-width:0}.chat-sidebar .chat-conversation .chat-conversation-heading{display:flex;align-items:center;gap:8px;min-width:0;line-height:22px}.chat-sidebar .chat-conversation-heading>strong{flex:1;min-width:0;font-size:15px;font-weight:600;line-height:22px;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-sidebar .chat-conversation-heading>.chat-conversation-meta{display:flex;align-items:center;gap:3px;flex-shrink:0;font-size:11px;line-height:18px;color:var(--ui-muted);margin:0}.chat-conversation-meta time{font-size:11px;font-variant-numeric:tabular-nums}.chat-sidebar .chat-conversation p{font-size:14px;line-height:21px;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ui-muted)}.chat-sidebar .chat-conversation[aria-current=page]{background:var(--ui-accent);color:var(--on-accent)}.chat-sidebar .chat-conversation[aria-current=page] .chat-conversation-meta,.chat-sidebar .chat-conversation[aria-current=page] p{color:var(--on-accent);opacity:.9}.chat-sidebar .chat-conversation[aria-current=page] .user-avatar{box-shadow:0 0 0 2px #ffffff30}@media (hover:hover){.chat-sidebar .chat-conversation:not([aria-current=page]):hover{background:var(--ui-hover)}}.chat-sidebar .chat-conversation[aria-current=page] .chat-conversation-heading,.chat-sidebar .chat-conversation[aria-current=page] .chat-conversation-heading>strong,.chat-sidebar .chat-conversation[aria-current=page] .chat-conversation-meta,.chat-sidebar .chat-conversation[aria-current=page] .chat-conversation-meta time{color:var(--on-accent,#fff)}.chat-connection-status{align-self:center;max-width:calc(100% - 24px);padding:6px 12px;border-radius:14px;background:var(--chosen-menu,var(--ui-surface));color:var(--ui-muted);font-size:12px;text-align:center;margin-top:6px}.chat-connection-status[hidden]{display:none}.chat-participants-dialog .chat-participants-summary{margin:-8px 0 12px;color:var(--ui-muted);font-size:14px}.chat-participant-list{list-style:none;padding:0;margin:0 -8px}.chat-participant-row{display:flex;align-items:center;gap:4px}.chat-participant-profile{display:flex;flex:1;align-items:center;gap:14px;min-width:0;min-height:76px;padding:12px 8px;border-radius:12px;color:inherit;text-decoration:none;transition:background .15s ease}.chat-participant-identity{display:grid;flex:1;min-width:0;gap:4px}.chat-participant-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600}.chat-participant-identity>span{color:var(--ui-muted);font-size:13px}.chat-participant-chevron{flex-shrink:0;color:var(--ui-muted)}.chat-participant-remove{min-height:44px;padding:8px 12px;border-radius:10px;color:var(--ui-danger,#d93025)}.chat-participant-profile:focus-visible,.chat-participant-remove:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}@media (hover:hover) and (pointer:fine){.chat-participant-profile:hover,.chat-participant-remove:hover:not(:disabled){background:var(--ui-hover-layer)}}.chat-participant-profile:active,.chat-participant-remove:active:not(:disabled){background:var(--ui-pressed)}