/* Live Meeting — Zoom-style board view (Claude Code 2026-11-14). Owner (Zoom whiteboard photo): "when all users are off camera our
   board auto appears … the screen colour like Zoom"; "grid option: dots, only row lines, grid squares"; "when the teacher opens the
   camera the student sees it small on the top of the board and can touch to view full screen; erase [the people pill] or move it
   to the footer bar but rename". Applies only while the board is open (the wrap holds #mtBoardWrap).
   Colours: charcoal panels (#1C1C1E / #2C2C2E), white icons and text, Zoom blue (#0E72ED) for what is on, warm paper (in JS). */
#v-meet .mt-wrap:has(#mtBoardWrap) { --zm-bg: #141416; --zm-panel: #1C1C1E; --zm-key: #2C2C2E; --zm-line: #3A3A3C; --zm-ink: #F2F2F7; --zm-blue: #0E72ED; }
#v-meet .mt-wrap:has(#mtBoardWrap)::before { content: ""; position: fixed; inset: 0; z-index: 0; background: var(--zm-bg); pointer-events: none; }
#v-meet .mt-wrap:has(#mtBoardWrap) > * { position: relative; z-index: 1; }

/* the header: a plain dark strip */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-head-live { background: var(--zm-panel) !important; border: 1px solid var(--zm-line) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--zm-ink); }

/* the board panel */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap) { background: var(--zm-panel) !important; border: 1px solid var(--zm-line) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: var(--zm-ink) !important; box-shadow: 0 10px 30px rgba(0,0,0,.4) !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-ph b { color: var(--zm-ink) !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-chip, #v-meet .mt-panel:has(#mtBoardWrap) .mt-tool {
  background: var(--zm-key) !important; color: var(--zm-ink) !important; border: 1px solid var(--zm-line) !important; box-shadow: none !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-chip.on, #v-meet .mt-panel:has(#mtBoardWrap) .mt-tool.on {
  background: var(--zm-blue) !important; border-color: var(--zm-blue) !important; color: #fff !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-chip.danger { color: #FF7B7B !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-small { color: rgba(242,242,247,.65) !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-color.on { box-shadow: 0 0 0 2px var(--zm-panel), 0 0 0 4px var(--zm-blue) !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-paper { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #111113; border: 1px solid var(--zm-line); }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-paper .mt-chip { border: 0 !important; background: transparent !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-paper .mt-chip.on { background: var(--zm-blue) !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-board { border: 0 !important; border-radius: 10px !important; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35); background: #FBF9F4 !important; }
/* the tool rail on the left and the small corner keys: floating charcoal, like Zoom's */
#v-meet .mt-panel:has(#mtBoardWrap) .mt-rail, #v-meet .mt-panel:has(#mtBoardWrap) .mt-bcorner {
  background: var(--zm-panel) !important; border: 1px solid var(--zm-line) !important; box-shadow: 0 8px 22px rgba(0,0,0,.35) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-rb, #v-meet .mt-panel:has(#mtBoardWrap) .mt-bcorner button { color: var(--zm-ink) !important; background: transparent !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-rb.on { background: var(--zm-blue) !important; color: #fff !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-rplus { background: var(--zm-blue) !important; color: #fff !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-zpct { color: var(--zm-ink) !important; }

/* the bottom bar: dark, white labels */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar { background: var(--zm-panel) !important; border: 1px solid var(--zm-line) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar .mt-ctl:not(.mt-leave) { color: var(--zm-ink) !important; }

/* people: no pill on the board (the footer "Participants" key shows the count) … */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid.is-audio,
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-strip,
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-aud { display: none !important; }
/* … and people on camera float as small pictures at the top of the board; tap = full screen, tap again = back */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid:not(.is-audio) { position: fixed !important; top: calc(env(safe-area-inset-top, 0px) + 74px); right: 14px;
  z-index: 45; display: flex !important; flex-direction: row; gap: 8px; width: auto !important; height: auto !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid:not(.is-audio) > .mt-tile { width: 132px !important; height: 84px !important; min-height: 0 !important;
  max-height: none !important; aspect-ratio: auto !important; border-radius: 12px !important; border: 2px solid var(--zm-line) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.45) !important; cursor: zoom-in; overflow: hidden; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid:not(.is-audio) > .mt-tile .mt-tag { font-size: .66rem !important; padding: 2px 6px !important; left: 4px; right: 4px; bottom: 4px; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid:not(.is-audio) > .mt-tile.is-speaking { border-color: #34D3A0 !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-tile.is-big { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important;
  z-index: 80; border-radius: 0 !important; border: 0 !important; background: #000 !important; cursor: zoom-out; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-tile.is-big video { object-fit: contain !important; width: 100% !important; height: 100% !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-tile.is-big .mt-tag { font-size: .9rem !important; left: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); right: auto; }
/* the stage gives its room to the board */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-stage:not(:has(.mt-main:not([hidden]))) { flex: 0 0 auto !important; min-height: 0 !important; height: 0 !important; overflow: visible; padding: 0 !important; margin: 0 !important; }
/* the board fills the room the stage gave up (its own 16:10 shape, centred) */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) { flex: 1 1 auto !important; display: flex !important; flex-direction: column; min-height: 0; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) .mt-boardwrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) .mt-board { width: min(100%, calc((100dvh - 330px) * 1.6)); }

/* 2026-11-14 owner (landscape photo): "screen view not 10/10" — the board was 294 px wide: two toolbar rows took the height.
   One slim toolbar row (scrolls sideways when needed), smaller keys, no hint text; the board takes all the height left. */
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px !important;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 2px 6px !important; margin: 0 !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox::-webkit-scrollbar { display: none; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox > .mt-row { display: contents !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox > .mt-row[hidden] { display: none !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-chip, #v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-tool {
  flex: 0 0 auto; min-height: 34px !important; height: 34px; padding: 0 12px !important; font-size: .82rem !important; white-space: nowrap; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-color { flex: 0 0 auto; width: 24px !important; height: 24px !important; min-width: 24px; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-paper { flex: 0 0 auto; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-small { display: none !important; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-color + .mt-tool, #v-meet .mt-panel:has(#mtBoardWrap) .mt-toolbox .mt-paper { margin-left: 6px; }
#v-meet .mt-panel:has(#mtBoardWrap) .mt-ph { min-height: 0 !important; margin: 0 0 4px !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) { padding: 8px 10px 10px !important; gap: 6px !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) .mt-board { width: auto !important; height: 100% !important; max-height: 100% !important;
  max-width: 100% !important; aspect-ratio: 16 / 10; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) .mt-boardwrap { container-type: size; }
@supports (width: 1cqh) {
  #v-meet .mt-wrap:has(#mtBoardWrap) .mt-panel:has(#mtBoardWrap):not(.mt-full) .mt-board { width: min(100cqw, 160cqh) !important; height: auto !important; }
}
/* on the board: no waiting card (the invite key is at the top); the floating corner only holds people ON CAMERA */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-wait, #v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-wait-line,
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid > .mt-alone-coin { display: none !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-grid:not(:has(> .mt-tile.has-video)) { display: none !important; }
/* a slimmer bottom bar on the board */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar { padding: 4px 8px !important; gap: 2px !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar .mt-ctl { min-height: 48px !important; padding: 2px 8px !important; font-size: .7rem !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar .mt-ctl .ic { width: 20px !important; height: 20px !important; }
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar .mt-leave { width: 46px !important; height: 46px !important; min-height: 46px !important; }
/* the bottom bar sits at the very bottom; the board takes everything above it */
#v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar { position: fixed !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important; top: auto !important; margin: 0 !important; z-index: 40; }
#v-meet .mt-wrap:has(#mtBoardWrap) { padding-bottom: calc(max(8px, env(safe-area-inset-bottom)) + 66px) !important; min-height: 100dvh; box-sizing: border-box; }
@media (max-width: 640px) { #v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar { left: 8px !important; right: 8px !important; transform: none !important; } }
/* phones on the board: icons only in the bottom bar (labels were cut to "Mu…", "Vid…"); upright: a hint to turn the phone */
@media (max-width: 640px) {
  #v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar .mt-ctl > span { display: none !important; }
  #v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar { justify-content: space-around !important; }
  #v-meet .mt-wrap:has(#mtBoardWrap) .mt-bar .mt-ctl { min-height: 46px !important; min-width: 44px; }
}
@media (orientation: portrait) and (max-width: 820px) {
  #v-meet .mt-panel:has(#mtBoardWrap):not(.mt-full) .mt-boardwrap::after { content: "↻  Turn your phone sideways for a bigger board";
    position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 600 .8rem/1.3 "Manrope", sans-serif; color: rgba(242,242,247,.5); pointer-events: none; }
}

/* 2026-11-15 (owner phone photo): the rule above (children lifted over the dark background) also took the full-screen board out of
   its fixed whole-screen layer — the ⛶ key only grew the board inside the page. The full-screen board stays a fixed layer. */
#v-meet .mt-wrap:has(#mtBoardWrap) > .mt-panel.mt-full { position: fixed; z-index: 60; }
#v-meet .mt-wrap:has(#mtBoardWrap) > .mt-more-sheet { position: fixed; z-index: 25; }
