/* The Boardroom: after-hours executive floor.
   Ink room, camera-feed tiles, champagne-brass chrome, jade speaking ring. */

:root {
  --ink: #0a0c10;
  --panel: #12161d;
  --panel-2: #171c25;
  --line: rgba(214, 197, 160, 0.12);
  --brass: #c9a96a;
  --brass-dim: #8f7a4e;
  --jade: #46d0a0;
  --text: #e8eaf0;
  --text-dim: #9aa1ae;
  --danger: #d96a6a;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 169, 106, 0.06), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 0px;
  overflow: hidden;
}
body.drawer-open { grid-template-columns: 1fr min(380px, 40vw); }
.topbar { grid-column: 1 / -1; }
.grid, .controls { grid-column: 1; }
.grid { grid-row: 2; }
.controls { grid-row: 3; }

button { font-family: var(--font-ui); cursor: pointer; color: inherit; background: none; border: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 500; letter-spacing: 0.01em;
}
.wordmark em { font-style: italic; color: var(--brass); }
.meeting-meta {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim); flex: none;
  transition: background 0.3s;
}
.live-dot.on { background: var(--jade); box-shadow: 0 0 10px rgba(70, 208, 160, 0.7); }
.clock { color: var(--brass); }
.topbar-actions { display: flex; gap: 8px; }

.ghost {
  padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.ghost:hover { color: var(--text); border-color: var(--brass-dim); }

/* ---------- tile grid ---------- */
.grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(30%, 460px), 1fr));
  gap: 14px;
  padding: 16px 22px;
  overflow-y: auto;
  align-content: center;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.tile::after { /* camera-feed vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.45);
  border-radius: inherit;
}
.tile.speaking {
  border-color: var(--jade);
  box-shadow: 0 0 0 2px rgba(70, 208, 160, 0.55), 0 0 34px rgba(70, 208, 160, 0.14);
}
.tile.thinking { border-color: var(--brass-dim); }
.tile.persona { cursor: pointer; }
.tile.focused {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(201, 169, 106, 0.5), 0 0 30px rgba(201, 169, 106, 0.12);
}
.focus-tag {
  position: absolute; top: 10px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brass); color: #0a0c10;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  display: none; z-index: 2;
}
.tile.focused .focus-tag { display: block; }

.stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* portraits: listening frame + talking frame crossfaded by audio level */
.stage .frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  filter: contrast(1.04) saturate(1.06) brightness(1.01);
}
/* live-video texture: faint animated sensor grain over every portrait */
.tile.persona .stage::after {
  content: ""; position: absolute; inset: -30%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 0.7s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(2.5%, -1.5%); }
  66% { transform: translate(-1.5%, 2.5%); }
  100% { transform: translate(1%, 1%); }
}
.stage .frame.glance { opacity: 0; transition: opacity 0.3s ease; }
.stage .frame.talk { opacity: 0; transition: opacity 0.07s linear; }
.tile.persona .stage { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0) rotate(0deg); }
  50% { transform: scale(1.02) translateY(-1.5px) rotate(0.15deg); }
}
.tile.persona.speaking .stage { animation: headbob 0.9s ease-in-out infinite; }
@keyframes headbob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-1.5px) rotate(-0.25deg); }
  65% { transform: translateY(1px) rotate(0.2deg); }
}

/* fallback monogram when no portrait */
.monogram {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 44px); font-weight: 600;
  color: rgba(10, 12, 16, 0.85);
}

/* user camera */
.tile video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
}
.cam-off {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 13px;
}

/* voice meter: five bars fed by the analyser */
.meter {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; align-items: flex-end; gap: 4px; height: 26px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(8, 10, 13, 0.65); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s;
}
.tile.speaking .meter { opacity: 1; }
.meter span {
  width: 4px; height: 3px; border-radius: 2px;
  background: var(--jade);
  transition: height 0.06s linear;
}

/* name plate */
.plate {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 12px; border-radius: 9px;
  background: rgba(8, 10, 13, 0.72); backdrop-filter: blur(6px);
  max-width: calc(100% - 20px);
}
.plate .pname { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.plate .prole { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* thinking dots */
.status {
  position: absolute; top: 10px; right: 12px;
  font-size: 11px; color: var(--brass);
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s;
  font-family: var(--font-mono);
}
.tile.thinking .status { opacity: 1; animation: blink 1.2s ease-in-out infinite; }
.tile .status.show { opacity: 1; }
@keyframes blink { 50% { opacity: 0.35; } }

#btnMic.active { animation: micpulse 1.7s ease-in-out infinite; }
@keyframes micpulse { 50% { box-shadow: 0 0 0 7px rgba(70, 208, 160, 0.14); } }

/* ---------- tile hover controls, invite tile, bench picker ---------- */
.tile-controls {
  position: absolute; top: 8px; right: 10px;
  display: flex; gap: 6px;
  opacity: 0; transition: opacity 0.15s; z-index: 3;
}
.tile.persona:hover .tile-controls { opacity: 1; }
.tc {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(8, 10, 13, 0.78); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tc:hover { color: var(--text); border-color: var(--brass-dim); }

.tile.invite {
  border-style: dashed; border-color: var(--brass-dim);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tile.invite::after { display: none; }
.tile.invite:hover { background: rgba(201, 169, 106, 0.05); }
.invite-inner { text-align: center; color: var(--brass); }
.invite-plus { font-size: 44px; font-family: var(--font-display); line-height: 1; }
.invite-label { margin-top: 8px; font-size: 13px; letter-spacing: 0.04em; }

.bench-wrap {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 6, 9, 0.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}

/* board map: members plotted by temperament */
.map {
  width: min(680px, 96vw); max-height: 90vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.map-hint { color: var(--text-dim); font-size: 12.5px; }
.plot {
  position: relative; width: 100%; aspect-ratio: 1.3;
  border: 1px solid var(--line); border-radius: 12px;
  background:
    linear-gradient(rgba(214, 197, 160, 0.1), rgba(214, 197, 160, 0.1)) center / 1px 86% no-repeat,
    linear-gradient(rgba(214, 197, 160, 0.1), rgba(214, 197, 160, 0.1)) center / 88% 1px no-repeat,
    var(--ink);
}
.ax {
  position: absolute; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
  pointer-events: none;
}
.ax-top { top: 8px; left: 50%; transform: translateX(-50%); }
.ax-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ax-left { left: 10px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; rotate: 180deg; }
.ax-right { right: 10px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.map-chip {
  position: absolute; transform: translate(-50%, -50%); width: 68px;
  text-align: center; cursor: pointer;
  opacity: 0.5; transition: opacity 0.15s;
}
.map-chip:hover, .map-chip.in { opacity: 1; }
.map-face {
  width: 50px; height: 50px; border-radius: 50%; overflow: hidden; margin: 0 auto;
  border: 2px solid transparent; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.map-chip.in .map-face { border-color: var(--jade); box-shadow: 0 0 14px rgba(70, 208, 160, 0.35); }
.map-face img { width: 100%; height: 100%; object-fit: cover; }
.map-face .monogram { width: 100%; height: 100%; font-size: 15px; }
.map-name { font-size: 10.5px; margin-top: 4px; color: var(--text); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.map .join-start { align-self: center; width: auto; padding: 11px 36px; }
.bench {
  width: min(520px, 94vw); max-height: 80vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.bench-title { font-family: var(--font-display); font-size: 17px; color: var(--brass); padding: 2px 4px 4px; }
.bench-empty { color: var(--text-dim); font-size: 13px; padding: 4px 4px 8px; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bench-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel); cursor: pointer; padding-bottom: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.bench-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.bench-photo {
  aspect-ratio: 1; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2);
}
.bench-photo img { width: 100%; height: 100%; object-fit: cover; }
.bench-photo .monogram { width: 56%; }
.bench-name { font-size: 13.5px; font-weight: 600; padding: 9px 10px 0; }
.bench-role { font-size: 11.5px; color: var(--text-dim); padding: 2px 10px 0; }
.bench .mini { margin-top: 4px; }

.roster-face {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.roster-face img { width: 100%; height: 100%; object-fit: cover; }
.roster-face .monogram { width: 100%; height: 100%; font-size: 13px; }

/* ---------- People roster popover ---------- */
.roster {
  position: fixed; top: 58px; right: 22px; z-index: 45;
  width: 280px; max-height: 70vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 4px;
}
.roster[hidden] { display: none; }
.roster-title { font-family: var(--font-display); font-size: 14px; color: var(--brass); padding: 2px 6px 8px; }
.roster-row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.roster-row:hover { background: rgba(255, 255, 255, 0.04); }
.roster-row input { accent-color: var(--brass); width: 15px; height: 15px; flex: none; }
.roster-name { font-size: 13.5px; font-weight: 600; }
.roster-role { font-size: 11.5px; color: var(--text-dim); }
.roster .mini { margin-top: 8px; }

/* ---------- @mention autocomplete ---------- */
.mention {
  position: fixed; z-index: 60; width: min(340px, 90vw);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 2px;
}
.mention[hidden] { display: none; }
.mention-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.mention-row.sel, .mention-row:hover { background: rgba(201, 169, 106, 0.12); }
.mention-face { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; display: flex; }
.mention-face img { width: 100%; height: 100%; object-fit: cover; }
.mention-face .monogram { width: 100%; height: 100%; font-size: 12px; }
.mention-name { font-size: 13.5px; font-weight: 600; }
.mention-role {
  font-size: 11px; color: var(--text-dim); margin-left: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%;
}

/* ---------- join lobby ---------- */
.join {
  position: fixed; inset: 0; z-index: 70;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(201, 169, 106, 0.08), transparent 60%),
    var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: opacity 0.4s ease;
}
.join.gone { opacity: 0; pointer-events: none; }
.join-card {
  width: min(470px, 94vw);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 34px; display: flex; flex-direction: column; gap: 16px;
  text-align: center; align-items: center;
}
.join-mark { font-size: 30px; }
.join-sub { color: var(--text-dim); font-size: 14px; margin-top: -6px; }
.join-avatars { display: flex; justify-content: center; padding: 4px 0; }
.join-face {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--panel); margin-left: -10px;
}
.join-face:first-child { margin-left: 0; }
.join-toggles { display: flex; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
  font-size: 13px; font-weight: 500; transition: all 0.15s;
}
.chip:hover { border-color: var(--brass-dim); color: var(--text); }
.chip.on { background: rgba(70, 208, 160, 0.14); border-color: var(--jade); color: var(--jade); }
#joinTopic {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-family: var(--font-ui); font-size: 14px;
}
.join-start {
  width: 100%; padding: 14px; border-radius: 12px;
  background: var(--brass); color: #0a0c10;
  font-size: 15px; font-weight: 600; transition: filter 0.15s;
}
.join-start:hover { filter: brightness(1.08); }

/* ---------- controls ---------- */
.controls {
  flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 169, 106, 0.03), transparent);
}
.controls-left, .controls-right { display: flex; gap: 10px; align-items: center; }

.round {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text-dim);
  background: var(--panel);
  transition: all 0.15s;
}
.round:hover { color: var(--text); border-color: var(--brass-dim); }
.round.active { background: var(--jade); border-color: var(--jade); color: #0a0c10; }
.round.danger { color: var(--danger); }
.round.danger:not(:disabled):hover { border-color: var(--danger); }
.round:disabled { opacity: 0.35; cursor: default; }

.composer {
  flex: 1; display: flex; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 5px 5px 18px;
  transition: border-color 0.15s;
}
.composer:focus-within { border-color: var(--brass-dim); }
.composer input {
  flex: 1; background: none; border: none; color: var(--text);
  font-family: var(--font-ui); font-size: 14.5px;
}
.composer input::placeholder { color: var(--text-dim); }
.composer .send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brass); color: #0a0c10;
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.15s;
}
.composer .send:hover { filter: brightness(1.1); }
.composer.ready .send { animation: sendpulse 1.5s ease-in-out infinite; }
@keyframes sendpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 106, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(201, 169, 106, 0.08); }
}

.pill {
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--brass-dim);
  color: var(--brass); font-weight: 600; font-size: 13.5px;
  transition: all 0.15s; white-space: nowrap;
}
.pill:hover { background: rgba(201, 169, 106, 0.1); }

/* ---------- transcript drawer ---------- */
.drawer {
  grid-row: 2 / 5; grid-column: 2;
  width: 100%; min-width: 0;
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
}
@media (max-width: 900px) {
  body, body.drawer-open { grid-template-columns: 1fr 0px; }
  .drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw);
    transform: translateX(100%); transition: transform 0.25s ease; z-index: 40;
  }
  body.drawer-open .drawer { transform: translateX(0); }
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 17px;
}
.drawer-head-actions { display: flex; gap: 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.drawer-empty { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.t-entry .t-who { font-size: 12px; font-weight: 600; color: var(--brass); margin-bottom: 3px; }
.t-cutoff { color: var(--text-dim); font-weight: 400; font-size: 11px; font-style: italic; }
.t-entry .t-who.t-you { color: var(--jade); }
.t-entry .t-text { font-size: 13.5px; line-height: 1.55; color: var(--text); }

/* ---------- settings modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 6, 9, 0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-wrap[hidden] { display: none; }
.modal {
  width: min(860px, 100%); max-height: 88vh;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 18px;
}
.modal-body { overflow-y: auto; padding: 18px 20px; }

.set-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.set-field { display: flex; flex-direction: column; gap: 6px; }
.set-field label { font-size: 12px; color: var(--text-dim); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.set-field input, .set-field select, .set-field textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 9px 11px; font-family: var(--font-ui); font-size: 13.5px;
}
.set-field textarea { resize: vertical; min-height: 64px; }

.p-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  background: var(--panel-2);
}
.p-card .p-avatar {
  width: 96px; height: 96px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.p-card .p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-card .p-fields { display: flex; flex-direction: column; gap: 10px; }
.p-card .p-line { display: flex; gap: 10px; flex-wrap: wrap; }
.p-card .p-line .set-field { flex: 1; min-width: 140px; }
.p-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.mini {
  padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line); color: var(--text-dim);
  transition: all 0.15s;
}
.mini:hover { color: var(--text); border-color: var(--brass-dim); }
.mini.warn:hover { color: var(--danger); border-color: var(--danger); }
.mini:disabled { opacity: 0.45; cursor: default; }
.add-persona { width: 100%; padding: 13px; border: 1px dashed var(--brass-dim); border-radius: 12px; color: var(--brass); font-weight: 600; }
.add-persona:hover { background: rgba(201, 169, 106, 0.07); }

.section-title {
  font-family: var(--font-display); font-size: 15px; color: var(--brass);
  margin: 10px 0 12px; padding-top: 6px;
}

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 13px; color: var(--text);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.2s ease;
}
.toast.err { border-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive / a11y ---------- */
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 10px; gap: 10px; align-content: start; }
  .tile { aspect-ratio: 16 / 11; }
  .controls { flex-wrap: wrap; gap: 10px; padding: 10px 12px 14px; }
  .composer { order: 3; flex-basis: 100%; }
  .meeting-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile.persona .stage, .tile.speaking .stage { animation: none; }
  .tile.persona .stage::after { animation: none; }
  .tile.thinking .status { animation: none; }
  .stage .frame.glance { transition: none; }
}
