/* Smart Entry public discussion. Desktop: left column; mobile: after the main chart. */
.layout{grid-template-columns:minmax(270px,315px) minmax(0,1fr) minmax(270px,320px);gap:13px;align-items:start}
.room-chat{position:sticky;top:86px;min-width:0;height:min(760px,calc(100vh - 101px));min-height:520px;border:1px solid #2a5e66;border-radius:17px;background:linear-gradient(155deg,#102a34,#071621);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 10px 45px #0008}
.room-chat header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 13px;border-bottom:1px solid #244351;background:linear-gradient(90deg,#113e3c,#0b2935)}
.room-chat header h2{font-size:15px;margin:0;letter-spacing:-.3px;color:#f7feff}
.room-chat header p{color:#a4c5ce;font-size:10px;margin:3px 0 0}
.room-chat header .community-icon{font-size:18px;color:#78f49c}
.room-chat .room-messages{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:13px 11px;background:linear-gradient(180deg,#061a25,#071521)}
.room-chat .room-intro{border:1px solid #2c4d5a;border-radius:12px;padding:11px;font-size:12px;color:#b8d3df;line-height:1.55;background:#102d3a;margin-bottom:14px}
.room-chat .room-intro strong{color:#9df8b2}
.room-chat .room-message{padding:10px 11px;margin:8px 0;border-radius:12px;background:#0f2a39;border:1px solid #224556;word-break:break-word}
.room-chat .room-message.mine{background:#173b33;border-color:#367e62}
.room-chat .room-message.host{border-color:#629447;background:linear-gradient(145deg,#163f2b,#0c2929)}
.room-chat .room-message-top{display:flex;gap:7px;align-items:center;justify-content:space-between;margin-bottom:5px}
.room-chat .room-author{font-size:11px;color:#8ef0a6;font-weight:950;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-chat .room-time{font-size:9px;color:#91b1c0;white-space:nowrap}
.room-chat .room-message-text{white-space:pre-wrap;color:#e9f6fd;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.room-chat .host-marker{display:inline-block;font-size:8px;font-weight:900;letter-spacing:.4px;color:#09200e;background:#70e983;border-radius:6px;padding:1px 5px;margin-left:4px}
.room-chat .moderate{border:0;background:transparent;color:#ff9e9e;cursor:pointer;font-size:10px}
.room-chat .room-form{padding:12px;border-top:1px solid #25485a;background:#0b2130;display:grid;gap:8px}
.room-chat input,.room-chat textarea{width:100%;min-width:0;background:#061521;border:1px solid #3c5868;border-radius:8px;padding:10px;color:#e9f7ff;font:12px/1.4 Inter,system-ui,sans-serif;outline:none}
.room-chat input:focus,.room-chat textarea:focus{border-color:#57ff37}
.room-chat textarea{min-height:65px;max-height:100px;resize:vertical}
.room-chat .form-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.room-chat button.send-room{background:#57ff37;color:#041407;border:0;border-radius:8px;padding:10px 15px;cursor:pointer;font-size:12px;font-weight:950}
.room-chat button:disabled{opacity:.6;cursor:wait}
.room-chat .hint{font-size:10px;color:#9bb5c2;margin:0}
.room-chat .feedback{font-size:11px;color:#f9cc88;min-height:15px;margin:0}
.room-chat .room-empty{color:#a4bfca;font-size:12px;text-align:center;padding:22px 12px}
@media (max-width:1280px){.layout{grid-template-columns:minmax(245px,290px) minmax(0,1fr) minmax(250px,285px)}}
@media (max-width:1050px){.layout{grid-template-columns:minmax(230px,285px) minmax(0,1fr)}.side{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.side .panel:first-child{grid-column:auto}.room-chat{height:625px;top:80px;min-height:450px}}
@media (max-width:700px){.layout{grid-template-columns:1fr;gap:14px}.stage{order:1}.room-chat{order:2;position:relative;top:auto;height:470px;min-height:400px}.side{order:3;grid-column:auto;grid-template-columns:1fr}.room-chat header{padding:13px}.room-chat .room-messages{min-height:180px}}

.room-stream-controls{padding:12px 15px;border-top:1px solid #487d51;background:linear-gradient(90deg,#112c2a,#0c2533)}
.room-stream-controls[hidden]{display:none}
.room-stream-controls label{display:block;color:#aaffb3;font-size:12px;font-weight:850}
.room-stream-controls p{margin:4px 0 9px;font-size:11px;color:#abc8cc}
.room-stream-input{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.room-stream-input input{flex:1 1 230px;min-width:190px;outline:none;padding:10px;background:#06161e;color:#ebfaff;border:1px solid #38636c;border-radius:8px;font:12px system-ui}
.room-stream-input button{background:#57ff37;border:none;color:#0b160e;cursor:pointer;font:850 11px system-ui;border-radius:8px;padding:11px 12px}
.room-stream-input button:last-child{background:#283e45;color:#f0f8fc}
.room-stream-input button:disabled{opacity:.6}
#room-stream-feedback{color:#b0efc7}
.room-chat .room-empty{display:none}
.room-chat .room-empty:only-child{display:block}
