.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.chat-heading h1{margin:5px 0 0}.chat-connection{font-size:12px;color:var(--muted)}.chat-layout{display:grid;grid-template-columns:240px minmax(0,1fr);height:calc(100dvh - 200px);min-height:420px;border:1px solid var(--line);border-radius:16px;background:var(--paper,#fff);overflow:hidden}.chat-rooms{padding:12px;border-right:1px solid var(--line);overflow-y:auto}.chat-room{display:flex;align-items:center;gap:10px;width:100%;padding:14px 12px;text-align:left;background:transparent;border:0;border-radius:10px;color:inherit;cursor:pointer;margin-bottom:4px}.chat-room>span{flex:1}.chat-room:hover,.chat-room.selected{background:var(--soft,#edf3ef);color:var(--green)}.chat-room.selected{font-weight:600}.chat-badge{border-radius:20px;background:var(--green);color:#fff;padding:2px 7px;font-size:11px;min-width:22px;text-align:center}.chat-conversation{display:flex;flex-direction:column;min-height:0;min-width:0;position:relative}.chat-room-heading{padding:18px 24px;border-bottom:1px solid var(--line)}.chat-room-heading h2{font-size:18px;margin:0 0 5px}.chat-room-heading p{font-size:12px;color:var(--muted);margin:0}.chat-history{flex:1;overflow:auto;padding:20px 24px;overscroll-behavior:contain}.chat-message{max-width:85%;width:fit-content;background:var(--paper,#f6f5ef);border:1px solid var(--line);border-radius:12px 12px 12px 3px;padding:12px 16px;margin:0 0 14px}.chat-message.mine{margin-left:auto;background:var(--soft,#edf3ef);border-radius:12px 12px 3px 12px}.chat-message-meta{display:flex;gap:16px;align-items:baseline;flex-wrap:wrap;font-size:12px}.chat-message-meta time{color:var(--muted);font-size:11px}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:6px 0 0}.chat-compose{border-top:1px solid var(--line);padding:16px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}.chat-compose textarea{resize:vertical;min-height:58px;max-height:150px;width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;color:inherit;background:var(--paper,#fff)}.chat-compose small{color:var(--muted);font-size:11px}.chat-compose .form-error{grid-column:1/-1;margin:0}.chat-empty{padding:28px;color:var(--muted);text-align:center;margin:auto}.chat-new{align-self:center;border:1px solid var(--line);border-radius:18px;padding:7px 14px;background:var(--green);color:white;cursor:pointer}.chat-profiles{border:1px solid var(--line);border-radius:10px;padding:14px}.chat-profiles legend{padding:0 5px}.chat-profiles>.checkline{margin-bottom:12px}#chat-older{text-align:center;margin-bottom:12px}#chat-nav-badge{margin-left:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.chat-layout{grid-template-columns:1fr;height:calc(100dvh - 180px)}.chat-rooms{display:flex;overflow-x:auto;flex-wrap:nowrap;border-right:0;border-bottom:1px solid var(--line);padding:8px;max-height:66px}.chat-room{width:auto;white-space:nowrap;margin:0}.chat-room>.icon{display:none}.chat-layout{grid-template-rows:auto minmax(0,1fr)}.chat-room-heading,.chat-compose{padding:12px}.chat-history{padding:12px}.chat-message{max-width:94%}.chat-heading{align-items:flex-start}.chat-connection{max-width:140px;text-align:right}}

[data-theme=dark] .chat-badge,[data-theme=dark] .chat-new{color:#183f37}
