.chat-message-list{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.chat-message-list__scroll{overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;flex:1;min-height:0;margin:0;padding:16px 12px;list-style:none;overflow:hidden auto}.chat-message{align-items:flex-end;gap:8px;min-width:0;margin-top:12px;display:flex}.chat-message:first-child{margin-top:0}.chat-message[data-grouped=true]{margin-top:4px}.chat-message[data-own=true]{justify-content:flex-end}.chat-message__avatar{background:color-mix(in srgb, var(--secondary) 12%, var(--surface-raised));width:32px;height:32px;color:var(--muted-foreground);border-radius:50%;flex:0 0 32px;place-items:center;display:grid;overflow:hidden}.chat-message[data-grouped=true] .chat-message__avatar{background:0 0}.chat-message__avatar>img{object-fit:cover;width:100%;height:100%}.chat-message__bubble{background:color-mix(in srgb, var(--secondary) 6%, var(--surface-raised));min-width:0;max-width:min(85%,34rem);color:var(--foreground);border:1px solid #0000;border-radius:16px 16px 16px 5px;padding:9px 12px 6px}.chat-message[data-own=true] .chat-message__bubble{background:color-mix(in srgb, var(--primary) 13%, var(--surface-raised));border-color:#0000;border-radius:16px 16px 5px}.chat-message__author{overflow-wrap:anywhere;color:var(--foreground);margin:0 0 3px;font-size:.75rem;font-weight:650;line-height:1.35}.chat-message__text{overflow-wrap:anywhere;white-space:pre-wrap;margin:0;font-size:.875rem;line-height:1.5}.chat-message__meta{min-height:15px;color:var(--muted-foreground);justify-content:flex-end;align-items:center;gap:6px;margin-top:3px;font-size:.625rem;line-height:1.3;display:flex}.chat-message__origin{background:color-mix(in srgb, var(--secondary) 10%, transparent);border-radius:4px;padding:1px 4px;font-size:.5625rem}.chat-message__unavailable,.chat-message__operation-status,.chat-message__operation-reason{overflow-wrap:anywhere;color:var(--muted-foreground);margin:5px 0 0;font-size:.75rem;line-height:1.4}.chat-message__operation-reason{color:var(--status-error)}.chat-message--operation .chat-message__bubble{border-style:dashed}.chat-message-list__notice{color:var(--muted-foreground);text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;padding:7px 0;font-size:.75rem;line-height:1.4;display:flex}.chat-message-list__notice--error{color:var(--status-error)}.chat-message-list__empty{color:var(--muted-foreground);text-align:center;padding:24px 12px;font-size:.875rem}.chat-message-list__pagination{margin-top:8px}.chat-message-list__notice button,.chat-message__check{min-height:32px;color:var(--foreground);text-underline-offset:3px;border-radius:8px;padding:4px 7px;font-size:.75rem;font-weight:550;text-decoration:underline}.chat-message__check{margin-top:3px}.chat-message-list button{cursor:pointer}.chat-message-list button:disabled{cursor:not-allowed;opacity:.6}.chat-message-list button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.chat-message-list__notice button:hover,.chat-message__check:hover{background:color-mix(in srgb, var(--primary) 10%, transparent)}.chat-message-list__unread{border:1px solid color-mix(in srgb, var(--primary) 55%, var(--border));background:var(--surface-raised);max-width:calc(100% - 24px);min-height:34px;color:var(--foreground);border-radius:999px;align-items:center;gap:6px;padding:6px 11px;font-size:.75rem;font-weight:600;display:inline-flex;position:absolute;bottom:12px;right:12px;box-shadow:0 3px 12px #0002}
.chat-composer{min-width:0;padding:10px 12px max(10px, env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--card);color:var(--foreground);flex-shrink:0;position:relative}.chat-composer__row{grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:7px;display:grid}.chat-composer button{cursor:pointer}.chat-composer button:disabled{cursor:default;opacity:.45}.chat-composer button:focus-visible,.chat-composer textarea:focus-visible,.chat-composer input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.chat-composer__insert,.chat-composer__send{border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.chat-composer__insert{color:var(--muted-foreground);background:var(--surface-raised)}.chat-composer__send{color:#172b43;background:var(--primary)}.chat-composer__field{min-width:0;position:relative}.chat-composer textarea{resize:none;border:1px solid var(--border);background:var(--surface-raised);width:100%;min-height:44px;max-height:108px;color:var(--foreground);overflow-wrap:anywhere;border-radius:19px;padding:10px 12px;font-size:14px;line-height:22px;display:block;overflow-y:auto}.chat-composer textarea::placeholder{color:var(--muted-foreground)}.chat-composer__counter{color:var(--muted-foreground);text-align:right;margin:4px 51px 0;font-size:11px}.chat-composer__counter[data-too-long=true]{color:var(--status-error)}.chat-composer__consent{color:var(--muted-foreground);align-items:start;gap:8px;margin-bottom:8px;font-size:11px;line-height:1.45;display:flex}.chat-composer__consent input{width:16px;height:16px;accent-color:var(--primary);flex-shrink:0;margin-top:2px}.chat-composer__notice:empty{display:none}.chat-composer__notice{margin-bottom:8px;font-size:12px}.chat-composer__menu{z-index:20;overscroll-behavior:contain;border:1px solid var(--border);background:var(--card);width:min(380px,100%);max-height:min(380px,60dvh);color:var(--foreground);border-radius:16px;scroll-padding-top:64px;position:absolute;bottom:calc(100% + 8px);left:0;overflow-y:auto;box-shadow:0 8px 28px #0000002e}.chat-composer__menu-heading{border-bottom:1px solid var(--border);background:var(--card);z-index:1;align-items:center;gap:6px;padding:8px;display:flex;position:sticky;top:0}.chat-composer__tabs{flex:1;gap:4px;min-width:0;display:flex}.chat-composer__tabs button{min-height:44px;color:var(--muted-foreground);border-radius:10px;padding:6px 8px;font-size:13px;font-weight:650}.chat-composer__tabs [aria-selected=true]{background:var(--surface-raised);color:var(--foreground)}.chat-composer__close,.chat-composer__info{min-width:44px;height:44px;color:var(--muted-foreground);border-radius:10px;place-items:center;display:grid}.chat-composer__info:hover,.chat-composer__close:hover{background:var(--surface-raised);color:var(--foreground)}.chat-composer__info:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.chat-composer__panel{padding:8px}.chat-composer__actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;display:grid}.chat-composer__action{text-align:left;border-radius:10px;align-items:start;gap:9px;min-height:58px;padding:9px;display:flex}.chat-composer__action:hover{background:var(--surface-raised)}.chat-composer__action>svg{color:var(--primary);flex-shrink:0;margin-top:2px}.chat-composer__action>span{overflow-wrap:anywhere;flex-direction:column;min-width:0;font-size:13px;line-height:1.35;display:flex}.chat-composer__action code{color:var(--muted-foreground);margin-top:3px;font-size:11px}.chat-composer__action small{color:var(--muted-foreground);margin-top:3px;font-size:10px}.chat-composer__help{z-index:60;max-width:min(320px, var(--radix-tooltip-content-available-width), calc(100vw - 16px));max-height:min(240px, var(--radix-tooltip-content-available-height));border:1px solid var(--border);background:var(--card);color:var(--foreground);border-radius:12px;padding:12px 14px;font-size:12px;line-height:1.5;overflow-y:auto;box-shadow:0 8px 28px #0000002e}.chat-composer__help>p+p{margin-top:8px}.chat-composer__empty{color:var(--muted-foreground);padding:12px 8px;font-size:13px}.chat-composer__suggestions{z-index:21;border:1px solid var(--border);background:var(--card);border-radius:12px;max-height:min(240px,40dvh);padding:4px;position:absolute;bottom:calc(100% + 8px);left:0;right:0;overflow-y:auto;box-shadow:0 4px 20px #00000024}.chat-composer__suggestions button{text-align:left;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:40px;padding:7px 9px;font-size:12px;display:flex}.chat-composer__suggestions [aria-selected=true] button{background:var(--surface-raised)}.chat-composer__suggestions code{color:var(--muted-foreground);font-size:11px}@media (max-width:640px){.chat-composer{padding-inline:8px}.chat-composer__row{gap:5px}.chat-composer textarea{font-size:16px}}
.chat-floating{z-index:50;border:1px solid color-mix(in srgb, var(--border) 40%, transparent);background:var(--surface-raised);width:min(490px,100vw - 40px);height:min(720px,100dvh - 40px);min-height:0;color:var(--foreground);border-radius:18px;flex-direction:column;display:flex;position:fixed;bottom:20px;right:20px;overflow:hidden;box-shadow:0 18px 70px #04142838;container-type:inline-size}.chat-floating__body{flex:1;min-height:0;overflow:hidden}.chat-messenger{background:color-mix(in srgb, var(--surface-raised) 97%, transparent);width:100%;min-width:0;height:100%;min-height:0;color:var(--foreground);flex-direction:column;display:flex;position:relative;overflow:hidden;container-type:inline-size}.chat-messenger--full{height:min(820px, calc(var(--chat-visible-height,100dvh) - 160px));border:1px solid color-mix(in srgb, var(--border) 40%, transparent);border-radius:18px;box-shadow:0 12px 40px #0414281a}.chat-full-page{width:min(1100px,100% - 32px);margin:24px auto 48px}.chat-header{border-bottom:1px solid color-mix(in srgb, var(--border) 28%, transparent);background:var(--surface-raised);flex:none;align-items:center;gap:8px;min-height:60px;padding:7px 12px;display:flex}.chat-header__title{flex-shrink:0;margin:0;font-size:14px;font-weight:700;line-height:1.3}.chat-header__server[data-slot=select-trigger]{border-radius:10px;flex:auto;gap:6px;min-width:0;max-width:155px;min-height:44px;margin-left:auto;padding:5px 8px;font-size:13px}.chat-header__server [data-slot=select-value]{min-width:0}.chat-header__server .chat-server-option{gap:6px}.chat-header__server .chat-server-option__name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-header__actions{flex-shrink:0;align-items:center;gap:0;display:flex}.chat-header__actions>button,.chat-header__actions>a,.chat-icon-button{width:40px;height:44px;color:var(--secondary);cursor:pointer;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.dark .chat-header__actions>button,.dark .chat-header__actions>a,.dark .chat-icon-button{color:var(--foreground)}.chat-header__actions>:hover,.chat-icon-button:hover{background:color-mix(in srgb, var(--primary) 10%, transparent)}.chat-header__actions>:focus-visible,.chat-icon-button:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.chat-server-options[data-slot=select-content]{width:max(220px, var(--radix-select-trigger-width));max-width:min(calc(100vw - 16px), var(--radix-select-content-available-width))}.chat-server-option{align-items:center;gap:8px;width:100%;min-width:0;display:flex}.chat-server-option>svg{color:#54894d}.chat-server-option>svg[data-server=anarchy]{color:#ce6041}.chat-server-option__details{flex-direction:column;gap:2px;min-width:0;line-height:1.4;display:flex}.chat-server-option__name{overflow-wrap:anywhere;min-width:0}.chat-server-option__details>small{white-space:normal;overflow-wrap:anywhere;opacity:.7;font-size:11px;font-weight:400}.chat-access{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;min-height:0;padding:24px;font-size:14px;display:flex}.chat-composer__notice{color:var(--muted-foreground);font-size:12px}.chat-composer__notice[role=alert]{color:var(--status-error)}@container (max-width:360px){.chat-header{gap:4px;padding:6px}.chat-header__title{font-size:12px}.chat-header__server[data-slot=select-trigger]{padding-inline:6px;font-size:12px}.chat-header__actions>button,.chat-header__actions>a{width:36px}}@container (max-width:260px){.chat-header{flex-wrap:wrap}.chat-header__title{flex:1}.chat-header__server[data-slot=select-trigger]{flex-basis:100%;order:3;max-width:none}}@media (max-width:640px){.chat-floating{border-radius:18px 18px 0 0;width:100%;height:min(720px,90dvh);bottom:0;right:0}.chat-full-page{width:calc(100% - 16px);margin-block:12px 24px}.chat-messenger--full{height:calc(var(--chat-visible-height,100dvh) - 128px)}}
