/* =========================================================================
   CONECTA PAIPE · Avaliação Comportamental DISC
   Identidade visual: turquesa (#00B8C0) + preto, tipografia geométrica.
   Para mudar cores, altere apenas as variáveis em :root.
   ========================================================================= */

@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Marca */
  --brand: #00B8C0;
  --brand-600: #00A3AA;
  --brand-700: #00787E;      /* turquesa para textos (contraste acessível) */
  --brand-50: #EBF9FA;
  --brand-100: #D3F3F4;
  --ink: #0B0F12;            /* preto da logo */
  --ink-2: #1D252B;

  /* Neutros */
  --text: #1D252B;
  --muted: #5E6A72;
  --subtle: #8A959C;
  --line: #E3E8EB;
  --line-2: #EEF2F4;
  --bg: #F5F7F8;
  --surface: #FFFFFF;

  /* Fatores DISC */
  --d: #E5604D;
  --i: #E9A23B;
  --s: #00B8C0;
  --c: #4C63D2;

  /* Status */
  --ok: #17924F;   --ok-bg: #E7F6EE;
  --warn: #B7791F; --warn-bg: #FDF4E3;
  --idle: #6B7780; --idle-bg: #EEF1F3;
  --danger: #C2412D; --danger-bg: #FCEDEA;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 15, 18, .05);
  --shadow: 0 1px 2px rgba(11, 15, 18, .04), 0 8px 24px -12px rgba(11, 15, 18, .12);
  --shadow-lg: 0 24px 60px -24px rgba(11, 15, 18, .28);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.dot { color: var(--brand); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Estrutura ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.site-header { background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo img { height: 26px; width: auto; }
.header-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.header-note .icon { color: var(--brand-700); }
.site-footer { padding: 32px 0 40px; color: var(--subtle); font-size: 13px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg); font: 600 14px/1 var(--font); cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { border-color: #cfd7dc; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-muted { opacity: .5; }
.btn-primary { --b-bg: var(--ink); --b-fg: #fff; --b-line: var(--ink); }
.btn-primary:hover { --b-bg: #20292F; border-color: #20292F; }
.btn-primary .icon { color: var(--brand); }
.btn-brand { --b-bg: var(--brand); --b-fg: var(--ink); --b-line: var(--brand); }
.btn-brand:hover { --b-bg: var(--brand-600); border-color: var(--brand-600); }
.btn-ghost { --b-bg: transparent; --b-line: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); box-shadow: none; }
.btn-danger { --b-fg: var(--danger); }
.btn-danger:hover { --b-bg: var(--danger-bg); border-color: #f2c4bb; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; height: 38px; }

/* ---------- Formulários ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: 500 15px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #A3ADB3; font-weight: 400; }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.input[readonly] { background: var(--bg); color: var(--muted); }
.select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E6A72' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.has-error .input { border-color: #EBA597; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid #C5CED3; border-radius: 6px; background: #fff; cursor: pointer; transition: .15s; display: grid; place-items: center; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--brand); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: var(--danger-bg); color: #8B2C1E; }
.alert-success { background: var(--ok-bg); color: #0E6236; }
.alert-info { background: var(--brand-50); color: #0B5458; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--brand-50); color: #0B5458; font-size: 12.5px; font-weight: 600; }
.pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(0,184,192,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(0,184,192,0); } 100% { box-shadow: 0 0 0 0 rgba(0,184,192,0); } }

/* ---------- Página inicial / boas-vindas ---------- */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero h1 { margin: 18px 0 10px; }
.hero .lead { font-size: 19px; color: var(--ink-2); font-weight: 500; margin-bottom: 22px; }
.hero .intro p { color: var(--muted); font-size: 15.5px; max-width: 540px; }
.note-box { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); max-width: 540px; margin: 22px 0 28px; }
.note-box .icon { color: var(--brand-700); margin-top: 2px; }
.note-box p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; }
.fact { display: flex; gap: 10px; align-items: center; }
.fact .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--brand); }
.fact strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.2; }
.fact span { font-size: 12.5px; color: var(--muted); }
.form-card { position: relative; }
.form-card .card-body { padding: 32px; }
.form-card h2 { font-size: 20px; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--brand), var(--brand) 60%, var(--ink) 60%); }
.secure-line { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--subtle); font-size: 12.5px; margin-top: 14px; }
.disc-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 36px; max-width: 540px; }
.disc-strip div { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.disc-strip b { display: block; font-size: 20px; font-weight: 800; line-height: 1; }
.disc-strip span { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Questionário ---------- */
.focus-body { min-height: 100vh; display: flex; flex-direction: column; }
.q-top { background: var(--surface); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 10; }
.q-top .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.q-top .logo img { height: 22px; }
.q-counter { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.q-counter b { color: var(--ink); font-size: 15px; }
.progress { height: 4px; background: var(--line-2); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-600)); transition: width .45s var(--ease); border-radius: 0 4px 4px 0; }
.q-main { flex: 1; padding: 36px 0 120px; }
.q-intro { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; flex-wrap: wrap; }
.legend-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; }
.legend-chip.most { background: var(--brand-50); color: #0B5458; }
.legend-chip.least { background: #EEF1F3; color: var(--ink-2); }
.q-card { padding: 32px; }
.q-theme { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 10px; }
.q-prompt { font-size: clamp(20px, 2.6vw, 25px); font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -.02em; margin-bottom: 8px; }
.q-help { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.q-options { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 14px 14px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt-text { font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.opt.is-most { border-color: var(--brand); background: var(--brand-50); }
.opt.is-least { border-color: #B9C3C9; background: #F6F8F9; }
.opt.is-least .opt-text { color: var(--muted); }
.opt-actions { display: flex; gap: 6px; }
.choice { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--muted); cursor: pointer; transition: .15s; }
.choice:hover { border-color: #C5CED3; color: var(--ink); }
.choice .icon { width: 15px; height: 15px; }
.choice.most[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.choice.least[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.q-nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); z-index: 10; }
.q-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.q-status { font-size: 13px; color: var(--muted); text-align: center; }
.q-status .saved { display: inline-flex; align-items: center; gap: 6px; }
.q-status .saved .icon { color: var(--ok); }
.q-map { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; justify-content: center; }
.q-map button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 600 11px var(--font); color: var(--muted); cursor: pointer; padding: 0; }
.q-map button.done { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-map button.current { box-shadow: 0 0 0 2px var(--brand); border-color: var(--brand); }
.slide-in { animation: slideIn .35s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.overlay { position: fixed; inset: 0; background: rgba(245,247,248,.92); display: none; place-items: center; z-index: 50; }
.overlay.show { display: grid; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand); animation: spin .9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Resultado do candidato ---------- */
.result-hero { text-align: center; padding: 48px 0 8px; }
.result-hero .check-badge { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.result-card { padding: 36px; margin-top: 28px; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.factor-badge { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; flex-shrink: 0; }
.profile-head small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.profile-head h2 { font-size: 26px; margin: 2px 0 0; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.trait { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.trait .icon { color: var(--brand-700); }

/* ---------- Barras DISC ---------- */
.disc-bars { display: grid; gap: 14px; }
.disc-bar { display: grid; grid-template-columns: 34px 1fr 52px; gap: 12px; align-items: center; }
.disc-bar .letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.disc-bar .meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.disc-bar .track { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.disc-bar .fill { height: 100%; border-radius: 99px; width: var(--w); animation: grow 1s var(--ease) both; }
.disc-bar .value { font-weight: 800; color: var(--ink); text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; }
.disc-bar.is-top .letter { box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }
@keyframes grow { from { width: 0; } }
.bg-D { background: var(--d); } .bg-I { background: var(--i); } .bg-S { background: var(--s); } .bg-C { background: var(--c); }
.tx-D { color: var(--d); } .tx-I { color: var(--i); } .tx-S { color: var(--s); } .tx-C { color: var(--c); }

/* ---------- Painel administrativo ---------- */
.admin-header { background: var(--surface); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 30; }
.admin-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.admin-header .logo img { height: 24px; }
.admin-nav { display: flex; gap: 4px; flex: 1; }
.admin-nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.admin-nav a:hover { background: var(--bg); color: var(--ink); }
.admin-nav a.active { background: var(--brand-50); color: #0B5458; }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.admin-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); padding: 3px 8px; border-radius: 6px; }
.admin-main { padding: 32px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px 20px; }
.stat .s-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.stat .s-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); }
.stat .s-val { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat .s-foot { font-size: 12.5px; color: var(--subtle); margin-top: 6px; }
.stat.accent { background: var(--ink); border-color: var(--ink); }
.stat.accent .s-top, .stat.accent .s-foot { color: #9BA7AE; }
.stat.accent .s-val { color: #fff; }
.stat.accent .s-ico { background: rgba(255,255,255,.08); color: var(--brand); }

.status-strip { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 20px; }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line-2); margin: 14px 0 12px; }
.split-bar span { height: 100%; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend b { color: var(--ink); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.mini-disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mini-disc a { padding: 10px; border-radius: 10px; background: var(--bg); text-decoration: none; color: inherit; transition: .15s; }
.mini-disc a:hover { background: var(--line-2); }
.mini-disc b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.mini-disc span { font-size: 12px; font-weight: 600; }

.filters { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr 1fr auto; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line-2); align-items: end; }
.filters .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.filters .input, .filters .select { height: 40px; font-size: 14px; border-radius: 10px; }
.filters .btns { display: flex; gap: 6px; }
.filters .btn { height: 40px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); font-weight: 700; padding: 12px 16px; background: #FAFBFC; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #FAFCFC; }
.table .name { font-weight: 700; color: var(--ink); }
.table .name a { color: inherit; }
.table .sub { font-size: 12.5px; color: var(--muted); }
.table .nowrap { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty .icon { margin: 0 auto 12px; color: var(--subtle); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 13px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.pagination span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }

.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-concluido { background: var(--ok-bg); color: var(--ok); }
.badge-em_andamento { background: var(--warn-bg); color: var(--warn); }
.badge-pendente { background: var(--idle-bg); color: var(--idle); }
.profile-tag { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 13px; }
.profile-tag span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; }
.profile-tag span + span { opacity: .75; }

/* Modal */
dialog.modal { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(11,15,18,.45); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-body { padding: 18px 24px 24px; }
.link-box { display: flex; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--brand-100); background: var(--brand-50); align-items: center; }
.link-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 14px var(--font); color: #0B5458; outline: none; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.success-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); margin-bottom: 14px; }

/* Detalhe do candidato */
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.info-list { display: grid; gap: 14px; }
.info-list .k { font-size: 12px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.info-list .v { font-weight: 600; color: var(--ink); word-break: break-word; }
.info-item { display: flex; gap: 12px; }
.info-item .ii { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--bg); color: var(--ink-2); display: grid; place-items: center; }
.action-list { display: grid; gap: 8px; }
.action-list .btn { justify-content: flex-start; }
.result-summary { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.kpi { padding: 14px; border-radius: 12px; background: var(--bg); }
.kpi small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { font-size: 17px; color: var(--ink); }
.answers-table td:first-child { color: var(--subtle); font-weight: 700; width: 40px; }
.ans { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.ans .f { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; margin-top: 1px; }
details.collapse summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-weight: 700; color: var(--ink); }
details.collapse summary::-webkit-details-marker { display: none; }
details.collapse summary .icon { transition: transform .2s; color: var(--muted); }
details.collapse[open] summary .icon { transform: rotate(180deg); }
details.collapse[open] summary { border-bottom: 1px solid var(--line-2); }

/* ---------- Relatório (tela, impressão e PDF) ---------- */
.report-body { background: #E9EDEF; }
.report-toolbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.report-toolbar .container { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; max-width: 900px; }
.report-toolbar .btn { height: 38px; }
.report-toolbar .btn-ghost { color: #C9D2D7; }
.report-toolbar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.report-toolbar .tb-actions { display: flex; gap: 8px; }
.report-page { max-width: 860px; margin: 28px auto 60px; }
.report { background: #fff; color: var(--text); box-shadow: var(--shadow); border-radius: 6px; padding: 52px 56px; font-size: 13.5px; line-height: 1.6; }
.rp-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.rp-header img { height: 26px; width: auto; }
.rp-header .doc-type { text-align: right; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.rp-header .doc-type b { display: block; color: var(--ink); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.rp-title { margin: 28px 0 22px; }
.rp-title small { color: var(--brand-700); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.rp-title h1 { font-size: 28px; margin: 6px 0 0; }
.rp-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.rp-data div { padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rp-data div:nth-child(3n) { border-right: 0; }
.rp-data div:nth-last-child(-n+3) { border-bottom: 0; }
.rp-data small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.rp-data span { font-weight: 600; color: var(--ink); font-size: 13.5px; word-break: break-word; }
.rp-section { margin-bottom: 28px; }
.rp-section > h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: var(--ink); }
.rp-section > h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.rp-result { display: grid; grid-template-columns: 1fr 230px; gap: 28px; align-items: center; padding: 22px; border-radius: 14px; background: #FAFBFC; border: 1px solid var(--line-2); }
.rp-profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.rp-profile div { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.rp-profile small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.rp-profile b { color: var(--ink); font-size: 14.5px; }
.rp-lead { font-size: 14.5px; color: var(--ink-2); padding: 16px 18px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 10px 10px 0; margin-bottom: 18px; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-item { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.rp-item h3 { font-size: 13px; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.rp-item h3 .icon { color: var(--brand-700); }
.rp-item p { margin: 0; color: var(--muted); font-size: 13px; }
.rp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rp-list li { display: flex; gap: 10px; align-items: flex-start; }
.rp-list li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 6px; margin-top: 2px; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300787E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center; }
.rp-list.dev li::before { background: #FDF4E3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B7791F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center; }
.rp-list.neg li::before { background: #EEF1F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7780' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") no-repeat center; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rp-box { padding: 18px; border-radius: 12px; border: 1px solid var(--line); }
.rp-box h3 { font-size: 13.5px; margin-bottom: 12px; }
.rp-manager { display: grid; gap: 10px; }
.rp-manager .m { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 16px; border-radius: 12px; background: #FAFBFC; border: 1px solid var(--line-2); }
.rp-manager .m b { color: var(--ink); font-size: 13px; }
.rp-manager .m p { margin: 0; color: var(--ink-2); font-size: 13px; }
.rp-final p { color: var(--ink-2); font-size: 14px; }
.rp-disclaimer { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.rp-disclaimer .icon { color: var(--brand-700); margin-top: 2px; }
.rp-footer { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; color: var(--subtle); }
.avoid-break { break-inside: avoid; page-break-inside: avoid; }
.page-break { break-before: page; page-break-before: always; }
.radar text { font: 700 12px var(--font); }

/* Modo exportação PDF: layout fixo para o gerador */
.pdf-mode .report { box-shadow: none; border-radius: 0; padding: 0 !important; width: auto; font-size: 12.5px; }
.pdf-mode .rp-footer { display: none; }
.pdf-mode *, .pdf-mode *::before { animation: none !important; transition: none !important; }

/* ---------- Login / Instalação ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side img { height: 26px; width: auto; }
.auth-side h2 { color: #fff; font-size: 34px; letter-spacing: -.03em; max-width: 420px; }
.auth-side p { color: #9BA7AE; max-width: 400px; }
.auth-side .orb { position: absolute; width: 380px; height: 380px; right: -120px; top: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--brand), transparent 70%); opacity: .35; }
.auth-side .disc-letters { display: flex; gap: 10px; margin-top: 24px; }
.auth-side .disc-letters span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; border: 1px solid rgba(255,255,255,.14); color: #fff; }
.auth-main { display: grid; place-items: center; padding: 32px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 28px; }
.auth-box .logo-m { display: none; margin-bottom: 32px; }
.auth-box .logo-m img { height: 24px; }

/* ---------- Conteúdo textual (política) ---------- */
.prose { padding: 40px 44px; }
.prose h2 { font-size: 18px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.error-page .code { font-size: 64px; font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; transition: .25s var(--ease); z-index: 100; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.toast .icon { color: var(--brand); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 32px; }
  .status-strip { grid-template-columns: minmax(0, 1fr); }
  .result-summary { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-box .logo-m { display: block; }
  .admin-nav a span { display: none; }
  .report { padding: 32px 24px; }
  .rp-result, .rp-cols { grid-template-columns: 1fr; }
  .rp-manager .m { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .header-note span { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-body, .form-card .card-body { padding: 22px; }
  .q-card { padding: 22px 18px; }
  .q-main { padding-top: 22px; }
  .opt { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .opt-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .choice { justify-content: center; }
  .q-status { display: none; }
  .q-nav .btn { flex: 1; }
  .q-map button { width: 26px; height: 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .s-val { font-size: 26px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .btns { grid-column: 1 / -1; }
  .filters .btns .btn { flex: 1; }
  .admin-header .container { gap: 12px; }
  .admin-tag { display: none; }
  .admin-actions .btn-label { display: none; }
  .admin-actions .btn-primary { width: 42px; padding: 0; }
  .page-head h1 { font-size: 24px; }
  /* Tabela vira cartões no celular */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .table td { padding: 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin-bottom: 2px; }
  .table td.cell-main { grid-column: 1 / -1; }
  .table td.cell-actions { grid-column: 1 / -1; }
  .row-actions { justify-content: flex-start; }
  .result-card, .card-body.result-pad { padding: 24px 20px; }
  .profile-head { gap: 14px; }
  .factor-badge { width: 60px; height: 60px; font-size: 28px; border-radius: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .disc-strip { grid-template-columns: repeat(2, 1fr); }
  .rp-data { grid-template-columns: 1fr 1fr; }
  .rp-data div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .rp-grid, .rp-profile { grid-template-columns: 1fr; }
  .report-toolbar .btn-label { display: none; }
  .report-page { margin: 0; }
  .report { border-radius: 0; }
  .prose { padding: 26px 20px; }
  .share-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Impressão ---------- */
@page { size: A4; margin: 14mm 12mm 16mm; }
@media print {
  body, .report-body { background: #fff !important; font-size: 12.5px; }
  .no-print, .report-toolbar, .site-header, .admin-header, .site-footer { display: none !important; }
  .report-page { margin: 0; max-width: none; }
  .report { box-shadow: none; padding: 0; border-radius: 0; }
  .rp-result, .rp-cols { grid-template-columns: 1fr 220px; }
  .rp-cols { grid-template-columns: 1fr 1fr; }
  .rp-grid { grid-template-columns: 1fr 1fr; }
  .rp-manager .m { grid-template-columns: 160px 1fr; }
  .rp-data { grid-template-columns: repeat(3, 1fr); }
  .disc-bar .fill { animation: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Evita que itens de grade ultrapassem a largura da tela */
.status-strip > *, .stats > *, .detail-grid > *, .stack > *, .hero-grid > * { min-width: 0; }
.mini-disc > * { min-width: 0; }
@media (max-width: 720px) {
  .mini-disc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .stats > :last-child { grid-column: 1 / -1; }
  .page-head > .btn-lg { display: none; }
}
.rp-section .avoid-break > h2, .rp-manager h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; color: var(--ink); }
.rp-section .avoid-break > h2::before, .rp-manager h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.rp-manager h2 { margin-bottom: 4px; }
/* PDF: mantém o layout de duas colunas independentemente da tela de origem */
.pdf-mode .rp-result { grid-template-columns: 1fr 200px !important; gap: 18px; padding: 16px; }
.pdf-mode .rp-cols, .pdf-mode .rp-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
.pdf-mode .rp-profile, .pdf-mode .rp-data { grid-template-columns: repeat(3, 1fr) !important; }
.pdf-mode .rp-data div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
.pdf-mode .rp-manager .m { grid-template-columns: 140px 1fr !important; }
.pdf-mode .radar { width: 190px; height: 190px; }
.pdf-mode .rp-item p, .pdf-mode .rp-manager .m p { font-size: 12px; }
/* No PDF as seções viram coluna única: quebras de página limpas, sem cortar caixas */
.pdf-mode .rp-cols, .pdf-mode .rp-grid { display: block !important; }
.pdf-mode .rp-cols > *, .pdf-mode .rp-grid > * { margin-bottom: 10px; }
.pdf-mode .rp-section { margin-bottom: 18px; }
.pdf-mode .rp-list { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.field label.check { display: flex; font-weight: 500; color: var(--muted); font-size: 13.5px; }
