/* Room status: the recording light (room-status.jsx). */

/* ─── Dashboard room card on air ──────────────────────────────────── */
.db-room.on-air,
.db-room.on-air:hover,
.ms-room.on-air {
  border-color: var(--red);
  animation: db-on-air 1.8s ease-in-out infinite;
}
/* The room's rail turns red too, so the whole card reads as one light. */
.db-room.on-air .db-room-rail,
.ms-room.on-air .ms-room-rail { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes db-on-air {
  0%, 100% {
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--red) 35%, transparent),
                0 0 6px color-mix(in oklab, var(--red) 20%, transparent);
  }
  50% {
    box-shadow: 0 0 0 1px var(--red),
                0 0 22px color-mix(in oklab, var(--red) 55%, transparent);
  }
}
.db-on-air { color: var(--red); font-weight: 600; white-space: nowrap; flex: none; }
.db-room.on-air .db-room-head { gap: 8px; }
.db-room.on-air .db-room-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-on-air .db-state-dot { background: var(--red); }
/* The phone dashboard's room card (mobile-screens.jsx). */
.ms-on-air { color: var(--red); white-space: nowrap; }
.ms-on-air .ms-dot { background: var(--red); }
/* Your session card while its room records: a lit dot and the words, no red card. */
.db-rec-now {
  display: inline-flex; align-items: center; gap: 9px; margin-left: auto; margin-right: 14px;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--red); white-space: nowrap;
}
.db-rec-now-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, color-mix(in oklab, var(--red) 55%, white), var(--red) 70%);
  box-shadow: 0 0 10px var(--red), 0 0 22px color-mix(in oklab, var(--red) 55%, transparent);
  animation: db-rec-now 1.6s ease-in-out infinite;
}
/* On a phone the head is narrow: the light gets its own line under it. */
@media (max-width: 760px) {
  .db-mine .db-panel-head { flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; }
  .db-mine .db-panel-kicker { flex: 1 1 0; min-width: 0; }
  .db-mine .db-panel-head .db-link { flex: none; }
  .db-mine .db-rec-now { order: 3; flex-basis: 100%; margin: 0; }
}
@keyframes db-rec-now {
  50% { box-shadow: 0 0 4px var(--red), 0 0 10px color-mix(in oklab, var(--red) 35%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .db-room.on-air, .ms-room.on-air { animation: none; box-shadow: 0 0 0 1px var(--red); }
  .db-rec-now-dot { animation: none; }
}

/* ─── Settings → Rooms: the room's Pro Tools Mac ──────────────────── */
.rs-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.rs-state { min-width: 0; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-actions .tb-btn { height: 28px; }
.rs-actions .tb-btn.armed { color: var(--red); border-color: color-mix(in oklab, var(--red) 50%, var(--border)); }
.rs-muted { color: var(--text-muted); }
.rs-warn { color: var(--accent-text); }
.rs-rec { color: var(--red); font-weight: 600; }
.rs-live { color: var(--green); }
.rs-message { grid-column: 1 / -1; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.rs-message.ok { color: var(--green); }
.rs-message.warn { color: var(--accent-text); }
/* The bridge isn't running: the message with an Open button. */
.rs-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.rs-open .tb-btn { height: 28px; text-decoration: none; flex: none; }
.rs-open .tb-btn[aria-disabled] { opacity: 0.6; cursor: progress; }
