.room-monitor-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.room-monitor .btn { display: inline-flex; align-items: center; gap: 8px; }
.room-monitor svg, .room-monitor-link svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room-monitor { min-width: 0; letter-spacing: 0; }
.room-monitor-heading { padding: 8px 0 20px; }
.room-monitor-title { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.room-monitor h2 { font-size: 24px; line-height: 1.3; margin: 0 0 10px; overflow-wrap: anywhere; }
.room-monitor h3 { font-size: 17px; margin: 0; }
.room-monitor .pill-list { flex-wrap: wrap; }
.room-monitor .pill { white-space: normal; }
.room-monitor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); gap: 20px; align-items: start; }
.room-monitor-chat { min-width: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
.room-monitor-transcript { min-width: 0; height: min(58vh, 620px); min-height: 280px; overflow: auto; overscroll-behavior: contain; padding: 20px; background: var(--panel); }
.room-monitor-message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; min-width: 0; }
.room-monitor-message .live-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; font-size: 15px; overflow: hidden; }
.room-monitor-message .live-avatar img { width: 100%; height: 100%; object-fit: cover; }
.room-monitor-bubble { min-width: 0; max-width: min(100%, 740px); background: var(--panel-soft); border: 1px solid var(--border-soft); padding: 12px 14px; border-radius: 8px; overflow-wrap: anywhere; }
.room-monitor-message.is-mine { flex-direction: row-reverse; }
.room-monitor-message.is-mine .room-monitor-bubble { border-color: #16818f; }
.room-monitor-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.room-monitor-meta time { color: var(--muted); font-size: 11px; }
.room-monitor-bubble p { margin: 10px 0 4px; white-space: pre-wrap; font-size: 15px; line-height: 1.55; }
.room-monitor-plate { font-size: 10px; color: var(--muted); }
.room-monitor-composer { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--panel-soft); }
.room-monitor-posting { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.room-monitor-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; align-items: center; margin: 10px 0; }
.room-monitor-input-row textarea { display: block; width: 100%; min-width: 0; min-height: 72px; max-height: 160px; resize: vertical; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 6px; padding: 12px; font: inherit; font-size: 15px; }
.room-monitor-send { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #36c3d0; background: #007d8c; color: #fff; cursor: pointer; }
.room-monitor-send:disabled { opacity: .45; cursor: default; }
.room-monitor-send:focus-visible, .room-monitor-input-row textarea:focus-visible { outline: 2px solid #36c3d0; outline-offset: 3px; }
.room-monitor-error { color: #f88c96; }
.room-monitor-members { min-width: 0; padding: 18px 0; }
.room-monitor-members-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room-monitor-members ul { padding: 0; list-style: none; }
.room-monitor-members li { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.room-monitor-members li > div { min-width: 0; display: grid; gap: 4px; }
.room-monitor-member-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--panel-soft); border: 1px solid var(--border); }
.room-monitor-empty { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; color: var(--muted); text-align: center; }
.room-monitor-empty-members { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .room-monitor-heading { padding-top: 2px; }
  .room-monitor-title { align-items: flex-start; gap: 16px; }
  .room-monitor-title > .btn { margin-left: 44px; }
  .room-monitor-title > div { flex-basis: 100%; }
  .room-monitor-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .room-monitor-transcript { height: 46vh; min-height: 250px; padding: 12px; }
  .room-monitor-message .live-avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .room-monitor-bubble { padding: 10px; }
  .room-monitor-composer { padding: 12px; }
}
