/* ==========================================================================
   JovCorp Educação — Design system
   Tokens → base → layout (shell) → componentes → páginas → responsivo
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e4e7ee;
  --line-strong: #cfd5df;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --ok: #059669;   --ok-bg: #ecfdf5;   --ok-line: #a7f3d0;
  --warn: #d97706; --warn-bg: #fffbeb; --warn-line: #fde68a;
  --danger: #dc2626; --danger-bg: #fef2f2; --danger-line: #fecaca;
  --info: #2563eb; --info-bg: #eff6ff; --info-line: #bfdbfe;

  --accent: #2563eb;
  --accent-600: #1d4ed8;
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --hero-a: #0b1533;
  --hero-b: #1e3a8a;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 6px 20px -6px rgba(15, 23, 42, .14);
  --sh-lg: 0 24px 60px -12px rgba(15, 23, 42, .3);

  --sidebar-w: 264px;
  --topbar-h: 64px;
}

/* Cor de destaque por perfil */
[data-role="aluno"]     { --accent:#2563eb; --accent-600:#1d4ed8; --accent-50:#eff6ff; --accent-100:#dbeafe; --hero-a:#0b1533; --hero-b:#1e3a8a; }
[data-role="professor"] { --accent:#d97706; --accent-600:#b45309; --accent-50:#fffbeb; --accent-100:#fef3c7; --hero-a:#2a1606; --hero-b:#92400e; }
[data-role="gestao"]    { --accent:#4f46e5; --accent-600:#4338ca; --accent-50:#eef2ff; --accent-100:#e0e7ff; --hero-a:#13123a; --hero-b:#3730a3; }
[data-role="idiomas"]   { --accent:#059669; --accent-600:#047857; --accent-50:#ecfdf5; --accent-100:#d1fae5; --hero-a:#04241b; --hero-b:#065f46; }
[data-role="rh"]        { --accent:#0e7490; --accent-600:#155e75; --accent-50:#ecfeff; --accent-100:#cffafe; --hero-a:#05232b; --hero-b:#155e75; }
[data-role="parceiros"] { --accent:#7c3aed; --accent-600:#6d28d9; --accent-50:#f5f3ff; --accent-100:#ede9fe; --hero-a:#1c0f3a; --hero-b:#5b21b6; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--text-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.ic { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 2; }
svg.ic, i.ic { display: inline-block; }
.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: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; color: var(--text); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0 !important; }

/* ---------- Shell ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5 55%, #06b6d4); box-shadow: 0 6px 14px -6px #4f46e5;
}
.brand-mark .ic { width: 19px; height: 19px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text); line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--muted); }

.persona {
  margin: 4px 14px 10px; padding: 10px; border-radius: var(--r); display: flex; align-items: center; gap: 10px;
  background: var(--accent-50); border: 1px solid var(--accent-100);
}
.persona .grow { line-height: 1.25; }
.persona-name { font-weight: 700; color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persona-org { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 800; font-size: 13px; color: #fff; background: var(--accent); font-family: var(--font-display);
}
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.avatar-soft { background: var(--accent-100); color: var(--accent-600); }

.nav { padding: 6px 12px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text-2);
  text-decoration: none; font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a .ic { color: var(--faint); }
.nav a.active { background: var(--accent-50); color: var(--accent-600); }
.nav a.active .ic { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; }
.sidebar-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.sidebar-foot .legal { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 28px; background: rgba(245, 246, 250, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-title { font-family: var(--font-display); font-weight: 800; color: var(--text); font-size: 16px; }
.topbar-crumb { font-size: 12px; color: var(--muted); }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn.menu-btn { display: none; }

.session-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 28px; font-size: 12px;
  background: #0f172a; color: #cbd5e1;
}
.session-bar strong { color: #fff; }
.session-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.session-bar button { margin-left: auto; background: none; border: 0; color: #fca5a5; font-weight: 700; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }

.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px; }
.page > * + * { margin-top: 24px; }

/* Seletor de perfil (modo demonstração) */
.role-switch { position: relative; }
.role-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 8px; display: none; z-index: 50;
}
.role-switch.open .role-menu { display: block; }
.role-menu .head { padding: 8px 10px 6px; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.role-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none;
  border-radius: 10px; text-align: left; color: var(--text-2);
}
.role-opt:hover { background: var(--surface-2); }
.role-opt.current { background: var(--surface-2); }
.role-opt .avatar { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.role-opt b { display: block; color: var(--text); font-size: 13px; }
.role-opt small { color: var(--muted); font-size: 11px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-600); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(15, 23, 42, .05); }
.btn-soft { background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-100); }
.btn-soft:hover { background: var(--accent-100); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.btn-danger-soft:hover { background: #fee2e2; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: #f1f5f9; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-600); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Chips / pílulas ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap;
}
.chip .ic { width: 13px; height: 13px; }
.chip-lg { height: 30px; padding: 0 12px; font-size: 12.5px; }
.chip-neutral { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.chip-accent { background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-100); }
.chip-ok { background: var(--ok-bg); color: #047857; border-color: var(--ok-line); }
.chip-warn { background: var(--warn-bg); color: #b45309; border-color: var(--warn-line); }
.chip-danger { background: var(--danger-bg); color: #b91c1c; border-color: var(--danger-line); }
.chip-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.chip-rose { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.chip-sky { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.chip-violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.chip-emerald { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.chip-glass { background: rgba(255, 255, 255, .12); color: #e2e8f0; border-color: rgba(255, 255, 255, .2); }
.eyebrow { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent-600); letter-spacing: .02em; margin-bottom: 4px; }
.dot-sep::before { content: '•'; margin: 0 6px; color: var(--faint); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card-body { padding: 18px 22px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-hover { transition: box-shadow .2s, border-color .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--sh-md); border-color: var(--line-strong); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; color: #e2e8f0;
  background: radial-gradient(1200px 300px at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
              linear-gradient(135deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--sh-md);
}
.hero::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .09), transparent 70%); pointer-events: none;
}
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #cbd5e1; max-width: 680px; }
.hero .eyebrow { color: #a5f3fc; }
.hero-row { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 22px; }
.hero-kpi { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 14px 16px; }
.hero-kpi .label { font-size: 11.5px; color: #a5b4fc; font-weight: 600; }
[data-role] .hero-kpi .label { color: color-mix(in srgb, var(--accent-100) 85%, #fff); opacity: .85; }
.hero-kpi .value { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #fff; margin-top: 2px; }
.hero-kpi .hint { font-size: 11.5px; color: #94a3b8; }

/* ---------- KPI ---------- */
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .label .ic { color: var(--accent); }
.kpi .value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text); margin-top: 6px; line-height: 1.1; }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.trend-up { color: var(--ok); font-weight: 700; }

/* ---------- Progresso ---------- */
.progress { height: 10px; background: #e8ebf2; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #06b6d4); transition: width .5s ease; }
.progress-sm { height: 6px; }
.hero .progress { background: rgba(255, 255, 255, .15); }
.hero .progress > span { background: linear-gradient(90deg, #22d3ee, #34d399); }

.ring { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .ring-bg { stroke: #e8ebf2; }
.ring .ring-fg { stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring span { font-family: var(--font-display); font-weight: 800; color: var(--text); font-size: 15px; }

/* Barras de pilares (40/35/25) */
.pillars { display: grid; gap: 8px; }
.pillar { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 10px; font-size: 12px; }
.pillar .bar { height: 7px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.pillar .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pillar b { text-align: right; color: var(--text); }

/* ---------- Listas / tabelas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list > li:last-child { padding-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.check-list .ic { color: var(--ok); margin-top: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.field .help { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input-sm, .select-sm { height: 34px; font-size: 12.5px; border-radius: 9px; }
.counter { font-size: 11px; color: var(--faint); text-align: right; }

.choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice {
  position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--line-strong); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; background: #fff; }
.choice input[type=radio] + .box { border-radius: 50%; }
.choice input:checked + .box { background: var(--accent); border-color: var(--accent); }
.choice input:checked + .box::after { content: ''; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-50); color: var(--text); }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: #eceff5; border: 1px solid var(--line); }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.segmented button.on { background: #fff; color: var(--text); box-shadow: var(--sh-sm); }
.hero .segmented { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); }
.hero .segmented button { color: #cbd5e1; }
.hero .segmented button.on { background: #fff; color: var(--text); }

.filters { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.filters .field > label { font-size: 11.5px; color: var(--muted); }

/* ---------- Alertas / callouts ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: 13px; }
.callout .ic { margin-top: 2px; }
.callout-info { background: var(--info-bg); border-color: var(--info-line); color: #1e3a8a; }
.callout-ok { background: var(--ok-bg); border-color: var(--ok-line); color: #065f46; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-line); color: #78350f; }
.callout-accent { background: var(--accent-50); border-color: var(--accent-100); color: var(--text-2); }
.callout strong { color: inherit; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: grid; justify-items: center; gap: 6px; }
.empty .ic { width: 34px; height: 34px; color: var(--faint); margin-bottom: 6px; }
.empty strong { color: var(--text); font-size: 15px; }
.empty p { max-width: 360px; font-size: 13px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .18s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface);
  border-radius: 20px; box-shadow: var(--sh-lg); transform: translateY(8px) scale(.98); transition: transform .2s;
}
.modal-backdrop.show .modal { transform: none; }
.modal-sm { max-width: 440px; } .modal-md { max-width: 620px; } .modal-lg { max-width: 860px; } .modal-xl { max-width: 1040px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 20px 20px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 12px;
  background: #0f172a; color: #f1f5f9; font-size: 13px; font-weight: 600; box-shadow: var(--sh-lg);
  transform: translateY(10px); opacity: 0; transition: transform .25s, opacity .25s;
}
.toast.show { transform: none; opacity: 1; }
.toast-success .ic { color: #34d399; } .toast-error .ic { color: #f87171; } .toast-info .ic { color: #60a5fa; }

/* ==========================================================================
   Páginas
   ========================================================================== */

/* Landing */
.landing { min-height: 100vh; background: var(--bg); }
.landing-nav { max-width: 1200px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.landing-hero { max-width: 1200px; margin: 0 auto; padding: 36px 28px 20px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.landing-hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.025em; }
.landing-hero h1 em { font-style: normal; background: linear-gradient(90deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-hero .lead { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 560px; }
.landing-proof { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.landing-proof div b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--text); }
.landing-proof div span { font-size: 12px; color: var(--muted); }
.flow-card { padding: 22px; }
.flow-step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.flow-step:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.flow-step .num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; color: #fff; }
.flow-step b { color: var(--text); display: block; font-size: 14px; }
.flow-step span { font-size: 12.5px; color: var(--muted); }
.landing-section { max-width: 1200px; margin: 0 auto; padding: 28px; }
.role-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.role-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); transform: translateY(-2px); }
.role-card .avatar { width: 42px; height: 42px; border-radius: 12px; }
.role-card b { font-family: var(--font-display); color: var(--text); font-size: 15px; }
.role-card p { font-size: 12.5px; color: var(--muted); }
.role-card .go { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--accent-600); display: inline-flex; gap: 6px; align-items: center; }
.buyer-card { padding: 26px; border-radius: var(--r-xl); }
.buyer-card h3 { font-size: 19px; }
.landing-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 22px 28px; text-align: center; font-size: 12px; color: var(--muted); }

/* Aluno */
.level-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--r-lg); padding: 16px 18px; min-width: 300px; }
.level-box .lvl { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.level-box .lvl .ic { color: #fcd34d; }
.badge-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.badge-tile {
  border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 14px 10px; text-align: center;
  display: grid; justify-items: center; gap: 6px; transition: border-color .15s, background .15s, transform .15s;
}
.badge-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.badge-tile .medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.badge-tile .medal .ic { width: 22px; height: 22px; }
.badge-tile b { font-size: 12.5px; color: var(--text); line-height: 1.2; }
.badge-tile small { font-size: 11px; color: var(--muted); }
.badge-tile.locked { background: var(--surface-2); border-style: dashed; }
.badge-tile.locked .medal { background: #e9edf3 !important; color: var(--faint) !important; }
.badge-tile.selected { border-color: var(--accent); background: var(--accent-50); }
.tone-amber   { background: #fef3c7; color: #b45309; }
.tone-rose    { background: #ffe4e6; color: #be123c; }
.tone-sky     { background: #e0f2fe; color: #0369a1; }
.tone-violet  { background: #ede9fe; color: #6d28d9; }
.tone-emerald { background: #d1fae5; color: #047857; }

.project-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.project-card h3 { font-size: 15px; }
.project-card .story { font-size: 13px; color: var(--text-2); }
.project-card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.project-card .meta span { display: inline-flex; gap: 5px; align-items: center; }
.project-card .meta .ic { width: 13px; height: 13px; }

.job-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.job-card .company { font-size: 12px; color: var(--muted); font-weight: 600; }
.job-card h3 { font-size: 15.5px; }
.job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 12.5px; }
.job-facts span { display: flex; gap: 6px; align-items: center; color: var(--text-2); }
.job-facts .ic { width: 14px; height: 14px; color: var(--faint); }
.why { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.why b { color: var(--text); }

.explorer-banner { border-radius: var(--r-xl); padding: 22px; background: linear-gradient(120deg, #fffbeb, #fff7ed); border: 1.5px solid #fcd34d; }

/* Teste vocacional */
.voc-opt {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--text-2); transition: border-color .15s, background .15s;
}
.voc-opt:hover { border-color: #c4b5fd; }
.voc-opt .letter { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #f1f5f9; color: var(--muted); flex-shrink: 0; }
.voc-opt.on { border-color: #7c3aed; background: #f5f3ff; color: var(--text); }
.voc-opt.on .letter { background: #7c3aed; color: #fff; }
.voc-banner { border-radius: var(--r-xl); padding: 22px 24px; color: #fff; background: linear-gradient(110deg, #6d28d9, #4338ca 55%, #1d4ed8); display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--sh-md); }
.voc-banner h3 { color: #fff; font-size: 17px; }
.voc-banner p { color: #ddd6fe; font-size: 13px; max-width: 560px; margin-top: 4px; }
.voc-banner .icon-wrap { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); flex-shrink: 0; }
.voc-banner .icon-wrap .ic { width: 24px; height: 24px; color: #fcd34d; }

/* Professor */
.review-card { overflow: hidden; }
.review-card .stripe { height: 4px; background: linear-gradient(90deg, var(--accent), #f59e0b); }
.member-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.member-row.done { background: var(--ok-bg); border-color: var(--ok-line); }
.member-row .story { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.member-row .story.missing { font-style: italic; color: var(--faint); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); width: 15px; height: 15px; }
.countdown { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; color: #b45309; }

/* Bar chart simples */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .col .b { width: 100%; max-width: 54px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff)); }
.bars .col small { font-size: 11px; color: var(--muted); }
.bars .col b { font-size: 12px; color: var(--text); }

.funnel { display: grid; gap: 8px; }
.funnel-step { display: grid; grid-template-columns: 170px 1fr 60px; gap: 12px; align-items: center; font-size: 12.5px; }
.funnel-step .bar { height: 26px; border-radius: 7px; background: var(--accent-100); position: relative; overflow: hidden; }
.funnel-step .bar span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 7px; }
.funnel-step b { text-align: right; color: var(--text); font-family: var(--font-display); }

/* Audio mock (idiomas) */
.audio { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.audio .play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; }
.audio .play .ic { width: 14px; height: 14px; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; }
.wave i { flex: 1; background: color-mix(in srgb, var(--accent) 55%, #fff); border-radius: 2px; }

/* Candidato */
.talent-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.talent-card .avatar { background: var(--accent-100); color: var(--accent-600); }
.status-dot { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Comparador */
.compare-col { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.compare-col.win { border-color: var(--ok); background: var(--ok-bg); }

/* Documento imprimível (ESG) */
.doc { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.doc h3 { margin-bottom: 8px; }
.doc .hash { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badge-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--sh-lg); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 25; }
  .icon-btn.menu-btn { display: inline-grid; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page { padding: 18px 16px; }
  .topbar { padding: 0 16px; }
  .session-bar { padding: 8px 16px; }
  .topbar .hide-sm { display: none; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .badge-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 22px; }
  h1 { font-size: 23px; }
  .landing-hero h1 { font-size: 32px; }
  .level-box { min-width: 0; width: 100%; }
  .pillar { grid-template-columns: 96px 1fr 44px; }
  .funnel-step { grid-template-columns: 110px 1fr 44px; }
  .job-facts { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-foot { border-radius: 0; }
}

@media print {
  body * { visibility: hidden; }
  .printable, .printable * { visibility: visible; }
  .printable { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ==========================================================================
   v1.1 — Aluno e Família
   ========================================================================== */
[data-role="familia"] { --accent:#e11d48; --accent-600:#be123c; --accent-50:#fff1f2; --accent-100:#ffe4e6; --hero-a:#2a0a14; --hero-b:#9f1239; }
.ic-xs { width: 13px; height: 13px; vertical-align: -2px; }
.is-clickable { cursor: pointer; }
li.is-clickable { border-radius: 10px; transition: background .15s; }
li.is-clickable:hover { background: var(--surface-2); }

/* Missões */
.missions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.missions li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.missions li b { display: block; font-size: 13.5px; color: var(--text); }
.missions li small { display: block; font-size: 12px; color: var(--muted); }
.missions .m-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #f1f5f9; color: var(--faint); }
.missions .m-check .ic { width: 14px; height: 14px; }
.missions li.done { background: var(--surface-2); }
.missions li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.missions li.done .m-check { background: var(--ok); color: #fff; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 12px; position: relative; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: -12px; width: 2px; background: var(--line); }
.tl-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.tl-dot .ic { width: 15px; height: 15px; }
.timeline p { font-size: 13px; color: var(--text-2); }
.timeline small { font-size: 11.5px; color: var(--faint); }

/* Etapas da candidatura */
.stepper { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stepper li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li span { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 12px; color: var(--faint); }
.stepper li span .ic { width: 14px; height: 14px; }
.stepper li.done { color: var(--text-2); }
.stepper li.done::before, .stepper li.current::before { background: var(--accent); }
.stepper li.done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.current { color: var(--accent-600); font-weight: 800; }
.stepper li.current span { border-color: var(--accent); color: var(--accent-600); box-shadow: 0 0 0 4px var(--accent-100); }

/* Família */
.approval-card { border: 1.5px solid var(--warn-line); box-shadow: 0 6px 18px -10px rgba(217, 119, 6, .45); }
.consent-row { display: flex; align-items: center; gap: 16px; }
.consent-row p { margin-top: 2px; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.switch.is-locked { opacity: .6; cursor: not-allowed; }
.faq { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); font-size: 13.5px; }
.faq p { font-size: 13px; color: var(--text-2); margin-top: 8px; }

/* Currículo */
.cv { padding: 32px; display: grid; gap: 22px; }
.cv h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 10px; }
.cv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--line); }
.cv-seal { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: #047857; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 12px; padding: 8px 12px; align-self: flex-start; }
.cv-seal .ic { width: 22px; height: 22px; }
.cv-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cv-skills > div { display: flex; gap: 10px; align-items: flex-start; }
.cv-skills b { display: block; color: var(--text); font-size: 13.5px; }
.cv-skills small { font-size: 11.5px; color: var(--muted); }
.cv-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.cv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cv-list li { padding-left: 14px; border-left: 3px solid var(--accent-100); }
.cv-list b { color: var(--text); font-size: 13.5px; }
.cv-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cv-facts div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.cv-facts b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--text); }
.cv-facts small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 720px) {
  .cv { padding: 20px; }
  .cv-skills, .cv-facts { grid-template-columns: 1fr 1fr; }
  .stepper li { font-size: 10.5px; }
}

/* ==========================================================================
   v1.2 — Empresa (RH)
   ========================================================================== */
[hidden] { display: none !important; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.todo li.passive { background: var(--surface-2); }
.todo li b { color: var(--text); }

.quota-bar { position: relative; height: 14px; border-radius: 99px; background: #eef1f6; margin: 18px 0 4px; }
.quota-bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #22d3ee); }
.quota-bar .mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); }
.quota-bar .mark small { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--text); white-space: nowrap; }

.job-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.job-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.job-tabs button.on { border-color: var(--accent); background: var(--accent-50); color: var(--accent-600); }
.job-tabs .count { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kanban-col { background: #eef1f6; border-radius: var(--r-lg); padding: 12px; display: grid; gap: 8px; min-height: 180px; }
.kanban-col header { display: flex; align-items: center; justify-content: space-between; }
.kanban-col header b { color: var(--text); font-size: 13px; }
.kanban-col header .ic { color: var(--accent); }
.count-badge { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #fff; color: var(--text); }
.kanban-empty { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 18px 8px; text-align: center; font-size: 12px; color: var(--faint); }
.pipe-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--sh-xs); }
.pipe-name { display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 0; text-align: left; min-width: 0; }
.pipe-name b { display: block; color: var(--text); font-size: 13px; }
.pipe-name small { display: block; font-size: 11px; color: var(--muted); }
.pipe-name:hover b { color: var(--accent-600); text-decoration: underline; }
.pipe-card .ring span { font-size: 12px; }
.pipe-card .ring circle { stroke-width: 4; }
.demo-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line-strong); }

.mini-funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mini-funnel div { text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; }
.mini-funnel b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text); }
.mini-funnel small { font-size: 10.5px; color: var(--muted); line-height: 1.2; display: block; }
.table tr.row-risk td { background: #fff7f7; }
@media (max-width: 720px) { .mini-funnel { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   v1.3 — Professor e Escola
   ========================================================================== */
.observe { background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: 12px; padding: 10px 14px; }
.observe ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.observe b { color: var(--text); }
.turma-card { text-align: left; width: 100%; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.turma-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); }
.turma-card.selected { border-color: var(--accent); background: var(--accent-50); }

/* ==========================================================================
   v1.4 — Parceiro qualificador
   ========================================================================== */
.step-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.doc-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.doc-list li, .signer { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.doc-list li.missing { border-color: var(--warn-line); background: var(--warn-bg); }
.doc-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #f1f5f9; color: var(--faint); }
.doc-ic .ic { width: 13px; height: 13px; }
.doc-list li.ok .doc-ic, .signer.ok .doc-ic { background: var(--ok); color: #fff; }
.doc-list li.missing .doc-ic { background: var(--warn); color: #fff; }
.signers { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.class-pick { display: grid; gap: 6px; }
.class-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.class-opt b { color: var(--text); font-size: 13px; }
.class-opt.off { opacity: .6; }
@media (max-width: 720px) { .signers { grid-template-columns: 1fr; } }

/* ==========================================================================
   v1.5 — Escola de idiomas
   ========================================================================== */
.rubric { display: grid; gap: 8px; }
.rubric-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rubric-row b { color: var(--text); font-size: 13.5px; }
.rubric-row .segmented button { min-width: 36px; justify-content: center; }

/* ==========================================================================
   v1.6 — Revisão visual geral
   ========================================================================== */
/* Topo: caminho discreto em vez de repetir o título da página */
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.crumbs b { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-role { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.crumb-role .ic { color: var(--accent); }
.crumb-sep { width: 14px; height: 14px; color: var(--faint); }

/* Links de ação nunca quebram em duas linhas */
.link-btn { white-space: nowrap; }
.card-head > .link-btn, .card-head > .btn, .card-head > .chip { flex-shrink: 0; }

/* Lista que se adapta: um item ocupa a largura toda, vários dividem a linha */
.grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* Landing: título mais contido e perfis agrupados por público */
.landing-hero h1 { font-size: 40px; max-width: 620px; }
.role-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.role-group { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; display: grid; gap: 12px; align-content: start; }
.role-group-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; color: var(--text); font-size: 13px; }
.role-group-head .ic { color: var(--muted); }
.role-group-cards { display: grid; gap: 10px; }
/* Cartão compacto: ícone à esquerda, texto à direita */
.role-group-cards .role-card { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 4px; padding: 14px; }
.role-group-cards .role-card .avatar { grid-row: span 3; }
.role-group-cards .role-card .go { margin-top: 4px; }

@media (max-width: 1180px) {
  .role-groups { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .landing-hero h1 { font-size: 30px; }
  .landing-nav .brand-sub { display: none; }
  .landing-proof { gap: 18px; }
  /* Indicadores em 2 colunas no celular (antes: um por linha, ocupando a tela inteira) */
  .hero-kpis { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .hero-kpi { padding: 10px 12px; }
  .hero-kpi .value { font-size: 19px; }
  .hero-kpi .hint { font-size: 11px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 21px; }
  .hero .row-wrap .btn { flex: 1; }
  .section-head > .btn, .section-head > .row-wrap { width: 100%; }
  .section-head > .btn { justify-content: center; }
}
