/* GERADO POR scripts/build.ts A PARTIR DE src/shared/theme.ts — NAO EDITAR */
:root{
  --brand-cobalt: #1E2BC0;
  --brand-cobalt-deep: #161FA0;
  --brand-blue: #5B79C2;
  --brand-blue-deep: #44619F;
  --brand-blue-dark: #33487F;
  --brand-blue-night: #101A38;
  --brand-violet: #6F5BFF;
  --brand-violet-soft: #9B7FE8;
  --brand-magenta: #C04BD0;
  --brand-lime: #ADD84C;
  --brand-lime-soft: #C6E579;
  --brand-lime-glow: #E4F3BC;
  --brand-lime-shade: #9FCB40;
  --brand-cream: #F3F1E9;
  --brand-cream2: #EAE7DB;
  --brand-cream3: #EDEBE1;
  --brand-cream-yellow: #F0E4A6;
  --brand-ink: #242736;
  --brand-ink-soft: #3A3F55;
  --brand-muted: #5F6478;
  --brand-scrim: #172044;
  --brand-night: #0A0B18;
  --brand-night-deep: #06070E;
  --brand-burst-paper: #F7F7F5;
  --brand-burst-card: #FFFFFF;
  --brand-burst-bubble: #FFF0E3;
  --brand-burst-chip: #F1F2F4;
  --brand-burst-orange: #FF7A1A;
  --brand-burst-orange-soft: #FF9245;
  --brand-burst-lime: #B6F03C;
  --brand-burst-orange-ink: #A34300;
  --brand-burst-green-ink: #4C8B00;
  --brand-burst-text: #1A1C22;
  --brand-burst-text-muted: #5A6070;
  --brand-white: #FFFFFF;
  --surface-base: #F3F1E9;
  --surface-raised: #EAE7DB;
  --surface-brand: #44619F;
  --surface-hero-scrim: #2A3B6A;
  --surface-brand-strong: #33487F;
  --surface-night: #0A0B18;
  --surface-lime: #ADD84C;
  --surface-cobalt: #1E2BC0;
  --surface-white: #FFFFFF;
  --surface-burst-base: #F7F7F5;
  --surface-burst-card: #FFFFFF;
  --surface-burst-bubble: #FFF0E3;
  --surface-burst-chip: #F1F2F4;
  --surface-burst-orange: #FF7A1A;
  --surface-burst-lime: #B6F03C;
  --text-strong: #242736;
  --text: #3A3F55;
  --text-muted: #5F6478;
  --text-accent: #1E2BC0;
  --text-success: #276B45;
  --text-alert: #B3261E;
  --on-brand: #FFFFFF;
  --on-brand-muted: #DCE3F6;
  --on-brand-accent: #E4F3BC;
  --on-brand-warn: #F0E4A6;
  --on-night: #FFFFFF;
  --on-night-muted: #B9BEDA;
  --on-night-accent: #C6E579;
  --on-lime: #FFFFFF;
  --on-cobalt: #FFFFFF;
  --on-white: #242736;
  --on-burst: #1A1C22;
  --on-burst-muted: #5A6070;
  --on-burst-accent: #A34300;
  --on-burst-fill: #1A1C22;
  --border: #EAE7DB;
  --border-strong: #D9D5C6;
  --border-on-brand: rgba(243,241,233,.22);
  --border-on-night: rgba(255,255,255,.16);
  --border-on-burst: rgba(26,28,34,.12);
  --hero-gradient: linear-gradient(168deg, #5B79C2 0%, #44619F 46%, #33487F 100%);
  --lime-gradient: linear-gradient(135deg, #C6E579 0%, #ADD84C 55%, #9FCB40 100%);
  --shadow-brand: 0 24px 50px rgba(51,72,127,0.16);
  --shadow-brand-lg: 0 34px 70px rgba(51,72,127,0.3);
  --shadow-lime: 0 10px 26px rgba(173,216,76,0.38);
  --shadow-lime-hover: 0 16px 34px rgba(173,216,76,0.5);
  --radius: 22px;
  --radius-lg: 26px;
  --maxw: 1180px;
}

/* Demonstração de voz (/demo/voz) — tema claro elevesse, autónomo do CSS do site. */

* { box-sizing: border-box; }

body.voz {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-base);
  color: var(--text);
  font-family: "Fredoka", system-ui, sans-serif;
}

.vz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.vz-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-strong);
  text-decoration: none;
}
.vz-brand .dot { color: var(--brand-lime); }
.vz-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-raised);
  border-radius: 999px;
  padding: 6px 14px;
}

.vz-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 60px;
}

.vz-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--text-strong);
  margin: 8px 0 6px;
}
.vz-hero .hl { color: var(--brand-blue-deep); }
.vz-sub { color: var(--text-muted); margin: 0 0 22px; }

.vz-card {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brand);
  padding: 20px;
}

.vz-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vz-controls label { font-weight: 600; color: var(--text-strong); }
.vz-controls select {
  flex: 1;
  min-width: 130px;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-white);
  font: inherit;
  color: var(--text);
}
/* o nome da voz vem com a descrição atrás: precisa de mais largura que o cenário */
#vz-voice { max-width: 260px; }
/* durante a chamada o cenário e a voz ficam fixos — a sessão já abriu com eles */
.vz-controls select:disabled { opacity: 0.6; cursor: default; }
.vz-call,
.vz-mic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  background: var(--lime-gradient);
  box-shadow: var(--shadow-lime);
}
.vz-call.live { background: #f5b5b0; box-shadow: none; }
.vz-mic { background: var(--surface-raised); box-shadow: none; }
.vz-mic.muted { background: var(--brand-cream-yellow); }
.vz-call:disabled,
.vz-mic:disabled { opacity: 0.5; cursor: default; }

.vz-status {
  margin: 12px 2px 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.vz-msgs {
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.vz-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 6px 0;
}
.vz-row { display: flex; }
.vz-row.user { justify-content: flex-end; }
.vz-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface-white);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vz-row.user .vz-bubble {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
  color: var(--on-brand);
}

.vz-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.vz-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface-white);
}
.vz-form input:disabled { background: var(--surface-raised); }
.vz-form button {
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-blue-deep);
  color: var(--on-brand);
}
.vz-form button:disabled { opacity: 0.5; cursor: default; }

.vz-note {
  margin: 14px 2px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- seletor de vozes: ouvir cada uma a dizer a frase de abertura ---- */
.vz-vozes { margin-top: 20px; }
.vz-vozes-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--text-strong);
}
.vz-vozes-head p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.vz-vozes-filtro {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.vz-filtro-btn {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--surface-white);
  color: var(--text);
}
.vz-filtro-btn.ativo {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
  color: var(--on-brand);
}
.vz-vozes-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.vz-vozes-vazio {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.vz-voz {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-base);
}
.vz-voz.ativa { border-color: var(--brand-blue-deep); box-shadow: 0 0 0 2px var(--brand-blue-deep) inset; }
.vz-voz.indisponivel { opacity: 0.55; }
.vz-voz-play {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  background: var(--lime-gradient);
  box-shadow: var(--shadow-lime);
}
.vz-voz-play.a-tocar { background: var(--brand-cream-yellow); box-shadow: none; }
.vz-voz-play:disabled { opacity: 0.5; cursor: progress; }
.vz-voz.indisponivel .vz-voz-play:disabled { cursor: not-allowed; }
.vz-voz-info { flex: 1; min-width: 0; }
.vz-voz-nome { font-weight: 600; color: var(--text-strong); }
.vz-voz-nota { font-size: 0.8rem; color: var(--text-muted); }
.vz-voz-marca {
  color: var(--accent-strong);
  font-size: 0.85rem;
  line-height: 1;
  cursor: default;
}
.vz-voz-usar {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--surface-white);
  color: var(--text);
}
.vz-voz.ativa .vz-voz-usar {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
  color: var(--on-brand);
  cursor: default;
}
.vz-voz-usar:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 560px) {
  .vz-msgs { height: 300px; }
  .vz-controls { flex-wrap: wrap; }
}
