#dev-room-tab[hidden], #dev-room-admin[hidden], #dev-room-end[hidden], #dev-room-active[hidden], #dev-room-empty[hidden], #dev-room-turn-note[hidden], .dev-room-card [hidden] { display: none !important; }
.dev-room-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 18px; }
.dev-room-header h2 { margin: 6px 0; font-size: 28px; }
.dev-room-header p, .dev-room-admin p { color: #b9bcc8; line-height: 1.6; }
.dev-room-eyebrow { color: #ffb000; font-size: 11px; letter-spacing: 2px; font-weight: 700; }
#dev-room-count { white-space: nowrap; padding: 10px 14px; border: 1px solid #453618; border-radius: 30px; color: #ffcf70; }
.dev-room-status { margin: 16px 0; color: #ffcf70; line-height: 1.6; min-height: 26px; }
.dev-room-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dev-room-toolbar button, .dev-room-card button, .dev-room-admin button { min-height: 44px; }
.dev-room-toolbar .btn-secondary, .dev-room-card .btn-secondary, .dev-room-admin .btn-secondary {
  appearance: none; background: #20232c; border: 1px solid #414552; color: #e6e8ef; border-radius: 9px; padding: 10px 14px; cursor: pointer;
}
.dev-room-toolbar button:disabled, .dev-room-card button:disabled { opacity: .45; cursor: not-allowed; }
.dev-room-toolbar button[aria-pressed="true"] { border-color: #ffb000; color: #ffcf70; background: #33270f; }
.dev-room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.dev-room-stage { min-width: 0; }
.dev-room-empty { padding: 48px 24px; text-align: center; border-radius: 18px; }
.dev-room-empty p { color: #b9bcc8; margin-top: 12px; line-height: 1.6; }
.dev-room-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dev-room-card { min-width: 0; overflow: hidden; padding: 12px; background: #111319; border: 1px solid #2b2d36; border-radius: 14px; }
.dev-room-card-heading { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; overflow-wrap: anywhere; }
.dev-room-card-heading span { color: #b9bcc8; font-size: 12px; }
.dev-room-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 8px; }
.dev-room-diagnostics { margin: 10px 0 0; color: #aebbcf; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dev-room-quality { display: grid; gap: 4px; font-size: 12px; color: #b9bcc8; }
.dev-room-quality select { min-height: 44px; padding: 8px; border: 1px solid #414552; border-radius: 9px; color: #e6e8ef; background: #20232c; max-width: 100%; }
.dev-room-sharing-tip { margin: 0 0 18px; color: #b9bcc8; font-size: 13px; line-height: 1.6; }
body.dev-room-viewing { overflow: hidden; }
.dev-room-card.dev-room-expanded { position: fixed; inset: 0; z-index: 100000; width: 100vw; height: 100dvh; margin: 0; padding: 16px; border: 0; border-radius: 0; background: #08090c; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.dev-room-expanded video { flex: 1; min-height: 0; width: 100%; height: 0; object-fit: contain; aspect-ratio: auto; }
.dev-room-expanded > button:not(.dev-room-restore) { display: none; }
.dev-room-expanded .dev-room-restore { align-self: flex-end; min-height: 44px; }
.dev-room-expanded .dev-room-card-heading, .dev-room-expanded .dev-room-diagnostics { flex-shrink: 0; margin: 0; }
.dev-room-card button { margin: 8px 6px 0 0; font-size: 12px; }
.dev-room-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #191c24; border-radius: 8px; color: #a6aabb; font-size: 13px; }
.dev-room-chat { padding: 20px; border-radius: 18px; min-width: 0; }
.dev-room-chat-note { font-size: 12px; color: #a6aabb; line-height: 1.5; margin: 8px 0; }
#dev-room-messages { list-style: none; height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 0; }
#dev-room-messages li { border-bottom: 1px solid #282b33; padding: 10px 0; overflow-wrap: anywhere; }
#dev-room-messages strong { font-size: 12px; color: #ffcf70; }
#dev-room-messages p { white-space: pre-wrap; font-size: 13px; line-height: 1.6; margin-top: 4px; }
#dev-room-chat { display: grid; gap: 8px; margin-top: 12px; }
#dev-room-chat label, #dev-room-access-form label { font-size: 13px; color: #b9bcc8; }
#dev-room-message, #dev-room-account { width: 100%; min-width: 0; background: #0d0e12; border: 1px solid #383b46; border-radius: 8px; padding: 12px; color: #fff; font: inherit; }
#dev-room-message { resize: vertical; max-height: 180px; }
.dev-room-admin { padding: 22px; margin-top: 20px; border-radius: 18px; }
.dev-room-admin summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.dev-room-admin p { margin: 12px 0; font-size: 13px; }
.dev-room-turn-note { color: #ffcf70 !important; }
#dev-room-access-form > div { display: flex; gap: 8px; margin-top: 8px; }
#dev-room-accounts { list-style: none; padding: 0; }
#dev-room-accounts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #282b33; }
#dev-room-accounts span { font-size: 13px; overflow-wrap: anywhere; }
.dev-room-active { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1100; display: flex; gap: 8px; padding: 8px; background: #15171e; border: 1px solid #ffb000; border-radius: 12px; box-shadow: 0 6px 24px #0008; max-width: calc(100vw - 32px); }
.dev-room-active button { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; color: #ffcf70; background: #26210f; cursor: pointer; font: inherit; font-size: 12px; }
#tab-devroom :focus-visible, .dev-room-active :focus-visible { outline: 2px solid #ffb000; outline-offset: 3px; }
@media (max-width: 1100px) { .dev-room-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .dev-room-videos { grid-template-columns: minmax(0, 1fr); }
  .dev-room-header { align-items: start; padding: 18px; flex-wrap: wrap; }
  .dev-room-toolbar button { flex: 1 1 140px; white-space: normal; }
  #dev-room-access-form > div { flex-direction: column; }
}
