/* LexiGlobal Live Meeting — luxury first-class Participants screen (Claude Code 2026-11-16; owner spec "LEXIGLOBAL — LUXURY
   FIRST-CLASS PARTICIPANTS SCREEN" + reference image; "keep our concept calm, colour").
   Applies to the existing audio view (MeetScreen.js renderGrid: nobody on camera → .mt-audio-view.is-lux) and its coins (coin()).
   Real data only: count = S.peers.size, HOST = S.host, red / green mic = p.mic, gold ring = real voice activity (.is-speaking).
   Gold follows the app theme (--vt-acc; champagne on Royal Navy) so calm themes stay calm. Loaded after meet-lux.css. */

#v-meet {
  --pp-gold: var(--vt-acc, #D4AF37);
  --pp-gold-hi: color-mix(in srgb, var(--vt-acc, #D4AF37) 45%, #FFF2C8);
  --pp-gold-lo: color-mix(in srgb, var(--vt-acc, #D4AF37) 70%, #3A2708);
  --pp-line: color-mix(in srgb, var(--vt-acc, #F3D58B) 78%, transparent);
  --pp-navy: var(--vt-key-c, #06182B); --pp-navy-2: var(--vt-key-a, #18354C); --pp-mid: var(--vt-key-b, #12284A); --pp-base: var(--vt-base, #020D1D); --pp-ivory: #F7F1E3;
  --pp-base: 100px;                                 /* desktop 90–110 */
}
@media (max-height: 780px) { #v-meet { --pp-base: 84px; } }   /* short screens (iPad mini sideways 1133×744): 4 fit without scrolling */
@media (max-width: 1099px) { #v-meet { --pp-base: 84px; } }   /* tablets 76–90 */
@media (max-width: 699px)  { #v-meet { --pp-base: 66px; } }   /* phones 58–72 */
@media (max-height: 520px) and (orientation: landscape) { #v-meet { --pp-base: 60px; } }
#v-meet .mt-audio-view.is-lux { --pp-av: var(--pp-base); }
/* 5–10 people: a quarter smaller + a compact emblem, so 9 fit without scrolling; 10+ scroll inside the frame */
#v-meet .mt-audio-view.is-lux:has(> .mt-av-grid:is([data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"], [data-n="9"], [data-n="10"])) { --pp-av: calc(var(--pp-base) * .74); }
#v-meet .mt-audio-view.is-lux:has(> .mt-av-grid:is([data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"], [data-n="9"], [data-n="10"])) .mt-av-emblem { width: 56px; height: 56px; margin-bottom: 8px; }
#v-meet .mt-audio-view.is-lux:has(> .mt-av-grid:is([data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"], [data-n="9"], [data-n="10"])) .mt-av-t { margin-bottom: 12px; font-size: clamp(22px, 1.2vw + 10px, 30px); }
#v-meet .mt-audio-view.is-lux > .mt-av-grid:is([data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"], [data-n="9"], [data-n="10"]) { row-gap: 14px; padding-top: 14px; padding-bottom: 14px; }

/* ---------- 1–2. the room: waterfall + midnight overlay + soft vignette, in a thin champagne-gold frame ---------- */
html body #v-meet .mt-grid > .mt-audio-view.is-lux {
  position: relative; isolation: isolate; box-sizing: border-box; width: 100%; min-height: min(62vh, 560px); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; overflow: hidden;
  padding: clamp(16px, 3vh, 34px) clamp(12px, 3vw, 40px) clamp(16px, 3vh, 30px);
  border-radius: 24px; border: 1.5px solid var(--pp-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pp-base) 30%, transparent), color-mix(in srgb, var(--pp-base) 62%, transparent)), var(--mt-ppl-bg, none) center / cover no-repeat, var(--pp-navy);
  box-shadow: 0 0 14px color-mix(in srgb, var(--pp-gold) 20%, transparent), inset 0 0 12px color-mix(in srgb, var(--pp-gold) 8%, transparent), 0 18px 40px rgba(0, 0, 0, .35);
}
html body #v-meet .mt-grid > .mt-audio-view.is-lux::before {   /* vignette — keeps the waterfall visible in the middle */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, color-mix(in srgb, var(--pp-base) 55%, transparent) 100%);
}

/* ---------- 4. emblem: navy circle, metallic gold edge, two gold people, real count badge ---------- */
#v-meet .mt-audio-view.is-lux .mt-av-emblem { position: relative; flex: none; width: calc(var(--pp-av) * .82); height: calc(var(--pp-av) * .82); margin: 0 0 12px; }
#v-meet .mt-audio-view.is-lux .mt-av-ring {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, var(--pp-navy-2), var(--pp-navy) 75%);
  border: 2px solid var(--pp-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-navy) 65%, transparent), 0 0 18px color-mix(in srgb, var(--pp-gold) 32%, transparent), inset 0 0 10px rgba(255, 231, 163, .08);
}
#v-meet .mt-audio-view.is-lux .mt-av-ring svg { width: 58%; height: 58%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
#v-meet .mt-audio-view.is-lux .mt-av-n {
  position: absolute; top: -2px; right: -10px; min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
  display: grid; place-items: center; font: 600 17px/1 "Cormorant Garamond", Georgia, serif; color: var(--pp-gold-hi);
  background: radial-gradient(circle at 35% 25%, var(--pp-navy-2), var(--pp-navy) 80%); border: 1.5px solid var(--pp-gold);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pp-gold) 30%, transparent);
}

/* ---------- 3. heading plaque: navy glass, thin gold outline, gold lines either side ---------- */
#v-meet .mt-audio-view.is-lux .mt-av-t {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; width: min(100%, 560px); margin: 0 0 clamp(14px, 2.6vh, 26px);
  font: 600 clamp(24px, 1.6vw + 12px, 36px)/1.1 "Cormorant Garamond", Georgia, serif; letter-spacing: .02em; color: var(--pp-gold-hi);
}
#v-meet .mt-audio-view.is-lux .mt-av-t::before, #v-meet .mt-audio-view.is-lux .mt-av-t::after {
  content: ""; flex: 1 1 0; height: 1px; min-width: 24px;
  background: linear-gradient(90deg, transparent, var(--pp-gold) 70%, var(--pp-gold-hi)); opacity: .9;
}
#v-meet .mt-audio-view.is-lux .mt-av-t::after { background: linear-gradient(270deg, transparent, var(--pp-gold) 70%, var(--pp-gold-hi)); }
#v-meet .mt-audio-view.is-lux .mt-av-t > span {
  flex: none; padding: 8px 28px 9px; border-radius: 14px; border: 1px solid var(--pp-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pp-navy-2) 78%, transparent), color-mix(in srgb, var(--pp-navy) 86%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 231, 163, .22), 0 6px 18px rgba(0, 0, 0, .35);
  background-clip: padding-box; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* ---------- 10. the people: centred grid inside an inner gold frame; scrolls when there are many ---------- */
#v-meet .mt-audio-view.is-lux > .mt-av-grid {
  flex: 0 1 auto; min-height: 0; width: min(100%, 1000px); box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(auto-fit, calc(var(--pp-av) + 48px)); justify-content: center; align-content: start;
  gap: clamp(18px, 2.4vw, 34px) clamp(16px, 2.6vw, 34px);
  padding: clamp(16px, 2.6vh, 28px) clamp(12px, 2vw, 28px); margin: 0; flex-wrap: nowrap;
  border-radius: 20px; border: 1px solid color-mix(in srgb, var(--pp-gold) 42%, transparent);
  background: color-mix(in srgb, var(--pp-navy) 22%, transparent); scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--pp-gold) 55%, transparent) transparent;
}
#v-meet .mt-audio-view.is-lux > .mt-av-grid[data-n="1"] { width: auto; min-width: min(100%, 260px); }
#v-meet .mt-audio-view.is-lux > .mt-av-grid[data-n="2"] { width: auto; min-width: min(100%, 420px); }

/* ---------- 5–8. the coins (big room) ---------- */
#v-meet .mt-audio-view.is-lux .mt-coin { width: calc(var(--pp-av) + 48px); gap: 8px; cursor: default; justify-self: center; }
#v-meet .mt-audio-view.is-lux .mt-coin-av {
  width: var(--pp-av); height: var(--pp-av); box-sizing: border-box; border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, var(--pp-navy-2), var(--pp-navy) 75%); border: 2px solid var(--pp-gold);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pp-gold) 30%, transparent), inset 0 0 10px rgba(255, 231, 163, .08), 0 8px 18px rgba(0, 0, 0, .35);
  transition: box-shadow .25s ease, transform .25s ease;
}
#v-meet .mt-audio-view.is-lux .mt-coin-ini {
  font: 600 calc(var(--pp-av) * .46)/1 "Cormorant Garamond", Georgia, serif; color: var(--pp-gold-hi);
  background: linear-gradient(180deg, #FFF2C8, var(--pp-gold) 60%, var(--pp-gold-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); margin-top: -.06em;
}
#v-meet .mt-coin-pic { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* mic: red muted badge / small green live badge, lower right */
#v-meet .mt-audio-view.is-lux .mt-coin-mute, #v-meet .mt-audio-view.is-lux .mt-coin-live {
  right: calc(var(--pp-av) * -.04); bottom: calc(var(--pp-av) * -.04); width: calc(var(--pp-av) * .3); height: calc(var(--pp-av) * .3); min-width: 20px; min-height: 20px;
  box-shadow: 0 0 0 2.5px var(--pp-navy), 0 2px 6px rgba(0, 0, 0, .4);
}
#v-meet .mt-audio-view.is-lux .mt-coin-mute { background: #E5484D; }
#v-meet .mt-audio-view.is-lux :is(.mt-coin-mute, .mt-coin-live) :is(svg, .ic) { width: 56%; height: 56%; }
/* speaking (real voice activity only): a gentle gold ring that breathes */
#v-meet .mt-audio-view.is-lux .mt-coin.is-speaking .mt-coin-av {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-gold-hi) 85%, transparent), 0 0 22px color-mix(in srgb, var(--pp-gold) 55%, transparent), inset 0 0 10px rgba(255, 231, 163, .1);
  animation: ppSpeak 1.6s ease-in-out infinite;
}
@keyframes ppSpeak { 50% { transform: scale(1.035); } }
/* 6. names: ivory, two lines at most */
#v-meet .mt-audio-view.is-lux .mt-coin-nm {
  max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  font: 500 clamp(13px, .5vw + 10px, 17px)/1.25 "Manrope", system-ui, sans-serif; color: var(--pp-ivory); text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
/* 7. HOST pill: crown + HOST, navy, thin gold outline */
#v-meet .mt-audio-view.is-lux .mt-coin-host { height: 28px; padding: 0 14px; font-size: 12px; margin-top: 0; }

/* ---------- the same coin family everywhere else (strips beside cameras): navy + gold, smaller ---------- */
#v-meet .mt-coin-av {
  background: radial-gradient(circle at 35% 25%, var(--pp-navy-2), var(--pp-navy) 75%); border: 2px solid var(--pp-gold); box-sizing: border-box;
  color: var(--pp-gold-hi); box-shadow: 0 0 10px color-mix(in srgb, var(--pp-gold) 24%, transparent), 0 4px 12px rgba(0, 0, 0, .35);
}
#v-meet .mt-coin-ini { font: 600 1.6rem/1 "Cormorant Garamond", Georgia, serif; color: var(--pp-gold-hi); }
#v-meet .mt-coin.is-speaking .mt-coin-av { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-gold-hi) 85%, transparent), 0 0 16px color-mix(in srgb, var(--pp-gold) 50%, transparent); }
#v-meet .mt-coin-live {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #1FA971; color: #fff; box-shadow: 0 0 0 2px var(--pp-navy);
}
#v-meet .mt-coin-live :is(svg, .ic) { width: 11px; height: 11px; }
#v-meet .mt-coin-mute svg { fill: none; }
#v-meet .mt-coin-host {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; margin-top: -2px; box-sizing: border-box; border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pp-navy-2) 92%, transparent), color-mix(in srgb, var(--pp-navy) 95%, transparent)); border: 1px solid var(--pp-line);
  color: var(--pp-gold-hi); font: 800 10.5px/1 "Manrope", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 0 10px color-mix(in srgb, var(--pp-gold) 22%, transparent);
}
#v-meet .mt-coin-host svg { width: 14px; height: 14px; color: var(--pp-gold); flex: none; }

/* ---------- 9. "No sound from your mic · Fix" — a navy pill, thin gold edge, gold underlined Fix (still opens the mic dialog) ---------- */
html body #v-meet .mt-hint {
  gap: 9px !important; min-height: 44px !important; padding: 0 18px 0 8px !important; border-radius: 999px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pp-navy-2) 96%, transparent), color-mix(in srgb, var(--pp-navy) 97%, transparent)) !important; border: 1px solid var(--pp-line) !important;
  color: #FFFFFF !important; font: 600 14px/1 "Manrope", system-ui, sans-serif !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 12px color-mix(in srgb, var(--pp-gold) 16%, transparent) !important;
  cursor: pointer;
}
html body #v-meet .mt-hint .mt-hint-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(229, 72, 77, .16); border: 1px solid rgba(255, 143, 143, .55); color: #FF9B9B; }
html body #v-meet .mt-hint .mt-hint-ic :is(svg, .ic) { width: 16px; height: 16px; }
html body #v-meet .mt-hint .mt-hint-dot { color: var(--pp-gold); opacity: .8; }
html body #v-meet .mt-hint b { color: var(--pp-gold-hi) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; font-weight: 800; }
html body #v-meet .mt-hint:focus-visible { outline: 2px solid var(--pp-gold-hi); outline-offset: 3px; }
/* below the meeting header, not over its keys (tablet test: it covered the Whiteboard / Document tabs) */
html body #v-meet .mt-hint { top: calc(var(--mt-wrap-top, 0px) + max(92px, env(safe-area-inset-top) + 60px)) !important; }

/* the microphone ▾ picker in the left key column (tablets / phones held sideways): a small gold coin on the Mic key's corner, not a
   loose item that left a gap under Mic */
@media (orientation: landscape) and (max-height: 520px), (orientation: landscape) and (pointer: coarse) {
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:not(.lx):has(> .mt-head-live) .mt-bar > .mt-micpick {
    position: absolute !important; top: 8px !important; right: 8px !important; left: auto !important; width: 22px !important; height: 22px !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; z-index: 3 !important; display: grid !important; place-items: center; font-size: 11px !important; line-height: 1 !important; }
}

/* ---------- 11. small screens ---------- */
@media (max-width: 699px) {
  html body #v-meet .mt-grid > .mt-audio-view.is-lux { min-height: min(70vh, 560px); border-radius: 20px; padding: 16px 10px; }
  #v-meet .mt-audio-view.is-lux .mt-av-t { gap: 8px; }
  #v-meet .mt-audio-view.is-lux .mt-av-t > span { padding: 6px 18px 7px; }
  #v-meet .mt-audio-view.is-lux > .mt-av-grid { grid-template-columns: repeat(auto-fit, calc(var(--pp-av) + 36px)); gap: 18px 12px; padding: 14px 8px; border-radius: 16px; }
  #v-meet .mt-audio-view.is-lux .mt-coin { width: calc(var(--pp-av) + 36px); }
  #v-meet .mt-audio-view.is-lux .mt-coin-host { height: 24px; padding: 0 10px; font-size: 10.5px; }
  #v-meet .mt-audio-view.is-lux .mt-av-n { min-width: 26px; height: 26px; font-size: 15px; right: -8px; }
}
/* phones: circles stay 58–72 px (spec) whatever the number of people — the list scrolls instead of shrinking */
@media (max-width: 699px), (orientation: landscape) and (max-height: 520px) {
  html body #v-meet .mt-audio-view.is-lux:has(> .mt-av-grid) { --pp-av: var(--pp-base) !important; }
}
@media (orientation: landscape) and (max-height: 520px) { #v-meet { --pp-base: 58px; } }
/* phones (owner 2026-11-16: "phone view participants UI full screen left and right"): the room runs edge to edge — no side margins;
   the gold lines stay on top and bottom only */
@media (max-width: 699px) {
  html body #v-meet .mt-grid > .mt-audio-view.is-lux {
    width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; padding-left: 12px !important; padding-right: 12px !important; }
  #v-meet .mt-audio-view.is-lux > .mt-av-grid { width: 100% !important; }
  html body #v-meet .mt-grid:has(> .mt-audio-view.is-lux) { overflow-x: clip; }
}
/* phones (owner 2026-11-16: "phone button bar — move some to More to get more space"): the bar keeps Mic · Video · People · Chat ·
   More · Leave (bigger keys); Screen and Board are in More. Computers, tablets and phones held sideways keep every key. */
@media not all and (max-width: 699px) { #v-meet .mt-more-sheet .mt-more-phone { display: none !important; } }
/* full screen during a meeting (tablet: "enlarge the UI up to the top"): the room kept for Android's status bar is given back —
   the meeting starts 6 px from the top (the camera hole sits over the dark header edge) */
html:fullscreen body:has(#v-meet .mt-head-live) .app { padding-top: 6px !important; }
html:fullscreen body:has(#v-meet .mt-head-live) #v-meet { padding-top: 0 !important; }

/* "Tap to turn on sound" (owner reference image, calm concept): navy pill, metallic gold edge, gold speaker, gold serif words,
   a small gold tap sparkle; a slow, soft glow (none with reduced motion). Gold follows the theme accent. */
.mt-sound-key {
  display: inline-flex; align-items: center; gap: 16px; min-height: 66px; max-width: calc(100vw - 24px); box-sizing: border-box;
  padding: 10px 24px 10px 22px; border-radius: 999px; border: 3px solid transparent; cursor: pointer; color: #F3D58B;
  background: linear-gradient(180deg, var(--vt-key-a, #18335F) 0%, var(--vt-key-b, #0B1A3B) 60%, var(--vt-key-c, #08132C) 100%) padding-box,
              linear-gradient(180deg, color-mix(in srgb, var(--vt-acc, #D4AF37) 40%, #FFF6D8) 0%, var(--vt-acc, #D4AF37) 42%, color-mix(in srgb, var(--vt-acc, #D4AF37) 65%, #2A1A04) 78%, color-mix(in srgb, var(--vt-acc, #D4AF37) 70%, #FFF6D8) 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 12px 30px rgba(0, 0, 0, .45), 0 0 20px rgba(212, 175, 55, .26), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: skGlow 2.8s ease-in-out infinite; -webkit-tap-highlight-color: transparent;
}
.mt-sound-key .sk-spk { width: 34px; height: 34px; flex: none; color: color-mix(in srgb, var(--vt-acc, #E9C877) 85%, #fff); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.mt-sound-key .sk-tap { width: 26px; height: 26px; flex: none; color: #F3D58B; opacity: .9; }
.mt-sound-key .sk-t {
  font: 600 23px/1.02 "Cormorant Garamond", Georgia, serif; letter-spacing: .01em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt-acc, #EBCB7A) 25%, #FFF8E0) 0%, color-mix(in srgb, var(--vt-acc, #EBCB7A) 85%, #fff) 55%, color-mix(in srgb, var(--vt-acc, #EBCB7A) 80%, #3A2508) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55));
}
.mt-sound-key:hover { filter: brightness(1.06); }
.mt-sound-key:active { transform: translateX(-50%) scale(.98) !important; }
.mt-sound-key:focus-visible { outline: 2px solid #FFE7A3; outline-offset: 4px; }
@keyframes skGlow { 50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 12px 30px rgba(0, 0, 0, .45), 0 0 30px rgba(212, 175, 55, .42), inset 0 1px 0 rgba(255, 255, 255, .12); } }
@media (max-width: 480px) { .mt-sound-key { gap: 12px; min-height: 58px; padding: 8px 18px 8px 16px; } .mt-sound-key .sk-t { font-size: 20px; } .mt-sound-key .sk-spk { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .mt-sound-key { animation: none; } }

/* a shared document page scrolls up and down (owner: "PDF can move up and down to read the footer page") */
html body #v-meet .mt-main > .mt-docscroll {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  background: #050A18; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--vt-acc, #D4AF37) 60%, transparent) transparent; }
html body #v-meet .mt-main > .mt-docscroll > img { display: block; width: 100% !important; height: auto !important; max-height: none !important; object-fit: initial !important; }
html body #v-meet .mt-main > .mt-docscroll::after { content: ""; display: block; height: 64px; }   /* the caption never covers the last lines */
html body #v-meet .mt-main > .mt-docscroll:focus-visible { outline: 2px solid var(--vt-acc, #D4AF37); outline-offset: -2px; }

/* a shared whiteboard waits behind its key (owner: "whiteboard always off until the user turns it on"): a small gold dot on Board —
   on phones (Board lives in More) the dot is on More too */
#v-meet :is(#cBoard, #cBoard2).has-board, #v-meet #cMore.has-board { position: relative; }
#v-meet :is(#cBoard, #cBoard2).has-board::after {
  content: ""; position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--vt-acc, #E7C77E); box-shadow: 0 0 0 2px var(--vt-key-c, #0B1A3B), 0 0 8px color-mix(in srgb, var(--vt-acc, #E7C77E) 70%, transparent); }
#v-meet #cMore.has-board::after { content: none; }
@media (max-width: 699px) {
  #v-meet #cMore.has-board::after { content: ""; position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--vt-acc, #E7C77E); box-shadow: 0 0 0 2px var(--vt-key-c, #0B1A3B), 0 0 8px color-mix(in srgb, var(--vt-acc, #E7C77E) 70%, transparent); }
}

/* chat composer on every screen (tablet test: "Everyone" and the message box ran past the panel's right edge; the send key was cut) */
html body #v-meet#v-meet#v-meet#v-meet#v-meet :is(#mtPanel, #mtSide) .mt-compose { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet :is(#mtPanel, #mtSide) .mt-compose > * { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet :is(#mtPanel, #mtSide) .mt-cbox #mtText { min-width: 0 !important; flex: 1 1 auto !important; }

/* the gold laurels around the Participants emblem on every screen (owner reference; first only on phones) */
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-audio-view.is-lux .mt-av-emblem::before,
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-audio-view.is-lux .mt-av-emblem::after {
  content: ""; position: absolute; top: 6px; width: 32px; height: 64px; background: linear-gradient(180deg, #FFE7A3, var(--pp-gold) 55%, #9A7128); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 52'%3E%3Cpath d='M21 50C12 44 7 34 7 22 7 14 9 7 13 1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3Cg%3E%3Cellipse cx='8.5' cy='40' rx='5' ry='2.4' transform='rotate(-35 8.5 40)'/%3E%3Cellipse cx='5.6' cy='31.5' rx='5' ry='2.4' transform='rotate(-62 5.6 31.5)'/%3E%3Cellipse cx='4.8' cy='22.5' rx='5' ry='2.4' transform='rotate(-85 4.8 22.5)'/%3E%3Cellipse cx='6.4' cy='13.5' rx='4.6' ry='2.2' transform='rotate(-108 6.4 13.5)'/%3E%3Cellipse cx='14.5' cy='38' rx='4.6' ry='2.2' transform='rotate(28 14.5 38)'/%3E%3Cellipse cx='12.3' cy='28.5' rx='4.4' ry='2.1' transform='rotate(12 12.3 28.5)'/%3E%3Cellipse cx='12.4' cy='18.6' rx='4' ry='2' transform='rotate(-6 12.4 18.6)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 52'%3E%3Cpath d='M21 50C12 44 7 34 7 22 7 14 9 7 13 1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3Cg%3E%3Cellipse cx='8.5' cy='40' rx='5' ry='2.4' transform='rotate(-35 8.5 40)'/%3E%3Cellipse cx='5.6' cy='31.5' rx='5' ry='2.4' transform='rotate(-62 5.6 31.5)'/%3E%3Cellipse cx='4.8' cy='22.5' rx='5' ry='2.4' transform='rotate(-85 4.8 22.5)'/%3E%3Cellipse cx='6.4' cy='13.5' rx='4.6' ry='2.2' transform='rotate(-108 6.4 13.5)'/%3E%3Cellipse cx='14.5' cy='38' rx='4.6' ry='2.2' transform='rotate(28 14.5 38)'/%3E%3Cellipse cx='12.3' cy='28.5' rx='4.4' ry='2.1' transform='rotate(12 12.3 28.5)'/%3E%3Cellipse cx='12.4' cy='18.6' rx='4' ry='2' transform='rotate(-6 12.4 18.6)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-audio-view.is-lux .mt-av-emblem::before { left: -30px; filter: drop-shadow(0 0 4px rgba(212, 175, 55, .45)); }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-audio-view.is-lux .mt-av-emblem::after { right: -30px; transform: scaleX(-1); filter: drop-shadow(0 0 4px rgba(212, 175, 55, .45)); }


/* an open More sheet sits above notices ("Microphone blocked" covered its last row) */
html body #v-meet .mt-more-sheet:not([hidden]) { z-index: 95 !important; }
@media (max-width: 699px) {
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:not(.lx) .mt-bar > :is(#cScreen, #cBoard) { display: none !important; }
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:has(#cBoard.is-open) #cBoard2 {
    background: linear-gradient(180deg, var(--lx-gold-1), var(--lx-gold-2) 55%, var(--lx-gold-3)) !important; color: var(--lx-on-gold) !important; }
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:has(#cBoard.is-open) #cBoard2 :is(.ic, svg, span) { color: var(--lx-on-gold) !important; }
}

/* a shared document on a phone (3-device test: the caption "AWL-Headwords · 1 / 8" ran under "Draw on it"): caption and key share
   the bottom of the page — the caption gets the left side and ends with … , the key stays whole on the right */
@media (max-width: 699px) {
  html body #v-meet .mt-main > .mt-cap { font: 700 12.5px/1.2 "Manrope", system-ui, sans-serif !important; max-width: calc(100% - 128px) !important;
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; padding: 6px 10px !important; }
  html body #v-meet .mt-main > .mt-doc2board { font-size: 12.5px !important; min-height: 36px !important; padding: 0 12px !important; white-space: nowrap !important; max-width: 118px; }
}
/* phones: the room stops above the key bar and scrolls inside (20 people ran behind the bar) */
@media (max-width: 699px) {
  html body #v-meet .mt-grid > .mt-audio-view.is-lux { max-height: calc(var(--tg-viewport-stable-height, 100dvh) - var(--mt-barh, 72px) - 150px); min-height: min(60vh, 520px); }
}
/* the key column on the left (phones / touch tablets held sideways) is 72–80 px wide: short words (People, Width …) and every key
   inside the column (tablet test: "Participants" made the keys 100 px wide, over the gold frame and the header) */
@media (orientation: landscape) and (max-height: 520px), (orientation: landscape) and (pointer: coarse) {
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:not(.lx):has(> .mt-head-live) .mt-bar :is(.mt-ctl, .mt-bv) .mt-lbl-long { display: none !important; }
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:not(.lx):has(> .mt-head-live) .mt-bar :is(.mt-ctl, .mt-bv) .mt-lbl-short { display: block !important; }
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:not(.lx):has(> .mt-head-live) .mt-bar > .mt-ctl { width: 100% !important; min-width: 0 !important; max-width: 100% !important; padding: 4px 2px !important; box-sizing: border-box !important; }
  html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-wrap:not(.lx):has(> .mt-head-live) .mt-bar .mt-ctl > span { font-size: 11px !important; letter-spacing: 0 !important; }
}
@media (orientation: landscape) and (max-height: 520px) {
  html body #v-meet .mt-grid > .mt-audio-view.is-lux { max-height: calc(var(--tg-viewport-stable-height, 100dvh) - 90px); }
}
@media (max-width: 340px) { #v-meet .mt-audio-view.is-lux > .mt-av-grid { grid-template-columns: calc(var(--pp-av) + 36px); } }
@media (max-height: 520px) and (orientation: landscape) {
  html body #v-meet .mt-grid > .mt-audio-view.is-lux { min-height: 0; padding: 10px 12px; }
  #v-meet .mt-audio-view.is-lux .mt-av-emblem { display: none; }
  #v-meet .mt-audio-view.is-lux .mt-av-t { font-size: 22px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #v-meet .mt-audio-view.is-lux .mt-coin.is-speaking .mt-coin-av { animation: none; }
  #v-meet .mt-audio-view.is-lux .mt-coin-av { transition: none; }
}

/* ---------- Slides & documents (owner 2026-11-16: "slide document UI not good") ---------- */
#v-meet .mt-docp { display: grid; gap: 12px; margin-top: 4px; }
#v-meet .mt-docp-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pp-navy-2) 85%, transparent), color-mix(in srgb, var(--pp-navy) 92%, transparent));
  border: 1px solid var(--pp-line); box-shadow: inset 0 1px 0 rgba(255, 231, 163, .12); }
#v-meet .mt-docp-card.is-empty { border-style: dashed; }
#v-meet .mt-docp-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, var(--pp-navy-2), var(--pp-navy) 80%); border: 1.5px solid var(--pp-gold); color: var(--pp-gold-hi); }
#v-meet .mt-docp-ic :is(svg, .ic) { width: 22px; height: 22px; }
#v-meet .mt-docp-tx { min-width: 0; display: grid; gap: 2px; }
#v-meet .mt-docp-tx small { font: 700 11px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-gold); }
#v-meet .mt-docp-tx b { font: 600 19px/1.2 "Cormorant Garamond", Georgia, serif; color: var(--pp-gold-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v-meet .mt-docp-tx span { font: 500 13px/1.35 "Manrope", system-ui, sans-serif; color: var(--vt-ink-2, #C9D1DC); }
#v-meet .mt-docp-main {
  display: flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 16px; cursor: pointer; box-sizing: border-box;
  background: linear-gradient(180deg, #FFE7A3, var(--pp-gold) 55%, var(--pp-gold-lo)); color: #14110A; border: 1px solid #FFF1C9;
  font: 800 15px/1.2 "Manrope", system-ui, sans-serif; box-shadow: 0 0 16px color-mix(in srgb, var(--pp-gold) 35%, transparent), 0 8px 18px rgba(0, 0, 0, .3); text-align: center; }
#v-meet .mt-docp-main :is(svg, .ic) { width: 20px; height: 20px; color: #14110A; flex: none; }
#v-meet .mt-docp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#v-meet .mt-docp-sec {
  display: flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 14px; cursor: pointer; box-sizing: border-box;
  background: color-mix(in srgb, var(--pp-navy) 90%, transparent); border: 1px solid var(--pp-line); color: var(--pp-gold-hi);
  font: 700 14px/1.2 "Manrope", system-ui, sans-serif; }
#v-meet .mt-docp-sec :is(svg, .ic) { width: 18px; height: 18px; flex: none; }
#v-meet .mt-docp-sec.is-stop { color: #FFB3B3; border-color: rgba(229, 72, 77, .55); }
#v-meet .mt-docp-tip { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--pp-navy) 55%, transparent); color: var(--vt-ink-2, #C9D1DC); font: 500 13px/1.45 "Manrope", system-ui, sans-serif; }
#v-meet .mt-docp-tip :is(svg, .ic) { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--pp-gold); }

/* ---------- the shared document on the stage: a centred sheet on the theme's deep colour, navy-and-gold controls ---------- */
html body #v-meet .mt-main:has(> .mt-docscroll) { background: var(--vt-base, #070F24) !important; }
html body #v-meet .mt-main > .mt-docscroll { background: var(--vt-base, #070F24) !important; padding: 14px 14px 0; box-sizing: border-box; }
html body #v-meet .mt-main > .mt-docscroll > img { max-width: 920px; margin: 0 auto; border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pp-gold) 35%, transparent), 0 18px 40px rgba(0, 0, 0, .45); }
html body #v-meet .mt-main.mt-main-full { padding-top: env(safe-area-inset-top, 0px) !important; box-sizing: border-box; background: var(--vt-base, #070F24) !important; }
html body #v-meet .mt-main > .mt-cap {
  background: color-mix(in srgb, var(--pp-navy) 94%, transparent) !important; border: 1px solid var(--pp-line) !important; border-radius: 999px !important;
  color: var(--pp-gold-hi) !important; padding: 7px 14px !important; font: 700 14px/1.2 "Manrope", system-ui, sans-serif !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .35) !important; }
html body #v-meet .mt-main > :is(.mt-nav, .mt-fullkey) {
  background: radial-gradient(circle at 35% 25%, var(--pp-navy-2), var(--pp-navy) 80%) !important; border: 1.5px solid var(--pp-gold) !important;
  color: var(--pp-gold-hi) !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .4), 0 0 10px color-mix(in srgb, var(--pp-gold) 25%, transparent) !important; }
html body #v-meet .mt-main > :is(.mt-nav, .mt-fullkey) :is(svg, .ic) { color: var(--pp-gold-hi) !important; }
/* full document view: the page starts below Android's status bar (the scroller was pinned to the top edge) */
html body #v-meet .mt-main.mt-main-full > .mt-docscroll { top: env(safe-area-inset-top, 0px) !important; }

/* a document or shared screen on the stage (tablet test: the Participants room — emblem, plaque, frame — lay over the PDF):
   the people become a compact row of circles under it; the full room returns when nothing is shown */
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-grid > .mt-audio-view.is-lux {
  --pp-av: 56px; min-height: 0 !important; max-height: none !important; padding: 8px 6px !important; margin-top: 10px !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux::before,
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux > :is(.mt-av-emblem, .mt-av-t) { display: none !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux > .mt-av-grid {
  width: 100% !important; border: 0 !important; background: transparent !important; padding: 0 !important;
  display: flex !important; flex-wrap: nowrap !important; justify-content: center !important; gap: 14px !important; overflow-x: auto !important; overflow-y: visible !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux .mt-coin { width: 96px !important; flex: none; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux .mt-coin-av { width: 56px !important; height: 56px !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux .mt-coin-ini { font-size: 26px !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux .mt-coin-nm { font-size: 12.5px !important; margin-top: 4px !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux :is(.mt-coin-mute, .mt-coin-live) { width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; }
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-audio-view.is-lux .mt-coin-host { height: 22px !important; font-size: 10.5px !important; padding: 0 9px !important; min-width: 0 !important; }
/* owner 2026-11-16 ("when users are off camera it hides all — I mean the participants"): while a document or shared screen shows,
   the camera-off Participants room is hidden completely (People key still lists everyone); it returns when the document closes */
html body #v-meet#v-meet#v-meet#v-meet#v-meet .mt-stage:has(> #mtMain:not([hidden])) .mt-grid > .mt-audio-view.is-lux { display: none !important; }
