/* CV Analyzer Saúde — sistema de design v2.
   Sem build, sem estilos em linha nas páginas (CSP estrita). Fonte Inter hospedada aqui. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/web/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/web/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e8edf5;
  --ink: #0f1b2d;
  --ink-2: #33445c;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  --brand: #0d9488;
  --brand-600: #0f766e;
  --brand-700: #115e59;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-ink: #ffffff;
  --accent: #6366f1;
  --accent-50: #eef2ff;
  --grad: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  --grad-ai: linear-gradient(135deg, #6366f1 0%, #0ea5e9 60%, #14b8a6 100%);

  --ok: #16a34a; --ok-bg: #dcfce7; --ok-ink: #166534;
  --warn: #d97706; --warn-bg: #fef3c7; --warn-ink: #92400e;
  --danger: #dc2626; --danger-bg: #fee2e2; --danger-ink: #991b1b;
  --info: #2563eb; --info-bg: #dbeafe; --info-ink: #1e40af;
  --violet: #7c3aed; --violet-bg: #ede9fe; --violet-ink: #5b21b6;

  --sb-bg: #0b1622;
  --sb-bg-2: #0f2130;
  --sb-ink: #c7d3e0;
  --sb-muted: #7b8ba0;
  --sb-active: rgba(45, 212, 191, .14);
  --sb-active-ink: #5eead4;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 2px rgb(15 27 45 / 5%);
  --shadow: 0 1px 3px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 6%);
  --shadow-lg: 0 20px 50px rgb(15 27 45 / 22%);
  --focus: 0 0 0 3px rgb(13 148 136 / 28%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar-w: 268px;
}

:root[data-theme="dark"] {
  --bg: #0a121c;
  --surface: #111c2b;
  --surface-2: #16243a;
  --surface-3: #1d2f49;
  --ink: #e8eef7;
  --ink-2: #b7c4d8;
  --muted: #8b9cb3;
  --faint: #66788f;
  --line: #22344d;
  --line-2: #2f4666;
  --brand: #2dd4bf;
  --brand-600: #5eead4;
  --brand-700: #99f6e4;
  --brand-50: #0f2d33;
  --brand-100: #134e4a;
  --brand-ink: #062c29;
  --accent: #818cf8;
  --accent-50: #1e2247;
  --ok: #4ade80; --ok-bg: #12331f; --ok-ink: #86efac;
  --warn: #fbbf24; --warn-bg: #3a2c0d; --warn-ink: #fcd34d;
  --danger: #f87171; --danger-bg: #3d1717; --danger-ink: #fca5a5;
  --info: #60a5fa; --info-bg: #14284a; --info-ink: #93c5fd;
  --violet: #a78bfa; --violet-bg: #251c4a; --violet-ink: #c4b5fd;
  --sb-bg: #070e17;
  --sb-bg-2: #0b1826;
  --shadow: 0 1px 3px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  --focus: 0 0 0 3px rgb(45 212 191 / 30%);
}

* { box-sizing: border-box; }
/* overflow-x: clip (não hidden) de propósito: hidden força overflow-y a virar
   "auto" (regra do CSS de parear os dois eixos), o que transforma html/body em
   contêineres de rolagem e QUEBRA position:sticky de tudo que depende da
   viewport como ancestral (a sidebar do painel sumia ao rolar a página —
   clip não dispara essa promoção). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; max-width: 100vw; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; }
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
/* overflow-wrap: sem isto, uma URL ou slug comprido num <code> (ex.: o link
   público na tela Organização) não quebra linha e estoura o card inteiro em
   telas estreitas — mesmo com a página não rolando na horizontal (isso só
   escondia o problema, cortando o texto sem indicar visualmente). */
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: var(--brand-100); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.xs { font-size: .78rem; }
.right { text-align: right; }
.center { text-align: center; }
.tint-brand { color: var(--brand); } .tint-accent { color: var(--accent); } .tint-violet { color: var(--violet); }
.card-link { display: block; text-decoration: none !important; color: inherit; }
.nowrap { white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.strong { font-weight: 650; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon { flex: none; vertical-align: -.2em; }

/* ---------------------------------------------------------------- layout */
[hidden] { display: none !important; }
.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: .6rem; }
.stack-xs > * + * { margin-top: .3rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row.tight { gap: .35rem; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
/* Nome separado de ".nowrap" (linha acima, white-space:nowrap) de
   propósito: ".row.nowrap" chocava com ".nowrap" — um <a class="row
   nowrap"> herdava white-space:nowrap no texto (não só flex-wrap no
   layout), então textos longos (ex.: "3 candidaturas com documentação
   pendente") não quebravam linha e vazavam por cima do ícone seguinte
   em vez de quebrar dentro do próprio espaço. */
.row.items-nowrap { flex-wrap: nowrap; }
.grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.split { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
/* minmax(0, 1fr), não só "1fr": sem isto, o item de grid volta a ter
   min-width:auto (tamanho mínimo = maior filho, ex.: o SVG de 640px do
   gráfico de área) e empurra a página inteira pra largura maior que a
   tela no celular — cortando texto de outros cards nas bordas. */
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }

.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: hidden; background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%); color: var(--sb-ink); display: flex; flex-direction: column; padding: 1rem .8rem; z-index: 40; }
/* Só esta parte (org + navegação) rola — o topo (marca) e o rodapé (perfil/Sair)
   ficam sempre visíveis mesmo com muitos itens de menu. */
.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.sb-brand { display: flex; align-items: center; gap: .65rem; padding: .35rem .55rem 1rem; color: #fff; font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none !important; flex: none; }
.sb-brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgb(13 148 136 / 40%); }
.sb-brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--sb-muted); letter-spacing: 0; margin-top: -2px; }
.sb-org { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; margin: 0 0 1rem; border-radius: 12px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 7%); color: #fff; }
.sb-org .name { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.sb-org .role { font-size: .74rem; color: var(--sb-muted); }
.sb-section { margin: 1rem .65rem .35rem; font-size: .68rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--sb-muted); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sb-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--sb-ink); font-weight: 500; font-size: .92rem; text-decoration: none !important; transition: background .12s, color .12s; }
.sb-link:hover { background: rgb(255 255 255 / 6%); color: #fff; }
.sb-link[aria-current="page"] { background: var(--sb-active); color: var(--sb-active-ink); font-weight: 600; }
.sb-link .count { margin-left: auto; font-size: .72rem; background: rgb(255 255 255 / 10%); padding: .05rem .5rem; border-radius: 999px; color: #fff; }
.sb-spacer { flex: 1; }
.sb-foot { border-top: 1px solid rgb(255 255 255 / 8%); padding-top: .8rem; margin-top: 1rem; flex: none; }
.sb-user { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem; border-radius: 10px; color: #fff; }
.sb-user .who { min-width: 0; }
.sb-user .who strong { display: block; font-size: .86rem; font-weight: 600; }
.sb-user .who span { display: block; font-size: .72rem; color: var(--sb-muted); }
/* O botão "Sair" fica sobre o fundo escuro da sidebar — sem isto herdava a cor
   de texto padrão (escura), quase invisível sobre o fundo escuro. */
.sb-foot .btn.ghost { color: var(--sb-muted); }
.sb-foot .btn.ghost:hover { color: #fff; background: rgb(255 255 255 / 8%); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar2 { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; row-gap: .4rem; align-items: center; gap: .75rem; padding: .65rem 1.5rem; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar2 .tb-menu { display: none; }
.topbar2 nav { display: flex; align-items: center; gap: .3rem; overflow-x: auto; scrollbar-width: thin; }
.topbar2 nav a { display: flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none !important; white-space: nowrap; flex: 0 0 auto; }
.topbar2 nav a:hover { background: var(--surface-2); color: var(--ink); }
.topbar2 nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
/* Portais de plataforma/parceiro (bootPortal): topo sem sidebar, o <nav> tem vários
   links e pode não caber ao lado da marca e do usuário/Sair — em vez de embolar
   texto ou cortar o botão Sair fora da tela, o nav vira sua própria linha,
   rolável horizontalmente, e o bloco do usuário some para a linha seguinte. */
@media (max-width: 1180px) {
  .topbar2 nav { flex: 1 1 100%; order: 3; }
  .topbar2 .tb-right { order: 2; }
}
.tb-search { display: flex; align-items: center; gap: .6rem; min-width: min(30rem, 100%); max-width: 32rem; flex: 1; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); }
.tb-search:hover { border-color: var(--line-2); }
.tb-search .kbd { margin-left: auto; }
.kbd { font: 600 .72rem/1 var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: .2rem .4rem; color: var(--muted); background: var(--surface-2); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.page.narrow { max-width: 900px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-head .title { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.page-head .sub { color: var(--muted); font-size: .95rem; }
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }

/* Compatibilidade com os portais de plataforma/parceiro (mais simples que o painel). */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-header h1 { margin: 0; }

@media (max-width: 960px) {
  /* minmax(0, 1fr), não só "1fr": a sidebar vira position:fixed aqui e
     sai do fluxo, mas sem o minmax(0, ...) a coluna de conteúdo ainda
     herda min-width:auto (tamanho do maior filho — ex.: uma tabela ou
     um gráfico SVG largos) e empurra a página inteira pra largura maior
     que a tela, cortando texto de QUALQUER card nas bordas em telas de
     celular. Provável causa raiz de várias queixas de "texto cortado"/
     "card não responsivo" em páginas diferentes. */
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(19rem, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 45%); z-index: 35; }
  .topbar2 .tb-menu { display: inline-flex; }
  .topbar2 { padding: .6rem 1rem; }
  .tb-search .label-long, .tb-search .kbd { display: none; }
  .tb-search { min-width: 0; }
  .page { padding: 1rem 1rem 4rem; }
}

/* ---------------------------------------------------------------- cartões */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 1.15rem 1.25rem; }
.card.flat { box-shadow: none; }
.card.interactive { transition: box-shadow .15s, transform .15s, border-color .15s; }
.card.interactive:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-1px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: .5rem; }
.card-body { padding: 1.15rem 1.25rem; }
.card-foot { padding: .8rem 1.25rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card.ai { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-ai) border-box; border: 1.5px solid transparent; }

.stat { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.05rem 1.2rem; }
.stat .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--brand) 55%, transparent); }
.stat .ico.info { background: linear-gradient(135deg, #60a5fa, var(--info)); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--info) 55%, transparent); }
.stat .ico.ok { background: linear-gradient(135deg, #4ade80, var(--ok)); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--ok) 55%, transparent); }
.stat .ico.warn { background: linear-gradient(135deg, #fbbf24, var(--warn)); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--warn) 55%, transparent); }
.stat .ico.violet { background: linear-gradient(135deg, #c084fc, var(--violet)); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--violet) 55%, transparent); }
.stat .ico.danger { background: linear-gradient(135deg, #f87171, var(--danger)); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--danger) 55%, transparent); }
.stat .top-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .7rem; }
.stat .label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 1.85rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.delta { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 650; padding: .05rem .4rem; border-radius: 999px; }
.delta.up { color: var(--ok-ink); background: var(--ok-bg); }
.delta.down { color: var(--danger-ink); background: var(--danger-bg); }
.delta.flat { color: var(--muted); background: var(--surface-2); }

/* ---------------------------------------------------------------- botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--ink); font: 600 .9rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, transform .05s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgb(13 148 136 / 30%); }
.btn.primary:hover { filter: brightness(1.06); background: var(--grad); }
.btn.ai { background: var(--grad-ai); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgb(99 102 241 / 32%); }
.btn.ai:hover { filter: brightness(1.07); background: var(--grad-ai); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 2rem; padding: .25rem .65rem; font-size: .82rem; border-radius: 9px; }
.btn.icon-only { padding: 0; width: 2.5rem; }
.btn.small.icon-only { width: 2rem; }
.btn.wa { background: #25d366; color: #062e14; border-color: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 1rem; height: 1rem; border: 2px solid currentColor; border-color: rgb(255 255 255 / 80%) transparent rgb(255 255 255 / 80%) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.field .hint { color: var(--muted); font-size: .8rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: .55rem .8rem; min-height: 2.5rem; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2.2rem; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; min-height: 1.1rem; height: 1.1rem; padding: 0; accent-color: var(--brand); flex: none; }
input[type="range"] { padding: 0; min-height: 1.6rem; accent-color: var(--brand); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon > input { padding-left: 2.4rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; }
.check input { margin-top: .2rem; }

/* ---------------------------------------------------------------- arrastar e soltar arquivo */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1.6rem 1.2rem; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-50); }
.dropzone.over { border-color: var(--brand); background: var(--brand-50); transform: scale(1.01); }
.dropzone.compact { flex-direction: row; padding: .9rem 1.1rem; gap: .8rem; text-align: left; }
.dropzone .dz-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand) 60%, transparent); }
.dropzone.compact .dz-ico { width: 38px; height: 38px; border-radius: 11px; }
.dropzone .dz-title { font-weight: 650; font-size: .92rem; }
.dropzone .dz-hint { font-size: .8rem; color: var(--muted); }
.dropzone .dz-file { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.25rem; padding: 1rem 1.25rem; background: var(--surface); }
legend { font-weight: 650; padding: 0 .5rem; font-size: .92rem; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.error-text { color: var(--danger); font-weight: 600; font-size: .9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar .field { margin: 0; }
.toolbar input, .toolbar select { min-height: 2.4rem; }
.toolbar .grow { flex: 1 1 14rem; }
.toolbar > select { width: auto; min-width: 10.5rem; flex: 0 0 auto; }
.toolbar > .btn, .toolbar > .seg { flex: 0 0 auto; }
.kb-card input[type="checkbox"] { width: 1rem; min-height: 1rem; height: 1rem; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 12px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: .4rem .85rem; border-radius: 9px; font: 600 .84rem/1 var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2.5px solid transparent; padding: .7rem 1rem; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--brand-600); border-bottom-color: var(--brand); }

/* ---------------------------------------------------------------- tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
td.wrap { white-space: normal; max-width: 22rem; }
th { position: sticky; top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-weight: 650; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover, th.sortable:focus-visible { color: var(--ink); }
.th-sort-ico { display: inline-flex; opacity: .55; transition: transform .12s; }
th.sortable:hover .th-sort-ico, th.sortable:focus-visible .th-sort-ico { opacity: .9; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-50) 70%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
/* Relatório financeiro detalhado: linhas de subtotal (por unidade/organização) e total geral. */
tr.report-org td { font-weight: 700; background: var(--surface-2); }
tr.report-unit td { font-weight: 600; color: var(--ink-2); }
tr.report-charge td { color: var(--muted); }
tr.report-charge td:first-child { padding-left: 2.2rem; }
tr.report-grand td { font-weight: 800; background: var(--surface-3); font-size: 1.05em; border-top: 2px solid var(--line-2); }
.cell-user { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.cell-user .who { min-width: 0; }
.cell-user .who strong { display: block; font-weight: 600; }
.cell-user .who span { display: block; font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- selos, avatares, notas */
.badge, .pill { display: inline-flex; align-items: center; gap: .35rem; padding: .16rem .6rem; border-radius: 999px; font-size: .77rem; font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.ok, .pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn, .pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.danger, .pill.danger { background: var(--danger-bg); color: var(--danger-ink); }
.badge.info, .pill.info { background: var(--info-bg); color: var(--info-ink); }
.badge.violet, .pill.violet { background: var(--violet-bg); color: var(--violet-ink); }
.badge.brand, .pill.brand { background: var(--brand-100); color: var(--brand-700); }
.badge.ai { background: var(--grad-ai); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .8rem; background: var(--surface); color: var(--ink-2); }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }

.avatar { --h: 180; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .82rem; color: hsl(var(--h) 55% 22%); background: hsl(var(--h) 75% 88%); letter-spacing: .02em; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar.xl { width: 76px; height: 76px; font-size: 1.5rem; }
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 80% 88%); background: hsl(var(--h) 45% 26%); }

.score { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; padding: .18rem .55rem; border-radius: 999px; font-weight: 750; font-size: .85rem; font-variant-numeric: tabular-nums; }
.score.hi { background: var(--ok-bg); color: var(--ok-ink); }
.score.mid { background: var(--warn-bg); color: var(--warn-ink); }
.score.lo { background: var(--danger-bg); color: var(--danger-ink); }
.score.none { background: var(--surface-3); color: var(--muted); font-weight: 600; }
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; font-weight: 750; font-variant-numeric: tabular-nums; }
.ring .track { stroke: var(--surface-3); }
.ring.hi .arc { stroke: var(--ok); } .ring.mid .arc { stroke: var(--warn); } .ring.lo .arc { stroke: var(--danger); } .ring.none .arc { stroke: var(--faint); }

.progress { height: .5rem; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.progress.ok > span { background: var(--ok); } .progress.warn > span { background: var(--warn); } .progress.danger > span { background: var(--danger); }

.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; }
.notice .icon { margin-top: .12rem; }
.notice.info { background: var(--info-bg); border-color: transparent; color: var(--info-ink); }
.notice.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.notice.danger { background: var(--danger-bg); border-color: transparent; color: var(--danger-ink); }
.notice.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.notice.ai { background: var(--accent-50); border-color: transparent; color: var(--ink-2); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); gap: .55rem; }
.empty .art { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: .3rem; }
.empty h3 { color: var(--ink); }
.empty p { max-width: 30rem; margin: 0; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; min-height: 1rem; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 45%), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- diálogos, gavetas, menus */
dialog { border: 0; border-radius: 18px; padding: 0; max-width: min(38rem, 94vw); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); animation: pop .16s ease; }
dialog::backdrop { background: rgb(9 16 28 / 55%); backdrop-filter: blur(3px); }
dialog.lightbox { max-width: min(28rem, 90vw); overflow: hidden; background: #fff; }
dialog.lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; cursor: zoom-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dlg-head { padding: 1.3rem 1.5rem .3rem; }
.dlg-body { padding: .6rem 1.5rem 0; }
.dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; padding: 1.1rem 1.5rem 1.3rem; }

.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(9 16 28 / 45%); animation: fade .15s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(46rem, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 1.3rem 1.4rem 3rem; overflow-y: auto; flex: 1; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.menu { position: absolute; z-index: 70; min-width: 13rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .35rem; animation: pop .12s ease; }
.menu button, .menu a { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; background: none; border-radius: 8px; font: 500 .9rem var(--font); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none !important; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu hr { margin: .3rem 0; }

.palette-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding-top: 12vh; background: rgb(9 16 28 / 50%); backdrop-filter: blur(3px); animation: fade .12s; }
.palette { width: min(40rem, 94vw); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette input { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 1.05rem 1.3rem; font-size: 1.05rem; min-height: 3.4rem; }
.palette input:focus { box-shadow: none; }
.palette .results { max-height: 22rem; overflow-y: auto; padding: .4rem; }
.palette .group { padding: .55rem .8rem .25rem; font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.palette .item { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 10px; cursor: pointer; color: var(--ink); text-decoration: none !important; }
.palette .item[aria-selected="true"], .palette .item:hover { background: var(--brand-50); }

.toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: .5rem; z-index: 200; max-width: min(26rem, 92vw); }
.toast { display: flex; align-items: flex-start; gap: .65rem; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .18s ease; font-size: .92rem; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: #15803d; color: #fff; }

/* ---------------------------------------------------------------- gráficos */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 11px var(--font); fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--ink-2); }
.legend .dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .35rem; vertical-align: -.05rem; }
.bar-row { display: grid; grid-template-columns: minmax(6rem, 11rem) 1fr 3.2rem; gap: .7rem; align-items: center; margin-bottom: .5rem; font-size: .88rem; }
.bar-row .bar { height: .7rem; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar-row .bar > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.funnel-step { display: flex; align-items: center; gap: .9rem; margin-bottom: .55rem; }
.funnel-step .bar { flex: 1; height: 2.2rem; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.funnel-step .bar > span { display: flex; align-items: center; padding-left: .8rem; height: 100%; color: #fff; font-weight: 700; font-size: .85rem; border-radius: 10px; min-width: 2.6rem; }
.funnel-step .name { width: 6.5rem; font-weight: 600; font-size: .88rem; }
.funnel-step .conv { width: 3.6rem; text-align: right; font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16.5rem, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.kb-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: 72vh; min-width: 16.5rem; }
.kb-col.over { outline: 2px dashed var(--brand); outline-offset: -4px; background: var(--brand-50); }
.kb-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem .9rem; font-weight: 650; font-size: .88rem; }
.kb-head .n { background: var(--surface); border: 1px solid var(--line); padding: .05rem .5rem; border-radius: 999px; font-size: .76rem; color: var(--muted); }
.kb-list { padding: 0 .6rem .7rem; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; min-height: 4rem; }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; cursor: grab; box-shadow: var(--shadow-sm); }
.kb-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.kb-card.dragging { opacity: .45; }
.kb-card .top { display: flex; align-items: center; gap: .5rem; }
.kb-card .name { display: block; font-weight: 600; font-size: .85rem; line-height: 1.25; min-width: 0; }
.kb-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: .45rem; font-size: .74rem; color: var(--muted); }

/* ---------------------------------------------------------------- mapa */
.map-layout { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 1rem; height: min(72vh, 760px); min-height: 30rem; }
.map-side { display: flex; flex-direction: column; min-height: 0; }
.map-side .list { overflow-y: auto; flex: 1; }
.map-canvas { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 26rem; }
.map-item { display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.map-item:hover, .map-item.active { background: var(--brand-50); }
.pin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 750 12px var(--font); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 35%); }
.pin.hi { background: #16a34a; } .pin.mid { background: #d97706; } .pin.lo { background: #dc2626; } .pin.none { background: #64748b; }
.pin-vaga { background: #1d4ed8; color: #fff; padding: .25rem .6rem; border-radius: 999px; font: 650 12px var(--font); white-space: nowrap; border: 2px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 35%); }
@media (max-width: 900px) { .map-layout { grid-template-columns: minmax(0, 1fr); height: auto; } .map-canvas { height: 60vh; } .map-side .list { max-height: 30vh; } }
.leaflet-container { font-family: var(--font); }

/* ---------------------------------------------------------------- linha do tempo, listas */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.dl { display: grid; grid-template-columns: 9rem 1fr; gap: .45rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .86rem; }
.dl dd { margin: 0; }
ul.plain, ol.plain { list-style: none; padding: 0; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; }
.check-list .icon { margin-top: .2rem; }
.check-list.ok .icon { color: var(--ok); } .check-list.bad .icon { color: var(--danger); } .check-list.warn .icon { color: var(--warn); }
.hero-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 10px 30px rgb(13 148 136 / 30%); }
.hero-card a { color: #fff; text-decoration: underline; }
.step-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.step { display: flex; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step .n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); font-weight: 750; font-size: .85rem; }
.step.done .n { background: var(--ok); color: #fff; }
/* Lista de etapas compacta (página pública de vaga): uma linha por etapa, sem
   card individual — o .step-list acima virava caixas grandes e vazias quando
   havia só 2-3 etapas curtas. */
.step-list-compact { display: flex; flex-direction: column; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.step-list-compact li { display: flex; align-items: center; gap: .65rem; }
.step-list-compact .n { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); font-weight: 750; font-size: .74rem; }
.wizard-steps { display: flex; gap: .4rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.wizard-steps .ws { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 600; }
.wizard-steps .ws.active { background: var(--brand-100); color: var(--brand-700); }
.wizard-steps .ws.done { color: var(--ok-ink); background: var(--ok-bg); }
.wizard-steps .ws .n { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: currentColor; }
.wizard-steps .ws .n > span { color: var(--surface); font-size: .72rem; }

/* ---------------------------------------------------------------- calendário */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal .dow { padding: .5rem; text-align: center; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 6.5rem; padding: .35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.other { background: var(--surface-2); }
.cal .day .dn { font-size: .78rem; font-weight: 650; color: var(--muted); align-self: flex-end; padding: 0 .3rem; }
.cal .day.today .dn { background: var(--brand); color: #fff; border-radius: 999px; padding: .05rem .45rem; }
.cal .ev { font-size: .74rem; padding: .18rem .4rem; border-radius: 6px; background: var(--info-bg); color: var(--info-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-weight: 600; }
.cal .ev.realizada { background: var(--ok-bg); color: var(--ok-ink); } .cal .ev.nao_compareceu { background: var(--danger-bg); color: var(--danger-ink); } .cal .ev.cancelada { background: var(--surface-3); color: var(--muted); text-decoration: line-through; }
@media (max-width: 700px) { .cal .day { min-height: 4rem; } .cal .ev { font-size: .66rem; } }

/* ---------------------------------------------------------------- páginas públicas */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
/* .pub-top mora DENTRO de .pub-hero (mesmo fundo colorido) — continua um
   elemento à parte só pra poder ser escondido sozinho durante a prova
   (web/candidato/prova.js troca ele pela barra do cronômetro). */
.pub-hero { position: relative; background: var(--grad); color: #fff; padding: 1.3rem 1.25rem 4.5rem; }
.pub-back { position: absolute; top: 1.3rem; right: 1.25rem; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .85rem; border-radius: 100px; background: rgb(255 255 255 / 16%); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none !important; }
.pub-back:hover { background: rgb(255 255 255 / 28%); }
@media (max-width: 640px) { .pub-back { position: static; margin: .8rem 0 0; } }
.pub-top .inner { max-width: 62rem; margin: 0 auto; padding-bottom: 1.3rem; display: flex; align-items: center; gap: .85rem; font-size: 1.05rem; }
/* .pub-top .logo (não .pub-brand-row .logo): index.html é HTML estático
   sem a classe pub-brand-row (só as páginas montadas por pubPage() em
   JS têm) — escopar pelo .pub-top cobre as duas sem depender da outra,
   e sem isso a logo enviada renderiza no tamanho nativo do arquivo
   (ex.: uma imagem grande vira um ícone gigante na home). */
/* Círculo estilo avatar de rede social (Instagram/LinkedIn), não mais
   um quadrado com cantos arredondados — pedido explícito do usuário. */
.pub-top .logo { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / 18%); display: grid; place-items: center; color: #fff; flex: none; overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / 35%); }
.pub-brand-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pub-brand-name-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pub-brand-name-row strong, .pub-top .inner > strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -.005em; }
.pub-links { display: inline-flex; gap: .35rem; }
.pub-link { width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / 16%); display: grid; place-items: center; color: #fff; flex: none; }
.pub-link:hover { background: rgb(255 255 255 / 30%); }
.pub-hero > .inner { max-width: 62rem; margin: 0 auto; }
.pub-hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 620; letter-spacing: -.01em; }
.pub-hero p { color: rgb(255 255 255 / 88%); margin: .5rem 0 0; font-size: 1.05rem; font-weight: 400; }
/* position+z-index: .pub-hero virou position:relative (pro botão
   .pub-back), e um elemento posicionado pinta por cima de irmãos
   estáticos seguintes mesmo sem z-index — sem isto aqui, a margem
   negativa (efeito "cartão flutuando" sobre o rodapé colorido do
   hero) escondia o topo do conteúdo (título da vaga, ícone do card)
   atrás do próprio hero em vez de flutuar visivelmente sobre ele. */
.pub-body { position: relative; z-index: 1; max-width: 62rem; width: 100%; margin: -3rem auto 3rem; padding: 0 1.25rem; }
.pub-body.narrow { max-width: 44rem; }
.pub-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem; margin-top: auto; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; }
.job-card h2 { font-size: 1.1rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.meta-row span { display: inline-flex; align-items: center; gap: .35rem; }
.exam-bar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.exam-bar .inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem; max-width: 50rem; margin: 0 auto; flex-wrap: wrap; }
.exam-bar .spacer, .spacer { flex: 1; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.3rem; padding: .15rem .8rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.timer.low { background: var(--danger-bg); color: var(--danger-ink); }
.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.question .statement { font-weight: 600; margin-bottom: .9rem; white-space: pre-wrap; font-size: 1.02rem; }
.option { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; transition: border-color .12s, background .12s; }
.option:hover { background: var(--surface-2); }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.option input { margin-top: .2rem; }
.saved-mark { color: var(--ok); font-size: .82rem; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-art { background: var(--grad); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 34rem; height: 34rem; border-radius: 50%; right: -10rem; bottom: -12rem; background: rgb(255 255 255 / 10%); }
.auth-art h1 { font-size: 2.2rem; }
.auth-art ul { list-style: none; padding: 0; margin: 0; }
.auth-art li { margin: .6rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.auth-form { display: grid; place-items: center; padding: 2rem; }
.auth-form .box { width: min(26rem, 100%); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }

@media (max-width: 40rem) {
  h1 { font-size: 1.4rem; }
  .bar-row { grid-template-columns: 6.5rem 1fr 2.6rem; }
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dt { margin-top: .5rem; }
  .job-card { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .sidebar, .topbar2, .toasts, .btn, .no-print, .tabs, .drawer-wrap { display: none !important; }
  .app { display: block; } body { background: #fff; color: #000; }
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
.menu .danger-text { color: var(--danger); }
.btn.ai .icon { color: #fff; }

/* ---------------------------------------------------------------- página inicial (index.html) */
.lp { background: var(--bg); }
.lp [hidden] { display: none !important; }
.lp-hero { background: var(--grad); color: #fff; padding: 1.1rem 1.25rem 3.5rem; }
.lp-top { max-width: 68rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lp-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none !important; font-size: 1.1rem; }
.lp-brand .logo { width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 18%); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / 35%); flex: none; }
.lp-brand .logo.has-img { background: #fff; cursor: zoom-in; }
.lp-brand .logo img { width: 78%; height: 78%; object-fit: contain; }
.lp-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.lp-nav-link { color: rgb(255 255 255 / 88%); font-weight: 500; font-size: .95rem; text-decoration: none !important; }
.lp-nav-link:hover { color: #fff; text-decoration: underline !important; }
@media (max-width: 560px) { .lp-nav-link { display: none; } }
.btn.lp-btn-light { background: #fff; color: var(--brand-700); border-color: transparent; }
.btn.lp-btn-light:hover { background: var(--brand-50); }
.btn.lp-btn-ghost { background: rgb(255 255 255 / 14%); color: #fff; border-color: rgb(255 255 255 / 45%); box-shadow: none; }
.btn.lp-btn-ghost:hover { background: rgb(255 255 255 / 24%); }
.btn.lp-btn-big { min-height: 3rem; padding: .7rem 1.35rem; font-size: 1rem; }
.lp-hero-inner { max-width: 68rem; margin: 3rem auto 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 880px) { .lp-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2rem; } }
.lp-eyebrow { margin: 0 0 .8rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 85%); }
.lp-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.lp-lead { margin: 1.1rem 0 0; max-width: 36rem; font-size: 1.1rem; line-height: 1.6; color: rgb(255 255 255 / 90%); }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.lp-mock { background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.lp-mock-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.lp-mock-pill { font-size: .72rem; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border-radius: 100px; padding: .15rem .6rem; white-space: nowrap; }
.lp-mock-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .35rem 0; }
.lp-mock-av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.lp-mock-name { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; min-width: 0; }
.lp-mock-name small { color: var(--muted); font-weight: 400; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mock-score { font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 8px; padding: .2rem .55rem; font-size: .9rem; }
.lp-mock-score.hi { background: var(--ok-bg); color: var(--ok-ink); }
.lp-mock-score.mid { background: var(--warn-bg); color: var(--warn-ink); }
.lp-mock-foot { font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .55rem; }

.lp-partners { max-width: 68rem; margin: -1.6rem auto 0; padding: 1.1rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; position: relative; }
@media (max-width: 70rem) { .lp-partners { margin-left: 1.25rem; margin-right: 1.25rem; } }
.lp-partners-title { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-partners-row { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.lp-partner, .lp-partner img { display: block; }
.lp-partners-row img { max-height: 44px; max-width: 160px; object-fit: contain; }

.lp-section { max-width: 68rem; margin: 0 auto; padding: 4rem 1.25rem 0; }
.lp-kicker { margin: 0 0 .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.lp-section h2, .lp-contact h2 { margin: 0 0 1.6rem; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; counter-reset: lp; }
.lp-steps li { counter-increment: lp; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.lp-steps li::before { content: counter(lp); width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: .3rem; }
.lp-steps strong { font-size: 1.02rem; }
.lp-steps span, .lp-features p, .lp-body, .lp-checks { color: var(--ink-2); line-height: 1.6; font-size: .95rem; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.6rem 2rem; }
.lp-features article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .9rem; align-content: start; }
.lp-features .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); }
.lp-features h3 { margin: .1rem 0 0; font-size: 1.02rem; }
.lp-features p { margin: 0; }
.lp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2.5rem; }
.lp-split h2 { font-size: 1.35rem; margin-bottom: .9rem; }
.lp-body { margin: 0; max-width: 34rem; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.lp-checks li { padding-left: 1.6rem; position: relative; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--ok-bg); box-shadow: inset 0 0 0 4px var(--ok-bg), inset 0 0 0 10px var(--ok); }

.lp-contact { max-width: 68rem; margin: 4.5rem auto 0; padding: 2.5rem 2rem; border-radius: 18px; background: var(--grad); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
@media (max-width: 880px) { .lp-contact { grid-template-columns: minmax(0, 1fr); padding: 2rem 1.25rem; } }
.lp-contact-text { display: flex; flex-direction: column; gap: .2rem; }
.lp-form { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow-lg); }
.lp-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.lp-form input, .lp-form select, .lp-form textarea { font: 400 .95rem/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .7rem; width: 100%; box-sizing: border-box; }
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.lp-form [aria-invalid="true"] { border-color: var(--danger); }
.lp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; }
.lp-form .lp-consent { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; color: var(--muted); }
.lp-form .lp-consent input { width: auto; margin-top: .2rem; }
.lp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-error { margin: 0; color: var(--danger); font-size: .88rem; min-height: 1em; }
.lp-form-error:empty { display: none; }
.lp-form-done h3 { margin: 0; font-size: 1.15rem; }
.lp-form-done p { margin: 0; color: var(--ink-2); }
@media (max-width: 70rem) { .lp-contact { margin-left: 1.25rem; margin-right: 1.25rem; } }
.lp-contact h2 { margin-bottom: .6rem; }
.lp-contact-text p { margin: 0 0 1.2rem; max-width: 34rem; color: rgb(255 255 255 / 90%); line-height: 1.6; }
.lp-contact-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.lp-foot { max-width: 68rem; margin: 3.5rem auto 0; padding: 1.5rem 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; gap: .8rem; }
.lp-foot-row { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.lp-foot a { color: var(--muted); }
.lp-foot a:hover { color: var(--ink); }
.lp-testbar { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: .6rem .9rem; }
.lp-testbar a { color: var(--warn-ink); font-weight: 600; }

/* ---------------------------------------------------------------- logos "em parceria com" dentro do sistema */
.partner-strip { display: flex; flex-direction: column; gap: .45rem; }
.partner-strip-title { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.partner-strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.partner-strip-row a, .partner-strip-row span { display: grid; place-items: center; background: #fff; border-radius: 8px; padding: .3rem .5rem; }
.partner-strip-row img { max-height: 26px; max-width: 110px; object-fit: contain; display: block; }
.partner-thumb, .partner-preview { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.partner-thumb { width: 88px; height: 44px; padding: .25rem; }
.partner-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-preview { width: 9rem; height: 5rem; padding: .4rem; flex: none; }
.partner-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sb-partners { padding: .9rem 1rem .4rem; color: var(--sb-muted); }
.auth-art .partner-strip { margin-top: auto; padding-top: 1.5rem; }

/* ---------------------------------------------------------------- aviso de privacidade (candidatura) */
.privacy-notice { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: .7rem .9rem; }
.privacy-notice summary { cursor: pointer; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .45rem; color: var(--brand-700); }
.privacy-notice[open] summary { margin-bottom: .8rem; }
.privacy-notice p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.pub-foot a { color: inherit; }
.lp-consent a { color: var(--brand-700); }

/* Escolha em cartões (rádio): cada opção com título e explicação curta. */
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: .6rem; }
.opt-card { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.opt-card:hover { border-color: var(--line-2); }
.opt-card:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-50); }
.opt-card input { margin-top: .2rem; }
.opt-card strong { display: block; color: var(--ink); }
.opt-card span { display: block; font-size: .84rem; color: var(--muted); margin-top: .15rem; }

/* Pesos currículo × prova: uma barra só, os dois lados sempre somam 100. */
.weight-split { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; }
.weight-split .side { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 6.5rem; }
.weight-split .side input { width: 5.5rem; text-align: center; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.weight-split .side small { color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .weight-split { grid-template-columns: 1fr 1fr; } .weight-split input[type="range"] { grid-column: 1 / -1; grid-row: 2; } }

/* Etiquetas de candidato (criadas pela organização). */
.tag-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--ink-2); border: 1px solid transparent; }
.tag-chip button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; display: inline-flex; opacity: .7; }
.tag-chip button:hover { opacity: 1; }
.tag-chip.c-teal { background: var(--brand-100); color: var(--brand-700); }
.tag-chip.c-blue { background: var(--info-bg); color: var(--info-ink); }
.tag-chip.c-violet { background: var(--violet-bg); color: var(--violet-ink); }
.tag-chip.c-amber { background: var(--warn-bg); color: var(--warn-ink); }
.tag-chip.c-red { background: var(--danger-bg); color: var(--danger-ink); }
.tag-chip.c-green { background: var(--ok-bg); color: var(--ok-ink); }

/* Campo com problema (formulários validados no navegador). */
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.dropzone[aria-invalid="true"] { border-color: var(--danger); }

/* Contador no menu dos portais (pedidos, interessados). */
.nav-badge { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; margin-left: .3rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
