/* ============================================================
   Vistta by GRUPO⚡DON — visual compartilhado
   Montserrat em tudo, lilás #7A7EFF, escuro #161615.
   ============================================================ */

@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap; src: url('montserrat-latin.woff2') format('woff2'); 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; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap; src: url('montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* Paleta padrão do RH Grupo Don (igual à do Condutta): tons levemente puxados para o lilás da marca. */
:root {
  --bg: #f5f6fa;
  --fg: #080917;
  --card: #FFFFFF;
  --muted: #6a6d81;
  --border: #e1e2ea;
  --field: #FFFFFF;
  --brand: #7A7EFF;
  --brand-ink: #4F53E0;          /* lilás mais forte para texto em fundo claro */
  --brand-soft: rgba(122, 126, 255, 0.12);
  --brand-line: rgba(122, 126, 255, 0.35);
  --success: #15803D;
  --success-soft: rgba(21, 128, 61, 0.1);
  --danger: #DC2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --warning: #B45309;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 1px 2px rgba(8, 9, 23, 0.05), 0 18px 40px -26px rgba(60, 64, 160, 0.35);
  --glow-a: rgba(158, 168, 255, 0.30); --glow-b: rgba(121, 127, 216, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #060714; --fg: #f3f3f7; --card: #0d0f21; --muted: #878aa1; --border: #262840; --field: #121429;
    --brand-ink: #A5A8FF; --brand-soft: rgba(122, 126, 255, 0.16); --brand-line: rgba(122, 126, 255, 0.45);
    --success: #4ADE80; --success-soft: rgba(74, 222, 128, 0.12);
    --danger: #F87171; --danger-soft: rgba(248, 113, 113, 0.12);
    --warning: #FBBF24; --warning-soft: rgba(251, 191, 36, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -26px rgba(0, 0, 0, 0.9);
    --glow-a: rgba(121, 127, 216, 0.26); --glow-b: rgba(158, 168, 255, 0.10);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #060714; --fg: #f3f3f7; --card: #0d0f21; --muted: #878aa1; --border: #262840; --field: #121429;
  --brand-ink: #A5A8FF; --brand-soft: rgba(122, 126, 255, 0.16); --brand-line: rgba(122, 126, 255, 0.45);
  --success: #4ADE80; --success-soft: rgba(74, 222, 128, 0.12);
  --danger: #F87171; --danger-soft: rgba(248, 113, 113, 0.12);
  --warning: #FBBF24; --warning-soft: rgba(251, 191, 36, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -26px rgba(0, 0, 0, 0.9);
  --glow-a: rgba(121, 127, 216, 0.26); --glow-b: rgba(158, 168, 255, 0.10);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Montserrat, ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56vw 46vh at 88% -8%, var(--glow-a), transparent 62%),
    radial-gradient(42vw 40vh at 18% 108%, var(--glow-b), transparent 64%);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marca ----------
   Logo Vistta by Grupo Don: palavra no alfabeto do Pautta/Condutta (V lilás)
   + assinatura "by GRUPO⚡DON" (logo oficial como máscara + raio oficial). */
.brand { display: inline-block; text-decoration: none; color: var(--fg); }
.brand-lockup { display: block; width: 118px; container-type: inline-size; }
.vistta-word { display: block; width: 100%; height: auto; }
.vistta-word .word-v { fill: #7A7EFF; }
.vistta-word .word-rest { fill: currentColor; }
.brand-by { display: flex; justify-content: flex-end; align-items: flex-end; gap: 1.3cqw; margin-top: 4.2cqw; }
.brand-by-text { color: var(--muted); font-size: 6.4cqw; font-weight: 500; line-height: 1; transform: translateY(0.14em); }
.brand-don { position: relative; display: block; width: 56%; aspect-ratio: 2000 / 293; }
.brand-don-text { position: absolute; inset: 0; background: currentColor; -webkit-mask: url('logo-grupo-don.png') center / 100% 100% no-repeat; mask: url('logo-grupo-don.png') center / 100% 100% no-repeat; }
.brand-don-bolt { position: absolute; left: 54.55%; top: 0; width: 11.6%; height: 100%; fill: #7A7EFF; }
@media (min-width: 640px) { .brand-lockup { width: 136px; } }

/* ---------- Faixa de protótipo ---------- */
.proto-bar {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-bottom: 1px solid var(--brand-line);
}

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font-weight: 700; font-size: 14px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg);
  cursor: pointer; text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease, background 150ms ease;
}
.btn:hover { border-color: var(--brand-line); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #8B8FFF, #6A6EF5); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px -12px rgba(106, 110, 245, 0.9); }
.btn-primary:hover { filter: brightness(1.06); border-color: transparent; }
.btn-primary:disabled { filter: grayscale(0.7); opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--brand-soft); border-color: transparent; }
.icon-btn { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--field); font-size: 16px; outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .error { font-size: 12px; font-weight: 600; color: var(--danger); display: none; }
.field input[aria-invalid='true'] ~ .error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 2px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 280ms ease both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   Página do candidato
   ============================================================ */
.booking { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.booking-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.booking-grid { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .booking { padding-top: 36px; }
  .booking-grid { grid-template-columns: 320px 1fr; align-items: start; }
  .intro-card { position: sticky; top: 24px; }
}

.intro-card { padding: 22px; overflow: hidden; position: relative; isolation: isolate; }
.intro-card::after {
  content: ''; position: absolute; z-index: -1; right: -18px; bottom: -40px; width: 130px; aspect-ratio: 446 / 565;
  background: var(--brand); opacity: 0.1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 446 565'%3E%3Cpath d='M324 0 L263 222 L446 222 L123 565 L185 342 L0 341 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 446 565'%3E%3Cpath d='M324 0 L263 222 L446 222 L123 565 L185 342 L0 341 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.recruiter { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8B8FFF, #5B5FEF); flex: none; }
.recruiter small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.recruiter strong { font-size: 15px; }
.intro-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.intro-card h1::after { content: '.'; color: var(--brand); }
.intro-card p { color: var(--muted); margin: 10px 0 16px; font-size: 14px; }
.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; font-weight: 600; }
.meta-list li { display: flex; align-items: center; gap: 10px; }
.meta-list svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
.selection-summary { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); display: none; gap: 4px; }
.selection-summary.show { display: grid; }
.selection-summary span { font-size: 12px; color: var(--muted); font-weight: 600; }
.selection-summary strong { font-size: 15px; }

.steps { display: grid; gap: 16px; }
.step { padding: 20px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.step.done .step-num { background: var(--brand); color: #fff; }
.step-head h2 { font-size: 17px; font-weight: 800; }
.step-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.step.locked { opacity: 0.5; pointer-events: none; }
.step.locked .step-body { display: none; }

/* Vagas */
.job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .job-list { grid-template-columns: repeat(3, 1fr); } }
.job {
  text-align: left; padding: 12px; min-height: 52px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--field);
  font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1.25;
  transition: border-color 150ms ease, background 150ms ease;
}
.job:hover { border-color: var(--brand-line); }
.job[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.source-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Dias */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; width: 68px; padding: 10px 0; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--field); cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.day:hover { border-color: var(--brand-line); }
.day .dow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.day .num { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.day .mon { font-size: 11px; font-weight: 600; color: var(--muted); }
.day .count { margin-top: 4px; font-size: 10px; font-weight: 700; color: var(--brand-ink); }
.day[aria-pressed='true'] { background: linear-gradient(160deg, #8B8FFF, #5B5FEF); border-color: transparent; color: #fff; }
.day[aria-pressed='true'] .dow, .day[aria-pressed='true'] .mon, .day[aria-pressed='true'] .count { color: rgba(255, 255, 255, 0.85); }
.day:disabled { opacity: 0.4; cursor: not-allowed; }

.slots-label { margin: 16px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot {
  min-height: 46px; border: 1px solid var(--brand-line); border-radius: 12px;
  background: transparent; color: var(--brand-ink); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.slot:hover { background: var(--brand-soft); }
.slot[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tz-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Formulário */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

/* Sucesso */
.success { max-width: 520px; margin: 0 auto; padding: 32px 22px; text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8B8FFF, #5B5FEF); color: #fff; box-shadow: 0 16px 36px -14px rgba(106, 110, 245, 0.9); }
.success-icon svg { width: 34px; height: 34px; }
.success h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.success > p { color: var(--muted); margin: 10px 0 20px; }
.success-details { text-align: left; display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 20px; }
.success-details div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.success-details svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; margin-top: 2px; }
.success-details span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.success-details strong { font-weight: 700; }
.success-actions { display: grid; gap: 10px; }

.footer-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 24px; }

/* ============================================================
   Painel da recrutadora
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; }
.me .avatar { width: 36px; height: 36px; font-size: 13px; }
.me-text { display: none; line-height: 1.2; }
.me-text small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.me-text strong { font-size: 13px; }
@media (min-width: 640px) { .me-text { display: block; } }
.gcal-status { display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--success); padding: 6px 10px; border-radius: 999px; background: var(--success-soft); }
.gcal-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (min-width: 760px) { .gcal-status { display: inline-flex; } }

.panel { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.hello { margin-bottom: 18px; }
.hello h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.hello h1::after { content: '.'; color: var(--brand); }
.hello p { margin: 4px 0 0; color: var(--muted); font-weight: 500; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: 1fr 1fr 2fr; } }
.kpi { padding: 16px; }
.kpi span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi strong { display: block; font-size: 36px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; margin-top: 4px; }
.kpi small { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-next {
  grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #14173a, #0a0c1f); color: #fff; border-color: #262840;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
@media (min-width: 900px) { .kpi-next { grid-column: auto; } }
.kpi-next::after {
  content: ''; position: absolute; z-index: -1; right: 24px; bottom: -34px; width: 90px; aspect-ratio: 446 / 565; background: #7A7EFF; opacity: 0.35;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 446 565'%3E%3Cpath d='M324 0 L263 222 L446 222 L123 565 L185 342 L0 341 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 446 565'%3E%3Cpath d='M324 0 L263 222 L446 222 L123 565 L185 342 L0 341 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kpi-next span { color: #A5A8FF; }
.kpi-next strong { font-size: 20px; letter-spacing: -0.03em; margin-top: 6px; }
.kpi-next small { color: rgba(255, 255, 255, 0.7); }
.kpi-next .btn { background: #7A7EFF; color: #fff; border-color: transparent; }

.panel-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .panel-grid { grid-template-columns: 1fr 340px; align-items: start; } .side { position: sticky; top: 76px; } }

.week { padding: 18px; }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.week-head h2 { font-size: 18px; font-weight: 800; }
.week-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.week-nav { display: flex; gap: 6px; }

.day-group + .day-group { margin-top: 18px; }
.day-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.day-title .today-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; letter-spacing: 0.08em; }
.day-title .n { margin-left: auto; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.day-empty { font-size: 13px; color: var(--muted); padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; }

.iv {
  display: grid; grid-template-columns: 62px 1fr; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--field);
  transition: border-color 150ms ease;
}
.iv + .iv { margin-top: 8px; }
.iv:hover { border-color: var(--brand-line); }
.iv-time { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; line-height: 1.2; }
.iv-time small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.iv-main { min-width: 0; }
.iv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iv-name { font-weight: 800; font-size: 15px; }
.iv-mail { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.iv-actions select { min-height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); padding: 0 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.iv.is-past { opacity: 0.78; }
.iv.is-cancelada .iv-name { text-decoration: line-through; color: var(--muted); }

.status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.status-agendada { background: var(--brand-soft); color: var(--brand-ink); }
.status-realizada { background: var(--success-soft); color: var(--success); }
.status-faltou { background: var(--warning-soft); color: var(--warning); }
.status-cancelada { background: var(--danger-soft); color: var(--danger); }

.side { display: grid; gap: 16px; }
.side-card { padding: 18px; }
.side-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.side-card > p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px dashed var(--brand-line); font-size: 13px; font-weight: 700; color: var(--brand-ink); overflow: hidden; }
.link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; font-weight: 700; }
.bar-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8B8FFF, #5B5FEF); }
.bars-empty { font-size: 13px; color: var(--muted); }

.settings-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.settings-list li { display: flex; justify-content: space-between; gap: 10px; }
.settings-list span { color: var(--muted); font-weight: 600; }
.settings-list strong { text-align: right; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: #0d0f21; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.success-details p { margin: 0; }
.iv-vaga { margin-top: 6px; }
.link-job { margin-top: 12px; }
.booking-grid > *, .steps, .step, .panel-grid > *, .iv-main { min-width: 0; }
.intro-vaga { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.intro-vaga[hidden] { display: none; }
.intro-vaga span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-ink); }
.intro-vaga strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.link-out { margin-top: 12px; }
@media (max-width: 979px) {
  .side { display: contents; }
  .link-card { order: -1; }
  .side > :not(.link-card) { order: 1; }
}

/* Estados da página do candidato (carregando / sem horários / erro) */
.state-box { text-align: center; padding: 28px 20px; }
.state-box[hidden] { display: none; }
.state-box h2 { font-size: 18px; font-weight: 800; }
.state-box p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.state-spinner { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: girar 800ms linear infinite; }
.state-spinner[hidden] { display: none; }
@keyframes girar { to { transform: rotate(360deg); } }
.step[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; }
.form-error[hidden] { display: none; }

[hidden] { display: none !important; }

/* Login e primeiro acesso do painel */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 28px 24px; }
.auth-logo { width: 150px; margin-bottom: 22px; }
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; }
.auth-title::after { content: '.'; color: var(--brand); }
.auth-sub { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 14px; }

/* Aviso para conectar a Agenda Google */
.connect-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; margin-bottom: 16px; border-color: var(--brand-line);
  background: linear-gradient(135deg, var(--brand-soft), transparent 70%), var(--card);
}
.connect-card h2 { font-size: 17px; font-weight: 800; }
.connect-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 560px; }
a.btn { text-decoration: none; }

/* ============================================================
   Revisão visual (espaçamentos, campos, login com raio)
   ============================================================ */

/* Campos: setinha própria no select e respiro interno */
.field { gap: 8px; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 0 44px 0 16px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A7EFF' 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 14px center; background-size: 18px;
}
.field input { padding: 0 16px; }
.iv-actions select {
  -webkit-appearance: none; appearance: none; padding: 0 30px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A7EFF' 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 8px center; background-size: 14px;
}
.iv-actions select:disabled { opacity: 0.6; cursor: not-allowed; }

/* Cartões laterais do painel */
.side-card { padding: 20px; }
.side-card h3 { font-size: 16px; letter-spacing: -0.02em; margin-bottom: 6px; }
.side-card > p { margin: 0 0 16px; line-height: 1.5; }
.side-card .field .hint { margin-top: -2px; }
.link-out { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.link-box { padding: 12px 14px; }
.link-actions { gap: 10px; margin-top: 12px; }
.link-actions .btn { min-height: 40px; }
.settings-list { gap: 10px; }
.settings-list li { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.settings-list li:last-child { padding-bottom: 0; border-bottom: 0; }
#gcalEmail { word-break: break-all; }

/* Semana e números */
.week { padding: 20px; }
.week-head { margin-bottom: 18px; }
.week-nav .btn { min-width: 38px; }
.kpi { padding: 18px 20px; }
.kpi small { display: block; margin-top: 2px; }
.day-title { margin-bottom: 10px; }
.iv { padding: 14px 16px; }
.hello { margin-bottom: 20px; }

/* ---------- Login com raio ---------- */
.auth-login { position: relative; overflow: hidden; isolation: isolate; }
.auth-login .auth-card {
  position: relative; z-index: 1;
  border-color: var(--brand-line);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(122, 126, 255, 0.08), 0 0 44px -8px rgba(122, 126, 255, 0.45), var(--shadow);
}
.auth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth-glow {
  position: absolute; right: -10vw; top: -20vh; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 126, 255, 0.28), transparent 62%);
  animation: auth-respira 6s ease-in-out infinite;
}
@keyframes auth-respira { 50% { opacity: 0.65; transform: scale(1.06); } }

/* Abertura (~1,5 s): desenha o contorno, acende, brilha e some */
.bolt-intro { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: var(--bg); animation: intro-sai 420ms ease 1150ms forwards; }
html.intro-on .bolt-intro { display: grid; }
html.intro-on .auth-login .auth-card { animation: rise 420ms ease 1250ms both; }
.bolt-intro-glow { position: absolute; width: min(760px, 140vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(122, 126, 255, 0.45), transparent 62%); opacity: 0; transform: scale(0.5); animation: intro-brilho 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 420ms forwards; }
.bolt-intro-mark { position: relative; width: clamp(150px, 30vw, 230px); overflow: visible; animation: intro-tremor 240ms steps(2) 760ms 2, intro-marca-sai 380ms cubic-bezier(0.5, 0, 0.8, 0.4) 1060ms forwards; }
.bolt-intro-line { fill: none; stroke: #9DA0FF; stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-desenha 600ms cubic-bezier(0.65, 0, 0.35, 1) 60ms forwards; }
.bolt-intro-fill { fill: #7A7EFF; opacity: 0; animation: intro-preenche 300ms ease 520ms forwards, intro-sombra 500ms ease 620ms forwards; }
.bolt-intro-flash { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(122, 126, 255, 0.75) 40%, transparent 70%); opacity: 0; animation: intro-flash 520ms ease-out 1000ms forwards; }
@keyframes intro-desenha { to { stroke-dashoffset: 0; } }
@keyframes intro-preenche { to { opacity: 1; } }
@keyframes intro-sombra { to { filter: drop-shadow(0 0 36px rgba(122, 126, 255, 0.95)) drop-shadow(0 0 10px rgba(157, 160, 255, 0.85)); } }
@keyframes intro-brilho { to { opacity: 1; transform: scale(1); } }
@keyframes intro-tremor { 50% { transform: translate(1.5px, -1px); } }
@keyframes intro-marca-sai { to { opacity: 0; transform: scale(1.35); } }
@keyframes intro-flash { 0% { opacity: 0.95; transform: scale(0); } 100% { opacity: 0; transform: scale(40); } }
@keyframes intro-sai { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.intro-on .bolt-intro { display: none; } }

/* Rodapé com o raio oficial (no lugar do emoji) */
.foot-bolt { width: 8px; height: 10px; margin: 0 2px; vertical-align: -1px; fill: var(--brand); }

/* Faixa de dias: rolagem discreta, com esmaecido na borda indicando que tem mais */
.days { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
.days::-webkit-scrollbar { display: none; }
.days.no-fim { -webkit-mask-image: none; mask-image: none; }

/* ============================================================
   Celular: nada pode passar da largura da tela
   (o link comprido "empurrava" a coluna e desalinhava os cartões)
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
.panel-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .panel-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.side > *, .panel-grid > *, .kpis > * { min-width: 0; }
.link-box { align-items: flex-start; }
.link-box span { white-space: normal; overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; }
.iv-mail { white-space: normal; overflow-wrap: anywhere; }
.week-head { flex-wrap: wrap; row-gap: 12px; }
.week-head > div:first-child { min-width: 0; }

@media (max-width: 639px) {
  .panel { padding: 16px 14px 40px; }
  .hello h1 { font-size: 24px; }
  .kpis { gap: 10px; margin-bottom: 12px; }
  .kpi { padding: 14px 16px; }
  .kpi strong { font-size: 30px; }
  .kpi-next { padding: 16px; }
  .kpi-next .btn { width: 100%; }
  .panel-grid, .side { gap: 12px; }
  .week, .side-card { padding: 16px; }
  .week-head h2 { font-size: 17px; }
  .week-nav { margin-left: auto; }
  .iv { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .iv-time { display: flex; align-items: baseline; gap: 8px; }
  .iv-time small { display: inline; }
  .iv-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .iv-actions select { grid-column: 1 / -1; width: 100%; }
  .iv-actions .btn { width: 100%; }
  .connect-card { padding: 16px; }
  .connect-card .btn { width: 100%; }
  .topbar { padding: 10px 14px; }
  .me .avatar { width: 32px; height: 32px; font-size: 12px; }
}

/* Formulário: campos lado a lado alinhados pelo topo (a dica do e-mail não empurra o WhatsApp) */
.form-grid { align-items: start; }
.field { align-content: start; }
/* Preenchimento automático do navegador sem o fundo azulado */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset;
  box-shadow: 0 0 0 1000px var(--field) inset;
  caret-color: var(--fg);
  transition: background-color 9999s ease 0s;
}

/* Próxima entrevista: Meet + WhatsApp */
.kpi-next-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi-next .btn-zap { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.kpi-next .btn-zap:hover { border-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 639px) { .kpi-next-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .kpi-next-actions .btn { width: 100%; } }

/* Próxima entrevista: Meet + WhatsApp */
.kpi-next-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi-next .btn-zap { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.kpi-next .btn-zap:hover { border-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 639px) {
  .kpi-next-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .kpi-next-actions .btn { width: 100%; }
}

/* Gerar link único */
.link-form { display: grid; gap: 16px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.link-for { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }

/* Link expirado (entrevista cancelada) */
.state-box.is-expirado { border-color: var(--warning-soft); }
.state-box.is-expirado h2 { color: var(--warning); }

/* Entrevistas que já estavam na agenda (marcadas fora do Vistta) */
.iv-externa { border-style: dashed; }
.chip-externa { background: var(--warning-soft); color: var(--warning); }

/* Foto de perfil (a mesma do Condutta) */
.avatar { overflow: hidden; }
.avatar.has-photo { background: var(--card); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Página de política de privacidade */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.doc > .brand { margin-bottom: 20px; }
.doc-card { padding: 28px 24px; line-height: 1.65; }
.doc-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
.doc-card h1::after { content: '.'; color: var(--brand); }
.doc-card h2 { font-size: 17px; font-weight: 800; margin: 26px 0 8px; }
.doc-card p, .doc-card li { font-size: 15px; color: var(--fg); }
.doc-card ul { padding-left: 20px; margin: 8px 0; }
.doc-card li + li { margin-top: 6px; }
.doc-meta { color: var(--muted) !important; font-size: 13px !important; margin-top: 4px; }
.foot-links { text-align: center; font-size: 12px; margin-top: 8px; }
.foot-links a { color: var(--muted); }

/* Editar regras da agenda */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.side-head h3 { margin-bottom: 0; }
.side-head .btn { color: var(--brand-ink); }
.rules-form { display: grid; gap: 14px; }
.rules-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-label { font-size: 13px; font-weight: 700; }
.dias-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dia-chip { position: relative; cursor: pointer; }
.dia-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dia-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--field); font-size: 13px; font-weight: 700; color: var(--muted); transition: all 150ms ease; }
.dia-chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.dia-chip input:focus-visible + span { outline: 3px solid var(--brand-line); outline-offset: 2px; }

/* Tela final: salvar a entrevista na agenda do candidato */
.success-actions { display: grid; gap: 10px; }
.success-dica { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.success-dica strong { color: var(--fg); }
#okOnde { word-break: break-all; }
