.public-channel-stage.has-chat{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.public-channel-stage>*{min-width:0}.public-channel-stage .public-live{margin-top:0}.channel-chat-shell{min-width:0}.channel-chat{display:flex;flex-direction:column;height:520px;max-height:78vh;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;color:var(--text)}.chat-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid var(--line);min-height:48px}.chat-heading strong{font-size:15px}.chat-heading .icon-button{font-size:23px;line-height:1;padding:4px;min-height:28px;min-width:28px}.chat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;scrollbar-width:thin}.chat-message{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px}.chat-avatar{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:hsl(var(--chat-hue) 55% 42%);color:white;font-size:12px;font-weight:650}.chat-message-content{min-width:0;flex:1}.chat-message-heading{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.chat-message-heading strong{font-size:12px;overflow-wrap:anywhere}.chat-message-heading time{font-size:10px;margin-left:auto}.chat-message-content p{font-size:13px;line-height:1.45;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}.chat-creator-badge{font-size:9px;background:#7c3aed;color:#fff;border-radius:4px;padding:2px 5px}.chat-status,.chat-note{font-size:11px;line-height:1.4;margin:0;padding:8px 12px;border-top:1px solid var(--line)}.chat-note{color:var(--muted)}.chat-compose{border-top:1px solid var(--line);padding:10px;display:grid;gap:8px;margin:0}.chat-compose input,.chat-compose textarea{width:100%;min-width:0;font-size:13px;padding:8px 10px;border-radius:9px}.chat-compose textarea{resize:vertical;max-height:100px;min-height:36px}.chat-compose-line{display:flex;align-items:flex-end;gap:6px}.chat-compose-line textarea{flex:1}.chat-compose-line .button{flex:none;min-height:36px;padding:6px 10px}.chat-empty{text-align:center;font-size:13px;padding:30px 10px}.chat-moderation{font-size:11px;margin-top:5px}.chat-moderation summary{cursor:pointer;color:var(--muted)}.chat-moderation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;padding:7px;border:1px solid var(--line);border-radius:8px}.chat-moderation-actions button,.chat-moderation-actions select{font:inherit;font-size:11px;background:var(--surface-2);color:var(--text);padding:5px 7px;border:1px solid var(--line);border-radius:5px}.chat-moderation-actions label{display:flex;align-items:center;gap:4px;font-size:11px;margin:0}.chat-moderation-actions input{width:auto}.channel-chat-shell [hidden]{display:none!important}.chat-reopen{display:flex;margin:8px 0 0 auto}.creator-chat-page{display:grid;gap:22px}.creator-chat-page .channel-chat{height:570px;max-height:none}.creator-chat-page .surface h2{margin-bottom:14px}.public-channel-stage:not(.has-chat)>.channel-chat-shell:has(.chat-reopen[hidden]){display:none}@media(max-width:900px){.public-channel-stage.has-chat{grid-template-columns:minmax(0,1fr)}.channel-chat{height:420px;max-height:none}}@media(max-width:600px){.channel-chat{height:380px}.chat-message-content p{font-size:14px}}

.chat-message{padding:6px;border-radius:9px;transition:background-color .18s,box-shadow .18s}.chat-message:hover,.chat-message:focus-within{background:var(--surface-2);box-shadow:inset 3px 0 0 var(--accent)}@media(prefers-reduced-motion:reduce){.chat-message{transition:none}}

@media(min-width:901px){.public-channel-stage.has-chat:has(>.public-live)>.public-live{margin:0}.public-channel-stage.has-chat:has(>:is(.public-live,.radio-player-public))>.channel-chat-shell{position:relative;align-self:stretch;min-height:0}.public-channel-stage.has-chat:has(>:is(.public-live,.radio-player-public))>.channel-chat-shell>.channel-chat{position:absolute;inset:0;height:100%;max-height:none}}
