/* In-meeting screen — first class (Claude Code 2026-11-09; owner: header on two lines, waiting card, one control row + More
   sheet, photo softly behind the stage, all 9 themes). Markup: MeetScreen.js start() / waitCard(). */

/* photo softly behind the stage (dimmed so video stays the focus) */
body[data-route="meet"]:has(#v-meet .mt-head-live) .home-bg { display: block !important; }
body[data-route="meet"]:has(#v-meet .mt-head-live) .home-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: color-mix(in srgb, var(--vt-base) 84%, transparent);
}
body[data-route="meet"]:has(#v-meet .mt-head-live) .ambient { display: none !important; }
body[data-route="meet"]:has(#v-meet .mt-head-live) { background: var(--vt-base) !important; }

#v-meet { --mc-glass: color-mix(in srgb, var(--vt-base) 66%, transparent); --mc-glass-2: color-mix(in srgb, var(--vt-base) 45%, transparent); }
html:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #v-meet {
  --mc-glass: color-mix(in srgb, #FFFFFF 78%, transparent); --mc-glass-2: color-mix(in srgb, #FFFFFF 58%, transparent);
}

/* header: two lines, round glass keys */
#v-meet .mt-head-live {
  gap: 8px; padding: 6px 8px; border-radius: 20px; background: var(--mc-glass) !important; border: 1px solid var(--vt-line) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 26px rgba(0, 0, 0, calc(.06 + var(--vt-dark, 1) * .2)) !important;
}
#v-meet .mt-head-live .mt-key {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; position: relative;
  background: var(--mc-glass-2) !important; border: 1px solid var(--vt-line) !important; color: var(--vt-acc) !important; box-shadow: none !important;
}
#v-meet .mt-head-live .mt-inv-key { border: 1.5px solid var(--vt-acc) !important; }
#v-meet .mt-inv-key .mt-plus {
  position: absolute; right: -3px; top: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font: 800 .7rem/1 "Manrope", sans-serif; color: #2A1C05; background: linear-gradient(180deg, #FFF0C4, #D7A649);
}
#v-meet .mt-live-title { text-align: left; gap: 3px; }
#v-meet .mt-live-title b {
  font: 700 1.12rem/1.15 "Cormorant Garamond", Georgia, serif !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--vt-ink) !important; background: none !important; -webkit-text-fill-color: currentColor;
}
#v-meet .mt-live-title > span { justify-content: flex-start; color: color-mix(in srgb, var(--vt-ink) 72%, var(--vt-ink-2)) !important; font-weight: 700; }
#v-meet .mt-invite { display: none !important; }

/* stage fills the screen: 1 = large, 2 = split, more = grid (only when nothing is shared) */
#v-meet .mt-main[hidden] + .mt-grid {
  height: calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-top, 0px) - 196px); min-height: 280px;
  grid-auto-rows: minmax(0, 1fr); align-content: stretch;
}
#v-meet .mt-main[hidden] + .mt-grid .mt-tile { aspect-ratio: auto !important; max-height: none !important; height: 100%; }
#v-meet .mt-main[hidden] + .mt-grid[data-n="1"] { grid-template-columns: 1fr; }
@media (orientation: portrait) { #v-meet .mt-main[hidden] + .mt-grid[data-n="2"] { grid-template-columns: 1fr; } }
@media (orientation: landscape) { #v-meet .mt-main[hidden] + .mt-grid[data-n="2"] { grid-template-columns: 1fr 1fr; } }
#v-meet .mt-tile { background: var(--mc-glass) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* waiting card */
#v-meet .mt-wait {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px; text-align: center; min-height: 0;
  border-radius: 22px; background: var(--mc-glass); border: 1px solid var(--vt-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--vt-ink); overflow: auto;
}
#v-meet .mt-wait-coin {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 700 1.9rem/1 "Cormorant Garamond", Georgia, serif; color: #2A1C05;
  background: radial-gradient(circle at 35% 30%, #FFF6D8 0%, #EBC673 48%, #A97A2A 100%); box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
#v-meet .mt-wait-t { font: 700 1.3rem/1.2 "Cormorant Garamond", Georgia, serif; }
#v-meet .mt-wait-s { font: 500 .8rem/1.4 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 72%, var(--vt-ink-2)); max-width: 26em; }
#v-meet .mt-wait-qr {
  width: min(150px, 38vw); aspect-ratio: 1; padding: 5px; border-radius: 14px; background: #FFFFFF; flex: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vt-acc) 60%, transparent);
}
#v-meet .mt-wait-qr svg { display: block; width: 100%; height: 100%; }
#v-meet .mt-wait-ids { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font: 600 .78rem/1.3 "Manrope", sans-serif; color: color-mix(in srgb, var(--vt-ink) 72%, var(--vt-ink-2)); }
#v-meet .mt-wait-ids b { font-weight: 800; color: var(--vt-ink); letter-spacing: .03em; margin-left: 4px; }
#v-meet .mt-wait-copy { min-height: 46px; border-radius: 999px; padding: 0 24px; }
#v-meet .mt-grid.is-alone[data-n="2"] { grid-template-columns: 1fr; grid-template-rows: 2fr 3fr; }

/* control bar: one clean row */
#v-meet .mt-bar {
  flex-wrap: nowrap !important; justify-content: space-between !important; gap: 2px !important; padding: 6px 8px !important;
  background: var(--mc-glass) !important; border: 1px solid var(--vt-line) !important; border-radius: 24px !important;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
#v-meet .mt-bar .mt-ctl { flex: 1 1 0 !important; min-width: 0 !important; height: 56px !important; font: 700 .64rem/1.1 "Manrope", sans-serif !important; color: var(--vt-ink) !important; }
#v-meet .mt-bar .mt-ctl .ic { color: var(--vt-ink); }
#v-meet .mt-bar .mt-ctl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* microphone: slash when muted */
#v-meet #cMic { position: relative; }
#v-meet #cMic:not(.is-on)::after {
  content: ""; position: absolute; left: 50%; top: 10px; width: 2.5px; height: 26px; margin-left: -1px; border-radius: 2px;
  background: #F0566A; transform: rotate(45deg); box-shadow: 0 0 0 1.5px var(--vt-base);
}
#v-meet #cMic:not(.is-on) .ic { color: #F0566A !important; }
#v-meet #cMic.is-on .ic { color: #34D3A0 !important; }
/* Leave: red round key */
#v-meet .mt-bar .mt-leave {
  flex: 0 0 52px !important; width: 52px !important; height: 52px !important; border-radius: 50% !important; padding: 0 !important; align-self: center;
  background: radial-gradient(circle at 35% 30%, #FF8E9C 0%, #F0566A 45%, #B3152F 100%) !important; border: 0 !important; color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(240, 86, 106, .4) !important;
}
#v-meet .mt-bar .mt-leave .ic { color: #FFFFFF !important; width: 22px; height: 22px; }
#v-meet .mt-bar .mt-leave span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#v-meet #cMore.is-rec .ic { color: #F0566A !important; }

/* More sheet */
#v-meet .mt-more-sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px); z-index: 25;
  width: min(420px, calc(100vw - 24px)); box-sizing: border-box; padding: 10px; border-radius: 22px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  background: var(--mc-glass); border: 1px solid var(--vt-line); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, calc(.12 + var(--vt-dark, 1) * .3));
}
#v-meet .mt-more-sheet[hidden] { display: none; }
#v-meet .mt-more-sheet .mt-ctl {
  min-width: 0; width: 100%; height: 72px; border-radius: 16px; font: 700 .72rem/1.2 "Manrope", sans-serif; color: var(--vt-ink);
  background: var(--mc-glass-2); border: 1px solid color-mix(in srgb, var(--vt-line) 60%, transparent);
}
#v-meet .mt-more-sheet .mt-ctl .ic { color: var(--vt-acc); width: 22px; height: 22px; }
#v-meet .mt-more-sheet .mt-ctl[hidden] { display: none; }
#v-meet .mt-more-sheet .mt-ctl.is-rec, #v-meet .mt-more-sheet .mt-ctl.is-rec .ic { color: #F0566A; }

/* 2026-11-09 owner: "the last previous QR with background is more attractive" — the waiting card now looks like the
   invite window: the My Space photo under a theme-tinted veil, the QR in a white card with a gold ring */
#v-meet .mt-wait {
  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;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(.08 + (1 - var(--vt-dark, 1)) * .7)), 0 22px 50px rgba(0, 0, 0, calc(.12 + var(--vt-dark, 1) * .3));
}
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-wait {
  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;
}
#v-meet .mt-wait-t, #v-meet .mt-wait-s { text-shadow: 0 1px 3px rgba(0, 0, 0, calc(var(--vt-dark, 1) * .5)); }
#v-meet .mt-wait-qr {
  width: min(176px, 46vw); padding: 7px; border-radius: 16px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vt-acc) 60%, transparent), 0 10px 26px rgba(0, 0, 0, .3);
}
#v-meet .mt-wait-ids span {
  padding: 6px 12px; border-radius: 12px; background: color-mix(in srgb, var(--vt-base) 50%, transparent);
  border: 1px solid color-mix(in srgb, var(--vt-line) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
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-wait-ids span {
  background: rgba(255, 255, 255, .6);
}

/* 2026-11-09 owner: Meeting ID / Passcode as two tap-to-copy buttons side by side (like the invite window) */
#v-meet .mt-wait-tks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: min(100%, 360px); }
#v-meet .mt-wtk {
  display: grid; gap: 4px; justify-items: center; min-width: 0; padding: 10px 6px; border-radius: 14px; cursor: pointer; color: var(--vt-ink);
  background: color-mix(in srgb, var(--vt-base) 55%, transparent); border: 1px solid color-mix(in srgb, var(--vt-line) 75%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .12s ease, border-color .15s ease;
}
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-wtk { background: rgba(255, 255, 255, .62); }
#v-meet .mt-wtk:active { transform: scale(.97); }
#v-meet .mt-wtk span { font: 700 .6rem/1 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--vt-ink) 72%, var(--vt-ink-2)); }
#v-meet .mt-wtk b { font: 800 clamp(.92rem, 4.6vw, 1.2rem)/1.1 "Manrope", sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#v-meet .mt-wtk i { font: 600 .66rem/1 "Manrope", sans-serif; font-style: normal; color: var(--vt-acc-hi); }
#v-meet .mt-wtk.is-copied { border-color: var(--vt-acc); }
#v-meet .mt-wtk.is-copied i { color: var(--vt-ok, #34D3A0); }

/* ================= 2026-11-09 waiting card "9.5" (owner: fit the screen, logo QR, Copy + Share row, tidier mic) ========= */
/* the call page is exactly one screen while nothing is shared and no panel is open: header · stage · fixed control bar */
#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel[hidden]):has(.mt-main[hidden]) {
  display: flex !important; flex-direction: column !important; gap: 10px !important;
  height: var(--tg-viewport-stable-height, 100dvh) !important; min-height: 0 !important; overflow: hidden !important;
  padding-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 82px) !important; box-sizing: border-box !important;
}
#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel[hidden]):has(.mt-main[hidden]) > .mt-stage {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
}
#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel[hidden]) .mt-main[hidden] + .mt-grid {
  height: auto !important; flex: 1 1 auto; min-height: 0 !important;
}
#v-meet .mt-grid.is-alone[data-n="1"] { grid-template-rows: minmax(0, 1fr); }

/* waiting card: content centred, sizes follow the free height */
#v-meet .mt-wait { justify-content: center; gap: clamp(6px, 1.4dvh, 12px); padding: clamp(12px, 2.4dvh, 22px) 16px; overflow: hidden; }
#v-meet .mt-wait-coin { width: clamp(40px, 6.5dvh, 60px); height: clamp(40px, 6.5dvh, 60px); font-size: clamp(1.2rem, 3.2dvh, 1.8rem); }
#v-meet .mt-wait-title {
  font: 700 clamp(1.2rem, 3.2dvh, 1.6rem)/1.15 "Cormorant Garamond", Georgia, serif; color: var(--vt-ink); max-width: 22em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, calc(var(--vt-dark, 1) * .5));
}
#v-meet .mt-wait-t { font: 700 .74rem/1.2 "Manrope", sans-serif !important; letter-spacing: .12em; text-transform: uppercase; color: var(--vt-acc-hi) !important; }
#v-meet .mt-wait-s { font-size: .8rem !important; }
#v-meet .mt-wait-qr { width: min(184px, 48vw, 27dvh) !important; flex: none; }
#v-meet .mt-wait-tks { width: min(100%, 380px); }
#v-meet .mt-wait-acts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; width: min(100%, 380px); }
#v-meet .mt-wait-acts .mt-btn { min-height: 46px; border-radius: 999px; padding: 0 12px; white-space: nowrap; font-size: .9rem; gap: 7px; }
#v-meet .mt-wait-share {
  color: var(--vt-ink); background: color-mix(in srgb, var(--vt-base) 55%, transparent); border: 1px solid var(--vt-line) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; text-shadow: 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-wait-share { background: rgba(255, 255, 255, .65); }
#v-meet .mt-wait-share .ic { color: var(--vt-acc); }
@media (max-height: 640px) { #v-meet .mt-wait-s, #v-meet .mt-wait-coin { display: none; } }
/* tablets / iPad: a calm centred column */
@media (min-width: 700px) {
  #v-meet .mt-wait > * { max-width: 460px; }
  #v-meet .mt-wait-qr { width: min(240px, 30dvh) !important; }
}

/* tidier mic key: one clean round slash over the icon, the microphone picker as a small dot at the key's corner */
#v-meet #cMic:not(.is-on)::after {
  top: 7px !important; left: 50% !important; width: 2.5px !important; height: 26px !important; margin-left: -1.25px !important;
  border-radius: 99px !important; transform: rotate(-45deg) !important; background: #F0566A !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vt-base) 85%, transparent) !important;
}
#v-meet .mt-bar .mt-micpick {
  width: 16px !important; height: 16px !important; flex: 0 0 16px !important; margin: 4px 0 0 -22px !important; align-self: flex-start !important;
  font-size: 8px !important; line-height: 1 !important; display: grid !important; place-items: center !important; padding: 0 !important;
  border-radius: 50% !important; color: var(--vt-ink) !important; background: var(--mc-glass-2) !important;
  border: 1px solid var(--vt-line) !important; box-shadow: none !important;
}
/* no page scroll during a call: the app's bottom padding (made for the Home bar) is not needed here */
body[data-route="meet"]:has(#v-meet .mt-head-live) .app { padding-bottom: 0 !important; }
#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel[hidden]):has(.mt-main[hidden]) { height: calc(var(--tg-viewport-stable-height, 100dvh) - 6px) !important; }
@media (max-width: 380px) { #v-meet .mt-wait-acts .mt-btn { font-size: .8rem; padding: 0 8px; gap: 5px; } #v-meet .mt-wait-acts .mt-btn .ic { width: 15px; height: 15px; } }

/* ================= 2026-11-09 control bar 10/10 (owner): state label, Leave same height, ▾ dot outside, who's talking ===== */
/* 1. the label shows the state: red "Muted" / green "Mic on" */
#v-meet .mt-bar #cMic:not(.is-on) span { color: #F0566A !important; }
#v-meet .mt-bar #cMic.is-on span { color: #34D3A0 !important; }
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-bar #cMic:not(.is-on) span { color: #C0263C !important; }
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-bar #cMic.is-on span { color: #047857 !important; }
/* 2. Leave: a round key no taller than the others */
#v-meet .mt-bar .mt-leave {
  flex: 0 0 46px !important; width: 46px !important; height: 46px !important; margin: 0 2px 0 6px !important;
  box-shadow: 0 4px 12px rgba(240, 86, 106, .35) !important;
}
#v-meet .mt-bar .mt-leave .ic { width: 20px !important; height: 20px !important; }
/* 3. the microphone picker dot sits just outside the icon's top-right corner */
#v-meet .mt-bar .mt-micpick { margin: 1px 0 0 -15px !important; width: 15px !important; height: 15px !important; flex-basis: 15px !important; }
/* 4. who's talking: soft green glow on the speaker's tile and People row + a pill on the stage */
#v-meet .mt-stage { position: relative; }
#v-meet .mt-tile.is-speaking {
  border-color: #34D3A0 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 160, .55), 0 0 26px rgba(52, 211, 160, .45) !important;
  transition: box-shadow .2s ease;
}
#v-meet .mt-tile.is-speaking .mt-tag { color: #B9F7DF; }
#v-meet .mt-people li.is-speaking .mt-pn { color: #34D3A0; }
#v-meet .mt-people li.is-speaking .mt-pav { box-shadow: 0 0 0 3px rgba(52, 211, 160, .55), 0 0 14px rgba(52, 211, 160, .5); }
#v-meet .mt-speaking {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 24px); padding: 6px 14px; border-radius: 999px;
  font: 600 .8rem/1.2 "Manrope", sans-serif; color: var(--vt-ink); white-space: nowrap;
  background: var(--mc-glass, rgba(10, 20, 44, .7)); border: 1px solid rgba(52, 211, 160, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
#v-meet .mt-speaking[hidden] { display: none; }
#v-meet .mt-speaking b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
#v-meet .mt-speaking span { opacity: .8; }
#v-meet .mt-speaking i { width: 8px; height: 8px; border-radius: 50%; background: #34D3A0; box-shadow: 0 0 0 3px rgba(52, 211, 160, .25); animation: mtSpkPulse 1s ease-in-out infinite; flex: none; }
@keyframes mtSpkPulse { 50% { box-shadow: 0 0 0 6px rgba(52, 211, 160, .08); } }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-speaking i { animation: none; } }

/* 2026-11-14 owner: "while waiting the teacher can turn off the invite card — we also have one key on the top" (MeetScreen waitLine) */
#v-meet .mt-wait { position: relative; }
#v-meet .mt-wait-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--vt-ink); background: color-mix(in srgb, var(--vt-base) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#v-meet .mt-wait-x .ic { width: 18px; height: 18px; }
#v-meet .mt-wait-line { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px;
  border-radius: 16px; background: var(--mc-glass, rgba(255,255,255,.06)); border: 1px solid var(--vt-line); color: var(--vt-ink); font-size: .9rem; }
#v-meet .mt-wait-lt { flex: 1 1 auto; min-width: 0; }
#v-meet .mt-wait-pulse { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #E7C77E; animation: mt-wait-pl 1.6s ease-out infinite; }
@keyframes mt-wait-pl { 0% { box-shadow: 0 0 0 0 rgba(231,199,126,.6); } 100% { box-shadow: 0 0 0 9px rgba(231,199,126,0); } }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-wait-pulse { animation: none; } }
#v-meet .mt-alone-coin { min-height: 34vh; align-items: center; }
#v-meet .mt-grid.is-alone:has(> .mt-wait-line) { grid-template-rows: minmax(0, 1fr) auto !important; grid-template-columns: minmax(0, 1fr) !important; }
#v-meet .mt-grid > .mt-wait-line { align-self: end; height: auto !important; min-height: 0 !important; flex-wrap: nowrap; }
#v-meet .mt-wait-line .mt-wait-lt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v-meet .mt-wait-line .mt-link { flex: 0 0 auto; white-space: nowrap; }
#v-meet .mt-grid > .mt-alone-coin { align-self: center; }
#v-meet .mt-grid > .mt-wait-line { min-width: 0; max-width: 100%; box-sizing: border-box; gap: 8px 12px; }

/* 2026-11-15 owner: while I share my screen, ONE "Stop sharing" key at the top right of the meeting header (nothing else) */
#v-meet .mt-head-live .mt-key.mt-headstop {
  width: auto; flex: 0 0 auto; height: 38px; padding: 0 14px 0 11px; border-radius: 19px; display: inline-flex; align-items: center; gap: 7px;
  background: #D9364A !important; border: 1px solid rgba(255, 255, 255, .28) !important; color: #FFF !important;
  font: 800 .84rem/1 "Manrope", system-ui, sans-serif; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 54, 74, .35) !important;
}
#v-meet .mt-head-live .mt-key.mt-headstop[hidden] { display: none !important; }
#v-meet .mt-head-live .mt-headstop svg { width: 15px; height: 15px; fill: currentColor; stroke: none; flex: none; }
#v-meet .mt-head-live .mt-headstop:hover { background: #C42A3E !important; }
#v-meet .mt-head-live .mt-headstop:focus-visible { outline: 2px solid #FFE28A !important; outline-offset: 3px; }
@media (max-width: 420px) { #v-meet .mt-head-live .mt-headstop span { display: none; } #v-meet .mt-head-live .mt-key.mt-headstop { padding: 0; width: 38px; justify-content: center; } }

/* ===== 2026-11-15 owner "people UI not professional — 10/10": People panel, Zoom / Google Meet style ===== */
#v-meet .mt-panel .mt-pinvite { width: 100%; min-height: 44px; justify-content: center; }
#v-meet .mt-psec { margin: 14px 2px 8px; font: 800 .72rem/1 "Manrope", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--vt-ink-2); }
#v-meet .mt-hostctl .mt-psec { margin-top: 12px; }
#v-meet .mt-hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#v-meet .mt-hc {
  display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--vt-line); background: color-mix(in srgb, var(--vt-ink) 6%, transparent); color: var(--vt-ink);
  font: 700 .82rem/1.15 "Manrope", system-ui, sans-serif; transition: background .15s, border-color .15s;
}
#v-meet .mt-hc svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--vt-acc); }
#v-meet .mt-hc:hover { background: color-mix(in srgb, var(--vt-ink) 11%, transparent); }
#v-meet .mt-hc.is-on { border-color: color-mix(in srgb, #F1CF7E 70%, transparent); background: color-mix(in srgb, #F1CF7E 16%, transparent); }
#v-meet .mt-hc:focus-visible, #v-meet .mt-pmore:focus-visible, #v-meet .mt-pm:focus-visible { outline: 2px solid #FFE28A; outline-offset: 2px; }
#v-meet .mt-people { gap: 2px !important; }
#v-meet .mt-people > li {
  display: grid !important; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px !important;
  padding: 8px 6px 8px 8px !important; border-radius: 12px !important; background: transparent !important; flex-wrap: nowrap !important;
}
#v-meet .mt-people > li:hover, #v-meet .mt-people > li.is-open { background: color-mix(in srgb, var(--vt-ink) 6%, transparent) !important; }
#v-meet .mt-people .mt-pav { width: 36px; height: 36px; }
#v-meet .mt-people .mt-pn { min-width: 0; display: grid; gap: 2px; }
#v-meet .mt-people .mt-pn b { font: 700 .92rem/1.25 "Manrope", "Kantumruy Pro", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v-meet .mt-people .mt-pn b i { font-style: normal; font-weight: 600; color: var(--vt-ink-2); }
#v-meet .mt-people .mt-pn small { font: 600 .74rem/1.2 "Manrope", sans-serif; color: var(--vt-ink-2); }
#v-meet .mt-people .mt-pi { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
#v-meet .mt-pst { display: inline-grid; place-items: center; width: 18px; height: 18px; }
#v-meet .mt-pst svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-pst.on { color: #34D3A0; }
#v-meet .mt-pst.off { color: #E25B6A; opacity: .9; }
#v-meet .mt-phand { font-size: 16px; line-height: 1; }
#v-meet .mt-pmore {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--vt-ink);
}
#v-meet .mt-pmore svg { width: 18px; height: 18px; fill: currentColor; }
#v-meet .mt-pmore:hover, #v-meet .mt-pmore[aria-expanded="true"] { background: color-mix(in srgb, var(--vt-ink) 10%, transparent); border-color: var(--vt-line); }
#v-meet .mt-pmenu { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 0 2px 46px; }
#v-meet .mt-pmenu[hidden] { display: none; }
#v-meet .mt-pm {
  min-height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer; text-align: left; border: 1px solid var(--vt-line);
  background: color-mix(in srgb, var(--vt-ink) 5%, transparent); color: var(--vt-ink); font: 700 .78rem/1.15 "Manrope", system-ui, sans-serif;
}
#v-meet .mt-pm:hover { background: color-mix(in srgb, var(--vt-ink) 11%, transparent); }
#v-meet .mt-pm.danger { color: #FF8A96; border-color: color-mix(in srgb, #E25B6A 45%, transparent); grid-column: 1 / -1; }

/* 2026-11-15 owner: ✏️ Draw on screen — gold keys next to the red Stop sharing key (top right) */
#v-meet .mt-head-live .mt-key.mt-headdraw {
  width: auto; flex: 0 0 auto; height: 38px; padding: 0 14px 0 11px; border-radius: 19px; display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649) !important; border: 1px solid rgba(255, 255, 255, .35) !important; color: #2A1C05 !important;
  font: 800 .84rem/1 "Manrope", system-ui, sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(215, 166, 73, .3) !important;
}
#v-meet .mt-head-live .mt-key.mt-headdraw.is-ghost { background: var(--mc-glass-2) !important; color: var(--vt-ink) !important; border: 1px solid var(--vt-line) !important; box-shadow: none !important; }
#v-meet .mt-head-live .mt-key.mt-headdraw[hidden] { display: none !important; }
#v-meet .mt-head-live .mt-headdraw svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#v-meet .mt-head-live .mt-headdraw:hover { filter: brightness(1.06); }
#v-meet .mt-head-live .mt-headdraw[aria-busy="true"] { opacity: .65; cursor: progress; }
#v-meet .mt-head-live .mt-headdraw:focus-visible { outline: 2px solid #FFE28A !important; outline-offset: 3px; }
@media (max-width: 560px) { #v-meet .mt-head-live .mt-headdraw span { display: none; } #v-meet .mt-head-live .mt-key.mt-headdraw { padding: 0; width: 38px; justify-content: center; } }

/* 2026-11-15: the first time I share — a gold hint under the ✏️ Draw on screen key */
#v-meet .mt-drawhint {
  position: fixed; z-index: 95; display: grid; gap: 3px; max-width: 260px; padding: 10px 14px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649); color: #2A1C05; box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  font: 600 .78rem/1.3 "Manrope", system-ui, sans-serif; animation: mt-hint-in .2s ease-out;
}
#v-meet .mt-drawhint b { font: 800 .9rem/1.2 "Manrope", system-ui, sans-serif; }
#v-meet .mt-drawhint::before { content: ""; position: absolute; top: -6px; right: 28px; width: 12px; height: 12px; transform: rotate(45deg); background: #FFF0C4; }
@keyframes mt-hint-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-drawhint { animation: none; } }

/* 2026-11-15: Draw on screen countdown (switch to the app — the picture is taken) */
#v-meet .mt-snapcount {
  position: fixed; z-index: 96; left: 50%; top: 96px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; border-radius: 18px; background: rgba(14, 21, 38, .96); border: 1px solid rgba(232, 182, 79, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); color: #FFF6E2; font: 700 .92rem/1.3 "Manrope", system-ui, sans-serif; max-width: min(92vw, 520px);
}
#v-meet .mt-snapcount b {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #2A1C05;
  font: 800 1.7rem/1 "Manrope", system-ui, sans-serif; background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649);
}

/* 2026-11-15: PDF on the whiteboard — ‹ 3 / 12 › page bar + Close PDF in the header (host) */
#v-meet .mt-head-live .mt-pdfbar { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 2px; }
#v-meet .mt-head-live .mt-pdfbar[hidden] { display: none !important; }
#v-meet .mt-head-live .mt-pdfbar > b {
  min-width: 64px; text-align: center; font: 800 .9rem/1 "Manrope", system-ui, sans-serif; color: var(--vt-ink); font-variant-numeric: tabular-nums;
}
#v-meet .mt-head-live .mt-key.mt-pdfk {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; cursor: pointer; color: #2A1C05 !important;
  background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649) !important; border: 1px solid rgba(255, 255, 255, .35) !important;
}
#v-meet .mt-head-live .mt-pdfk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-head-live .mt-pdfk:disabled { opacity: .4; cursor: default; }
#v-meet .mt-head-live .mt-pdfbar[aria-busy="true"] > b { opacity: .55; }
#v-meet .mt-head-live .mt-pdfk:focus-visible { outline: 2px solid #FFE28A !important; outline-offset: 3px; }

/* 2026-11-15 owner "pdf appears as background": a document on the stage → "Draw on it" moves it onto the whiteboard (host) */
#v-meet .mt-main .mt-doc2board { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; font: 800 .86rem/1 "Manrope", sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
#v-meet .mt-main .mt-doc2board svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-main .mt-doc2board:disabled { opacity: .7; cursor: progress; }
