/* FluentFilter app — design system v4 «Clear signal»: tokens + components + screens (protótipos v4). */
/* =========================================================================
   FluentFilter — tokens do design system «Clear signal» v4
   Pronto para colar no topo de static/styles.css e de site/assets/styles.css.
   Só tokens: nenhuma regra de componente aqui (ver prototipos/assets/components.css).
   Fontes auto-hospedadas (SIL OFL 1.1). Nenhuma chamada a terceiros: passa em CSP 'self'.
   Ajuste o caminho das fontes ao colar: no app, /fonts/...; no site, fonts/...
   ========================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2"), url("/fonts/bricolage-grotesque.woff") format("woff");
  font-weight: 500 800;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree.woff2") format("woff2"), url("/fonts/figtree.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree-italic.woff2") format("woff2"), url("/fonts/figtree-italic.woff") format("woff");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------------------------------------------------------------------
     1. Paleta bruta (não use direto nos componentes; use os papéis abaixo)
     --------------------------------------------------------------------- */
  /* Violeta-sinal (marca) */
  --ff-violet-50:  #F4F1FF;
  --ff-violet-100: #E8E2FF;
  --ff-violet-200: #C9BEFF;
  --ff-violet-400: #9C88FF;
  --ff-violet-600: #5530DB;   /* cor-chave 1 */
  --ff-violet-700: #4423B8;
  --ff-violet-800: #321A8C;
  --ff-violet-900: #21135E;

  /* Coral-voz (acento) */
  --ff-coral-50:   #FFF4EF;
  --ff-coral-100:  #FFE7DD;
  --ff-coral-300:  #FFB39A;
  --ff-coral-500:  #FF6A3D;   /* cor-chave 2: preenchimento com tinta por cima, ou decoração */
  --ff-coral-600:  #E5532A;   /* coral para gráfico que informa (≥ 3:1 no papel) */
  --ff-coral-700:  #B4401C;   /* coral para texto */

  /* Neutros quentes (papel e tinta, nunca cinza-azulado) */
  --ff-neutral-0:   #FFFFFF;
  --ff-neutral-50:  #FAF7F2;  /* papel */
  --ff-neutral-100: #F3EEE6;  /* papel-2 */
  --ff-neutral-150: #EDE6DB;
  --ff-neutral-200: #E7E0D6;  /* linha */
  --ff-neutral-300: #D2C8BA;  /* linha forte (decorativa) */
  --ff-neutral-500: #8A8296;  /* borda de campo (3,7:1 no branco) */
  --ff-neutral-600: #6B6479;  /* texto apagado */
  --ff-neutral-700: #3F3950;  /* texto de apoio */
  --ff-neutral-800: #2A2440;
  --ff-neutral-900: #17122B;  /* tinta */

  /* Estados */
  --ff-green-700:  #1E7A4E;  --ff-green-100:  #E2F3E9;  --ff-green-300:  #A8D8BC;
  --ff-amber-700:  #7A5200;  --ff-amber-100:  #FFF1CF;  --ff-amber-300:  #F0D58A;
  --ff-red-700:    #B42318;  --ff-red-100:    #FDE8E6;  --ff-red-300:    #F4B4AD;

  /* ---------------------------------------------------------------------
     2. Papéis (use estes nos componentes)
     --------------------------------------------------------------------- */
  --color-bg:             var(--ff-neutral-50);
  --color-bg-tint:        var(--ff-neutral-100);
  --color-surface:        var(--ff-neutral-0);
  --color-surface-sunken: var(--ff-neutral-100);
  --color-surface-inverse:var(--ff-neutral-900);

  --color-text:           var(--ff-neutral-900);
  --color-text-2:         var(--ff-neutral-700);
  --color-text-muted:     var(--ff-neutral-600);
  --color-text-inverse:   var(--ff-neutral-0);
  --color-text-on-brand:  var(--ff-neutral-0);

  --color-border:         var(--ff-neutral-200);
  --color-border-strong:  var(--ff-neutral-300);
  --color-border-input:   var(--ff-neutral-500);

  --color-brand:          var(--ff-violet-600);
  --color-brand-hover:    var(--ff-violet-700);
  --color-brand-pressed:  var(--ff-violet-800);
  --color-brand-soft:     var(--ff-violet-50);
  --color-brand-soft-2:   var(--ff-violet-100);
  --color-brand-line:     var(--ff-violet-200);
  --color-brand-text:     var(--ff-violet-700);   /* texto violeta sobre lilás */

  --color-accent:         var(--ff-coral-500);
  --color-accent-graphic: var(--ff-coral-600);
  --color-accent-text:    var(--ff-coral-700);
  --color-accent-soft:    var(--ff-coral-50);

  --color-success:        var(--ff-green-700);
  --color-success-bg:     var(--ff-green-100);
  --color-success-line:   var(--ff-green-300);
  --color-warning:        var(--ff-amber-700);
  --color-warning-bg:     var(--ff-amber-100);
  --color-warning-line:   var(--ff-amber-300);
  --color-danger:         var(--ff-red-700);
  --color-danger-bg:      var(--ff-red-100);
  --color-danger-line:    var(--ff-red-300);

  --color-disabled-bg:    var(--ff-neutral-150);
  --color-disabled-text:  var(--ff-neutral-600);

  --color-focus:          var(--ff-violet-600);
  --color-overlay:        rgb(23 18 43 / 0.48);

  /* ---------------------------------------------------------------------
     3. Tipografia
     --------------------------------------------------------------------- */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text:    "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala (tamanho / altura de linha, sempre múltiplo de 4 px) */
  --text-xs:   0.75rem;   --leading-xs:   1rem;      /* 12/16 legendas mínimas */
  --text-sm:   0.875rem;  --leading-sm:   1.25rem;   /* 14/20 rótulos, tabelas */
  --text-md:   1rem;      --leading-md:   1.5rem;    /* 16/24 corpo */
  --text-lg:   1.125rem;  --leading-lg:   1.75rem;   /* 18/28 lead */
  --text-xl:   1.25rem;   --leading-xl:   1.75rem;   /* 20/28 título de cartão */
  --text-2xl:  1.5rem;    --leading-2xl:  2rem;      /* 24/32 pergunta, H3 */
  --text-3xl:  1.875rem;  --leading-3xl:  2.25rem;   /* 30/36 H2 do app */
  --text-4xl:  2.25rem;   --leading-4xl:  2.75rem;   /* 36/44 H1 do app */
  --text-5xl:  3rem;      --leading-5xl:  3.25rem;   /* 48/52 H2 do site */
  --text-6xl:  3.75rem;   --leading-6xl:  4rem;      /* 60/64 manchete do site */

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-display: 680;     /* Bricolage, variável */
  --stretch-display: 94%;
  --tracking-display: -0.028em;
  --tracking-tight:   -0.01em;
  --tracking-caps:    0.08em;

  /* ---------------------------------------------------------------------
     4. Espaço (base 4 px) e grade
     --------------------------------------------------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-8: 2rem;     /* 32 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-16: 4rem;    /* 64 */
  --space-20: 5rem;    /* 80 */
  --space-24: 6rem;    /* 96 */

  --container-site: 72rem;     /* 1152 px */
  --container-app:  68rem;     /* 1088 px de conteúdo no painel */
  --container-read: 40rem;     /* 640 px: formulários, relatório compartilhado */
  --container-candidate: 30rem;/* 480 px: fluxo do candidato */
  --sidebar-w: 15rem;          /* 240 px */
  --grid-gutter: var(--space-6);
  --page-pad: var(--space-8);
  --tap: 2.75rem;              /* 44 px: alvo mínimo de toque */

  /* ---------------------------------------------------------------------
     5. Raios, bordas, sombras
     --------------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --border-w: 1px;

  /* sombras com tinta quente, nunca preto puro */
  --shadow-1: 0 1px 2px rgb(23 18 43 / 0.06), 0 1px 1px rgb(23 18 43 / 0.03);
  --shadow-2: 0 6px 16px -4px rgb(23 18 43 / 0.10), 0 2px 4px rgb(23 18 43 / 0.04);
  --shadow-3: 0 20px 48px -12px rgb(23 18 43 / 0.22), 0 4px 12px rgb(23 18 43 / 0.06);
  --ring-focus: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-focus);

  /* ---------------------------------------------------------------------
     6. Movimento
     --------------------------------------------------------------------- */
  --dur-instant: 80ms;
  --dur-fast:    140ms;   /* hover, pressionado */
  --dur-base:    220ms;   /* abrir/fechar, toast */
  --dur-slow:    360ms;   /* troca de etapa */
  --dur-loop:    1400ms;  /* carregamento da marca */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);

  /* ---------------------------------------------------------------------
     7. Camadas
     --------------------------------------------------------------------- */
  --z-sticky: 10;
  --z-nav: 20;
  --z-overlay: 40;
  --z-toast: 60;
}

@media (max-width: 47.99rem) {      /* < 768 px */
  :root {
    --page-pad: var(--space-4);
    --grid-gutter: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* Apelidos dos nomes antigos (NOTAS-IMPLEMENTACAO §2.2) */
:root {
  --color-line: var(--color-border);
  --color-line-strong: var(--color-border-strong);
  --color-dark: var(--color-surface-inverse);
  --color-on-dark: var(--color-text-inverse);
  --ff-ink: var(--ff-neutral-900); --ff-ink-2: var(--ff-neutral-700); --ff-muted: var(--ff-neutral-600);
  --ff-line: var(--ff-neutral-200); --ff-line-strong: var(--ff-neutral-300);
  --ff-paper: var(--ff-neutral-50); --ff-paper-2: var(--ff-neutral-100); --ff-white: var(--ff-neutral-0);
  --ff-success: var(--ff-green-700); --ff-success-bg: var(--ff-green-100);
  --ff-warning: var(--ff-amber-700); --ff-warning-bg: var(--ff-amber-100);
  --ff-danger: var(--ff-red-700); --ff-danger-bg: var(--ff-red-100);
  --shadow-md: var(--shadow-2);
}

/* ===== components.css (v4) ===== */
/* =========================================================================
   FluentFilter — componentes «Clear signal» v4
   Depende de tokens.css. Só classes; nada de id. Prefixo nenhum para facilitar
   a troca no app (static/styles.css) e no site (site/assets/styles.css).
   ========================================================================= */

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: var(--weight-regular) var(--text-md)/var(--leading-md) var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
a { color: var(--color-brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-brand-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-display); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-surface); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.skip-link:focus { top: var(--space-4); }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }

/* ---------------------------------------------------------------- Ícones */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--16 { width: 16px; height: 16px; stroke-width: 2; }
.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------------------------------------------------------------- Tipografia */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: var(--weight-display); font-stretch: var(--stretch-display); letter-spacing: var(--tracking-display); color: var(--color-text); text-wrap: balance; }
.display { font-size: clamp(2.25rem, 1.2rem + 4.2vw, var(--text-6xl)); line-height: 1.04; }
.h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, var(--text-4xl)); line-height: 1.15; }
.h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, var(--text-3xl)); line-height: 1.2; }
.h3 { font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: -0.015em; }
.h4 { font: var(--weight-semibold) var(--text-md)/var(--leading-md) var(--font-text); margin: 0; }
.lead { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--color-text-2); max-width: 38rem; }
.body-2 { color: var(--color-text-2); }
.caption { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.micro { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-stretch: var(--stretch-display); letter-spacing: -0.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font: var(--weight-semibold) var(--text-xs)/var(--leading-xs) var(--font-text); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-accent-text); }
.eyebrow img { width: 22px; height: 10px; }
.label-caps { font: var(--weight-semibold) var(--text-xs)/var(--leading-xs) var(--font-text); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-2); }
.muted { color: var(--color-text-muted); }
.mark-key { background: linear-gradient(transparent 62%, var(--ff-coral-100) 62%); padding: 0 .08em; }

/* ---------------------------------------------------------------- Botões */
.btn {
  --btn-bg: var(--color-surface); --btn-fg: var(--color-text); --btn-bd: var(--color-border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-5); border: 1px solid var(--btn-bd); border-radius: var(--radius-md);
  background: var(--btn-bg); color: var(--btn-fg); font: var(--weight-semibold) var(--text-md)/1 var(--font-text);
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-instant) var(--ease-standard);
}
.btn:hover { --btn-bg: var(--color-bg-tint); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn--primary { --btn-bg: var(--color-brand); --btn-fg: var(--color-text-on-brand); --btn-bd: var(--color-brand); box-shadow: 0 1px 0 rgb(23 18 43 / .12), inset 0 1px 0 rgb(255 255 255 / .12); }
.btn--primary:hover { --btn-bg: var(--color-brand-hover); --btn-bd: var(--color-brand-hover); }
.btn--primary:active { --btn-bg: var(--color-brand-pressed); --btn-bd: var(--color-brand-pressed); }
.btn--secondary { --btn-bg: var(--color-surface); --btn-fg: var(--color-text); --btn-bd: var(--color-border-strong); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-brand); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--color-brand-soft); --btn-fg: var(--color-brand-text); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--color-text-2); --btn-bd: transparent; }
.btn--quiet:hover { --btn-bg: var(--color-bg-tint); --btn-fg: var(--color-text); }
.btn--danger { --btn-bg: var(--color-surface); --btn-fg: var(--color-danger); --btn-bd: var(--color-danger-line); }
.btn--danger:hover { --btn-bg: var(--color-danger-bg); --btn-fg: var(--color-danger); }
.btn--inverse { --btn-bg: var(--color-surface); --btn-fg: var(--color-text); --btn-bd: var(--color-surface); }
.btn--sm { min-height: 36px; padding: 0 var(--space-3); font-size: var(--text-sm); border-radius: var(--radius-sm); }
.btn--sm::after { content: ""; position: absolute; inset: -4px 0; }  /* alvo de toque de 44 px */
.btn--lg { min-height: 56px; padding: 0 var(--space-6); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn--block { display: flex; width: 100%; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; padding-block: var(--space-2); } /* no celular o texto quebra em vez de vazar (PT e ES são mais longos que EN) */
.btn[disabled], .btn[aria-disabled="true"] { --btn-bg: var(--color-disabled-bg); --btn-fg: var(--color-disabled-text); --btn-bd: var(--color-disabled-bg); box-shadow: none; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--lg .icon { width: 22px; height: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn-row--end { justify-content: flex-end; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--color-text-2); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard); text-decoration: none; }
.icon-btn:hover { background: var(--color-bg-tint); color: var(--color-text); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.link-btn { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--color-brand); font-weight: var(--weight-semibold); cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--color-brand-hover); text-decoration: underline; }

/* ---------------------------------------------------------------- Campos */
.field { display: grid; gap: var(--space-2); margin: 0 0 var(--space-5); }
.field > label, .field-label { font-weight: var(--weight-semibold); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text); }
.field .help { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); margin: 0; }
.field .error { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-danger); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 0 var(--space-3); border: 1px solid var(--color-border-input); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text); font-size: var(--text-md); line-height: var(--leading-md);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.textarea { min-height: 6.5rem; padding: var(--space-3); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-text-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-soft-2); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-danger); box-shadow: 0 0 0 3px var(--color-danger-bg); }
.select-wrap { position: relative; }
.select { appearance: none; padding-right: var(--space-10); cursor: pointer; }
.select-wrap .icon { position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-2); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: var(--tap); padding: var(--space-2) 0; cursor: pointer; line-height: var(--leading-md); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-brand); flex: none; cursor: pointer; }
.check small { display: block; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
/* Interruptor (visibilidade «Mostrar ao candidato») */
.switch { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); cursor: pointer; font-size: var(--text-sm); color: var(--color-text-2); }
.switch input { appearance: none; position: relative; width: 36px; height: 20px; margin: 0; border-radius: var(--radius-pill); background: var(--color-border-input); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard); flex: none; }
.switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-surface); box-shadow: var(--shadow-1); transition: transform var(--dur-fast) var(--ease-out); }
.switch input:checked { background: var(--color-brand); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* Escolha em cartão (onboarding, modelos, modo de resposta) */
.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard); color: inherit; text-decoration: none; text-align: left; width: 100%; }
.choice:hover { border-color: var(--color-brand-line); box-shadow: var(--shadow-1); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-bg-tint); color: var(--color-text-2); }
.choice strong { display: block; font-weight: var(--weight-semibold); }
.choice small { display: block; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.choice .choice-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--color-border-input); display: grid; place-items: center; color: transparent; }
.choice.is-selected, .choice:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand-soft); box-shadow: 0 0 0 1px var(--color-brand) inset; }
.choice.is-selected .choice-icon, .choice:has(input:checked) .choice-icon { background: var(--color-brand); color: var(--color-text-on-brand); }
.choice.is-selected .choice-tick, .choice:has(input:checked) .choice-tick { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.choice:has(input:focus-visible) { box-shadow: var(--ring-focus); }

/* Controle segmentado (USD/EUR, abas compactas) */
.segmented { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--color-bg-tint); border: 1px solid var(--color-border); }
.segmented button { min-height: 38px; min-width: 64px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-text-2); font-weight: var(--weight-semibold); font-size: var(--text-sm); cursor: pointer; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-1); }

/* Abas */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-border); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-3); border: 0; background: none; color: var(--color-text-muted); font-weight: var(--weight-semibold); font-size: var(--text-sm); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--color-text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--color-text); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 2px; border-radius: 2px; background: var(--color-brand); }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-bg-tint); font-size: var(--text-xs); line-height: 20px; color: var(--color-text-2); text-align: center; }

/* ---------------------------------------------------------------- Chips e etiquetas */
.chip { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip:hover { border-color: var(--color-text-muted); color: var(--color-text); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--color-text); border-color: var(--color-text); color: var(--color-text-inverse); }
.chip .chip-count { font-variant-numeric: tabular-nums; color: inherit; opacity: .72; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-xs); background: var(--color-bg-tint); color: var(--color-text-2); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1; white-space: nowrap; }
.tag .icon { width: 14px; height: 14px; stroke-width: 2; }
.tag--brand { background: var(--color-brand-soft-2); color: var(--color-brand-text); }
.tag--accent { background: var(--color-accent-soft); color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--ff-coral-100); }
.tag--lang { height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--color-brand-soft); color: var(--color-brand-text); font-size: var(--text-sm); box-shadow: inset 0 0 0 1px var(--color-brand-line); }

/* ---------------------------------------------------------------- Selos */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1; white-space: nowrap; background: var(--color-bg-tint); color: var(--color-text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ready { background: var(--color-success-bg); color: var(--color-success); }
.badge--progress { background: var(--color-bg-tint); color: var(--color-text-2); }
.badge--waiting { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--failed { background: var(--color-danger-bg); color: var(--color-danger); }
.badge--brand { background: var(--color-brand-soft-2); color: var(--color-brand-text); }
.badge--plain::before { display: none; }

/* Selo de nível CEFR */
.level { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--color-brand); color: var(--color-text-on-brand); font: var(--weight-display) var(--text-md)/1 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: -0.01em; }
.level--lg { min-width: 56px; height: 48px; font-size: var(--text-2xl); border-radius: var(--radius-md); }
.level--sm { min-width: 30px; height: 24px; font-size: var(--text-sm); border-radius: var(--radius-xs); }
.level--na { background: var(--color-bg-tint); color: var(--color-text-muted); }
/* Régua CEFR: 6 segmentos; atingidos em violeta, mínimo com marca coral */
.cefr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin: var(--space-2) 0 var(--space-1); }
.cefr span { position: relative; height: 8px; border-radius: 2px; background: var(--color-border); }
.cefr span.on { background: var(--color-brand); }
.cefr span.min::before { content: ""; position: absolute; left: -2px; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--color-accent-graphic); }
.cefr-labels { display: grid; grid-template-columns: repeat(6, 1fr); font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); text-align: center; }
.cefr-labels .cur { color: var(--color-brand-text); font-weight: var(--weight-bold); }
/* Atende / abaixo do mínimo (consultivo: nunca vermelho) */
.req { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: var(--leading-xs); white-space: nowrap; }
.req .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.req--meets { color: var(--color-success); }
.req--below { color: var(--color-warning); }
/* Recomendação consultiva */
.rec { display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 var(--space-3) 0 var(--space-2); border-radius: var(--radius-pill); font-weight: var(--weight-bold); font-size: var(--text-sm); white-space: nowrap; }
.rec .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.rec--advance { background: var(--color-success-bg); color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success-line); }
.rec--maybe { background: var(--color-warning-bg); color: var(--color-warning); box-shadow: inset 0 0 0 1px var(--color-warning-line); }
.rec--no { background: var(--color-bg-tint); color: var(--color-text-2); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.rec--lg { height: 40px; padding: 0 var(--space-4) 0 var(--space-3); font-size: var(--text-md); }
/* Nota 1–5 em pontos */
.score { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong); }
.dots i.on { background: var(--color-brand); }
.score .num { font-size: var(--text-sm); color: var(--color-text); }

/* ---------------------------------------------------------------- Cartões */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.card--tight { padding: var(--space-4); }
.card--sunken { background: var(--color-surface-sunken); border-color: transparent; }
.card--brand { background: var(--color-brand-soft); border-color: var(--color-brand-line); }
.card--interactive { cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); color: inherit; text-decoration: none; display: block; }
.card--interactive:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card-head .h3 { margin: 0; }
.stack { display: grid; gap: var(--space-4); }
.stack-lg { display: grid; gap: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* Indicador (stat) */
.stat { padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-1); }
.stat dt { font-size: var(--text-sm); line-height: 20px; color: var(--color-text-muted); display: flex; align-items: flex-start; gap: var(--space-2); }
.stat dt .stat-icon { margin-top: 2px; flex: none; }
.stat dd { margin: auto 0 0; font: var(--weight-display) var(--text-3xl)/var(--leading-3xl) var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat dd small { font: var(--weight-medium) var(--text-sm)/1 var(--font-text); color: var(--color-text-muted); letter-spacing: 0; margin-left: var(--space-1); }
.stat .stat-icon { width: 16px; height: 16px; }
.stat--accent dd { color: var(--color-brand); }

/* Avatar */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-brand-soft-2); color: var(--color-brand-text); font: var(--weight-bold) var(--text-sm)/1 var(--font-text); flex: none; }
.avatar--sm { width: 32px; height: 32px; font-size: var(--text-xs); }

/* ---------------------------------------------------------------- Progresso */
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--color-brand); transition: width var(--dur-slow) var(--ease-out); }
.progress--thin { height: 4px; }
.progress-meta { display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.progress-meta strong { color: var(--color-text); font-weight: var(--weight-semibold); }
/* Etapas segmentadas (onboarding, candidato, criar vaga) */
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.segments i { height: 4px; border-radius: 2px; background: var(--color-border); }
.segments i.done { background: var(--color-brand); }
.segments i.cur { background: linear-gradient(90deg, var(--color-brand) 50%, var(--color-border) 50%); }
/* Etapas com nome (assistente de vaga) */
.stepper { display: flex; gap: var(--space-2); margin: 0; padding: 0; list-style: none; counter-reset: st; }
.stepper li { flex: 1; counter-increment: st; }
/* Só o filho direto do <li> é a etapa; o .label de dentro é texto puro (antes recebia número e barra também) */
.stepper li > a, .stepper li > span { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-3); border-radius: 0; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; border-top: 3px solid var(--color-border); }
.stepper li > a::before, .stepper li > span::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-bg-tint); font-size: var(--text-xs); color: var(--color-text-2); }
.stepper .done > a, .stepper .done > span { color: var(--color-text-2); border-top-color: var(--color-brand); }
.stepper .done > a::before, .stepper .done > span::before { content: "✓"; background: var(--color-brand-soft-2); color: var(--color-brand-text); }
.stepper [aria-current="step"] { color: var(--color-text); border-top-color: var(--color-brand); }
.stepper [aria-current="step"]::before { background: var(--color-brand); color: #fff; }

/* ---------------------------------------------------------------- Player de citação */
.quote { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; padding: var(--space-3) 0; }
.quote + .quote { border-top: 1px solid var(--color-border); }
.play { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--color-accent); color: var(--color-text); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-standard); flex: none; }
.play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }  /* 44 px de alvo */
.play:hover { background: var(--ff-coral-600); transform: scale(1.04); }
.play:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.play .icon { width: 16px; height: 16px; stroke-width: 2.2; margin-left: 2px; }
.play .i-pause { display: none; margin-left: 0; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play--lg { width: 56px; height: 56px; }
.play--lg .icon { width: 24px; height: 24px; }
.quote-text { margin: 0; font-size: var(--text-md); line-height: var(--leading-md); color: var(--color-text); }
.quote-text::before { content: "“"; } .quote-text::after { content: "”"; }
.quote-meta { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.quote-meta .mini-wave { flex: 0 1 96px; min-width: 0; height: 16px; display: flex; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; }
.mini-wave i { flex: 0 0 2px; width: 2px; border-radius: 1px; background: var(--color-border-strong); }
.mini-wave i.on { background: var(--color-accent-graphic); }
.quote.is-playing .mini-wave i { animation: wave-sweep 1.2s var(--ease-standard) infinite; }
.quote--clamp .quote-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Player de resposta gravada */
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
/* Design system: thin fixed bars (3px, 2px gap); the count follows the player width (see fitWave in app.js). */
.player .wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 40px; }
.player .wave i { flex: 0 0 3px; width: 3px; min-width: 0; border-radius: 1.5px; background: var(--color-border-strong); }
.player .wave { position: relative; min-height: 44px; cursor: pointer; border-radius: var(--radius-sm); touch-action: manipulation; }
.player .wave i { transition: background-color 120ms linear; }
.player .wave i.on { background: var(--color-brand); }
.player .wave:hover i:not(.on) { background: var(--color-text-muted); }
.player .wave:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.player .wave.no-motion i { transition: none; }
@media (prefers-reduced-motion: reduce) { .player .wave i { transition: none; } }
.player time { font-size: var(--text-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.speed-pill { position: relative; min-width: 44px; min-height: 32px; padding: 0 var(--space-3); border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-surface); color: var(--color-text-2); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; cursor: pointer; }
.speed-pill::after { content: ""; position: absolute; inset: -6px -4px; }
.speed-pill:hover { border-color: var(--color-brand); color: var(--color-brand); }
.speed-pill:focus-visible { outline: none; box-shadow: var(--ring-focus); }
@media (max-width: 480px) { .player { gap: var(--space-2); padding: var(--space-2) var(--space-3); } .player time { font-size: var(--text-xs); } }
.job-title { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.job-title .job-ico { width: 20px; height: 20px; color: var(--color-brand); flex: none; }
.transcript .tx-body { display: block; }
.transcript .tx-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.transcript-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); }
.transcript-actions .link-btn { font-size: var(--text-sm); }
.transcript-actions [hidden] { display: none; }

/* ---------------------------------------------------------------- Gravador (candidato) */
.recorder { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-6) var(--space-4); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); text-align: center; }
.rec-btn { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--color-brand); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -8px rgb(85 48 219 / .55); transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-standard); }
.ta-c > .rec-btn, .recorder .rec-btn { margin-inline: auto; } /* círculo sempre no centro (largura fixa em bloco ou grade ia para a esquerda) */
.rec-btn:hover { background: var(--color-brand-hover); transform: scale(1.03); }
.rec-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 6px var(--color-focus); }
.rec-btn .icon { width: 36px; height: 36px; stroke-width: 1.75; }
.rec-status { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--color-accent-text); letter-spacing: .02em; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-graphic); box-shadow: 0 0 0 0 rgb(255 106 61 / .55); animation: rec-dot 1.4s var(--ease-standard) infinite; }
.rec-timer { font: var(--weight-display) var(--text-4xl)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rec-timer small { font: var(--weight-medium) var(--text-md)/1 var(--font-text); color: var(--color-text-muted); letter-spacing: 0; }
.live-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 72px; width: 100%; max-width: 300px; }
.live-wave i { width: 6px; height: 20%; border-radius: 3px; background: var(--color-accent-graphic); transition: height 90ms linear; }
.live-wave i:nth-child(3n) { background: var(--color-brand); }
.live-wave.is-css i { animation: live-bar 900ms ease-in-out infinite alternate; }
.live-wave.is-css i:nth-child(2n) { animation-duration: 700ms; }
.live-wave.is-css i:nth-child(3n) { animation-duration: 1100ms; animation-delay: -300ms; }
.live-wave.is-css i:nth-child(5n) { animation-duration: 600ms; animation-delay: -150ms; }
.rec-ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.rec-ring > svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rec-ring circle { fill: none; stroke-width: 4; }
.rec-ring .track { stroke: var(--color-border); }
.rec-ring .bar { stroke: var(--color-accent-graphic); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.btn-done { min-height: 60px; font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn-done .stop-sq { width: 16px; height: 16px; border-radius: 4px; background: currentColor; }

/* ---------------------------------------------------------------- Avisos (banner) */
.banner { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: start; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); }
.banner > .icon { margin-top: 2px; }
.banner strong { display: block; font-weight: var(--weight-semibold); }
.banner p { margin: var(--space-1) 0 0; color: var(--color-text-2); font-size: var(--text-sm); line-height: var(--leading-sm); }
.banner .btn-row { margin-top: var(--space-3); }
.banner--info { background: var(--color-brand-soft); border-color: var(--color-brand-line); }
.banner--info > .icon { color: var(--color-brand); }
.banner--warning { background: var(--color-warning-bg); border-color: var(--color-warning-line); }
.banner--warning > .icon { color: var(--color-warning); }
.banner--danger { background: var(--color-danger-bg); border-color: var(--color-danger-line); }
.banner--danger > .icon { color: var(--color-danger); }
.banner--success { background: var(--color-success-bg); border-color: var(--color-success-line); }
.banner--success > .icon { color: var(--color-success); }
.banner--ink { background: var(--color-surface-inverse); border-color: var(--color-surface-inverse); color: var(--color-text-inverse); }
.banner--ink p { color: var(--ff-neutral-200); }

/* ---------------------------------------------------------------- Toasts */
.toast-region { position: fixed; z-index: var(--z-toast); left: 50%; bottom: var(--space-6); transform: translateX(-50%); display: grid; gap: var(--space-2); width: min(420px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-inverse); color: var(--color-text-inverse); box-shadow: var(--shadow-3); font-size: var(--text-sm); line-height: var(--leading-sm); animation: toast-in var(--dur-base) var(--ease-out); }
.toast .icon { color: var(--ff-violet-200); }
.toast--success .icon { color: #8FE3B5; }
.toast--error .icon { color: #FFB39A; }
.toast .toast-action { border: 0; background: none; color: var(--ff-violet-200); font-weight: var(--weight-bold); min-height: var(--tap); padding: 0 var(--space-2); cursor: pointer; }
.toast .icon-btn { color: var(--ff-neutral-200); width: 36px; height: 36px; }
.toast .icon-btn:hover { background: rgb(255 255 255 / .1); color: #fff; }
.toast.is-static { position: static; animation: none; }

/* ---------------------------------------------------------------- Estado vazio */
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-10) var(--space-6); text-align: center; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface); }
.empty .empty-art { width: 160px; height: 96px; margin-bottom: var(--space-2); }
.empty .h3 { margin: 0; }
.empty p { max-width: 26rem; color: var(--color-text-2); margin: 0; }
.empty .btn-row { justify-content: center; margin-top: var(--space-2); }

/* ---------------------------------------------------------------- Carregamento com a marca */
.ff-loader { display: grid; justify-items: center; gap: var(--space-4); text-align: center; }
.ff-loader svg { width: 120px; height: 72px; overflow: visible; }
.ff-loader .w { fill: none; stroke: var(--color-brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 140; animation: ff-wave var(--dur-loop) linear infinite; }
.ff-loader .w2 { stroke: var(--ff-violet-400); animation-delay: -.45s; }
.ff-loader .w3 { stroke: var(--ff-violet-200); animation-delay: -.9s; }
.ff-loader .bar { fill: var(--color-accent); animation: ff-bar var(--dur-loop) var(--ease-standard) infinite; transform-origin: center; transform-box: fill-box; }
.ff-loader .out { fill: none; stroke: var(--color-brand); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 40; animation: ff-out var(--dur-loop) var(--ease-out) infinite; }
.ff-loader .out2 { stroke: var(--color-accent-graphic); animation-delay: .12s; }
.ff-loader p { margin: 0; font-weight: var(--weight-semibold); }
.ff-loader .caption { font-weight: var(--weight-regular); }
.skeleton { position: relative; overflow: hidden; border-radius: var(--radius-xs); background: var(--color-bg-tint); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .7), transparent); animation: shimmer 1.4s infinite; }
.busy-line { height: 2px; background: linear-gradient(90deg, transparent, var(--color-brand), var(--color-accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: busy 1.1s var(--ease-standard) infinite; }

/* ---------------------------------------------------------------- Lista de candidatos */
.cand-list { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.cand-head, .cand-row { display: grid; grid-template-columns: 32px minmax(156px, 2fr) minmax(196px, 1.3fr) minmax(116px, 0.8fr) minmax(116px, 1fr) minmax(116px, 1fr) 108px; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); }
.cand-head { background: var(--color-bg); border-bottom: 1px solid var(--color-border); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); min-height: 40px; }
.cand-row { position: relative; border-bottom: 1px solid var(--color-border); min-height: 76px; transition: background-color var(--dur-fast) var(--ease-standard); }
.cand-row:last-child { border-bottom: 0; }
.cand-row:hover { background: var(--color-bg); }
.cand-row.is-new::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-brand); }
.rank { font: var(--weight-display) var(--text-lg)/1 var(--font-display); color: var(--color-text-muted); font-variant-numeric: tabular-nums; text-align: center; }
.rank--top { color: var(--color-brand); }
.cand-name { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.cand-name a { color: var(--color-text); font-weight: var(--weight-semibold); text-decoration: none; }
.cand-name a:hover { color: var(--color-brand); text-decoration: underline; }
.cand-name small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.cand-langs { display: grid; gap: 6px; }
.cand-lang { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.cand-lang .lname { width: 72px; flex: none; color: var(--color-text-2); }
.cand-scores { display: grid; gap: 4px; font-size: var(--text-xs); color: var(--color-text-muted); }
.cand-scores .score-line { display: grid; grid-template-columns: 30px auto 18px; gap: var(--space-2); align-items: center; }
.quick { display: flex; gap: 4px; justify-content: flex-end; }
.quick .icon-btn { width: 40px; height: 40px; border: 1px solid var(--color-border-strong); background: var(--color-surface); }
.quick .icon-btn:hover { border-color: var(--color-text-muted); }
.quick .icon-btn.is-advance:hover { background: var(--color-success-bg); color: var(--color-success); border-color: var(--color-success-line); }

/* ---------------------------------------------------------------- Menu de idioma */
.locale { position: relative; }
.locale-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); font-weight: var(--weight-bold); font-size: var(--text-sm); cursor: pointer; position: relative; }
.locale-btn::after { content: ""; position: absolute; inset: -4px 0; }
.locale-menu { position: fixed; left: 0; top: 0; overflow-y: auto; z-index: var(--z-overlay); min-width: 200px; padding: var(--space-1); margin: 0; list-style: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-3); }
.locale-menu[hidden] { display: none; }
.locale-menu a { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; }
.locale-menu a:hover { background: var(--color-bg-tint); }
.locale-menu a[aria-current="true"] { color: var(--color-brand-text); font-weight: var(--weight-semibold); }

/* ---------------------------------------------------------------- Folha/modal */
.sheet-backdrop { position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--color-overlay); display: grid; place-items: center; padding: var(--space-4); }
.sheet { width: min(480px, 100%); background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); padding: var(--space-6); }

/* ---------------------------------------------------------------- Animações */
@keyframes rec-dot { 0% { box-shadow: 0 0 0 0 rgb(229 83 42 / .5); } 70% { box-shadow: 0 0 0 10px rgb(229 83 42 / 0); } 100% { box-shadow: 0 0 0 0 rgb(229 83 42 / 0); } }
@keyframes live-bar { from { height: 14%; } to { height: 96%; } }
@keyframes wave-sweep { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ff-wave { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@keyframes ff-bar { 0%, 100% { transform: scaleY(.82); } 45% { transform: scaleY(1.08); } }
@keyframes ff-out { 0% { stroke-dashoffset: 40; opacity: 0; } 35% { opacity: 1; } 70%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes busy { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes ring-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ff-loader .w { stroke-dasharray: none; }
  .ff-loader .out { stroke-dasharray: none; opacity: 1; }
  .live-wave i { height: 40% !important; }
}

/* ---------------------------------------------------------------- Utilitários sem estilo inline (CSP) */
.w-0{width:0}.w-10{width:10%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-40{width:40%}.w-50{width:50%}.w-60{width:60%}.w-67{width:66.7%}.w-75{width:75%}.w-80{width:80%}.w-90{width:90%}.w-100{width:100%}
.mini-wave i, .wave i, .live-wave i { height: 40%; }
.hb1{height:18%!important}.hb2{height:30%!important}.hb3{height:42%!important}.hb4{height:55%!important}.hb5{height:66%!important}.hb6{height:78%!important}.hb7{height:88%!important}.hb8{height:100%!important}
.live-wave i.hb1,.live-wave i.hb2,.live-wave i.hb3,.live-wave i.hb4,.live-wave i.hb5,.live-wave i.hb6,.live-wave i.hb7,.live-wave i.hb8{transition:height 90ms linear}
.mt-0{margin-top:0}.mt-2{margin-top:var(--space-2)}.mt-4{margin-top:var(--space-4)}.mt-6{margin-top:var(--space-6)}.mt-8{margin-top:var(--space-8)}.mb-0{margin-bottom:0}.mb-2{margin-bottom:var(--space-2)}.mb-4{margin-bottom:var(--space-4)}.mb-6{margin-bottom:var(--space-6)}
.ta-c{text-align:center}.full{width:100%}.nowrap{white-space:nowrap}

/* ---------------------------------------------------------------- Correções da rodada 1 */
[hidden] { display: none !important; }
p > .icon, .caption > .icon, .micro > .icon, h2 > .icon, h3 > .icon, label > .icon:not(.switch .icon) { display: inline-block; vertical-align: -0.2em; margin-right: 4px; }

/* ===== screens.css (v4, app e candidato) ===== */
/* =========================================================================
   FluentFilter — layouts das telas (protótipo v4)
   App do recrutador, fluxo do candidato, site, autenticação e onboarding.
   ========================================================================= */

/* ---------------------------------------------------------------- Shell do app */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5) var(--space-4); border-right: 1px solid var(--color-border); background: var(--color-bg); overflow-y: auto; }
.sidebar .brand img { width: 150px; height: auto; }
.nav { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--color-text-2); font-weight: var(--weight-medium); font-size: var(--text-sm); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.nav a:hover { background: var(--color-bg-tint); color: var(--color-text); }
.nav a[aria-current="page"] { background: var(--color-surface); color: var(--color-text); font-weight: var(--weight-semibold); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--color-border); }
.nav a[aria-current="page"] .icon { color: var(--color-brand); }
.nav .nav-count { margin-left: auto; font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.nav-label { margin: var(--space-2) var(--space-3) var(--space-1); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); }
.credit-card { padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); font-size: var(--text-sm); }
.credit-card .progress { margin: var(--space-2) 0; }
.sidebar-foot { margin-top: auto; display: grid; gap: var(--space-3); }
.human-note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); }
.human-note .icon { width: 16px; height: 16px; color: var(--color-accent-text); }
.user-chip { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); min-width: 0; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.main { min-width: 0; padding: var(--space-8) var(--space-10) var(--space-16); }
.main-inner { max-width: var(--container-app); margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-head .h1 { margin: 0; }
.page-head .caption { margin-top: var(--space-1); }
.crumbs { display: flex; align-items: center; gap: var(--space-1); margin-bottom: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.crumbs a { color: var(--color-text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.crumbs a:hover { color: var(--color-brand); }
.section-gap { margin-top: var(--space-8); }

.topbar { display: none; }
.tabbar { display: none; }

/* Seletor de vaga */
.job-switch { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); min-height: 56px; }
.job-switch .job-meta { min-width: 0; flex: 1; }
.job-switch strong { display: block; font-weight: var(--weight-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-switch small { color: var(--color-text-muted); font-size: var(--text-sm); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0 0; }  /* 16 px abaixo do cartão anterior; vem depois dos utilitários, então não depende de mt-* */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-6) 0 var(--space-3); }
.toolbar .controls { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.toolbar .select { min-height: 36px; font-size: var(--text-sm); width: auto; padding-left: var(--space-3); }
.inline-label { font-size: var(--text-sm); color: var(--color-text-muted); }

.split-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

/* Checklist de primeiro uso */
.checklist { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; font-size: var(--text-sm); }
.checklist .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--color-border-input); color: transparent; flex: none; }
.checklist .done { color: var(--color-text-muted); }
.checklist .done .tick { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.checklist .cur { font-weight: var(--weight-semibold); }
.checklist .cur .tick { border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-soft-2); }

/* Tempo economizado */
.saved { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
.saved-big { font: var(--weight-display) 3.25rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.saved-big small { font: var(--weight-semibold) var(--text-lg)/1 var(--font-text); color: var(--color-text-2); letter-spacing: 0; margin-left: var(--space-2); }
.saved-formula { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); }
.saved-formula .input { width: 72px; min-height: 36px; text-align: center; }
.saved dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: 0; }
.saved dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.saved dd { margin: 0; font: var(--weight-display) var(--text-2xl)/var(--leading-2xl) var(--font-display); font-variant-numeric: tabular-nums; }

/* Link para compartilhar */
.share-strip { display: grid; grid-template-columns: var(--tap) minmax(0, 1fr) auto; grid-template-areas: ". label ." "tile field btns" "sec sec sec"; column-gap: var(--space-3); row-gap: var(--space-2); align-items: center; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.share-strip .link-box { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-3); border-radius: var(--radius-sm); background: var(--color-bg-tint); font-size: var(--text-sm); color: var(--color-text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.share-strip .link-box span { overflow: hidden; text-overflow: ellipsis; }
.qr-thumb { width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); background: var(--color-surface); border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--color-text); }

/* Vagas */
.job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; }
.job-card .h3 { font-size: var(--text-lg); }
.job-langs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.job-nums { display: flex; gap: var(--space-6); text-align: right; }
.job-nums dt { font-size: var(--text-xs); color: var(--color-text-muted); }
.job-nums dd { margin: 0; font: var(--weight-display) var(--text-2xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Criar vaga */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-8); align-items: start; }
.wizard-aside { position: sticky; top: var(--space-6); }
.templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.template { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); text-align: left; cursor: pointer; color: inherit; min-height: 128px; transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.template:hover { border-color: var(--color-brand-line); box-shadow: var(--shadow-1); }
.template.is-selected { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); background: var(--color-brand-soft); }
.template strong { font-weight: var(--weight-semibold); }
.template small { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-sm); }
.template--blank { border-style: dashed; place-content: center; justify-items: center; text-align: center; color: var(--color-text-2); }
.vis-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-top: 1px solid var(--color-border); }
.vis-row .field { margin: 0; }
.vis-row > .switch { justify-self: end; margin-top: calc(var(--leading-sm) + var(--space-2)); } /* rótulo (20) + vão (8): fica na altura do campo */
.fieldset { border: 0; padding: 0; margin-inline: 0; margin-bottom: var(--space-6); }
.fieldset legend { padding: 0; margin-bottom: var(--space-1); font: var(--weight-display) var(--text-xl)/var(--leading-xl) var(--font-display); letter-spacing: -0.015em; }
.fieldset > .help { margin: 0 0 var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); }
.q-card { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.q-card + .q-card { margin-top: var(--space-3); }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.q-num { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.q-num b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-xs); background: var(--color-text); color: #fff; font-size: var(--text-xs); }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); flex-wrap: wrap; }
.q-answer { display: flex; align-items: center; gap: var(--space-2); }
.q-answer .select-wrap { flex: none; width: 15rem; } /* 240 px: cabe «Português» e «Inglês» com folga */
.q-answer .select { min-height: 36px; font-size: var(--text-sm); }
.q-meta { display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.lang-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.lang-card { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); }
.lang-card.is-on { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.lang-card .min-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.lang-card .min-pick button { min-height: 36px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-xs); background: var(--color-surface); font-size: var(--text-xs); font-weight: var(--weight-bold); cursor: pointer; color: var(--color-text-2); padding: 0; }
.lang-card .min-pick button[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.preview-phone { border: 1px solid var(--color-border); border-radius: 28px; background: var(--color-surface); padding: var(--space-5) var(--space-4); box-shadow: var(--shadow-2); }
.wizard-foot { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-6); margin-top: var(--space-6); border-top: 1px solid var(--color-border); }

/* ---------------------------------------------------------------- Relatório */
.report-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }
.report-head .avatar { width: 56px; height: 56px; font-size: var(--text-lg); }
.report-head .h1 { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
.decision { display: grid; gap: var(--space-2); justify-items: center; justify-self: end; width: max-content; max-width: 100%; }
.decision > .dl-cap { text-align: center; }
.decision .segmented button { min-width: 0; }
.summary-card { position: relative; overflow: hidden; }
.summary-card .rec-line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.summary-card .advisory { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-muted); }
.summary-card .advisory .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--color-accent-text); }
.reason { padding: var(--space-4) 0; border-top: 1px solid var(--color-border); }
.reason:first-of-type { border-top: 0; padding-top: 0; }
.reason-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-1); }
.reason-head strong { font-weight: var(--weight-semibold); }
.reason .quote { padding-bottom: 0; }
.lang-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--color-border); }
.lang-block:first-of-type { border-top: 0; padding-top: 0; }
.lang-block .cefr-wrap { grid-column: 1 / -1; }
.crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--color-border); font-size: var(--text-sm); }
.crit:first-of-type { border-top: 0; }
.answer { padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.answer:first-child { border-top: 0; padding-top: var(--space-2); }
.answer-q { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.answer-q b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-xs); background: var(--color-bg-tint); font-size: var(--text-xs); }
.transcript { margin: var(--space-3) 0 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-bg); font-size: var(--text-md); line-height: 1.65; color: var(--color-text); }
.transcript mark { background: var(--ff-coral-100); color: inherit; border-radius: 2px; padding: 0 2px; }
.translation { margin-top: var(--space-3); padding: var(--space-4); border-left: 3px solid var(--color-brand-line); background: var(--color-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.translation .micro { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.share-box { display: grid; gap: var(--space-3); }
.readonly-banner { display: flex; align-items: center; gap: var(--space-2); justify-content: center; min-height: 40px; padding: 0 var(--space-4); background: var(--color-bg-tint); border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-2); }

/* ---------------------------------------------------------------- Planos */
.usage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.plan.is-featured { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand), var(--shadow-2); }
.plan.is-current { background: var(--color-bg-tint); }
.plan .price { font: var(--weight-display) var(--text-5xl)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font: var(--weight-medium) var(--text-md)/1 var(--font-text); color: var(--color-text-muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); }
.plan li { display: flex; gap: var(--space-2); align-items: flex-start; }
.plan li .icon { width: 18px; height: 18px; color: var(--color-brand); margin-top: 1px; }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------------- Autenticação e onboarding */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-form { display: flex; flex-direction: column; padding: var(--space-8) var(--space-12); }
.auth-form .auth-body { width: min(400px, 100%); margin: auto; padding: var(--space-10) 0; }
.auth-art { position: relative; display: grid; align-content: center; gap: var(--space-6); padding: var(--space-12); background: var(--color-bg-tint); border-left: 1px solid var(--color-border); overflow: hidden; }
.auth-art .art-quote { font: var(--weight-display) var(--text-3xl)/var(--leading-3xl) var(--font-display); letter-spacing: -0.02em; max-width: 26rem; }
.auth-art .mini-report { max-width: 400px; box-shadow: var(--shadow-3); }
.auth-art .signal-bg { position: absolute; left: -10%; right: -10%; bottom: 24px; opacity: .55; }
.onb { min-height: 100vh; display: flex; flex-direction: column; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-8); }
.onb-top img { width: 150px; }
.onb-main { flex: 1; width: min(640px, 100%); margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-16); }
.onb-progress { margin-bottom: var(--space-8); }
.onb-progress .progress-meta { margin-bottom: var(--space-3); }
.onb-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-8); }
.msg-box { padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border-input); font-size: var(--text-md); line-height: var(--leading-md); }

/* ---------------------------------------------------------------- Fluxo do candidato */
.cshell { min-height: 100vh; display: flex; flex-direction: column; background: var(--color-bg); }
.ctop { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); max-width: 640px; width: 100%; margin: 0 auto; }
.ctop .brand img { width: 132px; }
/* Shared report: header uses the SAME box as .main + .main-inner so the logo lines up with the report's left edge and the language switch with its right edge */
.ctop--share { max-width: calc(var(--container-app) + 2 * var(--space-10)); padding: var(--space-4) var(--space-10) 0; }
@media (max-width: 1023px) { .ctop--share { max-width: calc(var(--container-app) + 2 * var(--page-pad)); padding-inline: var(--page-pad); } }
.cmain { flex: 1; width: 100%; max-width: var(--container-candidate); margin: 0 auto; padding: var(--space-4) var(--space-4) var(--space-8); display: flex; flex-direction: column; }
.cfoot { padding: var(--space-4); text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.cfoot a { color: var(--color-text-2); }
.sender { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-2); }
.sender .avatar { border-radius: var(--radius-sm); }
.facts { display: grid; gap: var(--space-2); margin: var(--space-5) 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-md); color: var(--color-text-2); }
.facts li .icon { margin-top: 2px; color: var(--color-brand); }
.cq-top { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.cq-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; font-size: var(--text-sm); color: var(--color-text-muted); }
.cq-row strong { color: var(--color-text); }
.question { font: var(--weight-display) var(--text-2xl)/var(--leading-2xl) var(--font-display); letter-spacing: -0.02em; margin: var(--space-3) 0 var(--space-6); text-wrap: pretty; }
.action-dock { position: sticky; bottom: 0; display: grid; gap: var(--space-2); padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--color-bg) 78%, rgb(250 247 242 / 0)); margin-top: auto; }
.consent-list { list-style: none; margin: var(--space-5) 0; padding: 0; display: grid; gap: var(--space-3); }
.consent-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.consent-list .choice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-brand-soft); color: var(--color-brand); }
.mic-test { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-8) var(--space-4); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); text-align: center; }
/* Teste de microfone: círculo central + halo que respira com o nível (RMS suavizado em app.js) e 7 barras centradas */
.mic-test { --mic-level: 0; }
.mic-orb { position: relative; display: grid; place-items: center; width: 136px; height: 136px; }
.mic-orb > .rec-btn { grid-area: 1 / 1; cursor: default; pointer-events: none; }
.mic-orb > .rec-btn:hover { transform: none; background: var(--color-brand); }
.mic-halo { position: absolute; inset: 24px; border-radius: 50%; background: var(--color-brand); opacity: calc(.26 * var(--mic-level)); transform: scale(calc(1 + .55 * var(--mic-level))); transform-origin: center; will-change: transform, opacity; pointer-events: none; }
.mic-meter { display: flex; align-items: center; justify-content: center; gap: 5px; height: 48px; }
.mic-meter i { --w: 1; width: 8px; border-radius: 4px; background: var(--color-border); height: 12%; }
.mic-meter.is-live i { background: var(--color-brand); height: calc(12% + 88% * var(--mic-level) * var(--w)); }
.mic-meter i:nth-child(1), .mic-meter i:nth-child(7) { --w: .42; }
.mic-meter i:nth-child(2), .mic-meter i:nth-child(6) { --w: .66; }
.mic-meter i:nth-child(3), .mic-meter i:nth-child(5) { --w: .86; }
@media (prefers-reduced-motion: reduce) {
  .mic-halo { transform: none; opacity: calc(.2 * var(--mic-level)); }
}
.mic-ok { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-success); font-weight: var(--weight-semibold); }
.done-mark { position: relative; width: 96px; height: 96px; margin: var(--space-6) auto var(--space-4); }
.done-mark svg { width: 96px; height: 96px; }
.next-steps { list-style: none; margin: var(--space-5) 0; padding: 0; display: grid; gap: 0; counter-reset: ns; text-align: left; }
.next-steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); padding: 0 0 var(--space-5); counter-increment: ns; color: var(--color-text-2); }
.next-steps li::before { content: counter(ns); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-brand-soft-2); color: var(--color-brand-text); font-weight: var(--weight-bold); font-size: var(--text-sm); }
.next-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--color-border); }
.center-stage { flex: 1; display: grid; place-content: center; justify-items: center; gap: var(--space-4); text-align: center; padding: var(--space-10) 0; }

/* ---------------------------------------------------------------- Site */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); background: rgb(250 247 242 / .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.site-header nav { display: flex; gap: var(--space-1); }
.site-header nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); color: var(--color-text-2); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); border-radius: var(--radius-sm); }
.site-header nav a:hover { color: var(--color-text); background: var(--color-bg-tint); }
.wrap { width: min(var(--container-site), 100% - 2 * var(--page-pad)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-12); align-items: center; padding: var(--space-16) 0 var(--space-12); }
.hero .lead { margin: var(--space-5) 0 var(--space-6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-6) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-text-2); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-points .icon { width: 18px; height: 18px; color: var(--color-brand); }
.sample-flag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--color-warning); background: var(--color-warning-bg); border-radius: var(--radius-pill); padding: 2px 10px; font-weight: var(--weight-semibold); }
.signal-strip { padding: var(--space-6) 0 var(--space-10); }
.signal-strip img { width: 100%; height: auto; }
.signal-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-2); }
.signal-legend strong { display: block; color: var(--color-text); font-size: var(--text-md); }
.section { padding: var(--space-20) 0; }
.section--tint { background: var(--color-bg-tint); border-block: 1px solid var(--color-border); }
.section-head { max-width: 40rem; margin-bottom: var(--space-10); }
.section-head .h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, var(--text-5xl)); line-height: 1.08; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: var(--space-5); border-top: 2px solid var(--color-text); }
.steps .step-n { font: var(--weight-display) var(--text-sm)/1 var(--font-display); color: var(--color-accent-text); letter-spacing: .04em; }
.steps .h3 { margin: var(--space-3) 0 var(--space-2); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
.feature .f-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-brand); margin-bottom: var(--space-4); }
.feature .h4 { margin-bottom: var(--space-1); }
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 64px; cursor: pointer; list-style: none; font: var(--weight-display) var(--text-lg)/var(--leading-lg) var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur-base) var(--ease-standard); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-5); color: var(--color-text-2); max-width: 42rem; }
.fine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.fine h3 { font: var(--weight-semibold) var(--text-md)/var(--leading-md) var(--font-text); margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.fine p { font-size: var(--text-sm); color: var(--color-text-2); }
.form-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-10); padding: var(--space-10); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); }
.site-footer { background: var(--color-surface-inverse); color: var(--ff-neutral-200); padding: var(--space-12) 0 var(--space-8); font-size: var(--text-sm); }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: start; }
.site-footer img { width: 160px; margin-bottom: var(--space-4); }
.site-footer .legal { color: #A79DB4; font-size: var(--text-xs); line-height: var(--leading-xs); max-width: 40rem; }
.app-foot { margin-top: var(--space-12); padding-top: var(--space-5); border-top: 1px solid var(--color-border); font-size: var(--text-xs); color: var(--color-text-muted); }
.app-foot a { color: var(--color-text-2); }

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 1100px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-aside { position: static; }
  .templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 56px; padding: 0 var(--space-2) 0 var(--space-4); background: rgb(250 247 242 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
  .topbar .brand img { width: 32px; height: 32px; }
  .topbar .t-title { flex: 1; font-weight: var(--weight-semibold); font-size: var(--text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-top: 1px solid var(--color-border); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding-top: 6px; border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: 0.75rem; font-weight: var(--weight-semibold); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--color-brand); }
  .tabbar a[aria-current="page"] .icon { stroke-width: 2.1; }
  .main { padding: var(--space-6) var(--page-pad) calc(var(--space-20) + env(safe-area-inset-bottom)); }
  .split-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: var(--space-8); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .fine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .main { padding-top: var(--space-5); }
  .page-head { margin-bottom: var(--space-4); align-items: flex-start; }
  .page-head .btn-row { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .stat { padding: var(--space-3) var(--space-4); }
  .stat dd { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .grid-2, .grid-3, .templates, .lang-pick, .plans, .steps, .features, .fine, .signal-legend { grid-template-columns: 1fr; }
  .saved { grid-template-columns: 1fr; gap: var(--space-4); }
  .saved-big { font-size: 2.5rem; }
  .card { padding: var(--space-5) var(--space-4); border-radius: var(--radius-md); }
  .toolbar { margin-top: var(--space-5); }
  .toolbar .chip-row { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--page-pad)); margin: 0 calc(-1 * var(--page-pad)); padding: 4px var(--page-pad); scrollbar-width: none; }
  .toolbar .controls { width: 100%; }
  .toolbar .controls .select-wrap { flex: 1; }
  .toolbar .controls .select { width: 100%; }
  .cand-row .cand-scores .score-line { grid-template-columns: auto auto; gap: 4px; }
  .cand-row .cand-scores .score-line .dots { display: none; }
  .share-strip { grid-template-columns: 1fr; }
  .share-strip .qr-thumb { display: none; }
  .job-card { grid-template-columns: 1fr; }
  .job-nums { text-align: left; }
  .report-head { grid-template-columns: auto minmax(0, 1fr); }
  .report-head .h1 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .report-head .decision { grid-column: 1 / -1; justify-items: stretch; justify-self: stretch; width: auto; }
  .report-head .decision .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .vis-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .vis-row > .switch { justify-self: start; margin-top: 0; }
  /* celular: rótulo em cima e seletor na largura toda, 44 px e 16 px (sem zoom no iOS) */
  .q-answer { flex-direction: column; align-items: stretch; gap: var(--space-1); width: 100%; }
  .q-answer .select-wrap { width: 100%; }
  .q-answer .select { min-height: var(--tap); font-size: var(--text-md); }
  .wizard-foot { position: sticky; bottom: 64px; background: var(--color-bg); padding-bottom: var(--space-3); }
  .stepper .label { display: none; }
  .stepper li > a, .stepper li > span { justify-content: center; padding: 0; }
  .onb-top { padding: var(--space-3) var(--space-4); }
  .onb-top .cluster { flex-wrap: nowrap; gap: var(--space-1); } /* PT e «Pular» na mesma linha do logo */
  .onb-top img { width: 132px; }
  .onb-main { padding-top: var(--space-2); }
  .onb-foot { flex-direction: column-reverse; align-items: stretch; }
  .onb-foot .btn { width: 100%; }
  .auth-form { padding: var(--space-5) var(--space-4); }
  .auth-form .auth-body { padding: var(--space-6) 0; }
  .site-header nav { display: none; }
  .hero { padding: var(--space-10) 0 var(--space-6); }
  .section { padding: var(--space-12) 0; }
  .form-card { grid-template-columns: 1fr; padding: var(--space-6) var(--space-4); gap: var(--space-6); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .usage { grid-template-columns: 1fr; }
  .question { font-size: 1.375rem; line-height: 1.875rem; }
  .toast-region { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cshell .toast-region { bottom: var(--space-4); }
  .email-frame { height: 900px; }
  .ds-section .cluster { gap: var(--space-2); }
}

/* ---------------------------------------------------------------- Complementos */
.segmented a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; min-width: 96px; padding: 0 var(--space-4); border-radius: var(--radius-pill); color: var(--color-text-2); font-weight: var(--weight-semibold); font-size: var(--text-sm); text-decoration: none; }
.segmented a[aria-current="page"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-1); }
.skeleton:not(.avatar) { display: block; height: 12px; width: 100%; }
.skeleton.avatar { background: var(--color-bg-tint); }
.sw-violet-600{background:#5530DB}.sw-violet-700{background:#4423B8}.sw-violet-800{background:#321A8C}.sw-violet-200{background:#C9BEFF}.sw-violet-100{background:#E8E2FF}.sw-violet-50{background:#F4F1FF}
.sw-coral-500{background:#FF6A3D}.sw-coral-600{background:#E5532A}.sw-coral-700{background:#B4401C}.sw-coral-100{background:#FFE7DD}
.sw-ink-900{background:#17122B}.sw-neutral-700{background:#3F3950}.sw-neutral-600{background:#6B6479}.sw-neutral-500{background:#8A8296}.sw-neutral-300{background:#D2C8BA}.sw-neutral-200{background:#E7E0D6}.sw-neutral-100{background:#F3EEE6}.sw-neutral-50{background:#FAF7F2}
.sw-green-700{background:#1E7A4E}.sw-amber-700{background:#7A5200}.sw-red-700{background:#B42318}
code { font-size: .9em; background: var(--color-bg-tint); padding: 1px 6px; border-radius: 4px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.app-col { min-width: 0; }
.user-chip span.avatar { flex: none; }
.cand-scores .score-line { grid-template-columns: 30px max-content 18px; justify-content: start; }
.cq-row span { display: inline-flex; align-items: center; gap: 4px; }
.toolbar .select { min-height: 40px; }
@media (max-width: 1023px) {
  .app { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .split-2.report-cols { display: flex; flex-direction: column; gap: var(--space-4); }
  .split-2.report-cols > .stack-lg { display: contents; }
  .o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; } .o-5 { order: 5; } .o-6 { order: 6; }
}
.split-2 > *, .split-2 .card, .player { min-width: 0; }
.player .wave { min-width: 0; overflow: hidden; }
@media (max-width: 767px) {
  .split-2.report-cols { align-items: stretch; }
  .report-head .decision .segmented button { padding: 0 var(--space-2); }
}

/* ---------------------------------------------------------------- Correção 2 */
/* Revelação (<details>): a seta (.chev) gira ao abrir; o texto do resumo troca (.if-closed / .if-open) */
.disclosure > summary .chev { transition: transform var(--dur-base) var(--ease-standard); }
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure:not([open]) > summary .if-open, .disclosure[open] > summary .if-closed { display: none; }
.notice-body { display: grid; gap: var(--space-2); margin: var(--space-1) 0 var(--space-2); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-brand-line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--color-surface); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-2); }
.notice-body p { margin: 0; }
/* Detalhes da vaga: «Mais campos» abre os 9 campos restantes, cada um com o seu interruptor */
.more-fields { border-top: 1px solid var(--color-border); }
.more-fields > summary { padding: var(--space-2) 0; }
.textarea--sm { min-height: 5rem; }
.file-pick { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.file-thumb { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); border: 1px dashed var(--color-border-input); background: var(--color-bg-tint); color: var(--color-text-muted); }
/* Resposta escrita do candidato (alternativa sem gravação) */
.write-field { margin-bottom: var(--space-2); }
.textarea--answer { min-height: 12rem; padding: var(--space-4); border-radius: var(--radius-md); line-height: 1.625; }
/* Mensagem com o link: textarea editável; o botão copia o valor atual (data-copy-from) */
textarea.msg-box { field-sizing: content; min-height: 6.5rem; } /* a mensagem inteira à vista; sem suporte a field-sizing, vale rows="6" */
/* Folha de confirmação (<dialog>): troca de áudio para escrita; no celular sobe de baixo */
.sheet { width: min(100% - 2rem, 28rem); max-width: none; padding: var(--space-6); border: 0; border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-3); }
.sheet::backdrop { background: rgb(23 18 43 / 0.5); }
.sheet .h3 { margin: 0; }
.sheet-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 767px) {
  .sheet { width: 100%; margin: auto 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .sheet-actions { flex-direction: column-reverse; }
  .sheet-actions .btn { width: 100%; }
}
.sheet--static { display: block; margin: 0; border: 1px solid var(--color-border); box-shadow: var(--shadow-2); }
@media (max-width: 767px) { .sheet--static { border-radius: var(--radius-lg); } }
@media (max-width: 480px) { .sm-hide { display: none; } } /* «Pular por enquanto» vira «Pular» no celular */
@media (max-width: 767px) {
  /* aviso no celular: o botão desce para baixo do texto (antes apertava a coluna do texto) */
  .banner { grid-template-columns: auto minmax(0, 1fr); }
  .banner > .btn { grid-column: 2; justify-self: start; }
  .banner > span:empty { display: none; }
}

/* ===== Ajustes do app real (live-v3) ===== */
/* Tudo o que o app real precisa além dos protótipos. Só classes (CSP style-src 'self'). */
.shell { min-height: 100vh; }
#app:focus { outline: none; }
.boot { min-height: 100vh; display: grid; place-items: center; }
/* Barra fina de atividade no topo (ações curtas) */
.app-busy { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-toast); display: none; }
body.busy .app-busy { display: block; }
/* Toasts ficam acima da barra de abas no celular (regra do design) e não cobrem o conteúdo no desktop */
.toast-region:empty { display: none; }
/* Entrar: código de 6 dígitos */
.input--code { font: var(--weight-display) var(--text-3xl)/1.2 var(--font-display); letter-spacing: .5em; text-align: center; padding-left: .5em; min-height: 64px; font-variant-numeric: tabular-nums; }
.auth-or { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.google-auth .google-icon { flex: none; }
.auth-mode { display: flex; width: 100%; }
.auth-mode button { flex: 1; }
.auth-body .onb-progress { margin-bottom: var(--space-6); }
.candidate-help { border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
/* Logo da empresa: avatar grande, iniciais na cor da marca ou imagem */
.avatar--lg { width: 64px; height: 64px; font-size: var(--text-xl); border-radius: var(--radius-md); }
.avatar--brand { background: var(--color-brand); color: var(--color-text-on-brand); }
.avatar--logo { background: var(--color-surface); border: 1px solid var(--color-border); overflow: hidden; }
.avatar--logo img { width: 100%; height: 100%; object-fit: contain; }
.file-thumb { overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--color-surface); }
.site-status:empty { display: none; }
.site-status { margin: 0; }
/* Fichas (idiomas no cadastro, critérios na vaga): o visto só aparece quando marcada */
.chip[data-lang-chip]:not([aria-pressed="true"]) .icon, .chip[data-criterion]:not([aria-pressed="true"]) .icon { display: none; }
/* Pop-over de QR code */
.qr-pop { margin-top: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); display: grid; justify-items: center; gap: var(--space-2); max-width: 260px; }
.share-strip .qr-pop { grid-column: 1 / -1; justify-self: start; }
.qr-box svg { display: block; width: 180px; height: 180px; }
.qr-box svg path, .qr-box svg rect { shape-rendering: crispEdges; }
/* Lista de vagas: cartão com ações (não é link inteiro) */
.job-card--app { align-items: start; }
.job-card--app .h3 a { color: inherit; text-decoration: none; }
.job-card--app .h3 a:hover { color: var(--color-brand); text-decoration: underline; }
.job-card--app .qr-pop { margin-top: var(--space-4); }
/* Criar vaga */
.wizard-spacer { flex: 1; }
.select--sm { min-height: 36px; font-size: var(--text-sm); padding-top: 0; padding-bottom: 0; }
.q-tools { gap: var(--space-1); flex-wrap: nowrap; }
.q-tools .select-wrap { width: 11rem; }
.q-meta .select-wrap { width: 12rem; }
.q-meta > label.micro { margin: 0; }
.suggest-wrap { position: relative; }
.suggest-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--z-overlay); display: grid; gap: 2px; width: min(22rem, 80vw); padding: var(--space-1); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-3); }
.suggest-pop button { text-align: left; min-height: var(--tap); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-text); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.suggest-pop button:hover, .suggest-pop button:focus-visible { background: var(--color-bg-tint); }
.tr-box:empty { display: none; }
.tr-box { display: grid; gap: var(--space-2); }
.tr-pills .tag { border: 0; cursor: pointer; font: inherit; font-size: var(--text-xs); min-height: 28px; }
.tr-pills .tag:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tr-wrap { display: grid; gap: var(--space-2); }
.tr-tablist .chip { min-height: 32px; }
.preview-questions { margin: var(--space-4) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); }
.preview-questions li { display: grid; gap: var(--space-1); justify-items: start; }
.preview-questions .tag--lang { height: 24px; font-size: var(--text-xs); }
.lang-card .check { padding: 0; }
.template[aria-pressed="true"] { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); background: var(--color-brand-soft); }
/* Painel: decisão já tomada abaixo da recomendação */
.cand-status { display: grid; gap: var(--space-1); justify-items: start; }
.cand-status .badge.mt-1 { margin-top: 0; }
.cand-name a { color: var(--color-text); font-weight: var(--weight-semibold); text-decoration: none; }
.cand-name a:hover { color: var(--color-brand); text-decoration: underline; }
.job-switch .select-wrap { max-width: 32rem; }
.job-switch .field-label { display: block; margin-bottom: var(--space-1); }
.plan-toggles { gap: var(--space-2); }
/* Relatório */
.quote-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg-tint); color: var(--color-text-2); }
.quote-icon .icon { width: 16px; height: 16px; }
.translate-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.translate-row .select-wrap { width: 12rem; }
.translate-row .select { min-height: 36px; font-size: var(--text-sm); }
#answers-panel.is-original .answer-translate { display: none; }
.answer audio, .recorder audio { display: none; }
.answer .player { margin: var(--space-3) 0; }
.report .decision .segmented button { white-space: nowrap; }
.kv { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; }
.kv dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.kv dd { margin: 0; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
/* Candidato */
.rec-ring .rec-btn { width: 88px; height: 88px; }
.rec-btn.is-recording { background: var(--color-accent-graphic); color: var(--color-text); box-shadow: 0 10px 24px -8px rgb(229 83 42 / .6); }
.rec-btn.is-recording:hover { background: var(--ff-coral-600); }
.rec-btn .stop-icon { width: 26px; height: 26px; border-radius: 6px; background: currentColor; }
.detail-list { margin: var(--space-2) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); font-size: var(--text-sm); color: var(--color-text-2); }
.candidate-visible > summary { min-height: var(--tap); }
.save-banner { margin: 0 0 var(--space-3); }
.mic-problem { margin-top: var(--space-4); }
.cmain .withdraw-link { color: var(--color-text-muted); }
.sender .avatar img { width: 100%; height: 100%; object-fit: contain; }
/* Pesquisa opcional no painel */
.survey-card .field { margin-bottom: var(--space-4); }
@media (max-width: 767px) {
  .q-tools .select-wrap, .q-meta .select-wrap, .translate-row .select-wrap { width: 100%; }
  .q-top { flex-wrap: wrap; }
  .q-tools { width: 100%; }
  .q-tools .select-wrap { flex: 1; }
  .q-meta { width: 100%; }
  .suggest-pop { right: auto; left: 0; }
  .job-card--app { grid-template-columns: minmax(0, 1fr); }
  .job-card--app .job-nums { justify-content: start; }
  .input--code { letter-spacing: .35em; font-size: var(--text-2xl); }
  .report-head .decision { width: 100%; }
  .report-head .decision .segmented { display: flex; width: 100%; }
  .report-head .decision .segmented button { flex: 1; min-width: 0; white-space: normal; line-height: 1.2; }
  .share-strip .btn-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .app-busy { animation: none; }
}
/* Títulos recebem foco por programa a cada troca de tela (leitor de tela); não são interativos, sem contorno */
#app h1[tabindex="-1"]:focus, #app .question[tabindex="-1"]:focus { outline: none; box-shadow: none; }
/* Gravador: estado, medidor e tempo centralizados; etiqueta de idioma com a largura do texto */
.recorder .rec-status, .recorder .live-wave, .recorder .rec-timer { justify-self: center; margin-inline: auto; }
.cmain > .tag, .cmain > .answer-badge { align-self: flex-start; }
.preview-banner { margin-bottom: var(--space-4); }
/* Avisos (toasts) no topo onde há botão fixo embaixo (candidato, cadastro, entrar) e em todo celular:
   embaixo eles cobriam «Continuar», «Terminei» e o rodapé fixo do assistente de vaga. */
.shell--cand ~ .toast-region, .shell--onb ~ .toast-region, .shell--auth ~ .toast-region, .shell--share ~ .toast-region { top: var(--space-4); bottom: auto; }
@media (max-width: 767px) {
  .toast-region { top: calc(var(--space-3) + env(safe-area-inset-top)); bottom: auto; }
}
/* Motivos: «Pergunta N · título» numa linha, cortado com reticências (o título inteiro está nas respostas) */
.quote-meta .quote-q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-meta { min-width: 0; }
/* A coluna do texto precisa poder encolher: com «1fr» o mínimo era a linha inteira do título e o relatório
   passava de 390 px no celular (chegava a 860-980 px). O tempo do áudio fica fora do corte. */
.quote { grid-template-columns: auto minmax(0, 1fr); }
.quote > div { min-width: 0; }
.quote-meta .quote-time { flex: none; white-space: nowrap; }

/* Coluna de conteúdo: um único ritmo vertical entre blocos (avisos, cartões, contadores, filtros).
   O espaço vem do gap do contêiner, não de margens por elemento; blocos vazios somem. */
.page-stack { display: flex; flex-direction: column; gap: var(--space-5); }
.page-stack > :empty { display: none; }
.page-stack > * { margin: 0; min-width: 0; }
.page-stack > * > :first-child { margin-top: 0; }
.page-stack > * > :last-child { margin-bottom: 0; }
.page-stack > * > .stats { margin: 0; }
.page-stack > * > .toolbar { margin: 0; }
#dash-banners { display: flex; flex-direction: column; gap: var(--space-4); }
#dash-banners > *, .page-stack > .banner { margin: 0; }

/* ---- Menu: "Create a job" as the primary action on top of the nav */
.nav .nav-cta { margin-bottom: var(--space-3); }
.nav .nav-cta a.btn { min-height: 44px; justify-content: center; padding: 0 var(--space-4); background: var(--color-brand); color: var(--color-text-on-brand); font-weight: var(--weight-semibold); box-shadow: none; }
.nav .nav-cta a.btn:hover { background: var(--ff-violet-700); color: var(--color-text-on-brand); }
.nav .nav-cta a.btn .icon { color: inherit; }
.nav .nav-cta a.btn[aria-current="page"] { background: var(--ff-violet-700); box-shadow: var(--ring-focus); }

/* ---- Client or team pill, small tag */
.tag--team { background: var(--color-bg-tint); color: var(--color-text); border: 1px solid var(--color-border-strong); max-width: 100%; }
.tag--team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag--sm { height: 22px; padding: 0 var(--space-2); font-size: var(--text-xs); }
.job-team-line { margin-top: var(--space-2); }
.job-activity { margin: var(--space-2) 0 0; }

/* ---- Jobs page: search, filters, sort */
.jobs-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.search-box { position: relative; flex: 1 1 260px; min-width: 0; }
.search-box .input { padding-left: 40px; }
.search-box .search-icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); display: grid; color: var(--color-text-muted); pointer-events: none; }
.jobs-select { flex: 0 0 190px; }
.team-filter { position: relative; }
.team-filter .btn { gap: var(--space-2); }
.team-btn-count:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-brand); color: var(--color-text-on-brand); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.team-filter .btn.has-filter { border-color: var(--color-brand); }
.popover { position: fixed; left: 0; top: 0; z-index: var(--z-overlay); min-width: 260px; max-height: min(360px, 60vh); overflow-y: auto; padding: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-3); }
.popover[hidden] { display: none; }
.team-opt { padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); }
.team-opt:hover { background: var(--color-bg-tint); }
.team-foot { display: flex; justify-content: flex-end; padding: var(--space-2) var(--space-2) 0; border-top: 1px solid var(--color-border); margin-top: var(--space-2); }
.jobs-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.jobs-summary .caption { margin: 0; }
.chip.is-active-filter { background: var(--color-brand-soft); border-color: var(--color-brand-line); color: var(--color-brand-text); }
.chip.is-active-filter .icon:last-child { opacity: .7; }

/* ---- Job picker (Candidates) */
.job-picker { position: relative; }
.picker-trigger { display: flex; align-items: center; gap: var(--space-2); width: 100%; max-width: none; min-height: var(--tap); padding: 0 var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.picker-trigger:hover { border-color: var(--color-text-muted); }
.picker-trigger:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.picker-trigger[aria-expanded="true"] { border-color: var(--color-brand); }
.picker-trigger .picker-value { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--weight-semibold); }
.picker-trigger .picker-count { margin-left: auto; color: var(--color-text-muted); font-size: var(--text-sm); white-space: nowrap; }
.picker-trigger .tag--team { flex: 0 1 auto; min-width: 0; }
.picker-panel { position: fixed; left: 0; top: 0; z-index: var(--z-overlay); display: flex; flex-direction: column; width: min(540px, calc(100vw - 16px)); max-height: min(560px, 72vh); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.picker-panel[hidden], .picker-backdrop[hidden] { display: none; }
.picker-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-overlay) - 1); background: var(--color-overlay); }
.picker-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border-bottom: 1px solid var(--color-border); }
.picker-head .search-box { flex: 1; }
.picker-close { display: none; }
.picker-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); }
.picker-filters .chip-row { flex: 1 1 auto; min-width: 0; }
.picker-filters .chip { min-height: 32px; }
.segmented--sm button { min-height: 30px; min-width: 0; padding: 0 var(--space-3); font-size: var(--text-sm); }
.picker-list { flex: 1; min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.picker-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-3); padding: var(--space-3) var(--space-4); cursor: pointer; border-bottom: 1px solid var(--color-border); }
.picker-opt:last-child { border-bottom: 0; }
.picker-opt.is-active { background: var(--color-bg-tint); }
.picker-opt[aria-selected="true"] .pk-title { color: var(--color-brand-text); }
.picker-opt > .icon { color: var(--color-brand); order: 2; flex: none; }
.pk-main { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); flex: 1 1 0; min-width: 0; }
.pk-title { font-weight: var(--weight-semibold); overflow: hidden; text-overflow: ellipsis; }
.pk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); flex: 1 0 100%; order: 3; color: var(--color-text-muted); font-size: var(--text-sm); }
.picker-pin--top, .picker-pin--bottom { position: sticky; z-index: 1; background: var(--color-surface); }
.picker-pin--top { top: 0; }
.picker-pin--top .pk-meta { flex: 0 0 auto; order: 1; }
.picker-pin--bottom { bottom: 0; border-top: 1px solid var(--color-border); border-bottom: 0; }
.picker-pin--bottom.is-active { background: var(--color-bg-tint); }
.pk-create { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-brand-text); }
.new-dot { order: 2; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-soft); }
.picker-empty { padding: var(--space-5) var(--space-4); text-align: center; color: var(--color-text-muted); }
body.has-sheet { overflow: hidden; }
@media (max-width: 640px) {
  .jobs-select { flex: 1 1 calc(50% - var(--space-2)); }
  .team-filter { flex: 1 1 100%; }
  .team-filter .btn { width: 100%; justify-content: center; }
  .picker-panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0); }
  .picker-panel::before { content: ""; align-self: center; width: 40px; height: 4px; margin: var(--space-2) 0 0; border-radius: 2px; background: var(--color-border-strong); flex: none; }
  .picker-close { display: inline-grid; }
  .picker-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .picker-filters .chip-row { flex-wrap: nowrap; }
  .picker-trigger { max-width: none; }
  .popover { min-width: 0; width: calc(100vw - 16px); }
}
@media (prefers-reduced-motion: no-preference) {
  .picker-panel[data-mode="sheet"] { animation: pk-sheet .18s ease-out; }
  @keyframes pk-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------------------------------------------------------------- Job owner (combobox + Settings list) */
.owner-combo { position: relative; }
.owner-input-wrap { position: relative; display: flex; align-items: center; }
.owner-input-wrap .input { width: 100%; padding-right: 48px; }
.owner-clear { position: absolute; right: var(--space-1); top: 50%; transform: translateY(-50%); }
.owner-list { padding: var(--space-1); list-style: none; margin: 0; }
.owner-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap); padding: 0 var(--space-3); border-radius: var(--radius-sm); cursor: pointer; color: var(--color-text); }
.owner-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-opt.is-active, .owner-opt:hover { background: var(--color-bg-tint); }
.owner-opt[aria-selected="true"] { font-weight: var(--weight-semibold); color: var(--color-brand-text); }
.owner-add { justify-content: flex-start; color: var(--color-brand-text); font-weight: var(--weight-semibold); }
.owner-field .caption { margin-top: var(--space-2); }
.owner-add-form { display: flex; gap: var(--space-3); align-items: stretch; flex-wrap: wrap; }
.owner-add-form .input { flex: 1 1 220px; min-width: 0; }
.owner-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.owner-row { display: flex; align-items: center; gap: var(--space-3) var(--space-4); flex-wrap: wrap; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.owner-row .owner-name { display: inline-flex; align-items: center; gap: var(--space-2); flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.owner-row .input { flex: 1 1 200px; min-width: 0; }
.owner-row .btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.owner-row.is-confirming { border-color: var(--color-danger-line); background: var(--color-danger-bg); }
.owner-confirm { flex: 1 1 260px; margin: 0; }
.owner-empty { list-style: none; padding: var(--space-3) 0; }

/* ---------------------------------------------------------------- Share panel (link, QR code, message) */
.share-pop { width: min(440px, calc(100vw - 16px)); max-height: min(680px, 88vh); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); border-radius: var(--radius-lg); }
.share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.share-head-text { min-width: 0; }
.share-head .h4, .share-head .share-job { margin: 0; overflow-wrap: anywhere; }
.share-sec { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.share-sec .label-caps { margin: 0; }
.share-link { display: flex; gap: var(--space-2); align-items: stretch; }
.share-link .input { flex: 1 1 auto; min-width: 0; text-overflow: ellipsis; }
.share-qr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.share-qr .qr-box { padding: var(--space-2); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.share-qr .qr-actions { flex: 1 1 160px; flex-direction: column; align-items: stretch; }
.share-qr .qr-actions .btn { justify-content: flex-start; }
.qr-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.qr-pop .qr-actions { justify-content: center; }
.share-msg { margin: 0; }
.share-msg-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.share-msg-meta .caption { margin: 0; }
.share-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.share-preview { margin-top: var(--space-3); padding: var(--space-3); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg-tint); }
.share-preview .label-caps { display: block; margin-bottom: var(--space-1); }
.share-preview-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-sm); }
.share-msg .btn-row { margin-top: var(--space-3); }
.share-pop .share-sec .btn-row { margin-top: 0; }
@media (max-width: 640px) {
  .share-pop[data-mode="sheet"] { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
  .share-qr .qr-actions { flex-direction: row; }
}
@media (prefers-reduced-motion: no-preference) {
  .share-pop[data-mode="sheet"] { animation: pk-sheet .18s ease-out; }
}
.pk-main .pk-create { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: var(--space-2); white-space: nowrap; overflow: visible; }
.fieldset.mt-6 { margin-top: var(--space-6); }
.owner-rows { margin-top: var(--space-4); }
.owner-add-form { margin-top: var(--space-4); }

/* ---------------------------------------------------------------- Share section (inline, expands the job card) */
.share-inline { grid-column: 1 / -1; container-type: inline-size; min-width: 0; }
.share-inline[hidden] { display: none; }
.share-inline-inner, .share-inline > .share-inline-head { }
.share-inline { padding-top: 0; }
.share-inline:not([hidden]) { margin-top: var(--space-2); border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.share-inline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.share-inline-head h3 { outline: none; }
.share-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); align-items: start; }
.share-col { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.share-col .label-caps { margin: 0; }
.share-col .field { margin: 0; }
.share-col--msg { padding-right: var(--space-2); }
.share-col .share-linkfield .input { text-overflow: ellipsis; }
.share-copy-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.share-col .share-qr { flex-direction: column; align-items: center; gap: var(--space-3); }
.share-col .share-qr .qr-box svg { width: 208px; height: 208px; max-width: 100%; }
.share-col .share-qr .qr-actions { flex: none; flex-direction: column; align-items: stretch; width: 100%; max-width: 240px; }
.share-col .share-qr .qr-actions .btn { justify-content: flex-start; }
.share-col .textarea { resize: none; overflow: hidden; min-height: 7.5rem; }
@container (max-width: 639px) {
  .share-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .share-col--msg { padding-right: 0; }
  .share-col .share-qr { align-items: flex-start; }
}
.share-strip .share-inline:not([hidden]) { margin-top: 0; }

/* Job link strip (Candidates): tile, field and buttons share one row, all --tap tall, vertically centred; label sits above the field */
.share-strip .share-strip-label { grid-area: label; margin: 0; }
.share-strip .qr-thumb { grid-area: tile; }
.share-strip .link-box { grid-area: field; height: var(--tap); }
.share-strip > .btn-row { grid-area: btns; margin: 0; align-items: center; flex-wrap: nowrap; }
.share-strip > .btn-row .btn { min-height: var(--tap); height: var(--tap); }
.share-strip > .share-inline { grid-area: sec; }
@media (max-width: 767px) {
  .share-strip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "field" "btns" "sec"; }
  .share-strip > .btn-row { width: 100%; flex-wrap: wrap; }
  .share-strip > .btn-row .btn { flex: 1 1 8rem; justify-content: center; }
}

/* Plan page: 4 cards (Free, 40, 150, Custom). Columns follow the width of the plan area, not the viewport, because the app has a sidebar. */
.plans-wrap { container-type: inline-size; }
.plans-wrap .plans { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 520px) { .plans-wrap .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 860px) { .plans-wrap .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan .price--text { font-size: var(--text-3xl); line-height: 1.1; letter-spacing: -0.02em; }
.plan .plan-unit { margin: 0; }
.plan--custom .btn { margin-top: auto; }
.plans .plan > .btn, .plans .plan > a.btn { margin-top: auto; justify-content: center; }
.custom-contact[hidden] { display: none; }
.custom-contact .check { min-height: 0; padding: var(--space-2) 0; }
.custom-contact .form-status { min-height: 1.25rem; margin: 0; }
.custom-contact .form-status[data-state="ok"] { color: var(--color-success, #0a6b3d); font-weight: var(--weight-semibold); }
.custom-contact .form-status[data-state="error"] { color: var(--color-danger, #b3261e); font-weight: var(--weight-semibold); }
.plans .plan > .btn, .plans .plan > a.btn { white-space: normal; text-align: center; height: auto; padding-top: var(--space-2); padding-bottom: var(--space-2); line-height: 1.25; }

/* ---------------------------------------------------------------- Share message editor (variable chips) */
.rte { position: relative; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface); transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.rte:hover { border-color: var(--color-text-2); }
.rte:focus-within { border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-soft-2); }
.rte:has(.rte-surface[aria-invalid="true"]) { border-color: var(--color-danger); }
.rte-surface { min-height: 6.5rem; padding: var(--space-3); outline: none; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; font-size: var(--text-base); color: var(--color-text); cursor: text; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.rte-surface.is-dropping { background: var(--color-brand-soft); }
.rte-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--color-border); background: var(--color-bg-tint); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.rte-foot-start { position: relative; }
.rte-foot-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-1) var(--space-3); margin-left: auto; }
.rte-foot .caption { margin: 0; }
.rte-foot .btn { white-space: nowrap; }
.share-status { text-align: right; color: var(--color-text-muted); }
.share-status[data-state="saved"] { color: var(--color-success); font-weight: var(--weight-semibold); }
.share-status[data-state="error"], .share-status[data-state="over"], .share-count.is-over { color: var(--color-danger); font-weight: var(--weight-semibold); }
.rte-menu { position: absolute; left: 0; bottom: calc(100% + var(--space-2)); z-index: 30; display: flex; flex-direction: column; min-width: 14rem; padding: var(--space-1); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(15,17,21,.14); }
.rte-menu[hidden] { display: none; }
.rte-item { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-text); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; }
.rte-item:hover, .rte-item:focus-visible { background: var(--color-brand-soft); color: var(--color-brand-text); outline: none; }
.rte-item[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.vchip { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; margin: 0 1px; padding: 0 var(--space-2) 0 var(--space-3); min-height: 28px; line-height: 1.2; border: 1px solid var(--color-brand-line); border-radius: var(--radius-pill); background: var(--color-brand-soft); color: var(--color-brand-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; cursor: grab; user-select: none; -webkit-user-select: none; }
.vchip .icon { width: 14px; height: 14px; margin-left: -4px; }
.vchip--required { padding-right: var(--space-3); background: var(--color-brand-text); border-color: var(--color-brand-text); color: var(--color-text-inverse); }
.vchip.is-dragging { opacity: .45; }
.vchip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; cursor: pointer; }
.vchip-x .icon { width: 12px; height: 12px; margin: 0; }
.vchip-x:hover { background: var(--color-brand-soft-2); }
.share-msg-help { margin: var(--space-2) 0 0; }
.share-confirm { padding: var(--space-3); border: 1px solid var(--color-warning-line); border-radius: var(--radius-md); background: var(--color-warning-bg); }
.share-confirm[hidden] { display: none; }
.share-confirm p { margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.share-confirm .btn-row { margin-top: 0; }
.share-col .rte-surface { min-height: 7.5rem; }
.ready-share .share-msg { margin: 0; }
@media (max-width: 480px) { .rte-foot-end { margin-left: 0; justify-content: flex-start; } .share-status { text-align: left; } }

/* Job picker: the trigger spans the whole card and the dropdown matches its width */
.job-picker .job-meta { flex: 1 1 0; min-width: 0; }
.job-picker .picker-trigger { flex: 1 1 auto; width: 100%; max-width: none; }
.job-picker .picker-trigger .picker-value { flex: 1 1 auto; }
.job-picker .picker-trigger .picker-count { margin-left: 0; flex: none; }
.job-picker .picker-trigger > .icon:last-child { flex: none; color: var(--color-text-muted); }
.picker-panel { max-width: calc(100vw - 16px); }
/* Job picker alignment: icon sits inline with the "Job" label; the select below starts on the card's left padding edge */
.job-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-2); row-gap: var(--space-2); align-items: center; padding: var(--space-5) var(--space-6); min-height: 0; }
.job-picker .job-meta { display: contents; }
.job-picker .choice-icon { grid-column: 1; grid-row: 1; width: 20px; height: 20px; background: none; border-radius: 0; color: var(--color-text-2); }
.job-picker .choice-icon .icon { width: 20px; height: 20px; }
.job-picker .field-label { grid-column: 2; grid-row: 1; margin: 0; line-height: 20px; }
.job-picker .picker-trigger { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 767px) { .job-picker { padding: var(--space-4); } }


/* Sidebar footer: nothing may outgrow the column (long emails truncate with an ellipsis; the title attribute carries the full address) */
.sidebar { box-sizing: border-box; width: 100%; min-width: 0; overflow-x: hidden; }
.sidebar > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.sidebar .nav, .sidebar .nav li { min-width: 0; max-width: 100%; }
.sidebar .nav a { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.sidebar .nav a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: var(--radius-sm); }
.sidebar-foot { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.sidebar-foot .between { flex-wrap: nowrap; min-width: 0; width: 100%; }
.sidebar-foot .user-chip { flex: 1 1 0; min-width: 0; }
.sidebar-foot .user-chip .user-email { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .locale { flex: none; }
.sidebar .credit-card, .sidebar .human-note { min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }

/* The user block (avatar + email) is a link to Settings */
a.user-chip { box-sizing: border-box; min-height: 44px; padding: 0 var(--space-2); margin: 0 calc(-1 * var(--space-2)); border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard); }
a.user-chip:hover { background: var(--color-bg-tint); }
a.user-chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
a.user-chip[aria-current="page"] { background: var(--color-surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--color-border); font-weight: var(--weight-semibold); }
.sidebar-foot .between { padding: 0; }

/* ---- Account settings (v4.3) ---- */
.acct-card .field{margin-bottom:var(--space-4)}
.acct-status{display:flex;gap:var(--space-3);flex-wrap:wrap;align-items:baseline}
.acct-status #acct-name-status{min-width:5.5rem;font-weight:var(--weight-semibold);color:var(--color-success,var(--color-text-muted))}
.acct-row{display:flex;align-items:center;gap:var(--space-3);min-width:0;flex-wrap:wrap}
.acct-email{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere;color:var(--color-text)}
.acct-sub{display:grid;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-2,transparent)}
.acct-sub>label{font-weight:var(--weight-semibold);font-size:var(--text-sm)}
.acct-code{letter-spacing:.35em;font-variant-numeric:tabular-nums;max-width:12rem}
.danger-card{border-color:var(--color-danger-line)}
.danger-card h2{display:flex;align-items:center;gap:var(--space-2);color:var(--color-danger)}
.user-text{display:grid;min-width:0;line-height:1.25}
.user-name{font-weight:var(--weight-semibold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-text .user-email{font-size:var(--text-xs,.75rem);color:var(--color-text-muted)}
.user-chip .user-text{flex:1 1 0;min-width:0}
.acct-card{min-width:0}
.acct-card .field{grid-template-columns:minmax(0,1fr);min-width:0}
.acct-card .kv dd{overflow-wrap:anywhere}
.danger-card .field>label{overflow-wrap:anywhere}

/* Google button: official brand layout (white, 1px #747775 border, #1F1F1F text, 18px logo, 10px gap, state layers 8% / 12%) */
.btn.google-auth{--btn-bg:#fff;--btn-fg:#1f1f1f;--btn-bd:#747775;background:#fff;color:#1f1f1f;border:1px solid #747775;border-radius:4px;font-family:Roboto,Arial,"Figtree",sans-serif;font-weight:500;font-size:14px;letter-spacing:.25px;gap:10px;padding:0 12px;min-height:44px}
.btn.google-auth:hover{background:#fff linear-gradient(rgba(48,48,48,.08),rgba(48,48,48,.08));color:#1f1f1f}
.btn.google-auth:focus-visible,.btn.google-auth:active{background:#fff linear-gradient(rgba(48,48,48,.12),rgba(48,48,48,.12));color:#1f1f1f}
.btn.google-auth:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}

/* Team: invitations, members, roles */
.team-card{min-width:0}
.team-card h2{display:flex;align-items:center;gap:var(--space-2)}
.team-invite{display:grid;gap:var(--space-4);max-width:640px}
.team-invite .field{margin:0;grid-template-columns:minmax(0,1fr);min-width:0}
.team-invite textarea.input{resize:vertical;min-height:72px;font:inherit}
.team-role-field .select-wrap{max-width:240px}
.team-results{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-2)}
.team-results:empty{display:none}
.team-result{display:flex;align-items:flex-start;gap:var(--space-2);font-size:var(--text-sm);overflow-wrap:anywhere}
.team-result .icon{flex:none;margin-top:2px}
.team-result.is-ok .icon{color:var(--color-success)}
.team-result.is-bad .icon{color:var(--color-danger)}
.team-sub{display:flex;align-items:baseline;gap:var(--space-2);margin:var(--space-6) 0 var(--space-3)}
.team-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-3)}
.team-row{display:flex;align-items:center;gap:var(--space-3) var(--space-4);flex-wrap:wrap;padding:var(--space-3) var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-width:0}
.team-row .avatar{flex:none}
.avatar--ghost{background:var(--color-surface-sunken);color:var(--color-text-muted)}
.team-who{display:flex;flex-direction:column;gap:2px;flex:1 1 200px;min-width:0}
.team-name{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
.team-mail{overflow-wrap:anywhere;font-size:var(--text-sm)}
.team-actions{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
.team-actions .select-wrap{min-width:132px}
.team-row.is-confirming{border-color:var(--color-danger-line);background:var(--color-danger-bg)}
.team-row.is-confirming .owner-confirm{flex:1 1 240px;margin:0;overflow-wrap:anywhere}
.company-readonly{align-items:center;gap:var(--space-3)}
.join-card{max-width:560px;margin-inline:auto}
.join-card .center-stage{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);text-align:center}
.join-actions{justify-content:center}
.join-banner{margin-bottom:var(--space-6)}
@media (max-width:640px){
  .team-row{padding:var(--space-3)}
  .team-actions{width:100%}
  .team-actions .select-wrap{flex:1 1 140px}
  .team-actions .btn{flex:1 1 auto;justify-content:center}
  .join-actions{flex-direction:column;align-items:stretch;width:100%}
}
.transcript-actions [data-copy] { margin-left: auto; }

/* Collapsible transcript and machine translation (header toggle, state remembered) */
.sect-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.sect-head .micro { margin: 0; }
.sect-title { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--color-text-2, var(--color-text)); }
.sect-toggle { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-brand); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer; }
.sect-toggle:hover { color: var(--color-brand-hover); text-decoration: underline; }
.sect-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sect-toggle .chev { transition: transform var(--dur-fast) var(--ease-standard); transform: rotate(180deg); }
.sect-toggle[aria-expanded="false"] .chev { transform: none; }
.sect-body[hidden] { display: none; }
.translation .sect-head { margin-top: 0; }
.sect .transcript { margin-top: 0; }

/* Decision control: pointer cursor, semantic hover, filled selected state (AA contrast), keyboard focus ring */
.decision .segmented button[data-action] { cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.decision .segmented button[data-action]:disabled { cursor: not-allowed; opacity: .6; }
.decision .segmented button[data-action]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: 1; }
.decision .segmented button[data-action="Advance"]:not([aria-pressed="true"]):hover { background: var(--color-success-bg); color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success-line); }
.decision .segmented button[data-action="Hold"]:not([aria-pressed="true"]):hover { background: var(--color-warning-bg); color: var(--color-warning); box-shadow: inset 0 0 0 1px var(--color-warning-line); }
.decision .segmented button[data-action="Not a fit"]:not([aria-pressed="true"]):hover { background: var(--color-danger-bg); color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger-line); }
.decision .segmented button[data-action="Advance"]:not([aria-pressed="true"]):focus-visible { background: var(--color-success-bg); color: var(--color-success); }
.decision .segmented button[data-action="Hold"]:not([aria-pressed="true"]):focus-visible { background: var(--color-warning-bg); color: var(--color-warning); }
.decision .segmented button[data-action="Not a fit"]:not([aria-pressed="true"]):focus-visible { background: var(--color-danger-bg); color: var(--color-danger); }
.decision .segmented button[data-action="Advance"][aria-pressed="true"] { background: var(--color-success); color: #fff; box-shadow: none; }
.decision .segmented button[data-action="Hold"][aria-pressed="true"] { background: var(--color-warning); color: #fff; box-shadow: none; }
.decision .segmented button[data-action="Not a fit"][aria-pressed="true"] { background: var(--color-danger); color: #fff; box-shadow: none; }

/* Candidate contact: email line, quick-contact button and menu, report header row */
.cand-name small.cand-email { margin-top: 1px; }
.cand-name small a { color: var(--color-text-muted); font-weight: var(--weight-regular, 400); text-decoration: underline; text-decoration-color: var(--color-border-strong); word-break: break-all; }
.cand-name small a:hover { color: var(--color-brand); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-2); margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-2); min-width: 0; }
.contact-line a { color: var(--color-brand); overflow-wrap: anywhere; }
.contact-line .dot { color: var(--color-text-muted); }
.contact-wrap { position: relative; display: inline-flex; }
.contact-menu { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; min-width: 210px; max-width: min(280px, calc(100vw - 32px)); padding: 4px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-3, 0 8px 24px rgba(23, 18, 43, .16)); }
.contact-menu[hidden] { display: none; }
.contact-row .contact-menu { left: 0; right: auto; }
.contact-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); text-align: left; text-decoration: none; cursor: pointer; }
.contact-item:hover, .contact-item:focus-visible { background: var(--color-bg-tint); }
.contact-item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.contact-setting .field { margin: 0; }
#contact-settings .vis-row { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) { .contact-menu { right: auto; left: auto; inset-inline-end: 0; } .contact-row .contact-menu { inset-inline-start: 0; inset-inline-end: auto; } }
.cand-list:has(.contact-menu:not([hidden])) { overflow: visible; }

/* History, notes and shared-link recommendations */
/* Decision label: ONE component for AI suggestion, hiring team decision, shared-link and own recommendations */
.dl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-2); min-width: 0; vertical-align: middle; }
.dl--stack { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: var(--space-1); }
.dl-cap { font-size: var(--text-xs); line-height: 1.2; font-weight: var(--weight-bold); color: var(--color-text-muted); letter-spacing: .06em; text-transform: uppercase; }
.dl .rec { height: 28px; }
.dl-pills { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.rec--sm { height: 24px; padding: 0 var(--space-2) 0 var(--space-1); font-size: var(--text-xs); gap: var(--space-1); }
.rec--sm .icon { width: 14px; height: 14px; }
.summary-card .rec-line .dl { gap: var(--space-2); }
.report-head .caption .dl { margin-inline-start: var(--space-1); }
.rec--hold { background: var(--color-warning-bg); color: var(--color-warning); box-shadow: inset 0 0 0 1px var(--color-warning-line); }
.rec--notfit { background: var(--color-danger-bg); color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger-line); }
.link-tally { margin-top: var(--space-1); }
.history-card .stack { gap: var(--space-6); }
.hist-list, .hist-sub { display: grid; gap: var(--space-3); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.hist-item { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); min-width: 0; }
.hist-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); min-width: 0; }
.hist-mail { color: var(--color-brand); font-size: var(--text-sm); overflow-wrap: anywhere; }
.hist-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.hist-label { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-text-muted); letter-spacing: .06em; text-transform: uppercase; }
.hist-note { margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.hist-tally { margin: var(--space-2) 0 var(--space-3); font-size: var(--text-sm); }
.hist-src { font-weight: var(--weight-semibold); }
.hist-earlier { border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
.hist-earlier summary { cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-2); min-height: 32px; display: flex; align-items: center; }
.hist-earlier summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.hist-sub li { display: grid; gap: var(--space-1); justify-items: start; }
.note-bar { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-top: var(--space-1); }
.note-status { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--color-text-muted); }
.note-status[data-state="saved"] { color: var(--color-success); }
.note-status[data-state="failed"] { color: var(--color-danger); }
.link-btn { padding: 0; border: 0; background: none; color: var(--color-brand); font: inherit; font-weight: var(--weight-semibold); text-decoration: underline; cursor: pointer; }
.switch-row { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.switch-row input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--color-brand); }
.switch-row span { display: grid; gap: 2px; font-size: var(--text-sm); }
.switch-row small { color: var(--color-text-muted); font-size: var(--text-xs); }
.share-feedback { max-width: none; }
.share-feedback .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.rec-choice .segmented { display: inline-flex; }
.rec-choice .segmented button { min-width: 0; white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .share-feedback .field-row { grid-template-columns: minmax(0, 1fr); }
  .rec-choice .segmented { display: flex; width: 100%; }
  .rec-choice .segmented button { flex: 1; white-space: normal; line-height: 1.2; padding: 0 var(--space-2); }
}
.rec-choice .segmented button[data-rec] { cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.rec-choice .segmented button[data-rec]:disabled { cursor: not-allowed; opacity: .6; }
.rec-choice .segmented button[data-rec]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: 1; }
.rec-choice .segmented button[data-rec="Advance"]:not([aria-pressed="true"]):hover { background: var(--color-success-bg); color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success-line); }
.rec-choice .segmented button[data-rec="Hold"]:not([aria-pressed="true"]):hover { background: var(--color-warning-bg); color: var(--color-warning); box-shadow: inset 0 0 0 1px var(--color-warning-line); }
.rec-choice .segmented button[data-rec="Not a fit"]:not([aria-pressed="true"]):hover { background: var(--color-danger-bg); color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger-line); }
.rec-choice .segmented button[data-rec="Advance"]:not([aria-pressed="true"]):focus-visible { background: var(--color-success-bg); color: var(--color-success); }
.rec-choice .segmented button[data-rec="Hold"]:not([aria-pressed="true"]):focus-visible { background: var(--color-warning-bg); color: var(--color-warning); }
.rec-choice .segmented button[data-rec="Not a fit"]:not([aria-pressed="true"]):focus-visible { background: var(--color-danger-bg); color: var(--color-danger); }
.rec-choice .segmented button[data-rec="Advance"][aria-pressed="true"] { background: var(--color-success); color: #fff; box-shadow: none; }
.rec-choice .segmented button[data-rec="Hold"][aria-pressed="true"] { background: var(--color-warning); color: #fff; box-shadow: none; }
.rec-choice .segmented button[data-rec="Not a fit"][aria-pressed="true"] { background: var(--color-danger); color: #fff; box-shadow: none; }

/* Job location (all optional) and the recruiter declaration */
.location-switch { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.location-switch input { flex: none; margin-top: 2px; }
.location-switch span { display: grid; gap: 2px; font-size: var(--text-sm); }
.location-switch small { color: var(--color-text-muted); font-size: var(--text-xs); }
.declaration { margin-top: var(--space-5); padding: var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); }
.declaration .check { align-items: flex-start; }
.declaration .help { margin: var(--space-2) 0 0; }

/* AI notice before the interview, data-sharing tip, legal card */
.ai-notice { margin-top: var(--space-5); }
.ai-notice .consent-list { margin: var(--space-3) 0 0; }
.data-tip { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--color-text-muted); }
.data-tip svg { flex: none; margin-top: 2px; }
.legal-card .btn-row { flex-wrap: wrap; }

/* Share page: one compact top card (collapsed by default) */
.top-card { padding: 0; overflow: visible; }
.tc-info-wrap { position: static; display: inline-flex; }
.tc-info { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); cursor: pointer; }
.tc-info:hover, .tc-info[aria-expanded="true"] { background: var(--color-bg-tint); color: var(--color-text); }
.tc-info:focus-visible, .tc-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tc-tip { position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline-start: 0; inset-inline-end: 0; max-width: 340px; padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-text); color: #fff; font-size: var(--text-sm); line-height: var(--leading-sm); box-shadow: var(--shadow-2, 0 8px 24px rgb(0 0 0 / .2)); opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-standard), visibility 0s var(--dur-fast); pointer-events: none; }
.tc-info-wrap:hover .tc-tip, .tc-info-wrap.is-open .tc-tip, .tc-info:focus-visible + .tc-tip { opacity: 1; visibility: visible; transition-delay: 0s; }
.tc-rec .segmented button { min-height: 36px; }
.tc-sent { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-1) var(--space-2); min-height: 44px; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-2); }
.tc-sent[hidden] { display: none; }
.top-card[data-sent="true"] .tc-choices { display: none; }
.tc-toggle { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); color: var(--color-text-2); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard); }
.tc-toggle:hover { background: var(--color-bg-tint); }
.tc-toggle .icon { transition: transform var(--dur-base) var(--ease-standard); }
.top-card[data-open="true"] .tc-toggle .icon { transform: rotate(180deg); }
.tc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur-base) var(--ease-standard), visibility 0s var(--dur-base); }
.top-card[data-open="true"] .tc-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.tc-panel-inner { min-height: 0; overflow: hidden; }
.tc-panel-body { padding: var(--space-4); border-top: 1px solid var(--color-border); max-width: 760px; }
.tc-panel-body .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (prefers-reduced-motion: reduce) { .tc-panel, .tc-toggle .icon, .tc-tip { transition: none; } }

/* Top bar: two blocks on shared rows. Row 1 = captions (same top line), row 2 = controls (same centre line). */
.tc-bar { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.tc-team { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: var(--space-1); position: relative; min-width: 0; }
.tc-team-cap, .tc-rec-cap { align-self: end; }
.tc-line { display: flex; align-items: center; flex-wrap: nowrap; gap: var(--space-3); min-height: 44px; min-width: 0; }
.tc-date { white-space: nowrap; line-height: 1.2; }
.tc-rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--space-3); row-gap: var(--space-1); min-width: 0; }
.tc-rec-cap { grid-column: 1; grid-row: 1; text-align: center; }
.tc-rec .tc-choices { grid-column: 1; grid-row: 2; display: flex; justify-self: stretch; align-self: center; }
.tc-rec .tc-choices button { flex: 1 1 auto; white-space: nowrap; }
.tc-rec .tc-sent { grid-column: 1; grid-row: 2; align-self: center; }
.tc-rec .tc-toggle { grid-column: 2; grid-row: 2; align-self: center; }
.top-card[data-sent="true"] .tc-rec .tc-sent { display: inline-flex; }
@media (min-width: 821px) {
  .tc-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--space-6); row-gap: var(--space-1); align-items: stretch; }
  .tc-team, .tc-rec { grid-row: 1 / span 2; grid-template-rows: subgrid; row-gap: var(--space-1); }
  .tc-rec { grid-template-columns: auto auto; }
}
.tc-form { min-width: 0; }
.tc-notes-card { min-width: 0; align-self: start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-brand-soft); border: 1px solid var(--color-brand-soft-2); }
.tc-notes-title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-brand-text); }
.tc-notes-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.tc-notes-list li + li { padding-top: var(--space-3); border-top: 1px solid var(--color-brand-soft-2); }
.tc-note-text { margin: 0 0 var(--space-1); font-size: var(--text-sm); color: var(--color-text); overflow-wrap: anywhere; }
.tc-panel-body.has-notes { max-width: none; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: var(--space-6); align-items: start; padding: 0; }
.tc-panel-body.has-notes .tc-form { padding: var(--space-4) 0 var(--space-4) var(--space-4); }
.tc-panel-body.has-notes .tc-notes-card { margin: var(--space-4) var(--space-4) var(--space-4) 0; }
@media (max-width: 820px) {
  .tc-panel-body.has-notes { grid-template-columns: minmax(0, 1fr); padding: var(--space-3); row-gap: var(--space-3); }
  .tc-panel-body.has-notes .tc-form, .tc-panel-body.has-notes .tc-notes-card { padding: 0; margin: 0; }
  .tc-panel-body.has-notes .tc-notes-card { order: -1; padding: var(--space-3); }
  .tc-panel-body.has-notes .tc-notes-list { gap: var(--space-2); }
}
@media (max-width: 640px) {
  .tc-bar { padding: var(--space-3); }
  .tc-rec .tc-choices button { flex: 1 1 0; min-width: 0; min-height: 44px; white-space: normal; line-height: 1.2; padding: 0 var(--space-2); }
  .tc-panel-body { padding: var(--space-3); }
  .tc-panel-body .field-row { grid-template-columns: minmax(0, 1fr); }
  .tc-panel-body .btn-row .btn { width: 100%; min-height: 44px; }
}

/* Candidate table: AI suggestion and Hiring team decision are separate columns; captions only appear in the card layout */
.cand-pair { display: contents; }
.cand-head > [role="columnheader"] { min-width: 0; }
.cand-row .dl:not(.dl--link) .dl-cap { display: none; }
.cand-status, .cand-decision { display: grid; gap: var(--space-1); justify-items: start; align-content: center; min-width: 0; }
.quick .icon-btn { width: 36px; height: 36px; }
@media (max-width: 1249px) {
  .cand-list { background: transparent; border: 0; border-radius: 0; overflow: visible; display: grid; gap: var(--space-2); }
  .cand-head { display: none; }
  .cand-row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "rank name name" "rank pair pair" "rank langs langs" "rank scores quick"; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
  .cand-row:last-child { border-bottom: 1px solid var(--color-border); }
  .cand-row .rank { grid-area: rank; align-self: start; padding-top: 10px; }
  .cand-row .cand-name { grid-area: name; }
  .cand-row .cand-langs { grid-area: langs; }
  .cand-row .cand-scores { grid-area: scores; grid-auto-flow: column; justify-content: start; gap: var(--space-3); align-self: center; }
  .cand-row .cand-scores .score-line { grid-template-columns: auto auto; gap: 4px; }
  .cand-row .cand-scores .score-line .dots { display: none; }
  .cand-row .cand-pair { grid-area: pair; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2) var(--space-6); }
  .cand-row .cand-decision:empty { display: none; }
  .cand-row .dl:not(.dl--link) .dl-cap { display: block; }
  .cand-row .cand-decision > .muted { display: none; }
  .cand-row .quick { grid-area: quick; }
}

/* Question-type tags: one soft colour each (experience blue, technical teal, situational amber) */
.tag--qt-experience { background: #E4EEFF; color: #0F4C9A; box-shadow: inset 0 0 0 1px #BBD2F5; }
.tag--qt-technical { background: #DCF3EF; color: #0A5C55; box-shadow: inset 0 0 0 1px #A6DAD2; }
.tag--qt-situational { background: var(--color-warning-bg); color: var(--color-warning); box-shadow: inset 0 0 0 1px var(--color-warning-line); }

/* Candidates table v2: one grid shared by header and rows; cells centred, meta on one line, pills left-aligned under their headers */
.cand-head > [role="columnheader"], .cand-row > * { min-width: 0; }
.cand-head > [role="columnheader"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-row .rank { text-align: left; }
.cand-name > div { min-width: 0; flex: 1 1 auto; }
.cand-name small, .cand-name small.cand-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-name small a { word-break: normal; }
.cand-name a, .cand-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-lang { flex-wrap: nowrap; min-width: 0; }
.cand-lang .req { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cand-scores { align-self: center; }
.cand-status, .cand-decision { justify-items: start; align-content: center; }
.cand-status .dl, .cand-decision .dl { max-width: 100%; }
.quick { flex-wrap: nowrap; gap: 4px; }
.quick .icon-btn { width: 34px; height: 34px; flex: none; }
@media (max-width: 1249px) {
  .cand-name small, .cand-name small.cand-email { white-space: normal; overflow: visible; text-overflow: clip; }
  .cand-name a, .cand-name strong { display: inline; white-space: normal; overflow: visible; }
  .cand-name small a { word-break: break-all; }
}


@media (prefers-reduced-motion: no-preference) {
  .segmented.is-pulse { animation: invalid-pulse var(--dur-slow) var(--ease-standard) 2; }
  @keyframes invalid-pulse { 0% { box-shadow: 0 0 0 3px var(--color-danger-bg), 0 0 0 3px color-mix(in srgb, var(--color-danger) 45%, transparent); } 100% { box-shadow: 0 0 0 3px var(--color-danger-bg), 0 0 0 12px color-mix(in srgb, var(--color-danger) 0%, transparent); } }
}

@media (min-width: 1250px) {
  .cand-row .rec { white-space: normal; height: auto; min-height: 28px; padding-block: 3px; line-height: 1.15; max-width: 100%; border-radius: var(--radius-md); text-align: start; }
  .cand-row .rec .icon { flex: none; }
}

/* History card: the unverified-reviewers note sits clear of the last recommendation, icon on the first text line */
.hist-disclaimer { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; color: var(--color-text-muted); line-height: var(--leading-xs); }
.hist-disclaimer .icon { flex: none; width: 16px; height: 16px; margin-top: calc((var(--leading-xs) - 16px) / 2); }
.hist-disclaimer span { min-width: 0; }
.history-card .hist-list + .hist-disclaimer { margin-top: var(--space-4); }

/* Share page: sent view is read-only and persists; the editable form opens only after Change */
.top-card[data-sent="true"] #rv-formwrap { display: none; }
.top-card[data-sent="false"] #rv-mine .btn-row { display: none; }
#rv-cancel[hidden] { display: none; }
#rv-mine-wrap:empty { display: none; }
.top-card[data-sent="false"] #rv-formwrap + #rv-mine-wrap { margin-top: var(--space-4); }
#rv-mine .btn-row { margin-top: var(--space-4); }
#rv-mine > .micro { margin-top: var(--space-3); }



/* Design system: invalid state for a segmented control, same ring as .input[aria-invalid] */
.segmented[aria-invalid="true"] { border-color: var(--color-danger); box-shadow: 0 0 0 3px var(--color-danger-bg); }
.top-card { scroll-margin-top: var(--space-4); }
.share-links { display: grid; gap: var(--space-2); }
.share-links:empty { display: none; }

/* Report header: the decision control drops under the name when the three columns do not fit (long ES/PT labels) */
@media (max-width: 1100px) {
  .report-head { grid-template-columns: auto minmax(0, 1fr); }
  .report-head .decision { grid-column: 1 / -1; justify-items: stretch; justify-self: stretch; width: auto; }
  .report-head .decision .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .report-head .decision > .dl-cap { justify-self: center; }
}

/* Design system: a long label wraps inside a button row instead of pushing the page wider than the screen */
.btn-row > .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: var(--space-2); }
#rv-rec-error { margin-bottom: var(--space-4); }


/* Lifecycle layouts compose the existing sheet/card/table controls and design tokens. */
.lc-sheet { width: min(var(--container-read), calc(100% - var(--space-4))); max-height: calc(100dvh - var(--space-6)); overflow-y: auto; color: var(--color-text); border: 1px solid var(--color-border); }
.lc-explain { margin: var(--space-3) 0 0; }
.lc-explain li { font-size: var(--text-sm); }
.lc-explain li .icon { flex: none; }
.lc-close-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(calc(var(--space-20) * 2), 1fr); gap: var(--space-4); align-items: center; }
.lc-close-row small { display: block; }
.lc-bulk { position: sticky; top: var(--space-2); z-index: var(--z-sticky); margin-bottom: var(--space-4); }
.lc-table .rank .check, .lc-table .cand-head .check { min-width: var(--tap); }
.lc-close-row .check { min-width: 0; overflow-wrap: anywhere; }
/* Row breathing (Salomão, 19/11): the fixed grid now spans the whole card. Fluid columns take the spare width, the last
   column is exactly two 34 px buttons (contact + row menu, or contact + delete when archived), so nothing is left empty at
   the end; one 16 px gap between all columns. Minimums fit a 960 px card (1280 px screen) with «Not assessed» whole. Minimums measured
   with Figtree 700: the AI pill needs 128 px for «corresponde» (ES) and the seal 123 px for «seleccionado» (ES); they sum to
   706 px of the 714 px a 1280 px screen leaves for the fluid columns, and the name column takes the extra width (fr 1.6). */
@media (min-width: 1250px) { .lc-table .cand-head, .lc-table .cand-row { grid-template-columns: var(--tap) minmax(118px, 1.6fr) minmax(216px, 1.5fr) minmax(116px, 0.8fr) minmax(130px, 1fr) minmax(126px, 1fr) 72px; column-gap: var(--space-4); } }
/* 1250–1279 px: the card is up to 30 px narrower, so only the name column gives way (ellipsis + title); the rest keep their minimums. */
@media (min-width: 1250px) and (max-width: 1279px) { .lc-table .cand-head, .lc-table .cand-row { grid-template-columns: var(--tap) minmax(96px, 1.6fr) minmax(216px, 1.5fr) minmax(116px, 0.8fr) minmax(130px, 1fr) minmax(126px, 1fr) 72px; } }
@media (max-width: 1249px) { .lc-table .cand-row { grid-template-columns: var(--tap) minmax(0, 1fr) auto; } }
@media (max-width: 640px) {
  .lc-close-row { grid-template-columns: minmax(0, 1fr); }
  .lc-sheet { padding: var(--space-4); }
  .lc-bulk { top: calc(var(--tap) + var(--space-3)); }
}

/* =========================================================================
   Status único do candidato, opiniões e estados da vaga (pedido 20261120-144129-c954).
   Só tokens do design system; componentes novos documentados em DETALHES.md.
   ========================================================================= */
/* Final outcome seal: solid semantic colour + small lock. Same height as the screening pill (.dl .rec) it replaces. */
.seal { display: inline-flex; align-items: center; gap: var(--space-1); height: 28px; padding: 0 var(--space-3) 0 var(--space-2); border-radius: var(--radius-pill); color: var(--color-text-inverse); font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: 1.15; white-space: nowrap; }
.seal .icon { width: 14px; height: 14px; stroke-width: 2.2; flex: none; }
.seal--hired { background: var(--color-success); }
.seal--notselected { background: var(--color-danger); }
.seal--withdrew { background: var(--color-text-2); }
.seal--pool { background: var(--color-brand); }
.decision .seal, .tc-line .seal { height: 32px; }
@media (min-width: 1250px) { .cand-row .seal { white-space: normal; height: auto; min-height: 28px; padding-block: 3px; max-width: 100%; border-radius: var(--radius-md); text-align: start; } }
.status-meta { display: block; }

/* Job state chip (dot + text, never clickable): Open = success, Paused = warning (existing badges), Closed = strong neutral. */
.badge--closed { background: var(--color-bg-tint); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.job-state { flex: none; }
.state-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-dot + .state-dot { margin-inline-start: calc(-1 * var(--space-1)); }
.state-dot--open { background: var(--color-success); }
.state-dot--paused { background: var(--color-warning); }
.state-dot--closed { background: var(--color-text); }
.chip[aria-pressed="true"] .state-dot--closed { background: var(--color-text-inverse); }
.job-closed-meta { margin: var(--space-1) 0 0; }
/* Job actions: secondary buttons with an icon, grouped at the right of the card (above the counters) and of the header. */
.job-side { display: grid; justify-items: end; align-content: start; gap: var(--space-4); }
.job-actions { justify-content: flex-end; gap: var(--space-2); }
.page-head > .btn-row > .job-actions { display: contents; }
@media (max-width: 767px) {
  .job-side { justify-items: start; }
  .job-actions { justify-content: flex-start; }
}
.stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Five KPI cards stay on one row down to tablet (numbers share one baseline, as with four); narrower: tighter padding, same tokens as mobile. */
@media (max-width: 1100px) { .stats--5 .stat { padding: var(--space-3) var(--space-4); } .stats--5 .stat dd { font-size: var(--text-2xl); line-height: var(--leading-2xl); } }
@media (max-width: 767px) { .stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Candidate row: consistent inner spacing (8 px), whole texts, vertically centred cells. */
.cand-langs { gap: var(--space-2); align-content: center; }
.cand-lang { gap: var(--space-2); }
.cand-lang .lname { width: var(--space-16); }
.cand-lang .req { overflow: visible; text-overflow: clip; white-space: normal; }
.cand-head > [role="columnheader"] { white-space: normal; overflow: visible; line-height: var(--leading-xs); }
.cand-status, .cand-decision { gap: var(--space-2); }
.quick { gap: var(--space-1); align-items: center; }
.status-quick { display: flex; gap: var(--space-2); }
.status-quick .icon-btn { width: 34px; height: 34px; border: 1px solid var(--color-border-strong); background: var(--color-surface); }
.status-quick .icon-btn:hover { border-color: var(--color-text-muted); }
.status-quick .icon-btn.is-advance:hover { background: var(--color-success-bg); color: var(--color-success); border-color: var(--color-success-line); }
@media (max-width: 1249px) {
  .cand-row { gap: var(--space-3) var(--space-4); }
  .cand-row .cand-pair { gap: var(--space-3) var(--space-8); }
}
.list-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.list-legend .caption { display: flex; align-items: flex-start; gap: var(--space-2); }
.list-legend .caption .icon { flex: none; margin-top: 2px; }

/* «What's this?»: the existing info tooltip (.tc-info-wrap/.tc-tip) with a visible label and a three-line legend. */
.whats { position: relative; display: inline-flex; }
.tc-team .whats { position: static; }
.whats-btn { gap: var(--space-1); min-height: var(--space-8); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.whats .whats-tip { inset-inline-start: 0; inset-inline-end: auto; width: min(340px, calc(100vw - 2 * var(--space-4))); }
.tc-team .whats .whats-tip { inset-inline-end: 0; width: auto; }
.decision .whats .whats-tip, .list-legend .whats .whats-tip { inset-inline-start: auto; inset-inline-end: 0; }
.whats-btn:focus-visible + .whats-tip, .whats.is-open .whats-tip { opacity: 1; visibility: visible; transition-delay: 0s; }
.whats-list { display: grid; gap: var(--space-2); }
.whats-item strong { font-weight: var(--weight-bold); }
.whats-foot { display: block; margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-text-2); }
.tc-info.whats-btn { width: auto; height: var(--space-8); padding: 0 var(--space-2); border-radius: var(--radius-pill); color: var(--color-brand); font-weight: var(--weight-semibold); }
.tc-info.whats-btn:hover, .tc-info.whats-btn[aria-expanded="true"] { color: var(--color-brand-text); }

/* Status menu (row menu and «Set final outcome» / «Change outcome»): the popover and contact-menu items. */
.status-menu-wrap { position: relative; display: inline-flex; }
.status-menu { min-width: 248px; }
.status-menu-cap { margin: var(--space-2) var(--space-3) var(--space-1); }
.status-menu-cap:first-child { margin-top: var(--space-1); }
.status-item[aria-checked="true"] { color: var(--color-brand-text); background: var(--color-brand-soft); }
.status-item:disabled { cursor: not-allowed; color: var(--color-disabled-text); background: none; }
.status-item-text { display: grid; gap: 2px; text-align: start; }
.status-item-text small { font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.status-check { margin-inline-start: auto; flex: none; }
.status-menu-sep { margin: var(--space-1) 0; border: 0; border-top: 1px solid var(--color-border); }

/* Candidate page Status block: caption + legend, then the screening selector with «Set final outcome», or the seal. */
.decision-cap { display: inline-flex; align-items: center; gap: var(--space-2); }
.decision-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
.decision--final { justify-items: end; }
.decision--final .status-meta { text-align: end; }
/* Narrower (block under the name, full width): caption centred over the selector, as before 014 (the old `> .dl-cap` rule). */
@media (max-width: 1100px) {
  .report-head .decision-cap { justify-self: center; }
  .report-head .decision-row { justify-content: center; }
  .report-head .decision-row .segmented { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-head .decision--final { justify-items: center; }
  .report-head .decision--final .status-meta { text-align: center; }
}
@media (max-width: 767px) { .report-head .decision-row .status-menu-wrap, .report-head .decision-row .status-menu-wrap .btn { flex: 1 1 100%; width: 100%; } }

/* Bulk bar: grouped by meaning (screening Status, final outcome, other). Close dialog: each row shows its current Status. */
.lc-bulk-groups { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-6); }
.lc-bulk-group { display: grid; gap: var(--space-1); }
.lc-bulk-group .btn-row { gap: var(--space-2); }
.lc-close-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-1) 0; }
.lc-close-status .dl-cap { display: none; }
/* Narrow screens: the legend opens under the Status block, as wide as the block, never wider than the screen. */
@media (max-width: 1100px) {
  .report-head .decision { position: relative; }
  .report-head .decision .whats { position: static; }
  .report-head .decision .whats .whats-tip { inset-inline-start: 0; inset-inline-end: 0; width: auto; max-width: none; }
}
@media (max-width: 640px) { .list-legend .whats .whats-tip { inset-inline-start: 0; inset-inline-end: auto; } }
/* The shared-link tally caption may wrap inside its column; long words never spill into the Status column. */
.link-tally .dl-cap { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Formato de resposta (migração 015) */
/* Só reaproveita componentes existentes (.choice, .tag, .disclosure, .help); aqui ficam apenas os ajustes de encaixe. */
.template > .tag[data-answer-format] { justify-self: start; }
/* Onboarding: template suggested by the job title (highlight only, never selected automatically). */
.template > .badge[data-suggested] { justify-self: start; }
.template.is-suggested:not([aria-pressed="true"]) { border-color: var(--color-brand-line); }
#accommodation-note .icon { vertical-align: -3px; color: var(--color-brand); }
#written-option > summary { min-height: var(--tap); }
#answer-mode .help { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-2); }

/* Onboarding passo 3 = assistente real de vaga (pedido 20261120-223728-a590). Só tokens e componentes existentes. */
.onb-main.onb-main--wide { width: min(calc(var(--container-app) + 2 * var(--space-4)), 100%); } /* assistente + prévia: mesma largura do painel */
.banner.onb-tip { grid-template-columns: auto minmax(0, 1fr) auto; }                             /* dica: botão de fechar na mesma linha, também no celular */
.onb-tip > .icon-btn { margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0 0; }        /* alvo de 44 px sem aumentar a altura da dica */
@media (max-width: 767px) {
  .onb .wizard-foot { bottom: 0; } /* no onboarding não há barra de abas embaixo */
  /* «Voltar» + «Criar link compartilhado» não cabem em 390 px (PT/ES): o texto quebra em vez de vazar, como no .btn--block */
  .onb .wizard-foot .btn { min-width: 0; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; padding-block: var(--space-2); }
  .onb .wizard-foot .btn .icon { flex-shrink: 0; }
}
