@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --ink: #14212e;
  --muted: #5d6b79;
  --faint: #8a96a3;
  --line: #dfe5eb;
  --tile: #e6ebf0;
  --accent: #0a7a72;
  --accent-hover: #086a63;
  --accent-soft: #e3f2f0;
  --danger: #d2382e;
  --danger-hover: #b92f26;
  --focus: 0 0 0 3px rgb(10 122 114 / 0.28);
  --shadow-1: 0 1px 2px rgb(20 33 46 / 0.06), 0 1px 1px rgb(20 33 46 / 0.04);
  --shadow-2: 0 10px 30px -12px rgb(20 33 46 / 0.18), 0 2px 6px rgb(20 33 46 / 0.05);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font:
    400 15px / 1.5 "Figtree",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent);
}
.btn-secondary:hover {
  border-color: var(--accent);
}
.btn-ghost {
  background: none;
  color: var(--muted);
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--ink);
}
.btn-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.btn-icon:hover {
  background: var(--bg);
  color: var(--ink);
}

.field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field::placeholder {
  color: var(--faint);
}
.field:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.field-label {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Lobby ---------- */
.lobby {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(16px, 5vw, 64px);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 4px 6px 12px;
  border-radius: 2px 6px 6px 2px;
  background: #fff;
}
.clock {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}
.clock-date::first-letter {
  text-transform: uppercase;
}

.lobby-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0 48px;
}
.hero-lead {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}
.hero-code {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(44px, 7.4vw, 104px);
  color: var(--ink);
  white-space: nowrap;
}
.hero-code .sep {
  color: var(--accent);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-2);
}
.actions {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.actions .btn-primary {
  width: 100%;
  height: 48px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 13px;
  margin: 6px 0 2px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.join-row {
  display: flex;
  gap: 8px;
}
.error {
  margin: 2px 0 0;
  min-height: 1.5em;
  color: var(--danger);
  font-size: 14px;
}

/* ---------- Room ---------- */
.room {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.stage {
  position: relative;
  flex: 1;
  display: flex;
  gap: 16px;
  min-height: 0;
  padding: 16px 16px 0;
}
.grid {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
/* Placed by gallery.ts: each tile keeps its shape, centred in the space the layout gives it */
.tile {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tile);
  display: grid;
  place-items: center;
  transition:
    left 0.18s ease,
    top 0.18s ease,
    width 0.18s ease,
    height 0.18s ease;
}
.tile[hidden] {
  display: none;
}
/* Two people: you, small, over the other person's corner */
.tile.floating {
  z-index: 1;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}
.pin-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgb(32 33 36 / 0.6);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.pin-btn .ico {
  width: 18px;
  height: 18px;
}
.tile:hover .pin-btn,
.pin-btn:focus-visible,
.pin-btn[aria-pressed="true"] {
  opacity: 1;
}
.pin-btn[aria-pressed="true"] {
  background: var(--accent);
}
@media (hover: none) {
  .pin-btn {
    opacity: 0.85;
  }
}
.tile.floating .pin-btn {
  display: none;
}
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f1a24;
}
.tile.self video {
  transform: scaleX(-1);
}
.tile.cam-off video {
  visibility: hidden;
}
.avatar {
  position: absolute;
  display: none;
  place-items: center;
  width: clamp(56px, 22%, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 44px);
}
.tile.cam-off .avatar {
  display: grid;
}
.name-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.92);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
}
.mic-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
}
.mic-flag .ico {
  width: 16px;
  height: 16px;
}
.tile.mic-muted .mic-flag {
  display: grid;
}
/* Whoever is talking: a ring drawn inside the tile so the layout does not move */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.tile.speaking::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .tile::after {
    transition: none;
  }
}

/* A shared screen is shown whole, never cropped */
.tile.screen video {
  object-fit: contain;
  background: #1d2731;
}

/* Chat */
.chat {
  width: 340px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px 0 20px;
}
.chat-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.chat-log {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 14px;
}
.chat-log li {
  overflow-wrap: anywhere;
}
.chat-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}
.chat-meta strong {
  font-weight: 600;
}
.chat-meta time {
  color: var(--faint);
}
.chat-text {
  margin-top: 2px;
  font-size: 14px;
}
.chat-form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px 12px;
  padding: 0 4px 0 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid transparent;
}
.chat-form:focus-within {
  border-color: var(--accent);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: none;
  outline: none;
}
.chat-form input::placeholder {
  color: var(--faint);
}
.send {
  color: var(--accent);
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 24px 18px;
}
.meeting-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 500;
}
.info-time {
  color: var(--ink);
}
.info-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
}
.info-code {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-group.side {
  justify-self: end;
  gap: 6px;
}
.ctl {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.ctl:hover {
  background: var(--bg);
}
.ctl .ico.off {
  display: none;
}
.ctl[aria-pressed="true"] {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.ctl[aria-pressed="true"]:hover {
  background: var(--danger-hover);
}
.ctl[aria-pressed="true"] .ico.on {
  display: none;
}
.ctl[aria-pressed="true"] .ico.off {
  display: block;
}
.ctl-share[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.ctl-share[aria-pressed="true"]:hover {
  background: var(--accent-hover);
}
.ctl.active {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.ctl[aria-busy="true"] {
  cursor: progress;
  opacity: 0.6;
}
.ctl:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ctl-leave {
  width: 64px;
  border-radius: 24px;
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.ctl-leave:hover {
  background: var(--danger-hover);
}
.ctl-flat {
  border-color: transparent;
  box-shadow: none;
  background: none;
  color: var(--muted);
}
.ctl-flat:hover {
  color: var(--ink);
}
.ctl-flat[aria-pressed="true"],
.ctl-flat[aria-pressed="true"]:hover,
.ctl-flat[aria-expanded="true"] {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}
.ctl-people {
  display: inline-flex;
  gap: 6px;
  width: auto;
  padding: 0 14px;
  border-radius: 24px;
  font-weight: 600;
}
.info-icon {
  flex: none;
  display: grid;
  color: var(--muted);
}
#room-e2ee {
  color: var(--accent);
}
.info-icon .ico {
  width: 18px;
  height: 18px;
}

/* End-to-end encryption */
.e2ee-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--accent);
  font-weight: 500;
}
.e2ee-note .ico {
  flex: none;
}
.mode-choice {
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
}
.mode-choice legend {
  padding: 0;
  margin-bottom: 8px;
}
.mode {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.mode:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.mode input {
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.mode span {
  display: grid;
  gap: 2px;
}
.mode strong {
  font-size: 14px;
  font-weight: 600;
}
.mode small {
  font-size: 13px;
  color: var(--muted);
}

/* People panel */
.people-total {
  color: var(--faint);
  font-weight: 500;
}
.people-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 16px;
}
.lock-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 12px 8px;
  padding: 12px 8px 12px 12px;
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}
.lock-text {
  flex: 1;
  display: grid;
  gap: 2px;
}
.lock-text strong {
  font-size: 14px;
  font-weight: 600;
}
.lock-text small {
  font-size: 13px;
  color: var(--muted);
}
.switch {
  appearance: none;
  flex: none;
  position: relative;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: var(--faint);
  cursor: pointer;
  transition: background 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--accent);
}
.switch:checked::after {
  transform: translateX(16px);
}
.switch:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.people-section h3 {
  margin: 12px 20px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.people-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}
.people-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
}
.people-list li:hover {
  background: var(--bg);
}
.person-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.role-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.person-actions {
  display: flex;
  gap: 4px;
}
.person-actions .btn-icon:disabled {
  opacity: 0.35;
  cursor: default;
}
.person-actions .btn-icon.armed {
  background: var(--danger);
  color: #fff;
}
.btn-small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

/* Waiting at a locked meeting */
.room:has(.waiting-room:not([hidden])) .controls {
  visibility: hidden;
}
.waiting-room {
  position: absolute;
  inset: 16px 16px 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg);
}
.waiting-card {
  max-width: 380px;
  padding: 0 24px;
  text-align: center;
}
.waiting-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.waiting-card h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 600;
}
.waiting-card p {
  margin: 0 0 20px;
  color: var(--muted);
}
.badge {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

/* Background, device and layout menus */
.effects,
.layout-picker {
  position: relative;
}
.menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: grid;
}
.menu-title {
  margin: 6px 10px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.menu button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
}
.menu button:hover,
.menu button:focus-visible {
  background: var(--bg);
}
.menu .check {
  flex: none;
  width: 18px;
  height: 18px;
  visibility: hidden;
  color: var(--accent);
}
.menu [aria-checked="true"] {
  color: var(--accent);
}
.menu [aria-checked="true"] .check {
  visibility: visible;
}
.menu-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-empty {
  margin: 0 10px 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Microphone and camera with the arrow that opens their device list, as one pill */
.split {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 4px;
  border-radius: 999px;
  background: var(--line);
}
.ctl.ctl-chevron {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  box-shadow: none;
}
.ctl.ctl-chevron:hover,
.ctl.ctl-chevron[aria-expanded="true"] {
  background: var(--surface);
}
.ctl-chevron .ico {
  width: 20px;
  height: 20px;
}
.split .menu {
  left: 0;
  transform: none;
}
.layout-picker .menu {
  left: auto;
  right: 0;
  transform: none;
}
.menu.menu-devices {
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(60vh, 480px);
  overflow-y: auto;
}

/* ---------- Captions ---------- */
.ctl-cc[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ctl-cc[aria-pressed="true"]:hover {
  background: var(--accent-hover);
}
.captions-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 12px 16px 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.captions-notice.live {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--ink);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.captions-notice.live .live-dot {
  background: var(--danger);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  50% {
    opacity: 0.35;
  }
}
.transcript-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.transcript-actions::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-right: 6px;
  background: var(--line);
}
.link-btn {
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover {
  background: var(--surface);
  text-decoration: underline;
}
.link-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.captions {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgb(20 33 46 / 0.86);
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  pointer-events: none;
}
.captions p {
  margin: 0;
}
.captions p + p {
  margin-top: 2px;
}
.captions strong {
  color: #9fe3da;
  font-weight: 600;
}

/* ---------- Minutes ---------- */
.minutes-open::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: var(--line);
}
.minutes-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(20 33 46 / 0.24);
}
.minutes-dialog[open] {
  display: flex;
  flex-direction: column;
}
.minutes-dialog::backdrop {
  background: rgb(20 33 46 / 0.45);
}
.minutes-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 18px 12px 0 24px;
}
.minutes-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.minutes-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.minutes-body {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 8px 24px 4px;
  line-height: 1.55;
}
.minutes-body h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.minutes-body p,
.minutes-body ul,
.minutes-body ol {
  margin: 0 0 8px;
}
.minutes-body ul,
.minutes-body ol {
  padding-left: 22px;
}
.minutes-body li + li {
  margin-top: 4px;
}
.minutes-working {
  color: var(--muted);
  padding-top: 24px;
}
.minutes-working::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.minutes-note {
  margin: 0;
  padding: 8px 24px 0;
  color: var(--faint);
  font-size: 12px;
}
.minutes-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px 20px;
}
.minutes-actions .btn {
  height: 40px;
  padding: 0 16px;
}
.minutes-actions .btn-ghost {
  margin-right: auto;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lobby-body {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding-top: 8px;
  }
  .hero-code {
    font-size: clamp(40px, 12vw, 72px);
  }
  .panel {
    padding: 20px;
  }
  .clock-date {
    display: none;
  }
}
@media (max-width: 720px) {
  .stage {
    padding: 10px 10px 0;
  }
  .waiting-room {
    inset: 10px 10px 0;
  }
  .chat {
    position: fixed;
    inset: 0 0 84px;
    width: auto;
    z-index: 3;
    border-radius: 0;
    border: 0;
  }
  .controls {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 12px 16px;
  }
  .meeting-info,
  .ctl-people #people-count {
    display: none;
  }
  .ctl-people {
    padding: 0;
    width: 46px;
  }
  .control-group {
    gap: 8px;
  }
  .ctl {
    width: 46px;
    height: 46px;
  }
  .ctl-leave {
    width: 58px;
  }
  .split {
    padding-left: 2px;
  }
  .ctl.ctl-chevron {
    width: 22px;
  }
  .controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .captions {
    font-size: 16px;
    width: calc(100% - 20px);
  }
  .captions-notice {
    margin: 8px 10px 0;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .captions-notice.live .live-dot,
  .minutes-working::before {
    animation: none;
  }
}
