@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Syne:wght@700&display=swap");

/* Página pública da vaga e triagem. */

.vaga-public-landing {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  animation: trIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vaga-public-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.vaga-public-outras {
  display: inline-flex;
  align-items: center;
  color: #2563eb;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.38);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.62rem 0.95rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vaga-public-outras:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: #2563eb;
}

.vaga-public-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  min-height: 44px;
  padding: 0.65rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
}

.vaga-public-btn-primary:hover {
  background: #1e40af;
}

.vaga-public-btn-wa {
  display: inline-flex;
  align-items: center;
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

.vaga-public-btn-wa.hidden { display: none; }

.vaga-public-btn-secondary {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.vaga-public-btn-secondary:hover {
  background: rgba(37, 99, 235, 0.06);
}

/* Capa da Vaga */
.vaga-public-capa-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3.5 / 1;
  max-height: 320px;
  background: #f1f5f9;
}

.vaga-public-capa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards Gerais */
.vaga-public-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.05);
}

.vaga-public-title {
  margin: 0 0 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.vaga-public-dates {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.vaga-public-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.vaga-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.vaga-badge--pcd {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

.vaga-badge--action {
  margin-left: auto;
  cursor: pointer;
  background: #ffffff;
  color: #2563eb;
  border-color: #2563eb;
  transition: all 0.12s;
}

.vaga-badge--action:hover {
  background: rgba(37, 99, 235, 0.08);
}

/* Tópicos da Vaga */
.vaga-public-topicos-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vaga-public-topic {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.05);
}

.vaga-public-topic-title,
.vaga-public-section-title {
  margin: 0 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.vaga-public-topic-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.vaga-public-topic-body p {
  margin: 0 0 0.85rem;
}

.vaga-public-topic-body p:last-child {
  margin-bottom: 0;
}

.vaga-public-topic-body ul,
.vaga-public-topic-body ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}

.vaga-public-topic-body li {
  margin-bottom: 0.4rem;
}

/* Etapas do Processo */
.vaga-public-etapas-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.vaga-public-etapa-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.vaga-public-etapa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
  flex-shrink: 0;
}

.vaga-public-etapa-nome {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

/* Redes Sociais */
.vaga-public-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.vaga-public-social-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d97706; /* Cor terrosa/alaranjada */
  text-decoration: none;
}

.vaga-public-social-item:hover {
  text-decoration: underline;
}

/* Footer de Ação */
.vaga-public-footer-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.vaga-public-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.triagem-topbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.triagem-btn--accent-sm {
  background: #2563eb;
  color: #fff;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

:root {
  --tr-page: #f8fafc;
  --tr-text: #1f2937;
  --tr-strong: #0f172a;
  --tr-muted: #475569;
  --tr-border: #e5e7eb;
  --tr-surface: #ffffff;
  --tr-muted-bg: #f1f5f9;
  --tr-primary: #2563eb;
  --tr-cyan: #0f766e;
  --tr-shadow: none;
  --tr-radius: 12px;
  --tr-width: min(920px, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.triagem-body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tr-text);
  background: #f8fafc;
}

.triagem-app {
  width: 100%;
  max-width: var(--tr-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 32px;
}

.triagem-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 4px 14px;
  border-bottom: 1px solid var(--tr-border);
  margin-bottom: 14px;
}

.triagem-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--tr-strong);
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.triagem-brand img {
  border-radius: 9px;
  box-shadow: none;
}

.triagem-empresa {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tr-muted);
  text-align: right;
  max-width: 45%;
  line-height: 1.3;
}

.triagem-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.triagem-panel {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow);
  padding: 28px 28px 24px;
  animation: trIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.triagem-panel:not(.triagem-panel--center) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 820px);
}

.triagem-panel--hero {
  background: #ffffff;
}

.triagem-panel--center {
  text-align: center;
  padding: 2.25rem 1.25rem;
}

@keyframes trIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.triagem-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tr-muted);
}

.triagem-passo-vaga {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #2563eb;
}

.triagem-passo-vaga:empty {
  display: none;
}

.triagem-title {
  margin: 0 0 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--tr-strong);
}

.triagem-title--sm {
  font-size: 1.2rem;
}

.triagem-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tr-muted);
  line-height: 1.45;
}

.triagem-desc {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--tr-border);
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #334155;
  max-height: 140px;
  overflow: auto;
}

.triagem-desc:empty {
  display: none;
}

.triagem-steps-label {
  margin: 1rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tr-muted);
}

.triagem-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.triagem-step-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tr-strong);
}

.triagem-step-chip__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: var(--tr-primary);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.triagem-lgpd {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: var(--tr-muted-bg);
  border: 1px solid var(--tr-border);
  cursor: pointer;
}

.triagem-lgpd input {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--tr-primary);
}

.triagem-lgpd span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--tr-muted);
  text-align: left;
}

.triagem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.triagem-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.triagem-btn--primary {
  background: #2563eb;
  color: #fff;
  min-height: 44px;
  box-shadow: none;
}

.triagem-btn--primary:hover:not(:disabled) {
  background: #1e40af;
}

.triagem-btn--outline {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  color: var(--tr-strong);
}

.triagem-btn--outline:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--tr-primary);
}

.triagem-btn--ghost {
  background: transparent;
  border: 1px solid var(--tr-border);
  color: var(--tr-muted);
  width: auto;
  min-width: 5.5rem;
  padding: 0.65rem 0.9rem;
}

.triagem-btn--ghost:hover:not(:disabled) {
  color: var(--tr-primary);
  border-color: rgba(37, 99, 235, 0.3);
}

.triagem-footnote {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #3e4c59;
  line-height: 1.4;
}

.triagem-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--tr-muted);
}

.triagem-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  border: 1px solid var(--tr-border);
  background: var(--tr-surface);
  color: var(--tr-strong);
  font: inherit;
  font-size: 0.92rem;
}

.triagem-input:focus {
  border-color: #2563eb;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.triagem-input[readonly] {
  background: var(--tr-muted-bg);
  color: var(--tr-muted);
}

.triagem-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
}

.triagem-file {
  display: block;
  width: 100%;
  margin: 0.25rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  color: var(--tr-ink, #0f172a);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
}

.cv-phone {
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.45);
  animation: trIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cv-phone__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.cv-phone__body {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.cv-phone__error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #b91c1c;
}

.cv-phone__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}

.cv-phone__actions .triagem-btn {
  width: auto;
  min-width: 160px;
}

.cv-phone__skip {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv-phone__skip:hover {
  color: #334155;
}

@media (max-width: 520px) {
  .cv-phone__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cv-phone__actions .triagem-btn {
    width: 100%;
  }

  .cv-phone__skip {
    text-align: center;
  }
}

.elim-q {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: #f8fafc;
}

.elim-q__text {
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.elim-q__choices {
  display: flex;
  gap: 8px;
}

.elim-q__choice {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.elim-q__choice.is-sim {
  border-color: #15803d;
  background: #f0fdf4;
  color: #166534;
}

.elim-q__choice.is-nao {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}

.elim-aviso {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #7f1d1d;
}

#step-elim {
  flex: 0 0 auto;
  min-height: 0;
}

#step-elim .triagem-nav {
  margin-top: 8px;
}

#cand-cv-status {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.82rem;
}

.triagem-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  justify-content: flex-end;
  align-items: center;
}

.triagem-nav .triagem-btn--primary {
  width: auto;
  min-width: 7.5rem;
  flex: 1;
}

.triagem-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--tr-primary);
  border-radius: 50%;
  animation: triagem-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes triagem-spin {
  to { transform: rotate(360deg); }
}

.google-login-wrap {
  display: none;
}

.triagem-auth {
  margin: 1rem 0 0.85rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--tr-border);
  background: var(--tr-surface);
}

.triagem-auth__deslogado {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.triagem-auth__logado {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.triagem-auth__nome {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--tr-strong);
}

.triagem-auth__email {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--tr-muted);
}

.triagem-auth__provider {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--tr-muted);
}

.triagem-auth__ou {
  margin: 0.35rem 0;
  font-size: 0.75rem;
  text-align: center;
  color: #3e4c59;
}

.triagem-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.triagem-auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.triagem-auth-btn--outline {
  background: #fff;
  border: 1px solid var(--tr-border);
  color: var(--tr-strong);
}

.triagem-auth-btn--outline:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}

.triagem-auth-btn--apple {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.triagem-auth-btn--apple:hover:not(:disabled) {
  background: #1a1a1a;
}

.triagem-auth-btn__apple-icon {
  flex-shrink: 0;
}

.triagem-auth-btn--secondary {
  background: var(--tr-muted-bg);
  border: 1px solid var(--tr-border);
  color: var(--tr-strong);
}

.triagem-auth-btn--secondary:hover:not(:disabled) {
  background: #e2e8f0;
}

.triagem-auth-btn--ghost {
  background: transparent;
  border: 1px solid var(--tr-border);
  color: var(--tr-muted);
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  width: auto;
  align-self: flex-start;
}

.triagem-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  color: #3e4c59;
  font-size: 0.78rem;
}

.triagem-divider::before,
.triagem-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tr-border);
}

.triagem-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-chat {
  max-height: none;
  overflow-y: auto;
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--tr-border);
  border-radius: 12px;
  flex: 1;
}

.sim-msg {
  margin: 0.45rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sim-msg--bot {
  background: #fff;
  border: 1px solid var(--tr-border);
}

.sim-msg--user {
  background: rgba(37, 99, 235, 0.1);
  margin-left: 1.25rem;
  color: var(--tr-strong);
}

.sim-msg p {
  margin: 0;
}

.sim-msg__who {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tr-muted, #64748b);
}

.sim-msg--user .sim-msg__who {
  color: #2563eb;
}

.live-panel {
  margin-top: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.live-status {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--tr-strong);
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.live-pulse {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #2563eb;
  opacity: 0.55;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.live-pulse.is-connecting {
  animation: live-pulse-breathe 1.2s ease-in-out infinite;
  opacity: 0.7;
}

.live-pulse.is-listening {
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(5, 19, 22, 0.28);
  animation: live-pulse-ring 1.6s ease-out infinite;
}

.live-pulse.is-speaking {
  opacity: 1;
  transform: scale(1.08);
  animation: live-pulse-breathe 0.9s ease-in-out infinite;
}

.live-pulse.is-muted {
  opacity: 0.38;
  filter: grayscale(0.85);
  animation: none;
  transform: none;
}

@keyframes live-pulse-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes live-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(5, 19, 22, 0.28); }
  70% { box-shadow: 0 0 0 18px rgba(5, 19, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 19, 22, 0); }
}

.live-transcript {
  min-height: 180px;
  max-height: none;
  flex: 1;
}

.live-transcript:empty::before {
  content: attr(data-empty);
  display: block;
  padding: 2.4rem 1rem;
  text-align: center;
  color: var(--tr-muted, #64748b);
  font-size: 0.9rem;
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  justify-content: center;
}

.live-actions .triagem-btn--primary {
  flex: 1 1 100%;
  min-width: 0;
}

.live-actions .triagem-btn--ghost {
  flex: 1 1 calc(50% - 0.5rem);
  width: auto;
}

.live-actions .triagem-btn.is-armado {
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
}

.live-err {
  color: #dc2626 !important;
  text-align: center;
  margin-top: 0.65rem;
}

.obrigado-card {
  text-align: center;
}

.fecho {
  width: min(720px, 100%);
  margin: 0.25rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.fecho-hero {
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
  animation: trIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fecho-selo {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.12);
}

.fecho-selo svg {
  width: 1.45rem;
  height: 1.45rem;
}

.fecho-hero h1 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--tr-strong);
}

.fecho-hero .triagem-meta {
  max-width: 38rem;
  margin: 0 auto;
}

.fecho-uni {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  box-shadow: none;
  animation: trIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.fecho-uni:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.fecho-uni-art {
  position: relative;
  height: 6.4rem;
}

.fecho-folha {
  position: absolute;
  left: 0.35rem;
  right: 0.55rem;
  height: 4.6rem;
  border-radius: 8px 12px 10px 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.45);
}

.fecho-folha::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 0.85rem;
  height: 0.28rem;
  border-radius: 99px;
  background: #dbeafe;
  box-shadow: 0 0.62rem 0 #e2e8f0, 0 1.24rem 0 #e2e8f0, 0 1.86rem 0 #bfdbfe;
}

.fecho-folha--a { top: 0.15rem; transform: rotate(-7deg); }
.fecho-folha--b { top: 0.85rem; left: 0.85rem; transform: rotate(4deg); background: #f8fafc; }
.fecho-folha--c { top: 1.45rem; left: 0.2rem; right: 0.2rem; transform: none; }

.fecho-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.fecho-uni h2,
.fecho-lado h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--tr-strong);
}

.fecho-uni p,
.fecho-lado p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fecho-uni-cta {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.fecho-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fecho-lado {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.05rem 1.05rem 1rem;
  background: #fff;
  border: 1px solid var(--tr-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.4);
  text-decoration: none;
  color: inherit;
}

a.fecho-lado:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.fecho-lado .triagem-btn {
  margin-top: 0.9rem;
}

.fecho-lado .triagem-btn + .triagem-btn {
  margin-top: 0.45rem;
}

.fecho-seta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  box-sizing: border-box;
}

.fecho-quiet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding-top: 0.15rem;
}

.fecho-quiet a {
  color: var(--tr-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.fecho-quiet a:hover { color: var(--tr-primary); }

@media (max-width: 640px) {
  .fecho-uni,
  .fecho-grade {
    grid-template-columns: 1fr;
  }

  .fecho-uni-art {
    height: 5.2rem;
  }

  .fecho-uni-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fecho-hero,
  .fecho-uni {
    animation: none;
  }

  .fecho-uni:hover {
    transform: none;
  }
}

.obrigado-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ob-passo {
  text-align: left;
  line-height: 1.5;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--tr-muted-bg);
  border: 1px solid var(--tr-border);
}

.hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .triagem-app {
    padding: 36px 28px 48px;
  }

  .triagem-panel:not(.triagem-panel--center) {
    padding: 36px 40px 32px;
    min-height: min(82vh, 880px);
  }

  .triagem-title {
    font-size: 1.85rem;
  }

  .triagem-title--sm {
    font-size: 1.55rem;
  }
}

@media (max-width: 640px) {
  .triagem-panel {
    min-height: auto;
    padding: 20px 16px 18px;
  }

  .live-transcript,
  .sim-chat {
    min-height: 140px;
    max-height: 42vh;
  }
}

@media (min-width: 480px) {
  .triagem-app {
    padding-top: 28px;
    padding-bottom: 40px;
  }
}

#step-entrevista,
#step-fit {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

#step-entrevista .live-panel,
#step-fit .live-panel {
  flex: 0 0 auto;
  min-height: 0;
}

#step-entrevista .live-transcript,
#step-fit .live-transcript {
  flex: 0 1 auto;
  min-height: 148px;
  max-height: min(280px, 34vh);
  overflow-y: auto;
}

#step-entrevista .live-actions,
#step-fit .live-actions {
  margin-top: 0.85rem;
}

#step-entrevista .live-pulse,
#step-fit .live-pulse {
  width: 72px;
  height: 72px;
  margin-bottom: 0.65rem;
}

.sync-main {
  justify-content: center;
  align-items: center;
  padding-bottom: 8vh;
}

.sync-card {
  width: min(440px, 100%);
  flex: 0 0 auto;
  min-height: 0;
}

.sync-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
}

.sync-mark svg {
  width: 28px;
  height: 28px;
  display: none;
}

.sync-card.is-wait .sync-mark__wait,
.sync-card.is-ok .sync-mark__ok,
.sync-card.is-err .sync-mark__err {
  display: block;
}

.sync-card.is-ok .sync-mark {
  background: #ecfdf5;
  color: #047857;
}

.sync-card.is-err .sync-mark {
  background: #fef2f2;
  color: #b91c1c;
}

.sync-card.is-ok .sync-heading {
  display: none;
}

.sync-card.is-ok #sync-status {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--tr-strong);
}

.sync-card.is-ok #sync-detail:not(:empty) {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

.sync-card .obrigado-actions {
  align-items: stretch;
  text-align: center;
}

.sync-card .triagem-footnote {
  margin: 0;
}

@media (max-width: 520px) {
  #step-entrevista .live-actions,
  #step-fit .live-actions {
    flex-direction: column;
  }

  #step-entrevista .live-actions .triagem-btn--ghost,
  #step-fit .live-actions .triagem-btn--ghost {
    flex: 1 1 auto;
    width: 100%;
  }
}
