.video-workbench { margin: 0 0 20px; min-width: 0; }
.video-panel { padding: 12px; border: 1px solid var(--line, #ded8c8); border-radius: 20px; background: #fffdf7; min-width: 0; }
.video-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.video-heading { min-width: 0; display: grid; gap: 2px; }
.video-heading strong { font-size: 1rem; }
.video-heading small { color: var(--muted, #6d726c); font-size: .78rem; }
.video-header button { padding: 8px 12px; font-size: .8rem; min-height: 48px; }
.video-join-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.video-join-row button { min-height: 48px; padding: 9px 8px; font-size: .86rem; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.video-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; border-radius: 12px; background: #222b27; color: #fff; }
.video-tile video { display: block; width: 100%; height: 100%; object-fit: cover; background: #222b27; }
.video-tile.is-self video { transform: scaleX(-1); }
.video-tile.no-frame video { opacity: 0; }
.video-placeholder { position: absolute; inset: 0 0 28px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 8px; pointer-events: none; color: #d8e0d8; }
.video-placeholder .video-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #46574a; font-size: 1rem; font-weight: 700; }
.video-placeholder small { font-size: .65rem; text-align: center; }
.video-tile.has-frame .video-placeholder { display: none; }
.video-tile figcaption { position: absolute; bottom: 0; inset-inline: 0; display: flex; gap: 4px; align-items: center; justify-content: space-between; background: #101b15d9; color: #fff; padding: 6px 7px; font-size: .7rem; min-height: 28px; }
.video-tile-name { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.video-tile-mic { flex-shrink: 0; font-size: .65rem; color: #e1e8e2; }
.video-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.video-controls button { min-height: 48px; padding: 7px 5px; font-size: .73rem; border-radius: 12px; overflow-wrap: anywhere; line-height: 1.3; }
.video-controls button[aria-pressed="true"] { background: #e0eee3; border-color: #719377; color: #1c4828; }
.video-pagination { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 6px; }
.video-pagination button { min-height: 48px; padding: 6px 12px; font-size: .78rem; }
.video-pagination span { font-size: .78rem; color: var(--muted, #6d726c); }
.video-notice { margin: 10px 0 0; padding: 9px 10px; border-radius: 10px; font-size: .8rem; line-height: 1.5; background: #fff0d2; color: #6b451d; overflow-wrap: anywhere; }
.video-record-banner { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border: 2px solid #ad3b38; border-radius: 14px; background: #fff0eb; color: #7f211d; }
.video-record-banner .record-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 6px; background: #b7312b; border-radius: 50%; }
.video-record-banner strong { display: block; font-size: .86rem; }
.video-record-banner small { display: block; margin-top: 3px; font-size: .73rem; line-height: 1.45; }
.video-record-actions { margin-top: 10px; }
.video-record-actions button { width: 100%; min-height: 48px; font-size: .85rem; padding: 10px; }
.video-help { margin-top: 6px; color: var(--muted, #6d726c); font-size: .73rem; line-height: 1.5; }
.video-help summary { min-height: 44px; padding: 10px 0; font-size: .73rem; }
.video-help p { margin: 6px 0; }
.video-empty { margin: 10px 0 0; font-size: .8rem; color: var(--muted, #6d726c); }
/* Keep recording feeds in the connected DOM and decoding, without adding them
   to the visible grid. LiveKit adaptive visibility is disabled for this room. */
.video-decode-bank { position: absolute; width: 2px; height: 2px; overflow: hidden; opacity: .001; pointer-events: none; clip-path: inset(0); }
.video-decode-bank .video-tile { position: absolute; width: 160px; height: 90px; }
.video-audio-bank { width: 0; height: 0; overflow: hidden; }
.video-audio-bank audio { display: none; }
.video-workbench [hidden] { display: none !important; }
@media (min-width: 760px) {
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-controls { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .video-controls button { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-workbench * { animation: none !important; transition: none !important; }
}
