.stream-home .live-layout:not(.chat-hidden){grid-template-columns:minmax(0,1fr) clamp(340px,27vw,465px)}
.stream-home .community-chat{background:#11190f}
.stream-home .chat-heading{padding:12px 16px 9px}
.stream-home .chat-heading .eyebrow{font-size:10px;letter-spacing:1.4px}
.stream-home .chat-heading h2{margin:2px 0 0;font-size:26px;color:#f2f1df}
.chat-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 12px}
.chat-modes button{min-height:44px;padding:7px 8px;border:1px solid #63704e;border-radius:6px;background:#1c2818;color:#e9efdf;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer}
.chat-modes button[aria-pressed=true]{background:#e6cb83;border-color:#f4da98;color:#1b170d}
.chat-modes #chatWriteMode:not([aria-pressed=true]){border-color:#9a77c7;color:#f1e4ff;background:#38254e}
.chat-modes button:focus-visible,.chat-feed:focus-visible,.chat-twitch-bar a:focus-visible{outline:2px solid #f4da98;outline-offset:2px}
.chat-reading,.chat-writing{display:flex;flex:1;flex-direction:column;min-height:0}
.chat-reading[hidden],.chat-writing[hidden]{display:none}
.chat-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;padding:2px 12px 7px}
.chat-toolbar .btn{min-height:37px;padding:6px 10px;font-size:12px;letter-spacing:0}
.stream-home .chat-toolbar .chat-live{font-size:11px;letter-spacing:0;color:#d2dbbf}
.stream-home .chat-toolbar .chat-live.connected{color:#b7e59f}
.stream-home .chat-platforms{padding:5px 10px;gap:3px}
.stream-home .chat-platforms button{min-height:34px;padding:5px 7px;font-size:12px}
.stream-home .community-chat .chat-feed{min-height:115px;padding:6px 13px;background:#11180e}
.stream-home .chat-welcome{height:100%;min-height:0;justify-content:center;padding:10px 2px}
.stream-home .chat-welcome h3{max-width:none;margin:0 0 6px;font-size:20px}
.stream-home .chat-welcome p{max-width:30ch;font-size:13px;line-height:1.45;color:#c7d0b9}
.stream-home .chat-message,.stream-home .chat-empty{font-size:14px;color:#e7ebdd}
.stream-home .chat-message p{color:#eff1e9}
.stream-home .chat-message strong{font-size:13px}
.stream-home .chat-message .platform-tag{font-size:10px}
.stream-home .chat-bottom{align-items:center;padding:6px 12px;font-size:11px;color:#c7d0b9}
.stream-home .chat-bottom button{min-height:30px;font-size:12px}
.chat-twitch-bar{display:grid;gap:3px;padding:1px 13px 8px;color:#dae2cc;font-size:12px}
.chat-twitch-bar p{margin:0}
.chat-twitch-bar a{width:fit-content;color:#e6d0ff;text-decoration:underline;text-underline-offset:3px}
.twitch-chat-stage{flex:1;min-height:0;background:#18181b}
.twitch-chat-stage iframe{display:block;width:100%;height:100%;border:0}
@media (min-width:851px){
 .stream-home .live-layout:not(.chat-hidden){min-height:430px}
 .stream-home .live-layout:not(.chat-hidden):has(#chatWriting:not([hidden])){min-height:550px}
}
@media (max-width:850px){
 .stream-home .live-layout:not(.chat-hidden){grid-template-columns:minmax(0,1fr)}
 .stream-home .community-chat{height:540px;max-height:none}
}
