/* Zovvar Room — the class room.
   Manuscript night: a warm paper page lit on a dark, gilt-girih stage. Gilt marks what is active or
   in charge, turquoise what is live (microphone, camera, speaking), rose only stop and leave. */

.page-room {
  --inkwell: #111714;
  --binding: #17201c;
  --leaf: #202b26;
  --leaf-2: #283530;
  --hair: #2e3b35;
  --txt: #efeadf;
  --txt-2: #aab3a8;
  --txt-3: #7b887f;
  --gilt: #dba54a;
  --gilt-hi: #e7b866;
  --gilt-ink: #241703;
  --gilt-soft: rgba(219, 165, 74, .14);
  --tile: #3fbfac;
  --tile-soft: rgba(63, 191, 172, .15);
  --rose-d: #e26a5f;
  --rose-soft: rgba(226, 106, 95, .15);
  --sheet: #18221e;
  --pop: #1b2521;
  --page: #fbf7ee;
  --stage-bg: #0d1210;
  --girih-gilt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23dba54a' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='19.5' y='19.5' width='25' height='25'/%3E%3Crect x='19.5' y='19.5' width='25' height='25' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 0l11 11M64 0L53 11M0 64l11-11M64 64L53 53M32 0v6M32 64v-6M0 32h6M64 32h-6'/%3E%3C/g%3E%3C/svg%3E");
  background: var(--inkwell);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.6;
  color-scheme: dark;
}
.page-room .icon { width: 20px; height: 20px; }
.page-room :focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.page-room button { cursor: pointer; }
.page-room .gilt { color: var(--gilt); }

/* ---------- buttons, fields and sheets in the dark room */

.page-room .btn { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; background: var(--leaf); color: var(--txt); border: 1px solid transparent; gap: 7px; }
.page-room .btn .icon { width: 17px; height: 17px; }
.page-room .btn:hover:not(:disabled) { background: var(--leaf-2); }
.page-room .btn.primary { background: var(--gilt); color: var(--gilt-ink); }
.page-room .btn.primary:hover:not(:disabled) { background: var(--gilt-hi); }
.page-room .btn.danger { background: var(--rose-d); color: #fff; }
.page-room .btn.danger:hover:not(:disabled) { background: #cf5a50; }
.page-room .btn.ghost { background: transparent; border-color: var(--hair); color: var(--txt); }
.page-room .btn.ghost:hover:not(:disabled) { border-color: var(--txt-3); background: transparent; }
.page-room .btn.quiet { background: transparent; color: var(--rose-d); border-color: rgba(226, 106, 95, .35); }
.page-room .btn.big { min-height: 50px; font-size: 16.5px; }
.page-room .input { min-height: 42px; background: var(--inkwell); border: 1px solid var(--hair); color: var(--txt); border-radius: 10px; }
.page-room .input:focus-visible { outline: 2px solid var(--gilt); border-color: var(--gilt); }
.page-room .hint, .page-room .note { color: var(--txt-2); }
.page-room .error { color: #ff9c93; }
.page-room select.input { padding-inline-end: 2rem; }
.icon-btn { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--txt); display: grid; place-items: center; padding: 0; }
.icon-btn:hover:not(:disabled) { background: var(--leaf); }
.icon-btn:disabled { opacity: .4; cursor: default; }

/* ---------- gate: before joining and after leaving */

.gate {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px 16px;
  background: var(--stage-bg) var(--girih-gilt);
  background-size: 64px 64px;
}
.gate-card {
  width: min(440px, 100%);
  display: grid; gap: 1rem;
  padding: 28px 24px;
  background: var(--binding);
  border: 1px solid var(--hair);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.gate-card h1 { margin: 0; font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.gate-head { display: flex; align-items: center; gap: 10px; }
.gate-mark { width: 30px; height: 30px; color: var(--gilt); stroke-width: 1.5; }
.gate-kind { margin: 0; color: var(--gilt); font-size: 14px; font-weight: 500; }
.host-flag { margin: 0; padding: .45rem .8rem; border-radius: 10px; background: var(--gilt-soft); color: var(--gilt); font-size: 14px; font-weight: 500; }
.gate .field > label { font-size: 14.5px; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; border: 0; padding: 0; margin: 0; }
.checks legend { padding: 0; margin-bottom: .3rem; font-weight: 500; font-size: 14.5px; }
.check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--gilt); }
.gate-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.spinner { justify-self: center; width: 34px; height: 34px; border: 3px solid var(--hair); border-top-color: var(--gilt); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- frame */

.room { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 52px minmax(0, 1fr) auto; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 10px; padding-inline-start: 14px; background: var(--binding); border-bottom: 1px solid var(--hair); min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark { width: 28px; height: 28px; color: var(--gilt); stroke-width: 1.5; }
.page-room .mark { width: 28px; height: 28px; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { flex: none; font-size: 12px; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--gilt-soft); color: var(--gilt); }
.room-status { flex: none; color: var(--gilt); font-size: 13px; }
.rec-flag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--rose-soft); color: #ff9c93; font-variant-numeric: tabular-nums; }
.rec-flag i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-d); animation: rec-blink 1.6s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .3; } }
.top-meta { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; color: var(--txt-2); font-size: 13.5px; flex: none; }
.top-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.top-meta .icon { width: 17px; height: 17px; color: var(--txt-3); }
.tm-time { font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tile); box-shadow: 0 0 0 3px var(--tile-soft); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; border-radius: 1px; background: var(--hair); }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; } .bars i:nth-child(4) { height: 14px; }
.bars[data-level="1"] i:nth-child(-n+1), .bars[data-level="2"] i:nth-child(-n+2), .bars[data-level="3"] i:nth-child(-n+3), .bars[data-level="4"] i { background: var(--tile); }
.bars[data-level="1"] i:nth-child(1) { background: var(--rose-d); }
.bars[data-level="0"] i { background: var(--rose-soft); }

.main { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w, 340px); min-height: 0; }
.room.side-off .main { grid-template-columns: minmax(0, 1fr); }
.room.side-off .side { display: none; }
.room.chat-big { --side-w: 460px; }

/* ---------- stage: the page on a gilt lattice */

.stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; background: var(--stage-bg) var(--girih-gilt); background-size: 64px 64px; }
.viewport { position: relative; overflow: hidden; border-radius: 3px; background: var(--page); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 22px 60px rgba(0, 0, 0, .5); }
.surface { position: absolute; inset: 0; transform-origin: 0 0; background: var(--page); }
.doc-layer, .ink-layer { position: absolute; inset: 0; display: block; }
.surface.editable .ink-layer { cursor: crosshair; touch-action: none; }
.surface.editable[data-tool="text"] .ink-layer { cursor: text; }
.surface.editable[data-tool="eraser"] .ink-layer { cursor: cell; }
.surface.editable[data-tool="select"] .ink-layer { cursor: move; }
.surface.editable[data-tool="pan"] .ink-layer { cursor: grab; }
.stage.panning .ink-layer { cursor: grabbing !important; }
.board-text {
  position: absolute; z-index: 2; min-width: 90px; width: 40%; max-width: 60%;
  padding: 2px 6px; border: 1.5px dashed var(--gilt); border-radius: 6px;
  background: rgba(255, 255, 255, .94); color: #1d2433; font-family: var(--font); font-weight: 500; line-height: 1.35;
  resize: none; overflow: hidden; outline: none;
}
.stage-video, .media-box, .media-local { position: absolute; inset: 12px; border-radius: 10px; background: #050907; }
.stage-video { width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.stage-video.mirror { transform: scaleX(-1); }
.media-box video, .media-local video { width: 100%; height: 100%; object-fit: contain; }
.media-box.audio { inset: auto; width: 0; height: 0; overflow: hidden; }
.media-local { display: grid; place-items: center; }
.media-local:not(.audio) { bottom: 84px; } /* the native controls stay clear of the playback bar */
.media-local.audio { background: transparent; inset: auto 16px 74px auto; width: 360px; height: auto; }
.media-local.audio video { height: 46px; }
.stage-card {
  position: absolute; inset: 12px;
  display: grid; place-content: center; justify-items: center; gap: .5rem;
  border-radius: 10px; text-align: center; padding: 24px;
  background: rgba(23, 32, 28, .9); border: 1px solid var(--hair);
}
.stage-card strong { font-size: 18px; }
.stage-card span { color: var(--txt-2); max-width: 420px; }
.big-icon { width: 52px; height: 52px; color: var(--gilt); stroke-width: 1.4; }
.page-room .big-icon { width: 52px; height: 52px; }
.stage-label {
  position: absolute; top: 14px; inset-inline-start: 16px; z-index: 3; margin: 0; max-width: 40%;
  display: flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; padding-inline-start: 12px; min-height: 34px;
  border-radius: 10px; background: rgba(23, 32, 28, .94); border: 1px solid var(--hair); font-size: 13px;
}
.stage-label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label-x { width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--txt-2); display: grid; place-items: center; padding: 0; }
.label-x:hover { background: var(--leaf); color: var(--txt); }
.label-x .icon { width: 15px; height: 15px; }

.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 2px; padding: 5px; background: rgba(23, 32, 28, .95); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .38); }
.tools { top: 14px; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; }
.tool { width: 36px; height: 36px; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: var(--txt-2); padding: 0; }
.tool:hover:not(:disabled) { background: var(--leaf); color: var(--txt); }
.tool[aria-pressed="true"] { background: var(--gilt); color: var(--gilt-ink); }
.tool:disabled { opacity: .35; cursor: default; }
.tool .icon { width: 19px; height: 19px; }
.vsep { width: 1px; height: 22px; background: var(--hair); margin: 0 5px; flex: none; }
.ink-now { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--c, #1d2433); box-shadow: 0 0 0 2px var(--binding), 0 0 0 3.5px var(--txt-3); margin: 0 7px; }
.size-now { width: 30px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 9px; padding: 0; }
.size-now:hover { background: var(--leaf); }
.size-now i { display: block; width: 16px; height: var(--h, 4px); border-radius: 2px; background: var(--txt-2); }
.pager { bottom: 14px; inset-inline: 0; margin: 0 auto; width: max-content; }
.pager .txt { padding: 0 12px; font-size: 13.5px; color: var(--txt); white-space: nowrap; }
.zoom { bottom: 14px; inset-inline-end: 16px; }
.zoom .txt { min-width: 52px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--txt-2); font-size: 13px; padding: 0 4px; }
.zoom .txt:hover:not(:disabled) { background: var(--leaf); color: var(--txt); }
.now { bottom: 14px; inset-inline-start: 16px; gap: 10px; padding: 6px; padding-inline-end: 8px; width: 330px; max-width: calc(100% - 32px); }
.now .play { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--gilt); color: var(--gilt-ink); display: grid; place-items: center; flex: none; padding: 0; }
.now .play:disabled { background: var(--leaf); color: var(--txt-2); cursor: default; }
.now-kind { width: 36px; height: 36px; border-radius: 10px; background: var(--tile-soft); color: var(--tile); display: grid; place-items: center; flex: none; }
.now .meta { flex: 1; min-width: 0; }
.now .title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now .time { font-size: 11.5px; color: var(--txt-3); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; direction: ltr; }
.track { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 2px 0 0; background: transparent; direction: ltr; }
.track::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--tile) var(--p, 0%), var(--hair) var(--p, 0%)); }
.track::-moz-range-track { height: 4px; border-radius: 999px; background: var(--hair); }
.track::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--tile); }
.track::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--txt); border: 0; }
.track::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--txt); border: 0; }
.track:disabled::-webkit-slider-thumb { visibility: hidden; }
.track:disabled::-moz-range-thumb { visibility: hidden; }
.stage.over-video .now { bottom: 22px; inset-inline: 0; margin: 0 auto; width: min(560px, calc(100% - 32px)); }
.stage.over-video .media-box { bottom: 96px; } /* the picture stays above the playback bar */
.stage.over-video .stage-label { display: none; } /* the playback bar shows the name */

.stage:fullscreen { background-color: #000; }
.stage:fullscreen .viewport { border-radius: 0; }

/* meeting without a host: everybody's camera fills the stage */
.gallery { display: none; }
.room.gallery-on .stage { display: flex; flex-direction: column; overflow-y: auto; padding: 10px; }
.room.gallery-on .gallery { display: block; width: 100%; margin-block: auto; }
.room.gallery-on .sec-cams { display: none; }
.room.gallery-on .cam-grid { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.room.gallery-on .tile { aspect-ratio: 16 / 10; border-radius: 12px; }
.room.gallery-on .tile .tag { font-size: 13.5px; }
.room.gallery-on .tile .av { width: clamp(46px, 22%, 96px); height: auto; aspect-ratio: 1; font-size: clamp(18px, 3vw, 34px); }

/* ---------- side column: cameras, people, messages */

.side { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--binding); border-inline-start: 1px solid var(--hair); }
.sec { display: flex; flex-direction: column; min-height: 0; border-bottom: 1px solid var(--hair); }
.sec.grow { flex: 1; border-bottom: 0; }
.sec-people { flex: 0 1 auto; max-height: 42%; }
.sec-people.only { flex: 1; max-height: none; }
.sec-h { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; padding-inline-start: 14px; color: var(--txt-2); font-size: 13.5px; font-weight: 500; flex: none; }
.sec-h .icon { width: 17px; height: 17px; color: var(--txt-3); }
.sec-h .n { color: var(--txt-3); font-weight: 400; }
.sec-h .end { margin-inline-start: auto; display: flex; gap: 2px; }
.sec-h .icon-btn { width: 30px; height: 30px; border-radius: 8px; color: var(--txt-3); }
.sec-h .icon-btn:hover { color: var(--txt); }
.chat-mode { font-size: 11.5px; line-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--gilt-soft); color: var(--gilt); font-weight: 500; }
.chat-mode.off { background: var(--rose-soft); color: var(--rose-d); }
.cams { padding: 0 10px 10px; max-height: 38vh; overflow-y: auto; }
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cam-grid:has(> .tile:only-child) { grid-template-columns: 1fr; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #1b2622; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.cam-grid:has(> .tile:only-child) .tile { aspect-ratio: 16 / 10; }
.tile.speaking { outline-color: var(--tile); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: none; background: #000; }
.tile.has-video video { display: block; }
.tile.is-local video { transform: scaleX(-1); }
.tile .av { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; font-size: 18px; }
.tile.has-video .av { display: none; }
.tile .tag { position: absolute; bottom: 5px; inset-inline-start: 5px; max-width: calc(100% - 10px); display: flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 6px; background: rgba(9, 13, 11, .74); font-size: 12px; line-height: 22px; white-space: nowrap; overflow: hidden; }
.tile .tag .nm { overflow: hidden; text-overflow: ellipsis; }
.tile .tag .icon { width: 13px; height: 13px; }
.tile .tag .mic-on { color: var(--tile); }
.tile .tag .mic-off { color: var(--rose-d); }
.tile .tag .role-op { color: var(--gilt); }
.tile .tag .role-pr { color: var(--tile); }
.tile .hand { position: absolute; top: 6px; inset-inline-start: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gilt); color: var(--gilt-ink); display: none; place-items: center; }
.tile .hand .icon { width: 16px; height: 16px; }
.tile.hand-up .hand { display: grid; }

.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; flex: none; background: var(--avatar-bg, #2f5f8a); }
.people-note { margin: 0 14px 6px; font-size: 12.5px; color: var(--txt-3); }
.people { overflow-y: auto; padding: 0 6px 6px; min-height: 0; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; }
.person:hover, .person.open { background: var(--leaf); }
.person.clickable { cursor: pointer; }
.p-main { min-width: 0; display: grid; line-height: 1.35; }
.p-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-role { font-size: 11.5px; color: var(--txt-3); }
.p-role.op { color: var(--gilt); }
.p-role.pr { color: var(--tile); }
.p-icons { margin-inline-start: auto; display: flex; align-items: center; gap: 7px; color: var(--txt-3); flex: none; }
.p-icons .icon { width: 16px; height: 16px; }
.p-icons .on { color: var(--tile); }
.p-icons .off { color: var(--rose-d); }
.p-icons .muted-chat { color: var(--rose-d); }
.hand-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--gilt-ink); background: var(--gilt); border-radius: 999px; padding: 0 8px 0 6px; line-height: 20px; }
.hand-chip .icon { width: 13px; height: 13px; }
.p-menu { width: 28px; height: 28px; border-radius: 8px; color: var(--txt-2); }
.p-menu .icon { width: 16px; height: 16px; }

.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.chat > :first-child { margin-top: auto; }
.chat-empty { align-self: center; margin: auto; color: var(--txt-3); font-size: 13px; text-align: center; padding: 0 12px; }
.msg { align-self: flex-start; max-width: 88%; background: var(--leaf); border-radius: 12px; border-start-start-radius: 4px; padding: 5px 11px 7px; }
.msg.self { align-self: flex-end; background: #1d3a33; border-start-start-radius: 12px; border-start-end-radius: 4px; }
.msg.priv { box-shadow: inset 0 0 0 1px rgba(219, 165, 74, .35); }
.msg .who { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; color: var(--txt-3); }
.msg .who b { font-weight: 700; color: var(--txt-2); font-size: 12px; }
.msg.op .who b { color: var(--gilt); }
.msg.pr .who b { color: var(--tile); }
.msg .tag-priv { color: var(--gilt); }
.msg p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.sys { align-self: center; font-size: 11.5px; color: var(--txt-3); }
.composer { display: flex; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--hair); flex: none; }
.composer .field { flex: 1; min-width: 0; height: 40px; border-radius: 10px; background: var(--inkwell); border: 1px solid var(--hair); padding: 0 12px; color: var(--txt); font-size: 13.5px; display: block; }
.composer .field::placeholder { color: var(--txt-3); }
.composer .field:focus-visible { outline: 2px solid var(--gilt); border-color: var(--gilt); }
.composer .field:disabled { opacity: .7; }
.composer .icon-btn { width: 40px; height: 40px; color: var(--txt-2); }
.composer .send { background: var(--gilt); color: var(--gilt-ink); }
.composer .send:hover:not(:disabled) { background: var(--gilt-hi); }
.mtabs { display: none; gap: 4px; padding: 8px 10px 4px; }
.mtab { flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--txt-2); font-size: 13.5px; }
.mtab[aria-selected="true"] { background: var(--leaf); color: var(--txt); }
.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gilt); vertical-align: 2px; margin-inline-start: 4px; }

/* ---------- dock */

.dock { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--binding); border-top: 1px solid var(--hair); overflow-x: auto; }
.group { display: flex; gap: 2px; flex: none; }
.dsep { width: 1px; height: 38px; background: var(--hair); margin: 0 10px; flex: none; }
.db { display: grid; justify-items: center; gap: 3px; min-width: 64px; padding: 0 2px; border: 0; background: transparent; color: var(--txt-2); font-size: 11.5px; line-height: 1.2; }
.db .ic { position: relative; width: 46px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf); color: var(--txt); transition: background-color .15s; }
.db:hover:not(:disabled) .ic { background: var(--leaf-2); }
.db.live .ic { background: var(--tile-soft); color: var(--tile); }
.db.off .ic { background: var(--rose-soft); color: var(--rose-d); }
.db.on .ic, .db[aria-pressed="true"].toggle .ic { background: var(--gilt); color: var(--gilt-ink); }
.db.on, .db[aria-pressed="true"].toggle { color: var(--txt); }
.db.leave .ic { background: var(--rose-d); color: #fff; }
.db.rec .ic { color: var(--rose-d); }
.db.rec.rec-on .ic { background: var(--rose-d); color: #fff; }
.db.rec.rec-on .ic .icon { animation: rec-blink 1.6s ease-in-out infinite; }
.db.rec.rec-on:hover .ic { background: #cf5a50; }
.db.leave:hover .ic { background: #cf5a50; }
.db:disabled { opacity: .4; cursor: default; }
.db .badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--gilt); color: var(--gilt-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--binding); line-height: 1; }
.db-split { position: relative; display: flex; flex: none; }
.db-caret { position: absolute; top: 24px; inset-inline-end: 4px; width: 18px; height: 18px; border-radius: 6px; border: 0; padding: 0; display: grid; place-items: center; background: var(--leaf-2); color: var(--txt-2); box-shadow: 0 0 0 2px var(--binding); }
.db-caret .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.db-caret:hover { color: var(--txt); }

.audio-unlock { position: fixed; bottom: 100px; inset-inline: 0; margin: 0 auto; z-index: 30; width: max-content; max-width: calc(100% - 32px); }

/* ---------- menus */

.menu { position: fixed; z-index: 60; min-width: 236px; max-width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; background: var(--pop); border: 1px solid var(--hair); border-radius: 12px; padding: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); color: var(--txt); }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 13.5px; text-align: start; }
.mi:hover:not(:disabled), .mi:focus-visible, .mi.sub-open { background: var(--leaf); outline: none; }
.mi:disabled { opacity: .45; cursor: default; }
.mi > .icon { width: 18px; height: 18px; color: var(--txt-2); }
.mi .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi .end { margin-inline-start: auto; color: var(--txt-3); display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.mi .end .icon { width: 16px; height: 16px; }
.mi.danger, .mi.danger > .icon { color: var(--rose-d); }
.mi .check { color: var(--gilt); }
.mi .blank { visibility: hidden; }
.msep { height: 1px; background: var(--hair); margin: 5px 4px; }
.mlabel { font-size: 11.5px; color: var(--txt-3); padding: 6px 10px 2px; }
.mhead { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px; }
.mhead .p-name { font-size: 14px; }
.mempty { padding: 8px 10px; color: var(--txt-3); font-size: 13px; }
.switch { width: 32px; height: 18px; border-radius: 999px; background: var(--hair); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--txt-3); transition: inset-inline-start .15s; }
.switch.on { background: var(--tile); }
.switch.on::after { inset-inline-start: 16px; background: #fff; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, 32px); gap: 6px; padding: 6px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--pop), 0 0 0 4px var(--gilt); }
.size-row { display: flex; gap: 6px; padding: 6px; }
.size-opt { width: 52px; height: 38px; border-radius: 9px; border: 0; background: var(--leaf); display: grid; place-items: center; }
.size-opt i { display: block; width: 22px; height: var(--h); border-radius: 2px; background: var(--txt); }
.size-opt[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gilt); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 4px; }
.emoji { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0; }
.emoji:hover { background: var(--leaf); }

/* ---------- dialogs */

.page-room dialog.sheet {
  width: min(420px, calc(100% - 32px)); padding: 22px;
  border: 1px solid var(--hair); border-radius: 16px;
  background: var(--sheet); color: var(--txt);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}
.page-room dialog.sheet::backdrop { background: rgba(4, 7, 6, .64); }
.page-room dialog.sheet.wide { width: min(800px, calc(100% - 24px)); padding: 0; }
.page-room dialog.sheet h2 { margin: 0 0 .3rem; font-size: 18px; }
.page-room dialog.sheet p { margin: 0; color: var(--txt-2); }
.page-room dialog.sheet .actions { display: grid; gap: .6rem; margin-top: 1.1rem; }
.page-room dialog.sheet .actions.row { display: flex; flex-direction: row-reverse; justify-content: flex-start; }
.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-h h2 { margin: 0 !important; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wide .sheet-h { padding: 14px 12px 0 20px; padding-inline-start: 20px; margin: 0; }
.info-body { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row span:first-child { color: var(--txt-3); }
.info-row .good { color: var(--tile); } .info-row .bad { color: var(--rose-d); } .info-row .mid { color: var(--gilt); }
.copy-row { display: grid; gap: 6px; }
.copy-row .row { display: flex; gap: 6px; }
.copy-row .input { font-size: 12.5px; min-height: 38px; }
.settings { display: grid; gap: 12px; }
.settings .field span { font-size: 13.5px; color: var(--txt-2); }
.rollcall { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 0; }
.rollcall .btn { min-width: 180px; }

/* file manager */
.tabs { display: flex; gap: 6px; padding: 8px 16px 0; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.tab { display: flex; align-items: center; gap: 7px; padding: 9px 10px 10px; border: 0; background: transparent; font-size: 13.5px; color: var(--txt-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab .icon { width: 17px; height: 17px; }
.tab[aria-selected="true"] { color: var(--txt); border-bottom-color: var(--gilt); }
.ftools { display: flex; align-items: center; gap: 8px; padding: 14px 20px 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { padding: 0 12px; line-height: 30px; border: 0; border-radius: 999px; font-size: 13px; color: var(--txt-2); background: var(--leaf); }
.chip[aria-pressed="true"] { background: var(--gilt-soft); color: var(--gilt); }
.search { margin-inline-start: auto; width: 210px; height: 34px; border-radius: 9px; background: var(--inkwell); border: 1px solid var(--hair); display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--txt-3); }
.search .icon { width: 16px; height: 16px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--txt); font-size: 13px; outline: none; }
.flist { margin: 0 20px; border: 1px solid var(--hair); border-radius: 12px; overflow-y: auto; max-height: min(330px, 42vh); }
.fhead, .frow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px 92px 86px; align-items: center; gap: 12px; padding: 0 14px; }
.fhead { height: 34px; font-size: 12px; color: var(--txt-3); position: sticky; top: 0; background: #1a2521; z-index: 1; }
.frow { min-height: 46px; width: 100%; border: 0; border-top: 1px solid var(--hair); background: transparent; color: inherit; font-size: 13.5px; text-align: start; }
.frow:hover { background: rgba(255, 255, 255, .025); }
.frow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .nm input { width: 100%; height: 30px; border-radius: 7px; border: 1px solid var(--gilt); background: var(--inkwell); color: var(--txt); padding: 0 8px; font-size: 13.5px; }
.frow .sm { color: var(--txt-3); font-size: 12.5px; white-space: nowrap; }
.frow[aria-selected="true"] { background: var(--gilt-soft); box-shadow: inset -3px 0 0 var(--gilt); }
.fempty { padding: 28px 16px; text-align: center; color: var(--txt-3); }
.fic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.fic .icon { width: 17px; height: 17px; }
.fic.slide { background: var(--gilt-soft); color: var(--gilt); }
.fic.video { background: rgba(140, 160, 255, .14); color: #a9b7ff; }
.fic.audio { background: var(--tile-soft); color: var(--tile); }
.fic.misc { background: var(--leaf); color: var(--txt-2); }
.factions { display: flex; align-items: center; gap: 8px; padding: 14px 20px; flex-wrap: wrap; }
.push { margin-inline-start: auto; }
.quota { display: flex; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--txt-3); flex-wrap: wrap; }
.qbar { width: 200px; height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--gilt); }
.drop { margin: 20px; padding: 28px 20px; border: 1.5px dashed var(--hair); border-radius: 14px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.drop.over { border-color: var(--gilt); background: var(--gilt-soft); }
.drop .hint { max-width: 460px; }
.progress { width: min(360px, 100%); height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gilt); transition: width .2s; }
.urlpane { padding: 20px; display: grid; gap: 14px; }
.urlpane .field span { font-size: 13.5px; color: var(--txt-2); }
.urlpane .btn { justify-self: start; }
.seg-row { display: flex; gap: 18px; }
.radio { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.preview .pv-body { padding: 0 20px 20px; display: grid; place-items: center; min-height: 240px; }
.preview .pv-body canvas, .preview .pv-body img, .preview .pv-body video { max-width: 100%; max-height: 62vh; border-radius: 8px; background: #000; }
.preview .pv-body canvas { background: #fff; }

/* toasts float over the corner of the stage and never block a click */
.page-room #toasts { inset-inline: 16px auto; bottom: 96px; width: min(420px, calc(100% - 32px)); justify-items: start; padding: 0; }
.page-room:has(#now:not([hidden])) #toasts { bottom: 184px; }
.page-room .toast { pointer-events: none; background: #26332d; color: var(--txt); border: 1px solid var(--hair); font-size: 14px; }
.page-room .toast.error { background: #5b2522; border-color: #7a322d; }
.page-room .toast.ok { background: #18423b; border-color: #22594f; }
.page-room .toast.hand { background: var(--gilt); color: var(--gilt-ink); border-color: transparent; }

.frow.live .nm { color: var(--gilt); }
.frow.live .sm:nth-child(3) { color: var(--tile); }
.pv-pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--txt-2); }

/* ---------- class login card */
.login-card { gap: 1.1rem; padding: 30px 26px 26px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--txt); font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.login-mark { width: 34px; height: 34px; color: var(--gilt); stroke-width: 1.4; }
.page-room .login-mark { width: 34px; height: 34px; }
.login-room { display: grid; justify-items: center; gap: 2px; text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.login-room h1 { font-size: 21px; }
.login-fields { display: grid; gap: .8rem; }
.login-fields .input, .login-card #pj-name { min-height: 46px; }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.login-actions.single { grid-template-columns: 1fr; }
.link-btn { justify-self: center; border: 0; background: transparent; color: var(--gilt); font-size: 14px; padding: 2px 6px; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--gilt-hi); }
.ltr { direction: ltr; text-align: left; }

/* ---------- empty stage: nothing shown yet */
.stage-card.empty { background: transparent; border-color: transparent; }
.stage-card.empty .big-icon { width: 64px; height: 64px; opacity: .9; }
.stage-card.empty strong { font-size: 19px; }
.stage-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.stage-card-actions .btn { min-width: 136px; }
@media (max-width: 900px) {
  .stage-card-actions .btn { min-width: 0; }
}
.gate-stack { width: min(440px, 100%); display: grid; justify-items: center; gap: 16px; }
.gate-wait { margin: 0; text-align: center; color: var(--txt-2); font-size: 14px; line-height: 1.8; }
.gate-foot { color: var(--txt-3); font-size: 13.5px; }
.gate-foot:hover { color: var(--gilt); }
.pj-wait { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--gilt-soft); color: var(--txt); font-size: 13.5px; line-height: 1.7; }
.pj-wait .link-btn { flex: none; }
.spinner.small { width: 20px; height: 20px; border-width: 2px; flex: none; }

/* ---------- phones, upright or sideways (and narrow windows): small controls, the cameras in one
   strip, people and messages as tabs. Keep the first query the same as PHONE in room.js. */

@media (max-width: 900px) and (orientation: portrait), (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .room { grid-template-rows: 44px minmax(0, 1fr) auto; }
  .topbar { gap: 6px; padding: 0 4px; padding-inline-start: 10px; }
  .brand { gap: 8px; }
  .page-room .mark { width: 24px; height: 24px; }
  .brand h1 { font-size: 14px; }
  .pill, .tm-time, .room-status { display: none !important; }
  .top-meta { gap: 10px; font-size: 12.5px; }
  .top-meta .icon { width: 15px; height: 15px; }
  .topbar .icon-btn { width: 34px; height: 34px; }
  .room.side-off .side { display: flex; } /* "big board" means nothing on a phone */

  /* the stage: everything on it small */
  .stage-video, .media-box, .media-local, .stage-card { inset: 6px; border-radius: 8px; }
  .stage-video { width: calc(100% - 12px); height: calc(100% - 12px); }
  .stage.over-video .media-box, .media-local:not(.audio) { bottom: 52px; } /* the picture stays above the playback bar */
  .stage-card { padding: 12px; gap: .3rem; }
  .stage-card strong, .stage-card.empty strong { font-size: 15px; }
  .stage-card span { font-size: 12.5px; line-height: 1.7; }
  .page-room .big-icon, .stage-card.empty .big-icon { width: 34px; height: 34px; }
  .stage-card-actions { gap: 6px; margin-top: 6px; }
  .stage-card-actions .btn { min-width: 0; min-height: 34px; padding: 0 10px; font-size: 13px; }
  .stage-label { top: 6px; inset-inline-start: 6px; max-width: 55%; min-height: 26px; padding-inline-start: 8px; border-radius: 8px; font-size: 12px; }
  .stage.over-video .stage-label { display: none; } /* the playback bar shows the name */
  .stage:has(> #tools:not([hidden])) .stage-label { display: none; } /* the tools take the top; the dock's board button closes */
  .label-x { width: 22px; height: 22px; }
  .float { padding: 3px; border-radius: 10px; }
  .tools { top: 6px; gap: 0; flex-wrap: nowrap; justify-content: flex-start; max-width: calc(100% - 12px); overflow-x: auto; scrollbar-width: none; }
  .tools::-webkit-scrollbar { display: none; }
  .tools .tool, .pager .tool, .zoom .tool { width: 32px; height: 32px; flex: none; }
  .tools .vsep { margin: 0 3px; }
  .tools .ink-now { margin: 0 6px; flex: none; }
  .tools .size-now { flex: none; }
  .pager { bottom: 6px; }
  .pager .txt { padding: 0 6px; font-size: 12.5px; }
  .zoom { bottom: 6px; inset-inline-end: 6px; }
  .zoom #z-out, .zoom #z-in, .zoom #z-text, .zoom #z-sep { display: none; }
  .now, .stage.over-video .now { inset-inline: 6px; bottom: 6px; width: auto; max-width: 560px; margin: 0 auto; gap: 8px; padding: 4px; padding-inline-end: 4px; }
  .now .play, .now-kind, #now-stop { width: 32px; height: 32px; border-radius: 8px; }
  .now .meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
  .now .title { font-size: 12px; line-height: 1.4; }
  .now .time { grid-column: 2; grid-row: 1; font-size: 11px; gap: 3px; }
  .now .time span + span::before { content: "/"; margin-inline-end: 3px; }
  .now .track { grid-column: 1 / -1; height: 12px; margin: 0; }

  /* cameras: one row of small tiles that scrolls sideways */
  .sec-cams { flex: none; }
  .sec-cams .sec-h { display: none; }
  .cams { padding: 6px 8px; max-height: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  .room:not(.gallery-on) .cam-grid, .room:not(.gallery-on) .cam-grid:has(> .tile:only-child) { display: flex; gap: 6px; }
  .room:not(.gallery-on) .cam-grid .tile, .room:not(.gallery-on) .cam-grid:has(> .tile:only-child) .tile { flex: 0 0 112px; aspect-ratio: 14 / 9; border-radius: 8px; }
  .room:not(.gallery-on) .tile .av { width: 30px; height: 30px; font-size: 13px; }
  .tile .tag { bottom: 3px; inset-inline-start: 3px; max-width: calc(100% - 6px); padding: 0 5px; font-size: 11px; line-height: 18px; gap: 3px; }
  .tile .tag .icon { width: 11px; height: 11px; }
  .tile .hand { top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; }
  .tile .hand .icon { width: 13px; height: 13px; }

  /* people and messages, one at a time */
  .mtabs { display: flex; padding: 4px 8px 2px; }
  .mtab { height: 30px; font-size: 13px; border-radius: 8px; }
  .mtab-more { width: 30px; height: 30px; color: var(--txt-3); }
  .mtab .chat-mode { margin-inline-start: 4px; vertical-align: 1px; }
  .room[data-mtab="chat"] .sec-people, .room[data-mtab="people"] .sec-chat { display: none; }
  .room[data-mtab="people"] .sec-people { flex: 1; max-height: none; }
  .sec-people .sec-h, .sec-chat .sec-h { display: none; } /* the tabs above say the same, and carry the menu */
  .person { gap: 8px; padding: 4px 6px; }
  .person .av { width: 28px; height: 28px; font-size: 12px; }
  .p-name { font-size: 13px; }
  .chat { padding: 2px 10px 6px; gap: 6px; }
  .msg { padding: 4px 10px 5px; }
  .msg p { font-size: 13px; line-height: 1.65; }
  .chat-empty { font-size: 12.5px; }
  .composer { padding: 6px 8px; gap: 4px; }
  .composer .field { height: 36px; font-size: 13px; }
  .composer .icon-btn { width: 36px; height: 36px; }

  /* the dock: icons only */
  .dock { justify-content: space-between; gap: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .db { min-width: 0; flex: 1; font-size: 0; gap: 0; }
  .db .lb { display: none; }
  .db .ic { width: 42px; height: 36px; border-radius: 10px; }
  .db-caret { top: 20px; inset-inline-end: 2px; width: 16px; height: 16px; }
  .dsep { margin: 0 4px; height: 26px; }
  .group { flex: 1 1 auto; justify-content: space-around; }
  #c-people, #c-chat, #c-rec { display: none; } /* recording: in the menu */
  .rec-flag { padding: 0 7px; font-size: 11.5px; }

  .page-room #toasts, .page-room:has(#now:not([hidden])) #toasts { top: 50px; bottom: auto; inset-inline: 0; width: auto; align-content: start; justify-items: center; padding: 0 12px; }
  .page-room .toast { font-size: 13px; padding: .45rem .9rem; }
  .audio-unlock { bottom: 64px; }
}

/* upright: the stage on top, then the cameras and messages */
@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
  .main { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr); }
  .stage { height: min(75vw, 46vh); min-height: 200px; }
  .side { border-inline-start: 0; border-top: 1px solid var(--hair); }
}
@media (max-width: 380px) and (orientation: portrait) {
  .db .ic { width: 38px; height: 34px; }
  .top-meta .tm-net { display: none; }
}

/* sideways: the stage and the side column next to each other */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 601px) {
  .room { grid-template-rows: 40px minmax(0, 1fr) auto; }
  .main { grid-template-columns: minmax(0, 1fr) 250px !important; }
  .dock { justify-content: center; gap: 2px; padding: 3px 8px calc(3px + env(safe-area-inset-bottom)); }
  .db { flex: none; min-width: 46px; }
  .db .ic { height: 34px; }
  .group { flex: none; }
  .dsep { margin: 0 8px; }
}

/* ---------- narrow windows: dialogs and the file manager */
@media (max-width: 900px) {
  .page-room dialog.sheet.wide { width: calc(100% - 16px); }
  .fhead, .frow { grid-template-columns: 30px minmax(0, 1fr) 70px; }
  .fhead :nth-child(n+4), .frow :nth-child(n+4) { display: none; }
  .search { width: 100%; margin: 0; }
}

/* ---------- the server's recorder: only the stage, exactly the size of the recording (1280x720) */
.rec-mode .gate { display: none !important; }
.rec-mode .room { position: fixed; left: 0; top: 0; width: 1280px; height: 720px; grid-template-rows: minmax(0, 1fr); }
.rec-mode .topbar, .rec-mode .dock, .rec-mode .side, .rec-mode .audio-unlock, .rec-mode #toasts,
.rec-mode .tools, .rec-mode .pager, .rec-mode .zoom, .rec-mode .now, .rec-mode .stage-label { display: none !important; }
.rec-mode .main { grid-template-columns: minmax(0, 1fr) !important; }
.rec-mode .stage-video, .rec-mode .media-box, .rec-mode .stage.over-video .media-box { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.rec-mode .stage-card.empty strong { font-size: 28px; }
.rec-mode .stage-card.empty span { font-size: 16px; }
.rec-mode .stage-card.empty .big-icon { width: 76px; height: 76px; }
