:root {
  --bg: #0e0f13;
  --surface: #181a20;
  --surface-2: #22252d;
  --surface-3: #2d313b;
  --line: #2f333d;
  --text: #f2f3f5;
  --muted: #9aa0ad;
  --accent: #7c5cff;
  --accent-2: #9b83ff;
  --danger: #ea4335;
  --ok: #34c77b;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Heebo, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }

.view { height: 100dvh; }

/* ───────────── shared pieces ───────────── */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 28px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.sub { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.small svg { width: 16px; height: 16px; }
.btn.big { height: 52px; font-size: 17px; width: 100%; }

.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.round {
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--surface-3); color: var(--text);
  display: grid; place-items: center;
  transition: background .15s, transform .05s;
}
.round:hover { background: #3a3f4b; }
.round:active { transform: scale(.95); }
.round.off { background: var(--danger); color: #fff; }
.round.off:hover { background: #f05a4d; }
.round.on { background: #dcd5ff; color: #2a1d6b; }
.round.on:hover { background: #ebe6ff; }
.round.danger { background: var(--danger); color: #fff; }
.round.danger:hover { background: #f05a4d; }
.round.wide { width: 68px; border-radius: 26px; }
.round:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

/* button + small arrow that opens the device list */
.split { display: flex; align-items: center; background: var(--surface-2); border-radius: 28px; }
.preview .split { background: rgba(20, 21, 26, .7); backdrop-filter: blur(6px); }
.caret { width: 30px; height: 52px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 0; border-start-end-radius: 28px; border-end-end-radius: 28px; padding: 0; padding-inline-end: 4px; }
.caret:hover { color: var(--text); }
.caret svg { width: 16px; height: 16px; }
.caret:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }

.menu {
  position: fixed; z-index: 30; width: max-content; min-width: 240px; max-width: min(360px, calc(100vw - 16px));
  max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.menu h3 { font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 10px 4px; }
.menu p { font-size: 14px; color: var(--muted); padding: 6px 10px 8px; }
.menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; text-align: start; font-size: 15px; }
.menu button:hover { background: var(--surface-3); }
.menu button svg { width: 16px; height: 16px; color: var(--accent-2); visibility: hidden; }
.menu button.current svg { visibility: visible; }
.menu button.current { font-weight: 600; }
.menu button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.round.recording { background: var(--danger); color: #fff; animation: pulse 1.6s infinite; }
.rec-badge.live { background: rgba(234, 67, 53, .18); color: #ffb4ab; }
.rec-badge.live i { background: var(--danger); }

/* ───────────── tiles ───────────── */
.tile {
  position: relative; overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius);
  min-width: 0; min-height: 0;
  outline: 3px solid transparent; outline-offset: -3px;
  transition: outline-color .15s;
}
.tile.speaking { outline-color: var(--accent-2); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile.mirror video { transform: scaleX(-1); }
.tile.screen video { object-fit: contain; }
.tile.no-video video { opacity: 0; }
.avatar {
  position: absolute; inset: 0; margin: auto;
  width: clamp(64px, 22%, 120px); aspect-ratio: 1; height: auto;
  border-radius: 50%; background: var(--accent);
  display: none; place-items: center;
  font-size: clamp(26px, 5vw, 46px); font-weight: 600; color: #fff;
}
.tile.no-video .avatar { display: grid; }
.tile .label {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 500;
}
.tile .label .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .label svg { width: 15px; height: 15px; color: #ff8a80; display: none; }
.tile.mic-off .label svg { display: block; }
.tile .status {
  position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 3px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6);
  font-size: 13px; color: #ffd27a;
}

/* ───────────── logo ───────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo [data-logo] { display: block; }
.logo svg { width: 40px; height: 40px; stroke: none; filter: drop-shadow(0 6px 16px rgba(110, 90, 255, .5)); }
.logo-word { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.done-logo { margin-bottom: 28px; }

/* ───────────── lobby ───────────── */
#lobby { position: relative; isolation: isolate; overflow: auto; display: flex; flex-direction: column; padding: 0 36px 28px; background: #0a0b10; }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 640px; height: 640px; background: #6442ee; opacity: .55; top: -240px; right: -140px; }
.aurora i:nth-child(2) { width: 560px; height: 560px; background: #1f7bff; opacity: .34; bottom: -260px; left: -160px; animation-duration: 30s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: #ff5fa8; opacity: .13; top: 34%; left: 38%; animation-duration: 36s; animation-delay: -14s; }
.aurora::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 42%, #000 15%, transparent 72%);
}
@keyframes drift { to { transform: translate3d(70px, 50px, 0) scale(1.14); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes bob { 50% { transform: translateY(-7px); } }

.lobby-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.top-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #cfd3dc; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(10px); white-space: nowrap; }
.top-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 199, 123, .18); }

.lobby { width: min(1140px, 100%); margin: auto; padding-block: 12px 32px; display: grid; grid-template-columns: 1.18fr 1fr; gap: 72px; align-items: center; direction: ltr; }
.lobby > * { direction: rtl; min-width: 0; }

/* camera preview in a glowing gradient frame, with two floating promises */
.preview-frame {
  position: relative; padding: 1.5px; border-radius: 30px;
  background: linear-gradient(140deg, rgba(163, 139, 255, .95), rgba(111, 214, 255, .55) 42%, rgba(255, 255, 255, .07) 72%);
  box-shadow: 0 50px 100px -36px rgba(0, 0, 0, .9), 0 0 140px -30px rgba(110, 90, 255, .55);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.preview { aspect-ratio: 16 / 10; width: 100%; border-radius: 28.5px; background: linear-gradient(160deg, #262933, #13141a); }
.preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 40%); pointer-events: none; }
.preview .label { top: 16px; bottom: auto; inset-inline-start: 16px; z-index: 1; }
.preview-controls { position: absolute; bottom: 20px; inset-inline: 0; display: flex; justify-content: center; gap: 12px; z-index: 1; }
.preview-msg { position: absolute; bottom: 92px; inset-inline: 24px; text-align: center; color: #d5d8e0; font-size: 14px; z-index: 1; }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 10px 0; padding-inline: 12px 16px;
  border-radius: 18px; background: rgba(20, 21, 28, .84); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .8);
  animation: rise .7s .35s cubic-bezier(.2, .7, .2, 1) both, bob 7s 1.1s ease-in-out infinite;
}
.float-card > span { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #a38bff, #6442ee); color: #fff; }
.float-card svg { width: 18px; height: 18px; }
.float-card b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.float-card p { font-size: 12.5px; color: #b3b8c5; white-space: nowrap; line-height: 1.4; }
.fc-summary { top: -22px; inset-inline-end: -26px; }
.fc-summary > span { background: linear-gradient(135deg, #6fd6ff, #3b82ff); }
.fc-caption { bottom: -22px; inset-inline-start: -22px; animation-delay: .5s, 2.4s; }

.lobby-form > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.lobby-form > :nth-child(2) { animation-delay: .06s; }
.lobby-form > :nth-child(3) { animation-delay: .12s; }
.lobby-form > :nth-child(n+4) { animation-delay: .18s; }
.meet-name { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #c9bdff; background: rgba(124, 92, 255, .18); border: 1px solid rgba(155, 131, 255, .3); }
.lobby-form h1 { font-size: clamp(32px, 4.1vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px; }
.lobby-form h1 em { font-style: normal; background: linear-gradient(95deg, #6fd6ff, #a38bff 60%, #d7a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lobby-form .sub { margin-bottom: 26px; font-size: 17px; line-height: 1.6; color: #a9afbc; max-width: 30em; }

.join-card {
  padding: 22px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 32, 42, .78), rgba(20, 21, 28, .78)); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 36px 80px -34px rgba(0, 0, 0, .85);
}
.fields { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 16px; min-width: 0; }
.field > span { display: block; font-size: 13.5px; color: #a9afbc; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; height: 50px; padding: 0 14px;
  border-radius: 13px; border: 1px solid rgba(255, 255, 255, .11); background: rgba(255, 255, 255, .045);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, select:hover { border-color: rgba(255, 255, 255, .22); }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, select:focus { outline: none; border-color: var(--accent-2); background: rgba(255, 255, 255, .065); box-shadow: 0 0 0 4px rgba(124, 92, 255, .24); }
select option { background: var(--surface-2); }
input::placeholder { color: #6b7280; }
.join-card .btn.primary.big {
  position: relative; overflow: hidden; height: 56px; border: 0; border-radius: 14px; font-size: 18px; font-weight: 700;
  background: linear-gradient(110deg, #9a7dff, #6442ee 55%, #3f7dff); background-size: 160% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 16px 36px -12px rgba(110, 90, 255, .9);
  transition: background-position .4s, transform .05s, box-shadow .2s;
}
.join-card .btn.primary.big:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 20px 44px -12px rgba(110, 90, 255, 1); }
.code-row { margin-top: 20px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.code-line { display: flex; gap: 8px; }
.code-line input { flex: 1; min-width: 0; height: 46px; }
.code-line .btn { height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); }
.code-line .btn:hover { background: rgba(255, 255, 255, .12); }
.note { margin-top: 14px; font-size: 14px; color: #ffd27a; }
.note:empty { display: none; }
.fine { margin-top: 16px; font-size: 13px; color: #7d8391; letter-spacing: .01em; }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .float-card, .preview-frame, .lobby-form > * { animation: none; }
}

/* ───────────── sign-in + dashboard pages ───────────── */
.page { position: relative; isolation: isolate; height: 100dvh; overflow: auto; display: flex; flex-direction: column; padding: 0 36px 28px; background: #0a0b10; }
.aurora.dim i { opacity: .28 !important; }
.btn.danger { background: rgba(234, 67, 53, .12); border-color: rgba(234, 67, 53, .38); color: #ffb4ab; }
.btn.danger:hover { background: rgba(234, 67, 53, .22); }
.btn svg { width: 18px; height: 18px; }

.auth-wrap { width: min(430px, 100%); margin: auto; padding-block: 8px 72px; animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { margin: 4px 0 22px; }
.auth-join { margin-top: 26px; }

.page.dash { overflow: hidden; padding-bottom: 0; }
.dash-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.dash-top-actions { display: flex; align-items: center; gap: 10px; }
.user-wrap { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 6px; padding-inline: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); }
.user-btn:hover { background: rgba(255, 255, 255, .1); }
.user-btn i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 15px; }
.user-btn svg { width: 16px; height: 16px; color: var(--muted); }
.menu.user-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; }
.user-menu p { direction: ltr; text-align: start; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.dash-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 410px minmax(0, 1fr); gap: 22px; padding-bottom: 22px; }
.dash-list { display: flex; flex-direction: column; min-height: 0; border-radius: 22px; background: rgba(22, 24, 31, .74); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; }
.list-head { padding: 20px 18px 12px; }
.list-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.list-head .count, .card h2 .count { font-size: 13px; font-weight: 600; color: #c9bdff; background: rgba(124, 92, 255, .18); border-radius: 999px; padding: 1px 9px; letter-spacing: 0; }
.list-head .count:empty { display: none; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; margin-top: 14px; padding: 0 12px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.search:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.search svg { width: 17px; height: 17px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; }
.list { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.list-empty { padding: 18px 12px; }
.m-item { display: block; width: 100%; text-align: start; padding: 13px 12px; border: 1px solid transparent; border-radius: 15px; background: transparent; }
.m-item:hover { background: rgba(255, 255, 255, .05); }
.m-item.sel { background: rgba(124, 92, 255, .14); border-color: rgba(155, 131, 255, .4); }
.m-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-top h3 { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.m-meta span + span::before { content: '·'; margin-inline-end: 10px; }
.m-snippet { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: #b6bbc7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-tasks { display: inline-block; margin-top: 7px; font-size: 12.5px; color: #ffd27a; }
.badge { flex: none; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.badge.live { background: rgba(52, 199, 123, .16); color: #7be3ad; }
.badge.open { background: rgba(124, 92, 255, .18); color: #c9bdff; }
.badge.ended { background: var(--surface-3); color: var(--muted); }

.badge.sched { background: rgba(255, 190, 80, .14); color: #ffd27a; }
.view-tabs { width: max-content; }
.view-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; font-size: 16px; font-weight: 600; }
.dash-tasks { grid-column: 1 / -1; min-height: 0; overflow-y: auto; }
.dash-main.tasks-mode { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.dash-main.tasks-mode .dash-detail, .dash-main.tasks-mode .search, .dash-main.tasks-mode .list { display: none; }
.dash-main.tasks-mode .dash-list { background: transparent; border: 0; backdrop-filter: none; overflow: visible; }
.dash-main.tasks-mode .list-head { padding: 0; }
.tasks-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tasks-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dash-tasks .task-card { background: rgba(22, 24, 31, .74); backdrop-filter: blur(16px); border-color: rgba(255, 255, 255, .09); }
.task.from-meeting { cursor: default; }
.task-text { display: block; }
.task-from { display: inline-block; margin-top: 2px; padding: 0; border: 0; background: transparent; color: var(--accent-2); font-size: 12.5px; text-align: start; }
.task-from:hover { text-decoration: underline; }
.task input:checked + span .task-text { color: var(--muted); text-decoration: line-through; }

.ask-log { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ask-log:not(:empty) { margin-bottom: 12px; }
.ask-q { align-self: flex-start; max-width: 85%; padding: 8px 13px; border-radius: 14px; border-start-start-radius: 4px; background: rgba(124, 92, 255, .26); }
.ask-a { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 14px; border-start-end-radius: 4px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); overflow-wrap: anywhere; }
.ask-a p { margin: 4px 0; }
.ask-a ul, .ask-a ol { margin: 4px 0; padding-inline-start: 20px; }
.ask-a h3 { font-size: 15px; margin: 8px 0 2px; }
.ask-a.pending { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; height: 42px; }
.ask-form .btn { height: 42px; padding: 0 18px; }
.dialog.wide { width: min(680px, calc(100vw - 32px)); }
.dialog input[type=date], .dialog input[type=time] { width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .11); background: rgba(255, 255, 255, .045); color-scheme: dark; }
.dialog .fields { grid-template-columns: 1fr 1fr; }

.dash-detail { min-height: 0; overflow-y: auto; padding-inline-end: 6px; }
.empty-detail { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); text-align: center; padding: 24px; }
.empty-detail svg { width: 40px; height: 40px; opacity: .5; }
.d-back { display: none; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); padding: 4px 0; margin-bottom: 6px; }
.d-back svg { width: 18px; height: 18px; }
input.d-title { width: 100%; height: auto; padding: 6px 10px; margin-inline: -10px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; background: transparent; border: 1px solid transparent; border-radius: 12px; }
input.d-title:hover { border-color: rgba(255, 255, 255, .12); }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 14px; color: #b6bbc7; font-size: 14px; }
.d-meta .fact { display: inline-flex; align-items: center; gap: 6px; }
.d-meta svg { width: 16px; height: 16px; color: var(--muted); }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.d-actions .btn { height: 40px; padding: 0 14px; font-size: 15px; }
.dash-detail .card { background: rgba(22, 24, 31, .74); backdrop-filter: blur(16px); border-color: rgba(255, 255, 255, .09); }
.summary .state .btn { margin-inline-start: 4px; }

.dialog { width: min(430px, calc(100vw - 32px)); padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.dialog::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.dialog .sub { margin: -6px 0 6px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 820px) {
  .page { padding-inline: 16px; }
  .dash-main { grid-template-columns: minmax(0, 1fr); }
  .dash-main .dash-detail { display: none; }
  .dash-main.show-detail .dash-list { display: none; }
  .dash-main.show-detail .dash-detail { display: block; }
  .d-back { display: inline-flex; }
  input.d-title { font-size: 23px; }
  #newBtn span:last-child, #schedBtn span:last-child, #askAllBtn span:last-child, #userName { display: none; }
  #schedBtn, #askAllBtn { padding: 0 12px; }
  .dash-top-actions { gap: 6px; }
  #newBtn { padding: 0 12px; }
}

/* ───────────── the summary as cards ───────────── */
.sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sum-sec { grid-column: 1 / -1; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); --tint: 155, 131, 255; }
.sum-sec h3, .summary .sum-sec h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.sum-sec h3 i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--tint), .18); color: rgb(var(--tint)); }
.sum-sec h3 svg { width: 16px; height: 16px; }
.sum-body p { margin: 4px 0; }
.sum-body ul, .sum-body ol { margin: 0; padding: 0; list-style: none; }
.sum-body li { position: relative; margin: 7px 0; padding-inline-start: 18px; line-height: 1.55; }
.sum-body li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--tint)); }
.sum-lead { --tint: 163, 139, 255; background: linear-gradient(135deg, rgba(124, 92, 255, .24), rgba(59, 130, 255, .12)); border-color: rgba(163, 139, 255, .38); padding: 20px 22px; }
.sum-lead .sum-body p { font-size: 18px; line-height: 1.65; font-weight: 500; }
.sum-topics { --tint: 111, 214, 255; }
.sum-decisions { --tint: 82, 214, 150; grid-column: auto; }
.sum-questions { --tint: 255, 190, 80; grid-column: auto; }
@media (max-width: 700px) { .sum-decisions, .sum-questions { grid-column: 1 / -1; } }

/* ───────────── switches + share dialog ───────────── */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row b { display: block; font-weight: 600; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }
.switch-row.disabled { opacity: .45; cursor: default; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { inset-inline-start: 21px; }
.share-state { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 12px; font-size: 14px; color: var(--muted); }
.share-state svg { width: 17px; height: 17px; margin-top: 2px; }
.share-state.on { color: #7be3ad; }
.btn.shared { border-color: rgba(52, 199, 123, .45); color: #7be3ad; background: rgba(52, 199, 123, .1); }

/* ───────────── public summary page ───────────── */
.share-wrap { width: min(860px, 100%); margin: 0 auto; padding: 18px 0 40px; animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.share-wrap > * + * { margin-top: 18px; }
.share-hero { padding: 6px 0 4px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #c9bdff; background: rgba(124, 92, 255, .18); border: 1px solid rgba(155, 131, 255, .3); border-radius: 999px; padding: 3px 12px; }
.share-hero h1 { margin: 14px 0 12px; font-size: clamp(30px, 5vw, 50px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; background: linear-gradient(95deg, #fff 30%, #c9bdff 70%, #8fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.share-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: #b6bbc7; font-size: 15px; }
.share-facts .fact { display: inline-flex; align-items: center; gap: 8px; }
.share-facts svg { width: 17px; height: 17px; color: var(--muted); }
.faces { display: inline-flex; }
.faces i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; color: #fff; background: var(--accent); border: 2px solid #0a0b10; margin-inline-start: -8px; }
.faces i:first-child { margin-inline-start: 0; }
.faces i:nth-child(2n) { background: #3b82ff; }
.faces i:nth-child(3n) { background: #1fa971; }
.share-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.stat { min-width: 104px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px); }
.stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.share-actions .btn { height: 40px; font-size: 15px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.share-page .card, .share-page .sum-sec { backdrop-filter: blur(14px); }
.share-page .card { background: rgba(22, 24, 31, .72); border-color: rgba(255, 255, 255, .09); }
.share-tasks > h2 { margin-bottom: 14px; }
.task-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.task-card { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.task-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.task-card h3 i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; }
.task-card h3 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.task.ro { cursor: default; flex-wrap: wrap; }
.task.ro:hover { background: transparent; }
.task .tick { flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.task .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.task.done .tick { background: var(--ok); border-color: var(--ok); color: #0a0b10; }
.task.done > span { color: var(--muted); text-decoration: line-through; }
.share-msg { margin: 12vh auto 0; text-align: center; max-width: 440px; }
.share-msg svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--accent-2); }
.share-msg h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.share-foot { flex: none; margin-top: auto; padding-top: 24px; text-align: center; font-size: 13px; color: #6f7583; }
.top-pill svg { width: 15px; height: 15px; }
.top-pill:has(svg) i { display: none; }

@media print {
  body, .page { background: #fff !important; color: #111 !important; overflow: visible !important; height: auto !important; }
  .aurora, .share-actions, .share-foot, .top-pill, .toast { display: none !important; }
  .share-hero h1 { color: #111 !important; background: none !important; -webkit-text-fill-color: #111; }
  .share-facts, .stat span, .sub, .task-card h3 small, .t-head time { color: #555 !important; }
  .card, .sum-sec, .stat, .task-card { background: #fff !important; border-color: #ddd !important; backdrop-filter: none !important; break-inside: avoid; }
  .sum-sec h3, .summary .sum-sec h3, .card h2 { color: #111 !important; }
  .logo-word { color: #111; }
  details.card > .done-transcript { display: block; }
}

/* ───────────── room ───────────── */
#room { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; }
.room-info { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; min-width: 0; }
.timer { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.rec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(124, 92, 255, .16); color: #c9bdff; font-size: 13px; white-space: nowrap; }
.rec-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: pulse 1.6s infinite; }
.rec-badge.paused { background: var(--surface-2); color: var(--muted); }
.rec-badge.paused i { animation: none; background: var(--muted); }
.rec-badge.warn { background: rgba(255, 190, 80, .14); color: #ffd27a; }
.rec-badge.warn i { animation: none; background: #ffd27a; }
@keyframes pulse { 50% { opacity: .25; } }

.stage { display: flex; gap: 12px; padding: 4px 16px; min-height: 0; }
.grid-wrap { position: relative; flex: 1; min-width: 0; min-height: 0; }
.grid { height: 100%; display: grid; gap: 10px; grid-auto-rows: minmax(0, 1fr); grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.grid[data-count="1"] { --cols: 1; }
.grid[data-count="2"] { --cols: 2; }
.grid[data-count="3"], .grid[data-count="4"] { --cols: 2; }
.grid[data-count="5"], .grid[data-count="6"] { --cols: 3; }
.grid[data-count="3"] .tile:last-child, .grid[data-count="5"] .tile:last-child { justify-self: center; }
.grid[data-count="1"] .tile { max-width: 1100px; width: 100%; justify-self: center; }

/* someone is sharing a screen: one big tile + a strip of the rest */
.grid.has-spot { position: relative; display: flex; flex-direction: column; align-items: flex-end; overflow-y: auto; }
.grid.has-spot .tile { width: 190px; aspect-ratio: 16 / 10; flex: none; }
.grid.has-spot .tile.spot { position: absolute; inset-block: 0; inset-inline: 0 200px; width: auto; aspect-ratio: auto; }
.grid.has-spot[data-count="1"] .tile.spot { inset-inline-end: 0; max-width: none; }

/* half and half: the shared screen beside a full column of people */
.grid.has-spot.layout-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); align-items: stretch; overflow: visible; }
.grid.has-spot.layout-split .tile { width: auto; aspect-ratio: auto; grid-column: 2; }
.grid.has-spot.layout-split .tile.spot { position: relative; inset: auto; grid-column: 1; grid-row: 1 / span var(--rest, 1); }
.grid.has-spot.layout-split[data-count="1"] { grid-template-columns: minmax(0, 1fr); }

/* one tile on the whole screen (double-click) */
.tile:fullscreen { border-radius: 0; outline: 0; background: #000; }
.tile:fullscreen video { object-fit: contain; }
.tile.board:fullscreen { background: #15171c; }

/* people asking to come in (host) */
.knocks { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: min(380px, calc(100% - 24px)); }
.knock { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(24, 26, 32, .95); border: 1px solid rgba(155, 131, 255, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); animation: rise .25s ease both; }
.knock span { flex: 1; min-width: 0; font-size: 15px; }
.join-card .btn.primary.big.waiting { opacity: 1; background: var(--surface-3); box-shadow: none; color: var(--text); }
.link-btn { display: block; margin: 10px auto 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 14px; }

/* side panel tabs + chat */
.tabs { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--surface-2); }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 500; }
.tabs button.sel { background: var(--surface-3); color: var(--text); }
.chat-msg { margin-top: 12px; }
.chat-text { display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 14px; border-start-start-radius: 4px; background: var(--surface-2); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-msg.mine .chat-text { background: rgba(124, 92, 255, .28); }
.chat-text a { color: #9fd0ff; }
.chat-form { flex: none; display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 40px; }
.chat-form .btn { height: 40px; }
.round.has-badge { position: relative; }
.badge-n { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }

/* whiteboard + drawing over a shared screen */
.tile.board { background: #15171c; }
.draw-canvas { position: absolute; pointer-events: none; touch-action: none; }
.tile.board .draw-canvas { background: #fff; border-radius: 10px; pointer-events: auto; cursor: crosshair; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.tile.annotating .draw-canvas { pointer-events: auto; cursor: crosshair; }
.tile.annotating { outline-color: var(--accent-2); }
.annot-btn {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: none; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 500;
}
.annot-btn svg { width: 16px; height: 16px; }
.annot-btn:hover { background: rgba(0, 0, 0, .8); }
.tile.screen .annot-btn { display: inline-flex; }
.tile.annotating .annot-btn { background: var(--accent); }

.draw-bar {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; direction: ltr;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; max-width: calc(100% - 16px); overflow-x: auto;
  background: rgba(24, 26, 32, .92); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.draw-bar button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #d5d8e0; display: grid; place-items: center; padding: 0; }
.draw-bar button:hover { background: var(--surface-3); }
.draw-bar button.sel { background: var(--accent); color: #fff; }
.draw-bar svg { width: 18px; height: 18px; }
.draw-bar .sep { flex: none; width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
.draw-bar .db-color { width: 26px; height: 26px; border-radius: 50%; }
.draw-bar .db-color::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.draw-bar .db-color.sel { background: transparent; box-shadow: 0 0 0 2px #fff; }
.draw-bar .db-size b { display: block; border-radius: 50%; background: currentColor; }
.round.attn { box-shadow: 0 0 0 3px var(--accent-2); }

.captions {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  pointer-events: none;
}
.caption {
  max-width: 100%; padding: 8px 14px; border-radius: 12px;
  background: rgba(10, 10, 14, .78); backdrop-filter: blur(8px);
  font-size: 18px; line-height: 1.45; text-align: start;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.caption b { color: var(--accent-2); font-weight: 600; margin-inline-end: 6px; }
.captions.off { display: none; }

.banner {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 12px; background: #5a4300; color: #ffe2a1; font-size: 14px; white-space: nowrap;
}

.panel { width: 340px; flex: none; background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; padding-inline: 16px 10px; }
.panel-head h2 { font-size: 17px; font-weight: 600; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.empty { color: var(--muted); font-size: 14px; padding-top: 8px; }
.t-block { margin-top: 14px; }
.t-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.t-head b { font-weight: 600; font-size: 14px; color: var(--accent-2); }
.t-head time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

.controls { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.leave-wrap { position: relative; margin-inline-start: 8px; }
.leave-menu {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 290px; padding: 6px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  z-index: 5;
}
.leave-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: start; }
.leave-menu button:hover { background: var(--surface-3); }
.leave-menu b { display: block; font-weight: 600; font-size: 15px; }
.leave-menu small { display: block; color: var(--muted); font-size: 13px; }
.leave-menu svg { color: var(--accent-2); }
.leave-menu #leaveOnlyBtn svg { color: #ff8a80; }

/* ───────────── done ───────────── */
#done { overflow-y: auto; padding: 32px 20px 60px; }
.done { width: min(780px, 100%); margin: 0 auto; }
.done h1 { font-size: 30px; font-weight: 700; }
.done > .sub { margin: 6px 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.card h2 svg { color: var(--accent-2); width: 20px; height: 20px; }
.card-actions { display: flex; gap: 8px; }
.summary { overflow-wrap: anywhere; }
.summary h2, .summary h3, .summary h4 { font-size: 16px; font-weight: 600; color: var(--accent-2); margin: 20px 0 6px; display: block; }
.summary > :first-child { margin-top: 0; }
.summary p { margin: 6px 0; }
.summary ul, .summary ol { margin: 6px 0; padding-inline-start: 22px; }
.summary li { margin: 4px 0; }
.summary .state { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.summary .state.err { color: #ffb4ab; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--accent-2); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.card h2 .count { font-size: 13px; font-weight: 600; color: #c9bdff; background: rgba(124, 92, 255, .18); border-radius: 999px; padding: 1px 9px; }
.card h2 .count:empty { display: none; }
.task-group + .task-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.task-group h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.task-group h3 i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; }
.task-group h3 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; cursor: pointer; }
.task:hover { background: var(--surface-2); }
.task input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.task span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task input:checked + span { color: var(--muted); text-decoration: line-through; }
.task em { flex: none; font-style: normal; font-size: 13px; color: #ffd27a; background: rgba(255, 190, 80, .12); border-radius: 999px; padding: 2px 10px; margin-top: 1px; white-space: nowrap; }
details.card > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card .count { color: var(--muted); font-size: 14px; }
.done-transcript { margin-top: 6px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 12px; background: #f2f3f5; color: #14151a;
  font-size: 15px; font-weight: 500; z-index: 20; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  max-width: calc(100vw - 32px); text-align: center;
}

/* ───────────── small screens ───────────── */
@media (max-width: 820px) {
  #lobby { padding-inline: 16px; }
  .lobby-top { padding: 16px 0 8px; }
  .lobby { grid-template-columns: 1fr; gap: 26px; margin-top: 0; }
  .join-card { padding: 18px; }
  .float-card, .top-pill { display: none; }
  .logo svg { width: 34px; height: 34px; }
  .logo-word { font-size: 22px; }
  .lobby-form .sub { margin-bottom: 20px; font-size: 16px; }
  .lobby-form { order: -1; }
  .brand { margin-bottom: 16px; }
  .lobby-form .sub { margin-bottom: 18px; }
  #lobby { place-items: start center; }

  .stage { padding: 4px 8px; }
  .grid[data-count="2"] { --cols: 1; }
  .grid[data-count="5"], .grid[data-count="6"] { --cols: 2; }
  .grid.has-spot .tile { display: none; }
  .grid.has-spot .tile.spot { display: block; inset-inline-end: 0; }
  .panel { position: fixed; inset: 0; width: auto; border-radius: 0; z-index: 10; }
  .controls { gap: 8px; }
  .controls { gap: 6px; padding-inline: 8px; }
  .round { width: 42px; height: 42px; }
  .round.wide { width: 54px; }
  .caret { width: 24px; height: 42px; }
  .leave-wrap { margin-inline-start: 0; }
  #recBtn, #layoutBtn, #fsBtn, #ccBtn { display: none; }
  .grid.has-spot.layout-split { display: flex; }
  .draw-bar { top: 6px; }
  .annot-btn span { display: none; }
  .preview .round { width: 46px; height: 46px; }
  .preview .caret { height: 46px; }
  .leave-menu { left: 0; transform: none; }
  #copyLink span:last-child { display: none; }
  .caption { font-size: 16px; }
}
