.match-side{display:flex;flex-direction:column;min-width:0;gap:12px;max-height:clamp(470px,43vw,745px)}
.match-side aside{flex:1 1 auto;min-height:110px}
.match-side:has(.room-panel:not([hidden])) aside{flex:1 1 40%;max-height:48%}
.viewer{align-self:start}
#side-room-slot:has(.room-panel:not([hidden])){display:flex;min-height:235px;flex:1 1 55%}
.room-panel{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;overflow:hidden;color:#f1f5f6;background:#18222a;border:1px solid #3c4e58;border-radius:12px}
.room-panel[hidden],#room-toggle[hidden],.room-subtitle[hidden],.room-latest[hidden]{display:none}
.room-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid #354650;background:#1c2a33}
.room-head h2{margin:0;font-size:16px}.room-head button{background:transparent;border-color:transparent;color:#a8c3c7;font-size:13px}
.room-history{position:relative;min-height:65px;flex:1 1 auto;display:flex}.room-messages{flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 12px;scrollbar-width:thin}
#room-empty{position:absolute;left:12px;top:0;color:#a6b8c2;font-size:13px;pointer-events:none}
.room-message{margin:0 0 10px;overflow-wrap:anywhere;line-height:1.45;font-size:14px}
.room-byline{display:flex;align-items:baseline;gap:7px;margin-bottom:2px;font-size:12px}
.room-author{font-weight:650;color:#acbdc8}.room-message[data-kind=host] .room-author{color:#91e4d0}.room-message[data-kind=ad] .room-author{color:#ffd59f}
.room-byline time{margin-left:auto;color:#91a4af;font-size:11px;font-variant-numeric:tabular-nums}
.room-quote{border-left:2px solid #5d7985;margin:3px 0 4px;padding-left:6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#b8c5ce;font-size:12px}
.room-body{margin:0;white-space:pre-wrap}
.room-latest{position:absolute;right:8px;bottom:5px;background:#245452;border-color:#49817a;color:#eefff8;font-size:12px}
#room-form{display:flex;align-items:center;gap:6px;padding:8px;border-top:1px solid #354650}
#room-draft{min-width:0;flex:1;resize:none;font:inherit;font-size:14px;line-height:19px;padding:8px 9px;height:37px;color:#f0f6f7;background:#101a22;border:1px solid #526774;border-radius:6px}
#room-draft:focus-visible{outline:2px solid #9be4d3;outline-offset:1px}
#room-send{font-size:14px;font-weight:650;background:#b1e8d9;border-color:#9dd4c5;color:#162e2d;min-height:36px}
#room-feedback:not(:empty){padding:0 10px 8px;color:#f5d6a1;font-size:12px}
#room-toggle[aria-expanded=true]{background:#274842;border-color:#507f71;color:#bef2df}
.room-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.room-subtitle{display:flex;align-items:baseline;gap:10px;color:#f5fbfa;background:#192f34;border-left:3px solid #80d1ba;padding:6px 13px;font-size:clamp(13px,1.1vw,16px);line-height:1.45}
.room-subtitle[data-kind=ad]{background:#342c25;border-color:#f0b678}.room-subtitle #room-speaker{flex:none;max-inline-size:min(30%,13em);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.86em;font-weight:700;color:#9bebd3}.room-subtitle[data-kind=ad] #room-speaker{color:#ffcb8f}#room-line{min-width:0;overflow-wrap:anywhere}
#viewer-room-slot .room-panel{height:min(42vh,300px);min-height:200px;border-radius:0;border-width:1px 0 0}
.embed .match-side{display:none}
.viewer:fullscreen:has(#viewer-room-slot .room-panel:not([hidden])) #screen{flex:1 1 0}
@media(min-width:850px){.viewer:fullscreen:has(#viewer-room-slot .room-panel:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) clamp(260px,25vw,360px);grid-template-rows:minmax(0,1fr) auto auto;align-content:center}
.viewer:fullscreen:has(#viewer-room-slot .room-panel:not([hidden])) #screen{grid-column:1;grid-row:1;width:100%;height:100%;aspect-ratio:auto}
.viewer:fullscreen:has(#viewer-room-slot .room-panel:not([hidden])) #viewer-room-slot{grid-column:2;grid-row:1 / 4}
.viewer:fullscreen #viewer-room-slot .room-panel{height:100%}
.viewer:fullscreen:has(#viewer-room-slot .room-panel:not([hidden])) .room-subtitle{grid-row:2}
.viewer:fullscreen:has(#viewer-room-slot .room-panel:not([hidden])) .controls{grid-row:3}}
@media(max-width:800px){.match-side{max-height:240px}.room-subtitle{gap:7px;padding:6px 9px}}
@media(max-height:470px){.viewer:fullscreen #viewer-room-slot .room-panel{height:40dvh;min-height:105px}.viewer:fullscreen .room-head{padding-block:2px}.viewer:fullscreen .room-history{min-height:22px}}

.room-match-time{color:#a4bbc2;font-variant-numeric:tabular-nums;font-size:11px}
@media(min-width:801px){.viewer .tools{font-size:14px;gap:6px}.viewer .tools button,.viewer .tools select{padding:6px 8px}}
