/* meet-tools.css · Meet's sound and picture tools: the "Turn on sound" banner (impossible to miss), the voices' audio
   elements (in the page, invisible), Test mic / Test speaker, the sound check, the background chooser and the
   "asks you to unmute" prompt. Brand v5.1 tokens (meet.css): teal marks what is on, orange only a real problem. */
.mt-audio { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.mt-audio audio { width: 1px; height: 1px; }

.mt-sound-gate { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--mt-fg); color: var(--mt-bg);
  font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.mt-sound-gate[hidden] { display: none; }
.mt-sound-text { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.mt-sound-btn { min-height: 52px; padding: 12px 28px; font-size: 1.1rem; background: var(--mt-bg); color: var(--mt-fg); border-color: var(--mt-bg); }

.mt-test-row { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; }
.mt-test-row .mt-level { flex: 1; margin: 0; }
.mt-test-btn { flex: 0 0 auto; }
.mt-test-btn[hidden] { display: none; }
.mt-sound-note { margin: -4px 0 12px; font-size: 0.85rem; color: var(--mt-muted); }
.mt-sound-note:empty { display: none; }
.mt-sound-note[data-state="quiet"], .mt-sound-note[data-state="failed"] { color: var(--mt-fg); border-left: 3px solid var(--mt-bad); padding-left: 8px; }
.mt-hearing { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.mt-hearing li { overflow-wrap: anywhere; }

.mt-bg { position: relative; }
.mt-bg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-bg-btn { width: 80px; height: 45px; padding: 0; border-radius: 8px; border: 1px solid var(--mt-line); background: var(--mt-s1); color: var(--mt-fg);
  overflow: hidden; display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 0.8rem; }
.mt-bg-btn img, .mt-bg-btn canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-bg-btn[aria-pressed="true"] { outline: 3px solid var(--mt-ok); outline-offset: 1px; }
.mt-bg-blur { width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.35), rgba(112, 121, 226, 0.35) 60%, transparent); }
.mt-bg-file { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mt-bg-file:focus-visible ~ .mt-bg-row .mt-bg-up, .mt-bg-up:hover { outline: 3px solid var(--mt-fg); }

.mt-toast.ask { border-color: var(--mt-ok); border-width: 2px; font-weight: 600; }
.mt-reason { font-size: 0.75rem; }
