/* RHIOS Consult · Plataforma de Recrutamento
   Tipografia: Cormorant Garamond (títulos) + Jost (interface)
   Cores da marca: dourado do símbolo + preto quente do logotipo */

:root {
  --ink: #171514;
  --ink-2: #4a4540;
  --ink-3: #807870;
  --line: #e6e1d9;
  --line-2: #d6cfc4;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --gold: #b88738;
  --gold-2: #d9ae5c;
  --gold-3: #f1cc79;
  --gold-deep: #8a5d1e;
  --gold-wash: #f7eedd;
  --sage: #5f7d57;
  --sage-wash: #e8efe4;
  --rust: #a8502a;
  --rust-wash: #f6e6dd;
  --slate: #4f6478;
  --slate-wash: #e6ecf1;
  --grad: linear-gradient(100deg, #b88738 0%, #f1cc79 48%, #a87324 100%);
  --night: #171514;
  --night-2: #23201d;
  --night-text: #e9e2d6;
  --night-mute: #a39a8c;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 21, 20, .04), 0 8px 28px -12px rgba(60, 40, 10, .14);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 15.5px; line-height: 1.55; font-weight: 400;
}
img, svg { max-width: 100%; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
.small { font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-3); color: var(--ink); }

/* ---------- Estrutura: painel da equipe e do cliente ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: var(--night); color: var(--night-text); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 26px 16px 18px; overflow: hidden; z-index: 20;
}
.side::after { /* o arco em fita do símbolo, como gesto de marca */
  content: ""; position: absolute; width: 420px; height: 420px; right: -250px; bottom: -150px;
  border-radius: 50%; border: 26px solid transparent;
  background: var(--grad) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .22; pointer-events: none;
}
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 24px; text-decoration: none; }
.side .brand img { height: 44px; width: auto; }
.side nav { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; overflow-y: auto; }
.side nav a {
  display: flex; align-items: center; gap: 12px; color: var(--night-text); text-decoration: none;
  padding: 9px 12px; border-radius: 999px; font-size: .95rem; transition: background .15s;
}
.side nav a svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.side nav a:hover { background: var(--night-2); }
.side nav a.on { background: var(--gold-wash); color: var(--ink); font-weight: 500; }
.side nav a.on svg { opacity: 1; color: var(--gold-deep); }
.side .nav-group { color: var(--night-mute); font-size: .78rem; padding: 18px 12px 6px; }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #2f2b27; font-size: .88rem; position: relative; z-index: 1; }
.side .me a { color: var(--night-mute); text-decoration: none; margin-right: 12px; }
.side .me a:hover { color: var(--gold-3); }
.main { min-width: 0; padding: 30px clamp(18px, 3vw, 44px) 60px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar h1 { margin: 0; }
.topbar .sub { color: var(--ink-3); margin-top: 4px; }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }
.mobile-bar { display: none; }

/* ---------- Área pública e do candidato ---------- */
.pub-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 56px); background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.pub-head .logo img { height: 40px; width: auto; display: block; }
.pub-head nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pub-head nav a { text-decoration: none; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.pub-head nav a:hover, .pub-head nav a.on { background: var(--gold-wash); color: var(--ink); }
.pub-wrap { max-width: 1120px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 40px) 70px; }
.pub-narrow { max-width: 760px; }
.pub-foot { text-align: center; color: var(--ink-3); font-size: .85rem; padding: 30px 16px 40px; }
.pub-foot a { color: var(--ink-3); }

.hero {
  position: relative; overflow: hidden; background: var(--night); color: var(--night-text);
  border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 64px clamp(20px, 6vw, 80px) 72px; margin: 0 clamp(0px, 2vw, 24px);
}
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); color: #fff; max-width: 14ch; font-weight: 500; margin-bottom: .3em; }
.hero p { color: var(--night-mute); max-width: 46ch; font-size: 1.08rem; }
.hero .ribbon { position: absolute; right: -60px; top: 50%; width: min(520px, 60vw); transform: translateY(-50%); opacity: .95; pointer-events: none; }
.hero-search { display: flex; gap: 8px; margin-top: 26px; max-width: 720px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-search input, .hero-search select { background: #fff; border-color: transparent; }
.hero-search input { flex: 1 1 240px; }
.hero-search select { flex: 0 1 200px; width: auto; }

/* ---------- Componentes ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel.tight { padding: 16px 18px; }
.panel.flat { box-shadow: none; }
.panel.soft { background: var(--surface-2); box-shadow: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.right { margin-left: auto; }
.hide { display: none !important; }

.stat { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-weight: 600; }
.stat .l { color: var(--ink-3); font-size: .9rem; margin-top: 6px; }
.stat.gold { background: var(--night); color: #fff; border-color: var(--night); }
.stat.gold .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.gold .l { color: var(--night-mute); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); padding: 9px 18px; border-radius: 999px; font: 500 .93rem var(--sans);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-wash); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2c2824; color: var(--gold-3); }
.btn.gold { background: var(--grad); border: 0; color: var(--ink); padding: 10px 20px; }
.btn.gold:hover { filter: brightness(1.04); color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--gold-wash); }
.btn.danger { color: var(--rust); }
.btn.danger:hover { background: var(--rust-wash); border-color: var(--rust); }
.btn.wa { background: #e6f4ea; border-color: #bfe0c9; color: #1d6b3a; }
.btn.wa:hover { background: #d6eedd; border-color: #1d6b3a; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.lg { padding: 13px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-deep); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; font-size: .88rem; color: var(--ink-2); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=search], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 10px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 135, 56, .15); }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 17px; height: 17px; vertical-align: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); cursor: pointer; margin-bottom: 10px; }
.check input { margin-top: 3px; flex: none; }
input[type=range] { width: 100%; accent-color: var(--gold); }
fieldset { border: 0; padding: 0; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-title { font-family: var(--serif); font-size: 1.45rem; margin: 6px 0 4px; }
.section-desc { color: var(--ink-3); margin-bottom: 16px; font-size: .92rem; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 22px 0 10px; z-index: 5; }

.flash { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 14px; font-size: .94rem; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.flash.success { background: var(--sage-wash); border-color: #c8d9c1; color: #2f4a2a; }
.flash.error { background: var(--rust-wash); border-color: #ebc8b8; color: #6e2f13; }
.flash.info { background: var(--gold-wash); border-color: #ead7b2; color: #5c3f12; }
.flash button { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; font-size: 1.1rem; line-height: 1; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.gold { background: var(--gold-wash); border-color: #ecd9b4; color: var(--gold-deep); }
.pill.sage { background: var(--sage-wash); border-color: #cfdcc9; color: #3d5a36; }
.pill.rust { background: var(--rust-wash); border-color: #efd2c4; color: #8a3a17; }
.pill.slate { background: var(--slate-wash); border-color: #cfd9e2; color: #34495c; }
.pill.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; background: #f1ebe0; color: var(--ink-2); }
.tag form { display: inline; }
.tag button { border: 0; background: none; cursor: pointer; padding: 0 0 0 2px; color: var(--ink-3); font-size: .9rem; line-height: 1; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--line-2); }
.dot.aberta { background: var(--sage); } .dot.aguardando, .dot.solicitada { background: var(--gold); }
.dot.pausada { background: var(--ink-3); } .dot.fechada, .dot.cancelada { background: var(--line-2); } .dot.rascunho { background: var(--slate); }

/* Match: o anel dourado */
.match { --p: 0; --c: var(--gold); position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #efe9df 0); display: grid; place-items: center; }
.match::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.match span { position: relative; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.match.high { --c: var(--gold); } .match.mid { --c: #c9a66a; } .match.low { --c: #c8b9a3; }
.match.lg { width: 104px; height: 104px; } .match.lg::before { inset: 9px; } .match.lg span { font-size: 2rem; }
.match.sm { width: 40px; height: 40px; } .match.sm::before { inset: 4px; } .match.sm span { font-size: .85rem; }

.bar { height: 8px; background: #efe9df; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bar.slim { height: 6px; }
.factor { display: grid; grid-template-columns: 150px 1fr 46px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.factor:last-child { border-bottom: 0; }
.factor .name { font-weight: 500; font-size: .93rem; }
.factor .name small { display: block; font-weight: 400; }
.factor .val { text-align: right; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.factor .why { grid-column: 2 / -1; font-size: .83rem; color: var(--ink-3); margin-top: -4px; }

/* Perfil comportamental: barras do candidato com marcador do perfil ideal */
.profile-bars .pb { display: grid; grid-template-columns: 130px 1fr 40px; gap: 12px; align-items: center; margin: 9px 0; }
.profile-bars .track { position: relative; height: 12px; border-radius: 999px; background: #f0ebe2; }
.profile-bars .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.profile-bars .ideal { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 3px; background: var(--ink); }
.profile-bars .lbl { font-size: .9rem; }
.profile-bars .num { text-align: right; font-weight: 600; font-size: .9rem; }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--ink-3); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 4px; vertical-align: 0; margin-right: 5px; background: var(--gold); }
.legend i.ideal { width: 3px; height: 12px; background: var(--ink); vertical-align: -2px; }

.disc-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.disc-letter { width: 92px; height: 92px; border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: #fff; }

/* Tabelas */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: .84rem; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaf6; }
td.num, th.num { text-align: right; }
.cell-person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.cell-person a { font-weight: 500; color: var(--ink); text-decoration: none; }
.cell-person a:hover { color: var(--gold-deep); }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold-wash); color: var(--gold-deep); font-weight: 600; font-size: .85rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; font-family: var(--serif); background: var(--night); color: var(--gold-3); }

/* Abas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--gold); }
.tabs a .count { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 6px; }

/* Kanban */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; scroll-snap-type: x proximity; }
.kcol { flex: 0 0 272px; background: #efebe4; border-radius: var(--r-lg); padding: 10px; scroll-snap-align: start; min-height: 200px; }
.kcol.hired { background: var(--sage-wash); } .kcol.rejected { background: #f1ece6; }
.kcol.drop { outline: 2px dashed var(--gold); outline-offset: -4px; background: var(--gold-wash); }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font-weight: 500; font-size: .92rem; gap: 6px; }
.kcol-head .n { font-size: .8rem; background: var(--surface); border-radius: 999px; padding: 1px 9px; color: var(--ink-3); }
.kcol-head .client { font-size: .72rem; color: var(--gold-deep); }
.kcard { background: var(--surface); border-radius: var(--r-md); padding: 12px; margin-bottom: 8px; cursor: grab; border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(23, 21, 20, .06); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.kcard:hover { border-color: var(--line-2); }
.kcard.dragging { opacity: .5; }
.kcard .nm { font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.3; }
.kcard .nm:hover { color: var(--gold-deep); }
.kcard .meta { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kcard .warn { color: var(--rust); }

/* Linha do tempo */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 16px 28px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold-2); }
.timeline li.auto::before { border-color: var(--slate); }
.timeline li.cliente::before { background: var(--gold); border-color: var(--gold); }
.timeline .when { color: var(--ink-3); font-size: .8rem; }

.note { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.note.parecer { background: var(--gold-wash); border-color: #ecd9b4; }
.note .head { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--ink-3); margin-bottom: 6px; flex-wrap: wrap; }
.note .body { white-space: pre-wrap; font-size: .93rem; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars .off { color: var(--line-2); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink); }
.empty img { width: 56px; opacity: .6; margin-bottom: 8px; }

/* Lista de vagas */
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.job-card:hover { border-color: var(--gold-2); color: var(--ink); }
.job-card h3 { margin: 0; font-size: 1.45rem; }
.job-card .meta { color: var(--ink-3); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.job-card .go { align-self: center; }
.job-list { display: grid; gap: 12px; }
.meta-list { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: .93rem; }
.meta-list span { display: inline-flex; gap: 6px; align-items: center; }
.meta-list svg { width: 16px; height: 16px; color: var(--gold); }
.prose { white-space: pre-wrap; color: var(--ink-2); line-height: 1.7; max-width: 72ch; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Avaliações */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 14px; }
.q-card .q { font-weight: 500; margin-bottom: 12px; }
.q-card .q b { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); margin-right: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; font-weight: 400; color: var(--ink); }
.opt:hover { border-color: var(--gold-2); }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert label { margin: 0; text-align: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .78rem; cursor: pointer; font-weight: 400; color: var(--ink-2); line-height: 1.25; }
.likert label:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); color: var(--ink); font-weight: 500; }
.likert input { display: block; margin: 0 auto 6px; }

.disc-step { max-width: 620px; margin: 0 auto; }
.disc-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.disc-progress .bar { flex: 1; }
.disc-q { text-align: center; }
.disc-q h2 { font-size: 1.6rem; margin-bottom: 20px; }
.disc-words { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.disc-words label { margin: 0; padding: 22px 14px; border-radius: 22px 22px 22px 8px; border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.disc-words label:nth-child(2n) { border-radius: 22px 22px 8px 22px; }
.disc-words label:hover { border-color: var(--gold); }
.disc-words label:has(input:checked) { background: var(--night); color: var(--gold-3); border-color: var(--night); }
.disc-words input { position: absolute; opacity: 0; pointer-events: none; }
.js .disc-q:not(.on) { display: none; }
.timer { position: sticky; top: 12px; z-index: 10; display: inline-flex; gap: 8px; align-items: center; background: var(--night); color: var(--gold-3);
  padding: 8px 16px; border-radius: 999px; font-weight: 500; font-variant-numeric: tabular-nums; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li a, .steps li > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.steps li a:hover { border-color: var(--gold-2); }
.steps .ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); flex: none; font-size: .8rem; }
.steps .done .ok { background: var(--gold); border-color: var(--gold); color: #fff; }
.steps .done { color: var(--ink-3); }

/* Agenda */
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow-x: auto; }
.week .wh { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; font-size: .85rem; color: var(--ink-3); background: var(--surface-2); position: sticky; top: 0; }
.week .wh b { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1.1; }
.week .wh.today b { color: var(--gold-deep); }
.week .hours { position: relative; }
.week .hours div:first-child { visibility: hidden; }
.week .hours div { height: 52px; font-size: .74rem; color: var(--ink-3); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.week .day { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 51px, var(--line) 51px 52px); }
.week .ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: .78rem; line-height: 1.25; overflow: hidden; text-decoration: none;
  background: var(--gold-wash); border-left: 3px solid var(--gold); color: var(--ink); }
.week .ev:hover { background: #f1e2c6; }
.week .ev.open { background: #fff; border: 1px dashed var(--gold-2); border-left: 3px solid var(--gold-2); }
.week .ev.grupo { background: var(--slate-wash); border-left-color: var(--slate); }
.week .ev b { display: block; font-weight: 600; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slot-grid button { padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font: 500 1rem var(--sans); cursor: pointer; }
.slot-grid button:hover { border-color: var(--gold); background: var(--gold-wash); }
.slot-grid button small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-3); }

/* Indicadores */
.funnel .f-row { display: grid; grid-template-columns: 170px 1fr 120px; gap: 14px; align-items: center; margin: 10px 0; }
.funnel .f-bar { height: 34px; border-radius: 10px 999px 999px 10px; background: var(--grad); display: flex; align-items: center; padding-left: 12px; color: var(--ink); font-weight: 600; min-width: 44px; }
.funnel .f-conv { font-size: .85rem; color: var(--ink-3); }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.cols .c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.cols .c i { width: 100%; max-width: 38px; background: var(--grad); border-radius: 10px 10px 4px 4px; min-height: 3px; }
.cols .c i.alt { background: var(--night); }
.cols .c span { font-size: .72rem; color: var(--ink-3); }
.cols .c b { font-size: .78rem; font-weight: 500; }
.hbars .hb { display: grid; grid-template-columns: 170px 1fr 70px; gap: 12px; align-items: center; margin: 8px 0; font-size: .9rem; }
.hbars .hb .num { text-align: right; color: var(--ink-2); }

/* Seletor de ações em massa */
.bulk { position: sticky; bottom: 14px; z-index: 15; display: none; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px;
  background: var(--night); color: #fff; padding: 12px 16px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.bulk.on { display: flex; }
.bulk select, .bulk input { width: auto; padding: 7px 12px; border-radius: 999px; font-size: .88rem; }
.bulk .count { font-weight: 500; color: var(--gold-3); padding-left: 6px; }

/* Linhas dinâmicas de formulário */
.rows .r { display: grid; gap: 8px; align-items: start; margin-bottom: 8px; }
.rows .r.skill { grid-template-columns: 1fr 170px 40px; }
.rows .r.lang { grid-template-columns: 1fr 170px 40px; }
.rows .r.stage { grid-template-columns: 26px 1fr 190px 170px 40px; align-items: center; }
.rows .r .handle { color: var(--ink-3); text-align: center; font-family: var(--serif); font-size: 1.1rem; }
.rows .r button.x { width: 40px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-3); font-size: 1.2rem; }
.rows .r button.x:hover { color: var(--rust); border-color: var(--rust); }
.q-edit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; background: var(--surface-2); }
.slider-row { display: grid; grid-template-columns: 170px 1fr 44px; gap: 12px; align-items: center; margin: 6px 0; }
.slider-row output { text-align: right; font-weight: 600; }
.slider-row label { margin: 0; }
details.more { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; background: var(--surface); margin-top: 14px; }
details.more summary { cursor: pointer; font-weight: 500; }
details.more[open] summary { margin-bottom: 14px; }

/* Relatório / parecer (impressão) */
.report { max-width: 860px; margin: 0 auto; background: #fff; padding: 48px 56px; }
.report-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid transparent;
  border-image: var(--grad) 1; padding-bottom: 18px; margin-bottom: 26px; gap: 20px; }
.report-head img { height: 54px; }
.report h1 { font-size: 2.3rem; margin-bottom: 4px; }
.report h2 { font-size: 1.45rem; margin-top: 28px; padding-top: 4px; }
.report .print-bar { position: fixed; right: 20px; bottom: 20px; display: flex; gap: 8px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--night); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; color: var(--night-text); }
.auth-art .ribbon { position: absolute; width: 130%; left: -10%; top: 18%; opacity: .95; }
.auth-art p { position: relative; color: var(--night-mute); max-width: 36ch; font-size: 1.05rem; }
.auth-art h2 { position: relative; color: #fff; font-size: 2.4rem; font-weight: 500; max-width: 15ch; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 400px; }
.auth-form .logo { height: 46px; margin-bottom: 30px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .93rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 1100px) {
  .split, .split-wide { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--night); position: sticky; top: 0; z-index: 15; }
  .mobile-bar img { height: 26px; }
  .mobile-bar button { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
  .main { padding: 22px 16px 60px; }
  .g2, .g3, .form-grid, .form-grid.g3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 200px; padding: 28px; }
  .auth-art h2 { font-size: 1.8rem; }
  .hero { padding: 44px 22px 52px; margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .hero .ribbon { opacity: .25; right: -120px; }
  .factor { grid-template-columns: 1fr 46px; }
  .factor .bar { grid-column: 1 / -1; order: 3; }
  .factor .why { grid-column: 1 / -1; }
  .rows .r.stage { grid-template-columns: 1fr 40px; }
  .rows .r.stage .handle { display: none; }
  .rows .r.stage select { grid-column: 1; }
  .funnel .f-row, .hbars .hb { grid-template-columns: 1fr; gap: 4px; }
  .report { padding: 24px 18px; }
  .disc-words label { font-size: 1.2rem; padding: 18px 10px; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .likert { grid-template-columns: 1fr; }
  .likert label { display: flex; gap: 10px; text-align: left; align-items: center; }
  .likert input { margin: 0; }
  .pub-head .logo img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  body { background: #fff; }
  .print-bar, .no-print { display: none !important; }
  .report { padding: 0; }
  .panel { box-shadow: none; break-inside: avoid; }
}
.split.filters { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 1100px) { .split.filters { grid-template-columns: 1fr; } }
