.chat-panel{color:#e2e8f0;text-align:left;background:#0f172a;flex-direction:column;gap:12px;min-width:0;padding:16px;font-size:13px;line-height:1.5;display:flex}.chat-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.chat-heading h2{margin:0;font-size:18px;font-weight:650}.chat-panel button{color:#e2e8f0;cursor:pointer;background:0 0;border:1px solid #475569;border-radius:6px;min-height:44px;padding:8px 12px;font-size:13px}.chat-panel button:hover:not(:disabled){background:#334155}.chat-panel button:disabled{opacity:.5;cursor:default}.chat-panel :is(button,textarea):focus-visible,.chat-transcript:focus-visible{outline-offset:2px;outline:2px solid #a5b4fc}.history-workspace .chat-history-toggle{min-height:44px}.chat-connection,.chat-empty{color:#cbd5e1;margin:0}.chat-error{color:#fcd34d;overflow-wrap:anywhere;margin:0}.chat-transcript{overscroll-behavior:contain;scrollbar-color:#475569 #0f172a;border-block:1px solid #334155;height:clamp(180px,32dvh,380px);min-height:180px;padding:12px 0;overflow:auto}.chat-message{overflow-wrap:anywhere;background:#1e293b;border-radius:8px;width:fit-content;max-width:min(75ch,85%);margin:0 0 12px;padding:10px 12px}.chat-own{color:#eef2ff;background:#312e81;margin-left:auto}.chat-peer{margin-right:auto}.chat-message-header{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;display:flex}.chat-message time{color:#cbd5e1;font-variant-numeric:tabular-nums}.chat-own time{color:#c7d2fe}.chat-message p{white-space:pre-wrap;margin:4px 0 0}.chat-composer{gap:8px;display:grid}.chat-composer label{gap:6px;display:grid}.chat-composer textarea{resize:vertical;color:#e2e8f0;width:100%;min-height:80px;font:inherit;caret-color:#a5b4fc;background:#020617;border:1px solid #475569;border-radius:6px;padding:10px 12px}.chat-composer textarea::placeholder{color:#94a3b8}.chat-composer>div{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.chat-composer span{color:#cbd5e1;max-width:65ch;font-size:12px}.chat-composer button{background:#4338ca;border-color:#6366f1}.chat-keyboard-hint{color:#cbd5e1;font-size:12px}.chat-unread-badge{color:#fff;font-variant-numeric:tabular-nums;background:#be123c;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 5px;font-size:11px;font-weight:600;line-height:1;display:inline-flex}.chat-menu-badge{border:2px solid #020617;min-width:24px;height:24px;position:absolute;top:0;right:-4px}.workspace-mobile-tabs .chat-unread-badge{vertical-align:middle;margin-left:6px}.chat-panel ::selection{color:#fff;background:#4338ca}.chat-latest{align-self:center}.chat-image{gap:8px;min-width:0;margin-top:8px;display:grid}.chat-image a{color:#c7d2fe;display:block}.chat-image a:focus-visible{outline-offset:2px;outline:2px solid #a5b4fc}.chat-image img{object-fit:contain;border-radius:6px;width:auto;max-width:100%;height:auto;max-height:200px;display:block}.chat-message .chat-image-name{color:#cbd5e1;overflow-wrap:anywhere;font-size:12px}.chat-own .chat-image-name{color:#c7d2fe}.chat-image-composer{border-top:1px solid #334155;gap:8px;padding-top:12px;display:grid}.chat-image-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.chat-image-actions span{color:#cbd5e1;font-size:12px}.chat-image-selection{gap:8px;min-width:0;display:grid}.chat-image-selection img{object-fit:contain;border-radius:6px;justify-self:start;max-width:100%;max-height:160px}.chat-image-selection p{overflow-wrap:anywhere;margin:0}.interaction-chat-tabs{border-bottom:1px solid #334155;gap:8px;padding:12px 16px;display:flex}.interaction-chat-tabs button{color:#e2e8f0;background:0 0;border:1px solid #475569;border-radius:6px;min-height:44px;padding:8px 12px}.interaction-chat-tabs button[aria-pressed=true]{background:#4338ca;border-color:#6366f1}.interaction-chat-view[hidden],.interaction-record-view[hidden]{display:none}.interaction-record-view{flex-direction:column;flex:1;min-height:0;display:flex}.interaction-chat-view{overflow:auto}@media (max-width:600px){.chat-panel{padding:12px}.chat-composer textarea{font-size:16px}.chat-transcript{height:32dvh}.chat-message-header{font-size:12px}.chat-image img{max-height:160px}}
