/* Call screen + left screen (UI agent). Tokens come from base.css :root. */

.call {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--meet-bg); color: var(--text);
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  overflow: hidden;
  user-select: none;
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  flex: 0 0 var(--topbar-h); height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 12px; min-width: 0;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-meta { font-size: 16px; font-weight: 500; white-space: nowrap; letter-spacing: .1px; }
.tb-sep { margin: 0 10px; color: var(--text-2); font-weight: 400; }
.tb-code { font-weight: 500; }
.tb-timer { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rec-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px;
  border-radius: 14px; background: rgba(234, 67, 53, .16); color: #f28b82;
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.rec-pill[hidden] { display: none; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: rec-blink 1.2s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: .25; } }
.rec-label { font-weight: 700; letter-spacing: .5px; }

.present-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 14px;
  border-radius: 20px; background: var(--surface); font-size: 14px; white-space: nowrap; min-width: 0;
}
.present-pill[hidden] { display: none; }
.present-pill .present-ic { font-size: 20px; color: var(--accent); }
.present-text { overflow: hidden; text-overflow: ellipsis; }
.pill-btn {
  height: 32px; padding: 0 16px; border: 0; border-radius: 16px; cursor: pointer;
  font: 500 14px/1 "Google Sans", Roboto, Arial, sans-serif; white-space: nowrap;
}
.pill-btn[hidden] { display: none; }
.stop-present { background: var(--accent); color: var(--accent-on); }
.stop-present:hover { background: #aecbfa; }

.tb-people {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px;
  border: 0; border-radius: 20px; background: transparent; color: var(--text); cursor: pointer;
  font: 500 14px "Google Sans", Roboto, Arial, sans-serif;
}
.tb-people:hover { background: rgba(232, 234, 237, .08); }
.tb-people.active { color: var(--accent); }
.people-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-2);
  font-size: 12px; line-height: 18px; text-align: center;
}

/* ---------------------------------------------------------------- main + stage */
.call-main { position: relative; flex: 1 1 auto; min-height: 0; }
.stage {
  position: absolute; top: 0; bottom: 0; left: 16px;
  transition: width 250ms ease;
}
.stage.resizing, .stage.resizing .tile { transition: none !important; }

.tile {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  background: var(--tile-bg); border-radius: var(--radius-tile); overflow: hidden;
  transition: left 250ms ease, top 250ms ease, width 250ms ease, height 250ms ease, opacity 200ms ease;
  contain: layout paint; isolation: isolate;
}
.tile.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 150ms ease, visibility 0s 150ms; }
.tile.is-pip { box-shadow: 0 4px 16px rgba(0, 0, 0, .5); cursor: grab; }
.tile.is-pip.dragging { transition: none; cursor: grabbing; }
.tile::after { /* speaking outline */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow 150ms ease;
}
.tile.speaking::after { box-shadow: inset 0 0 0 3px var(--accent); }

.tile-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tile-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #000; opacity: 0; transition: opacity 200ms ease;
}
.tile.video-on .tile-video { opacity: 1; }
.tile.mirror .tile-video { transform: scaleX(-1); }
.tile-screen .tile-video { object-fit: contain; background: #000; }

.tile-avatar-wrap {
  position: relative; width: var(--avatar, 96px); height: var(--avatar, 96px);
  display: flex; align-items: center; justify-content: center; transition: opacity 200ms ease;
}
.tile.video-on .tile-avatar-wrap { opacity: 0; }
.tile-screen .tile-avatar-wrap { display: none; }
.tile-avatar {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: calc(var(--avatar, 96px) * .45); font-weight: 500; line-height: 1;
}
.avatar-halo {
  position: absolute; inset: 0; border-radius: 50%; background: rgba(138, 180, 248, .28);
  transform: scale(1); opacity: 0; transition: opacity 150ms ease;
}
.tile.speaking .avatar-halo { opacity: 1; transform: scale(calc(1.05 + var(--lvl, 0) * .35)); }

.tile-name {
  position: absolute; left: 12px; bottom: 10px; right: 48px; z-index: 4;
  font-size: 14px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.tile.small .tile-name { font-size: 12px; left: 8px; bottom: 6px; }

.tile-audio {
  position: absolute; top: 10px; right: 10px; z-index: 4; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-strong); pointer-events: none;
}
.tile-audio.muted { background: rgba(32, 33, 36, .6); }
.tile-audio .mic-off-ic { font-size: 18px; color: #fff; }
.tile-audio [hidden] { display: none !important; }
.bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.bars span {
  width: 3px; height: 12px; border-radius: 2px; background: #fff;
  transform: scaleY(.25); transform-origin: center; transition: transform 80ms linear;
}
.tile.small .tile-audio { top: 6px; right: 6px; width: 22px; height: 22px; }

.tile-hand {
  position: absolute; top: 10px; left: 10px; z-index: 4; height: 28px; min-width: 28px; padding: 0 6px;
  border-radius: 14px; background: #fff; color: var(--panel-text);
  display: flex; align-items: center; justify-content: center;
}
.tile-hand[hidden] { display: none; }
.tile-hand .msr { font-size: 18px; color: #f9ab00; }
.tile.hand::before { /* subtle yellow edge like Meet */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 5; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(249, 171, 0, .6);
}

.tile-status {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; background: rgba(32, 33, 36, .55);
  font-size: 13px; color: var(--text);
}
.tile-status[hidden] { display: none; }
.tile.dim .tile-media { filter: brightness(.6); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(232, 234, 237, .25); border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tile-hover {
  position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 150ms ease; pointer-events: none;
}
.tile:hover .tile-hover, .tile:focus-within .tile-hover { opacity: 1; }
.tile.is-pip .tile-hover, .tile.small .tile-hover .hover-btn + .hover-btn { display: none; }
.tile.is-pip:hover .tile-hover { display: flex; }
.hover-group {
  display: flex; gap: 4px; padding: 4px; border-radius: 28px; background: rgba(32, 33, 36, .7);
  pointer-events: auto;
}
.hover-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hover-btn:hover { background: rgba(255, 255, 255, .14); }
.hover-btn[hidden] { display: none; }
.tile.small .hover-btn { width: 32px; height: 32px; }

/* FEATURES hook: reaction badges, effects. Above media, below hover controls. */
.tile-overlay { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

/* Own presentation: live preview of your screen + a "You are presenting" bar. */
.present-card {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
  padding: 12px; pointer-events: none;
}
.tile-screen.self:not(.video-on) .present-card { background: var(--surface); align-items: center; }
.present-card-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(32, 33, 36, .88); box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.present-card-ic { font-size: 22px; color: var(--accent); }
.present-card-title { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.small .present-card-title { display: none; }
.tile.small .present-card-bar { padding: 4px; }

/* "N others" tile */
.others-tile {
  border: 0; cursor: pointer; color: var(--text); font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.others-tile:hover { background: var(--btn-hover); }
.others-avatars { display: flex; }
.mini-avatar {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -10px; border: 2px solid var(--tile-bg);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 500; font-size: 17px;
}
.mini-avatar:first-child { margin-left: 0; }
.others-text { font-size: 14px; font-weight: 500; }

/* ---------------------------------------------------------------- side panel */
.side-panel {
  position: absolute; top: 0; right: 16px; bottom: 0; width: 360px; z-index: 20;
  display: flex; flex-direction: column;
  background: var(--panel-bg); color: var(--panel-text); border-radius: 8px;
  font-family: "Google Sans", Roboto, Arial, sans-serif; user-select: text;
  transform: translateX(calc(100% + 32px)); opacity: 0; visibility: hidden;
  transition: transform 250ms ease, opacity 200ms ease, visibility 0s 250ms;
}
.side-panel.open { transform: none; opacity: 1; visibility: visible; transition: transform 250ms ease, opacity 200ms ease; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 24px; min-height: 64px; }
.panel-title { margin: 0; font-size: 18px; font-weight: 400; }
.panel-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 24px 16px; }
.panel-body.panel-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.panel-sub { margin: 16px 0 8px; font-size: 14px; font-weight: 500; color: var(--panel-text); }
.panel-note { font-size: 13px; color: var(--panel-text-2); line-height: 20px; }
.panel-empty { color: var(--panel-text-2); font-size: 14px; }
.panel-hr { border: 0; border-top: 1px solid #dadce0; margin: 16px 0; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.side-panel .icon-btn { color: var(--panel-text-2); }
.side-panel .icon-btn:hover { background: rgba(60, 64, 67, .08); }
.info-link { font-size: 14px; color: var(--panel-text); word-break: break-all; }
.text-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; margin: 8px 0 0 -8px;
  border: 0; border-radius: 4px; background: transparent; color: var(--accent-strong); cursor: pointer;
  font: 500 14px "Google Sans", Roboto, Arial, sans-serif;
}
.text-btn:hover { background: rgba(26, 115, 232, .08); }
.text-btn .msr { font-size: 20px; }

/* people */
.panel-search {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; margin-top: 4px;
  border: 1px solid #dadce0; border-radius: 4px; color: var(--panel-text-2);
}
.panel-search:focus-within { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.panel-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14px Roboto, Arial, sans-serif; color: var(--panel-text); }
.people-list { list-style: none; margin: 0; padding: 0; }
.person { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.person.away { opacity: .6; }
.p-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 500;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.p-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.p-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-you { color: var(--panel-text-2); }
.p-sub { font-size: 12px; color: var(--panel-text-2); }
.p-hand { color: #f9ab00; font-size: 20px; }
.p-mic { display: inline-flex; color: var(--panel-text-2); }
.p-mic.off { color: var(--panel-text-2); }
.p-mic .msr { font-size: 20px; }

/* chat */
.chat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 24px 8px; }
.chat-info {
  margin: 4px 0 16px; padding: 12px; border-radius: 8px; background: #f1f3f4;
  font-size: 12px; line-height: 16px; color: var(--panel-text-2); text-align: center;
}
.chat-group { margin: 0 0 16px; }
.chat-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.chat-from { font-size: 13px; font-weight: 500; color: var(--panel-text); }
.chat-time { font-size: 12px; color: var(--panel-text-2); }
.chat-line { font-size: 13px; line-height: 20px; color: var(--panel-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-line + .chat-line { margin-top: 4px; }
.chat-system { margin: 8px 0 16px; text-align: center; font-size: 12px; color: var(--panel-text-2); }
.chat-custom { margin: 0 0 16px; }
.chat-form { flex: 0 0 auto; padding: 8px 16px 16px; }
.chat-pill {
  display: flex; align-items: flex-end; gap: 4px; min-height: 48px; padding: 4px 4px 4px 16px;
  border-radius: 24px; background: #f1f3f4;
}
.chat-pill:focus-within { background: #e8eaed; }
.chat-input {
  flex: 1; min-width: 0; max-height: 120px; padding: 10px 0; border: 0; outline: 0; resize: none; background: transparent;
  font: 14px/20px Roboto, Arial, sans-serif; color: var(--panel-text);
}
.side-panel .chat-send { color: var(--accent-strong); }
.side-panel .chat-send:disabled { color: #bdc1c6; cursor: default; background: transparent; }
.chat-counter { display: block; margin: 4px 8px 0 0; text-align: right; font-size: 11px; color: var(--panel-text-2); }
.chat-counter[hidden] { display: none; }

/* ---------------------------------------------------------------- controls */
.controls {
  flex: 0 0 var(--controls-h); height: var(--controls-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; gap: 12px;
}
.ctrl-left { display: flex; align-items: center; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; visibility: hidden; }
.ctrl-center { display: flex; align-items: center; gap: 8px; justify-content: center; }
.ctrl-right { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }

.ctrl-btn {
  position: relative; width: 40px; height: 40px; border: 0; border-radius: 20px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--text); cursor: pointer;
  transition: background-color 150ms ease, border-radius 150ms ease, color 150ms ease;
}
.ctrl-btn .msr { font-size: 22px; }
.ctrl-btn:hover { background: var(--btn-hover); }
.ctrl-btn.off { background: var(--btn-off); color: #fff; }
.ctrl-btn.off:hover { background: var(--btn-off-hover); }
.ctrl-btn.active { background: var(--accent); color: var(--accent-on); }
.ctrl-btn.active:hover { background: #aecbfa; }
.ctrl-btn.flat { background: transparent; }
.ctrl-btn.flat:hover { background: rgba(232, 234, 237, .08); }
.ctrl-btn.flat.active { background: transparent; color: var(--accent); }
.leave-btn { width: 56px; border-radius: 20px; background: var(--btn-off); color: #fff; }
.leave-btn:hover { background: var(--btn-off-hover); }
.unread-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--meet-bg);
}
.unread-dot[hidden] { display: none; }

/* split buttons */
.split {
  display: inline-flex; align-items: center; height: 40px; border-radius: 20px; background: var(--surface-2);
  padding-left: 2px;
}
.split .split-main { border-radius: 20px; }
.split-chev {
  width: 30px; height: 36px; border: 0; background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 18px 0 0 18px;
}
.split-chev:hover { background: rgba(232, 234, 237, .08); }
.split-chev .msr { font-size: 20px; }
.split.off { background: var(--surface); }
.split.unavailable .split-main { background: var(--btn-off); }
.warn-badge {
  position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%;
  background: #f9ab00; color: #202124; font: 700 11px/16px Roboto, Arial, sans-serif; text-align: center;
}
.warn-badge[hidden] { display: none; }

/* ---------------------------------------------------------------- menus, tooltips */
.menu {
  position: fixed; z-index: 1000; min-width: 220px; max-width: 340px; max-height: 70vh; overflow: auto;
  padding: 8px 0; border-radius: 8px; background: var(--surface); color: var(--text);
  box-shadow: 0 4px 8px 3px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .3);
  font: 14px Roboto, Arial, sans-serif; outline: none;
  animation: menu-in 120ms ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(4px); } }
.menu.light { background: #fff; color: var(--panel-text); }
.menu-title, .menu-header { padding: 8px 16px 4px; font-size: 12px; font-weight: 500; color: var(--text-2); letter-spacing: .3px; }
.menu.light .menu-header { color: var(--panel-text-2); }
.menu-divider { height: 1px; margin: 8px 0; background: rgba(232, 234, 237, .14); }
.menu-item {
  width: 100%; min-height: 40px; display: flex; align-items: center; gap: 14px; padding: 8px 16px;
  border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(232, 234, 237, .08); outline: none; }
.menu.light .menu-item:hover, .menu.light .menu-item:focus-visible { background: rgba(60, 64, 67, .08); }
.menu-item:disabled { color: var(--text-2); cursor: default; background: transparent; }
.menu-item.danger { color: #f28b82; }
.menu-icon { font-size: 20px; color: var(--text-2); }
.menu.light .menu-icon { color: var(--panel-text-2); }
.menu-check { width: 20px; display: inline-flex; color: var(--accent); }
.menu-check .msr { font-size: 20px; }
.menu-item.checked { color: var(--accent); }
.menu-label { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.menu-sub { font-size: 12px; color: var(--text-2); }
.switch { position: relative; width: 34px; height: 14px; border-radius: 7px; background: #5f6368; flex: 0 0 auto; transition: background 150ms; }
.switch-knob {
  position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #e8eaed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform 150ms ease, background 150ms;
}
.switch.on { background: rgba(138, 180, 248, .5); }
.switch.on .switch-knob { transform: translateX(18px); background: var(--accent); }

.tooltip {
  position: fixed; z-index: 1100; left: 0; top: 0; max-width: 260px; padding: 6px 8px; border-radius: 4px;
  background: #e8eaed; color: #202124; font: 500 12px/16px Roboto, Arial, sans-serif;
  opacity: 0; pointer-events: none; transition: opacity 100ms ease;
}
.tooltip.show { opacity: 1; }

/* ---------------------------------------------------------------- dialogs */
.scrim {
  position: fixed; inset: 0; z-index: 900; background: rgba(32, 33, 36, .6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dialog {
  width: 440px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: var(--panel-text); border-radius: 8px; box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
  font-family: "Google Sans", Roboto, Arial, sans-serif;
}
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 24px; }
.dlg-title { margin: 0; font-size: 22px; font-weight: 400; }
.dialog .icon-btn { color: var(--panel-text-2); }
.dialog .icon-btn:hover { background: rgba(60, 64, 67, .08); }
.dlg-body { padding: 0 24px 24px; }
.dlg-note { margin: 4px 0 8px; font-size: 13px; color: var(--panel-text-2); }
.layout-options { display: flex; flex-direction: column; }
.layout-opt { display: flex; align-items: center; gap: 16px; min-height: 64px; cursor: pointer; border-bottom: 1px solid #f1f3f4; }
.layout-opt input { width: 20px; height: 20px; accent-color: var(--accent-strong); margin: 0; }
.layout-label { flex: 1; font-size: 14px; }
.lay-ill { position: relative; width: 72px; height: 44px; border-radius: 4px; background: #e8eaed; display: grid; gap: 3px; padding: 4px; }
.lay-ill span { background: #9aa0a6; border-radius: 2px; }
.lay-tiled { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lay-spotlight { grid-template-columns: 1fr; }
.lay-sidebar { grid-template-columns: 3fr 1fr; grid-template-rows: repeat(3, 1fr); }
.lay-sidebar span:first-child { grid-row: 1 / 4; }
.lay-auto { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.lay-auto span:first-child { grid-row: 1 / 3; }
.tiles-section { margin-top: 20px; }
.tiles-head { display: flex; justify-content: space-between; font-size: 16px; }
.tiles-value { font-weight: 500; color: var(--accent-strong); }
.tiles-row { display: flex; align-items: center; gap: 12px; color: var(--panel-text-2); }
.tiles-row .msr.sm { font-size: 18px; }
.tiles-slider { flex: 1; accent-color: var(--accent-strong); }

/* ---------------------------------------------------------------- toasts + banner */
.toast-host {
  position: fixed; left: 16px; bottom: calc(var(--controls-h) + 12px); z-index: 950;
  display: flex; flex-direction: column-reverse; gap: 8px; align-items: flex-start; pointer-events: none;
  max-width: min(480px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 4px 6px 16px; border-radius: 4px;
  background: #303134; color: #fff; box-shadow: 0 3px 5px rgba(0, 0, 0, .3), 0 1px 18px rgba(0, 0, 0, .2);
  font: 14px/20px Roboto, Arial, sans-serif; pointer-events: auto;
  animation: toast-in 200ms ease-out;
}
.toast.leaving { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 6px 0; }
.toast-action {
  height: 36px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--accent);
  font: 500 14px "Google Sans", Roboto, Arial, sans-serif; cursor: pointer; white-space: nowrap;
}
.toast-action:hover { background: rgba(138, 180, 248, .08); }
.toast-close {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.toast-close .msr { font-size: 18px; }
.toast-close:hover { background: rgba(255, 255, 255, .08); }

.audio-banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1200;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 20px;
  background: var(--accent); color: var(--accent-on); cursor: pointer;
  font: 500 14px "Google Sans", Roboto, Arial, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* ---------------------------------------------------------------- left screen (light) */
.left-screen {
  position: fixed; inset: 0; background: #fff; color: var(--panel-text);
  font-family: "Google Sans", Roboto, Arial, sans-serif; overflow: auto;
}
.left-top { display: flex; align-items: center; gap: 12px; padding: 16px 24px; color: var(--panel-text-2); font-size: 14px; }
.countdown { position: relative; width: 48px; height: 48px; flex: 0 0 auto; }
.countdown-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #e8eaed; stroke-width: 4; }
.ring-prog { fill: none; stroke: var(--accent-strong); stroke-width: 4; stroke-linecap: round; }
.countdown-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--panel-text); font-variant-numeric: tabular-nums;
}
.left-center { display: flex; flex-direction: column; align-items: center; padding: 10vh 24px 48px; text-align: center; }
.left-title { margin: 0 0 32px; font-size: 36px; font-weight: 400; line-height: 44px; }
.left-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.left-screen .btn-outlined, .left-screen .btn-primary {
  height: 40px; padding: 0 24px; border-radius: 20px; cursor: pointer;
  font: 500 14px "Google Sans", Roboto, Arial, sans-serif;
}
.left-screen .btn-outlined { background: #fff; color: var(--accent-strong); border: 1px solid #dadce0; }
.left-screen .btn-outlined:hover { background: rgba(26, 115, 232, .04); border-color: #d2e3fc; }
.left-screen .btn-primary { background: var(--accent-strong); color: #fff; border: 0; }
.left-screen .btn-primary:hover { background: #1765cc; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
.left-card {
  display: flex; gap: 16px; align-items: flex-start; max-width: 440px; margin-top: 48px; padding: 16px 20px;
  border: 1px solid #dadce0; border-radius: 8px; text-align: left;
}
.left-card-ic { color: var(--accent-strong); font-size: 28px; }
.left-card-title { font-size: 16px; margin-bottom: 4px; }
.left-card-text { font-size: 14px; color: var(--panel-text-2); line-height: 20px; }

/* ---------------------------------------------------------------- focus */
.call button:focus-visible, .menu button:focus-visible, .dialog :focus-visible, .toast button:focus-visible,
.left-screen button:focus-visible, .audio-banner:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.side-panel :focus-visible, .dialog :focus-visible, .left-screen :focus-visible { outline-color: var(--accent-strong); }
.tile:focus-visible { outline: none; }
.tile:focus-visible::after { box-shadow: inset 0 0 0 3px var(--accent); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 999px) {
  .tb-timer { display: none; }
}
@media (max-width: 699px) {
  .topbar { padding: 0 8px; }
  .tb-timer, .rec-time, .present-text, .tb-people { display: none; }
  .present-pill { padding-left: 4px; }
  .present-pill .present-ic { display: none; }
  .stage { left: 8px; }
  .controls { grid-template-columns: 1fr; padding: 0 4px; }
  .ctrl-left, .ctrl-right { display: none; }
  .ctrl-center { gap: 6px; }
  .split-chev { width: 22px; }
  .side-panel {
    position: fixed; inset: 0; width: auto; right: 0; border-radius: 0; z-index: 800;
    transform: translateY(100%);
  }
  .left-title { font-size: 28px; line-height: 36px; }
}
@media (max-width: 380px) {
  .ctrl-center { gap: 4px; }
  .ctrl-btn { width: 36px; height: 36px; }
  .split { height: 36px; }
  .split-chev { display: none; }
  .leave-btn { width: 48px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tile, .stage, .side-panel, .tile-video, .tile-avatar-wrap, .avatar-halo, .bars span, .toast, .menu {
    transition: none !important; animation: none !important;
  }
  .rec-dot { animation: none; }
  .spinner { animation-duration: 3s; }
  .tile.speaking .avatar-halo { transform: scale(1.1); }
}
