/* Candydate · BP — complementa dist/base.css (tokens e componentes da
   ToolsKit, copiados no build). Mesmos tokens; aqui só o que é do BP. */

:root {
  /* Séries dos gráficos: azul Candydate e laranja de contraste (validadas:
     faixa de luminosidade, croma, daltonismo e contraste, nos dois temas). */
  --serie-1: #1690d2;
  --serie-2: #c2410c;
  --g-trilho: #eef1f4;
  --g-grade: #e2e6eb;
  --perigo-soft: #fdeceb;
  --info: #166f9f;
  --info-soft: #eaf6fe;
  --sucesso-soft: #e3f5ec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --serie-1: #2a9bdb;
    --serie-2: #d07035;
    --g-trilho: #262c36;
    --g-grade: #262c36;
    --perigo-soft: rgba(255, 122, 126, 0.14);
    --info: #5cc0f5;
    --info-soft: rgba(40, 170, 240, 0.14);
    --sucesso-soft: rgba(21, 166, 107, 0.16);
  }
}
:root[data-theme="dark"] {
  --serie-1: #2a9bdb;
  --serie-2: #d07035;
  --g-trilho: #262c36;
  --g-grade: #262c36;
  --perigo-soft: rgba(255, 122, 126, 0.14);
  --info: #5cc0f5;
  --info-soft: rgba(40, 170, 240, 0.14);
  --sucesso-soft: rgba(21, 166, 107, 0.16);
}

input:not([type]),
input[type="email"],
input[type="tel"],
input[type="url"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:not([type]):focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Barra superior e abas (3 × 3) */
.topbar__produto {
  padding: 2px 8px;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  color: var(--header-accent);
  font: 700 11px/18px var(--font-body);
  letter-spacing: 0.08em;
}
/* Duas linhas (a quebra é um span inserido pelo sidepanel.js); a fonte
   encolhe com a largura do painel para os rótulos caberem sem uma 3ª linha. */
.tabs--bp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  container-type: inline-size;
}
.tabs--bp .tabs__tab {
  flex: 1 1 auto;
  padding: 0 clamp(2px, calc(2cqi - 4px), 6px);
  font-size: clamp(10px, calc(4.4cqi - 3px), 12px);
  white-space: nowrap;
}
.tabs--bp .tabs__quebra {
  flex-basis: 100%;
  height: 0;
}
.banner--info {
  background: var(--accent-soft);
  color: var(--ink);
}
.carregando {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* Estrutura das funcionalidades */
.modulo > * + *,
.modulo > div > * + * {
  margin-top: 12px;
}
.modulo__topo .lead {
  margin-bottom: 12px;
}
.acoes-modulo {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.acoes-modulo .btn,
.btn .ico {
  gap: 6px;
}
.ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
.ico svg {
  width: 16px;
  height: 16px;
}
.btn--auto {
  width: auto;
}
.acoes-linha,
.filtros {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filtros > * {
  flex: 1;
  min-width: 0;
}
.voltar {
  margin-bottom: 4px;
}
.secao {
  margin: 20px 0 0;
  font: 700 13px/20px var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Indicadores */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.kpis--3 {
  grid-template-columns: repeat(3, 1fr);
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}
.kpi__rotulo {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 16px;
  font-weight: 600;
}
.kpi__valor {
  font: 700 21px/28px var(--font-display);
  letter-spacing: -0.02em;
}
.kpi__detalhe {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 16px;
}
.kpi--perigo {
  border-color: var(--danger);
  background: var(--perigo-soft);
}
.kpi--alerta {
  border-color: #f59e0b;
}

/* Selos (cor + texto, nunca só cor) */
.selo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  font: 600 11.5px/20px var(--font-body);
  white-space: nowrap;
  border: 1px solid transparent;
}
.selo--neutro {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--muted);
}
.selo--sucesso {
  background: var(--sucesso-soft);
  color: var(--success);
}
.selo--alerta {
  background: var(--warning-bg);
  color: var(--warning-ink);
}
.selo--perigo {
  background: var(--perigo-soft);
  color: var(--danger);
}
.selo--info {
  background: var(--info-soft);
  color: var(--info);
}

/* Listas */
.lista {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.card .lista {
  border: 0;
  border-radius: 0;
  margin: 0 -16px -14px;
}
.lista li + li {
  border-top: 1px solid var(--border);
}
.linha-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.linha-item:hover {
  background: var(--bg);
}
.linha-item--estatica {
  cursor: default;
}
.linha-item__principal {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.linha-item__principal .hint {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nota-final {
  font: 700 15px/20px var(--font-display);
}
.vazio {
  padding: 20px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Gráficos */
.grafico {
  margin: 8px 0 0;
}
.g {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.g-txt {
  fill: var(--ink);
  font: 500 11px var(--font-body);
}
.g-rot,
.g-eixo {
  fill: var(--muted);
}
.g-val {
  font-weight: 600;
}
.g-val--peq {
  font-size: 10px;
}
.g-trilho {
  fill: var(--g-trilho);
}
.g-barra,
.g-coluna {
  fill: var(--serie-1);
}
.g-barra--perigo {
  fill: var(--danger);
}
.g-coluna--proj {
  fill: none;
  stroke: var(--serie-1);
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
}
.g-grade {
  stroke: var(--g-grade);
  stroke-width: 1;
}
.g-base {
  stroke: var(--border-strong);
}
.g-linha {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.g-linha--proj {
  stroke-dasharray: 5 4;
}
.g-linha.g-serie-1 {
  stroke: var(--serie-1);
}
.g-linha.g-serie-2 {
  stroke: var(--serie-2);
}
.g-ponto {
  stroke: var(--surface);
  stroke-width: 2;
}
.g-ponto.g-serie-1 {
  fill: var(--serie-1);
}
.g-ponto.g-serie-2 {
  fill: var(--serie-2);
}
.g-ponto--proj {
  fill: var(--surface) !important;
  stroke-width: 1.5;
}
.g-ponto--proj.g-serie-1 {
  stroke: var(--serie-1);
}
.g-ponto--proj.g-serie-2 {
  stroke: var(--serie-2);
}
.g-zona-proj {
  fill: var(--accent-soft);
  opacity: 0.6;
}
.g-proj-txt {
  fill: var(--primary-ink);
  font-style: italic;
}
.g-hit {
  fill: transparent;
}
.g-alvo:hover .g-hit {
  fill: var(--accent-soft);
  opacity: 0.5;
}
.g-legenda {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.g-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g-marca {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.g-marca.g-serie-1 {
  background: var(--serie-1);
}
.g-marca.g-serie-2 {
  background: var(--serie-2);
}
.g--medidor {
  max-width: 180px;
  margin: 0 auto;
}
.g-trilho-arco {
  fill: none;
  stroke: var(--g-trilho);
  stroke-width: 12;
  stroke-linecap: round;
}
.g-arco {
  fill: none;
  stroke: var(--serie-1);
  stroke-width: 12;
  stroke-linecap: round;
}
.g-ponteiro {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}
.g-medidor-valor {
  font: 700 22px var(--font-display);
  fill: var(--ink);
}
.medidores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.medidores .card {
  margin: 0;
  text-align: center;
}

/* Progresso e fases */
.progresso {
  height: 8px;
  border-radius: 999px;
  background: var(--g-trilho);
  overflow: hidden;
}
.progresso span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--serie-1);
}
.fase__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.fase__topo h2 {
  margin: 0;
}
.fase__topo select {
  width: auto;
  max-width: 50%;
}
.tarefas {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.tarefas .consent {
  margin: 0;
  padding: 6px 0;
}
.tarefa__meta {
  display: inline;
  margin: 0;
}

/* Ficha */
.dados {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 12px;
}
.dados dt {
  color: var(--muted);
}
.dados dd {
  margin: 0;
}
.dados--coluna {
  grid-template-columns: 1fr;
}
.dados--coluna dd {
  margin-bottom: 8px;
  font-weight: 600;
}
.anotacao {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.anotacao textarea {
  min-height: 44px;
}
.timeline {
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 2px solid var(--border);
}
.timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 12px 8px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
}
.timeline__item--offboarding::before {
  background: var(--danger);
}
.timeline__item--anotacao::before {
  background: var(--info);
}
.timeline__quando {
  color: var(--muted);
  font-size: 11.5px;
}

/* Avaliação */
.criterio {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.criterio legend {
  margin-bottom: 6px;
  font-weight: 400;
}
.notas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.nota {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.nota input {
  position: absolute;
  opacity: 0;
}
.nota span {
  display: block;
  padding: 6px 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}
.nota input:checked + span {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--on-cta);
}
.nota input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.resumo-avaliacao {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

/* Pulso */
.tipos {
  display: grid;
  gap: 8px;
}
.tipo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tipo:hover {
  border-color: var(--primary);
}
.tipo .hint {
  grid-column: 1 / -1;
  margin: 0;
}
.card--suave {
  background: var(--accent-soft);
  border-color: transparent;
}
.editor__ia {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.editor__ia > input:first-child {
  flex: 1 1 200px;
}
.editor__pergunta {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.editor__topo,
.editor__linha,
.editor__opcao {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.editor__topo select {
  flex: 1;
}
.editor__num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 12px;
}
.editor__linha .consent {
  margin: 0;
  white-space: nowrap;
}
.editor__opcoes {
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.editor textarea {
  min-height: 52px;
  margin-bottom: 6px;
}
.consent--campo {
  align-self: center;
}
.link-publico input {
  margin: 6px 0 8px;
  font-size: 12.5px;
}
.perguntas-resultado {
  margin: 0;
  padding-left: 20px;
}
.perguntas-resultado > li + li {
  margin-top: 14px;
}
.comentarios {
  margin: 4px 0 0;
  padding-left: 16px;
  color: var(--muted);
}
.distribuicao {
  display: flex;
  height: 22px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--g-trilho);
}
.distribuicao__seg {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 22px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
/* Escala divergente 1–5: dois polos e meio neutro. */
.distribuicao__seg--1 { background: #c2410c; }
.distribuicao__seg--2 { background: #e8915a; }
.distribuicao__seg--3 { background: #9297a0; }
.distribuicao__seg--4 { background: #5fbdf3; }
.distribuicao__seg--5 { background: #1690d2; }

/* Gestão */
.analise__resumo {
  font-weight: 600;
  white-space: normal !important;
}
.analise__bloco {
  margin-top: 12px;
}
.analise__bloco p {
  white-space: normal;
}
.recomendacoes {
  margin: 0;
  padding-left: 18px;
}
.recomendacoes li + li {
  margin-top: 8px;
}
.recomendacoes__meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

/* Tabela simples */
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tabela th,
.tabela td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.tabela .num {
  text-align: right;
  white-space: nowrap;
}
.tabela .total td {
  font-weight: 700;
  border-bottom: 0;
}

/* Modal */
.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-hover);
}
.modal--largo {
  width: min(720px, calc(100vw - 16px));
}
.modal::backdrop {
  background: rgba(13, 17, 23, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal__topo {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal__topo .subtitle {
  margin: 0;
}
.modal__corpo {
  padding: 16px;
}

/* Aviso rápido */
.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #383a47;
  border: 1px solid #4a4d5c;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on {
  opacity: 1;
  transform: none;
}

/* Página do Motion */
.motion-pagina main {
  padding: 20px 24px 40px;
}
.motion__grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.motion__grade[hidden] {
  display: none;
}
.motion__tela {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius-xl, 24px);
  background: #0b1520;
}
.motion__tela canvas {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}
.motion__controles {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.motion__controles input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}
.motion__controles select {
  width: auto;
}
.motion__tempo {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.motion__cenas-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.motion__lista {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-height: 75vh;
  overflow-y: auto;
}
.cena {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.cena.is-atual {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}
.cena__ir {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-ink);
  font: 600 12px/18px var(--font-body);
  text-transform: capitalize;
  cursor: pointer;
}
.cena input:not([type]) {
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 13px;
}
.cena__dur {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.cena__dur input {
  width: 70px;
  padding: 4px 6px;
}
@media (max-width: 900px) {
  .motion__grade {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  .kpis--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Configurações › Colaboradores */
.page--larga main {
  max-width: 920px;
}
.passos {
  margin: 0 0 12px;
  padding-left: 20px;
}
.passos li + li {
  margin-top: 4px;
}
.kpis--4 {
  grid-template-columns: repeat(4, 1fr);
  margin: 8px 0 12px;
}
.previa__grupo {
  margin: 0 0 10px;
}
.previa__grupo summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-colaborador {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-colaborador .actions {
  align-items: center;
}
.lista-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.lista-topo .note__title {
  margin: 0;
}
.tabela-rolagem {
  max-height: 480px;
  margin-top: 8px;
  overflow: auto;
}
.tabela--colaboradores th {
  position: sticky;
  top: 0;
  background: var(--surface);
}
.acoes-celula {
  white-space: nowrap;
  text-align: right;
}
.acoes-celula .btn-link + .btn-link {
  margin-left: 10px;
}
@media (max-width: 520px) {
  .kpis--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mais azul Candydate: faixa azul nos indicadores, selos e itens ativos. */
.kpi {
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
}
.kpi--perigo::before {
  background: var(--danger);
}
.topbar__produto {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--primary-ink);
}
.secao {
  color: var(--primary-ink);
}
.linha-item:hover {
  background: var(--accent-soft);
}
.timeline__item::before {
  background: var(--primary);
}
.tipo:hover,
.cena.is-atual {
  border-color: var(--primary);
}
.card--suave {
  background: var(--accent-soft);
}

/* Cartões de indicador: todos do mesmo tamanho em todas as funcionalidades,
   alinhados no topo, sem quebrar palavras no meio. O espaçamento entre blocos
   (.modulo > div > * + *) não vale dentro das grades. */
.kpis,
.medidores {
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.kpis > *,
.medidores > * {
  margin-top: 0 !important;
}
.kpi {
  justify-content: flex-start;
  min-height: 92px;
  min-width: 0;
}
.kpi__rotulo,
.kpi__valor,
.kpi__detalhe {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.kpi__valor {
  font-size: clamp(17px, 5.2vw, 21px);
  line-height: 1.25;
}

/* Gestão: gerar/atualizar e limpar a análise preditiva lado a lado. */
.acoes-ia {
  display: flex;
  gap: 8px;
}
.acoes-ia .btn--primary {
  flex: 1;
}

/* Envio da pesquisa por e-mail: lista de destinatários com rolagem própria. */
.envio__lista {
  max-height: 46vh;
  overflow-y: auto;
  margin: 8px 0 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  list-style: none;
}

.envio__lista--compacta {
  max-height: 30vh;
}

.envio__lista li + li {
  border-top: 1px solid var(--border);
}

.envio__lista .consent {
  margin: 0;
  padding: 8px 0;
}

/* ─── Personalização de perguntas e pontos-chave ─────────────────────────── */

.personalizar__acesso {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.personalizar__secao {
  margin: 0 0 16px;
}
.personalizar__secao > .hint {
  margin-top: -4px;
}
.personalizar__itens {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.personalizar__item {
  padding: 8px 12px;
}
.personalizar__item + .personalizar__item {
  border-top: 1px solid var(--border);
}
.personalizar__item.is-editando {
  background: var(--accent-soft);
}
.personalizar__linha {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.personalizar__texto {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.personalizar__botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0 28px;
}
.personalizar__form {
  margin: 10px 0 4px 28px;
}
.personalizar__fase {
  margin-bottom: 12px;
}
.fase__perguntas {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.filtros--recorte {
  margin: 0 0 12px;
}

/* Times e áreas de atuação (Configurações) */
.estrutura summary {
  cursor: pointer;
  font-weight: 600;
}
.estrutura__blocos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.estrutura__form {
  display: flex;
  gap: 6px;
}
.estrutura__form input {
  flex: 1;
  min-width: 0;
}
.estrutura__lista {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.estrutura__lista li {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 0;
}
.estrutura__lista li .btn-link {
  margin-left: auto;
}

/* ─── Conecta ──────────────────────────────────────────────────────────── */

.subabas {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  border-bottom: 1px solid var(--border);
}
.subaba {
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.subaba[aria-selected="true"] {
  border-bottom-color: var(--primary);
  color: var(--ink);
}
.subaba:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.conecta__filtros {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.conecta__filtros .field {
  margin: 0;
}
.conecta__etapa {
  display: grid;
  gap: 12px;
}
.conecta__texto {
  white-space: pre-line;
}
.salvamento {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.error-inline {
  color: var(--danger);
}

/* Etapas */
.etapas {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}
.etapa button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}
.etapa button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.etapa.is-feita button {
  color: var(--ink);
}
.etapa.is-atual button {
  border-color: var(--primary);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}
.etapa__num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  font-size: 0.7rem;
}
.etapa.is-atual .etapa__num {
  background: var(--primary);
  color: var(--on-cta);
}

/* Preparação */
.participante {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin-bottom: 6px;
}
@media (max-width: 420px) {
  .participante {
    grid-template-columns: 1fr;
  }
}

/* Registro */
.modos {
  display: grid;
  gap: 8px;
}
.modo {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}
.modo:has(input:checked) {
  border-color: var(--primary);
  background: var(--accent-soft);
}
.modo > span {
  display: grid;
  gap: 2px;
}
.gravacao__estado {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.gravacao__ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.gravacao__estado.is-ativa .gravacao__ponto {
  background: var(--danger);
  animation: pulsar 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .gravacao__estado.is-ativa .gravacao__ponto {
    animation: none;
  }
}
@keyframes pulsar {
  50% {
    opacity: 0.35;
  }
}
.gravacao__tempo {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
}
.saude,
.avisos {
  margin: 8px 0;
  padding-left: 18px;
}
.saude .ok {
  color: var(--success);
}
.saude .warn,
.avisos li {
  color: var(--warning-ink);
}
.avisos {
  padding: 8px 12px 8px 28px;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
}
.gravacao__previa {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Revisão */
textarea.transcricao {
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}
.rotulo {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.item-analise {
  display: grid;
  gap: 6px;
  padding: 10px 0;
}
.item-analise + .item-analise {
  border-top: 1px solid var(--border);
}
.evidencias {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}
.evidencias q {
  font-style: italic;
}
.evidencias .selo {
  margin-left: 6px;
}
.acao {
  display: grid;
  gap: 6px;
  padding: 10px 0;
}
.acao + .acao {
  border-top: 1px solid var(--border);
}
.acao__topo {
  display: flex;
  gap: 6px;
}
.acao__campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}
.acao__campos .field {
  margin: 0;
}
.acao-linha {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.previa-email {
  max-height: 30vh;
  overflow: auto;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  font-size: 0.85rem;
  white-space: pre-wrap;
}
.item-analise .editor__linha {
  flex-wrap: wrap;
}
.item-analise .editor__linha > * {
  flex: 1 1 180px;
}
.pedido-exclusao {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
