/* =====================================================================
   Genthe Seleção · sistema de design "Paisagem"
   Céu azul no topo, chão verde-claro, a onda da marca como horizonte.
   Camadas: 1 tokens · 2 base · 3 layout · 4 componentes · 5 telas
            6 componentes novos (onda-funil, sua-vez) · 7 utilitários
            8 responsivo · 9 movimento reduzido
   Guia completo: design/SISTEMA.md
   ===================================================================== */

@font-face { font-family: 'Nunito'; src: url(/fonts/nunito.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }

/* ---------------------------------------------------------------------
   1. TOKENS
   Contrastes calculados (WCAG 2.x). Texto principal sempre --marinho,
   texto de apoio sempre --tinta-2 (>= 5,2:1 em todas as superfícies claras).
   --------------------------------------------------------------------- */
:root {
  /* marca */
  --azul: #38689F;          /* menu; branco 5,8:1 */
  --azul-esc: #2F5C8C;      /* hover do azul; branco 6,9:1 */
  --azul-fundo: #285080;    /* active do azul */
  --verde: #8FC055;         /* onda clara; marinho 5,6:1 */
  --folha: #70A838;         /* onda escura (sem texto em cima) */
  --verde-btn: #3E7D22;     /* botão principal; branco 5,05:1 */
  --verde-btn-h: #336A1B;   /* hover; branco 6,5:1 */
  --floresta: #2E6A19;      /* painel "Sua vez"; branco 6,6:1 */
  --floresta-esc: #24511A;  /* hover na fila; branco 9,3:1 */
  --menta: #DCEFC8;         /* texto de apoio no verde; 5,4:1 */
  --marinho: #0B3A5B;       /* texto principal */
  --tinta-2: #33506B;       /* texto de apoio: céu 6,1 · chão 6,7 · chip 5,8 · cartão 7,8 */
  --link: #1F4E80;          /* links: céu 6,3 · chão 6,8 · cartão 7,9 */

  /* superfícies (nada branco) */
  --ceu: #CBDFF1;           /* topo de toda tela do painel */
  --ceu-2: #B6D2EC;         /* hover no céu */
  --nuvem: #E6F0F9;         /* selos e placas sobre o céu */
  --papel: #F8FBFD;         /* campos de formulário */
  --chao: #DCEBCB;          /* área de trabalho */
  --chao-2: #C8DDB3;        /* chips, segmentos */
  --chao-3: #BBD5A2;        /* hover dos chips */
  --coluna: #EAF3E1;        /* colunas do quadro, linhas em hover */
  --cartao: #F3F8EE;        /* cartões e tabelas (frio, neutro) */
  --cartao-2: #E4EEDA;      /* cabeçalho de tabela, faixas internas */
  --opcao: #F9FBF5;         /* opções de resposta dentro de cartões */
  --contorno: #A9C394;      /* contorno de cartão em espera */
  --borda: #C5D9B0;         /* borda de cartão/tabela */
  --linha: #DCE7D0;         /* divisórias internas */
  --campo-borda: #6F8AA0;   /* borda de campo: 3,4:1 (componente de UI) */
  --creme: #FFF8EA;         /* o que pede ação; marinho 11,2:1 */
  --creme-2: #F1E8D4;       /* chips dentro do creme */
  --creme-tinta: #4B5A66;   /* apoio no creme 6,7:1 */
  --encerrado: #DDE3D8;     /* cartão encerrado; apoio 6,4:1 */

  /* estados (fundo próprio, contraste não depende da superfície) */
  --ok-fg: #2C5E16;   --ok-bg: #E1F0CF;   --ok-bd: #A9CF85;   /* 6,5:1 */
  --info-fg: #1F4E80; --info-bg: #DCE7F3; --info-bd: #A9C3DE; /* 6,8:1 */
  --warn-fg: #6B4A0A; --warn-bg: #F6E7C8; --warn-bd: #DDBE7A; /* 6,6:1 */
  --bad-fg: #9B1C1C;  --bad-bg: #F8E1DE;  --bad-bd: #E6A69E;  /* 6,5:1 */
  --alerta-fg: #8A2E0E; --alerta-bg: #F6E0D6;                 /* 6,7:1 */
  --perigo: #A3261B;  /* texto de botão de perigo: 7:1 */

  /* tipografia */
  --fonte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: Consolas, 'Cascadia Mono', 'Courier New', monospace;
  --t-12: 12.5px; --t-13: 13.5px; --t-14: 14px; --t-15: 15px; --t-16: 16px;
  --t-17: 17px; --t-20: 20px; --t-24: 24px; --t-28: 28px; --t-32: 32px;

  /* espaços (base 4) */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 20px; --e-6: 24px; --e-7: 28px; --e-8: 32px; --e-10: 40px; --e-12: 48px;
  --pag-x: 28px;      /* respiro lateral da página */
  --menu-l: 216px;    /* largura do menu */

  /* raios */
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 26px; --r-pill: 999px;

  /* sombras (tinta marinho, nunca preto) */
  --s-1: 0 1px 2px rgba(11, 58, 91, .07), 0 4px 14px rgba(11, 58, 91, .06);
  --s-2: 0 8px 20px rgba(11, 58, 91, .14);
  --s-3: 0 14px 34px rgba(11, 58, 91, .22);
  --s-verde: 0 18px 40px rgba(20, 60, 10, .28);
  --anel-acao: 0 0 0 2px var(--verde-btn);

  /* movimento: ease-out exponencial, sem bounce */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --d-1: 150ms; --d-2: 200ms; --d-3: 260ms; --d-4: 300ms;

  /* onda da marca (horizonte céu -> chão) */
  --onda-horizonte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 30' preserveAspectRatio='none'%3E%3Cpath d='M0 12C200 0 420 2 620 11S1020 26 1240 12 1500 6 1600 12V30H0Z' fill='%238FC055'/%3E%3Cpath d='M0 20C260 10 520 30 800 19S1320 10 1600 20V30H0Z' fill='%2370A838'/%3E%3Cpath d='M0 26C400 21 800 31 1200 25S1500 24 1600 26V30H0Z' fill='%23DCEBCB'/%3E%3C/svg%3E");
  --onda-chao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8C300 1 600 14 900 7S1400 2 1600 8V16H0Z' fill='%23DCEBCB'/%3E%3C/svg%3E");
  --onda-creme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 56' preserveAspectRatio='none'%3E%3Cpath fill='%238FC055' d='M0 30C80 6 160 6 240 26S360 44 400 22V56H0Z'/%3E%3Cpath fill='%2370A838' d='M0 40C90 26 170 54 260 38S370 28 400 40V56H0Z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 400 var(--t-16)/1.5 var(--fonte);
  color: var(--marinho); background: var(--chao);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--marinho); font-weight: 800; line-height: 1.2; }
h1 { font-size: var(--t-28); margin: 0 0 var(--e-1); letter-spacing: -.01em; }
h2 { font-size: var(--t-20); margin: var(--e-8) 0 var(--e-3); }
h3 { font-size: var(--t-17); margin: 0 0 var(--e-2); }
h2[id], h3[id], section[id] { scroll-margin-top: 20px; }
p { margin: 0 0 var(--e-3); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color var(--d-1) var(--ease), text-decoration-color var(--d-1) var(--ease); }
a:hover { color: var(--marinho); }
strong, b { font-weight: 800; }
small { font-size: var(--t-13); }
ul, ol { padding-left: 22px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--marinho); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--verde); color: var(--marinho); }
kbd { font: 700 12px var(--mono); background: var(--cartao); border: 1px solid var(--contorno); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--marinho); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--marinho); color: #fff; padding: 10px 16px; border-radius: var(--r-s); font-weight: 800; text-decoration: none; }
.skip:focus { left: 16px; color: #fff; outline-color: var(--verde); }

/* ---------------------------------------------------------------------
   3. LAYOUT
   3.1 Painel: menu lateral azul + conteúdo com céu e chão
   --------------------------------------------------------------------- */
body.app { display: grid; grid-template-columns: var(--menu-l) minmax(0, 1fr); min-height: 100vh; background: var(--ceu); }

aside.rail {
  position: sticky; top: 0; height: 100vh; z-index: 30;
  display: flex; flex-direction: column;
  padding: 18px 0 18px 14px;
  background: var(--azul); color: #fff;
}
/* placa do logo: mostra o logo inteiro (logo-genthe.png). Se o HTML ainda trouxer o favicon, a placa usa o logo como fundo. */
aside.rail .brand {
  display: block; margin: 0 14px 22px 0; padding: 10px 12px;
  background: var(--nuvem); border-radius: 18px; text-decoration: none;
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
aside.rail .brand img { display: block; width: 100%; height: auto; }
aside.rail .brand:has(img[src*="favicon"]) { height: 76px; background: var(--nuvem) url(/img/logo-genthe.png) center / auto 54px no-repeat; }
aside.rail .brand img[src*="favicon"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
aside.rail .brand:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(4, 28, 46, .25); }
aside.rail .brand:focus-visible { outline-color: #fff; outline-offset: 3px; }

aside.rail nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
aside.rail nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 16px 0 0 16px;
  color: #E8F1FA; font-weight: 700; font-size: var(--t-15); text-decoration: none;
  transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), translate var(--d-3) var(--ease);
}
aside.rail nav a .ic { width: 21px; height: 21px; }
aside.rail nav a:hover { color: #fff; background: var(--azul-esc); translate: 4px 0; }
aside.rail nav a:active { background: var(--azul-fundo); }
aside.rail nav a:focus-visible { outline-color: #fff; outline-offset: -3px; }
/* item ativo: o céu entra no menu num bojo de onda (cantos côncavos acima e abaixo) */
aside.rail nav a[aria-current] { background: var(--ceu); color: var(--marinho); translate: 0 0; font-weight: 800; }
aside.rail nav a[aria-current] .ic { color: var(--verde-btn); }
aside.rail nav a[aria-current]:focus-visible { outline-color: var(--marinho); }
aside.rail nav a[aria-current]::before,
aside.rail nav a[aria-current]::after { content: ""; position: absolute; right: 0; width: 26px; height: 26px; pointer-events: none; }
aside.rail nav a[aria-current]::before { top: -26px; background: radial-gradient(circle at 0 0, transparent 25.5px, var(--ceu) 26px); }
aside.rail nav a[aria-current]::after { bottom: -26px; background: radial-gradient(circle at 0 100%, transparent 25.5px, var(--ceu) 26px); }
aside.rail nav a.sair { margin-top: auto; }

body.app .conteudo { position: relative; min-width: 0; min-height: 100vh; background: var(--ceu); overflow: clip; }

main { position: relative; isolation: isolate; max-width: 1320px; margin: 0 auto; padding: var(--e-6) var(--pag-x) 72px; }
main.narrow { max-width: 720px; }

/* 3.2 Céu e chão.
   Todo bloco de topo (.hero, .ceu-grade, .onda-funil) fica no céu. O ÚLTIMO deles pinta
   o chão verde dali até o fim da página, com a onda da marca como horizonte. */
.hero, .ceu-grade, .onda-funil { position: relative; }
.hero::after, .ceu-grade::after, .onda-funil::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 100%; left: -100vw; right: -100vw; height: 100000px;
  background: var(--onda-horizonte) center top / 1600px 30px repeat-x, linear-gradient(var(--chao), var(--chao)) 0 29px / 100% 100% no-repeat;
}
.onda-funil::after { background: var(--chao); }
.ceu-grade .hero::after,
.hero:has(~ .ceu-grade)::after,
.hero:has(~ .onda-funil)::after,
.ceu-grade:has(~ .onda-funil)::after { display: none; }

/* 3.3 Páginas públicas (candidato): faixa de céu com o logo, onda e chão */
header.pub { background: var(--ceu); text-align: center; padding: 22px 16px 0; }
header.pub img { display: inline-block; width: 168px; height: auto; padding: 10px 16px; background: var(--nuvem); border-radius: 18px; box-shadow: var(--s-1); }
header.pub .onda { height: 40px; margin: 18px -16px 0; background: var(--onda-horizonte) center bottom / 100% 100% no-repeat; }
body:not(.app) { display: flex; flex-direction: column; }
body:not(.app) main { width: 100%; flex: 1 0 auto; padding-top: var(--e-6); }
footer.pub { background: var(--marinho); color: #CFE3F0; font-size: var(--t-14); text-align: center; padding: 22px 16px 26px; }
footer.pub strong { color: #fff; }
footer.pub .v { color: var(--verde); font-weight: 700; }

/* 3.4 Entrada (login) */
.entrada { min-height: 100vh; display: flex; flex-direction: column; background: var(--ceu); }
.entrada .meio { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px 24px; max-width: none; }
.entrada .onda { height: 110px; background: var(--onda-horizonte) center bottom / 100% 100% no-repeat, linear-gradient(var(--chao), var(--chao)) 0 100% / 100% 8px no-repeat; }
.entrada .card { width: 100%; max-width: 420px; padding: 32px 30px 30px; background: var(--creme); border: 0; border-radius: var(--r-xl); box-shadow: var(--s-3); animation: subir var(--d-4) var(--ease) backwards; }
.entrada .logo { display: block; margin: 0 auto 20px; width: 170px; height: auto; }
.entrada h1 { text-align: center; font-size: var(--t-24); }
.entrada .sub { text-align: center; color: var(--creme-tinta); margin-bottom: var(--e-5); }
.entrada label { margin-top: 0; }

/* ---------------------------------------------------------------------
   4. COMPONENTES
   4.1 Topo da página (.hero) — fica no céu, sem caixa
   --------------------------------------------------------------------- */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--e-4) var(--e-6); margin: 0 0 40px; padding: var(--e-1) 0 var(--e-2); }
.hero > div:first-child { min-width: 0; flex: 1 1 360px; }
.hero h1 { font-size: var(--t-32); margin: 2px 0 6px; }
.hero .sub { margin: 0; font-size: var(--t-17); font-weight: 600; color: var(--tinta-2); }
.hero .sub strong { display: inline-flex; align-items: center; gap: 6px; background: var(--verde-btn); color: #fff; border-radius: var(--r-pill); padding: 2px 12px; font-weight: 800; }
.hero .eyebrow { color: var(--tinta-2); font-weight: 700; font-size: var(--t-15); }
.hero .eyebrow::first-letter { text-transform: uppercase; }
.hero.slim { align-items: center; margin-bottom: 40px; }
.hero.slim h1 { font-size: var(--t-28); }
.hero.slim .sub { font-size: var(--t-16); max-width: 72ch; }
.hero.slim .busca { flex: 0 1 380px; }
.eyebrow { margin: 0; font-size: var(--t-14); font-weight: 700; color: var(--tinta-2); }

.novos { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 4px 14px; border-radius: var(--r-pill); background: var(--verde); color: var(--marinho); font-size: var(--t-13); font-weight: 800; animation: subir var(--d-4) var(--ease) backwards; }

/* filtros do topo */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-3); margin: 0 0 var(--e-5); }
.hero .filters { margin: 0; }
.filters > div { min-width: 240px; }
.filters > div > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters select { min-height: 44px; border-radius: var(--r-pill); padding: 0 40px 0 16px; font-weight: 700; }
/* "Mostrar encerrados" vira um interruptor */
.filters .chk, label.opt.chk { display: inline-flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; padding: 6px 14px 6px 8px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: var(--t-14); font-weight: 700; color: var(--marinho); cursor: pointer; transition: background-color var(--d-2) var(--ease); }
.filters .chk:hover { background: var(--ceu-2); }
.filters .chk:has(input:checked) { background: transparent; }
.filters .chk input { appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 24px; margin: 0; flex: none; border-radius: var(--r-pill); background: #5E7489; cursor: pointer; transition: background-color var(--d-2) var(--ease); }
.filters .chk input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: translate var(--d-3) var(--ease); }
.filters .chk input:checked { background: var(--verde-btn); }
.filters .chk input:checked::after { translate: 16px 0; }

/* 4.2 Busca */
.busca { position: relative; flex: 1 1 100%; }
.busca input[type=search], .busca input { width: 100%; min-height: 48px; padding: 10px 18px 10px 48px; border-radius: var(--r-pill); font-weight: 600; }
.busca-i { position: absolute; left: 17px; top: 50%; translate: 0 -50%; display: grid; color: var(--tinta-2); pointer-events: none; }
.busca:focus-within .busca-i { color: var(--marinho); }

/* 4.3 Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--r-pill);
  font: 800 var(--t-15)/1.2 var(--fonte); text-decoration: none; text-align: center;
  background: var(--azul); color: #fff; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease), color var(--d-2) var(--ease);
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { background: var(--azul-esc); color: #fff; box-shadow: 0 6px 16px rgba(56, 104, 159, .28); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn.ok { background: var(--verde-btn); }
.btn.ok:hover { background: var(--verde-btn-h); box-shadow: 0 6px 16px rgba(62, 125, 34, .3); }
.btn.sec { background: transparent; color: var(--marinho); box-shadow: inset 0 0 0 1.5px rgba(11, 58, 91, .45); }
.btn.sec:hover { background: rgba(11, 58, 91, .08); color: var(--marinho); box-shadow: inset 0 0 0 1.5px var(--marinho); }
.btn.danger { background: transparent; color: var(--perigo); box-shadow: inset 0 0 0 1.5px rgba(163, 38, 27, .55); }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad-fg); box-shadow: inset 0 0 0 1.5px var(--perigo); }
.btn[disabled], .btn[aria-disabled="true"] { background: #CFD8DF; color: var(--tinta-2); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.sec[disabled], .btn.danger[disabled] { background: transparent; color: var(--tinta-2); box-shadow: inset 0 0 0 1.5px rgba(51, 80, 107, .35); }
.btn.mini { min-height: 36px; padding: 6px 14px; font-size: var(--t-14); }
.btn.mini .ic { width: 16px; height: 16px; }
.btn.full { width: 100%; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); margin-top: var(--e-3); }
.acts form { margin: 0; }

/* ações rápidas (quadro, barra fixa, Sua vez) */
.qa {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 13px/1.2 var(--fonte); border: 0; border-radius: var(--r-pill); padding: 7px 12px;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.qa .ic { width: 15px; height: 15px; }
.qa:active { transform: scale(.96); }
.qa-ok { background: var(--verde-btn); color: #fff; }
.qa-ok:hover { background: var(--verde-btn-h); color: #fff; box-shadow: 0 4px 12px rgba(62, 125, 34, .3); }
.qa-bad { background: transparent; color: var(--perigo); box-shadow: inset 0 0 0 1.5px rgba(163, 38, 27, .5); }
.qa-bad:hover { background: var(--bad-bg); color: var(--bad-fg); }
.qa[disabled] { background: #CFD8DF; color: var(--tinta-2); box-shadow: none; cursor: not-allowed; }

/* 4.4 Selos, chips e notas */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 11px; border-radius: var(--r-pill); background: var(--nuvem); color: var(--marinho); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; line-height: 1.5; }
a.badge:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.b-ok { background: var(--ok-bg); color: var(--ok-fg); }
.b-info { background: var(--info-bg); color: var(--info-fg); }
.b-bad { background: var(--bad-bg); color: var(--bad-fg); }
/* pede ação = selo "Sua vez": verde cheio com a folha da marca */
.b-acao { background: var(--verde-btn); color: #fff; font-weight: 800; padding-left: 8px; }
.b-acao::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--verde); border-radius: 0 60% 0 60%; }
/* em tabelas e listas, "pede ação" vira aviso quente (falta algo), sem o selo verde */
td .b-acao, .help .b-acao, .fic-st .b-acao:only-child:not(:first-child) { background: var(--warn-bg); color: var(--warn-fg); padding-left: 11px; }
td .b-acao::before { content: none; }
h2 .badge { margin-left: 6px; vertical-align: 2px; background: var(--chao-2); color: var(--marinho); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; background: var(--chao-2); color: var(--marinho); font-size: var(--t-12); font-weight: 700; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.c-gold, .c-ok { background: var(--ok-bg); color: var(--ok-fg); }
.c-gold .ic { fill: var(--folha); stroke: var(--ok-fg); }
.c-mid { background: var(--info-bg); color: var(--info-fg); }
.c-low { background: var(--alerta-bg); color: var(--alerta-fg); }

.av { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: #fff; font-weight: 800; font-size: 15px; }
.av.sm { width: 32px; height: 32px; font-size: 12.5px; }
.av.gg { width: 68px; height: 68px; font-size: 24px; box-shadow: 0 0 0 4px var(--nuvem); }
.av1 { background: var(--azul); } .av2 { background: var(--verde-btn); } .av3 { background: var(--marinho); }
.av4 { background: var(--verde); color: var(--marinho); } .av5 { background: var(--floresta-esc); }

/* 4.5 Cartões, avisos, listas de dados */
.card { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--r-l); padding: 22px 24px; margin-bottom: var(--e-4); box-shadow: var(--s-1); }
.card > h3:first-child { margin-top: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-h h3 { margin: 0; }
details.card > summary, details > summary { cursor: pointer; border-radius: 8px; }
details > summary:hover { color: var(--link); }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--e-5); align-items: start; }
.grid { display: grid; gap: 14px; }

.msg { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin: 0 0 var(--e-4); border-radius: var(--r-m); border: 1.5px solid transparent; font-size: var(--t-15); line-height: 1.5; transition: opacity var(--d-4) var(--ease), max-height var(--d-4) var(--ease), margin var(--d-4) var(--ease), padding var(--d-4) var(--ease); }
.msg .ic { margin-top: 1px; }
.msg a { color: inherit; font-weight: 800; }
.msg.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.msg.bad { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-bd); }
.msg.info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }
.msg.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-bd); }
.msg[data-auto] { max-height: 300px; }
.msg.sai { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; }
p.msg { margin: 0 0 var(--e-3); }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--tinta-2); font-weight: 600; }
dl.kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

.help { font-size: var(--t-14); color: var(--tinta-2); margin: -2px 0 var(--e-2); font-weight: 500; }
.help .ic { width: 16px; height: 16px; vertical-align: -3px; }
.sub { color: var(--tinta-2); margin: 0 0 var(--e-6); font-weight: 500; }
.req { color: var(--perigo); font-weight: 800; }
.mais { margin: 8px 0 0; color: var(--tinta-2); font-size: var(--t-14); }

.ans { background: rgba(11, 58, 91, .06); border-radius: var(--r-s); padding: 10px 14px; margin: 6px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ans.certo { background: var(--ok-bg); }
.ans.errado { background: var(--bad-bg); }

/* link "Voltar" no topo das páginas internas */
main > p > a:has(> .ic:first-child) { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px 5px 8px; margin-left: -8px; border-radius: var(--r-pill); font-weight: 800; text-decoration: none; color: var(--marinho); transition: background-color var(--d-2) var(--ease); }
main > p > a:has(> .ic:first-child):hover { background: rgba(11, 58, 91, .08); }
main > p > a:has(> .ic:first-child) .ic { width: 18px; height: 18px; transition: translate var(--d-2) var(--ease); }
main > p > a:has(> .ic:first-child):hover .ic { translate: -3px 0; }

/* 4.6 Formulários */
label { display: block; font-weight: 800; margin: var(--e-4) 0 6px; color: var(--marinho); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
input[type=datetime-local], input[type=date], input[type=time], input[type=tel], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--campo-borda); border-radius: 12px;
  font: 500 var(--t-16)/1.4 var(--fonte); color: var(--marinho); background: var(--papel);
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-2) var(--ease), background-color var(--d-1) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--marinho); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marinho); box-shadow: 0 0 0 3px rgba(56, 104, 159, .35); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--marinho); outline-offset: 1px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #4F6B80; opacity: 1; font-weight: 500; }
input[readonly], textarea[readonly] { background: #E9EEF2; }
input[disabled], select[disabled], textarea[disabled] { background: #E2E8EC; color: var(--tinta-2); cursor: not-allowed; }
select { cursor: pointer; }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.code { font: 14px/1.5 var(--mono); min-height: 260px; }
input[type=checkbox], input[type=radio] { accent-color: var(--verde-btn); width: 18px; height: 18px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

/* opção de resposta (rádio/caixa) em cartão inteiro clicável */
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 8px 0; border: 1.5px solid var(--contorno); border-radius: var(--r-m); background: var(--opcao); font-weight: 600; cursor: pointer; transition: border-color var(--d-1) var(--ease), background-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.opt:hover { border-color: var(--azul); background: #FDFEFB; }
.opt input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.opt:has(input:checked) { border-color: var(--verde-btn); background: var(--ok-bg); box-shadow: 0 0 0 1px var(--verde-btn); }
.opt:has(input:focus-visible) { outline: 3px solid var(--marinho); outline-offset: 2px; }
.opt input:focus-visible { outline: none; }
.opt:has(input:disabled) { cursor: not-allowed; opacity: .7; }

.q { padding: 20px 0; border-top: 1px solid var(--linha); }
.q:first-of-type { border-top: 0; }
.q legend, .q .qt { display: block; margin: 0 0 8px; font-size: var(--t-17); font-weight: 800; color: var(--marinho); }
fieldset.q { padding-top: 20px; }
fieldset.q legend { float: left; width: 100%; }
fieldset.q legend + * { clear: both; }

.campos2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 0 18px; }
.campos2 label { margin: var(--e-3) 0 6px; }
.campos2 > div > label { margin-top: var(--e-3); }

details.avanc { margin-top: 18px; border: 1.5px dashed var(--contorno); border-radius: var(--r-m); padding: 12px 16px; background: rgba(255, 255, 255, .25); }
details.avanc summary { font-weight: 800; color: var(--marinho); }
details.avanc[open] summary { margin-bottom: 4px; }

.linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linkbox input { flex: 1 1 220px; min-width: 0; min-height: 38px; padding: 6px 10px; font: 600 13.5px var(--mono); }
.linkcard { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.linkcard .linkbox { flex: 1 1 360px; }

/* 4.7 Tabelas */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--cartao); border: 1px solid var(--borda); border-radius: 18px; overflow: hidden; box-shadow: var(--s-1); }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--linha); }
th { background: var(--cartao-2); color: var(--tinta-2); font-size: var(--t-14); font-weight: 800; border-bottom-color: var(--borda); }
tbody tr { transition: background-color var(--d-1) var(--ease); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--coluna); }
td.num { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
td > .help { margin: 2px 0 0; }
a.nm { display: inline-flex; align-items: center; gap: 10px; color: var(--marinho); text-decoration: none; }
a.nm:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
td a strong { color: inherit; }

/* 4.8 Abas Quadro/Lista, filtros rápidos, barra de visão */
.vbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.vbar h2 { margin: 0; }
.vacoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vr { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--chao-2); }
.seg label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--t-14); font-weight: 700; color: var(--marinho); cursor: pointer; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.seg label .ic { width: 16px; height: 16px; }
.seg label:hover { background: var(--chao-3); }
.vistas:has(#vq:checked) .seg label[for=vq], .vistas:has(#vl:checked) .seg label[for=vl] { background: var(--marinho); color: #fff; }
.vistas:has(.vr:focus-visible) .seg { outline: 3px solid var(--marinho); outline-offset: 2px; }
.vistas:has(#vl:checked) .kanban, .vistas:has(#vq:checked) .lista { display: none; }
.vistas:has(#vl:checked) .lista, .vistas:has(#vq:checked) .kanban { animation: aparecer var(--d-3) var(--ease); }

.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border: 0; border-radius: var(--r-pill); background: var(--chao-2); color: var(--marinho); font: 700 var(--t-14)/1.3 var(--fonte); cursor: pointer; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), transform var(--d-1) var(--ease); }
.fchip:hover { background: var(--chao-3); }
.fchip:active { transform: scale(.97); }
.fchip[aria-pressed=true] { background: var(--marinho); color: #fff; }
.fres { margin-left: 4px; font-size: var(--t-13); font-weight: 700; color: var(--tinta-2); }
.atalhos { margin-left: auto; font-size: 13px; color: var(--tinta-2); font-weight: 600; }

/* 4.9 Quadro (kanban) */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(178px, 1fr); gap: 10px; overflow-x: auto; padding: 6px 4px 16px; margin: 0 -4px; align-items: start; scroll-snap-type: x proximity; }
.col { position: relative; min-height: 180px; padding: 8px; border-radius: var(--r-l); background: var(--coluna); scroll-snap-align: start; transition: background-color var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease), translate var(--d-3) var(--ease); animation: subir var(--d-4) var(--ease) backwards; }
.col:nth-child(2) { animation-delay: 30ms; } .col:nth-child(3) { animation-delay: 60ms; } .col:nth-child(4) { animation-delay: 90ms; } .col:nth-child(5) { animation-delay: 120ms; } .col:nth-child(6) { animation-delay: 150ms; }
.col header { display: flex; align-items: center; gap: 8px; padding: 6px 6px 10px; }
.col h3 { flex: 1; margin: 0; font-size: var(--t-14); line-height: 1.25; }
.col-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--verde); color: var(--marinho); font-size: 12.5px; font-weight: 800; }
.col-c { padding: 0 9px; border-radius: var(--r-pill); background: var(--chao-2); color: var(--marinho); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.col-b { display: flex; flex-direction: column; gap: 8px; }
.col-v { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0; padding: 20px 10px; border: 1.5px dashed var(--contorno); border-radius: var(--r-m); color: var(--tinta-2); font-size: var(--t-14); font-weight: 600; text-align: center; }
.col-v .ic { width: 24px; height: 24px; }
.col.alvo-drop { background: var(--menta); box-shadow: 0 0 0 2.5px var(--verde-btn); }

.kc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--contorno); color: var(--marinho); cursor: grab; transition: background-color var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease), translate var(--d-3) var(--ease), opacity var(--d-2) var(--ease); }
.kc:hover { background: var(--cartao); translate: 0 -3px; box-shadow: inset 0 0 0 1.5px var(--contorno), var(--s-2); }
.kc:active { cursor: grabbing; }
.kc:focus-within { background: var(--cartao); }
/* pede ação: creme quente, anel verde inteiro, já "levantado" */
.kc-acao { background: var(--creme); box-shadow: var(--anel-acao), 0 8px 20px rgba(11, 58, 91, .14); }
.kc-acao:hover, .kc-acao:focus-within { background: var(--creme); box-shadow: var(--anel-acao), 0 14px 28px rgba(11, 58, 91, .2); }
.kc-acao .chip { background: var(--creme-2); }
.kc-acao .chip.c-gold, .kc-acao .chip.c-ok { background: var(--ok-bg); }
.kc-acao .chip.c-mid { background: var(--info-bg); }
.kc-acao .chip.c-low { background: var(--alerta-bg); }
.kc-fim { background: var(--encerrado); box-shadow: none; cursor: default; }
.kc-fim:hover { background: var(--encerrado); box-shadow: var(--s-1); }
.kc.arr { opacity: .5; rotate: 1.5deg; }
.kc-link { display: block; color: inherit; text-decoration: none; border-radius: 10px; }
.kc-link:hover .kc-n strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kc-top { display: flex; align-items: center; gap: 10px; }
.kc-n { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.kc-n strong, .kc-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-n strong { font-size: var(--t-15); }
.kc-n small { color: var(--tinta-2); font-weight: 600; font-size: var(--t-12); }
.kc-acao .kc-n small, .kc-acao .kc-d { color: var(--creme-tinta); }
.kc-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.kc-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
/* no cartão o estado vira texto com marcador: o creme e o anel já dizem "é com você" */
.kc-base .badge { padding: 0; background: none; white-space: normal; line-height: 1.3; font-size: 13px; color: var(--tinta-2); }
.kc-base .b-acao { color: var(--ok-fg); }
.kc-base .b-ok { color: var(--ok-fg); }
.kc-base .b-bad { color: var(--bad-fg); }
.kc-base .b-info { color: var(--info-fg); }
.kc-base .badge::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.kc-base .b-acao::before { width: 10px; height: 10px; background: var(--folha); border-radius: 0 60% 0 60%; }
.kc-d { font-size: var(--t-12); font-weight: 700; color: var(--tinta-2); white-space: nowrap; }
.kc-qa { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(11, 58, 91, .12); }
.kc-qa form { margin: 0; }
.novo-p { display: none; position: absolute; top: -9px; right: 12px; padding: 1px 10px; border-radius: var(--r-pill); background: var(--verde); color: var(--marinho); font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(11, 58, 91, .18); }
.kc.novo .novo-p { display: block; animation: aparecer var(--d-4) var(--ease) 200ms backwards; }
.prog { display: flex; gap: 3px; }
.prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--chao-2); }
.prog i.on { background: var(--verde-btn); }
.kc-acao .prog i { background: var(--creme-2); }
.kc-acao .prog i.on { background: var(--verde-btn); }

/* funil antigo (nav.funil .fase): segue legível até ser trocado pela onda-funil */
.funil { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 var(--e-5); }
.fase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 14px; border-radius: var(--r-m); background: var(--cartao); color: var(--marinho); text-decoration: none; box-shadow: inset 0 0 0 1px var(--borda); transition: background-color var(--d-2) var(--ease), translate var(--d-2) var(--ease); }
.fase:hover { background: var(--coluna); translate: 0 -2px; }
.fase.tem-acao { background: var(--creme); box-shadow: var(--anel-acao); }
.fn { display: none; }
.fv { font-size: var(--t-24); font-weight: 800; font-variant-numeric: tabular-nums; }
.fl { flex: 1 1 90px; font-size: var(--t-13); font-weight: 700; line-height: 1.25; color: var(--tinta-2); }
.fa { padding: 1px 9px; border-radius: var(--r-pill); background: var(--verde-btn); color: #fff; font-size: 12.5px; font-weight: 800; }
.fa.vazio { display: none; }

/* "Precisa de você agora" (lista antiga, se voltar a ser usada) */
.alvo { display: flex; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; color: var(--marinho); text-decoration: none; transition: background-color var(--d-2) var(--ease); }
.alvo:hover { background: var(--coluna); }
.alvo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.alvo-t small, .alvo-d { color: var(--tinta-2); font-weight: 600; }
.alvo-d { font-size: 13px; min-width: 76px; text-align: right; }
.precisa { background: var(--creme); box-shadow: var(--anel-acao), var(--s-2); border: 0; }
.precisa.em-dia { display: flex; align-items: center; gap: 14px; background: var(--ok-bg); color: var(--ok-fg); box-shadow: none; }
.precisa.em-dia h3, .precisa.em-dia p { margin: 0; color: inherit; }

.vazio-g { text-align: center; padding: 44px 20px; border: 2px dashed var(--contorno); box-shadow: none; }
.vazio-g .ic { width: 40px; height: 40px; color: var(--verde-btn); }
.vazio-g p { max-width: 460px; margin: 0 auto; color: var(--tinta-2); }

/* 4.10 Gaveta lateral (prévia do e-mail) e aviso flutuante */
.g-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(11, 58, 91, .42); animation: aparecer var(--d-3) var(--ease); }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(470px, 100%); display: flex; flex-direction: column; background: var(--creme); box-shadow: -20px 0 60px rgba(11, 58, 91, .28); animation: gaveta var(--d-4) var(--ease); }
.g-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; background: var(--ceu); }
.g-h::after { content: none; }
.g-h h3 { margin: 0; font-size: var(--t-20); }
.g-h .btn.sec { width: 40px; height: 40px; min-height: 40px; padding: 0; background: var(--nuvem); box-shadow: none; }
.g-h .btn.sec:hover { background: var(--ceu-2); }
.g-b { flex: 1; overflow: auto; padding: 20px; background: var(--onda-chao) center top / 100% 0 no-repeat; }
.g-b dl.kv { margin-bottom: 14px; }
.g-b .ans { max-height: 46vh; overflow: auto; background: rgba(11, 58, 91, .05); }
.g-b .acts { margin-top: 16px; }
.sk { display: block; height: 14px; margin: 12px 0; border-radius: 7px; background: linear-gradient(90deg, var(--creme-2) 25%, #F8F0DF 50%, var(--creme-2) 75%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; }
.sk:nth-child(3n) { width: 70%; } .sk:nth-child(3n+2) { width: 88%; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: var(--r-pill); background: var(--marinho); color: #fff; font-weight: 700; box-shadow: 0 14px 40px rgba(11, 58, 91, .35); }
.toast.on { animation: toast var(--d-3) var(--ease); }
.toast :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------------
   5. TELAS
   5.1 Ficha do candidato
   --------------------------------------------------------------------- */
.hero.ficha { align-items: center; gap: var(--e-5) var(--e-8); }
.fic-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.fic-id h1 { margin: 0 0 2px; }
.fic-id .sub { margin: 0 0 8px; font-size: var(--t-16); }
.fic-st { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fic-info { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-5); }
.fic-chips { display: flex; flex-direction: column; gap: 6px; }
.chip-b { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--nuvem); color: var(--marinho); font-size: var(--t-14); font-weight: 700; text-decoration: none; transition: background-color var(--d-2) var(--ease), translate var(--d-2) var(--ease); }
.chip-b .ic { width: 16px; height: 16px; color: var(--azul); }
a.chip-b:hover { background: var(--papel); color: var(--marinho); translate: 2px 0; }
/* anel da nota */
.nota-g { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--nuvem); color: var(--marinho); box-shadow: 0 0 0 5px var(--azul), var(--s-2); animation: aparecer var(--d-4) var(--ease) backwards; }
.nota-g strong { font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.nota-g small { margin-top: 3px; font-size: 11.5px; font-weight: 700; line-height: 1.1; color: var(--tinta-2); text-align: center; }
.ng-top { box-shadow: 0 0 0 5px var(--verde-btn), 0 0 0 9px var(--verde), var(--s-2); }
.ng-ok { box-shadow: 0 0 0 5px var(--verde-btn), var(--s-2); }
.ng-mid { box-shadow: 0 0 0 5px var(--azul), var(--s-2); }
.ng-low { box-shadow: 0 0 0 5px var(--alerta-fg), var(--s-2); }
.ng-low strong { color: var(--alerta-fg); }

/* trilha das 6 etapas */
.steps { display: flex; flex-wrap: nowrap; gap: 0; margin: 0 0 var(--e-6); padding: 6px 0 4px; overflow-x: auto; list-style: none; }
.steps li { position: relative; flex: 1 1 0; min-width: 118px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; font-size: 13.5px; font-weight: 700; color: var(--tinta-2); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 4px; border-radius: 4px; background: var(--chao-2); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--verde-btn); }
.sn { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cartao); box-shadow: inset 0 0 0 2px var(--contorno); color: var(--tinta-2); font-weight: 800; }
.sn .ic { width: 17px; height: 17px; }
.steps li.done .sn { background: var(--verde-btn); box-shadow: none; color: #fff; }
.steps li.now .sn { background: var(--azul); box-shadow: 0 0 0 5px var(--ceu); color: #fff; animation: aparecer var(--d-4) var(--ease) 120ms backwards; }
.steps li.now .st { color: var(--marinho); font-weight: 800; }
.st { line-height: 1.25; }

/* barra fixa de ações */
.barra-fixa { position: sticky; top: 12px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 var(--e-4); padding: 8px 10px 8px 12px; border-radius: 18px; background: var(--cartao); border: 1px solid var(--borda); box-shadow: var(--s-2); }
.bf-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bf-id strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-acoes form { margin: 0; }
.bf-acoes .qa { font-size: var(--t-14); padding: 8px 14px; }
.bf-txt { font-size: var(--t-14); font-weight: 700; color: var(--tinta-2); }

/* próximo passo: pede ação = creme + anel verde */
.proximo { background: var(--creme); border: 0; box-shadow: var(--anel-acao), var(--s-2); }
.proximo .eyebrow { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-15); font-weight: 800; color: var(--ok-fg); }
.proximo .eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--folha); border-radius: 0 60% 0 60%; }
.proximo .help, .proximo .sub { color: var(--creme-tinta); }
.proximo input, .proximo textarea, .proximo select { background: #FFFDF8; }
.proximo h3 { font-size: var(--t-20); }

/* respostas: placar com anel, perguntas */
.placar { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.placar-i { display: flex; flex-direction: column; gap: 6px; }
.placar-i > div { display: flex; flex-wrap: wrap; gap: 6px; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.anel { --p: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; flex: none; border-radius: 50%; background: conic-gradient(var(--verde-btn) calc(var(--p) * 1%), var(--chao-2) 0); animation: anel 700ms var(--ease) backwards; }
.anel::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--cartao); }
.anel strong, .anel small { position: relative; line-height: 1.1; text-align: center; }
.anel strong { font-size: var(--t-20); font-variant-numeric: tabular-nums; }
.anel small { font-size: 12px; font-weight: 700; color: var(--tinta-2); }
.pq { margin: 10px 0; padding: 12px 14px; border-radius: var(--r-m); background: var(--coluna); border: 1px solid var(--linha); }
.pq header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.pq header strong { line-height: 1.4; }
.pq-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: 1px; border-radius: 8px; background: var(--marinho); color: #fff; font-size: 12.5px; font-weight: 800; }
.pq .ans { margin: 6px 0 0; background: var(--opcao); }
.pq-certo { background: var(--ok-bg); border-color: var(--ok-bd); }
.pq-errado { background: var(--bad-bg); border-color: var(--bad-bd); }
.pq-certo .pq-n { background: var(--verde-btn); }
.pq-errado .pq-n { background: var(--perigo); }
.pq-s { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 800; }
.pq-s .ic { width: 15px; height: 15px; }
.pq-s.ok { color: var(--ok-fg); } .pq-s.bad { color: var(--bad-fg); }

/* histórico */
.timeline { list-style: none; margin: 0; padding: 0; font-size: var(--t-14); }
.timeline li { position: relative; padding: 8px 0 8px 24px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 3px var(--cartao); z-index: 1; }
.timeline li:first-child::before { background: var(--verde-btn); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: -10px; width: 2px; background: var(--chao-2); }
.timeline li:last-child::after { display: none; }
.timeline time { margin-right: 8px; color: var(--tinta-2); font-weight: 800; font-variant-numeric: tabular-nums; }

/* 5.2 Vaga: âncoras, triagem, horários */
.ancoras { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 6px; }
.hero + .ancoras { margin-top: -6px; }
.ancoras a { padding: 7px 16px; border-radius: var(--r-pill); background: var(--chao-2); color: var(--marinho); font-size: var(--t-14); font-weight: 700; text-decoration: none; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.ancoras a:hover { background: var(--marinho); color: #fff; }
.pedido textarea { min-height: 360px; margin-top: 4px; font: 15px/1.55 var(--mono); }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: var(--r-s); font-weight: 700; animation: aparecer var(--d-2) var(--ease); }
.checklist li.ok { background: var(--ok-bg); color: var(--ok-fg); }
.checklist li.bad { background: var(--bad-bg); color: var(--bad-fg); }
.checklist .ic { width: 18px; height: 18px; margin-top: 2px; }
.checklist li.ok::before, .checklist li.bad::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: currentColor; }
.checklist li:has(.ic)::before { content: none; }

/* 5.3 Agenda */
.dias { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.dia { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border-radius: var(--r-pill); background: var(--chao-2); color: var(--marinho); font-weight: 700; cursor: pointer; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), transform var(--d-1) var(--ease); }
.dia:hover { background: var(--chao-3); }
.dia:active { transform: scale(.97); }
.dia:has(input:checked) { background: var(--azul); color: #fff; }
.dia:has(input:focus-visible) { outline: 3px solid var(--marinho); outline-offset: 2px; }
.dia input { accent-color: var(--marinho); width: 16px; height: 16px; margin: 0; }
.dia input:focus-visible { outline: none; }
.lista-livres { margin: 0; padding-left: 20px; line-height: 1.9; }
.lista-livres li::marker { color: var(--verde-btn); }
.gcard .gstatus { display: flex; align-items: flex-start; gap: 12px; }
.gstatus .ic { width: 28px; height: 28px; color: var(--tinta-2); }
.gstatus.ok .ic { color: var(--verde-btn); }
.gcard:has(.gstatus.ok) { background: var(--ok-bg); border-color: var(--ok-bd); }
.gcard:has(.gstatus.ok) .help { color: var(--ok-fg); }

/* 5.4 Páginas do candidato: questionário em etapas, teste, horários */
.timer { position: sticky; top: 0; z-index: 10; padding: 10px 16px; background: var(--marinho); color: #fff; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer #t { color: var(--verde); }
main.narrow > h1 { font-size: var(--t-28); }
main.narrow > .sub { font-size: var(--t-17); }
main.narrow .card { padding: 26px 28px; }
.wiz-top { margin: 0 0 20px; }
.wiz-bar { height: 10px; border-radius: var(--r-pill); background: var(--chao-2); overflow: hidden; }
.wiz-bar i { display: block; width: 0; height: 100%; border-radius: var(--r-pill); background: var(--verde-btn); transition: width var(--d-4) var(--ease); }
.wiz-n { margin: 8px 0 0; font-size: var(--t-14); font-weight: 600; color: var(--tinta-2); }
.wiz-n b { color: var(--marinho); }
.wiz.on .etapa { display: none; }
.wiz.on .etapa.ativa { display: block; animation: etapa var(--d-4) var(--ease); }
.etapa .et-t { margin: 0 0 4px; font-size: var(--t-24); }
.etapa .et-s { margin: 0 0 8px; color: var(--tinta-2); }
.etapa + .etapa:not(.ativa) { margin-top: 18px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.wiz-nav .btn { flex: 1; min-height: 50px; font-size: var(--t-16); }
.wiz.on #enviar { margin-top: 24px; }
#enviar { min-height: 52px; font-size: var(--t-17); }
.slot-day { display: block; width: 100%; margin: 20px 0 6px; font-weight: 800; font-size: var(--t-17); color: var(--marinho); }
.slot-day::first-letter { text-transform: uppercase; }
form.card > fieldset:first-child .slot-day { margin-top: 0; }
fieldset:has(> legend.slot-day) { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset:has(> legend.slot-day) .opt { margin: 0; align-items: center; min-width: 108px; padding: 10px 16px; border-radius: var(--r-pill); }
fieldset:has(> legend.slot-day) .opt input { margin: 0; }
main.narrow ul { padding-left: 22px; }
main.narrow ul li { margin: 4px 0; }
main.narrow ul li::marker { color: var(--verde-btn); }

/* ---------------------------------------------------------------------
   6. COMPONENTES NOVOS
   6.1 Funil em onda (.onda-funil)
   Cada etapa levanta uma crista: a clara mostra quantos estão na etapa (--n),
   a escura quantos pedem você (--a). --max = maior --n entre as 6 etapas.
   Nenhum texto fica em cima da onda.
   --------------------------------------------------------------------- */
.onda-funil { margin: 0 calc(-1 * var(--pag-x)) 28px; padding: 0 var(--pag-x); }
.of-topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 0 0 6px; }
.of-topo h2 { margin: 0; font-size: var(--t-17); }
.of-legenda { display: flex; gap: 16px; margin: 0; font-size: var(--t-13); font-weight: 700; color: var(--tinta-2); }
.of-legenda span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 4px; vertical-align: -1px; background: var(--verde); }
.of-legenda .of-l2::before { background: var(--folha); }
.of-etapas { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: 218px; margin: 0; padding: 0; list-style: none; }
/* faixa contínua da onda clara e o chão que fecha a paisagem */
.of-etapas::before, .of-etapas::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; pointer-events: none; }
.of-etapas::before { height: 24px; background: var(--verde); z-index: 1; }
.of-etapas::after { height: 16px; background: var(--onda-chao) center bottom / 1600px 16px repeat-x; z-index: 3; }
.of-etapa { --n: 0; --a: 0; position: relative; display: flex; justify-content: center; }
.of-etapa::before, .of-etapa::after { content: ""; position: absolute; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; transform-origin: 50% 100%; transition: translate var(--d-4) var(--ease); animation: crista var(--d-4) var(--ease) backwards; }
.of-etapa::before { left: -60%; width: 220%; height: calc(46px + 66px * var(--n) / var(--max, 1)); background: var(--verde); z-index: 1; }
.of-etapa::after { left: -40%; width: 180%; height: calc(30px + 54px * var(--a) / var(--max, 1)); background: var(--folha); z-index: 2; animation-delay: 60ms; }
.of-etapa:nth-child(2)::before { animation-delay: 30ms; } .of-etapa:nth-child(3)::before { animation-delay: 60ms; } .of-etapa:nth-child(4)::before { animation-delay: 90ms; } .of-etapa:nth-child(5)::before { animation-delay: 120ms; } .of-etapa:nth-child(6)::before { animation-delay: 150ms; }
.of-etapa:hover::before, .of-etapa:focus-within::before { translate: 0 -16px; }
.of-etapa:hover::after, .of-etapa:focus-within::after { translate: 0 -12px; }
.of-link { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; align-self: flex-start; gap: 1px; width: 100%; max-width: 190px; padding: 6px 6px 8px; border-radius: 16px; color: var(--marinho); text-align: center; text-decoration: none; transition: translate var(--d-3) var(--ease), background-color var(--d-2) var(--ease); }
.of-link:hover, .of-link:focus-visible { translate: 0 -2px; color: var(--marinho); }
.of-link:active { translate: 0 0; }
.of-nome { font-size: var(--t-14); font-weight: 800; line-height: 1.2; min-height: 34px; display: flex; align-items: flex-end; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 4px; transition: text-decoration-color var(--d-2) var(--ease); }
.of-link:hover .of-nome, .of-link[aria-current="true"] .of-nome { text-decoration-color: var(--verde-btn); }
.of-total { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.of-acao { margin-top: 2px; padding: 1px 10px; border-radius: var(--r-pill); background: var(--nuvem); color: var(--tinta-2); font-size: var(--t-12); font-weight: 800; white-space: nowrap; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.of-etapa.tem-acao .of-acao { background: var(--verde-btn); color: #fff; }
.of-link[aria-current="true"] { background: var(--nuvem); }
/* passar o mouse/foco numa etapa levanta a coluna do quadro (.col-N) */
.conteudo:has(.of-etapa[data-etapa="1"]:is(:hover, :focus-within)) .col-1,
.conteudo:has(.of-etapa[data-etapa="2"]:is(:hover, :focus-within)) .col-2,
.conteudo:has(.of-etapa[data-etapa="3"]:is(:hover, :focus-within)) .col-3,
.conteudo:has(.of-etapa[data-etapa="4"]:is(:hover, :focus-within)) .col-4,
.conteudo:has(.of-etapa[data-etapa="5"]:is(:hover, :focus-within)) .col-5,
.conteudo:has(.of-etapa[data-etapa="6"]:is(:hover, :focus-within)) .col-6 { box-shadow: 0 0 0 2.5px var(--verde-btn); translate: 0 -3px; background: var(--menta); }

/* 6.2 Sua vez (.sua-vez): uma pendência em destaque + a fila do resto */
/* céu da tela Candidatos: topo + funil à esquerda, Sua vez à direita (de pé sobre a paisagem) */
.ceu-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); grid-template-rows: auto 1fr; grid-template-areas: 'topo vez' 'funil vez'; gap: 0 var(--e-6); align-items: start; margin: 0 0 40px; }
.ceu-grade > .hero { grid-area: topo; }
.ceu-grade > .onda-funil { grid-area: funil; align-self: end; margin: 20px 0 0 calc(-1 * var(--pag-x)); padding: 0 0 0 var(--pag-x); }
.ceu-grade > .sua-vez { grid-area: vez; }
.ceu-grade:has(> .onda-funil) { margin-bottom: 28px; }
.ceu-grade:has(> .onda-funil)::after { display: none; }
.ceu-grade .hero { flex-direction: column; align-items: stretch; flex-wrap: nowrap; margin: 0; }
.ceu-grade .hero > div:first-child { flex: none; }
.ceu-grade .hero .filters { margin-top: 4px; }

.sua-vez { position: relative; padding: 18px 18px 14px; border-radius: var(--r-xl); background: var(--floresta); color: #fff; box-shadow: var(--s-verde); }
.sua-vez.fixa { position: sticky; top: 16px; }
.sua-vez :focus-visible { outline-color: #fff; }
.sua-vez .sv-foco :focus-visible { outline-color: var(--marinho); }
.sv-topo { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.sv-topo h2 { margin: 0; color: #fff; font-size: 21px; }
.sv-resumo { margin: 2px 0 0; color: var(--menta); font-size: var(--t-14); font-weight: 600; }
.sv-resumo b { color: #fff; font-variant-numeric: tabular-nums; }
@property --sv { syntax: '<number>'; inherits: true; initial-value: 0; }
.sv-anel { --feito: 0; --total: 1; --sv: calc(var(--feito) / max(var(--total), 1) * 100); position: relative; display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; background: conic-gradient(var(--verde) calc(var(--sv) * 1%), rgba(255, 255, 255, .2) 0); animation: anel-sv 700ms var(--ease) backwards; }
.sv-anel::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--floresta); }
.sv-anel b { position: relative; font-size: var(--t-20); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }

.sv-foco { padding: 16px 18px; border-radius: var(--r-l); background: var(--creme); color: var(--marinho); box-shadow: 0 14px 34px rgba(10, 30, 6, .32); animation: foco var(--d-4) var(--ease) backwards; }
.sv-quem { display: flex; align-items: center; gap: 12px; }
.sv-quem .av { width: 48px; height: 48px; font-size: 17px; }
.sv-nome { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.sv-nome a { color: inherit; text-decoration: none; }
.sv-nome a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.sv-vaga { margin: 1px 0 0; color: var(--creme-tinta); font-size: var(--t-14); font-weight: 600; }
.sv-tarefa { margin: 12px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.sv-contexto { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: var(--t-13); font-weight: 700; }
.sv-contexto li { padding: 2px 10px; border-radius: var(--r-pill); background: var(--creme-2); }
.sv-contexto li.alerta { background: var(--alerta-bg); color: var(--alerta-fg); }
.sv-contexto li.nota-alta { background: var(--ok-bg); color: var(--ok-fg); }
.sv-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-acoes form { margin: 0; }
.sv-acoes .qa, .sv-acoes .btn { min-height: 44px; padding: 10px 18px; font-size: var(--t-15); }
.sv-mais { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; }
.sv-mais a, .sv-mais button { padding: 2px 0; border: 0; background: none; color: var(--marinho); font: 800 var(--t-14) var(--fonte); text-decoration: underline; text-decoration-color: rgba(11, 58, 91, .35); text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color var(--d-2) var(--ease); }
.sv-mais a:hover, .sv-mais button:hover { text-decoration-color: currentColor; }

.sv-fila-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 16px 0 6px; color: #fff; font-size: var(--t-16); }
.sv-fila-t small { color: var(--menta); font-size: 13px; font-weight: 600; }
.sv-fila { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sv-fila li { animation: subir var(--d-4) var(--ease) backwards; }
.sv-fila li:nth-child(2) { animation-delay: 40ms; } .sv-fila li:nth-child(3) { animation-delay: 80ms; } .sv-fila li:nth-child(4) { animation-delay: 120ms; } .sv-fila li:nth-child(n+5) { animation-delay: 160ms; }
.sv-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-m); color: #fff; text-decoration: none; transition: background-color var(--d-2) var(--ease), translate var(--d-2) var(--ease); }
.sv-item:hover { background: var(--floresta-esc); color: #fff; translate: 3px 0; }
.sv-item:active { translate: 1px 0; }
.sv-item .av { width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.sv-item-t { min-width: 0; }
.sv-item-t strong { display: block; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-item-t small { display: block; color: var(--menta); font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-dias { padding: 1px 9px; border-radius: var(--r-pill); background: var(--floresta-esc); color: #fff; font-size: var(--t-12); font-weight: 800; white-space: nowrap; }
.sv-item:hover .sv-dias { background: var(--floresta); }
.sv-dias.alerta, .sv-item:hover .sv-dias.alerta { background: var(--alerta-bg); color: var(--alerta-fg); }
.sv-vertodos { margin: 8px 0 0; padding-left: 8px; }
.sv-vertodos a { color: #fff; font-weight: 800; font-size: var(--t-14); text-decoration-color: rgba(255, 255, 255, .5); }
.sv-vertodos a:hover { color: #fff; text-decoration-color: #fff; }
.sv-vazio { padding: 16px 16px 0; border-radius: var(--r-l); background: var(--creme); color: var(--marinho); text-align: center; overflow: hidden; animation: foco var(--d-4) var(--ease) backwards; }
.sv-vazio h3 { margin: 6px 0 4px; font-size: 21px; }
.sv-vazio p { margin: 0 0 10px; color: var(--creme-tinta); font-weight: 600; }
.sv-vazio::after { content: ""; display: block; height: 56px; margin: 6px -16px 0; background: var(--onda-creme) center bottom / 100% 100% no-repeat; }

/* ---------------------------------------------------------------------
   7. UTILITÁRIOS
   --------------------------------------------------------------------- */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num, .tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--tinta-2); }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.espaco { flex: 1; }
.dias-alerta { padding: 0 6px; border-radius: 8px; background: var(--alerta-bg); color: var(--alerta-fg); white-space: nowrap; }

@keyframes subir { from { opacity: 0; transform: translateY(10px); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes foco { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes etapa { from { opacity: 0; transform: translateX(14px); } }
@keyframes gaveta { from { opacity: 0; transform: translateX(48px); } }
@keyframes toast { from { opacity: 0; translate: -50% 20px; } }
@keyframes crista { from { scale: 1 .35; } }
@keyframes anel { from { --p: 0; } }
@keyframes anel-sv { from { --sv: 0; } }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------------
   8. RESPONSIVO
   1440 = referência · 1280 = menu e respiros menores · <=720 = menu vira barra no topo
   --------------------------------------------------------------------- */
@media (max-width: 1360px) {
  :root { --menu-l: 196px; --pag-x: 22px; }
  aside.rail nav a { padding: 10px 12px; gap: 10px; }
  .kanban { grid-auto-columns: minmax(162px, 1fr); gap: 8px; }
  .kc { padding: 10px; }
  .ceu-grade { grid-template-columns: minmax(0, 1fr) minmax(340px, 380px); }
}
@media (max-width: 1180px) {
  .ceu-grade { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: 'topo' 'vez' 'funil'; gap: var(--e-5) 0; }
  .ceu-grade > .onda-funil { margin-right: calc(-1 * var(--pag-x)); padding-right: var(--pag-x); }
  .funil { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --pag-x: 16px; }
  body.app { display: block; }
  aside.rail { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px; box-shadow: 0 4px 14px rgba(11, 58, 91, .2); }
  aside.rail .brand { flex: none; width: 92px; height: 52px; margin: 0; padding: 6px 8px; border-radius: 14px; }
  aside.rail .brand:has(img[src*="favicon"]) { height: 52px; background-size: auto 34px; }
  aside.rail nav { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  aside.rail nav a { flex: 1 0 auto; flex-direction: column; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: 12px; font-size: 12px; text-align: center; }
  aside.rail nav a:hover { translate: 0 0; }
  aside.rail nav a[aria-current]::before, aside.rail nav a[aria-current]::after { content: none; }
  aside.rail nav a.sair { margin-top: 0; }
  main { padding: 18px var(--pag-x) 56px; }
  .hero h1 { font-size: 26px; }
  .hero.slim h1 { font-size: 24px; }
  .filters > div { min-width: 0; flex: 1 1 100%; }
  .kanban { grid-auto-columns: 84%; }
  .atalhos { display: none; }
  .barra-fixa { top: 74px; }
  .campos2 { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .placar { flex-direction: column; align-items: flex-start; }
  .fic-id { flex-wrap: wrap; }
  .steps li { min-width: 96px; }
  .funil { grid-template-columns: repeat(2, 1fr); }
  .gaveta { width: 100%; }
  .card { padding: 18px; }
  main.narrow .card { padding: 20px 18px; }
  table.resp thead { display: none; }
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: 100%; }
  table.resp tr { padding: 8px 0; border-bottom: 1px solid var(--linha); }
  table.resp tr:last-child { border-bottom: 0; }
  table.resp td { padding: 4px 16px; border: 0; }
  table.resp td[data-l]::before { content: attr(data-l) ': '; color: var(--tinta-2); font-size: 13px; font-weight: 700; }
  .of-etapas { grid-template-columns: repeat(6, 132px); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  .of-etapas::before, .of-etapas::after { left: 0; right: auto; width: 792px; }
  .onda-funil { margin-left: calc(-1 * var(--pag-x)); margin-right: calc(-1 * var(--pag-x)); }
  .toast { left: 16px; right: 16px; translate: none; justify-content: center; border-radius: 18px; }
  @keyframes toast { from { opacity: 0; translate: 0 20px; } }
}

/* ---------------------------------------------------------------------
   9. MOVIMENTO REDUZIDO: tudo vira troca instantânea, nada se desloca
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .kc:hover, .fase:hover, .of-link:hover, .of-link:focus-visible, .sv-item:hover, a.chip-b:hover, aside.rail nav a:hover,
  .of-etapa:hover::before, .of-etapa:hover::after, .of-etapa:focus-within::before, .of-etapa:focus-within::after { translate: none !important; }
  .conteudo .col { translate: none !important; }
  .btn:active, .qa:active, .fchip:active, .dia:active { transform: none; }
  .sk { animation: none !important; }
}

/* ===== Próximas entrevistas (no céu, entre o topo e o funil) ===== */
.ceu-grade { grid-template-rows: auto auto 1fr; grid-template-areas: 'topo vez' 'prox vez' 'funil vez'; }
.ceu-grade > .proximas { grid-area: prox; }
.proximas { margin: 18px 0 0; }
.proximas h2 { font-size: 16px; margin: 0 0 8px; color: var(--marinho); }
.proximas ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.proximas a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--nuvem); color: var(--marinho); text-decoration: none; box-shadow: 0 1px 0 rgba(11, 58, 91, .08); transition: background-color .2s cubic-bezier(.16, 1, .3, 1), translate .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1); }
.proximas a:hover { background: var(--creme); translate: 0 -2px; box-shadow: 0 8px 18px -10px rgba(11, 58, 91, .45); }
.proximas a:focus-visible { outline: 3px solid var(--marinho); outline-offset: 2px; }
.px-quando { display: flex; flex-direction: column; align-items: center; min-width: 66px; padding: 6px 8px; border-radius: 12px; background: var(--azul); color: #fff; font-size: 12px; line-height: 1.25; }
.px-quando b { text-transform: capitalize; font-weight: 700; }
.px-quando strong { font-size: 18px; font-weight: 800; margin-top: 2px; }
.px-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.px-t small { color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-vazio { margin: 0; color: var(--tinta-2); background: var(--nuvem); border-radius: 16px; padding: 12px 14px; }
@media (max-width: 1180px) { .ceu-grade { grid-template-rows: auto; grid-template-areas: 'topo' 'vez' 'prox' 'funil'; } }
@media (prefers-reduced-motion: reduce) { .proximas a { transition: none; } .proximas a:hover { translate: none; } }

/* ===================================================================
   ACABAMENTO (08/10/2026) — detalhes de interação
   =================================================================== */
:root { --ease-gaveta: cubic-bezier(0.32, 0.72, 0, 1); }

/* Menu lateral: os itens comuns viram "pílulas" que não encostam na borda,
   então nunca disputam espaço com os cantinhos em onda do item ativo.
   Hover acontece dezenas de vezes por dia: só cor, sem deslizar. */
@media (min-width: 721px) {
  aside.rail nav a { transition: background-color 150ms var(--ease), color 150ms var(--ease); }
  aside.rail nav a:not([aria-current]) { margin-right: 22px; border-radius: 14px; }
  aside.rail nav a:not([aria-current]):hover { background: rgba(255, 255, 255, .14); color: #fff; translate: none; }
  aside.rail nav a:not([aria-current]):hover .ic { color: var(--verde); }
  aside.rail nav a:not([aria-current]):active { background: rgba(255, 255, 255, .22); }
  aside.rail nav a .ic { transition: color 150ms var(--ease); }
  aside.rail nav a[aria-current]::before, aside.rail nav a[aria-current]::after { width: 20px; height: 20px; }
  aside.rail nav a[aria-current]::before { top: -20px; background: radial-gradient(circle at 0 0, transparent 19.5px, var(--ceu) 20px); }
  aside.rail nav a[aria-current]::after { bottom: -20px; background: radial-gradient(circle at 0 100%, transparent 19.5px, var(--ceu) 20px); }
}

/* Cartões do quadro: o hover é frequente, então o "levantar" fica mais curto e rápido. */
.kc { transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease), translate 200ms var(--ease), opacity 200ms var(--ease); }
.kc:hover { translate: 0 -2px; }

/* Botões e chips: resposta imediata ao clique. */
.qa:active, .fchip:active { transform: scale(.97); }

/* Gaveta lateral (prévia do e-mail): curva de gaveta, e o fundo escurece com suavidade. */
.gaveta { animation-timing-function: var(--ease-gaveta); }
.g-fundo:not([hidden]) { animation: acabamento-fade 200ms var(--ease); }
@keyframes acabamento-fade { from { opacity: 0; } to { opacity: 1; } }

/* Em telas de toque, o hover "gruda" depois do toque: sem levantar cartões. */
@media (hover: none) {
  .kc:hover, .proximas a:hover, aside.rail .brand:hover { translate: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .g-fundo:not([hidden]) { animation: none; }
}

/* ===== Agenda: convite com confirmação, ficha e ditado (08/10/2026) ===== */
.agenda-box { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--nuvem); box-shadow: inset 0 0 0 1.5px var(--info-bd); }
.agenda-box p { margin: 0 0 8px; }
.agenda-box .acts { margin-top: 8px; }
.ab-quando { font-size: 16px; color: var(--marinho); }
form.convidar label:first-child { margin-top: 4px; }
.convite { padding: 22px 24px; }
.cv-linha { margin: 0 0 8px; font-size: 18px; line-height: 1.45; color: var(--marinho); }
.cv-linha:last-child { margin-bottom: 0; }
.cv-pergunta { margin: 18px 0 10px; font-weight: 800; font-size: 17px; color: var(--marinho); }
.cv-botoes { display: grid; gap: 10px; }
.cv-botoes form { margin: 0; }
.cv-botoes .btn { min-height: 52px; font-size: 17px; }
.ditado textarea { min-height: 84px; }
#dt-mic.gravando { background: var(--perigo); box-shadow: 0 0 0 4px rgba(163, 38, 27, .2); }
#dt-mic.gravando .ic { animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; } }
.dt-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.dt-lista label.opt { margin: 0; }
.dt-lista .ja { color: var(--tinta-2); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { #dt-mic.gravando .ic { animation: none; } }

/* fuso do candidato na ficha */
.fuso-troca{margin-top:6px}
.fuso-troca summary{cursor:pointer;display:inline-block;margin:0}
.fuso-troca form{margin-top:8px}

/* Dados da vaga antes do LGPD (questionários do candidato) */
.vg-eyebrow { margin: 0 0 4px; font-size: var(--t-14); font-weight: 700; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .04em; }
.vg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.vg-tile { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--r-m); padding: 12px 14px; }
.vg-tile span { display: block; font-size: var(--t-14); font-weight: 700; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.vg-tile strong { display: block; font-size: var(--t-15); line-height: 1.4; }
.vg-h { margin: 20px 0 6px; font-size: var(--t-18, 1.1rem); color: var(--azul); }
.vg-ul { list-style: none; margin: 0 0 4px; padding: 0; }
.vg-ul li { position: relative; padding: 4px 0 4px 24px; line-height: 1.45; }
.vg-ul li::before { content: "✓"; position: absolute; left: 2px; top: 4px; font-weight: 800; color: var(--verde-btn); }


/* =====================================================================
   10. TEMA "CLEAN" (26/10/2026) — no padrão do site www.genthe.com.br
   Fundo branco e cinza bem claro, texto marinho, bordas cinza suaves,
   azul da marca para ações e o verde só como destaque. Montserrat.
   Esta camada vem por último e só redefine tokens e alguns detalhes;
   para voltar ao tema "Paisagem", basta apagar daqui até o fim.
   ===================================================================== */
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  /* marca (cores do site) */
  --azul: #39679F; --azul-esc: #2F578A; --azul-fundo: #264A77;
  --verde: #8FBF58; --folha: #7AAE45;
  --verde-btn: #3F7F24; --verde-btn-h: #336A1B;
  --marinho: #0D1F3C;            /* texto principal (o marinho do topo do site) */
  --tinta-2: #4B5563;            /* texto de apoio: 7,5:1 no branco */
  --link: #2F578A;
  --floresta: #0D1F3C;           /* bloco "Sua vez": marinho do site */
  --floresta-esc: #16305A;
  --menta: #C9D6E8;

  /* superfícies: branco e cinzas claros */
  --ceu: #F6F8FA; --ceu-2: #EEF1F5; --nuvem: #FFFFFF; --papel: #FFFFFF;
  --chao: #F6F8FA; --chao-2: #EEF1F5; --chao-3: #E5E7EB;
  --coluna: #F1F3F6; --cartao: #FFFFFF; --cartao-2: #F6F8FA; --opcao: #FFFFFF;
  --contorno: #E5E7EB; --borda: #E5E7EB; --linha: #EEF0F3; --campo-borda: #9CA3AF;
  --creme: #FFFFFF; --creme-2: #F3F4F6; --creme-tinta: #4B5563;
  --encerrado: #F3F4F6;

  --fonte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* sombras leves, sem tinta colorida */
  --s-1: 0 1px 2px rgba(13, 31, 60, .05), 0 1px 3px rgba(13, 31, 60, .04);
  --s-2: 0 6px 16px rgba(13, 31, 60, .08);
  --s-3: 0 12px 28px rgba(13, 31, 60, .12);
  --s-verde: 0 12px 28px rgba(13, 31, 60, .18);
  --anel-acao: 0 0 0 2px var(--azul);

  /* sem as ondas decorativas */
  --onda-horizonte: none; --onda-chao: none; --onda-creme: none;
}

body { background: var(--chao); letter-spacing: -.005em; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; }
strong, b { font-weight: 700; }

/* menu lateral branco, como o cabeçalho do site */
aside.rail { background: #FFFFFF; color: var(--marinho); border-right: 1px solid var(--borda); padding-right: 14px; }
aside.rail .brand { background: transparent; padding: 6px 8px; margin-right: 0; }
aside.rail .brand:hover { box-shadow: none; }
aside.rail .brand:focus-visible { outline-color: var(--azul); }
aside.rail nav a { color: var(--tinta-2); border-radius: 12px; font-weight: 600; }
aside.rail nav a:hover { color: var(--marinho); background: var(--ceu-2); translate: 0 0; }
aside.rail nav a:active { background: var(--chao-3); }
aside.rail nav a:focus-visible { outline-color: var(--azul); }
aside.rail nav a[aria-current] { background: #EAF0F8; color: var(--azul); font-weight: 700; box-shadow: inset 3px 0 0 var(--azul); }
aside.rail nav a[aria-current] .ic { color: var(--azul); }
aside.rail nav a[aria-current]::before, aside.rail nav a[aria-current]::after { display: none; }

/* sem o "chão" verde atrás dos blocos de topo */
.hero::after, .ceu-grade::after, .onda-funil::after { background: var(--chao); }
header.pub { background: #FFFFFF; border-bottom: 1px solid var(--borda); padding-bottom: 14px; }
header.pub img { box-shadow: none; background: transparent; }
header.pub .onda, .entrada .onda { display: none; }
.entrada { background: var(--ceu); }
.entrada .card { background: #FFFFFF; border: 1px solid var(--borda); box-shadow: var(--s-2); }
footer.pub { background: var(--marinho); }

/* cartões e botões no estilo do site */
.card { border-color: var(--borda); box-shadow: var(--s-1); }
.btn { border-radius: var(--r-pill); font-weight: 600; letter-spacing: 0; }
.btn.sec { background: #FFFFFF; color: var(--marinho); box-shadow: inset 0 0 0 1px var(--chao-3); }
.btn.sec:hover { background: var(--ceu); box-shadow: inset 0 0 0 1px var(--campo-borda); }
input, select, textarea { border-color: var(--chao-3); }
.chip { background: var(--ceu-2); }

/* quadro de candidatos */
.kc { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--borda), var(--s-1); }
.kc:hover { box-shadow: inset 0 0 0 1px var(--campo-borda), var(--s-2); }
.kc-acao, .kc-acao:hover, .kc-acao:focus-within { background: #FFFFFF; box-shadow: inset 3px 0 0 var(--azul), inset 0 0 0 1px #C9D8EC, var(--s-2); }
.kc-fim, .kc-fim:hover { background: var(--encerrado); box-shadow: inset 0 0 0 1px var(--borda); opacity: .85; }
/* não aprovado: fica na etapa onde parou, em tom rosado e com faixa vermelha */
.kc-reprovado, .kc-reprovado:hover { background: #FDF2F2; box-shadow: inset 3px 0 0 #C0392B, inset 0 0 0 1px #F2C9C4; opacity: 1; }
.kc-reprovado .kc-n strong { color: #7F1D1D; }

/* bloco "Sua vez" em marinho (como o topo do site) e foco em branco */
.sua-vez { background: var(--floresta); box-shadow: var(--s-verde); }
.sv-foco { background: #FFFFFF; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* funil: cartões brancos no lugar das colinas verdes */
.of-etapas { height: auto; gap: 10px; }
.of-etapas::before, .of-etapas::after, .of-etapa::before, .of-etapa::after { display: none; }
.of-link { max-width: none; padding: 12px 8px 12px; background: #FFFFFF; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--borda), var(--s-1); }
.of-link:hover, .of-link:focus-visible { box-shadow: inset 0 0 0 1px #C9D8EC, var(--s-2); }
.of-link[aria-current="true"] { background: #EAF0F8; box-shadow: inset 0 0 0 1px #C9D8EC; }
.of-nome { font-weight: 600; color: var(--tinta-2); }
.of-total { color: var(--azul); font-weight: 700; }
.of-etapa.tem-acao .of-acao { background: var(--azul); }
.of-legenda span::before { background: var(--azul); }
.of-legenda .of-l2::before { background: var(--verde); }
.conteudo:has(.of-etapa:is(:hover, :focus-within)) .col { transition: box-shadow var(--d-2) var(--ease); }
.conteudo:has(.of-etapa[data-etapa="1"]:is(:hover, :focus-within)) .col-1,
.conteudo:has(.of-etapa[data-etapa="2"]:is(:hover, :focus-within)) .col-2,
.conteudo:has(.of-etapa[data-etapa="3"]:is(:hover, :focus-within)) .col-3,
.conteudo:has(.of-etapa[data-etapa="4"]:is(:hover, :focus-within)) .col-4,
.conteudo:has(.of-etapa[data-etapa="5"]:is(:hover, :focus-within)) .col-5,
.conteudo:has(.of-etapa[data-etapa="6"]:is(:hover, :focus-within)) .col-6 { box-shadow: 0 0 0 2px var(--azul); background: #EAF0F8; }

input, select, textarea { background-color: #FFFFFF; }

/* não compareceu à entrevista na Genthe: âmbar (28/10/2026) */
.kc-faltou, .kc-faltou:hover { opacity: 1; background: #FFF8EB; box-shadow: inset 3px 0 0 #D97706, inset 0 0 0 1px #F5D9A8; }
.qa-falta { background: transparent; color: #92400E; box-shadow: inset 0 0 0 1.5px rgba(217, 119, 6, .55); }
.qa-falta:hover { background: #FFF3DC; color: #78350F; }
.btn.falta { background: #FFFFFF; color: #92400E; box-shadow: inset 0 0 0 1.5px rgba(217, 119, 6, .6); }
.btn.falta:hover { background: #FFF3DC; }
