/* Live Meeting whiteboard, Zoom-style tools (Claude Code 2026-11-10, owner Zoom photos: "Add a function like this to our live meeting"):
   floating tool rail on the board, ＋ tools tray with search, undo / redo and zoom corners, shared timer. Remove the link in index.html to undo. */
.mt-boardwrap { position: relative; overflow: hidden; border-radius: 14px; }
.mt-board.tool-hand { cursor: grab; } .mt-board.tool-hand:active { cursor: grabbing; }
.mt-board.tool-note, .mt-board.tool-stamp, .mt-board.tool-shape, .mt-board.tool-highlight { cursor: crosshair; }

/* rail */
.mt-rail { position: absolute; left: 8px; top: 8px; z-index: 3; display: flex; flex-direction: column; gap: 3px; padding: 5px;
  max-height: calc(100% - 64px); overflow-y: auto; scrollbar-width: none; border-radius: 14px;
  background: rgba(18, 22, 32, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mt-rail::-webkit-scrollbar { display: none; }
.mt-rb { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: #F4F1EA; font: 700 17px/1 "Manrope", system-ui, sans-serif; }
.mt-rb:hover { background: rgba(255, 255, 255, .1); }
.mt-rb.on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px #E2BE72; }
.mt-rb.mt-rplus { color: #2A1C05; font-size: 22px; background: linear-gradient(180deg, #FFF0C4, #F1CF7E 40%, #D7A649); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.mt-rb.mt-rplus.on { box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .3); }
.mt-rb:focus-visible, .mt-cb:focus-visible, .mt-titem:focus-visible { outline: 2px solid #E2BE72; outline-offset: 1px; }

/* tray */
.mt-tray { position: absolute; left: 60px; top: 8px; z-index: 4; width: min(310px, calc(100% - 72px)); max-height: calc(100% - 16px); overflow-y: auto;
  padding: 10px; border-radius: 14px; background: #151B28; color: #F4F1EA; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); border: 1px solid rgba(226, 190, 114, .35); }
.mt-tray [hidden] { display: none !important; }
.mt-tsearch { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07); color: #fff; font: 600 .9rem "Manrope", sans-serif; }
.mt-tsearch::placeholder { color: #A9B3C6; }
.mt-thead { margin: 12px 4px 4px; font: 800 .68rem/1.2 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #E2BE72; }
.mt-titem { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; cursor: pointer;
  background: none; color: #F4F1EA; text-align: left; box-sizing: border-box; }
button.mt-titem:hover { background: rgba(255, 255, 255, .08); }
.mt-tic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .09); font-size: 17px; }
.mt-ttx { min-width: 0; }
.mt-ttx b { display: block; font: 700 .88rem/1.25 "Manrope", sans-serif; }
.mt-ttx small { display: block; margin-top: 1px; font: 500 .74rem/1.3 "Manrope", sans-serif; color: #A9B3C6; }
.mt-trow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.mt-tray .mt-chip { min-height: 30px; padding: 0 10px; font-size: .78rem; color: #F4F1EA; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.mt-tray .mt-chip.danger { background: #8E1F1F; border-color: #B91C1C; }
.mt-tstick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 0 2px; }
.mt-tstick button { aspect-ratio: 1; border: 0; border-radius: 8px; background: none; font-size: 21px; cursor: pointer; }
.mt-tstick button:hover { background: rgba(255, 255, 255, .1); }

/* corners: undo / redo, zoom */
.mt-bcorner { position: absolute; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px;
  background: rgba(18, 22, 32, .88); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.mt-bl { left: 8px; } .mt-br { right: 8px; }
.mt-cb { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; cursor: pointer; background: transparent;
  color: #F4F1EA; font: 700 18px/1 "Manrope", system-ui, sans-serif; }
.mt-cb:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.mt-cb:disabled { opacity: .35; cursor: default; }
.mt-zpct { min-width: 50px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #F4F1EA; font: 700 .78rem "Manrope", sans-serif; cursor: pointer; }

/* shared timer */
.mt-timer { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 14px; border-radius: 999px;
  background: rgba(18, 22, 32, .92); color: #fff; font: 800 1rem/1.2 "Manrope", sans-serif; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.mt-timer.is-up { background: #B91C1C; animation: mt-timer-pulse 1s ease-in-out infinite; }
@keyframes mt-timer-pulse { 50% { transform: translateX(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mt-timer.is-up { animation: none; } }
.mt-stampnow { font-size: 26px; line-height: 1; padding: 0 4px; }

/* a small board (phone, not full screen): rail along the top, tray as a sheet over the page, smaller corner keys */
.mt-boardwrap.is-small .mt-rail { flex-direction: row; top: 6px; left: 6px; max-height: none; max-width: calc(100% - 12px); overflow-x: auto; overflow-y: hidden; padding: 3px; gap: 2px; }
.mt-boardwrap.is-small .mt-rb { width: 32px; height: 32px; font-size: 15px; }
.mt-boardwrap.is-small .mt-rb.mt-rplus { font-size: 19px; }
.mt-boardwrap.is-small .mt-tray { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); width: auto; max-height: 62vh; z-index: 70; }
.mt-boardwrap.is-small .mt-bcorner { bottom: 6px; padding: 2px; }
.mt-boardwrap.is-small .mt-bl { left: 6px; } .mt-boardwrap.is-small .mt-br { right: 6px; }
.mt-boardwrap.is-small .mt-cb { width: 28px; height: 28px; font-size: 15px; }
.mt-boardwrap.is-small .mt-zpct { min-width: 42px; height: 28px; font-size: .7rem; }
.mt-boardwrap.is-small .mt-timer { top: 44px; font-size: .85rem; padding: 4px 10px; }

/* anchored to the board itself (--cvl / --cvt / --cvr / --cvb = space around the canvas, set by MeetScreen.js) */
.mt-rail { left: calc(var(--cvl, 0px) + 8px); top: calc(var(--cvt, 0px) + 8px); max-height: calc(100% - var(--cvt, 0px) - var(--cvb, 0px) - 64px); }
.mt-tray { left: calc(var(--cvl, 0px) + 60px); top: calc(var(--cvt, 0px) + 8px); max-height: calc(100% - var(--cvt, 0px) - var(--cvb, 0px) - 16px); }
.mt-bcorner { bottom: calc(var(--cvb, 0px) + 8px); }
.mt-bl { left: calc(var(--cvl, 0px) + 8px); } .mt-br { right: calc(var(--cvr, 0px) + 8px); }
.mt-timer { top: calc(var(--cvt, 0px) + 8px); left: calc(var(--cvl, 0px) + (100% - var(--cvl, 0px) - var(--cvr, 0px)) / 2); }
.mt-boardwrap.is-small .mt-rail { left: calc(var(--cvl, 0px) + 6px); top: calc(var(--cvt, 0px) + 6px); max-width: calc(100% - var(--cvl, 0px) - var(--cvr, 0px) - 12px); }
.mt-boardwrap.is-small .mt-bcorner { bottom: calc(var(--cvb, 0px) + 6px); }
.mt-boardwrap.is-small .mt-bl { left: calc(var(--cvl, 0px) + 6px); } .mt-boardwrap.is-small .mt-br { right: calc(var(--cvr, 0px) + 6px); }
.mt-boardwrap.is-small .mt-timer { top: calc(var(--cvt, 0px) + 44px); }

/* 2026-11-10 live test: on a phone / tablet held upright, Chat / Board / People / Slides opened BELOW the big video tiles (hidden behind
   the control bar). While a panel is open the cameras become a small strip on top (like Zoom), so the panel is on screen. */
@media (max-width: 979px), (orientation: portrait) and (max-width: 1100px) {
  #v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) .mt-main[hidden] + .mt-grid:not(.is-alone) {
    display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; flex: none !important;
    height: auto !important; min-height: 0 !important; grid-template: none !important;
  }
  #v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) .mt-main[hidden] + .mt-grid:not(.is-alone) > .mt-tile {
    flex: 0 0 auto !important; width: min(38vw, 200px) !important; height: calc(min(38vw, 200px) * .66) !important; min-height: 0 !important;
  }
  #v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) .mt-main[hidden] + .mt-grid:not(.is-alone) .mt-avatar {
    width: 42px !important; height: 42px !important; font-size: 1.15rem !important;
  }
  #v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) .mt-main[hidden] + .mt-grid:not(.is-alone) .mt-tag {
    font-size: .68rem !important; padding: 2px 7px !important; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}

/* ====================== 2026-11-10 Live Meeting 10/10 pass (owner: "luxury first class … text size, font style, all devices") ======
   One type scale: titles Cormorant, everything else Manrope; nothing below 12 px; sizes in rem so they follow Settings › Text size. */
/* the call page is one screen (book-page.css adds 96 px to every page's bottom) */
body:has(#v-meet .mt-head-live) { padding-top: 0 !important; padding-bottom: 0 !important; }

/* panel titles (Chat, People, Board, Slides, Dictionary) in the serif like every other title */
#v-meet .mt-ph b, .mt-panel .mt-ph b { font: 700 1.4rem/1.15 "Cormorant Garamond", Georgia, serif !important; letter-spacing: .005em; color: var(--vt-ink); }
#v-meet .mt-ph .mt-x { width: 36px; height: 36px; }

/* small labels never below 12 px */
#v-meet .mt-live-title > span { font-size: max(12px, .7rem) !important; }
#v-meet .mt-wtk span, .mt-tk span { font-size: max(12px, .64rem) !important; }
#v-meet .mt-wtk i, .mt-tk i { font-size: max(12px, .66rem) !important; }
#v-meet .mt-bar .mt-ctl { font-size: max(12px, .64rem) !important; }
#v-meet .mt-more-sheet .mt-ctl { font-size: max(12.5px, .72rem) !important; }
#v-meet .mt-tag { font-size: max(12.5px, .74rem); }
#v-meet .mt-recent-t small { font-size: max(12px, .7rem) !important; }

/* gold line icons on the board rail and corner keys (were emoji) */
.mt-ri { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-rb.mt-rplus .mt-ri { width: 22px; height: 22px; stroke-width: 2.4; }
.mt-boardwrap.is-small .mt-ri { width: 17px; height: 17px; }
.mt-cb .mt-ri { width: 18px; height: 18px; }
.mt-rb.on .mt-ri { color: #F1CF7E; }
#v-meet .mt-btn .ic, #v-meet .mt-chip .ic { width: 18px; height: 18px; flex: none; }

/* tablets and computers: the control bar has room for every label (it was 313 px wide with "Mut…" "Scr…") and type grows a step */
@media (min-width: 600px) {
  #v-meet .mt-bar { width: min(620px, calc(100vw - 32px)) !important; padding: 8px 12px !important; }
  #v-meet .mt-bar .mt-ctl { height: 62px !important; font-size: max(12.5px, .7rem) !important; }
  #v-meet .mt-bar .mt-ctl .ic { width: 24px; height: 24px; }
  #v-meet .mt-bar .mt-leave { flex-basis: 56px !important; width: 56px !important; height: 56px !important; }
  #v-meet .mt-live-title b { font-size: 1.4rem !important; }
  #v-meet .mt-live-title > span { font-size: max(13px, .76rem) !important; }
  #v-meet .mt-tag { font-size: max(13.5px, .8rem); padding: 5px 10px; }
  #v-meet .mt-avatar { width: 84px; height: 84px; font-size: 2.1rem; }
}
/* computers / landscape tablets: the side panel is a full-height column like Zoom, chat list fills it */
@media (min-width: 980px) {
  #v-meet .mt-wrap:has(> .mt-head-live) > .mt-panel:not([hidden]):not(.mt-full) {
    align-self: stretch !important; position: sticky; top: 72px; max-height: calc(100dvh - 180px); min-height: min(560px, calc(100dvh - 180px));
    display: flex !important; flex-direction: column; overflow: hidden;
  }
  #v-meet .mt-panel:not(.mt-full) > .mt-msgs { flex: 1 1 auto; max-height: none; min-height: 0; }
  #v-meet .mt-panel:not(.mt-full) > .mt-boardwrap { flex: 1 1 auto; min-height: 0; }
}
/* largest text sizes (Settings › Text size 22–26 px): the header and the control bar are chrome — capped on phones so nothing runs
   under the keys or turns into "Scre…"; the content (chat, people, board text) still grows */
#v-meet .mt-live-title { overflow: hidden; }
#v-meet .mt-live-title > span { max-width: 100%; overflow: hidden; white-space: nowrap; }
@media (max-width: 599px) {
  #v-meet .mt-live-title b { font-size: min(1.12rem, 21px) !important; }
  #v-meet .mt-live-title > span { font-size: min(max(12px, .7rem), 13px) !important; }
  #v-meet .mt-bar .mt-ctl { font-size: 12px !important; letter-spacing: -.005em; padding-left: 1px !important; padding-right: 1px !important; }
  #v-meet .mt-tag { font-size: min(max(12.5px, .74rem), 14px); }
}
#v-meet .mt-bar .mt-ctl span, #v-meet .mt-more-sheet .mt-ctl span { font-size: inherit !important; }
/* phone held sideways (short screen): an open panel sits in a right-hand column, cameras on the left — nothing behind the bar */
@media (orientation: landscape) and (max-height: 520px) and (min-aspect-ratio: 13/10) {   /* 2026-11-15: never on an upright phone (keyboard open) */
  /* 2026-11-14 owner: "footer overlays chat and board" — the rule for 'no panel open' (meet-call.css) also matched here (the
     hidden side panel counts as 'a hidden panel') and won; the doubled #v-meet makes this layout win on a sideways phone */
  #v-meet#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) {
    display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(300px, 48%) !important; grid-template-rows: auto minmax(0, 1fr) !important;
    column-gap: 10px !important; row-gap: 8px !important; height: var(--tg-viewport-stable-height, 100dvh) !important; box-sizing: border-box !important;
    padding-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 86px) !important; overflow: hidden !important;
  }
  #v-meet#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) > .mt-head-live { grid-column: 1 / -1; grid-row: 1; }
  #v-meet#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) > .mt-stage { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; }
  #v-meet#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) > .mt-panel {
    grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; position: static !important; align-self: stretch !important; margin: 0 !important;
  }
  #v-meet#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) .mt-main[hidden] + .mt-grid:not(.is-alone) { flex-wrap: wrap !important; }
  #v-meet#v-meet .mt-wrap:has(> .mt-head-live):has(> .mt-panel:not([hidden]):not(.mt-full)) .mt-main[hidden] + .mt-grid:not(.is-alone) > .mt-tile {
    width: calc(50% - 4px) !important; height: min(130px, calc((100dvh - 190px))) !important;
  }
  #v-meet .mt-panel:not(.mt-full) > .mt-msgs { max-height: none; }
}

/* 2026-11-10 (owner "do 1 to 3", item 2): computer / tablet sideways — camera tiles are wide 16:9 like real video (were 500 × 700,
   faces would be cropped); as large as the stage allows, centred, like Zoom's gallery. --c / --r = columns / rows per count. */
@media (orientation: landscape) and (min-width: 700px) and (min-height: 521px) {
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone) { container-type: size; --c: 1; --r: 1; align-content: center; justify-content: center; }
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone)[data-n="2"] { --c: 2; }
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone)[data-n="3"] { --c: 3; }
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone)[data-n="4"] { --c: 2; --r: 2; }
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone):is([data-n="5"], [data-n="6"]) { --c: 3; --r: 2; }
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone) > .mt-tile {
    --cw: calc((100cqw - (var(--c) - 1) * 10px) / var(--c)); --rh: calc((100cqh - (var(--r) - 1) * 10px) / var(--r));
    width: min(var(--cw), calc(var(--rh) * 16 / 9)) !important; height: min(var(--rh), calc(var(--cw) * 9 / 16)) !important;
    place-self: center;
  }
}

/* 2026-11-10 (owner "do 1 to 3", item 3): blocked / missing microphone or camera = one slim floating gold line under the header
   (was a big pink box in the middle of the call) */
#v-meet .mt-note {
  position: fixed; z-index: 22; left: 50%; transform: translateX(-50%); top: calc(var(--tg-top, 0px) + 76px);
  width: max-content; max-width: calc(100vw - 24px); box-sizing: border-box; display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--mc-glass, rgba(14, 22, 40, .9)); color: var(--vt-ink);
  border: 1px solid color-mix(in srgb, #F1CF7E 55%, transparent); box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 600 max(12.5px, .74rem)/1.2 "Manrope", sans-serif;
}
#v-meet .mt-note[hidden] { display: none; }
#v-meet .mt-note > .ic { width: 16px; height: 16px; color: #F0566A; flex: none; }
#v-meet .mt-note b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v-meet .mt-note-how { flex: none; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; color: #2A1C05;
  font: 800 max(12px, .7rem)/1 "Manrope", sans-serif; background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649); }
#v-meet .mt-note-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--vt-ink); }
#v-meet .mt-note-x .ic { width: 15px; height: 15px; }
@media (min-width: 600px) { #v-meet .mt-note { top: calc(var(--tg-top, 0px) + 86px); } }

/* 2026-11-10 7-person test (owner Zoom photo): "N listening" was an extra grid row that squeezed every tile → a small pill at the
   bottom of the stage; the letter circle follows the tile height (it covered the name in 3 × 2 tiles) */
@media (orientation: landscape) and (min-width: 700px) and (min-height: 521px) {
  #v-meet .mt-main[hidden] + .mt-grid:not(.is-alone) > .mt-aud {
    position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 2; margin: 0; padding: 4px 12px; border-radius: 999px;
    background: var(--mc-glass, rgba(14, 22, 40, .85)); border: 1px solid var(--vt-line); font: 700 max(12px, .7rem)/1.2 "Manrope", sans-serif;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap;
  }
}
#v-meet .mt-grid > .mt-tile { container-type: size; }
#v-meet .mt-grid > .mt-tile .mt-avatar { width: clamp(34px, 46cqh, 84px) !important; height: clamp(34px, 46cqh, 84px) !important; font-size: clamp(.95rem, 21cqh, 2.1rem) !important; }

/* ===== 2026-11-10 owner (Zoom iPad photo): the whiteboard is the main area, cameras a thin strip on top, Chat / People BESIDE it,
   so students chat while the teacher writes. JS puts .mt-board-stage (+ .mt-with-side) on #mtWrap; #mtSide = the side panel. ===== */
#v-meet .mt-wrap.mt-board-stage { --strip-h: 84px; }
/* cameras: one thin row of small tiles */
#v-meet .mt-wrap.mt-board-stage .mt-main[hidden] + .mt-grid,
#v-meet .mt-wrap.mt-board-stage .mt-main[hidden] + .mt-grid:not(.is-alone) {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-start !important;
  gap: 8px !important; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: var(--strip-h) !important; min-height: 0 !important;
  container-type: normal !important; grid-template: none !important; flex: none !important;
}
#v-meet .mt-wrap.mt-board-stage .mt-grid > .mt-tile {
  flex: 0 0 auto !important; width: calc(var(--strip-h) * 1.6) !important; height: var(--strip-h) !important; min-height: 0 !important; aspect-ratio: auto !important;
}
#v-meet .mt-wrap.mt-board-stage .mt-grid > .mt-tile .mt-tag { font-size: 11px !important; padding: 2px 6px !important; left: 4px; right: 4px; bottom: 4px; }
#v-meet .mt-wrap.mt-board-stage .mt-grid > .mt-aud { position: static !important; transform: none !important; flex: none; align-self: center; }
#v-meet .mt-wrap.mt-board-stage > .mt-stage { min-height: 0; flex: none; }
/* the board panel fills the free space; the canvas is as large as fits (1600 × 1000 board = 1.6) */
#v-meet .mt-wrap.mt-board-stage > #mtPanel { position: static !important; display: flex !important; flex-direction: column; min-height: 0; max-height: none !important; overflow: hidden; margin: 0 !important; }
#v-meet .mt-wrap.mt-board-stage > #mtPanel > .mt-boardwrap { flex: 1 1 auto; min-height: 180px; container-type: size; display: flex; align-items: center; justify-content: center; }
#v-meet .mt-wrap.mt-board-stage > #mtPanel .mt-board { width: min(100cqw, 100cqh * 1.6) !important; max-height: 100cqh !important; height: auto !important; }
#v-meet .mt-wrap.mt-board-stage > #mtPanel > .mt-ph { display: none; }          /* the board's own title row: the bar's Board key closes it */
#v-meet .mt-side { gap: 8px; }
#v-meet .mt-side .mt-msgs { flex: 1 1 auto; max-height: none; min-height: 0; }
#v-meet .mt-side[hidden] { display: none !important; }

/* wide screens (computer, iPad sideways): head across; strip + board on the left; side panel full height on the right */
@media (min-width: 900px), (orientation: landscape) and (min-width: 700px) and (min-height: 521px) {
  #v-meet .mt-wrap.mt-board-stage {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto minmax(0, 1fr) !important;
    grid-template-areas: "head" "stage" "board" !important; column-gap: 12px !important; row-gap: 8px !important;
    height: var(--tg-viewport-stable-height, 100dvh) !important; box-sizing: border-box !important; overflow: hidden !important;
    padding-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 88px) !important;
  }
  #v-meet .mt-wrap.mt-board-stage.mt-with-side { grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 380px) !important; grid-template-areas: "head head" "stage side" "board side" !important; }
  #v-meet .mt-wrap.mt-board-stage > .mt-head-live { grid-area: head; }
  #v-meet .mt-wrap.mt-board-stage > .mt-tgbar { display: none; }
  #v-meet .mt-wrap.mt-board-stage > .mt-stage { grid-area: stage; }
  #v-meet .mt-wrap.mt-board-stage > #mtPanel { grid-area: board; }
  #v-meet .mt-wrap.mt-board-stage > #mtSide { grid-area: side; position: static !important; display: flex !important; flex-direction: column; min-height: 0; overflow: hidden; margin: 0 !important; max-height: none !important; }
  #v-meet .mt-wrap.mt-board-stage > #mtSide[hidden] { display: none !important; }
}
/* phones / tablets upright: strip, board, then the side panel under it */
@media (max-width: 899px) and (orientation: portrait), (max-width: 699px) {
  #v-meet .mt-wrap.mt-board-stage { --strip-h: 64px; }
  #v-meet .mt-wrap.mt-board-stage > #mtPanel > .mt-boardwrap { height: min(62vw, 46dvh); flex: none; }
  #v-meet .mt-wrap.mt-board-stage > #mtSide { max-height: 42dvh; display: flex; flex-direction: column; overflow: hidden; }
  #v-meet .mt-wrap.mt-board-stage > #mtSide .mt-msgs { max-height: 26dvh; }
}
/* People key: the number of people (like Zoom's "Participants 5"); the top bar no longer shows it */
#v-meet .mt-bar #cPeople { position: relative; }
#v-meet .mt-pcount { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  display: grid; place-items: center; font: 800 10px/1 "Manrope", sans-serif; font-style: normal; color: #2A1C05;
  background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649); }
#v-meet .mt-bar #cHands { left: auto; right: calc(50% + 10px); }
/* strip tiles must beat the 16:9 gallery rule above (it is more specific) */
#v-meet .mt-wrap.mt-board-stage .mt-main[hidden] + .mt-grid:not(.is-alone) > .mt-tile,
#v-meet .mt-wrap.mt-board-stage .mt-main[hidden] + .mt-grid > .mt-tile {
  flex: 0 0 auto !important; width: calc(var(--strip-h) * 1.6) !important; height: var(--strip-h) !important; place-self: auto !important;
}
#v-meet .mt-wrap.mt-board-stage .mt-main[hidden] + .mt-grid > .mt-aud { position: static !important; transform: none !important; }
#v-meet .mt-wrap.mt-board-stage > .mt-note { top: auto !important; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 92px); }   /* board layout: notice above the bar, not over the camera strip */
@media (min-width: 900px) { #v-meet .mt-wrap.mt-board-stage > .mt-note { bottom: auto !important; top: calc(var(--tg-top, 0px) + 22px) !important; } }   /* wide: in the empty middle of the top bar */
#v-meet .mt-wrap.mt-board-stage > #mtSide { overflow-y: auto !important; overscroll-behavior: contain; }   /* 20 people: the list scrolls inside its column */

/* ===== 2026-11-13 Claude Code: live translated captions + meeting report (ui/src/core/meet-captions.js) ===== */
#mtStage { position: relative; }
.mt-caps { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6; width: min(92%, 860px);
  display: grid; gap: 4px; pointer-events: none; }
.mt-caps[hidden] { display: none; }
.mt-cap { margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(8, 12, 24, .78); color: #FFF;
  font-size: clamp(14px, 1.05rem, 22px); line-height: 1.35; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); backdrop-filter: blur(4px); }
.mt-cap b { color: #E4D2A0; font-weight: 700; }
.mt-cap.is-wait { opacity: .72; font-style: italic; }
.mt-caps .mt-cap:not(:last-child) { opacity: .7; font-size: .92em; }
#cCap.is-on { color: #E4D2A0; }
#cCap.is-on::after { content: ''; position: absolute; top: 6px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #E4D2A0; }
.mt-cap-dlg, .mt-rep-dlg { border: 0; border-radius: 16px; padding: 16px 18px; width: min(94vw, 520px); max-height: 88vh; overflow: auto;
  background: color-mix(in srgb, var(--btn-a, #14223F) 88%, #000); color: #F4EEDF; box-shadow: inset 0 0 0 1.5px #C9AE76, 0 18px 50px rgba(0, 0, 0, .5); }
.mt-cap-dlg::backdrop, .mt-rep-dlg::backdrop { background: rgba(0, 0, 0, .55); }
.mtc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mtc-head h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.5rem; color: #E4D2A0; }
.mtc-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #F4EEDF; font-size: 16px; cursor: pointer; }
.mtc-state { margin: 4px 0 12px; font-size: .9rem; }
.mtc-field { display: grid; gap: 4px; margin: 10px 0; font-size: .82rem; color: #E4D2A0; font-weight: 700; }
.mtc-field select { font: inherit; font-weight: 500; font-size: .95rem; padding: 9px 10px; border-radius: 10px; border: 0;
  background: #FFFDF8; color: #1E2C4A; color-scheme: light; }
.mtc-sw { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: .92rem; }
.mtc-sw input { width: 20px; height: 20px; accent-color: #C9AE76; }
.mtc-note, .mtr-ai, .mtr-note { font-size: .78rem; opacity: .78; margin: 10px 0; }
.mtc-main, .mtc-report { display: block; width: 100%; text-align: center; margin: 10px 0 4px; padding: 12px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.mtc-main { background: linear-gradient(180deg, #E4D2A0, #D2B676 55%, #BFA060); color: #1A2240; }
.mtc-report { background: rgba(255, 255, 255, .08); color: #F4EEDF; box-shadow: inset 0 0 0 1.5px #C9AE76; }
.mtr-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; margin: 10px 0 2px; color: #FFF; }
.mtr-body h4 { margin: 14px 0 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #E4D2A0; }
.mtr-body p, .mtr-body li { font-size: .95rem; line-height: 1.45; }
.mtr-body ul { margin: 0; padding-left: 20px; }
.mtr-facts { opacity: .75; font-size: .85rem !important; margin: 0; }
.mtr-wait { opacity: .8; font-style: italic; }
.mtr-err { color: #FCA5A5; }
.mt-cap-dlg, .mt-rep-dlg { box-sizing: border-box; overflow-x: hidden; }
.mtc-field { min-width: 0; }
.mtc-field select { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.mtc-field { grid-template-columns: minmax(0, 1fr); }
.mtc-voice { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px 30px; font-size: .85rem; }
.mtc-voice > span { color: #E4D2A0; font-weight: 700; margin-right: 2px; }
.mtc-voice button { flex: 1; padding: 8px 10px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #F4EEDF; box-shadow: inset 0 0 0 1.5px rgba(201, 174, 118, .55); }
.mtc-voice button[aria-checked="true"] { background: linear-gradient(180deg, #E4D2A0, #BFA060); color: #1A2240; box-shadow: none; }

/* 2026-11-15 owner (tablet photo: "typing text difficult … not modern luxury"): calm gold edit box, one gold tick at the corner, no floating format bar */
#v-meet .mt-bedit.mt-rich { border: 1.5px solid rgba(200, 140, 39, .85); border-radius: 12px; background: rgba(255, 252, 244, .94); padding: 6px 12px; box-shadow: 0 0 0 4px rgba(232, 182, 79, .16), 0 8px 22px rgba(20, 33, 61, .14); caret-color: #C88C27; }
#v-meet .mt-bedit.mt-rich:empty::before { color: #B59A63; font-style: italic; font-weight: 400; }
#v-meet .mt-tdone { position: absolute; z-index: 5; }
#v-meet .mt-tdone button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #B5852F; background: linear-gradient(180deg, #FFF0C4, #E8B64F 55%, #C88C27); color: #2A1C05; font: 700 20px/1 system-ui, sans-serif; box-shadow: 0 6px 16px rgba(20, 33, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .7); cursor: pointer; }
#v-meet .mt-tdone button:active { transform: scale(.94); }

/* 2026-11-15 owner: "add button adjust bright on white board" — dim sun · gold slider · bright sun in the zoom corner; "Board 85%" while sliding */
#v-meet .mt-blight { position: relative; display: flex; align-items: center; gap: 1px; }
#v-meet .mt-blight svg { width: 18px; height: 18px; fill: none; stroke: #E8B64F; stroke-width: 1.8; stroke-linecap: round; }
#v-meet .mt-bl-up svg circle { fill: #E8B64F; }
#v-meet .mt-bl-range { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; margin: 0 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(232, 182, 79, .28), #E8B64F); outline: none; cursor: pointer; }
#v-meet .mt-bl-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #B5852F; background: linear-gradient(180deg, #FFF6DC, #E8B64F); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
#v-meet .mt-bl-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #B5852F; background: linear-gradient(180deg, #FFF6DC, #E8B64F); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
#v-meet .mt-bl-badge { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: #1E2C4A; color: #F6E7BE; font: 700 .76rem "Manrope", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .2s; }
#v-meet .mt-blight.active .mt-bl-badge, #v-meet .mt-blight:hover .mt-bl-badge { opacity: 1; }
#v-meet .mt-bsep { width: 1px; height: 20px; margin: 0 3px; background: rgba(255, 255, 255, .18); }
#v-meet .mt-boardwrap.is-small .mt-bl-range { width: 56px; }
#v-meet .mt-boardwrap.is-small .mt-blight svg { width: 15px; height: 15px; }

/* 2026-11-15 owner (board requests): X close at the top-right of the board, Full screen as a symbol, one Colour button with a panel, text frame fits the text */
#v-meet .mt-bclose { position: absolute; top: 8px; right: 8px; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(232, 182, 79, .45); border-radius: 12px; background: rgba(20, 28, 48, .82); color: #F4E2B8; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#v-meet .mt-bclose svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#v-meet .mt-bclose:hover { background: rgba(30, 44, 74, .95); }
#v-meet .mt-bclose:active { transform: scale(.94); }
#v-meet .mt-boardwrap.is-small .mt-bclose { width: 36px; height: 36px; top: 6px; right: 6px; }
#v-meet .mt-iconkey { display: inline-grid; place-items: center; min-width: 44px; padding: 0 10px; }
#v-meet .mt-iconkey svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-cpick { position: relative; display: inline-flex; }
#v-meet .mt-cbtn { display: inline-flex; align-items: center; gap: 8px; }
#v-meet .mt-cdot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
#v-meet .mt-cpop { position: fixed; z-index: 60; display: flex; flex-wrap: wrap; gap: 10px; max-width: 250px; padding: 12px; border-radius: 16px; border: 1px solid rgba(232, 182, 79, .35); background: rgba(16, 24, 42, .96); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
#v-meet .mt-cpop[hidden] { display: none; }
#v-meet .mt-cpop .mt-color { width: 36px; height: 36px; margin: 0; }
#v-meet .mt-bedit.mt-rich.is-fit { display: inline-block; }
#v-meet .mt-bclose { top: calc(var(--cvt, 0px) + 8px); right: calc(var(--cvr, 0px) + 8px); }   /* on the white board page itself */
#v-meet .mt-boardwrap.is-small .mt-bclose { top: calc(var(--cvt, 0px) + 6px); right: calc(var(--cvr, 0px) + 6px); }

/* 2026-11-15 owner: "class timer can manual set" — type minutes + seconds, Start */
#v-meet .mt-tcustom { align-items: center; gap: 6px; }
#v-meet .mt-tnum { width: 58px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid rgba(232, 182, 79, .45); background: rgba(255, 252, 244, .96); color: #1E2C4A; font: 700 1rem "Manrope", system-ui, sans-serif; text-align: center; }
#v-meet .mt-tnum:focus { outline: 2px solid #E8B64F; outline-offset: 1px; }
#v-meet .mt-tunit { font: 600 .8rem "Manrope", system-ui, sans-serif; opacity: .8; }
#v-meet .mt-tcustom .mt-chip.mt-gold { background: linear-gradient(180deg, #FFF0C4, #E8B64F 55%, #C88C27); color: #2A1C05; border: 1px solid #B5852F; font-weight: 700; }

/* 2026-11-15 owner: "move full screen next to the X on the white board" — both keys in the board top-right corner */
#v-meet .mt-btr { position: absolute; top: calc(var(--cvt, 0px) + 8px); right: calc(var(--cvr, 0px) + 8px); z-index: 4; display: flex; gap: 8px; }
#v-meet .mt-btr .mt-bclose { position: static; }
#v-meet .mt-boardwrap.is-small .mt-btr { top: calc(var(--cvt, 0px) + 6px); right: calc(var(--cvr, 0px) + 6px); gap: 6px; }

/* 2026-11-15 owner (tablet): the selection bar keeps one height while the Select tool is on (no jump under the finger); A− / A+ keys */
#v-meet .mt-selbar:not([hidden]) { min-height: 44px; align-items: center; }
#v-meet .mt-selbar .mt-tsz { min-width: 44px; font-weight: 800; }

/* 2026-11-15 owner (tablet turned sideways): "the X does not move to the corner, it stays in one place" — in full screen the board was
   sized from the screen height minus a fixed 200 px; with taller toolbars it overflowed its area (top cut off, corner keys wrong).
   Now it uses the real space below where the board starts (--bw-top, measured by MeetScreen place() on every resize / turn). */
#v-meet .mt-panel.mt-full .mt-board { width: min(100%, calc(var(--bw-avail, calc(100dvh - 200px)) * 1.6)) !important; max-height: var(--bw-avail, calc(100dvh - 200px)) !important; height: auto !important; }

/* 2026-11-15 owner: quiet microphone warning — a dot on the Mic key + a short pill that fades (no big box over the board) */
#v-meet #cMic { position: relative; }
#v-meet #cMic.has-warn::after { content: ""; position: absolute; top: 6px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 2px rgba(16, 15, 14, .9); }
#v-meet .mt-hint { position: fixed; top: max(64px, calc(env(safe-area-inset-top) + 56px)); left: 50%; transform: translateX(-50%); z-index: 80; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(245, 158, 11, .6); background: rgba(20, 24, 36, .92); color: #FDE7B0; font: 600 .85rem/1 "Manrope", system-ui, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .5s ease, transform .5s ease; }
#v-meet .mt-hint b { color: #F6C453; text-decoration: underline; text-underline-offset: 3px; }
#v-meet .mt-hint.is-out { opacity: 0; transform: translate(-50%, -6px); }

/* 2026-11-15 owner: "in full screen I did not see the control bar — people cannot tap Chat". The bar stays on every screen (the
   full-screen board fits above / beside it: MeetScreen place() measures the free space up to the bar). */
html body.mt-board-full #v-meet .mt-bar { display: flex !important; z-index: 70 !important; }

/* 2026-11-15 owner (upright phone / tablet, full-screen board): "whiteboard overlays the video" → "Left column". The camera videos
   stand in a column on the LEFT, starting level with the board, and the board sits to their right (never over a video). */
@media (orientation: portrait) {
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) { --vcol: clamp(76px, 17vw, 140px); }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) > .mt-stage { z-index: 66 !important; }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) .mt-grid {
    position: fixed !important; left: max(8px, env(safe-area-inset-left)) !important; right: auto !important; top: var(--mt-board-top, 96px) !important;
    width: var(--vcol) !important; max-height: calc(100dvh - var(--mt-board-top, 96px) - 96px) !important; transform: none !important;
    display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 8px !important;
    overflow-x: hidden !important; overflow-y: auto !important; padding: 0 !important; z-index: 66 !important; }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) .mt-grid > .mt-tile { flex: 0 0 auto !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; min-height: 0 !important; }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) .mt-grid > .mt-strip { flex-direction: column !important; align-items: center !important; }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) .mt-grid .mt-varrow { display: none !important; }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage) > #mtPanel { margin-left: calc(var(--vcol) + 8px) !important; }
}

/* 2026-11-15 owner: Share key by the brightness slider — share the board, or a WINDOW ON the board (the window plays behind the ink) */
#v-meet .mt-bshare svg { width: 19px; height: 19px; fill: none; stroke: #E8B64F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-boardwrap > .mt-bscreen { position: absolute; z-index: 0; object-fit: contain; background: #0B1530; border-radius: 14px; pointer-events: none; }
#v-meet .mt-boardwrap > #mtBoard { position: relative; z-index: 1; }
#v-meet .mt-boardwrap > #mtBoard.on-screen { background: transparent !important; }
#v-meet .mt-sharepop { position: fixed; z-index: 90; display: grid; gap: 6px; min-width: 240px; max-width: 280px; padding: 10px; border-radius: 16px; border: 1px solid rgba(232, 182, 79, .4); background: rgba(16, 24, 42, .97); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
#v-meet .mt-sharepop button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #F4E2B8; font: 700 .92rem/1.2 "Manrope", system-ui, sans-serif; text-align: left; cursor: pointer; }
#v-meet .mt-sharepop button:hover { background: rgba(232, 182, 79, .18); }
#v-meet .mt-sharepop .mt-small { margin: 4px 6px; color: #CBBF9F; }

/* 2026-11-15 owner "design 10/10": the Screen key's menu — two clear choices (Entire screen · Whiteboard) */
#v-meet .mt-sharepop.mt-screenpop {
  min-width: 280px; max-width: 300px; padding: 10px; gap: 6px; border-radius: 18px;
  border: 1px solid rgba(232, 182, 79, .38); background: rgba(14, 21, 38, .96);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: mt-sp-in .16s cubic-bezier(.2, .8, .2, 1);
}
@keyframes mt-sp-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-sharepop.mt-screenpop { animation: none; } }
#v-meet .mt-screenpop .mt-sp-title { margin: 2px 6px 4px; font: 800 .7rem/1 "Manrope", system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #BFAF88; }
#v-meet .mt-screenpop button.mt-sp-opt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px;
  border: 1px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .04); color: #F7EBD0; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s;
}
#v-meet .mt-screenpop button.mt-sp-opt:hover, #v-meet .mt-screenpop button.mt-sp-opt:focus-visible {
  background: rgba(232, 182, 79, .14); border-color: rgba(232, 182, 79, .45); outline: none;
}
#v-meet .mt-screenpop .mt-sp-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #2A1C05;
  background: linear-gradient(180deg, #FFF0C4, #F1CF7E 45%, #D7A649); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px rgba(0, 0, 0, .25);
}
#v-meet .mt-screenpop .mt-sp-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-screenpop .mt-sp-tx { display: grid; gap: 3px; min-width: 0; }
#v-meet .mt-screenpop .mt-sp-tx b { font: 800 .95rem/1.2 "Manrope", system-ui, sans-serif; color: #FFF6E2; }
#v-meet .mt-screenpop .mt-sp-tx small { font: 600 .76rem/1.25 "Manrope", system-ui, sans-serif; color: #C9BFA6; }
#v-meet .mt-screenpop .mt-sp-opt.is-on .mt-sp-ic { background: linear-gradient(180deg, #FF8C99, #E25B6A); color: #FFF; }
#v-meet .mt-screenpop .mt-sp-opt.is-on .mt-sp-tx small { color: #8EE6C6; }

/* 2026-11-15 owner "design not professional": PDF / slides page pill — bottom centre of the board, the same charcoal pill as
   undo (left) and zoom (right); the paper choices hide while a PDF page or a screen picture is the background */
#v-meet .mt-bcorner.mt-bnav {
  left: calc(50% + (var(--cvl, 0px) - var(--cvr, 0px)) / 2); transform: translateX(-50%); gap: 2px; padding: 3px 4px;
}
#v-meet .mt-bnav .mt-cb { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
#v-meet .mt-bnav .mt-cb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-bnav .mt-cb:not(:disabled):hover { background: rgba(255, 255, 255, .1) !important; }
#v-meet .mt-bnav .mt-cb:disabled { opacity: .35; cursor: default; }
#v-meet .mt-bnav .mt-cb:focus-visible { outline: 2px solid #FFE28A; outline-offset: 1px; }
#v-meet .mt-bnav-t {
  display: inline-flex; align-items: baseline; gap: 3px; padding: 0 8px; min-width: 64px; justify-content: center; white-space: nowrap;
  font: 700 .86rem/1 "Manrope", system-ui, sans-serif; color: var(--zm-ink, #F4F1EA); font-variant-numeric: tabular-nums;
}
#v-meet .mt-bnav-t b { font-weight: 800; }
#v-meet .mt-bnav-t i { font-style: normal; opacity: .55; margin: 0 1px; }
#v-meet .mt-bnav-t small { margin-left: 8px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; font: 600 .76rem/1 "Manrope", system-ui, sans-serif; opacity: .7; }
#v-meet .mt-bnav-t.is-view { padding: 6px 12px; }
#v-meet .mt-bnav .mt-bsep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .16); }
#v-meet .mt-bnav.is-busy .mt-bnav-t { opacity: .55; }
#v-meet .mt-boardwrap.is-small .mt-bnav-t small { display: none; }
#v-meet .mt-panel:has(#mtBoard.has-bg) .mt-paper { display: none !important; }
/* 2026-11-15: the page pill never covers the undo / zoom pills — no name, then one row higher */
#v-meet .mt-bnav.is-tight .mt-bnav-t small { display: none; }
#v-meet .mt-bcorner.mt-bnav.is-lift { bottom: calc(var(--cvb, 0px) + 56px); }

/* ---- 2026-11-15 owner phone photo: "professional … touch appear key … students who have no computer study on the phone" ---- */
/* touch screens: the keys that lie on the page fade after 3.5 s; one tap on the board brings them back (MeetScreen.js calmBoard) */
#v-meet .mt-boardwrap > :is(.mt-rail, .mt-bcorner, .mt-btr) { transition: opacity .25s ease; }
#v-meet .mt-boardwrap.is-calm > :is(.mt-rail, .mt-bcorner, .mt-btr) { opacity: 0; pointer-events: none; transition-duration: .7s; }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-boardwrap > :is(.mt-rail, .mt-bcorner, .mt-btr) { transition: none; } }
/* a phone held upright: the page keeps the full width, the tools sit on a row ABOVE it and undo / page / zoom on rows BELOW it */
#v-meet .mt-boardwrap.is-stack { padding-top: 56px; padding-bottom: 108px; box-sizing: border-box; }   /* page centred with its rows */
#v-meet .mt-boardwrap.is-stack .mt-rail { top: calc(var(--cvt, 56px) - 50px) !important; left: var(--cvl, 0px) !important;
  max-width: calc(100% - var(--cvl, 0px) - var(--cvr, 0px) - 100px) !important; }
#v-meet .mt-boardwrap.is-stack .mt-rb { width: 38px; height: 38px; }
#v-meet .mt-boardwrap.is-stack .mt-btr { top: calc(var(--cvt, 56px) - 50px) !important; right: var(--cvr, 0px) !important; }
#v-meet .mt-boardwrap.is-stack .mt-bcorner { bottom: auto !important; top: calc(var(--cvt, 56px) + var(--cvh, 0px) + 10px); padding: 3px; }
#v-meet .mt-boardwrap.is-stack .mt-bl { left: var(--cvl, 0px) !important; }
#v-meet .mt-boardwrap.is-stack .mt-bcorner.mt-bnav { left: auto !important; right: var(--cvr, 0px) !important; transform: none !important; }
#v-meet .mt-boardwrap.is-stack .mt-br { top: calc(var(--cvt, 56px) + var(--cvh, 0px) + 60px); right: auto !important;
  left: calc(var(--cvl, 0px) + (100% - var(--cvl, 0px) - var(--cvr, 0px)) / 2) !important; transform: translateX(-50%); }
#v-meet .mt-boardwrap.is-stack :is(.mt-cb, .mt-bnav .mt-cb) { width: 38px; height: 38px; font-size: 17px; }
#v-meet .mt-boardwrap.is-stack .mt-zpct { min-width: 50px; height: 38px; font-size: .8rem; }
/* a phone turned sideways: the board fills the screen beside the meeting key column (it stays on the left: mic, chat, leave) */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  #v-meet .mt-wrap:has(#mtBoardWrap) > .mt-panel.mt-full { padding-left: calc(max(8px, env(safe-area-inset-left)) + 86px) !important; }
}
/* 2026-11-15 19:25 owner (iPhone): "fade all key" — on a touch screen with the board open, every key fades after a quiet moment
   (MeetScreen.js calmArm: body.mt-calm) and one tap brings them back; only the page stays */
#v-meet :is(.mt-head-live, .mt-bar, .mt-note), #v-meet #mtPanel > :not(.mt-boardwrap) { transition: opacity .25s ease; }
body.mt-calm #v-meet :is(.mt-head-live, .mt-bar, .mt-note), body.mt-calm #v-meet #mtPanel > :not(.mt-boardwrap) {
  opacity: 0 !important; pointer-events: none !important; transition-duration: .7s; }
@media (prefers-reduced-motion: reduce) { #v-meet :is(.mt-head-live, .mt-bar, .mt-note), #v-meet #mtPanel > :not(.mt-boardwrap) { transition: none; } }
/* 2026-11-15 19:30 owner iPhone: "full screen" — on an upright PHONE the left column (owner choice for camera videos) only stands
   while a camera is ON; name circles alone never squeeze the board (People shows everyone) */
@media (orientation: portrait) and (max-width: 520px) {
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage):not(:has(.mt-grid > .mt-tile.has-video)) > .mt-stage { display: none !important; }
  html body.mt-board-full #v-meet#v-meet#v-meet .mt-wrap:not(.mt-board-stage):not(:has(.mt-grid > .mt-tile.has-video)) > #mtPanel { margin-left: 0 !important; }
}
/* 2026-11-15 owner "premium mobile view" — the document viewer on touch screens (MeetScreen.js vpOn / fitView / syncBgImg):
   the page picture lies sharp UNDER the ink layer; the board box no longer limits what is seen */
#v-meet .mt-boardwrap.is-vp > #mtBoard { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
#v-meet .mt-boardwrap .mt-bgimg { position: absolute; left: 0; top: 0; z-index: 0; transform-origin: 0 0; pointer-events: none; user-select: none;
  -webkit-user-drag: none; background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); image-rendering: auto; }
#v-meet .mt-boardwrap.is-vp { background: #101114; }
/* 2026-11-15 owner "premium mobile view" §2/§5 — PHONES, full-screen board: maximum room for the page
   • no title row ("Whiteboard" + ✕: the ✕ is on the board) and no "turn sideways" line
   • pen size / colour (the chip row) and the brightness slider live in the + menu: shown only while it is open
   • upright: the board ends above the floating meeting key bar */
@media (pointer: coarse) and (max-width: 520px), (pointer: coarse) and (max-height: 520px) {
  #v-meet #mtPanel.mt-full > .mt-ph, #v-meet #mtPanel.mt-full .mt-rotate { display: none !important; }
  #v-meet #mtPanel.mt-full:has(.mt-rplus):not(:has(.mt-rplus.on)) :is(.mt-toolbox, .mt-toolrow) { display: none !important; }
  #v-meet #mtPanel.mt-full:has(.mt-rplus):not(:has(.mt-rplus.on)) .mt-br :is(.mt-blight, .mt-blight + .mt-bsep) { display: none !important; }
}
@media (pointer: coarse) and (max-width: 520px) and (orientation: portrait) {
  html body.mt-board-full #v-meet .mt-wrap:has(#mtBoardWrap) > #mtPanel.mt-full { padding-bottom: calc(max(8px, env(safe-area-inset-bottom)) + 80px) !important; }
}
/* 2026-11-15 owner §6: notices and the recording indicator are never hidden by the auto-hide */
body.mt-calm #v-meet .mt-note { opacity: 1 !important; pointer-events: auto !important; }
body.mt-calm #v-meet .mt-head-live:has(#mtRecDot:not([hidden])) { opacity: 1 !important; pointer-events: auto !important; }
/* §3 Focus View: only the page — header, tool rows, board keys and the meeting key bar step away; the page pill stays (page turns),
   one small floating key restores everything */
body.mt-focus #v-meet :is(.mt-head-live, .mt-bar, .mt-stage), body.mt-focus #v-meet #mtPanel > :not(.mt-boardwrap),
body.mt-focus #v-meet .mt-boardwrap > :is(.mt-rail, .mt-bl, .mt-br, .mt-btr, .mt-tray) { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s ease; }
html body.mt-focus #v-meet .mt-wrap:has(#mtBoardWrap) > #mtPanel.mt-full { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important; }
body.mt-focus #v-meet .mt-boardwrap { border-radius: 0 !important; }
body.mt-focus #v-meet .mt-boardwrap > .mt-bnav { opacity: .82; }
.mt-focus-out { position: fixed; z-index: 200; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; cursor: pointer;
  border: 1px solid rgba(231, 199, 126, .55); background: rgba(16, 17, 20, .72); color: #F2E3BE; font: 700 .82rem/1 "Manrope", system-ui, sans-serif;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.mt-focus-out svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-bnav .mt-follow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-bnav .mt-follow.on { color: #E8B64F; }
#v-meet .mt-bfocus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 2026-11-15 owner Phase 2: the PAGES sidebar (computers) — thumbnails, + new page, ⋯ menu, drag to reorder, collapsible ---- */
#v-meet#v-meet #mtPanel#mtPanel.has-pages { padding-left: 196px !important; }
#v-meet#v-meet #mtPanel#mtPanel.has-pages.pages-min { padding-left: 66px !important; }
#v-meet #mtPanel > .mt-pages { position: absolute; z-index: 5; left: 10px; top: 10px; bottom: 10px; width: 176px; display: flex; flex-direction: column;
  border: 1px solid rgba(212, 175, 55, .32); border-radius: 14px; background: #0B111C; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); overflow: hidden; }
#v-meet #mtPanel.pages-min > .mt-pages { width: 46px; border-color: rgba(212, 175, 55, .25); }
#v-meet .mt-pg-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 6px 12px; }
#v-meet .mt-pg-head b { flex: 1; font: 700 .9rem/1 "Manrope", system-ui, sans-serif; color: #F8F8F8; letter-spacing: .01em; }
#v-meet .mt-pg-ic { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #E8C76A; cursor: pointer;
  transition: background .15s ease; }
#v-meet .mt-pg-ic:hover:not(:disabled) { background: rgba(212, 175, 55, .14); }
#v-meet .mt-pg-ic:disabled { opacity: .3; cursor: default; }
#v-meet .mt-pg-ic svg, #v-meet .mt-pg-open svg, #v-meet .mt-pg-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-pg-more svg { fill: currentColor; stroke: none; }
#v-meet .mt-pg-list { list-style: none; margin: 0; padding: 4px 10px 10px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
#v-meet .mt-pg { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 6px; row-gap: 4px; }
#v-meet .mt-pg-go { grid-column: 1 / -1; display: block; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #FFFFFF; cursor: pointer; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: border-color .15s ease, transform .15s ease; }
#v-meet .mt-pg-go canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
#v-meet .mt-pg-go:hover { border-color: rgba(232, 199, 106, .55); }
#v-meet .mt-pg.is-cur .mt-pg-go { border-color: #D4AF37; box-shadow: 0 0 0 1px rgba(212, 175, 55, .5), 0 4px 14px rgba(212, 175, 55, .18); }
#v-meet .mt-pg.is-teacher .mt-pg-go { border-color: rgba(212, 175, 55, .45); border-style: dashed; }
#v-meet .mt-pg-go:focus-visible { outline: 2px solid #FFE28A; outline-offset: 2px; }
#v-meet .mt-pg-no { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .08);
  color: #A9ADB8; font: 800 .7rem/1 "Manrope", system-ui, sans-serif; }
#v-meet .mt-pg.is-cur .mt-pg-no { background: #D4AF37; color: #14110A; }
#v-meet .mt-pg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #D9DCE3; font: 600 .76rem/1.2 "Manrope", system-ui, sans-serif; }
#v-meet .mt-pg-input { min-width: 0; width: 100%; height: 24px; padding: 0 6px; border: 1px solid #D4AF37; border-radius: 6px; background: #080B12; color: #F8F8F8; font: 600 .76rem "Manrope", sans-serif; }
#v-meet .mt-pg-more { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #A9ADB8; cursor: pointer; }
#v-meet .mt-pg-more:hover { background: rgba(255, 255, 255, .08); color: #F8F8F8; }
#v-meet .mt-pg[draggable="true"] { cursor: grab; }
#v-meet .mt-pg.is-drag { opacity: .45; }
#v-meet .mt-pg.drop-before::before, #v-meet .mt-pg.drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: #D4AF37; }
#v-meet .mt-pg.drop-before::before { top: -7px; } #v-meet .mt-pg.drop-after::after { bottom: -7px; }
#v-meet .mt-pg-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px; border-top: 1px solid rgba(212, 175, 55, .18);
  color: #A9ADB8; font: 600 .8rem/1 "Manrope", system-ui, sans-serif; }
#v-meet .mt-pg-foot b { color: #F8F8F8; }
#v-meet .mt-pg-open { margin: 8px auto; width: 34px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; border-radius: 10px;
  background: transparent; color: #E8C76A; cursor: pointer; font: 800 .66rem/1 "Manrope", system-ui, sans-serif; }
#v-meet .mt-pg-open:hover { background: rgba(212, 175, 55, .14); }
#v-meet .mt-pg-menu { position: fixed; z-index: 90; min-width: 150px; padding: 6px; display: grid; gap: 2px; border: 1px solid rgba(212, 175, 55, .4); border-radius: 12px;
  background: #0D1320; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
#v-meet .mt-pg-menu button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #F2F2F7; text-align: left; cursor: pointer;
  font: 600 .84rem/1 "Manrope", system-ui, sans-serif; }
#v-meet .mt-pg-menu button:hover, #v-meet .mt-pg-menu button:focus-visible { background: rgba(212, 175, 55, .14); outline: none; }
#v-meet .mt-pg-menu button.is-danger { color: #FF8A8A; }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-pg-go, #v-meet .mt-pg-ic { transition: none; } }
/* the panel frames the sidebar (the board-on-stage layout set it to static) */
#v-meet .mt-wrap.mt-board-stage > #mtPanel.has-pages, #v-meet #mtPanel.has-pages:not(.mt-full) { position: relative !important; }
