/* meet-panels.css · the call's side panels (chat, people; a bottom sheet on phones), dialogs, toasts, the speaker caption,
   reactions and the reaction tray. Brand v5.1 tokens (meet.css); orange only on a real problem (tone "bad"). */
.mt-side { flex: 0 0 360px; min-height: 0; display: flex; }
.mt-side[hidden] { display: none; }
.mt-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; border-radius: 16px; background: var(--mt-s1);
  border: 1px solid var(--mt-line); padding: 12px; }
.mt-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mt-panel-head h2 { margin: 0; }
.mt-x { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--mt-fg); font-size: 1.5rem; cursor: pointer; }
.mt-chat-list { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 10px; }
.mt-msg { padding: 8px 10px; border-radius: 12px; background: var(--mt-s1); }
.mt-msg.mine { background: var(--mt-s2); }
.mt-msg-meta { display: flex; gap: 8px; font-size: 0.78rem; color: var(--mt-muted); }
.mt-msg-meta strong { color: var(--mt-fg); }
.mt-msg-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mt-chat-empty { font-size: 0.85rem; }
.mt-chat-empty[hidden] { display: none; }
.mt-chat-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.mt-chat-input { min-height: 44px; max-height: 140px; }
.mt-host-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.mt-wait .mt-row { justify-content: space-between; }
.mt-wait .mt-label { margin: 12px 0 4px; }
.mt-people { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.mt-people-panel { overflow-y: auto; }
.mt-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--mt-line); flex-wrap: wrap; }
.mt-person:first-child { border-top: 0; }
.mt-avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; flex: 0 0 auto; }
.mt-person-name { flex: 1; min-width: 0; display: grid; }
.mt-person-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-person-name small { color: var(--mt-muted); }
.mt-person-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-person-acts:not(:empty) { flex-basis: 100%; padding-left: 42px; }
.mt-wait .mt-person-acts:not(:empty) { flex-basis: auto; padding-left: 0; }
.mt-micstate { width: 10px; height: 10px; border-radius: 50%; background: var(--mt-ok); }
.mt-micstate.off { background: transparent; border: 2px solid var(--mt-muted); }

.mt-dialog { max-width: min(520px, calc(100vw - 32px)); width: 100%; border: 1px solid var(--mt-line); border-radius: 18px; padding: 20px;
  background: var(--mt-bg); color: var(--mt-fg); }
.mt-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.mt-settings { max-height: calc(100dvh - 32px); overflow-y: auto; }
.mt-invite { display: grid; gap: 8px; margin-bottom: 8px; }

.mt-toasts { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 40; display: grid; gap: 8px;
  width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.mt-toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px;
  background: var(--mt-raise); border: 1px solid var(--mt-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.mt-toast > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mt-toast.bad { border-color: var(--mt-bad); }
.mt-caption { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 25; margin: 0; padding: 4px 12px;
  border-radius: 99px; background: var(--mt-veil); font-size: 0.85rem; pointer-events: none; max-width: calc(100vw - 32px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-caption[hidden] { display: none; }
.mt-react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mt-react { position: absolute; bottom: 12%; left: 50%; font-size: 2.4rem; animation: mt-float 2.6s ease-out forwards; }
@keyframes mt-float { 0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -10%) scale(1); }
  100% { transform: translate(-50%, -240%) scale(1.1); opacity: 0; } }
.mt-react-wrap { position: relative; }
.mt-tray { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 45; display: flex; gap: 4px;
  padding: 6px; border-radius: 99px; background: var(--mt-raise); border: 1px solid var(--mt-line); }
.mt-tray[hidden] { display: none; }
.mt-tray-btn { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.mt-tray-btn:hover { background: var(--mt-s2); }
@media (max-width: 720px) {
  .mt-side { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; z-index: 35; padding: 0 8px; }
  .mt-panel { border-radius: 18px 18px 0 0; background: var(--mt-bg); }
  .mt-caption { bottom: auto; top: calc(56px + env(safe-area-inset-top)); }
  .mt-toasts { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); gap: 6px; }
  .mt-toast { padding: 8px 12px; font-size: 0.9rem; }
  .mt-toast:nth-last-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mt-react { animation-duration: 0.01s; } }
