/* Live Meeting lobby — first class (Claude Code 2026-11-09; owner: "What would take it to 9–9.5 … AND I WANT TO SEE BACKGROUND
   PHOTO TOO, IT FEELS LIGHTER THAN THIS SOLID VIEW"). Markup: MeetScreen.js lobby() (.mt-lobby). Uses the --vt-* theme colours. */

/* ---------------- the My Space photo behind the lobby, tinted with the theme */
body[data-route="meet"]:has(#v-meet .mt-lobby) .home-bg { display: block !important; }
body[data-route="meet"]:has(#v-meet .mt-lobby) .home-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt-base) 58%, transparent) 0%, color-mix(in srgb, var(--vt-base) 38%, transparent) 45%, color-mix(in srgb, var(--vt-base) 70%, transparent) 100%);
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) body[data-route="meet"]:has(#v-meet .mt-lobby) .home-bg::before { opacity: .25; }
body[data-route="meet"]:has(#v-meet .mt-lobby) { background: var(--vt-base) !important; }

#v-meet .mt-lobby {
  --ml-glass: color-mix(in srgb, var(--vt-base) 64%, transparent);
  --ml-glass-2: color-mix(in srgb, var(--vt-base) 48%, transparent);
  display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 640px; margin: 0 auto;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #v-meet .mt-lobby {
  --ml-glass: color-mix(in srgb, #FFFFFF 70%, color-mix(in srgb, var(--vt-base) 30%, transparent));
  --ml-glass-2: color-mix(in srgb, #FFFFFF 58%, transparent);
}
#v-meet .mt-lobby :is(.mt-card, .ml-tile-join, .ml-tile-rec, .mt-recent, .mt-more) {
  background: var(--ml-glass) !important; border: 1px solid var(--vt-line) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(.08 + (1 - var(--vt-dark, 1)) * .7)), 0 14px 32px rgba(0, 0, 0, calc(.08 + var(--vt-dark, 1) * .22)) !important;
}

/* ---------------- header: round glass keys like Voice Studio */
#v-meet .mt-lobby .mt-head { margin-bottom: 2px; }
#v-meet .mt-lobby .mt-key.mt-round {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: var(--ml-glass-2) !important; border: 1px solid var(--vt-line) !important; color: var(--vt-acc) !important;
  box-shadow: none !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#v-meet .mt-lobby .mt-key.mt-round:active { transform: scale(.94); }

/* ---------------- name, asked once */
#v-meet .mt-who { margin: -4px 2px 0; text-align: center; font: 500 .86rem/1.4 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 80%, var(--vt-ink-2)); }
#v-meet .mt-who b { color: var(--vt-ink); font-weight: 800; }
#v-meet .mt-link { padding: 0; border: 0; background: none; cursor: pointer; font: 700 .86rem/1.4 "Manrope", sans-serif; color: var(--vt-acc-hi); text-decoration: underline; text-underline-offset: 3px; }
#v-meet .mt-namefield { padding: 14px 16px; border-radius: 20px; background: var(--ml-glass); border: 1px solid var(--vt-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ---------------- the two big tiles */
#v-meet .ml-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
#v-meet .ml-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; min-height: 132px; padding: 16px;
  border-radius: 24px; cursor: pointer; text-align: left; text-decoration: none; color: var(--vt-ink); font-family: "Manrope", sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
}
#v-meet .ml-tile b { font: 800 1.12rem/1.2 "Manrope", sans-serif; }
#v-meet .ml-tile small { font: 600 .78rem/1.3 "Manrope", sans-serif; opacity: .85; }
#v-meet .ml-tile-ic { width: 44px; height: 44px; margin-bottom: auto; border-radius: 50%; display: grid; place-items: center; position: relative; }
#v-meet .ml-tile-ic .ic { width: 22px; height: 22px; }
#v-meet .ml-tile:active { transform: scale(.97); }
@media (hover: hover) { #v-meet .ml-tile:hover { transform: translateY(-2px); } }
#v-meet .ml-tile-new {
  color: #2A1C05; border: 1px solid #F6DC9A;
  background: linear-gradient(160deg, #FFF3CF 0%, #F1CF7E 38%, #D7A649 72%, #B5852F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 14px 30px rgba(197, 150, 69, .35);
}
#v-meet .ml-tile-new small { color: #4A3410; opacity: 1; }
#v-meet .ml-tile-new .ml-tile-ic { background: rgba(255, 255, 255, .45); color: #3A2706; }
#v-meet .ml-tile-join { border: 1.5px solid color-mix(in srgb, var(--vt-acc) 75%, transparent) !important; }
#v-meet .ml-tile-join .ml-tile-ic, #v-meet .ml-tile-rec .ml-tile-ic { background: var(--ml-glass-2); color: var(--vt-acc); border: 1px solid var(--vt-line); }
#v-meet .ml-tile-join.is-on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--vt-acc) 25%, transparent), 0 14px 30px rgba(0, 0, 0, .2) !important; }
#v-meet .ml-tile:disabled { opacity: .7; cursor: wait; }

/* ---------------- join box (one smart field) */
#v-meet .mt-joinbox { gap: 12px; }
#v-meet .mt-codeok { display: flex; align-items: center; gap: 6px; margin: -2px 2px 0; font: 700 .8rem/1.3 "Manrope", sans-serif; color: var(--vt-ok, #34D3A0); }
#v-meet .mt-codeok[hidden] { display: none; }
#v-meet .mt-codeok .ic { width: 15px; height: 15px; }
#v-meet .mt-btn.mt-glassgold {
  width: 100%; color: var(--vt-ink); background: var(--ml-glass-2); border: 1.5px solid var(--vt-acc);
  box-shadow: 0 6px 16px rgba(0, 0, 0, calc(.06 + var(--vt-dark, 1) * .15)); text-shadow: none;
}
#v-meet .mt-btn.mt-glassgold .ic { color: var(--vt-acc); }
#v-meet .mt-lobby .mt-field input, #v-meet .mt-lobby .mt-field select { background: var(--vt-field) !important; }
#v-meet .mt-lobby .mt-field > span { color: color-mix(in srgb, var(--vt-ink) 80%, var(--vt-ink-2)) !important; }

/* ---------------- more options */
#v-meet .mt-more { border-radius: 18px; padding: 0 16px; }
#v-meet .mt-more[open] { padding-bottom: 14px; display: grid; gap: 12px; }
#v-meet .mt-more summary {
  list-style: none; cursor: pointer; padding: 13px 0; display: flex; align-items: center; justify-content: space-between;
  font: 700 .86rem/1.3 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 82%, var(--vt-ink-2));
}
#v-meet .mt-more summary::-webkit-details-marker { display: none; }
#v-meet .mt-more summary::after { content: "▾"; color: var(--vt-acc); transition: transform .2s ease; }
#v-meet .mt-more[open] summary::after { transform: rotate(180deg); }

/* ---------------- recorder tile */
#v-meet .ml-tile-rec {
  display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 22px; text-decoration: none; color: var(--vt-ink);
}
#v-meet .ml-tile-rec .ml-tile-ic { margin: 0; }
#v-meet .ml-tile-rec .mt-rec-t { display: grid; gap: 3px; }
#v-meet .ml-tile-rec .mt-rec-t b { font: 800 1rem/1.25 "Manrope", sans-serif; }
#v-meet .ml-tile-rec .mt-rec-t small { font: 600 .76rem/1.35 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 78%, var(--vt-ink-2)); }
#v-meet .ml-tile-rec > .ic { width: 18px; height: 18px; color: var(--vt-acc); }
#v-meet .mt-recdot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #F0566A; border: 2px solid var(--vt-base); display: none; }
html[data-recording="on"] #v-meet .mt-recdot { display: block; animation: mlBlink 1.2s ease-in-out infinite; }
@keyframes mlBlink { 50% { opacity: .35; } }

/* ---------------- recent meetings */
#v-meet .mt-recent { border-radius: 22px; padding: 14px 16px; }
#v-meet .mt-recent[hidden] { display: none; }
#v-meet .mt-recent-h { margin: 0 0 8px; font: 800 .74rem/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--vt-acc-hi); }
#v-meet .mt-recent ul { list-style: none; margin: 0; padding: 0; display: grid; }
#v-meet .mt-recent li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--vt-line) 60%, transparent); }
#v-meet .mt-recent li:first-child { border-top: 0; }
#v-meet .mt-recent-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
#v-meet .mt-recent-t b { font: 700 .92rem/1.3 "Manrope", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--vt-ink); }
#v-meet .mt-recent-t small { font: 600 .74rem/1.2 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 75%, var(--vt-ink-2)); }
#v-meet .mt-rejoin {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 800 .8rem/1 "Manrope", sans-serif;
  color: var(--vt-ink); background: var(--ml-glass-2); border: 1.5px solid var(--vt-acc);
}

/* ---------------- while an invite link joins by itself, only the "Joining…" line shows */
#v-meet .mt-lobby.is-autojoin :is(.mt-who, .mt-namefield, .ml-tiles, .mt-joinbox, .mt-more, .ml-tile-rec, .mt-recent) { display: none !important; }
#v-meet .mt-lobby .mt-joining { text-align: center; padding: 18px; border-radius: 20px; background: var(--ml-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ---------------- tablets / computers: a calm centred column, bigger tiles */
@media (min-width: 700px) {
  #v-meet .mt-lobby { max-width: 680px; gap: 18px; padding-top: 4vh; }
  #v-meet .ml-tile { min-height: 168px; padding: 20px; }
  #v-meet .ml-tile b { font-size: 1.3rem; }
  #v-meet .ml-tile-ic { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { #v-meet .ml-tile, #v-meet .mt-recdot { transition: none; animation: none; } }
#v-meet .ml-tile-rec { min-height: 0 !important; }
body[data-route="meet"]:has(#v-meet .mt-lobby) .ambient { display: none !important; }   /* it covered the photo */
/* light themes: a brighter veil at the top so the gold title and the "Joining as" line stay crisp over the photo */
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) body[data-route="meet"]:has(#v-meet .mt-lobby) .home-bg::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt-base) 90%, transparent) 0%, color-mix(in srgb, var(--vt-base) 62%, transparent) 30%, color-mix(in srgb, var(--vt-base) 45%, transparent) 60%, color-mix(in srgb, var(--vt-base) 80%, transparent) 100%);
}
/* "Joining as …" sits in a small glass pill (readable on any photo) */
#v-meet .mt-who { align-self: center; padding: 6px 14px; border-radius: 999px; background: var(--ml-glass-2); border: 1px solid color-mix(in srgb, var(--vt-line) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin: -2px auto 0; }
#v-meet .mt-who[hidden] { display: none; }
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #v-meet .mt-lobby .mt-title {
  background: none; -webkit-text-fill-color: var(--vt-acc-hi); color: var(--vt-acc-hi); text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
#v-meet .mt-lobby .mt-title { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, calc(var(--vt-dark, 1) * .5))); }

/* ================= Invite window — first class (2026-11-09) ================= */
.mt-dialog.mt-invite-dlg {
  --ml-glass: color-mix(in srgb, var(--vt-base) 74%, transparent);
  --ml-glass-2: color-mix(in srgb, var(--vt-base) 52%, transparent);
  position: fixed; width: min(400px, calc(100vw - 28px)); padding: 22px 20px 18px; gap: 14px; justify-items: stretch; text-align: center;
  background: var(--ml-glass) !important; border: 1px solid var(--vt-line) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(.08 + (1 - var(--vt-dark, 1)) * .7)), 0 30px 70px rgba(0, 0, 0, .45) !important;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) .mt-dialog.mt-invite-dlg {
  --ml-glass: color-mix(in srgb, #FFFFFF 82%, transparent);
  --ml-glass-2: color-mix(in srgb, #FFFFFF 64%, transparent);
}
.mt-dialog.mt-invite-dlg::backdrop { background: rgba(3, 8, 20, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mt-invite-dlg .mt-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ml-glass-2); color: var(--vt-ink); border: 1px solid var(--vt-line); }
.mt-invite-dlg .mt-inv-title { margin: 2px 40px 0; font: 700 1.55rem/1.15 "Cormorant Garamond", Georgia, serif; color: var(--vt-ink); }
.mt-invite-dlg .mt-inv-sub { margin: -10px 0 0; font: 600 .82rem/1.3 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 75%, var(--vt-ink-2)); }
.mt-invite-dlg .mt-ticket {
  display: grid; gap: 12px; justify-items: center; padding: 16px; border-radius: 20px;
  background: var(--ml-glass-2); border: 1px solid var(--vt-line);
}
.mt-invite-dlg .mt-qr { width: min(196px, 56vw); aspect-ratio: 1; padding: 6px; border-radius: 16px; background: #FFFFFF;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vt-acc) 60%, transparent), 0 10px 26px rgba(0, 0, 0, .25); }
.mt-invite-dlg .mt-qr svg { display: block; width: 100%; height: 100%; border-radius: 10px; }
.mt-invite-dlg .mt-qr-cap { margin: -4px 0 0; font: 800 .66rem/1 "Manrope", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--vt-acc-hi); }
.mt-invite-dlg .mt-tk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; }
.mt-invite-dlg .mt-tk {
  display: grid; gap: 4px; justify-items: center; padding: 10px 8px; border-radius: 14px; cursor: pointer;
  background: var(--ml-glass); border: 1px solid color-mix(in srgb, var(--vt-line) 70%, transparent); color: var(--vt-ink);
  transition: border-color .15s ease, transform .12s ease;
}
.mt-invite-dlg .mt-tk:active { transform: scale(.97); }
.mt-invite-dlg .mt-tk span { font: 700 .66rem/1 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--vt-ink) 72%, var(--vt-ink-2)); }
.mt-invite-dlg .mt-tk b { font: 800 1.28rem/1.1 "Manrope", sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-invite-dlg .mt-tk i { font: 600 .68rem/1 "Manrope", sans-serif; font-style: normal; color: var(--vt-acc-hi); }
.mt-invite-dlg .mt-tk.is-copied { border-color: var(--vt-acc); }
.mt-invite-dlg .mt-tk.is-copied i { color: var(--vt-ok, #34D3A0); }
.mt-invite-dlg .mt-inv-main { width: 100%; min-height: 50px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 10px 22px rgba(197, 150, 69, .3) !important; }
.mt-invite-dlg .mt-inv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-invite-dlg .mt-btn.mt-glass {
  min-height: 46px; border-radius: 999px; color: var(--vt-ink); background: var(--ml-glass-2); border: 1px solid var(--vt-line); box-shadow: none; text-shadow: none;
}
.mt-invite-dlg .mt-btn.mt-glass .ic { color: var(--vt-acc); }
.mt-invite-dlg .mt-small { margin: 0; font-size: .76rem; color: color-mix(in srgb, var(--vt-ink) 70%, var(--vt-ink-2)); }
.mt-invite-dlg .mt-tk { min-width: 0; padding: 10px 6px; }
.mt-invite-dlg .mt-tk b { font-size: clamp(.92rem, 4.6vw, 1.2rem); letter-spacing: .02em; }
.mt-invite-dlg .mt-tk span { font-size: .6rem; letter-spacing: .1em; }
.mt-invite-dlg .mt-btn.mt-glass { white-space: nowrap; font-size: .82rem; padding: 0 12px; gap: 6px; }
.mt-invite-dlg .mt-btn.mt-glass .ic { width: 16px; height: 16px; flex: none; }
/* 2026-11-09 owner "QR ADD PHOTO BACKGROUND": the My Space photo behind the invite window, under a theme-tinted veil
   (the QR itself stays black on white so every phone camera reads it) */
.mt-dialog.mt-invite-dlg {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--vt-base) 72%, transparent) 0%, color-mix(in srgb, var(--vt-base) 55%, transparent) 45%, color-mix(in srgb, var(--vt-base) 86%, transparent) 100%),
    var(--inv-photo, none) center / cover no-repeat,
    var(--vt-base) !important;
}
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) .mt-dialog.mt-invite-dlg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .80) 0%, rgba(255, 255, 255, .62) 45%, rgba(255, 255, 255, .88) 100%),
    var(--inv-photo, none) center / cover no-repeat,
    var(--vt-base) !important;
}
.mt-invite-dlg .mt-ticket { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mt-invite-dlg .mt-inv-title, .mt-invite-dlg .mt-inv-sub { text-shadow: 0 1px 3px rgba(0, 0, 0, calc(var(--vt-dark, 1) * .5)); }

/* 2026-11-14 "Your classes" (owner: students join their own class by its name; a school has 5–10 classes). MeetScreen.js loadClasses */
.ml-classes { margin: 14px 0 4px; }
.ml-cl-h { margin: 0 2px 8px; font: 700 .82rem/1 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ml-cl-list { display: flex; flex-direction: column; gap: 8px; }
.ml-cl { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px 8px 12px; border-radius: 18px;
  background: var(--vt-card, rgba(255,255,255,.06)); border: 1px solid var(--vt-line, rgba(255,255,255,.1));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ml-cl.is-live { border-color: rgba(231,199,126,.65); box-shadow: 0 0 0 1px rgba(231,199,126,.25), 0 10px 26px rgba(0,0,0,.25); }
.ml-cl-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #2A1C05;
  background: radial-gradient(circle at 35% 30%, #FFF6D8, #E7C77E 55%, #B5852F); }
.ml-cl-ic .ic { width: 22px; height: 22px; }
.ml-cl-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ml-cl-t b { font: 700 1.02rem/1.2 "Manrope", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-cl-t small { display: flex; align-items: center; gap: 6px; font-size: .82rem; opacity: .75; }
.ml-cl.is-live .ml-cl-t small { opacity: 1; color: #E7C77E; font-weight: 600; }
.ml-cl-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D3A0; box-shadow: 0 0 0 0 rgba(52,211,160,.6); animation: ml-cl-pulse 1.6s ease-out infinite; }
@keyframes ml-cl-pulse { to { box-shadow: 0 0 0 8px rgba(52,211,160,0); } }
.ml-cl-join { flex: 0 0 auto; min-height: 42px !important; padding: 0 20px !important; }
.ml-cl-note { margin: 8px 4px 0; font-size: .78rem; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .ml-cl-dot { animation: none; } }
.ml-cl-start { flex: 0 0 auto; min-height: 42px !important; padding: 0 16px !important; }
