/* Meetings (tools/portal/greenwich/js/meetings.js): the list in the portal's own look, the meeting itself on a dark navy
   stage like Meet and Teams, whatever the portal's theme. */

/* ---------------- list ---------------- */
.pg-meetings { max-width: 1100px; }
.mt-hero { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.mt-hero h2 { margin: 0 0 4px; font-size: 21px; }
.mt-hero p { margin: 0; }
.mt-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-hero-acts .btn svg, .mt-row-acts .btn svg { margin-right: 2px; }
.mt-code { display: flex; gap: 6px; }
.mt-code .input { width: 230px; }
.mt-warn { width: 100%; color: var(--warning); font-weight: 600; font-size: 13px; margin: 6px 0 0; }
.mt-card { padding-bottom: 6px; }
.mt-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.mt-card .card-title + .mt-row { border-top: 0; }
.mt-row-when { flex: none; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; align-content: center;
  background: var(--accent-tint); color: var(--accent); text-align: center; line-height: 1.05; }
.mt-row-when b { display: block; font-size: 17px; }
.mt-row-when span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mt-row-when[style*="--cc"] { background: color-mix(in srgb, var(--cc) 14%, transparent); color: var(--cc); }
.mt-row.is-live .mt-row-when { background: #E4F6EF; color: #0E7F57; }
:root[data-theme="dark"] .mt-row.is-live .mt-row-when { background: #11271D; color: #34D399; }
.mt-row-main { flex: 1; min-width: 0; }
.mt-row-title { font-weight: 650; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.mt-row-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.mt-row-acts { display: flex; gap: 6px; flex: none; }
.mt-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: #0E7F57; background: #E4F6EF; padding: 2px 8px; border-radius: 999px; }
.mt-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: mt-pulse 1.6s infinite; }
:root[data-theme="dark"] .mt-live { background: #11271D; color: #34D399; }
@keyframes mt-pulse { 50% { opacity: .35; } }
.mt-empty { color: var(--text-2); font-size: 13.5px; padding: 10px 0 14px; }
.mt-center { display: flex; justify-content: center; padding: 0 0 18px; }
@media (max-width: 640px) {
  .mt-row { flex-wrap: wrap; }
  .mt-row-acts { width: 100%; padding-left: 68px; }
  .mt-code { width: 100%; } .mt-code .input { flex: 1; width: auto; }
}

/* schedule form */
.mt-form .form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-form .form-row .form-field { min-width: 120px; }
.mt-results { display: grid; gap: 2px; margin-top: 4px; max-height: 220px; overflow: auto; }
.mt-res { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: var(--fill); border-radius: 9px; padding: 7px 9px; cursor: pointer; color: var(--text); }
.mt-res:hover { background: var(--fill-2); }
.mt-res span { display: grid; } .mt-res small { color: var(--text-2); }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-tint); color: var(--text); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 600; }
.mt-chip label { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; font-size: 12px; color: var(--text-2); }
.mt-chip button { border: 0; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.mt-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mt-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 6px 0; cursor: pointer; }
.mt-check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------------- avatars ---------------- */
.mt-av { --av: #0058AA; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--av); color: #fff; font-weight: 650; font-size: 12.5px; letter-spacing: .02em; }
.mt-av.is-lg { width: 72px; height: 72px; font-size: 26px; }
.mt-av.is-xl { width: 96px; height: 96px; font-size: 34px; }

/* ---------------- before joining ---------------- */
.mt-pre { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 28px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 8px 0 24px; }
.mt-pre-video { position: relative; aspect-ratio: 16 / 9; background: #0A0F33; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.mt-pre-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.mt-pre-off { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: rgba(255,255,255,.75); font-size: 14px; }
.mt-pre-meter { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.mt-pre-meter i { display: block; height: 100%; background: #89E9D7; transform-origin: left; transform: scaleX(0); transition: transform .2s; }
.mt-pre-btns { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.mt-pre-btns .mt-cb { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.mt-pre-btns .mt-cb.is-off { background: #C5221F; color: #fff; border-color: #C5221F; }
.mt-pre-side h2 { font-size: 26px; margin: 4px 0 6px; }
.mt-pre-kind { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mt-pre-here { font-weight: 600; margin: 14px 0 6px; }
.mt-pre-notes { white-space: pre-wrap; background: var(--fill); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0; max-height: 160px; overflow: auto; }
.mt-pre-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.mt-joinbtn { padding: 12px 26px; font-size: 15px; border-radius: 999px; }
.mt-joining { padding: 60px 0; text-align: center; color: var(--text-2); }
@media (max-width: 820px) { .mt-pre { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------- the meeting ---------------- */
body.mt-in-room { overflow: hidden; }
.mt-room { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #00021F; color: #fff;
  font-family: var(--font); --mt-ink: #fff; --mt-line: rgba(255,255,255,.12); --mt-btn: #1B2452; --mt-btn-h: #26306A; }
.mt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 6px; padding-top: max(10px, env(safe-area-inset-top)); }
.mt-top-title { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; }
.mt-top-title b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-top-title [data-timer] { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.mt-recdot { display: inline-flex; align-items: center; gap: 5px; color: #FF6B6B; font-weight: 600; font-size: 12.5px; }
.mt-lockdot { color: rgba(255,255,255,.7); display: inline-flex; }
.mt-top-acts { display: flex; gap: 4px; }
.mt-body { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 6px 16px; }
.mt-stage { flex: 1; min-width: 0; display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr);
  align-content: stretch; }
.mt-stage[data-n="1"] .mt-tile { max-width: 1100px; justify-self: center; width: 100%; }
.mt-stage[data-n="2"] { align-content: center; grid-auto-rows: auto; }
.mt-stage[data-n="2"] .mt-tile { aspect-ratio: 16 / 9; }
.mt-tile { position: relative; background: #0D1440; border-radius: 14px; overflow: hidden; min-height: 0; outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color .15s; }
.mt-tile.is-speaking { outline-color: #89E9D7; }
.mt-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #000; }
.mt-tile.has-video video { opacity: 1; }
.mt-tile.is-mirror video { transform: scaleX(-1); }
.mt-tile.is-screen video { object-fit: contain; }
.mt-tile-av { position: absolute; inset: 0; display: grid; place-items: center; }
.mt-tile.has-video .mt-tile-av { display: none; }
.mt-tile-name { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,2,31,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 10px 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.mt-tile-name [data-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-tile-mic { display: none; color: #FF8A80; }
.mt-tile.is-muted .mt-tile-mic { display: inline-flex; }
.mt-tile-hand { position: absolute; top: 10px; left: 10px; display: none; background: #F2C94C; color: #1B1444; border-radius: 9px; padding: 5px; }
.mt-tile.has-hand .mt-tile-hand { display: inline-flex; animation: mt-wave 1.2s ease-in-out 2; }
@keyframes mt-wave { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.mt-tile-state { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(0,0,0,.55); padding: 3px 9px; border-radius: 999px; }
.mt-tile-pin { position: absolute; top: 8px; right: 8px; border: 0; background: rgba(0,2,31,.6); color: #fff; border-radius: 8px; padding: 6px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.mt-tile:hover .mt-tile-pin, .mt-tile.is-focus .mt-tile-pin { opacity: 1; }
.mt-tile-state:not([hidden]) ~ .mt-tile-pin { top: 38px; }
/* spotlight: one big tile (a shared screen, the pinned or the loudest) and a strip of the rest */
.mt-stage.is-spot { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 132px; }
.mt-stage.is-spot .mt-tile.is-focus { grid-column: 1 / -1; grid-row: 1; }
.mt-stage.is-spot .mt-tile:not(.is-focus) { grid-row: 2; max-width: 236px; width: 100%; justify-self: center; }
.mt-stage.is-spot .mt-av.is-lg { width: 46px; height: 46px; font-size: 17px; }

.mt-float { position: absolute; left: 50%; bottom: 18%; font-size: 40px; pointer-events: none; animation: mt-float 2.6s ease-out forwards; }
.mt-floats { position: fixed; left: 0; right: 0; bottom: 90px; height: 0; z-index: 3; }
.mt-floats .mt-float { bottom: 0; left: 20%; }
@keyframes mt-float { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -20px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -160px) scale(1.1); } }

/* side panel */
.mt-panel { width: 340px; flex: none; background: #fff; color: #191634; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
:root[data-theme="dark"] .mt-panel { background: #0F1426; color: #EEF0F8; }
.mt-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 16px; }
.mt-panel-head h3 { margin: 0; font-size: 16px; }
.mt-panel .mt-ib { color: inherit; }
.mt-msgs { flex: 1; overflow: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mt-msg-who { font-size: 12.5px; font-weight: 650; }
.mt-msg-who span { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.mt-msg-body { font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.mt-msg-body a { color: var(--accent); text-decoration: underline; }
.mt-msg.is-me .mt-msg-who { color: var(--accent); }
.mt-msg-sys { font-size: 12.5px; color: var(--text-2); text-align: center; }
.mt-compose { display: flex; gap: 6px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.mt-compose textarea { flex: 1; resize: none; border: 1px solid var(--line); background: var(--fill); color: inherit; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; max-height: 120px; }
.mt-people { overflow: auto; padding: 4px 14px 14px; }
.mt-people .mt-copy { width: 100%; justify-content: center; margin-bottom: 10px; }
.mt-people-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); margin: 12px 2px 6px; }
.mt-person { display: flex; align-items: center; gap: 10px; padding: 7px 2px; }
.mt-person-name { flex: 1; min-width: 0; display: grid; }
.mt-person-name b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-person-name small { color: var(--text-2); font-size: 12px; }
.mt-person-icons { display: flex; gap: 6px; color: var(--text-2); }
.mt-hand-ic { color: #B4540A; }

/* bottom bar */
.mt-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 16px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.mt-bar-c { display: flex; gap: 10px; align-items: center; }
.mt-bar-r { display: flex; justify-content: flex-end; gap: 4px; }
.mt-code-label { color: rgba(255,255,255,.6); font-size: 13px; }
.mt-cb { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--mt-btn); color: #fff;
  transition: background .15s, transform .12s; }
.mt-cb:hover { background: var(--mt-btn-h); }
.mt-cb:active { transform: scale(.95); }
.mt-cb.is-off { background: #C5221F; }
.mt-cb.is-on { background: #89E9D7; color: #00033D; }
.mt-cb.mt-leave { width: 64px; border-radius: 999px; background: #C5221F; }
.mt-cb.mt-leave:hover { background: #A81C1A; }
.mt-ib { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mt-ib:hover { background: rgba(127,127,127,.18); }
.mt-ib-sm { width: 32px; height: 32px; }
.mt-ib i { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal; font-size: 11px; font-weight: 650;
  display: grid; place-items: center; background: #89E9D7; color: #00033D; }
.mt-ib i:empty { display: none; }
.mt-room.has-panel .mt-bar-r .mt-ib { color: #fff; }
.mt-pop-wrap { position: relative; }
.mt-pop { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; color: #191634; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4); padding: 6px; z-index: 5; }
:root[data-theme="dark"] .mt-pop { background: #1A2138; color: #EEF0F8; }
.mt-reacts { display: flex; gap: 2px; }
.mt-reacts button { font-size: 24px; border: 0; background: transparent; border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.mt-reacts button:hover { background: rgba(127,127,127,.15); transform: scale(1.12); }
.mt-menu { min-width: 260px; display: grid; }
.mt-menu button { display: flex; gap: 12px; align-items: center; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.mt-menu button:hover { background: rgba(127,127,127,.13); }
.mt-menu button.is-danger { color: #C5221F; }
.mt-bar .mt-menu { left: auto; right: 0; transform: none; }
.mt-menu.is-left { bottom: auto; top: calc(100% + 4px); right: 0; left: auto; transform: none; min-width: 210px; }

/* waiting, ended */
.mt-wait { position: absolute; inset: 0; z-index: 4; background: rgba(0,2,31,.94); display: grid; place-items: center; padding: 24px; text-align: center; }
.mt-wait-card h2 { font-size: 24px; margin: 14px 0 6px; color: #fff; }
.mt-wait-card p { color: rgba(255,255,255,.7); }
.mt-wait-acts { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.mt-wait .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.mt-spinner { width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #89E9D7; animation: mt-spin 1s linear infinite; }
@keyframes mt-spin { to { transform: rotate(360deg); } }

/* phones: the bar keeps the essentials, panels cover the stage */
@media (max-width: 760px) {
  .mt-body { padding: 4px 8px; }
  .mt-stage { gap: 6px; }
  .mt-stage[data-n="2"] { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
  .mt-stage[data-n="2"] .mt-tile { aspect-ratio: auto; }
  .mt-bar { grid-template-columns: 1fr; padding: 8px 8px 12px; }
  .mt-bar-l { display: none; }
  .mt-bar-c { justify-content: center; gap: 7px; flex-wrap: wrap; }
  .mt-bar-r { position: absolute; top: 6px; right: 8px; }
  .mt-top-acts { margin-right: 92px; }
  .mt-cb { width: 44px; height: 44px; }
  .mt-cb[data-share] { display: none; }
  .mt-panel { position: absolute; inset: 0; z-index: 6; width: auto; border-radius: 0; }
  .mt-stage.is-spot { grid-template-rows: minmax(0, 1fr) 96px; }
}

/* ---------------- an incoming call ---------------- */
.mt-ring { position: fixed; right: 20px; bottom: 20px; z-index: 2100; display: flex; align-items: center; gap: 14px; background: #00033D; color: #fff;
  padding: 14px 16px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,2,41,.45); min-width: 320px; animation: mt-ring-in .3s ease-out; }
.mt-ring .mt-av.is-lg { width: 48px; height: 48px; font-size: 18px; box-shadow: 0 0 0 0 rgba(137,233,215,.6); animation: mt-ring-pulse 1.6s infinite; }
.mt-ring-text { flex: 1; display: grid; }
.mt-ring-text span { color: rgba(255,255,255,.7); font-size: 13px; }
.mt-ring-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mt-ring-btn.is-no { background: #C5221F; }
.mt-ring-btn.is-yes { background: #1B8A7B; }
@keyframes mt-ring-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes mt-ring-pulse { 70% { box-shadow: 0 0 0 14px rgba(137,233,215,0); } 100% { box-shadow: 0 0 0 0 rgba(137,233,215,0); } }
@media (max-width: 640px) { .mt-ring { left: 12px; right: 12px; top: max(12px, env(safe-area-inset-top)); bottom: auto; min-width: 0; } }

/* ---------------- Manage › Timetable (js/admin-timetable.js) ---------------- */
.tta-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tta-day h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.tta-slot { border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); }
.tta-slot b { font-size: 13px; }
.tta-slot-t { font-weight: 650; margin: 4px 0 2px; }
.tta-acts { display: flex; gap: 4px; margin-top: 6px; }
.tta-online { background: var(--accent-tint); color: var(--accent); }
.tta-empty { color: var(--text-2); font-size: 13.5px; padding: 6px 0 12px; }
.tta-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); margin-right: 8px; flex: none; }
.tta-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tta-two .card + .card { margin-top: 0; }
@media (max-width: 860px) { .tta-two { grid-template-columns: 1fr; } }
.tta-line { display: flex; align-items: center; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); }
.tta-line:first-of-type { border-top: 0; }
.tta-line-m { flex: 1; min-width: 0; }
.tta-colours { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.tta-colours label { cursor: pointer; }
.tta-colours input { position: absolute; opacity: 0; }
.tta-colours span { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--cc); outline: 2px solid transparent; outline-offset: 2px; }
.tta-colours input:checked + span { outline-color: var(--text); }
.tta-students { max-height: 50vh; overflow: auto; display: grid; gap: 2px; }
.tta-stu { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.tta-stu:hover { background: var(--fill); }
.tta-stu span { display: grid; } .tta-stu small { color: var(--text-2); }
.tta-stu input { width: 16px; height: 16px; accent-color: var(--accent); }

/* dialogs and notices opened from inside a meeting show above it */
body.mt-in-room .modal-overlay { z-index: 2600; }
body.mt-in-room .toast-root { z-index: 2600; }

/* ================= Online Class, Zoom's layout (js/meetings.js Room) =================
   Zoom's dark window: a top bar (class info, view, full screen), the stage, side panels (Participants, Chat, Breakout
   Rooms), and the toolbar with icon-over-label buttons: Mute / Stop Video (each with a ^ menu) · Security · Participants ·
   Chat · Share Screen (green) · Record · Reactions · Breakout Rooms · More · End (red). */
.zm-room { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #1A1A1A; color: #fff; font-family: var(--font);
  --zm-panel: #242424; --zm-line: rgba(255,255,255,.1); --zm-hover: #333; --zm-red: #E02828; --zm-green: #12B76A; --zm-blue: #0E71EB; }
.zm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); font-size: 13px; }
.zm-top-l, .zm-top-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zm-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.zm-timer { color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.zm-rec { color: #FF6B6B; display: inline-flex; gap: 5px; align-items: center; font-weight: 600; font-size: 12px; }
.zm-locked { color: rgba(255,255,255,.7); display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.zm-tb { border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12.5px; }
.zm-tb:hover { background: var(--zm-hover); }
.zm-tb:first-child { color: #22C55E; }
.zm-banner { display: flex; align-items: center; justify-content: center; gap: 12px; background: #2D2D2D; padding: 7px 12px; font-size: 13px; }
.zm-banner-btn { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 12.5px; }
.zm-banner-btn:hover { background: var(--zm-hover); }
.zm-body { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 4px 8px; }
.zm-stage { flex: 1; min-width: 0; display: grid; gap: 6px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
.zm-stage[data-n="1"] .zm-tile { max-width: 1200px; justify-self: center; width: 100%; }
.zm-stage[data-n="2"] { align-content: center; grid-auto-rows: auto; }
.zm-stage[data-n="2"] .zm-tile { aspect-ratio: 16 / 9; }
.zm-tile { background: #232323; border-radius: 8px; }
.zm-tile.is-speaking { outline-color: #22C55E; }
.zm-tile-name-only { display: grid; place-items: center; }
.zm-bigname { font-size: clamp(15px, 2.2vw, 30px); font-weight: 500; color: #fff; padding: 0 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zm-tile .mt-tile-name { background: rgba(0,0,0,.6); left: 6px; bottom: 6px; border-radius: 4px; font-size: 12.5px; padding: 3px 8px 3px 6px; }
.zm-tile .mt-tile-mic { color: var(--zm-red); }
.zm-tile .mt-tile-hand { background: #F2C94C; }
.zm-fb { position: absolute; top: 8px; right: 8px; font-size: 22px; line-height: 1; }
.zm-fb:empty { display: none; }
.zm-tile .mt-tile-pin { top: auto; bottom: 6px; right: 6px; }
/* Zoom's speaker view: the active speaker large, the others in a strip across the top */
.zm-stage.is-spot { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 118px; }
.zm-stage.is-spot.is-speaker { grid-template-rows: 104px minmax(0, 1fr); }
.zm-stage.is-spot .zm-tile.is-focus { grid-column: 1 / -1; grid-row: 1; }
.zm-stage.is-spot.is-speaker .zm-tile.is-focus { grid-row: 2; }
.zm-stage.is-spot .zm-tile:not(.is-focus) { grid-row: 2; max-width: 210px; width: 100%; justify-self: center; }
.zm-stage.is-spot.is-speaker .zm-tile:not(.is-focus) { grid-row: 1; }
.zm-stage.is-spot .zm-tile:not(.is-focus) .zm-bigname { font-size: 13px; }

/* toolbar */
.zm-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; background: #1A1A1A; padding: 6px 10px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #2A2A2A; }
.zm-bar-l, .zm-bar-c, .zm-bar-r { display: flex; align-items: center; gap: 2px; }
.zm-bar-c { justify-content: center; flex-wrap: nowrap; }
.zm-btn-wrap { position: relative; }
.zm-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 70px; padding: 6px 8px 5px; border: 0; background: transparent; color: #fff; border-radius: 8px; cursor: pointer; font: inherit; }
.zm-btn:hover { background: var(--zm-hover); }
.zm-btn .zm-lb { font-size: 11.5px; color: rgba(255,255,255,.9); white-space: nowrap; }
.zm-btn .zm-ic { display: grid; place-items: center; height: 26px; }
.zm-btn.is-off .zm-ic { color: var(--zm-red); }
.zm-btn.is-share .zm-ic, .zm-btn.is-sharing .zm-ic { color: #fff; background: var(--zm-green); border-radius: 7px; width: 34px; height: 26px; }
.zm-btn.is-sharing .zm-ic { background: var(--zm-red); }
.zm-btn.is-rec .zm-ic { color: var(--zm-red); }
.zm-btn.is-blocked { opacity: .5; }
.zm-split { display: flex; align-items: flex-start; }
.zm-caret { border: 0; background: transparent; color: rgba(255,255,255,.8); padding: 8px 4px; border-radius: 6px; cursor: pointer; margin-left: -10px; }
.zm-caret:hover { background: var(--zm-hover); }
.zm-count { position: absolute; top: 2px; left: calc(50% + 9px); font-style: normal; font-size: 11px; font-weight: 600; color: #fff; }
.zm-badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--zm-red); color: #fff; font-style: normal; font-size: 10.5px; display: grid; place-items: center; }
.zm-end { border: 0; background: var(--zm-red); color: #fff; font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 8px; cursor: pointer; }
.zm-end:hover { background: #C21F1F; }

/* menus (dark, as in Zoom's meeting window) */
.zm-room .mt-pop { background: #2B2B2B; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.55); border: 1px solid #3A3A3A; }
.zm-menu { min-width: 250px; display: grid; padding: 6px; }
.zm-menu button { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.zm-menu button:hover:not(:disabled) { background: var(--zm-blue); }
.zm-menu button:disabled { opacity: .45; cursor: default; }
.zm-menu button.is-danger { color: #FF6B6B; }
.zm-menu button.is-danger:hover { color: #fff; background: var(--zm-red); }
.zm-menu hr { border: 0; border-top: 1px solid #3A3A3A; margin: 5px 4px; }
.zm-menu-h { font-size: 11.5px; color: rgba(255,255,255,.55); padding: 6px 10px 3px; }
.zm-tick { width: 16px; display: inline-grid; place-items: center; color: #fff; }
.zm-bar .mt-pop { bottom: calc(100% + 8px); }
.zm-menu.is-right { left: auto; right: 0; transform: none; }
.zm-menu.is-left-up { left: 0; transform: none; }
.zm-menu.is-up-right { bottom: calc(100% + 6px); top: auto; right: 0; left: auto; transform: none; }
.zm-top .mt-pop { bottom: auto; top: calc(100% + 6px); }
.zm-top .zm-menu.is-right { right: 0; left: auto; }
.zm-endpop { min-width: 220px; }
.zm-info { left: 0; transform: none; width: 340px; padding: 14px 16px; }
.zm-info h4 { margin: 0 0 10px; font-size: 15px; }
.zm-dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0 0 12px; font-size: 12.5px; }
.zm-dl dt { color: rgba(255,255,255,.55); }
.zm-dl dd { margin: 0; word-break: break-word; }
.zm-link { color: #6CB4FF; }

/* reactions */
.zm-react { padding: 10px; width: 330px; }
.zm-emoji { display: flex; justify-content: space-between; }
.zm-emoji button { font-size: 24px; border: 0; background: transparent; border-radius: 8px; width: 38px; height: 38px; cursor: pointer; }
.zm-emoji button:hover { background: var(--zm-hover); }
.zm-fbrow { display: flex; gap: 4px; margin: 8px 0; }
.zm-fbrow button { flex: 1; display: grid; justify-items: center; gap: 2px; border: 0; background: #333; color: #fff; border-radius: 8px; padding: 6px 2px; cursor: pointer; }
.zm-fbrow button span { font-size: 18px; } .zm-fbrow button small { font-size: 10px; color: rgba(255,255,255,.75); }
.zm-fbrow button.is-on { background: var(--zm-blue); }
.zm-handbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: #3A3A3A; color: #fff; border-radius: 8px; padding: 9px; cursor: pointer; font: inherit; font-weight: 600; }
.zm-handbtn:hover, .zm-handbtn.is-on { background: var(--zm-blue); }

/* side panels, Zoom's dark theme */
.zm-panel { width: 340px; flex: none; background: var(--zm-panel); color: #fff; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.zm-panel-head { display: flex; align-items: center; gap: 4px; padding: 10px 8px 8px 14px; border-bottom: 1px solid var(--zm-line); }
.zm-panel-head h3 { margin: 0; font-size: 14px; flex: 1; }
.zm-x { border: 0; background: transparent; color: rgba(255,255,255,.8); border-radius: 6px; padding: 5px; cursor: pointer; display: grid; place-items: center; }
.zm-x:hover { background: var(--zm-hover); }
.zm-panel .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.zm-panel .btn-ghost:hover { background: var(--zm-hover); }
.zm-people { flex: 1; overflow: auto; padding: 4px 6px 10px; }
.zm-people-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); margin: 10px 8px 4px; }
.zm-person { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.zm-person:hover { background: #2E2E2E; }
.zm-person-name { flex: 1; min-width: 0; display: flex; gap: 5px; align-items: baseline; }
.zm-person-name b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-person-name small { color: rgba(255,255,255,.6); font-size: 12px; white-space: nowrap; }
.zm-person-icons { display: flex; gap: 6px; align-items: center; color: rgba(255,255,255,.75); }
.zm-person-icons .is-red { color: var(--zm-red); }
.zm-pfb { font-size: 15px; }
.zm-person-acts { display: none; gap: 4px; position: absolute; right: 6px; background: #2E2E2E; padding-left: 6px; }
.zm-person:hover .zm-person-acts, .zm-person-acts.is-shown, .zm-person-acts:focus-within { display: flex; }
.zm-person-acts.is-shown { position: static; background: none; }
.zm-panel-foot { display: flex; gap: 6px; justify-content: center; padding: 10px; border-top: 1px solid var(--zm-line); }
.zm-panel .mt-msgs { padding: 10px 14px; }
.zm-panel .mt-msg-who { color: rgba(255,255,255,.85); font-weight: 600; font-size: 12px; }
.zm-panel .mt-msg-who span { color: rgba(255,255,255,.5); }
.zm-to { font-weight: 400; color: rgba(255,255,255,.6) !important; }
.zm-to em { font-style: normal; color: #FF9F43; }
.zm-panel .mt-msg-body { font-size: 13.5px; }
.zm-panel .mt-msg-body a { color: #6CB4FF; }
.zm-panel .mt-msg-sys { color: rgba(255,255,255,.55); }
.zm-msg-bc { background: #1E3A5F; border-radius: 8px; padding: 8px 10px; font-size: 13px; display: grid; gap: 3px; }
.zm-compose { border-top: 1px solid var(--zm-line); padding: 8px 10px 10px; }
.zm-to-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.zm-to-line select { background: var(--zm-blue); color: #fff; border: 0; border-radius: 5px; padding: 3px 6px; font: inherit; font-size: 12px; }
.zm-compose-row { display: flex; gap: 6px; align-items: flex-end; }
.zm-compose textarea { flex: 1; resize: none; background: #1A1A1A; color: #fff; border: 1px solid #3A3A3A; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
.zm-send { color: #6CB4FF; }
.zm-chat-off { padding: 14px; color: rgba(255,255,255,.6); font-size: 13px; text-align: center; border-top: 1px solid var(--zm-line); }
.zm-panel .mt-empty { color: rgba(255,255,255,.55); }
/* breakout rooms */
.zm-bo { flex: 1; overflow: auto; padding: 12px 14px; display: grid; gap: 8px; align-content: start; font-size: 13.5px; }
.zm-bo .muted { color: rgba(255,255,255,.6) !important; }
.zm-bo-line { display: flex; align-items: center; gap: 8px; }
.zm-bo-line .input { width: 72px; background: #1A1A1A; color: #fff; border-color: #3A3A3A; }
.zm-bo-room { background: #2E2E2E; border-radius: 8px; padding: 10px; }
.zm-bo-room-h { display: flex; align-items: center; gap: 8px; }
.zm-bo-room-h b { flex: 1; }
.zm-bo-names { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.zm-bo-names span { background: #3A3A3A; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.zm-bo-assign { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zm-bo-assign .input { width: 140px; background: #1A1A1A; color: #fff; border-color: #3A3A3A; padding: 4px 6px; }
.zm-room .mt-check { color: #fff; }

/* prompts inside the window, and the host's broadcast */
.zm-dialog { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.zm-dialog-card { background: #2B2B2B; color: #fff; border-radius: 12px; padding: 18px 20px; width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.zm-dialog-card h3 { margin: 0 0 8px; font-size: 16px; }
.zm-dialog-body { font-size: 13.5px; color: rgba(255,255,255,.85); }
.zm-dialog-body .input { width: 100%; background: #1A1A1A; color: #fff; border: 1px solid #3A3A3A; margin-top: 4px; }
.zm-dialog-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.zm-dialog .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.zm-broadcast { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 7; background: #0E71EB; color: #fff; border-radius: 10px; padding: 10px 16px; display: grid; gap: 2px; max-width: min(560px, 92vw); box-shadow: 0 12px 30px rgba(0,0,0,.4); cursor: pointer; }
.zm-broadcast span { font-size: 14px; }

/* phones: the essentials stay in the bar; the rest is in More */
@media (max-width: 760px) {
  .zm-bar { grid-template-columns: 1fr auto; }
  .zm-bar-l { grid-column: 1; }
  .zm-bar-c { grid-column: 1 / -1; grid-row: 2; justify-content: space-around; }
  .zm-btn { min-width: 0; padding: 5px 4px; }
  .zm-btn .zm-lb { font-size: 10.5px; }
  .zm-share, [data-record], [data-bowrap], [data-secwrap] .zm-lb { display: none !important; }
  .zm-title { max-width: 46vw; }
  .zm-panel { position: absolute; inset: 0; z-index: 6; width: auto; border-radius: 0; }
  .zm-stage.is-spot { grid-template-rows: minmax(0, 1fr) 86px; }
  .zm-react { width: 300px; }
}

/* Zoom's home: New Class (orange), Join, Schedule (blue) */
.zm-home { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-bottom: 18px; }
.zm-home-tiles { display: flex; gap: 22px; }
.zm-hometile { display: grid; justify-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; color: var(--text); font: inherit; }
.zm-hometile span { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #0E71EB; color: #fff; box-shadow: 0 6px 16px rgba(14,113,235,.25); transition: transform .15s; }
.zm-hometile.is-new span { background: #FF742E; box-shadow: 0 6px 16px rgba(255,116,46,.3); }
.zm-hometile:hover span { transform: translateY(-2px); }
.zm-hometile b { font-size: 13px; font-weight: 600; }

/* ---------------- live transcript: captions over the video, the Transcript panel, the transcript page ---------------- */
.zm-stagewrap { flex: 1; min-width: 0; position: relative; display: flex; }
.zm-stagewrap .zm-stage { flex: 1; }
.zm-captions { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; width: min(860px, 92%); background: rgba(0,0,0,.72);
  color: #fff; border-radius: 6px; padding: 8px 14px; font-size: 17px; line-height: 1.45; text-align: left; pointer-events: none; }
.zm-captions b { font-weight: 600; color: #9CC9FF; }
.zm-captions .is-interim { opacity: .75; }
.zm-btn.is-cc .zm-ic { color: #6CB4FF; }
.zm-tr-search { display: flex; align-items: center; gap: 8px; margin: 10px 12px 4px; background: #1A1A1A; border: 1px solid #3A3A3A; border-radius: 8px; padding: 6px 10px; color: rgba(255,255,255,.6); }
.zm-tr-search input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; font-size: 13px; outline: none; }
.zm-tr { flex: 1; overflow: auto; padding: 6px 12px 10px; display: grid; gap: 10px; align-content: start; }
.zm-tr-line { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: 13.5px; }
.zm-tr-line b { font-weight: 600; font-size: 12.5px; color: rgba(255,255,255,.85); }
.zm-tr-line p { margin: 1px 0 0; color: #fff; line-height: 1.45; }
.zm-tr-t { color: rgba(255,255,255,.5); font-size: 12px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.mt-trpage { max-width: 920px; }
.mt-tr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 14px 0; }
.mt-tr-head h2 { margin: 0 0 4px; font-size: 21px; }
.mt-tr-head p { margin: 0; }
.mt-tr-acts { display: flex; gap: 8px; }
.mt-tr-acts .input { width: 240px; }
.mt-tr-card { display: grid; gap: 12px; }
.mt-tr-line { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 14px; }
.mt-tr-line b { font-size: 13px; }
.mt-tr-line p { margin: 2px 0 0; line-height: 1.5; }
.mt-tr-t { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .zm-ccwrap { display: none !important; } .zm-captions { font-size: 15px; bottom: 8px; } .mt-tr-acts .input { width: 100%; } }
