/* 2026-11-15 owner "shared layout" — computers and tablets (MeetScreen.js syncLayout):
   .lxh = a big screen (the new header pieces show); .lx = a big screen WITH the board open (the grid below);
   .lx-port = a tablet held upright; .lay-board / .lay-balanced / .lay-teacher / .lay-gallery = the layout chosen on this device.
   Phones never get these classes — their layout stays as it is. Colours: #080B12 · #10151F · #151922 · gold #D4AF37 / #E8C76A */

/* ---------- header (every big screen) ---------- */
#v-meet .mt-htabs, #v-meet .mt-hright, #v-meet .mt-hsig { display: none; }
html body #v-meet#v-meet .mt-wrap.lxh > .mt-head-live { display: flex !important; align-items: center; gap: 10px; min-height: 60px; padding: 6px 12px !important;
  background: #080B12 !important; border: 1px solid rgba(212, 175, 55, .45) !important; border-radius: 16px !important; box-shadow: none !important; flex-wrap: nowrap; }
#v-meet .mt-wrap.lxh > .mt-head-live > .mt-home { order: 0; }
#v-meet .mt-wrap.lxh > .mt-head-live > .mt-live-title { order: 1; flex: 0 1 auto; min-width: 0; }
#v-meet .mt-wrap.lxh > .mt-head-live > .mt-htabs { order: 2; display: flex; margin: 0 auto; gap: 2px; padding: 3px; border-radius: 14px; background: #10151F; border: 1px solid rgba(212, 175, 55, .22); flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#v-meet .mt-wrap.lxh > .mt-head-live > .mt-htabs::-webkit-scrollbar { display: none; }
#v-meet .mt-wrap.lxh > .mt-head-live > :is(.mt-headdraw, .mt-pdfbar, .mt-headstop) { order: 3; }
#v-meet .mt-wrap.lxh > .mt-head-live > :is(.mt-inv-key, #mtTurn) { order: 4; }
#v-meet .mt-wrap.lxh > .mt-head-live > .mt-hright { order: 5; display: flex; align-items: center; gap: 8px; flex: none; }
#v-meet .mt-wrap.lxh .mt-hsig { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; margin-left: 8px; vertical-align: -1px; }
#v-meet .mt-hsig i { width: 3px; border-radius: 1px; background: rgba(255, 255, 255, .22); }
#v-meet .mt-hsig i:nth-child(1) { height: 4px; } #v-meet .mt-hsig i:nth-child(2) { height: 7px; } #v-meet .mt-hsig i:nth-child(3) { height: 10px; } #v-meet .mt-hsig i:nth-child(4) { height: 13px; }
#v-meet .mt-hsig[data-q="4"] i { background: #3DDC84; }
#v-meet .mt-hsig[data-q="2"] i:nth-child(-n+2) { background: #F5B941; }
#v-meet .mt-hsig[data-q="1"] i:nth-child(1) { background: #F04452; }
#v-meet .mt-htabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; background: transparent;
  color: #D9DCE3; font: 700 .86rem/1 "Manrope", system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
#v-meet .mt-htabs button:hover { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
#v-meet .mt-htabs button.on { background: linear-gradient(180deg, rgba(232, 199, 106, .22), rgba(212, 175, 55, .12)); border-color: rgba(212, 175, 55, .7); color: #F2D88A; }
#v-meet .mt-htabs svg, #v-meet .mt-hright svg, #v-meet .mt-stabs svg, #v-meet .mt-bview svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#v-meet .mt-hpill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 12px; background: #10151F;
  color: #F8F8F8; font: 700 .84rem/1 "Manrope", system-ui, sans-serif; cursor: pointer; }
#v-meet .mt-hpill.on { border-color: #D4AF37; color: #F2D88A; }
#v-meet .mt-hpill b { font-weight: 800; }
#v-meet .mt-hrec { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border-radius: 10px; border: 1px solid rgba(240, 68, 82, .55); background: rgba(240, 68, 82, .12);
  color: #FFB3BA; font: 800 .76rem/1 "Manrope", system-ui, sans-serif; letter-spacing: .06em; }
#v-meet .mt-hrec i { width: 9px; height: 9px; border-radius: 50%; background: #F04452; box-shadow: 0 0 0 3px rgba(240, 68, 82, .25); }
#v-meet .mt-hrec[hidden] { display: none; }
#v-meet .mt-hkey { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(212, 175, 55, .35); border-radius: 12px; background: #10151F; color: #E8C76A; cursor: pointer;
  transition: background .15s ease; }
#v-meet .mt-hkey:hover, #v-meet .mt-hpill:hover { background: #151922; }
@media (max-width: 1280px) { #v-meet .mt-wrap.lxh .mt-hpill span, #v-meet .mt-wrap.lxh .mt-htabs button span { display: none; } #v-meet .mt-htabs button { padding: 0 12px; } }
@media (min-width: 1281px) { #v-meet .mt-wrap.lxh .mt-hpill span { display: none; } }
#v-meet .mt-laymenu { position: fixed; z-index: 95; width: 300px; padding: 8px; display: grid; gap: 4px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 16px; background: #0D1320; box-shadow: 0 16px 36px rgba(0, 0, 0, .55); }
#v-meet .mt-laymenu > p { margin: 2px 6px 6px; color: #A9ADB8; font: 700 .74rem/1 "Manrope", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#v-meet .mt-laymenu button { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #F2F2F7; text-align: left; cursor: pointer; }
#v-meet .mt-laymenu button:hover, #v-meet .mt-laymenu button:focus-visible { background: rgba(212, 175, 55, .1); outline: none; }
#v-meet .mt-laymenu button.on { border-color: rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .1); }
#v-meet .mt-laymenu b { display: block; font: 700 .88rem/1.2 "Manrope", sans-serif; }
#v-meet .mt-laymenu small { display: block; margin-top: 2px; color: #A9ADB8; font: 500 .74rem/1.3 "Manrope", sans-serif; }
#v-meet .mt-lay-ic { flex: none; width: 40px; height: 28px; border-radius: 6px; border: 1.5px solid #E8C76A; position: relative; background: #151922; }
#v-meet .mt-lay-ic::before, #v-meet .mt-lay-ic::after { content: ""; position: absolute; border-radius: 2px; }
#v-meet .mt-lay-ic.lay-board::before { inset: 3px; background: #F8F8F8; } #v-meet .mt-lay-ic.lay-board::after { right: 4px; bottom: 4px; width: 11px; height: 8px; background: #E8C76A; }
#v-meet .mt-lay-ic.lay-balanced::before { left: 3px; top: 3px; bottom: 3px; width: 11px; background: #E8C76A; } #v-meet .mt-lay-ic.lay-balanced::after { right: 3px; top: 3px; bottom: 3px; width: 20px; background: #F8F8F8; }
#v-meet .mt-lay-ic.lay-teacher::before { left: 3px; top: 3px; bottom: 3px; width: 20px; background: #E8C76A; } #v-meet .mt-lay-ic.lay-teacher::after { right: 3px; top: 3px; bottom: 3px; width: 11px; background: #F8F8F8; }
#v-meet .mt-lay-ic.lay-gallery::before { inset: 3px 19px 13px 3px; background: #E8C76A; box-shadow: 16px 0 0 #E8C76A, 0 10px 0 #E8C76A, 16px 10px 0 #E8C76A; }

/* ---------- the grid (board open) ---------- */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx {
  display: grid !important; position: relative !important;
  grid-template-columns: var(--lx-vid, 0px) minmax(0, 1fr) var(--lx-side, 0px) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 10px 0 !important; align-items: stretch !important;
  width: 100% !important; max-width: none !important; height: var(--tg-viewport-stable-height, 100dvh) !important; min-height: 0 !important;
  margin: 0 !important; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
  box-sizing: border-box !important; overflow: hidden !important;
}
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-head-live { grid-row: 1 !important; grid-column: 1 / -1 !important; margin: 0 !important; position: relative !important; top: auto !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > :is(.mt-note, .mt-tgbar) { position: absolute !important; z-index: 40; top: 82px !important; bottom: auto !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; margin: 0 !important; max-width: min(560px, 90%); }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > #mtPanel { grid-row: 2 !important; grid-column: 2 !important; position: relative !important; inset: auto !important; top: auto !important;
  margin: 0 !important; min-height: 0 !important; height: auto !important; max-height: none !important; align-self: stretch !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > #mtSide:not([hidden]) { grid-row: 2 !important; grid-column: 3 !important; position: relative !important; inset: auto !important; transform: none !important;
  margin: 0 0 0 10px !important; width: auto !important; max-width: none !important; min-height: 0 !important; height: auto !important; max-height: none !important; display: flex !important; flex-direction: column !important;
  overflow: hidden !important; border: 1px solid rgba(212, 175, 55, .35) !important; border-radius: 16px !important; background: #0B0F17 !important; padding: 0 !important; }
#v-meet .mt-wrap.lx.mt-with-side { --lx-side: calc(var(--lx-side-w, 340px) + 10px); }
@media (max-width: 1400px) { #v-meet .mt-wrap.lx.mt-with-side { --lx-side: calc(min(var(--lx-side-w, 320px), 30vw) + 10px); } }
/* the right panel: tabs + grip; the old title row gives way to the tabs */
#v-meet .mt-wrap.lx > #mtSide > .mt-ph { display: none !important; }
#v-meet .mt-wrap.lx > #mtSide > :not(.mt-stabs):not(.mt-sgrip) { margin-left: 12px; margin-right: 12px; }
#v-meet .mt-stabs { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 10px; border-bottom: 1px solid rgba(212, 175, 55, .2); flex: none; }
#v-meet .mt-stabs [role="tab"] { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 1 1 0; justify-content: center; min-height: 40px; padding: 0 10px; border: 1px solid transparent;
  border-radius: 11px; background: transparent; color: #A9ADB8; font: 700 .84rem/1 "Manrope", system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; min-width: 0; }
#v-meet .mt-stabs [role="tab"] span { overflow: hidden; text-overflow: ellipsis; }
#v-meet .mt-stabs [role="tab"]:hover { color: #FFFFFF; background: rgba(255, 255, 255, .05); }
#v-meet .mt-stabs [role="tab"].on { color: #F2D88A; background: rgba(212, 175, 55, .12); border-color: rgba(212, 175, 55, .6); }
#v-meet .mt-stabs [role="tab"] i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F04452; color: #fff; font: 800 .66rem/18px "Manrope", sans-serif; font-style: normal; }
#v-meet .mt-stabs-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #A9ADB8; cursor: pointer; }
#v-meet .mt-stabs-x:hover { background: rgba(255, 255, 255, .06); color: #fff; }
#v-meet .mt-sgrip { position: absolute; z-index: 6; left: -6px; top: 16px; bottom: 16px; width: 12px; cursor: col-resize; touch-action: none; }
#v-meet .mt-sgrip::after { content: ""; position: absolute; left: 5px; top: 50%; width: 2px; height: 44px; margin-top: -22px; border-radius: 2px; background: rgba(212, 175, 55, .35); transition: background .15s ease; }
#v-meet .mt-sgrip:hover::after, #v-meet .mt-sgrip.on::after { background: #D4AF37; }
#v-meet .mt-wrap:not(.lx) .mt-sgrip, #v-meet .mt-wrap:not(.lx) .mt-stabs { display: none; }

/* ---------- the video column (only while a camera is on) ---------- */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage { grid-row: 2 !important; grid-column: 1 !important; position: relative !important; inset: auto !important; transform: none !important;
  margin: 0 10px 0 0 !important; min-height: 0 !important; height: auto !important; max-height: none !important; width: auto !important; overflow-y: auto !important; overflow-x: hidden !important;
  display: block !important; padding: 0 !important; scrollbar-width: thin; }
#v-meet .mt-wrap.lx:not(:has(.mt-grid > .mt-tile.has-video)) > .mt-stage { display: none !important; }
#v-meet .mt-wrap.lx.lay-balanced:has(.mt-grid > .mt-tile.has-video) { --lx-vid: calc(clamp(220px, 24vw, 400px) + 10px); }
#v-meet .mt-wrap.lx.lay-teacher:has(.mt-grid > .mt-tile.has-video) { --lx-vid: calc(clamp(300px, 42vw, 760px) + 10px); }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; align-content: start !important;
  width: 100% !important; height: auto !important; max-height: none !important; position: static !important; transform: none !important; padding: 0 !important; margin: 0 !important; flex-wrap: nowrap !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > .mt-tile { width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 16 / 10 !important;
  flex: none !important; margin: 0 !important; border-radius: 12px !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > .mt-tile.is-host { grid-column: 1 / -1 !important; order: -1; aspect-ratio: 16 / 9 !important; border: 1.5px solid rgba(212, 175, 55, .75) !important; }
#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > .mt-tile:not(.has-video) { display: none !important; }
#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > :not(.mt-tile) { display: none !important; }
#v-meet .mt-wrap.lx > .mt-stage > :is(.mt-main, .mt-speaking) { display: none !important; }
/* Whiteboard priority: the teacher's video floats small over the board's corner (picture-in-picture) */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-board > .mt-stage { position: absolute !important; grid-row: auto !important; grid-column: auto !important; z-index: 45; margin: 0 !important;
  right: calc(var(--lx-side, 0px) + 24px); bottom: 100px; width: clamp(180px, 16vw, 280px) !important; height: auto !important; overflow: visible !important; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55); }
#v-meet .mt-wrap.lx.lay-board > .mt-stage > .mt-grid > .mt-tile:not(.is-host) { display: none !important; }
#v-meet .mt-wrap.lx.lay-board:not(:has(.mt-grid > .mt-tile.is-host.has-video)) > .mt-stage { display: none !important; }
/* Gallery: the videos fill the space, the board steps aside (it stays open — choose another layout to come back) */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-gallery > .mt-stage { display: block !important; grid-column: 1 / 3 !important; margin: 0 !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-gallery > #mtPanel { display: none !important; }
#v-meet .mt-wrap.lx.lay-gallery > .mt-stage > .mt-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
#v-meet .mt-wrap.lx.lay-gallery > .mt-stage > .mt-grid > .mt-tile { display: flex !important; }
#v-meet .mt-wrap.lx.lay-gallery > .mt-stage > .mt-grid > .mt-tile.is-host { grid-column: auto !important; }

/* ---------- the key bar: a row of its own, never over the board ---------- */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar { grid-row: 3 !important; grid-column: 1 / -1 !important; position: relative !important; inset: auto !important; left: auto !important; right: auto !important;
  bottom: auto !important; top: auto !important; transform: none !important; width: auto !important; max-width: none !important; height: auto !important; min-height: 68px; margin: 0 !important;
  display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 4px !important; padding: 6px 10px !important;
  border-radius: 18px !important; background: #0B0F17 !important; border: 1px solid rgba(212, 175, 55, .35) !important; box-shadow: none !important; z-index: 20 !important; flex-wrap: nowrap !important; overflow: visible !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave { margin-left: 12px !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-more-sheet { position: fixed !important; left: max(18px, env(safe-area-inset-left)) !important; right: auto !important; transform: none !important;
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + 84px) !important; top: auto !important; }
#v-meet .mt-bview { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px 6px; border-radius: 14px; background: #10151F; border: 1px solid rgba(212, 175, 55, .22); }
#v-meet .mt-bview[hidden] { display: none !important; }
#v-meet .mt-bview .mt-bv-light { display: contents; }
#v-meet .mt-bview .mt-bv-light .mt-bl-badge { display: none; }
#v-meet .mt-bv { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #F2F2F7;
  font: 700 .86rem/1 "Manrope", system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
#v-meet .mt-bv:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
#v-meet .mt-bv:disabled { opacity: .38; cursor: default; }
#v-meet .mt-bv-pct { min-width: 64px; }
#v-meet .mt-bv-fit { border-color: rgba(255, 255, 255, .14); }
#v-meet .mt-bv-fit.on { background: #2878F0; border-color: #2878F0; color: #FFFFFF; }
@media (max-width: 1280px) { #v-meet .mt-wrap.lx .mt-bview .mt-bv-light { display: none; } }
@media (max-width: 1100px) { #v-meet .mt-wrap.lx > .mt-bar .mt-ctl span { font-size: 11px !important; } #v-meet .mt-bv-fit { padding: 0 8px; } }
/* the board keeps its own undo / page pills; its zoom pill moves to the bar */
#v-meet .mt-wrap.lx #mtBoardWrap > .mt-br { display: none !important; }
/* full screen board inside the grid: header, videos and panel step away, the key bar stays */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > #mtPanel.mt-full { position: relative !important; inset: auto !important; grid-row: 1 / 3 !important; grid-column: 1 / -1 !important; z-index: 5 !important;
  border-radius: 16px !important; padding-top: 10px !important; }
#v-meet .mt-wrap.lx:has(> #mtPanel.mt-full) > :is(.mt-head-live, .mt-stage, #mtSide) { display: none !important; }

/* ---------- a tablet held upright (videos on top, board below, the panel as a sheet) ---------- */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto minmax(0, 1fr) auto !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port > #mtPanel { grid-row: 3 !important; grid-column: 1 !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port > .mt-bar { grid-row: 4 !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port:not(.lay-board):not(.lay-gallery) > .mt-stage { grid-row: 2 !important; grid-column: 1 !important; margin: 0 !important;
  height: var(--lx-vh, 22vh) !important; overflow-x: auto !important; overflow-y: hidden !important; }
#v-meet .mt-wrap.lx.lx-port.lay-teacher { --lx-vh: 38vh; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port:not(.lay-board):not(.lay-gallery) > .mt-stage > .mt-grid { display: flex !important; flex-direction: row !important; height: 100% !important; gap: 8px !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port:not(.lay-board):not(.lay-gallery) > .mt-stage > .mt-grid > .mt-tile { height: 100% !important; width: auto !important; aspect-ratio: 16 / 10 !important; flex: none !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port:not(.lay-board):not(.lay-gallery) > .mt-stage > .mt-grid > .mt-tile.is-host { aspect-ratio: 16 / 9 !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port > #mtSide:not([hidden]) { position: absolute !important; z-index: 60; grid-row: auto !important; grid-column: auto !important;
  left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(max(8px, env(safe-area-inset-bottom)) + 88px); top: auto; height: min(52vh, 560px) !important;
  margin: 0 !important; box-shadow: 0 -12px 36px rgba(0, 0, 0, .6); }
#v-meet .mt-wrap.lx.lx-port { --lx-side: 0px !important; }
#v-meet .mt-wrap.lx.lx-port .mt-sgrip { display: none; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port.lay-board > .mt-stage { right: 24px; bottom: 100px; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port.lay-gallery > .mt-stage { grid-row: 2 / 4 !important; grid-column: 1 !important; }
@media (prefers-reduced-motion: reduce) { #v-meet .mt-htabs button, #v-meet .mt-stabs [role="tab"], #v-meet .mt-bv, #v-meet .mt-hkey { transition: none; } }
/* Leave: a red pill with its word (spec: red gradient, white text) */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave { width: auto !important; min-width: 0 !important; height: 48px !important; flex: none !important; flex-basis: auto !important;
  padding: 0 20px !important; border-radius: 14px !important; display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important;
  background: linear-gradient(180deg, #F25563, #D62F3E) !important; color: #FFFFFF !important; box-shadow: 0 6px 16px rgba(240, 68, 82, .3) !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave span { display: inline !important; font: 800 .92rem/1 "Manrope", system-ui, sans-serif !important; color: #FFFFFF !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave .ic, html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave svg { width: 20px !important; height: 20px !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; }
/* the notice ("Microphone blocked" …) sits above the key bar, not over the tools */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > :is(.mt-note, .mt-tgbar) { top: auto !important; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 88px) !important; }
/* side tabs fit a narrow panel: icons go first, then the words shrink */
#v-meet .mt-wrap.lx > #mtSide { container-type: inline-size; }
@container (max-width: 380px) { #v-meet .mt-stabs [role="tab"] { padding: 0 8px; gap: 6px; font-size: .8rem; } #v-meet .mt-stabs [role="tab"] svg { display: none; } }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > .mt-tile { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port:not(.lay-board):not(.lay-gallery) > .mt-stage > .mt-grid > .mt-tile { width: auto !important; max-width: none !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > .mt-tile { overflow: hidden !important; contain: size; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid { grid-auto-rows: auto !important; align-items: start !important; grid-template-rows: none !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-board > .mt-stage { left: auto !important; top: auto !important; right: calc(var(--lx-side, 0px) + 24px) !important; bottom: 100px !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port.lay-board > .mt-stage { right: 24px !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-board > .mt-stage > .mt-grid { grid-template-columns: 1fr !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-gallery > .mt-stage > .mt-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; align-content: center !important; min-height: 100%; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-gallery > .mt-stage > .mt-grid > .mt-tile.is-host { grid-column: auto !important; aspect-ratio: 16 / 10 !important; }
/* a closed panel stays closed; the keys keep their own size (a tablet rule stretched each key across the bar) */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > #mtSide[hidden] { display: none !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-ctl:not(.mt-leave) { flex: 0 1 auto !important; width: auto !important; min-width: 58px !important; max-width: 96px !important; height: 56px !important;
  padding: 0 6px !important; margin: 0 !important; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-micpick { flex: none !important; }
@media (max-width: 899px) { html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar .mt-bview .mt-bv-light, html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar .mt-bv-fit { display: none !important; } }

/* ---------- pages on a tablet held upright: one horizontal strip under the board ---------- */
html body #v-meet#v-meet .mt-wrap.lx-port > #mtPanel#mtPanel.has-pages { padding-left: 10px !important; padding-bottom: 128px !important; }
html body #v-meet#v-meet .mt-wrap.lx-port > #mtPanel#mtPanel.has-pages.pages-min { padding-left: 10px !important; padding-bottom: 66px !important; }
#v-meet .mt-wrap.lx-port #mtPanel > .mt-pages { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: 108px; flex-direction: row; align-items: stretch; }
#v-meet .mt-wrap.lx-port #mtPanel.pages-min > .mt-pages { width: auto; height: 46px; }
#v-meet .mt-wrap.lx-port .mt-pg-head { flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 6px 8px; border-right: 1px solid rgba(212, 175, 55, .18); }
#v-meet .mt-wrap.lx-port .mt-pg-head b { flex: none; }
#v-meet .mt-wrap.lx-port .mt-pg-head [data-pg="hide"] svg { transform: rotate(-90deg); }
#v-meet .mt-wrap.lx-port .mt-pg-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; gap: 10px; align-items: flex-start; }
#v-meet .mt-wrap.lx-port .mt-pg { flex: none; width: 120px; }
#v-meet .mt-wrap.lx-port .mt-pg-name { font-size: .7rem; }
#v-meet .mt-wrap.lx-port .mt-pg-foot { flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid rgba(212, 175, 55, .18); padding: 6px 8px; }
#v-meet .mt-wrap.lx-port .mt-pg-open { flex-direction: row; width: auto; margin: 6px 10px; padding: 0 12px; }
/* narrower big screens (an upright tablet): Rotate shows its icon only; the bar keeps − % + and an icon-only Leave */
#v-meet .mt-wrap.lxh #mtTurn .mt-turn-lb { display: none !important; }
html body #v-meet#v-meet .mt-wrap.lxh > .mt-head-live > #mtTurn { width: 42px !important; min-width: 42px !important; padding: 0 !important; justify-content: center; }
@media (max-width: 899px) {
  html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar #bvFull { display: none !important; }
  html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave { padding: 0 14px !important; }
  html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-leave span { display: none !important; }
  html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-bar > .mt-ctl:not(.mt-leave) { min-width: 52px !important; }
}

/* ---------- the horizontal drawing toolbar (computers + tablets) ---------- */
#v-meet .mt-wrap.lx #mtPanel:has(> .mt-htools) :is(.mt-rail, #mtBoardWrap > .mt-bl) { display: none !important; }
#v-meet .mt-wrap.lx #mtPanel:has(> .mt-htools) .mt-toolbox .mt-tools:not(.mt-selbar) { display: none !important; }
#v-meet .mt-wrap.lx #mtPanel:has(> .mt-htools) .mt-toolrow > :not(.mt-toolbox) { display: none !important; }
#v-meet .mt-wrap.lx #mtPanel:has(> .mt-htools) :is(.mt-toolbox, .mt-toolrow):not(:has(.mt-selbar:not([hidden]):not(:empty))) { display: none !important; }
#v-meet .mt-htools { display: none; }
#v-meet .mt-wrap.lx .mt-htools { display: flex; align-items: center; gap: 6px; flex: none; min-height: 56px; margin: 0 0 8px; padding: 6px 8px; border-radius: 14px;
  background: #0B0F17; border: 1px solid rgba(212, 175, 55, .3); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
#v-meet .mt-wrap.lx .mt-htools::-webkit-scrollbar { display: none; }
#v-meet .mt-htg { display: flex; align-items: center; gap: 2px; flex: none; padding-right: 6px; border-right: 1px solid rgba(255, 255, 255, .1); }
#v-meet .mt-htg:last-of-type { border-right: 0; padding-right: 0; }
#v-meet .mt-htg.mt-hmore { margin-left: auto; border-right: 0; }
#v-meet .mt-ht { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #E9ECF2; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease; }
#v-meet .mt-ht .mt-ri { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-hmore .mt-ht .mt-ri { fill: currentColor; stroke: none; }
#v-meet .mt-ht:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
#v-meet .mt-ht.on { background: #2878F0; border-color: #4A90FF; color: #FFFFFF; box-shadow: 0 4px 12px rgba(40, 120, 240, .35); }
#v-meet .mt-ht[data-tool="highlight"].on { background: linear-gradient(180deg, #F7D774, #D4AF37); border-color: #E8C76A; color: #14110A; box-shadow: 0 4px 12px rgba(212, 175, 55, .3); }
#v-meet .mt-ht:disabled { opacity: .35; cursor: default; }
#v-meet .mt-ht:focus-visible, #v-meet .mt-htsz:focus-visible { outline: 2px solid #FFE28A; outline-offset: 1px; }
#v-meet .mt-htsz { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px 0 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; background: #10151F;
  color: #F2F2F7; font: 700 .84rem/1 "Manrope", system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
#v-meet .mt-htsz .mt-ri { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-hcolors { gap: 6px; }
#v-meet .mt-hcolors .mt-color { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); cursor: pointer; padding: 0; }
#v-meet .mt-hcolors .mt-color.on { border-color: #FFFFFF; box-shadow: 0 0 0 2px #D4AF37; }
#v-meet .mt-htpop { position: fixed; z-index: 96; min-width: 150px; padding: 6px; display: grid; gap: 4px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 14px; background: #0D1320;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
#v-meet .mt-htpop[hidden] { display: none; }
#v-meet .mt-htpop .mt-chip { justify-content: flex-start; min-height: 36px; }
#v-meet .mt-htmenu { min-width: 250px; }
#v-meet .mt-hm { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #F2F2F7; text-align: left; cursor: pointer; font: 600 .86rem/1 "Manrope", system-ui, sans-serif; }
#v-meet .mt-hm:hover, #v-meet .mt-hm:focus-visible { background: rgba(212, 175, 55, .12); outline: none; }
#v-meet .mt-hm.is-danger { color: #FF8A8A; }
#v-meet .mt-hm-t { margin: 6px 8px 2px; color: #A9ADB8; font: 700 .7rem/1 "Manrope", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#v-meet .mt-hm-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; }
@media (max-width: 1100px) { #v-meet .mt-wrap.lx .mt-ht { width: 38px; height: 38px; } #v-meet .mt-wrap.lx .mt-hcolors .mt-color:nth-child(n+5) { display: none; } }
/* the pages sidebar starts under the toolbar */
#v-meet .mt-wrap.lx:not(.lx-port) #mtPanel:has(> .mt-htools) > .mt-pages { top: 74px; }
#v-meet .mt-wrap.lx:not(.lx-port) #mtPanel.has-pages > .mt-htools { margin-left: -186px; }
#v-meet .mt-wrap.lx:not(.lx-port) #mtPanel.has-pages.pages-min > .mt-htools { margin-left: -56px; }
/* the empty video area never takes room (it lost to the stronger layout rule on an upright tablet) */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx:not(:has(.mt-grid > .mt-tile.has-video)) > .mt-stage { display: none !important; }
/* narrow big screens (an upright tablet): shapes and Picture move into ⋯, three colours stay */
#v-meet .mt-hm-narrow { display: none; }
@media (max-width: 899px) {
  #v-meet .mt-wrap.lx .mt-htools > .mt-htg:nth-child(2) { display: none; }
  #v-meet .mt-wrap.lx .mt-hm-narrow { display: grid; gap: 4px; }
  #v-meet .mt-wrap.lx .mt-hcolors .mt-color:nth-child(n+4) { display: none; }
  #v-meet .mt-wrap.lx .mt-ht { width: 38px; height: 38px; }
}
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lx-port #mtPanel > .mt-boardwrap { align-items: center !important; }

/* ---------- 2026-11-15 owner Phase 3: chat + files (every screen size) ---------- */
#v-meet .mt-chead { display: grid; gap: 8px; flex: none; padding: 10px 0 8px; }
#v-meet .mt-csearch { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid rgba(212, 175, 55, .28); border-radius: 12px; background: #10151F; }
#v-meet .mt-csearch svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #A9ADB8; stroke-width: 2; stroke-linecap: round; }
#v-meet .mt-csearch input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; color: #F8F8F8; font: 500 .9rem "Manrope", system-ui, sans-serif; outline: none; box-shadow: none !important; padding: 0 !important; }
#v-meet .mt-cfilt { display: flex; gap: 6px; flex-wrap: wrap; }
#v-meet .mt-cfilt button { min-height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: #10151F; color: #D9DCE3; font: 700 .8rem/1 "Manrope", sans-serif; cursor: pointer; }
#v-meet .mt-cfilt button.on { background: linear-gradient(180deg, #F2D27A, #D4AF37); border-color: #E8C76A; color: #14110A; }
#v-meet .mt-msgs { display: flex !important; flex-direction: column; gap: 12px; padding: 4px 4px 4px 0; }
#v-meet .mt-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; }
#v-meet .mt-mav { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #151922; border: 1.5px solid rgba(169, 173, 184, .5); color: #DDE3EE; font: 800 .72rem/1 "Manrope", sans-serif; letter-spacing: .02em; }
#v-meet .mt-msg.host .mt-mav { border-color: #D4AF37; color: #F2D88A; }
#v-meet .mt-mbody { min-width: 0; }
#v-meet .mt-mbody small { display: flex !important; align-items: baseline; gap: 8px; margin: 0 0 4px !important; color: #A9ADB8 !important; font: 600 .74rem/1.2 "Manrope", sans-serif !important; }
#v-meet .mt-mbody small b { color: #F2F2F7; font-weight: 800; font-size: .84rem; }
#v-meet .mt-msg.host .mt-mbody small b { color: #E8C76A; }
#v-meet .mt-mhost { padding: 2px 7px; border-radius: 6px; background: rgba(212, 175, 55, .16); color: #E8C76A; font: 800 .64rem/1.2 "Manrope", sans-serif; font-style: normal; }
#v-meet .mt-mbody time { margin-left: auto; font-size: .72rem; color: #8F95A3; }
#v-meet .mt-mpriv { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 6px; border: 1px dashed rgba(232, 199, 106, .6); color: #E8C76A; font: 700 .68rem/1.3 "Manrope", sans-serif; font-style: normal; }
#v-meet .mt-mtext { display: inline-block; max-width: 100%; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: #1C222E; border: 1px solid rgba(255, 255, 255, .06); color: #F2F2F7; font: 500 .92rem/1.45 "Manrope", "Kantumruy Pro", system-ui, sans-serif; overflow-wrap: anywhere; }
#v-meet .mt-msg.host .mt-mtext { background: linear-gradient(180deg, rgba(212, 175, 55, .26), rgba(212, 175, 55, .16)); border-color: rgba(212, 175, 55, .45); color: #FFF6DC; }
#v-meet .mt-msg.mine:not(.host) .mt-mtext { background: #1E2B45; border-color: rgba(40, 120, 240, .35); }
#v-meet .mt-msg.private .mt-mtext { border-style: dashed; border-color: rgba(232, 199, 106, .55); }
#v-meet .mt-mtext a { color: #8DB8FF; font-weight: 700; }
#v-meet .mt-att { display: flex; align-items: center; gap: 10px; }
#v-meet .mt-att-img { width: 72px; height: 54px; flex: none; object-fit: cover; border-radius: 8px; background: #0B0F17; }
#v-meet .mt-att-ic { width: 44px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #F04452; color: #fff; font: 800 .72rem/1 "Manrope", sans-serif; }
#v-meet .mt-att-tx { display: grid; gap: 4px; min-width: 0; }
#v-meet .mt-att-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v-meet .mt-att-tx span { font-size: .8rem; color: #A9ADB8; }
#v-meet .mt-cnew { align-self: center; margin: -44px auto 8px; position: relative; z-index: 3; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #2878F0; color: #fff; font: 700 .8rem/1 "Manrope", sans-serif; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
#v-meet .mt-cnew[hidden] { display: none; }
#v-meet .mt-compose { position: relative; display: grid; gap: 8px; flex: none; padding: 10px 0 12px; border-top: 1px solid rgba(212, 175, 55, .16); }
#v-meet .mt-compose select { height: 36px; border-radius: 10px; background: #10151F; color: #F2F2F7; border: 1px solid rgba(255, 255, 255, .14); font: 600 .84rem "Manrope", sans-serif; }
#v-meet .mt-cbox { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border: 1px solid rgba(212, 175, 55, .3); border-radius: 14px; background: #10151F; }
#v-meet .mt-cbox #mtText { flex: 1; min-width: 0; height: 40px; border: 0 !important; background: transparent !important; color: #F8F8F8; font: 500 .92rem "Manrope", system-ui, sans-serif; outline: none; box-shadow: none !important; padding: 0 4px !important; }
#v-meet .mt-ctools { display: flex; gap: 2px; }
#v-meet .mt-cic { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #E8C76A; cursor: pointer; }
#v-meet .mt-cic:hover { background: rgba(212, 175, 55, .12); }
#v-meet .mt-cic svg, #v-meet .mt-csend svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-csend { width: 44px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: linear-gradient(180deg, #F2D27A, #D4AF37); color: #14110A; cursor: pointer; box-shadow: 0 4px 12px rgba(212, 175, 55, .3); }
#v-meet .mt-emo { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; padding: 8px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 14px; background: #0D1320; box-shadow: 0 -10px 26px rgba(0, 0, 0, .5); }
#v-meet .mt-emo[hidden] { display: none; }
#v-meet .mt-emo button { height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 22px; cursor: pointer; }
#v-meet .mt-emo button:hover { background: rgba(255, 255, 255, .08); }
/* files */
#v-meet .mt-fshare { min-height: 40px; }
#v-meet .mt-files { list-style: none; margin: 0; padding: 4px 0; display: grid; align-content: start; gap: 8px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
#v-meet .mt-file { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; align-items: center; padding: 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: #10151F; }
#v-meet .mt-fic { grid-row: 1 / 3; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: #151922; color: #E8C76A; }
#v-meet .mt-fic.pdf:not(:has(img)) { background: rgba(240, 68, 82, .16); color: #FF8A93; }
#v-meet .mt-fic img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
#v-meet .mt-fic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#v-meet .mt-ftx { display: grid; gap: 2px; min-width: 0; }
#v-meet .mt-ftx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #F2F2F7; font: 700 .88rem/1.25 "Manrope", sans-serif; }
#v-meet .mt-ftx small { color: #A9ADB8; font: 500 .74rem/1.3 "Manrope", sans-serif; }
#v-meet .mt-fact { display: flex; flex-wrap: wrap; gap: 6px; }
#v-meet .mt-fb { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: transparent; color: #E9ECF2; font: 700 .76rem/1 "Manrope", sans-serif; text-decoration: none; cursor: pointer; }
#v-meet .mt-fb:hover { background: rgba(255, 255, 255, .07); }
#v-meet .mt-fb.mt-fgold { border-color: rgba(212, 175, 55, .6); color: #F2D88A; }
#v-meet .mt-fnote { flex: none; margin: 8px 0 10px; color: #8F95A3 !important; }

/* ---------- 2026-11-15 owner: Pencil and touch ---------- */
/* the line between the videos and the board can be dragged (25–55 %); a layout chosen again resets it */
#v-meet .mt-vgrip { display: none; }
#v-meet .mt-wrap.lx:not(.lx-port):is(.lay-balanced, .lay-teacher):has(.mt-grid > .mt-tile.has-video) .mt-vgrip { display: block; position: absolute; z-index: 6; top: 0; bottom: 0; right: 0; width: 12px;
  cursor: col-resize; touch-action: none; }
#v-meet .mt-vgrip::after { content: ""; position: absolute; right: 3px; top: 50%; width: 3px; height: 56px; margin-top: -28px; border-radius: 2px; background: rgba(212, 175, 55, .45); transition: background .15s ease; }
#v-meet .mt-vgrip:hover::after, #v-meet .mt-vgrip.on::after { background: #D4AF37; }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-balanced:has(.mt-grid > .mt-tile.has-video) { --lx-vid: calc(var(--lx-vid-w, clamp(220px, 24vw, 400px)) + 10px); }
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx.lay-teacher:has(.mt-grid > .mt-tile.has-video) { --lx-vid: calc(var(--lx-vid-w, clamp(300px, 42vw, 760px)) + 10px); }
/* a tap on a video makes it big (and back) — also in the new layout */
html body #v-meet#v-meet#v-meet#v-meet .mt-wrap.lx > .mt-stage > .mt-grid > .mt-tile.is-big { position: fixed !important; inset: 0 !important; z-index: 130 !important; width: auto !important; max-width: none !important;
  height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; contain: none !important; border-radius: 0 !important; display: flex !important; grid-column: auto !important; background: #000 !important; }

/* ---------- 2026-11-15 owner Phase 4: the chart editor and the templates window ---------- */
#v-meet .mt-ched, #v-meet .mt-tpl { width: min(940px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid rgba(212, 175, 55, .45); border-radius: 18px;
  background: #0D1320; color: #F2F2F7; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden; }
#v-meet .mt-ched[open], #v-meet .mt-tpl[open] { display: flex; flex-direction: column; }
#v-meet .mt-ched::backdrop, #v-meet .mt-tpl::backdrop { background: rgba(4, 6, 10, .6); }
#v-meet .mt-ched-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px 18px; }
#v-meet .mt-ched-h b { font: 800 1.05rem/1.2 "Manrope", system-ui, sans-serif; color: #F2D88A; }
#v-meet .mt-ched-h .mt-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #A9ADB8; font-size: 22px; cursor: pointer; }
#v-meet .mt-ched-types { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 10px; }
#v-meet .mt-ched-types button { min-height: 36px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: #10151F; color: #D9DCE3; font: 700 .84rem/1 "Manrope", sans-serif; cursor: pointer; }
#v-meet .mt-ched-types button.on { background: linear-gradient(180deg, #F2D27A, #D4AF37); border-color: #E8C76A; color: #14110A; }
#v-meet .mt-ched-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; padding: 0 18px; overflow: auto; flex: 1 1 auto; min-height: 0; }
#v-meet .mt-ched-form { display: grid; gap: 10px; align-content: start; min-width: 0; }
#v-meet .mt-ched-lb { display: grid; gap: 6px; color: #A9ADB8; font: 700 .76rem/1 "Manrope", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
#v-meet .mt-ched input:not([type="checkbox"]) { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; background: #10151F; color: #F8F8F8;
  font: 600 .88rem "Manrope", system-ui, sans-serif; text-transform: none; letter-spacing: 0; box-sizing: border-box; }
#v-meet .mt-ched input:focus { outline: 2px solid rgba(232, 199, 106, .7); outline-offset: 0; }
#v-meet .mt-ched-tw { max-height: 280px; overflow: auto; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
#v-meet .mt-ched-tbl { width: 100%; border-collapse: collapse; }
#v-meet .mt-ched-tbl th, #v-meet .mt-ched-tbl td { padding: 4px; vertical-align: middle; }
#v-meet .mt-ched-tbl th { position: sticky; top: 0; z-index: 1; background: #151922; color: #A9ADB8; font: 700 .72rem/1.2 "Manrope", sans-serif; text-align: left; }
#v-meet .mt-ched-tbl th > input { height: 30px; font-size: .8rem; }
#v-meet .mt-ched-tbl th:has(.mt-ched-x) { white-space: nowrap; }
#v-meet .mt-ched-tbl th:has(.mt-ched-x) > input { width: calc(100% - 26px); }
#v-meet .mt-ched-x { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: #FF8A8A; font-size: 16px; cursor: pointer; }
#v-meet .mt-ched-x:hover { background: rgba(240, 68, 82, .15); }
#v-meet .mt-ched-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#v-meet .mt-ched-chk { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #D9DCE3; font: 600 .84rem "Manrope", sans-serif; }
#v-meet .mt-ched-sch { display: inline-flex; gap: 3px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: #10151F; cursor: pointer; }
#v-meet .mt-ched-sch.on { border-color: #D4AF37; box-shadow: 0 0 0 1px #D4AF37; }
#v-meet .mt-ched-sch i { width: 14px; height: 14px; border-radius: 4px; }
#v-meet .mt-ched-prev { width: 100%; height: auto; aspect-ratio: 520 / 325; align-self: start; border-radius: 12px; background: #1A2030; }
#v-meet .mt-ched-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid rgba(212, 175, 55, .16); margin-top: 12px; }
#v-meet .mt-ched-sp { flex: 1; }
#v-meet .mt-ched-del { color: #FF8A8A !important; }
/* templates */
#v-meet .mt-tpl > .mt-small { margin: 0 18px 10px; }
#v-meet .mt-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 0 18px 18px; overflow: auto; }
#v-meet .mt-tpl-card { display: grid; gap: 4px; justify-items: start; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: #10151F; color: #F2F2F7; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease; }
#v-meet .mt-tpl-card:hover, #v-meet .mt-tpl-card:focus-visible { border-color: rgba(212, 175, 55, .7); background: #151922; outline: none; }
#v-meet .mt-tpl-ic { font-size: 26px; line-height: 1; margin-bottom: 4px; }
#v-meet .mt-tpl-card b { font: 800 .9rem/1.2 "Manrope", sans-serif; }
#v-meet .mt-tpl-card small { color: #A9ADB8; font: 500 .76rem/1.3 "Manrope", sans-serif; }
/* small screens (phones, iPad mini upright): a bottom sheet, preview on top */
@media (max-width: 760px) {
  #v-meet .mt-ched, #v-meet .mt-tpl { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  #v-meet .mt-ched-body { grid-template-columns: 1fr; }
  #v-meet .mt-ched-prev { order: -1; }
  #v-meet .mt-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
