/* ============================================================
   Simulado ENARE — Design System
   Tema ESCURO unificado com a tela de login: preto profundo,
   superfícies em vidro fosco, verde protagonista, cantos cápsula.
   ============================================================ */

:root {
  /* Superfícies */
  --bg-app:         #05070a;
  --surface:        rgba(255,255,255,.045);
  --surface-2:      rgba(255,255,255,.075);

  /* Verde principal */
  --primary:        #3ee6a5;
  --primary-strong: #6ff0c0;
  --primary-soft:   rgba(110,240,192,.14);

  /* Texto */
  --text:           #eef3f1;
  --text-body:      #c4d2e6;
  --text-muted:     #8aa0bd;

  /* Linhas */
  --line:           rgba(255,255,255,.10);

  /* Acentos pastel (bg + ink saturado) */
  --tint-blue-bg:   #3ee6a5;  --tint-blue-ink:  #04160f;
  --tint-peach-bg:  #FBEBD0;  --tint-peach-ink: #F4B45C;
  --tint-rose-bg:   #FCE3E3;  --tint-rose-ink:  #F58A93;
  --tint-mint-bg:   #E5F3E6;  --tint-mint-ink:  #5FD0A0;

  /* Acentos de dados */
  --data-amber:     #FBB03B;
  --data-pink:      #F2476B;
  --data-green:     #43C59E;
  --data-red:       #F25C5C;

  /* Status (chips translúcidos no escuro) */
  --ok-bg:   rgba(67,197,158,.16);  --ok-ink:   #5fe0b8;
  --warn-bg: rgba(251,176,59,.16);  --warn-ink: #ffce7a;
  --info-bg: rgba(110,240,192,.16); --info-ink: #7fe3c2;

  /* Raio / sombra / espaço */
  --radius-lg:      22px;
  --radius-md:      16px;
  --radius-sm:      12px;
  --radius-pill:    999px;

  --shadow-sm:      0 4px 14px rgba(0,0,0,.30);
  --shadow-md:      0 12px 30px rgba(0,0,0,.45);
  --shadow-card:    0 16px 40px rgba(0,0,0,.40);

  --gap:            24px;
  --gap-lg:         32px;
  --pad-card:       22px;

  --grad-primary:   linear-gradient(135deg, #3ee6a5 0%, #12c489 100%);
  --grad-bar:       linear-gradient(180deg, #FBB03B 0%, #F2476B 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-body);
  background:
    radial-gradient(1100px 700px at 50% -6%, #0e2a20 0%, rgba(5,7,10,0) 55%),
    var(--bg-app);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }

h1, h2, h3 { color: var(--text); font-family: "Space Grotesk", "Inter", sans-serif; }

/* ============================================================
   AUTH (login, código, criar senha)
   ============================================================ */
.auth-body {
  background: var(--bg-app);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-shell { width: 100%; max-width: 420px; }
.auth-card {
  background: rgba(10,20,35,.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
}
.auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.auth-brand-logo { width: 180px; height: auto; display: block; }
.auth-brand-mark {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.auth-brand-name { font-weight: 800; color: var(--text); }
.auth-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; text-align: center; }
.auth-sub { margin: 0 0 22px; color: var(--text-muted); font-size: 14px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.auth-links a { text-decoration: none; font-size: 14px; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-foot { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 18px; }

/* ============================================================
   FORM
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-body); }
.field-hint { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.auth-note { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--text-body); background: var(--ok-bg); border-radius: var(--radius-md); padding: 11px 13px; }
.auth-note svg { color: var(--ok-ink); flex-shrink: 0; margin-top: 1px; }
.input, textarea.input {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input:focus, textarea.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.input-code { letter-spacing: 5px; text-align: center; font-weight: 700; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-body); }

/* ============================================================
   BOTÕES (cápsula)
   ============================================================ */
.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn + .btn { margin-top: 10px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-row .btn + .btn { margin-top: 0; }
.btn-primary { background: var(--grad-primary); color: #04160f; box-shadow: 0 6px 16px rgba(62,230,165,.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); box-shadow: 0 10px 22px rgba(62,230,165,.35); }
.btn-outline {
  background: var(--surface); color: var(--primary);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--primary); background: var(--surface-2); }
.btn-ghost { background: var(--surface-2); color: var(--text-body); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-strong); }
.btn-on-tint { background: #fff; color: var(--primary-strong); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   FLASH
   ============================================================ */
.flash {
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--gap);
}
.flash-error   { background: rgba(242,92,92,.16); color: #ffb0b0; }
.flash-success { background: var(--ok-bg);   color: var(--ok-ink); }
.flash-info    { background: var(--info-bg); color: var(--info-ink); }
.flash-warn    { background: var(--warn-bg); color: var(--warn-ink); }

/* ============================================================
   SHELL DO PARTICIPANTE: sem sidebar — background imersão,
   top bar enxuta + dropdown, conteúdo centralizado (sessão)
   ============================================================ */
.shell-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 780px at 50% -8%, #0e2a20 0%, rgba(5,7,10,0) 55%),
    var(--bg-app);
  background-attachment: fixed;
}
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(5,7,10,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
}
.topbar-brand-mark {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff;
  box-shadow: var(--shadow-sm);
}
.topbar-brand-name { font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.topbar-brand-logo { width: 140px; height: auto; display: block; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.shell-content {
  max-width: 960px; width: 100%;
  margin: 0 auto;
  padding: 30px 24px 64px;
}

/* ============================================================
   SHELL (admin): sidebar branca + navbar + conteúdo
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 8px;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px 18px;
}
.sidebar-brand-mark {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-brand-name { font-weight: 800; color: var(--text); font-size: 15px; line-height: 1.2; }
.sidebar-nav { padding: 6px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text-body); }
.nav-item.is-active { background: var(--primary-soft); color: var(--primary-strong); }
.nav-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; background: transparent;
}
.nav-item.is-active .nav-icon { background: rgba(255,255,255,.12); }
.nav-sep {
  margin: 16px 16px 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700;
}

/* CTA contextual no rodapé da sidebar */
.sidebar-cta {
  margin: 8px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.sidebar-cta-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.sidebar-cta-text { font-size: 12.5px; opacity: .9; margin-bottom: 12px; line-height: 1.4; }

/* ── Main column / Navbar ─────────────────────────────── */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.navbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 28px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(5,7,10,.72);
  backdrop-filter: blur(8px);
}
.navbar-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: var(--radius-md);
  font-size: 18px; cursor: pointer; color: var(--text);
}
.navbar-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}
.navbar-search input {
  border: none; background: transparent; outline: none;
  font: inherit; font-size: 14px; color: var(--text); width: 100%;
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search-icon { color: var(--text-muted); font-size: 16px; }
.navbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.pe-indicator {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-weight: 700; color: var(--primary-strong);
  box-shadow: var(--shadow-sm);
}
.pe-indicator-icon { font-size: 15px; }
.pe-indicator-value { font-size: 15px; }
.pe-indicator-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.navbar-bell {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 17px; text-decoration: none; box-shadow: var(--shadow-sm);
}

.navbar-user { position: relative; }
.user-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 5px 12px 5px 5px;
  cursor: pointer; font: inherit; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.user-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-avatar-initial {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong);
  font-weight: 700;
}
.user-name { font-size: 14px; font-weight: 600; }
.user-caret { color: var(--text-muted); font-size: 11px; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  min-width: 170px; padding: 7px; z-index: 50;
}
.user-dropdown a {
  display: block; padding: 10px 13px; border-radius: var(--radius-sm);
  color: var(--text-body); text-decoration: none; font-size: 14px; font-weight: 500;
}
.user-dropdown a:hover { background: var(--surface-2); color: var(--primary-strong); }

/* ── Conteúdo ─────────────────────────────────────────── */
.content { padding: 8px 28px 36px; max-width: 1180px; width: 100%; }

/* Saudação */
.page-greeting { margin: 8px 0 24px; }
.page-greeting h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; }
.page-greeting h1 strong { font-weight: 800; }
.page-greeting p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--gap);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .55;
}
.card-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.card-text { margin: 0 0 12px; line-height: 1.6; color: var(--text-body); }
.muted { color: var(--text-muted); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap);
  align-items: start;
}

/* Chip de ícone (quadrado branco arredondado com ícone colorido) */
.icon-chip {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: 22px;
  flex-shrink: 0;
}

/* ============================================================
   PILLS / CHIPS / STATUS
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
}
.pill-ok   { background: var(--ok-bg);   color: var(--ok-ink); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-info { background: var(--info-bg); color: var(--info-ink); }
.pill-muted{ background: var(--surface-2); color: var(--text-muted); }
.pill-on   { background: var(--ok-bg);   color: var(--ok-ink); }
.pill-off  { background: var(--surface-2); color: var(--text-muted); }

/* ============================================================
   STAT CARDS (admin)
   ============================================================ */
.stat-card { text-align: center; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 13px; margin-top: 8px; }

/* ============================================================
   NOTIFICAÇÕES
   ============================================================ */
.notif-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notif-item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface-2); }
.notif-item.is-unread { border-color: rgba(110,240,192,.30); background: rgba(110,240,192,.07); }
.notif-title { font-weight: 700; color: var(--text); }
.notif-body { font-size: 14px; color: var(--text-body); margin-top: 3px; }
.notif-meta { font-size: 12px; color: var(--text-muted); margin-top: 7px; }

/* ============================================================
   PERFIL
   ============================================================ */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.profile-avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-strong); font-size: 28px; font-weight: 800;
}

/* ============================================================
   METAS / TAREFAS
   ============================================================ */
.task-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface-2);
}
.task-item.is-done { background: rgba(67,197,158,.10); border-color: rgba(67,197,158,.28); }
.task-item.is-done .task-title { text-decoration: line-through; color: var(--text-muted); }
.task-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.task-title { font-weight: 600; color: var(--text); }
.task-due { font-size: 12px; color: var(--text-muted); }
.task-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.task-actions form { margin: 0; }
.task-badge { color: var(--ok-ink); font-weight: 700; font-size: 13px; }

/* ============================================================
   MINHA JORNADA + PROGRESSO DA TURMA
   ============================================================ */

/* Progresso da Turma (card de destaque azul) */
.turma-card {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
}
.turma-card .card-title { color: #fff; }
.turma-stats { display: flex; gap: 40px; margin: 6px 0 14px; flex-wrap: wrap; }
.turma-stats > div { display: flex; flex-direction: column; }
.turma-stats strong { font-size: 32px; font-weight: 800; }
.turma-stats span { font-size: 13px; opacity: .9; }
.turma-destaques { margin: 0; padding-left: 18px; font-size: 14px; opacity: .95; }
.turma-destaques li { margin: 4px 0; }

/* Progresso da Turma — versão participação por dia + marcos */
.turma {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px;
  margin-bottom: var(--gap); box-shadow: var(--shadow-sm);
}
.turma-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.turma-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.turma-title svg { color: var(--primary-strong); }
.turma-sub { font-size: 13px; color: var(--text-muted); }

.turma-dias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.turma-dia {
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(135deg, rgba(62,230,165,.14), rgba(110,240,192,.06));
  border: 1px solid rgba(110,240,192,.20);
  border-radius: var(--radius-md); padding: 16px 18px;
}
.turma-dia-lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-strong); }
.turma-dia-num { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.turma-dia-cap { font-size: 12px; color: var(--text-muted); }
.turma-dia-bar { margin-top: 9px; height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); overflow: hidden; }
.turma-dia-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); transition: width .5s; }

.turma-marcos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.turma-marco { display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; }
.turma-marco-ic { flex-shrink: 0; display: inline-flex; width: 36px; height: 36px; border-radius: var(--radius-sm); align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-strong); }
.turma-marco-n { font-size: 20px; font-weight: 800; color: var(--text); }
.turma-marco-lbl { font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }

@media (max-width: 720px) {
  .turma-dias { grid-template-columns: 1fr; }
  .turma-marcos { grid-template-columns: 1fr; }
}

/* Selos */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 128px; padding: 18px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  text-align: center; background: var(--surface-2);
  opacity: .5; filter: grayscale(1);
  transition: opacity .15s ease;
}
.badge.is-earned { opacity: 1; filter: none; background: rgba(110,240,192,.07); border-color: rgba(110,240,192,.30); }
.badge-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: 24px;
}
.badge-label { font-size: 12.5px; font-weight: 600; color: var(--text-body); }

/* Cards de dia (tom pastel por dia) */
.day-card {
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--gap);
  border: 1px solid var(--line);
  background: var(--surface);
}
.day-card.tint-blue  { background: linear-gradient(135deg, rgba(62,230,165,.14), rgba(62,230,165,.04)); }
.day-card.tint-peach { background: linear-gradient(135deg, rgba(251,176,59,.14), rgba(251,176,59,.04)); }
.day-card.tint-mint  { background: linear-gradient(135deg, rgba(67,197,158,.14), rgba(67,197,158,.04)); }
.day-card.tint-rose  { background: linear-gradient(135deg, rgba(242,92,149,.14), rgba(242,92,149,.04)); }
.day-card.is-current-day { box-shadow: 0 0 0 2px var(--primary), var(--shadow-card); }

.day-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.day-head-text { flex: 1; }
.day-title { margin: 0; font-size: 18px; font-weight: 800; }
.day-card.tint-blue  .day-title { color: var(--primary-strong); }
.day-card.tint-peach .day-title { color: var(--tint-peach-ink); }
.day-card.tint-mint  .day-title { color: var(--tint-mint-ink); }
.day-card.tint-rose  .day-title { color: var(--tint-rose-ink); }
.day-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }
.day-badge {
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap;
}

.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.activity-item {
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--radius-md); padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.activity-item.is-done { background: rgba(67,197,158,.10); border-color: rgba(67,197,158,.28); }
.activity-main { min-width: 0; flex: 1; }
.activity-title { font-weight: 700; color: var(--text); }
.activity-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.activity-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.activity-pe {
  font-size: 12px; font-weight: 700; color: var(--primary-strong);
  background: var(--primary-soft); padding: 4px 10px; border-radius: var(--radius-pill);
}

/* Card bloqueado/não liberado */
.locked-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed var(--line); border-radius: var(--radius-md);
  padding: 16px; background: var(--surface-2); opacity: .65;
}
.locked-card .icon-chip { background: var(--surface-2); box-shadow: none; }

/* ============================================================
   ADMIN
   ============================================================ */
.day-switch { display: flex; flex-wrap: wrap; gap: 10px; }
.day-switch form { margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 13px 14px; vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }
.admin-table form { margin: 0; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: var(--shadow-md);
  }
  .sidebar.is-open { transform: translateX(0); }
  .navbar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .navbar-search { max-width: none; }
  .content { padding: 8px 16px 28px; }
  .user-name { display: none; }
  .topbar { padding: 14px 16px; }
  .topbar-brand-logo { width: 120px; }
  .shell-content { padding: 22px 16px 44px; }
}
@media (max-width: 600px) {
  .navbar-search { display: none; }
  .activity-item { flex-wrap: wrap; }
  .activity-side { width: 100%; justify-content: space-between; }
  .cond-wait-hero { padding: 76px 20px 36px; }
}

/* ============================================================
   RAIO-X — tela inicial (etapas + CTA)
   ============================================================ */
.raiox-step { display: flex; gap: 14px; align-items: flex-start; }
.raiox-step.is-locked { opacity: .75; }
.raiox-step-main { flex: 1; min-width: 0; }
.raiox-step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.raiox-locked-note {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--warn-ink);
  background: var(--warn-bg); padding: 8px 14px; border-radius: var(--radius-pill);
}

.raiox-cta-card {
  background: var(--grad-primary); color: #fff;
  border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-card); text-align: center;
  position: sticky; top: 96px;
}
.raiox-cta-icon { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.raiox-cta-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.raiox-cta-text { font-size: 14px; opacity: .92; line-height: 1.5; margin: 0 0 20px; }
.raiox-cta-btn { width: 100%; font-weight: 800; letter-spacing: .01em; }
.raiox-cta-hint { font-size: 12.5px; opacity: .9; margin: 12px 0 0; }
.raiox-demo-link { color: #fff; text-decoration: underline; font-weight: 700; }

/* ============================================================
   RAIO-X — relatório em tela cheia + animação
   ============================================================ */
/* Página do relatório: fundo escuro imersivo (só esta tela). */
.blank-body { background: #05070a; margin: 0; }
.rx {
  position: relative;
  /* embutido no sistema (que já tem bg): sem fundo próprio e sem altura forçada,
     pra não virar "card sobre card". */
}
/* Grão/textura sutil de "tela tática" (gerado em CSS, sem imagem externa) */
.rx::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image:
    radial-gradient(rgba(255,255,255,.6) 0.5px, transparent 0.6px),
    radial-gradient(rgba(255,255,255,.4) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}
.rx > * { position: relative; z-index: 1; }

/* Ícones SVG (helper icon()) — herdam a cor do contexto */
.rx-ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
/* Badges PNG 3D reutilizáveis */
.rx-mission-badge { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.rx-block-badge   { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }

/* --- Scan overlay --- */
/* Intro do Raio-X completo — gate "Gerar meu Raio-X" antes da geração */
.rx-intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: #0F1B2D url("../img/bg-raiox.jpg") center / cover no-repeat;
  color: #fff; padding: 24px; transition: opacity .45s ease;
}
.rx-intro::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(20,54,95,.5) 0%, rgba(15,27,45,.9) 75%);
}
.rx-intro--out { opacity: 0; pointer-events: none; }
.rx-intro-inner { position: relative; z-index: 2; text-align: center; max-width: 480px; }
.rx-intro-ic {
  display: inline-flex; width: 86px; height: 86px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 22px;
  background: rgba(110,240,192,.14); color: var(--primary-strong);
  box-shadow: 0 0 44px rgba(62,230,165,.30);
}
.rx-intro-title { font-size: 30px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.rx-intro-sub { font-size: 15.5px; line-height: 1.6; color: #c4d2e6; margin: 0 0 28px; }
.rx-intro-btn { font-size: 16px; padding: 14px 30px; }

.rx-scan {
  position: fixed; inset: 0; z-index: 100;
  background: #0F1B2D url("../img/bg-raiox.jpg") center / cover no-repeat;
  color: #fff; display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: opacity .5s ease;
}
/* Overlay escuro por cima da imagem para manter texto/barra legíveis */
.rx-scan::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(20,54,95,.55) 0%, rgba(15,27,45,.85) 75%);
}
.rx-scan--out { opacity: 0; pointer-events: none; }
.rx-scan-inner { text-align: center; width: min(460px, 88vw); z-index: 3; position: relative; }

/* Emblema com anéis girando ao redor do badge */
.rx-scan-emblem { position: relative; width: 130px; height: 130px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.rx-scan-badge { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(62,230,165,.65)); animation: rxPulse 1.8s ease-in-out infinite; }
/* GIF (boneco girando) — já tem animação própria, sem anéis/pulso */
.rx-scan-emblem-gif { width: 150px; height: 150px; margin-bottom: 2px; }
.rx-scan-gif { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(62,230,165,.55)); }
.rx-scan-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(62,230,165,.35); border-top-color: #6ff0c0;
  animation: rxSpin 2.4s linear infinite;
}
.rx-scan-ring-2 { inset: 14px; border-color: rgba(110,240,192,.18); border-bottom-color: #3ee6a5; animation: rxSpin 3.4s linear infinite reverse; }
.rx-scan-title { font-size: 24px; font-weight: 800; margin-top: 10px; }
.rx-scan-sub { font-size: 14px; opacity: .85; margin-top: 8px; min-height: 20px; color: #bcd2ee; transition: opacity .3s ease; }

/* Checklist dos passos da análise */
.rx-scan-steps { list-style: none; margin: 18px auto; padding: 0; text-align: left; width: min(360px, 86vw); display: flex; flex-direction: column; gap: 9px; }
.rx-scan-steps li {
  position: relative; padding-left: 28px; font-size: 13px; line-height: 1.3;
  color: rgba(255,255,255,.55);
  overflow: hidden; border-radius: 8px;
  transition: color .3s ease, opacity .4s ease, transform .4s ease;
}
/* marcador (círculo) à esquerda */
.rx-scan-steps li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); box-sizing: border-box;
  transition: all .3s ease;
}
.rx-step-text { position: relative; z-index: 1; }

/* Pendente: invisível e levemente abaixo (entra ao virar ativo) */
.rx-scan-steps li.is-pending { opacity: 0; transform: translateY(8px); }

/* Ativo: aparece, texto claro, marcador com spinner girando */
.rx-scan-steps li.is-active { opacity: 1; transform: none; color: #fff; }
.rx-scan-steps li.is-active::before {
  border-color: rgba(110,240,192,.35);
  border-top-color: #6ff0c0;
  animation: rxSpin .7s linear infinite;
}

/* Faixa de scan que varre o item enquanto está ativo */
.rx-step-scan {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg,
    rgba(110,240,192,0) 0%,
    rgba(110,240,192,.28) 50%,
    rgba(110,240,192,0) 100%);
}
.rx-scan-steps li.is-active .rx-step-scan {
  opacity: 1;
  animation: rxStepSweep 1.1s ease-in-out;
}
@keyframes rxStepSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Concluído: check fixo, texto claro */
.rx-scan-steps li.is-done { color: #eaf3ff; opacity: 1; transform: none; }
.rx-scan-steps li.is-done::before {
  content: "✓"; font-size: 11px; font-weight: 800; color: #0F1B2D; text-align: center; line-height: 14px;
  background: #6ff0c0; border-color: #6ff0c0; animation: none;
}

.rx-scan-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); margin: 16px 0 10px; overflow: hidden; }
.rx-scan-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#3ee6a5,#6ff0c0); transition: width .12s linear; box-shadow: 0 0 12px rgba(110,240,192,.7); }
.rx-scan-pct { font-size: 28px; font-weight: 800; }
.rx-scan-line {
  position: absolute; left: 0; right: 0; height: 140px; z-index: 1;
  background: linear-gradient(180deg, rgba(62,230,165,0) 0%, rgba(62,230,165,.18) 50%, rgba(62,230,165,0) 100%);
  animation: rxScanMove 2.6s ease-in-out infinite;
}
/* Grade sutil de fundo (textura de "scanner") */
.rx-scan-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(110,240,192,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,240,192,.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  animation: rxGridDrift 8s linear infinite;
}
@keyframes rxScanMove { 0% { top: -160px; } 100% { top: 100%; } }
@keyframes rxPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes rxSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rxGridDrift { from { background-position: 0 0, 0 0; } to { background-position: 40px 40px, 40px 40px; } }

/* --- Report --- */
.rx-report { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
.rx-page-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #eaf6ff; letter-spacing: -.01em; margin: 4px 2px 20px; }

/* Linha de scanner que varre o relatório uma vez ao abrir */
.rx-reveal-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.85), transparent);
  box-shadow: 0 0 18px rgba(56,189,248,.7);
}
.rx-report.rx-revealing .rx-reveal-scan { animation: rxRevealScan 1.6s ease-out forwards; }
@keyframes rxRevealScan {
  0%   { top: 0;    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.rx-topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.rx-brand { font-weight: 800; color: #eaf3ff; display: flex; align-items: center; gap: 8px; }
.rx-brand-mark { color: #6ff0c0; }
/* Botão "Fechar" adaptado ao fundo escuro */
.rx-topbar .btn-ghost {
  background: rgba(255,255,255,.08); color: #cdd9ea; border: 1px solid rgba(255,255,255,.12);
}
.rx-topbar .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Ações do topo (olho + fechar) */
.rx-topbar-actions { display: flex; align-items: center; gap: 10px; }
.rx-eye-btn {
  width: 38px; height: 38px; border-radius: var(--radius-md); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #cdd9ea; border: 1px solid rgba(255,255,255,.12);
  transition: background .15s ease, color .15s ease;
}
.rx-eye-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.rx-eye-btn:focus-visible { outline: 2px solid #6ff0c0; outline-offset: 2px; }
.rx-eye-btn .rx-eye-off { display: none; }
/* quando os nomes estão ocultos: troca o ícone e destaca o botão */
.rx-blurred .rx-eye-btn { background: rgba(110,240,192,.18); color: #bfe3ff; border-color: rgba(110,240,192,.4); }
.rx-blurred .rx-eye-btn .rx-eye-on { display: none; }
.rx-blurred .rx-eye-btn .rx-eye-off { display: inline-flex; }

/* Borra nomes de matérias e títulos/descrição da rotina (data/hora seguem nítidos) */
.rx-blurable { transition: filter .25s ease; }
.rx-blurred .rx-blurable { filter: blur(6px); user-select: none; }
/* labels do radar (SVG) — blur leve, o SVG aceita filter CSS */
.rx-blurred text.rx-blurable { filter: blur(3px); }

/* Numa página escura, os blocos ganham um leve contorno claro para "flutuar". */
.rx .rx-hero, .rx .rx-radar-panel, .rx .rx-plan {
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 18px 44px rgba(0,0,0,.40);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Stagger: filhos diretos entram um a um quando o container ganha .is-in */
.rx-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.rx-stagger.is-in > * { opacity: 1; transform: none; }
.rx-stagger.is-in > *:nth-child(1) { transition-delay: 0s; }
.rx-stagger.is-in > *:nth-child(2) { transition-delay: .35s; }
.rx-stagger.is-in > *:nth-child(3) { transition-delay: .70s; }
.rx-stagger.is-in > *:nth-child(4) { transition-delay: 1.05s; }
.rx-stagger.is-in > *:nth-child(5) { transition-delay: 1.40s; }

/* Herói do perfil: imagem de fundo (atmosfera noturna) + texto claro */
.rx-hero {
  position: relative; overflow: hidden;
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  background: #0F1B2D url("../img/bg-perfil.jpg") center / cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card); margin-bottom: var(--gap);
  color: #fff;
}
/* Overlay para legibilidade: escurece mais à esquerda (onde o texto/gauge ficam) */
.rx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(10,18,32,.85) 0%, rgba(10,18,32,.62) 50%, rgba(10,18,32,.30) 100%);
}
.rx-hero > * { position: relative; z-index: 1; }

.rx-gauge { position: relative; width: 168px; height: 168px; flex-shrink: 0; }
/* overflow visible: o glow (drop-shadow) do anel não é cortado pela caixa do SVG */
.rx-gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rx-gauge-track { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 12; }
.rx-gauge-fill { fill: none; stroke: #6ff0c0; stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(110,240,192,.55)); }
.rx-gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rx-gauge-num { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.rx-gauge-pct { font-size: 20px; font-weight: 800; color: #fff; }
.rx-gauge-label { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.rx-hero-text { flex: 1; min-width: 260px; }
.rx-eyebrow { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }
.rx-perfil-title { font-size: 28px; font-weight: 800; margin: 6px 0 10px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.rx-perfil-resumo { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.88); margin: 0 0 14px; }
.rx-countdown { display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: rgba(110,240,192,.22); padding: 7px 14px; border-radius: var(--radius-pill); }

.rx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rx-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--pad-card); box-shadow: var(--shadow-card); }
.rx-card-title { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.rx-card-foot { font-size: 12px; margin: 14px 0 0; }

/* ── Radar de prontidão (painel escuro, estilo ESPN) ── */
.rx-radar-panel {
  position: relative;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; align-items: stretch;
  background:
    radial-gradient(900px 500px at 35% 25%, #163a64 0%, rgba(15,27,45,0) 60%),
    linear-gradient(160deg, #0F1B2D 0%, #122441 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--gap);
}

/* Brilho de luz que cruza o bloco inteiro (disparado em intervalos aleatórios via JS) */
.rx-sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
  z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg,
    rgba(110,240,192,0) 0%,
    rgba(110,240,192,.10) 40%,
    rgba(180,225,255,.22) 50%,
    rgba(110,240,192,.10) 60%,
    rgba(110,240,192,0) 100%);
  transform: translateX(-120%) skewX(-12deg);
  mix-blend-mode: screen;
}
.rx-radar-panel.is-shining .rx-sheen {
  animation: rxSheen 1.5s ease-in-out;
}
@keyframes rxSheen {
  0%   { opacity: 0; transform: translateX(-120%) skewX(-12deg); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(240%) skewX(-12deg); }
}
.rx-radar-stage { padding: 24px 10px 18px 24px; }
.rx-radar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.rx-radar-h { font-size: 18px; font-weight: 800; color: #fff; margin: 0; }
.rx-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.rx-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #b6c6dd; }
.rx-lg { width: 14px; height: 4px; border-radius: 4px; display: inline-block; }
.rx-lg-conf   { background: transparent; height: 0; border-top: 1.5px dashed #9DC6F2; }
.rx-lg-acerto { background: #3ee6a5; box-shadow: 0 0 8px rgba(62,230,165,.8); }
.rx-lg-peso   { background: #6E7E9B; }
.rx-lg-prio   { background: #FBB03B; box-shadow: 0 0 8px rgba(251,176,59,.7); }

.rx-radar { display: flex; justify-content: center; padding: 4px 0; }
.rx-radar-svg { width: 100%; max-width: 390px; height: auto; overflow: visible; }
.rx-radar-ring { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 2 4; }

/* ── Montagem "Transformer" (botão de montar diagnóstico) ── */
/* peça oculta: some mantendo o espaço. SVG e HTML transicionam opacidade/encaixe */
.rx-asm-off { opacity: 0 !important; }
svg .rx-asm-off, .rx-radar-svg .rx-asm-off { opacity: 0; }
.rx-radar-ring, .rx-radar-axis, .rx-radar-label,
.rx-layer-peso, .rx-layer-peso-area, .rx-layer-prio, .rx-layer-prio-area,
.rx-layer-conf, .rx-layer-acerto, .rx-layer-acerto-area, .rx-radar-dot {
  transition: opacity .45s ease;
}
/* peças HTML (cabeçalho, título, linhas, células) encaixam com leve deslize */
.rx-radar-head, .rx-aside-title, .rx-aside-foot, .rx-aside-btn,
.rx-trow, .rx-tcell {
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1);
}
.rx-radar-head.rx-asm-off, .rx-aside-title.rx-asm-off,
.rx-aside-foot.rx-asm-off, .rx-aside-btn.rx-asm-off { transform: translateY(8px); }
.rx-trow.rx-asm-off { transform: translateX(14px); }
.rx-tcell.rx-asm-off { transform: translateY(6px); }
.rx-radar-axis { stroke: rgba(255,255,255,.10); stroke-width: 1; }
.rx-radar-label { font-size: 11px; font-weight: 600; fill: #aebfd6; }
.rx-mat-badge { stroke: rgba(255,255,255,.25); stroke-width: 1; filter: drop-shadow(0 0 3px rgba(0,0,0,.4)); }

/* Camada PESO na prova: preenchimento neutro (contexto de fundo) */
.rx-layer-peso-area { fill: rgba(110,126,155,.14); stroke: none; }
.rx-layer-peso { fill: none; stroke: rgba(176,190,214,.9); stroke-width: 2; stroke-linejoin: round; }

/* Camada PRIORIDADE de foco: âmbar com glow (chama atenção) */
.rx-layer-prio-area { fill: rgba(251,176,59,.12); stroke: none; }
.rx-layer-prio {
  fill: none; stroke: #FBB03B; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1 0;
  filter: drop-shadow(0 0 6px rgba(251,176,59,.6));
}

/* Camada CONFIANÇA declarada: contorno fino tracejado */
.rx-layer-conf {
  fill: none; stroke: #9DC6F2; stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round;
}

/* Camada ACERTO real: área preenchida azul com glow (a leitura principal) */
.rx-layer-acerto-area { fill: rgba(62,230,165,.20); stroke: none; }
.rx-layer-acerto {
  fill: none; stroke: #3ee6a5; stroke-width: 2.5; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(62,230,165,.7));
}

.rx-radar-dot { stroke-width: 2; animation: rxDotPulse 1.8s ease-in-out infinite; }
.rx-dot-acerto { fill: #fff; stroke: #3ee6a5; }
.rx-dot-prioridade { fill: #FBB03B; stroke: #1c2e47; }
@keyframes rxDotPulse { 0%,100% { r: 3.2; opacity: 1; } 50% { r: 5; opacity: .7; } }

/* Painel lateral: tabela com as 4 métricas */
.rx-radar-aside {
  /* imagem de fundo (scan craniofacial) + gradiente escuro por cima.
     Mais opaco à esquerda (coluna de matéria) e revela os detalhes à direita. */
  background:
    linear-gradient(90deg, rgba(10,24,43,.97) 0%, rgba(10,24,43,.92) 50%, rgba(10,24,43,.74) 100%),
    url("../img/bg-cruzamento.jpg");
  background-size: cover, cover;
  background-position: center, right center;
  padding: 22px 20px;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.06);
  transition: background .5s ease, border-color .5s ease;
}
.rx-aside-title { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.rx-aside-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rx-aside-table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em;
  color: #8499b6; font-weight: 700; text-align: center; padding: 0 4px 8px;
}
.rx-aside-table th:first-child { text-align: left; }
.rx-aside-table td { padding: 8px 4px; text-align: center; color: #c9d6e8; font-weight: 700; }
.rx-aside-table tbody tr { border-top: 1px solid rgba(255,255,255,.05); }
/* enquanto o diagnóstico está escondido, sem bordas (border-collapse ignora opacity) */
.rx-aside-table.rx-asm-collapsed tbody tr { border-color: transparent; }
/* painel recolhido: pausa o brilho que cruza e some a divisória interna */
.rx-radar-panel.rx-collapsed .rx-sheen { display: none; animation: none; }
.rx-radar-panel.rx-collapsed .rx-radar-aside { border-left-color: transparent; }

/* shell (o box em si) — fade mais lento do fundo/borda/sombra, mantendo o espaço */
.rx-radar-panel { transition: background .8s ease, box-shadow .8s ease, border-color .8s ease; }
.rx-radar-panel.rx-shell-off {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.rx-radar-panel.rx-shell-off .rx-radar-aside { background: transparent !important; }
/* grow-up do box ao entrar (pulsação) */
.rx-radar-panel.rx-shell-pop { animation: rxShellPop .7s cubic-bezier(.34,1.4,.5,1); }
@keyframes rxShellPop { 0% { transform: scale(.97); } 60% { transform: scale(1.012); } 100% { transform: scale(1); } }

/* grow-up de elementos HTML ao entrar */
.rx-pop { animation: rxPop .55s cubic-bezier(.34,1.45,.5,1); }
@keyframes rxPop { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
.rx-tname { text-align: left !important; color: #e6edf6 !important; font-weight: 600 !important; }
.rx-foco-val {
  position: relative; display: inline-block; min-width: 30px; padding: 3px 7px; border-radius: 7px;
  background: rgba(251,176,59,.18); color: #ffd99a; font-weight: 800;
}
.rx-aside-table tr.is-foco { background: rgba(242,92,92,.12); animation: rxFocoPulse 2.2s ease-in-out infinite; }
.rx-aside-table tr.is-foco .rx-foco-val { background: rgba(242,92,92,.32); color: #ffdada; }
.rx-aside-table tr.is-foco .rx-tname { color: #fff !important; }

/* Pulso vermelho na linha de maior foco (reforça que é a prioridade crítica) */
@keyframes rxFocoPulse {
  0%, 100% { background: rgba(242,92,92,.10); }
  50%      { background: rgba(242,92,92,.20); }
}

/* Borda animada "raio" em volta do valor de foco (badge "100") */
.rx-aside-table tr.is-foco .rx-foco-val {
  background: rgba(242,92,92,.30); color: #fff; z-index: 0;
  /* fallback (sem @property): borda + glow pulsante vermelho */
  box-shadow: 0 0 0 1.5px rgba(255,92,92,.7), 0 0 10px rgba(255,92,92,.5);
  animation: rxFocoGlow 1.6s ease-in-out infinite;
}
@keyframes rxFocoGlow {
  0%,100% { box-shadow: 0 0 0 1.5px rgba(255,92,92,.55), 0 0 8px rgba(255,92,92,.35); }
  50%     { box-shadow: 0 0 0 1.5px rgba(255,92,92,.95), 0 0 16px rgba(255,92,92,.7); }
}
.rx-aside-table tr.is-foco .rx-foco-val::before {
  content: ""; position: absolute; inset: -2px; border-radius: 9px; z-index: -1;
  padding: 2px;
  background: conic-gradient(from var(--rx-ang, 0deg),
    rgba(242,92,92,0) 0deg,
    rgba(242,92,92,0) 230deg,
    #ff5c5c 300deg,
    #ffd0d0 330deg,
    #ff5c5c 360deg);
  /* máscara para mostrar só a "borda" (anel), não o preenchimento */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: rxBorderSpin 1.6s linear infinite;
}
@property --rx-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rxBorderSpin { to { --rx-ang: 360deg; } }
.rx-aside-foot { font-size: 11.5px; color: #8499b6; margin-top: 14px; line-height: 1.45; }
.rx-aside-foot strong { color: #cdd9ea; }

@media (max-width: 760px) {
  .rx-radar-panel { grid-template-columns: 1fr; }
  .rx-radar-aside { border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
}

/* ============================================================
   PLANO DE ATAQUE (seção escura integrada) — substitui os 3 cards brancos
   ============================================================ */
.rx-plan-intro {
  color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  margin: 4px 2px 12px; max-width: 720px;
}
.rx-plan {
  background:
    radial-gradient(900px 500px at 30% 0%, #163a64 0%, rgba(15,27,45,0) 55%),
    linear-gradient(160deg, #0F1B2D 0%, #122441 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  margin-bottom: var(--gap);
  color: #e6edf6;
}
.rx-plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rx-plan-mark {
  width: 40px; height: 40px; border-radius: var(--radius-md); flex-shrink: 0; color: #9bd0ff;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(110,240,192,.14); box-shadow: 0 0 16px rgba(62,230,165,.25) inset;
}
.rx-plan-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }

/* Wrappers de ícone introduzidos com os SVGs */
.rx-perfil-ic { display: inline-flex; vertical-align: middle; color: #cfe0f5; }
.rx-block-titlewrap { display: inline-flex; align-items: center; gap: 10px; }
.rx-mission-headline { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rx-mission-headline .rx-mission-name { margin: 0; }
.rx-mission-headline .rx-mission-why { margin: 4px 0 0; }
.rx-brand-mark { display: inline-flex; vertical-align: middle; }

/* Grid: missão grande (2 col), e os outros 3 distribuídos */
.rx-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rx-mission { grid-column: 1 / -1; }   /* missão ocupa a linha toda no topo */

/* Card interno padrão (azul escuro levemente mais claro) */
.rx-plan-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rx-plan-card:hover { border-color: rgba(110,240,192,.30); background: rgba(255,255,255,.055); }
.rx-block-title { font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 14px; }
.rx-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rx-block-head .rx-block-title { margin: 0; }

/* Badges */
.rx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.rx-badge-alta  { background: rgba(242,92,92,.18);  color: #ffb3b3; }
.rx-badge-media { background: rgba(251,176,59,.16); color: #ffd99a; }
.rx-badge-info  { background: rgba(110,240,192,.16); color: #bfe3ff; }

/* ── Bloco 1: Próxima missão ── */
.rx-mission {
  background: linear-gradient(135deg, rgba(242,92,92,.16) 0%, rgba(110,240,192,.10) 100%);
  border: 1px solid rgba(255,255,255,.12);
  position: relative; overflow: hidden;
}
.rx-mission::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(110,240,192,.18), transparent 70%); pointer-events: none;
}
.rx-mission-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rx-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #bcd2ee; }
.rx-mission-name { font-size: 30px; font-weight: 800; color: #fff; margin: 8px 0 6px; }
.rx-mission-why { font-size: 14px; line-height: 1.55; color: #c9d6e8; margin: 0 0 18px; max-width: 640px; }
.rx-mission-metrics { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 16px; }
.rx-metric { display: flex; flex-direction: column; gap: 2px; }
.rx-metric-val { font-size: 20px; font-weight: 800; color: #fff; }
.rx-metric-val.rx-prio-num { color: #FBB03B; }
.rx-metric-lbl { font-size: 12px; color: #93a6c2; }
.rx-prio-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; margin-bottom: 18px; }
.rx-prio-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FBB03B, #F25C5C); box-shadow: 0 0 10px rgba(242,92,92,.5); }
/* Chips "por que é prioridade" */
.rx-why-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rx-why-chip {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(242,92,92,.16); color: #ffc7c7; border: 1px solid rgba(242,92,92,.25);
}
/* Próxima ação recomendada (bloco forte) */
.rx-next-action {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px;
}
.rx-next-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #93a6c2; }
.rx-next-title { font-size: 17px; font-weight: 800; color: #fff; }
.rx-next-time { font-size: 12.5px; color: #9fb1c9; }
.rx-mission-cta { font-weight: 800; box-shadow: 0 6px 20px rgba(110,240,192,.25); }

/* Status do diagnóstico (chips) */
.rx-sources { margin: -4px 2px 18px; }
.rx-sources-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6f87a8; margin-bottom: 8px; }
.rx-sources-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-source-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: #c4d2e6;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 6px 12px; border-radius: var(--radius-pill);
  cursor: help; transition: background .15s ease, border-color .15s ease;
}
.rx-source-chip:hover, .rx-source-chip:focus-visible {
  background: rgba(110,240,192,.10); border-color: rgba(110,240,192,.30); outline: none;
}
.rx-source-ic { display: inline-flex; color: #9bd0ff; }

/* ── Tooltip genérico (data-tip) ── */
.rx-tip { position: relative; }
.rx-tip::after, .rx-tip::before {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  transform: translate(-50%, 4px); z-index: 60;
}
.rx-tip::after {
  content: attr(data-tip);
  width: max-content; max-width: 260px; white-space: normal; text-align: left;
  background: #0e2038; color: #e6eefb; font-size: 12.5px; font-weight: 500; line-height: 1.45;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(110,240,192,.25);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.rx-tip::before { /* seta */
  content: ""; bottom: calc(100% + 4px);
  border: 6px solid transparent; border-top-color: #0e2038;
}
.rx-tip:hover::after, .rx-tip:hover::before,
.rx-tip:focus-visible::after, .rx-tip:focus-visible::before {
  opacity: 1; transform: translate(-50%, 0);
}

/* Botão "ver relatório da prova" no painel escuro */
.rx-aside-btn {
  margin-top: 14px; width: 100%;
  background: rgba(255,255,255,.06); color: #cfe0f5; border: 1px solid rgba(255,255,255,.14);
}
.rx-aside-btn:hover { background: rgba(110,240,192,.14); color: #fff; border-color: rgba(110,240,192,.4); }
.rx-aside-btn .rx-ico { color: #9bd0ff; }

/* ── Bloco 2: Ranking de foco ── */
.rx-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rx-rank-item { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid transparent; }
.rx-rank-item.is-top { background: rgba(242,92,92,.10); }
/* borda vermelha animada "raio" em volta da matéria de maior foco */
.rx-rank-item.is-top::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); z-index: 0;
  padding: 1.5px;
  background: conic-gradient(from var(--rx-ang, 0deg),
    rgba(242,92,92,0) 0deg, rgba(242,92,92,0) 220deg,
    #ff5c5c 300deg, #ffd0d0 330deg, #ff5c5c 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: rxBorderSpin 1.8s linear infinite;
  pointer-events: none;
}
/* fallback (sem @property): contorno vermelho pulsante */
@supports not (background: conic-gradient(from var(--rx-ang))) {
  .rx-rank-item.is-top { border-color: rgba(255,92,92,.5); animation: rxFocoGlow 1.6s ease-in-out infinite; }
  .rx-rank-item.is-top::before { display: none; }
}
.rx-rank-item.is-top > * { position: relative; z-index: 1; }
.rx-rank-num { font-size: 26px; font-weight: 800; color: rgba(255,255,255,.30); line-height: 1; min-width: 34px; }
.rx-rank-item.is-top .rx-rank-num { color: #ff9c9c; }
.rx-rank-body { flex: 1; min-width: 0; }
.rx-rank-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rx-rank-mat { font-size: 15px; font-weight: 700; color: #fff; }
.rx-rank-motivo { font-size: 12.5px; color: #93a6c2; margin: 3px 0 8px; }
.rx-rank-bars { display: flex; flex-direction: column; gap: 5px; }
.rx-minibar { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 8px; }
.rx-minibar-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #7e90ad; }
.rx-minibar-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rx-minibar-track i {
  display: block; height: 100%; border-radius: 999px;
  width: 0; transition: width .9s cubic-bezier(.22,.61,.36,1);
}
/* preenche quando o plano entra (sensação de cálculo) */
.rx-plan.is-bars-in .rx-minibar-track i { width: var(--val, 0); }
.rx-minibar-pct { font-size: 11px; font-weight: 700; color: #93a6c2; text-align: right; }
.rx-fill-gap { background: linear-gradient(90deg, #F25C5C, #FBB03B); }
.rx-fill-peso { background: #6E7E9B; }

/* ── Bloco 3: Rotina (timeline) ── */
.rx-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.rx-timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.10); }
.rx-tl-item { position: relative; display: flex; gap: 14px; padding: 0 0 16px 0; }
.rx-tl-item:last-child { padding-bottom: 0; }
.rx-tl-dot {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%; color: #6ff0c0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #16294a; border: 1px solid rgba(110,240,192,.30);
}
.rx-tl-body { display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.rx-tl-hora { font-size: 13px; font-weight: 800; color: #6ff0c0; }
.rx-tl-titulo { font-size: 14px; font-weight: 700; color: #fff; }
.rx-tl-detalhe { font-size: 12.5px; color: #93a6c2; }

/* ── Bloco 4: O que o Raio-X detectou (largura total, cards lado a lado) ── */
.rx-detected { margin-top: 16px; }
.rx-detected-title { margin: 0 0 14px; }
.rx-detected-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.rx-rule-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: start; }
.rx-rule-icon {
  grid-row: 1 / span 2; align-self: start;
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; color: #9bd0ff;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(110,240,192,.12); border: 1px solid rgba(255,255,255,.06);
}
.rx-rule-title { grid-column: 2; font-size: 14px; font-weight: 700; color: #eaf3ff; }
.rx-rule-detalhe { grid-column: 2; font-size: 12.5px; color: #93a6c2; line-height: 1.45; }
/* "O que o Raio-X detectou" — cards empilhados na coluna da antiga rotina */
.rx-detected-col { display: flex; flex-direction: column; gap: 12px; }
.rx-detected-coltitle { margin: 0 0 2px; }

/* CTA bloqueado (com cadeado) */
/* CTA do plano de estudos — chamativo (gradiente dourado→azul, glow, pulso sutil) */
.rx-cta-plan {
  gap: 9px; color: #1b2430; font-weight: 800;
  background: linear-gradient(100deg, #FBD24B 0%, #FBB03B 45%, #ffd98a 100%);
  border: none; box-shadow: 0 8px 24px rgba(251,176,59,.35);
  animation: rxPlanPulse 2.4s ease-in-out infinite;
}
.rx-cta-plan:hover { filter: brightness(1.05); box-shadow: 0 10px 30px rgba(251,176,59,.5); transform: translateY(-1px); }
.rx-cta-plan .rx-ico { opacity: .9; }
@keyframes rxPlanPulse {
  0%,100% { box-shadow: 0 8px 24px rgba(251,176,59,.30); }
  50%     { box-shadow: 0 8px 30px rgba(251,176,59,.55); }
}

/* ── Modal ── */
.rx-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,7,10,.72); backdrop-filter: blur(4px);
  animation: rxModalFade .2s ease;
}
.rx-modal-overlay[hidden] { display: none; }   /* o atributo hidden vence o display:flex */
@keyframes rxModalFade { from { opacity: 0; } to { opacity: 1; } }
.rx-modal {
  position: relative; width: min(440px, 92vw); text-align: center;
  background: linear-gradient(160deg, #11233f 0%, #0d1a30 100%);
  border: 1px solid rgba(110,240,192,.18); border-radius: var(--radius-lg);
  padding: 34px 30px 28px; box-shadow: 0 30px 70px rgba(0,0,0,.5);
  animation: rxModalIn .25s cubic-bezier(.22,.61,.36,1);
}
@keyframes rxModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.rx-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: none; color: #aeb9c9; font-size: 15px; cursor: pointer;
}
.rx-modal-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.rx-modal-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; color: #FBB03B;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,176,59,.14); border: 1px solid rgba(251,176,59,.3);
}
.rx-modal-title { font-size: 21px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.rx-modal-text { font-size: 14.5px; line-height: 1.6; color: #c9d6e8; margin: 0 0 16px; }
.rx-modal-text strong { color: #fff; }
.rx-modal-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 22px;
  font-size: 13px; font-weight: 700; color: #ffd99a;
  background: rgba(251,176,59,.14); border: 1px solid rgba(251,176,59,.3);
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.rx-modal-badge .rx-ico { color: #FBB03B; }
.rx-modal-ok { font-weight: 800; min-width: 140px; display: block; margin: 0 auto; }
body.rx-modal-open { overflow: hidden; }

/* Foco visível (acessibilidade) nos interativos da seção escura */
.rx-plan a:focus-visible, .rx-mission-cta:focus-visible {
  outline: 2px solid #6ff0c0; outline-offset: 2px;
}

/* Responsivo */
@media (max-width: 900px) {
  .rx-plan-grid { grid-template-columns: 1fr 1fr; }
  .rx-detected-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .rx-plan { padding: 20px 16px; }
  .rx-plan-grid { grid-template-columns: 1fr; }
  .rx-detected-grid { grid-template-columns: 1fr; }
  .rx-mission-name { font-size: 24px; }
  .rx-mission-metrics { gap: 18px; }
  .rx-mission-headline { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Onde focar */
.rx-focus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rx-focus-item { display: flex; gap: 12px; align-items: flex-start; }
.rx-focus-flag { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.rx-flag-alta { background: #FCE3E3; color: #C0394A; }
.rx-flag-media { background: var(--warn-bg); color: var(--warn-ink); }
.rx-focus-mat { font-weight: 700; color: var(--text); }
.rx-focus-motivo { font-size: 13px; }

/* Rotina */
.rx-routine { display: flex; flex-direction: column; gap: 14px; }
.rx-routine-item { display: flex; gap: 12px; align-items: center; }
.rx-routine-item > span { font-size: 22px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius-md); flex-shrink: 0; }
.rx-routine-item div { font-size: 14px; line-height: 1.4; }

/* Recomendações */
.rx-reco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rx-reco li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text-body); }
.rx-reco-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }

/* Mentoria */
.rx-mentoria {
  margin-top: var(--gap); background: var(--grad-primary); color: #fff;
  border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.rx-mentoria-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.rx-mentoria-text { font-size: 14px; opacity: .92; margin: 0; }

@media (max-width: 760px) {
  .rx-grid { grid-template-columns: 1fr; }
  .rx-bar-row { grid-template-columns: 110px 1fr 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-scan-badge, .rx-scan-line, .rx-scan-ring, .rx-scan-grid,
  .rx-radar-dot, .rx-sheen, .rx-reveal-scan, .rx-cta-plan, .rx-modal, .rx-modal-overlay,
  .rx-shell-pop, .rx-pop,
  .rx-aside-table tr.is-foco, .rx-aside-table tr.is-foco .rx-foco-val,
  .rx-aside-table tr.is-foco .rx-foco-val::before,
  .rx-scan-steps li.is-active::before, .rx-scan-steps li.is-active .rx-step-scan { animation: none; }
  .rx-sheen, .rx-reveal-scan { display: none; }
  .rx-scan-steps li { opacity: 1; transform: none; }
  .rx-step-scan { display: none; }
  .reveal, .rx-stagger > * { opacity: 1; transform: none; transition: none; }
  /* barras já preenchidas, sem transição */
  .rx-minibar-track i { transition: none; width: var(--val, 0); }
}

/* ============================================================
   CONSTRUTOR DE PLANEJAMENTO — calendário dia a dia até 13/09
   ============================================================ */
.pl {
  min-height: 100vh;
  background: radial-gradient(1000px 600px at 50% -8%, #0e2a20 0%, rgba(5,7,10,0) 55%), #05070a;
}
.pl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 60px; }
/* Wizard do planejamento */
.pl-hidden { display: none !important; }
.pl-stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 16px; }
.pl-step-pill { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  background: transparent; color: #93a6c2; font-weight: 800; font-size: 13px; cursor: pointer; flex: 0 0 auto; }
.pl-step-pill.is-active { background: #6ff0c0; color: #06283d; border-color: #6ff0c0; }
.pl-step-pill.is-done { color: #43C59E; border-color: rgba(67,197,158,.5); }
.pl-step-title { margin: 0 0 16px; }
.pl-step-title h2 { font-size: 20px; font-weight: 800; margin: 0 0 5px; color: #eaf2ff; }
.pl-step-title p { margin: 0; color: #93a6c2; font-size: 13.5px; line-height: 1.55; max-width: 760px; }
.pl-stepnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.pl-stepnav-pos { font-size: 12.5px; color: #93a6c2; }
/* Bloco clicável + modal de ações */
.pl-bloco { cursor: pointer; }
.pl-bm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pl-bm-actions .btn { width: 100%; justify-content: center; }
.pl-bm-excluir { color: #ff8a8a; }
/* Barrinha de submatérias alocadas por matéria + label do modo */
.pl-mat-prog { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; }
.pl-mat-prog-bar { display: inline-block; width: 46px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.pl-mat-prog-bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s ease; }
.pl-mat-prog-num { font-size: 10.5px; font-weight: 700; color: #93a6c2; }
.pl-mat.is-complete .pl-mat-prog-num { color: #43C59E; }
.pl-mode-atual { font-size: 12px; font-weight: 600; color: #6ff0c0; }
.pl-modes-hint { font-size: 12.5px; color: #93a6c2; margin: 8px 0 0; line-height: 1.5; }
.pl-modes-warn { font-size: 12.5px; color: #f0a53c; margin: 10px 0 0; }

/* Aviso chamativo de prioridade de foco (por onde começar) */
.pl-foco-alert {
  margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(240,165,60,.1); border: 1px solid rgba(240,165,60,.4);
}
.pl-foco-alert-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-foco-alert-hd strong { font-size: 14.5px; color: #ffd9a3; }
.pl-foco-alert-ic { display: inline-flex; color: #ffb020; }
.pl-foco-alert-note { font-size: 11.5px; color: #c79a5e; }
.pl-foco-alert-sub { font-size: 13px; color: #d6c3a8; margin: 8px 0 12px; }
.pl-foco-alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-foco-alert-list li {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border-left: 3px solid var(--cor, #ffb020);
  border-radius: 8px; padding: 8px 12px;
}
.pl-foco-rank {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #ffb020; color: #2a1800; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pl-foco-nome { flex: 1; font-size: 13.5px; font-weight: 600; color: #eaf2ff; }
.pl-foco-ac { font-size: 12px; color: #9fb3cc; flex-shrink: 0; }
/* Cards de modo (Incidência × Meu foco) — prefixados p/ vencer o .pl-mode antigo */
.pl-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pl-modes .pl-mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-align: left;
  padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03); color: inherit; font: inherit; box-shadow: none;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.pl-modes .pl-mode-card:hover { background: rgba(110,240,192,.05); border-color: rgba(110,240,192,.4); }
.pl-modes .pl-mode-card.is-active { background: rgba(110,240,192,.08); border-color: #6ff0c0; box-shadow: 0 12px 32px -18px rgba(110,240,192,.9); }
.pl-mode-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 11px; align-items: center; justify-content: center;
  background: rgba(110,240,192,.12); color: #9bd0ff; border: 1px solid rgba(110,240,192,.18); }
.pl-mode-tit { font-size: 16px; font-weight: 800; color: #eaf2ff; }
.pl-modes .pl-mode-card.is-active .pl-mode-tit { color: #6ff0c0; }
.pl-mode-desc { font-size: 13px; color: #93a6c2; line-height: 1.55; }
.pl-mode-desc strong { color: #cdd9ec; }
.pl-mode-desc em { color: #eaf2ff; font-style: normal; display: block; margin-top: 6px; font-weight: 600; }
@media (max-width: 560px) { .pl-mode-cards { grid-template-columns: 1fr; } }
/* Seu ritmo: card centralizado, frases quebradas */
.pl-cap-card { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pl-cap-card .pl-cap-label { font-size: 14px; font-weight: 700; color: #eaf2ff; }
.pl-cap-card .pl-cap-input { display: inline-flex; align-items: center; gap: 8px; }
.pl-cap-card #plCap { font-size: 22px; font-weight: 800; width: 92px; text-align: center; }
.pl-cap-out { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.pl-cap-line { font-size: 13.5px; color: #cdd9ec; }
.pl-cap-verdict { font-size: 13.5px; font-weight: 600; padding: 10px 16px; border-radius: 10px; }
.pl-cap-verdict.is-ok { color: #7fe3c2; background: rgba(67,197,158,.1); border: 1px solid rgba(67,197,158,.3); }
.pl-cap-verdict.is-warn { color: #f0a53c; background: rgba(240,165,60,.1); border: 1px solid rgba(240,165,60,.3); }

/* Topbar */
.pl-topbar {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; padding: 22px 20px;
}
.pl-brand { font-weight: 800; color: #eaf3ff; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pl-brand svg { color: #6ff0c0; }
.pl-topbar .btn-ghost { background: rgba(255,255,255,.08); color: #cdd9ea; border: 1px solid rgba(255,255,255,.12); }

/* Stats da linha do tempo */
.pl-header-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 20px 28px; margin-bottom: 16px; flex-wrap: wrap;
}
.pl-stat-box { text-align: center; flex: 1; min-width: 120px; }
.pl-stat-num { display: block; font-size: 32px; font-weight: 800; color: #6ff0c0; line-height: 1; }
.pl-stat-lbl { font-size: 12px; color: #8aa0bd; line-height: 1.4; }
.pl-stat-lbl small { color: #6f87a8; font-size: 11px; }
.pl-stat-sep { width: 1px; height: 44px; background: rgba(255,255,255,.10); flex-shrink: 0; margin: 0 12px; }

/* Card de método */
.pl-method {
  display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(62,230,165,.12), rgba(110,240,192,.05));
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 16px; color: #e6edf6;
}
.pl-method-ic {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-md);
  color: #9bd0ff; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(110,240,192,.12);
}
.pl-method-body { flex: 1; min-width: 240px; }
.pl-method-title { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.pl-method-text { font-size: 13px; line-height: 1.6; color: #b8ccdf; margin: 0; }
.pl-method-text strong { color: #e6edf6; }

/* Régua A inline */
.pl-regua { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.pl-regua-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6f87a8; margin-right: 4px; }
.pl-regua-item {
  font-size: 11.5px; font-weight: 700; border-radius: var(--radius-pill);
  padding: 4px 11px; border: 1px solid; color: #fff;
}
.grau-4 { background: rgba(62,230,165,.22); border-color: #3ee6a5; }
.grau-3 { background: rgba(155,107,240,.22); border-color: #9B6BF0; }
.grau-2 { background: rgba(67,197,158,.20); border-color: #43C59E; }
.grau-1 { background: rgba(120,144,156,.18); border-color: #78909C; }

/* Níveis de incidência — metáfora de mapa de calor: quanto mais quente, mais cai */
.inc-altissima { background: rgba(229,72,77,.24);   border-color: #E5484D; }
.inc-alta      { background: rgba(255,122,69,.20);  border-color: #FF7A45; }
.inc-media     { background: rgba(251,176,59,.18);  border-color: #FBB03B; }
.inc-baixa     { background: rgba(120,144,156,.16); border-color: #78909C; }

/* Painel: no calendário × pendente */
.pl-progress {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 16px 22px; margin-bottom: 16px;
}
.pl-progress-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.pl-progress-title {
  font-size: 12px; font-weight: 800; color: #eaf3ff;
  text-transform: uppercase; letter-spacing: .05em;
}
.pl-progress-count { font-size: 12.5px; color: #8aa0bd; }
.pl-progress-count strong { color: #eaf3ff; }
.pl-progress-bar {
  position: relative; height: 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07); overflow: hidden;
}
.pl-progress-bar i {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: var(--radius-pill); transition: width .35s ease;
}
.pl-progress-ag     { background: rgba(110,240,192,.45); z-index: 1; }
.pl-progress-feitas { background: #43C59E; z-index: 2; }
.pl-progress-hint { font-size: 12px; color: #6f87a8; margin: 10px 0 0; line-height: 1.5; }

/* Modos de ordem */
.pl-modes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-modes-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #6f87a8;
}
.pl-mode {
  background: rgba(255,255,255,.05); color: #c4d2e6; border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill); padding: 7px 16px; font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.pl-mode:hover { background: rgba(110,240,192,.10); }
.pl-mode.is-active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(62,230,165,.3);
}

/* Layout 2 colunas */
.pl-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
/* Lateral da distribuição oculta: calendário ocupa tudo (a distribuição abre pelo "+").
   O .pl-bank fica display:none mas segue no DOM (o "+" devolve a distribuição pra ele). */
.pl-grid.is-solo { grid-template-columns: 1fr; }
.pl-grid.is-solo .pl-bank { display: none; }
.pl-col-title { font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.pl-col-sub { font-size: 12px; color: #8aa0bd; margin: 0 0 14px; }
.pl-col-sub strong { color: #eaf3ff; }

/* ── Banco de submatérias / backlog ── */
.pl-bank {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 16px; max-height: 82vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(110,240,192,.32) transparent;
}
.pl-bank::-webkit-scrollbar { width: 10px; }
.pl-bank::-webkit-scrollbar-track { background: transparent; }
.pl-bank::-webkit-scrollbar-thumb { background: rgba(110,240,192,.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.pl-bank::-webkit-scrollbar-thumb:hover { background: rgba(110,240,192,.5); background-clip: padding-box; }
.pl-bank-note {
  display: flex; gap: 7px; align-items: flex-start; margin: 0 0 14px; padding: 9px 11px;
  font-size: 11.5px; line-height: 1.45; color: #b9c8dc; border-radius: 9px;
  background: rgba(110,240,192,.06); border: 1px solid rgba(110,240,192,.16);
}
.pl-bank-note i, .pl-bank-note svg { color: #ffce85; flex-shrink: 0; margin-top: 1px; }
.pl-method-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 13px;
  font-size: 12.5px; line-height: 1.5; color: #d6c3a8; border-radius: 10px;
  background: rgba(240,165,60,.1); border: 1px solid rgba(240,165,60,.3);
}
.pl-method-note svg { color: #ffce85; flex-shrink: 0; margin-top: 1px; }
.pl-method-note strong { color: #ffe6c2; }

/* Dock do canto direito: QR da mentoria + suporte (empilhados) */
.qr-dock { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qr-float {
  width: 168px; background: #0f1f33; border: 1px solid rgba(110,240,192,.35); border-radius: 14px;
  padding: 14px 12px 10px; text-align: center; box-shadow: 0 14px 34px rgba(0,0,0,.5); position: relative;
}
.qr-float-close { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: #8aa0bd; font-size: 18px; line-height: 1; cursor: pointer; }
.qr-float-close:hover { color: #fff; }
.qr-float-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #ffce85; margin-bottom: 8px; }
.qr-float-img { width: 100%; max-width: 144px; border-radius: 8px; background: #fff; padding: 6px; display: block; margin: 0 auto; }
.qr-float-cta { display: block; font-size: 10.5px; color: #9fb3cc; margin-top: 7px; line-height: 1.5; }
.qr-float-link { color: #6ff0c0; font-weight: 700; text-decoration: underline; }
.qr-float-link:hover { color: #aee4ff; }
.qr-float-reopen {
  width: 50px; height: 50px; border-radius: 50%;
  background: #ffb020; color: #2a1800; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  display: inline-flex; align-items: center; justify-content: center; animation: condD2Pulse 1.6s ease-in-out infinite;
}
.qr-float-reopen[hidden] { display: none; }   /* só aparece depois de fechar o card */
/* Minimizar o flutuante do QR (recolhe pro botãozinho e reabre) */
.qr-float-min { position: absolute; top: 4px; right: 9px; background: none; border: 0; color: #8aa0bd; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.qr-float-min:hover { color: #fff; }
.qr-dock[hidden] { display: none; }   /* display:flex sobrepõe o atributo hidden — força esconder */
.qr-reopen { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 50px; height: 50px; border-radius: 50%;
  background: #ffb020; color: #2a1800; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  display: inline-flex; align-items: center; justify-content: center; animation: condD2Pulse 1.6s ease-in-out infinite; }
.qr-reopen[hidden] { display: none; }
@media (max-width: 600px) { .qr-reopen { right: 10px; bottom: 10px; } }
/* Suporte (WhatsApp) — barra colada embaixo do QR */
.qr-support {
  width: 168px; text-decoration: none; text-align: center; border-radius: 12px; padding: 9px 10px;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.45); box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.qr-support-q { display: block; font-size: 13.5px; font-weight: 800; color: #eaf6ff; line-height: 1.3; }
.qr-support-cta { display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; font-size: 10.5px; font-weight: 700; color: #25d366; }
.qr-support:hover .qr-support-cta { color: #5be88c; }
@media (max-width: 600px) { .qr-dock { right: 10px; bottom: 10px; } .qr-float, .qr-support { width: 142px; } }
.pl-bank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-bank-item {
  padding: 12px 13px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
}
.pl-bank-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.pl-bank-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.pl-bank-info { flex: 1; min-width: 0; }
.pl-bank-nome { display: block; font-size: 13px; font-weight: 700; color: #eaf3ff; }
.pl-bank-mat  { display: block; font-size: 11px; color: #6f87a8; }
.pl-bank-grau, .pl-bank-inc {
  font-size: 10.5px; font-weight: 800; border-radius: var(--radius-pill);
  padding: 2px 8px; border: 1px solid; flex-shrink: 0; color: #fff;
}

/* Realce das submatérias de incidência ALTÍSSIMA (merecem mais atenção) */
.pl-bank-item.is-prioridade {
  border-color: rgba(229,72,77,.40);
  box-shadow: inset 3px 0 0 #E5484D;
}

/* Chips de revisão */
.pl-bank-revs { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-rev-chip {
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  border-radius: var(--radius-pill); padding: 4px 12px;
  transition: all .15s ease;
}
.pl-rev-pending {
  background: rgba(110,240,192,.12); color: #6ff0c0;
  border: 1px solid rgba(110,240,192,.30);
}
.pl-rev-pending:hover { background: rgba(110,240,192,.22); }
.pl-rev-scheduled {
  background: rgba(255,255,255,.06); color: #566b83;
  border: 1px solid rgba(255,255,255,.10); cursor: default; text-decoration: line-through;
}

/* ── Calendário dia a dia ── */
.pl-cal-wrap {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 18px;
}
.pl-cal-toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-cal-scroll { display: flex; gap: 6px; flex: 0 0 auto; }
.pl-cal-arrow { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04); color: #cdd9ec; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pl-cal-arrow:hover { border-color: rgba(110,240,192,.4); }
#plCalNext svg { transform: rotate(180deg); }
.pl-cal-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.pl-cal-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04); color: #cdd9ec; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pl-cal-nav button:hover:not(:disabled) { border-color: rgba(110,240,192,.4); }
.pl-cal-nav button:disabled { opacity: .3; cursor: default; }
.pl-cal-mes { font-size: 16px; font-weight: 800; color: #eaf2ff; min-width: 160px; text-align: center; }
#plMesNext svg { transform: rotate(180deg); }
.pl-week-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.pl-week-head span { text-align: center; font-size: 11px; font-weight: 700; color: #6f87a8; text-transform: uppercase; letter-spacing: .03em; }
.pl-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pl-day-empty { border: 0; background: transparent; }
.pl-day {
  min-width: 0; overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; min-height: 112px; transition: border-color .15s ease;
}
.pl-day:hover { border-color: rgba(110,240,192,.20); }
.pl-day.is-heavy { border-color: rgba(251,176,59,.35); background: rgba(251,176,59,.04); }
/* Dia que já passou: fica esmaecido (mas continua visível, com os blocos que o aluno agendou). */
.pl-day-passado { opacity: .55; background: rgba(255,255,255,.015); }
.pl-day-passado:hover { opacity: .85; }
.pl-day-passado .pl-day-add { display: none; }

.pl-day-head {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 9px 5px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.pl-day-sem { font-size: 10px; font-weight: 700; color: #6f87a8; text-transform: uppercase; }
.pl-day-num { font-size: 12px; font-weight: 700; color: #aebfd6; flex: 1; }
.pl-day-count {
  font-size: 10px; font-weight: 800; color: #566b83;
  background: rgba(255,255,255,.06); border-radius: 4px; padding: 1px 5px;
  min-width: 18px; text-align: center;
}

.pl-day-slots { flex: 1; min-width: 0; padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; }

.pl-day-add {
  width: 100%; background: none; border: none; border-top: 1px dashed rgba(255,255,255,.08);
  color: #566b83; font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 0;
  transition: color .15s, background .15s; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.pl-day-add:hover { color: #6ff0c0; background: rgba(110,240,192,.06); }

/* Blocos dentro do dia */
.pl-bloco {
  display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%;
  background: rgba(255,255,255,.05); border-left: 3px solid var(--cor);
  border-radius: 5px; padding: 4px 6px; font-size: 11px;
}
.pl-bloco-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pl-bloco-nome { flex: 1; min-width: 0; color: #cdd9ea; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bloco-rev { font-size: 10px; color: #6f87a8; flex-shrink: 0; }
.pl-bloco-done, .pl-bloco-rm {
  background: none; border: none; cursor: pointer; font-size: 12px; color: #566b83;
  padding: 0 2px; flex-shrink: 0; line-height: 1; transition: color .12s;
}
.pl-bloco-done:hover { color: #43C59E; }
.pl-bloco-rm:hover   { color: #ff9c9c; }
.pl-bloco.pl-bloco-feito { background: rgba(67,197,158,.16); border-left-color: #43c59e; }
.pl-bloco.pl-bloco-feito .pl-bloco-nome { color: #bdf0de; text-decoration: line-through; text-decoration-color: rgba(67,197,158,.7); }
.pl-bloco.pl-bloco-feito .pl-bloco-dot { background: #43c59e !important; }
.pl-bloco.pl-bloco-feito .pl-bloco-rev { color: #7fe3c2; }
/* "!" chamativo: pede pra clicar e agendar a próxima revisão */
.pl-bloco-bang {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; cursor: pointer;
  background: #ffb020; color: #2a1800; font-weight: 900; font-size: 11px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  animation: plBang 1.5s ease-in-out infinite;
}
@keyframes plBang { 0%,100% { box-shadow: 0 0 0 0 rgba(255,176,32,.6); } 70% { box-shadow: 0 0 0 5px rgba(255,176,32,0); } }

/* ── Gatilhos pendentes ── */
.pl-triggers {
  margin-top: 22px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 20px 24px;
}
.pl-triggers-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 6px;
}
.pl-triggers-sub { font-size: 12.5px; color: #8aa0bd; margin: 0 0 16px; line-height: 1.5; }
.pl-triggers-sub strong { color: #eaf3ff; }
.pl-triggers-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; }
.pl-triggers-empty-ic { color: #3a5570; }
.pl-triggers-empty p { font-size: 13px; color: #566b83; margin: 0; text-align: center; }

/* ── Rodapé ── */
.pl-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08);
}
.pl-foot-text { font-size: 13px; color: #b8ccdf; margin: 0; max-width: 520px; line-height: 1.5; }
.pl-foot-text strong { color: #fff; }
.pl-foot-actions { display: flex; gap: 10px; }
.pl-btn-export { background: rgba(255,255,255,.06); color: #aeb9c9; border: 1px solid rgba(255,255,255,.14); cursor: not-allowed; }

/* ── Picker overlay (escolher revisão / dia) ── */
.pl-picker-overlay, .pl-acerto-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(5,7,10,.78); backdrop-filter: blur(4px);
}
.pl-picker-overlay[hidden], .pl-acerto-overlay[hidden] { display: none; }

.pl-picker, .pl-acerto {
  width: min(440px, 92vw);
  background: linear-gradient(160deg, #11233f, #0d1a30);
  border: 1px solid rgba(110,240,192,.18); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0,0,0,.55); overflow: hidden;
}
.pl-picker-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-weight: 800; font-size: 14px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pl-picker-close { background: none; border: none; color: #8aa0bd; font-size: 14px; cursor: pointer; }
.pl-picker-body { padding: 12px 18px 4px; }
.pl-picker-hint { font-size: 12.5px; color: #8aa0bd; margin: 0 0 10px; }
.pl-picker-list { list-style: none; margin: 0; padding: 0 0 12px; max-height: 56vh; overflow-y: auto; }
.pl-picker-bank { max-height: 60vh; overflow-y: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(110,240,192,.3) transparent; }
.pl-picker-bank::-webkit-scrollbar { width: 9px; }
.pl-picker-bank::-webkit-scrollbar-thumb { background: rgba(110,240,192,.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.pl-picker-bank .pl-bank-list { gap: 8px; }
/* Modo "adicionar no dia": modal largo com distribuição + passos do rodízio lado a lado */
.pl-picker-overlay.is-wide .pl-picker { width: min(820px, 95vw); }
.pl-picker-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: start; }
.pl-picker-cols[hidden] { display: none; }   /* o display:grid sobrepõe o atributo hidden — força esconder */
.pl-picker-steps { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; max-height: 60vh; overflow-y: auto; }
.pl-picker-steps-h { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: #eaf2ff; margin: 0 0 8px; }
.pl-picker-steps .pl-rodizio-steps { margin: 0; font-size: 12px; }
@media (max-width: 680px) { .pl-picker-overlay.is-wide .pl-picker { width: 95vw; } .pl-picker-cols { grid-template-columns: 1fr; } }
.pl-picker-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px;
  border-radius: var(--radius-sm); cursor: pointer; color: #e6edf6; transition: background .12s;
}
.pl-picker-item:hover { background: rgba(110,240,192,.10); }
.pl-picker-nome { flex: 1; font-size: 13.5px; font-weight: 600; }
.pl-picker-rev  { font-size: 11px; color: #6f87a8; flex-shrink: 0; }
.pl-picker-data { flex: 1; font-size: 13.5px; font-weight: 600; color: #eaf3ff; }
.pl-picker-blocos { font-size: 11px; color: #6f87a8; }

/* ── Modal de acerto ── */
.pl-acerto-body { padding: 20px 22px 24px; }
.pl-acerto-sub  { font-size: 13px; font-weight: 700; color: #6ff0c0; margin: 0 0 12px; }
.pl-acerto-label { font-size: 14px; color: #cdd9ea; font-weight: 600; margin: 0 0 16px; }
.pl-acerto-faixas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pl-acerto-btn {
  font: inherit; cursor: pointer; border-radius: var(--radius-md); padding: 14px 10px;
  text-align: center; border: 1px solid; transition: all .15s ease;
}
.pl-acerto-btn strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.pl-acerto-btn span   { font-size: 11.5px; font-weight: 600; }
.pl-acerto-baixo {
  background: rgba(242,92,149,.12); border-color: rgba(242,92,149,.35); color: #F25C95;
}
.pl-acerto-baixo:hover { background: rgba(242,92,149,.20); }
.pl-acerto-alto {
  background: rgba(67,197,158,.12); border-color: rgba(67,197,158,.35); color: #43C59E;
}
.pl-acerto-alto:hover  { background: rgba(67,197,158,.20); }
.pl-acerto-skip {
  background: none; border: none; font: inherit; font-size: 12.5px;
  color: #566b83; cursor: pointer; display: block; width: 100%; text-align: center;
  padding: 4px; transition: color .12s;
}
.pl-acerto-skip:hover { color: #8aa0bd; }

/* Inputs de questões/acertos + % ao vivo */
.pl-acerto-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.pl-acerto-nums label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: #9fb3cc; text-align: left; }
.pl-acerto-nums input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 20px; font-weight: 800; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: #eaf2ff;
}
.pl-acerto-nums input:focus { outline: none; border-color: rgba(110,240,192,.5); }
.pl-acerto-pct { min-height: 20px; margin: 0 0 14px; font-size: 13.5px; font-weight: 700; }
.pl-acerto-pct.is-alto  { color: #7fe3c2; }
.pl-acerto-pct.is-baixo { color: #ffce85; }
.pl-acerto-confirm { width: 100%; justify-content: center; margin-bottom: 8px; }

/* Modal do bloco: seção de revisão concluída */
.pl-bm-done { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pl-bm-acerto { margin: 0; font-size: 15px; color: #eaf2ff; line-height: 1.5; }
.pl-bm-next   { margin: 0; font-size: 13.5px; color: #9fb3cc; line-height: 1.5; }
.pl-bm-done .btn { width: 100%; justify-content: center; }

/* ── Pill de fase (Parte 1/2) ── */
.pl-phase-pill {
  margin-left: 10px; font-size: 11px; font-weight: 700; color: #9bd0ff;
  background: rgba(110,240,192,.12); border: 1px solid rgba(110,240,192,.28);
  border-radius: var(--radius-pill); padding: 3px 10px; letter-spacing: .02em;
}

/* ── Painel "como fazer no papel" (details) ── */
.pl-paper {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden;
}
.pl-paper-summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 14px 20px; font-size: 13.5px; font-weight: 700; color: #cdd9ea;
}
.pl-paper-summary::-webkit-details-marker { display: none; }
.pl-paper-summary svg { color: #6ff0c0; }
.pl-paper[open] .pl-paper-summary { border-bottom: 1px solid rgba(255,255,255,.07); }
.pl-paper-body { padding: 16px 20px 20px; }
.pl-paper-intro { font-size: 12.5px; color: #b8ccdf; margin: 0 0 14px; line-height: 1.55; }
.pl-paper-intro strong { color: #eaf3ff; }
.pl-paper-reguas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pl-paper-regua {
  flex: 1; min-width: 200px; background: rgba(110,240,192,.06);
  border: 1px solid rgba(110,240,192,.16); border-radius: var(--radius-md);
  padding: 10px 13px; font-size: 12.5px; color: #d6e2f0;
}
.pl-paper-regua-t { display: block; font-size: 11px; font-weight: 800; color: #6ff0c0; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pl-paper-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pl-paper-table th, .pl-paper-table td {
  border: 1px solid rgba(255,255,255,.08); padding: 6px 8px; text-align: left; color: #c4d2e6;
}
.pl-paper-table th { background: rgba(255,255,255,.04); color: #8aa0bd; font-weight: 700; }
.pl-paper-foot { font-size: 12px; color: #8aa0bd; margin: 14px 0 0; line-height: 1.55; }

/* ── Calendário travado (Parte 1) ── */
.pl-cal-stage { position: relative; }
.pl-cal-wrap.is-locked .pl-cal-grid { filter: blur(2px) grayscale(.4); opacity: .5; pointer-events: none; user-select: none; }
.pl-lock {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 24px; border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 40%, rgba(19,51,86,.35), rgba(5,7,10,.55));
}
.pl-lock-ic { font-size: 34px; line-height: 1; }
.pl-lock-title { font-size: 16px; font-weight: 800; color: #eaf3ff; margin: 4px 0 0; }
.pl-lock-sub { font-size: 12.5px; color: #aebfd6; margin: 0; max-width: 320px; line-height: 1.5; }
.pl-lock.is-pulse { animation: plLockPulse .5s ease; }
@keyframes plLockPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.04); background: radial-gradient(circle at 50% 40%, rgba(110,240,192,.22), rgba(5,7,10,.6)); }
  100% { transform: scale(1); }
}

/* ── Gancho de retorno (Parte 1) ── */
.pl-cliff {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding: 20px 24px;
  background: linear-gradient(135deg, rgba(62,230,165,.14), rgba(110,240,192,.05));
  border: 1px solid rgba(110,240,192,.20); border-radius: var(--radius-lg);
}
.pl-cliff-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: #9bd0ff; background: rgba(110,240,192,.12);
}
.pl-cliff-title { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.pl-cliff-text { font-size: 13px; line-height: 1.6; color: #b8ccdf; margin: 0 0 8px; max-width: 640px; }
.pl-cliff-text strong { color: #eaf3ff; }
.pl-cliff-lock { font-size: 12.5px; font-weight: 700; color: #9bd0ff; margin: 0; }

/* ── Capacidade (questões/dia) ── */
.pl-cap {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: rgba(110,240,192,.06); border: 1px solid rgba(110,240,192,.16);
  border-radius: var(--radius-lg); padding: 14px 20px; margin-bottom: 16px;
}
.pl-cap-control { display: flex; align-items: center; gap: 12px; }
.pl-cap-label { font-size: 13px; font-weight: 700; color: #eaf3ff; }
.pl-cap-input { display: flex; align-items: center; gap: 6px; }
.pl-cap-input input {
  width: 74px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 8px; padding: 6px 8px; font: inherit; font-weight: 700; text-align: center;
}
.pl-cap-input span { font-size: 12px; color: #8aa0bd; }
.pl-cap-out { flex: 1; min-width: 240px; font-size: 12.5px; color: #b8ccdf; margin: 0; line-height: 1.5; }
.pl-cap-out strong { color: #eaf3ff; }

/* ── Frágeis / afinidade (prévia Raio-X) ── */
.pl-rx {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 12px 20px; margin-bottom: 16px;
}
.pl-rx-col { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-rx-t { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pl-rx-frageis .pl-rx-t { color: #F25C95; }
.pl-rx-afin .pl-rx-t { color: #43C59E; }
.pl-rx-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-rx-tag { font-size: 11.5px; color: #cdd9ea; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-pill); padding: 3px 10px; }
.pl-rx-note { margin-left: auto; font-size: 11px; color: #566b83; font-style: italic; }

/* ── Backlog por matéria (acordeão) ── */
.pl-mat { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); background: rgba(255,255,255,.03); overflow: hidden; }
.pl-mat-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; list-style: none; }
.pl-mat-head::-webkit-details-marker { display: none; }
.pl-mat-head:hover { background: rgba(110,240,192,.05); }
.pl-mat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.pl-mat-info { flex: 1; min-width: 0; }
.pl-mat-nome { display: block; font-size: 13px; font-weight: 700; color: #eaf3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mat-meta { display: block; font-size: 11px; color: #6f87a8; }
/* Badge de tier por incidência (igual ao Raio-X da prova): Top 5 / Principal / Secundária */
.pl-mat-tier { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; border-radius: var(--radius-pill); padding: 2px 8px; border: 1px solid rgba(120,144,156,.4); color: #9fb0c4; flex-shrink: 0; white-space: nowrap; }
.pl-tier-top5       { border-color: #E5484D; color: #ffd2cf; background: rgba(229,72,77,.18); }
.pl-tier-principal  { border-color: rgba(240,165,60,.5); color: #ffce85; background: rgba(240,165,60,.12); }
.pl-tier-secundaria { border-color: rgba(120,144,156,.35); color: #9fb0c4; }
.pl-mat[open] .pl-mat-head { border-bottom: 1px solid rgba(255,255,255,.07); }
.pl-sub-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pl-sub { padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); transition: border-color .12s, box-shadow .12s, background .12s; }
.pl-sub[draggable="true"] { cursor: grab; }
.pl-sub[draggable="true"]:hover { border-color: rgba(110,240,192,.30); background: rgba(110,240,192,.05); }
.pl-sub.is-prioridade { box-shadow: inset 3px 0 0 #E5484D; border-color: rgba(229,72,77,.30); }
.pl-sub.is-dragging { opacity: .4; }
.pl-sub.is-scheduled { opacity: .55; }
.pl-sub.is-ready { box-shadow: inset 3px 0 0 #6ff0c0; border-color: rgba(110,240,192,.40); }
.pl-sub.is-concl { opacity: .5; }
.pl-sub-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 5px; }
.pl-sub-nome { flex: 1; min-width: 0; font-size: 12px; color: #dce6f2; line-height: 1.3; }
.pl-sub-status { font-size: 10.5px; font-weight: 600; color: #6ff0c0; }
.pl-sub.is-scheduled .pl-sub-status { color: #8aa0bd; }
.pl-sub.is-concl .pl-sub-status { color: #43C59E; }

/* Drag-and-drop */
.pl-day.is-dropt { border-color: #6ff0c0; background: rgba(110,240,192,.14); }

/* Botão "criar próxima revisão" dentro do bloco */
.pl-bloco-criar {
  margin-top: 4px; background: rgba(110,240,192,.14); border: 1px solid rgba(110,240,192,.30);
  color: #bfe3ff; font: inherit; font-size: 10.5px; font-weight: 700;
  border-radius: var(--radius-pill); padding: 3px 9px; cursor: pointer;
}
.pl-bloco-criar:hover { background: rgba(110,240,192,.24); }

/* ── Evolução × prova (Dia 3) ── */
.pl-evo {
  margin-top: 22px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 20px 24px;
}
.pl-evo-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.pl-evo-sub { font-size: 12.5px; color: #8aa0bd; margin: 0 0 16px; line-height: 1.5; }
.pl-evo-sub strong { color: #eaf3ff; }
.pl-evo-list { display: flex; flex-direction: column; gap: 9px; }
.pl-evo-row { display: flex; align-items: center; gap: 12px; }
.pl-evo-nome { width: 210px; flex-shrink: 0; font-size: 12px; color: #cdd9ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-evo-bars { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pl-evo-bar { height: 7px; border-radius: 4px; transition: width .3s; min-width: 2px; }
.pl-evo-peso { background: rgba(120,144,156,.5); }
.pl-evo-prog { background: #3ee6a5; }
.pl-evo-legend { margin-top: 12px; font-size: 11px; color: #8aa0bd; display: flex; align-items: center; gap: 6px; }
.pl-evo-k { display: inline-block; width: 12px; height: 7px; border-radius: 3px; }

/* ── Modal do bloco: escolha da faixa de acerto (≥80% / <80%) ── */
.pl-bm-band { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pl-bm-band-q { margin: 0; font-size: 14px; font-weight: 700; color: #eaf2ff; text-align: center; }
.pl-bm-band-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-bm-band-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.pl-bm-band-btn strong { font-size: 15px; font-weight: 800; }
.pl-bm-band-btn span { font-size: 11.5px; font-weight: 600; opacity: .85; }
.pl-bm-band-alto  { background: rgba(67,197,158,.14); border-color: rgba(67,197,158,.4); color: #7fe3c2; }
.pl-bm-band-alto:hover  { background: rgba(67,197,158,.22); }
.pl-bm-band-baixo { background: rgba(242,92,149,.14); border-color: rgba(242,92,149,.4); color: #ffb0cf; }
.pl-bm-band-baixo:hover { background: rgba(242,92,149,.22); }
.pl-bm-feita-tag { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 800; color: #7fe3c2; }
/* o atributo hidden precisa vencer o display:flex/grid desses blocos (senão aparecem todos juntos) */
.pl-bm-actions[hidden], .pl-bm-band[hidden], .pl-bm-done[hidden], .pl-bm-opcoes[hidden] { display: none; }

/* Opções (Alterar data / Excluir) — recolhido por padrão, discreto */
.pl-bm-opcoes { margin-top: 12px; }
.pl-bm-opcoes-sum { display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: #8aa0bd; padding: 8px; border-radius: 8px; }
.pl-bm-opcoes-sum::-webkit-details-marker { display: none; }
.pl-bm-opcoes-sum:hover { color: #cdd9ea; background: rgba(255,255,255,.04); }
.pl-bm-opcoes-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pl-bm-opcoes-body .btn { width: 100%; justify-content: center; }

/* ── Régua da revisão (callout no rodízio) ── */
.pl-rodizio-regra { margin: 4px 0 16px; padding: 14px 16px; background: rgba(110,240,192,.06); border: 1px solid rgba(110,240,192,.18); border-radius: 12px; }
.pl-rodizio-regra-hd { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: #eaf2ff; margin-bottom: 6px; }
.pl-rodizio-regra-sub { margin: 0 0 10px; font-size: 12.5px; color: #9fb3cc; line-height: 1.5; }
.pl-rodizio-regra-sub strong { color: #eaf3ff; }
.pl-rodizio-regra-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-rodizio-regra-list li { font-size: 13px; color: #cdd9ea; line-height: 1.5; display: flex; gap: 8px; align-items: baseline; }
.pl-rodizio-regra-list li strong { color: #fff; }
.pl-rodizio-regra-tag { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.pl-rodizio-regra-list .is-baixo .pl-rodizio-regra-tag { color: #ffb0cf; background: rgba(242,92,149,.16); }
.pl-rodizio-regra-list .is-alto .pl-rodizio-regra-tag  { color: #7fe3c2; background: rgba(67,197,158,.16); }
.pl-rodizio-regra-foot { margin: 0; font-size: 12px; color: #8aa0bd; line-height: 1.5; }
.pl-rodizio-regra-foot strong { color: #cdd9ea; }
.pl-rodizio-regra-aviso { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,206,133,.18); font-size: 12px; color: #ffce85; line-height: 1.5; display: flex; gap: 7px; align-items: flex-start; }
.pl-rodizio-regra-aviso svg { flex-shrink: 0; margin-top: 2px; }

/* ── Seu desempenho nas revisões ── */
.pl-desempenho { margin-top: 22px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 20px 24px; }
.pl-desempenho-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.pl-desempenho-sub { font-size: 12.5px; color: #8aa0bd; margin: 0 0 14px; line-height: 1.5; }
.pl-desempenho-sub strong { color: #eaf3ff; }
.pl-desempenho-list { display: flex; flex-direction: column; gap: 8px; }
.pl-desemp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,.02); border-radius: 10px; }
.pl-desemp-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pl-desemp-nome { flex: 1; min-width: 0; font-size: 13px; color: #eaf2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-desemp-nome small { color: #7e93ad; font-size: 11px; }
.pl-desemp-bar { flex: 0 0 90px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.pl-desemp-fill { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.pl-desemp-fill.is-ok  { background: #43c59e; }
.pl-desemp-fill.is-mid { background: #ffce85; }
.pl-desemp-fill.is-low { background: #f25c95; }
.pl-desemp-meta { font-size: 11.5px; color: #8aa0bd; white-space: nowrap; }
.pl-desemp-status { font-size: 11px; font-weight: 800; white-space: nowrap; padding: 3px 9px; border-radius: 999px; }
.pl-desemp-status.is-ok  { color: #7fe3c2; background: rgba(67,197,158,.14); }
.pl-desemp-status.is-mid { color: #ffce85; background: rgba(255,206,133,.13); }
.pl-desemp-status.is-low { color: #ff9bbf; background: rgba(242,92,149,.14); }
@media (max-width: 560px) { .pl-desemp-bar { flex-basis: 56px; } .pl-desemp-meta { display: none; } }
.pl-desempenho-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; text-align: center; }
.pl-desempenho-empty-ic { color: #3a5570; }
.pl-desempenho-empty p { font-size: 13px; color: #566b83; margin: 0; }

/* ── Conheça a Mentoria (CTA, centralizado) ── */
.pl-mentoria { margin-top: 22px; padding: 28px 24px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(135deg, rgba(110,240,192,.10), rgba(67,197,158,.08)); border: 1px solid rgba(110,240,192,.28); }
.pl-mentoria-title { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.pl-mentoria-text { font-size: 13px; color: #cdd9ea; line-height: 1.6; margin: 0 auto 18px; max-width: 640px; }
.pl-mentoria-text strong { color: #eaf3ff; }
.pl-mentoria-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; }
.pl-mentoria-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: 12.5px; font-weight: 600; color: #d7e4f5; line-height: 1.4; }
.pl-mentoria-card svg { flex-shrink: 0; color: #7fe3c2; }
.pl-mentoria-cta { display: inline-flex; justify-content: center; background: #ffc94d; color: #2a1e00; border: none; font-weight: 800; }
.pl-mentoria-cta:hover { background: #ffd76a; }
.pl-mentoria-cta svg { color: #2a1e00; }
@media (max-width: 560px) { .pl-mentoria-cards { grid-template-columns: 1fr; } .pl-mentoria-cta { width: 100%; } }

/* ── Responsivo ── */
@media (max-width: 860px) {
  .pl-grid { grid-template-columns: 1fr; }
  .pl-bank { position: static; max-height: none; }
  .pl-header-stats { gap: 8px; }
  .pl-stat-sep { display: none; }
  .pl-cal-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .pl-paper-reguas { flex-direction: column; }
  .pl-paper-table { font-size: 11px; }
  .pl-rx-note { margin-left: 0; }
  .pl-evo-nome { width: 120px; }
}

/* ============================================================
   ONBOARDING (pré-evento) — 4 etapas
   ============================================================ */
.ob-progress { display: flex; align-items: center; gap: 14px; }
.ob-progress-bar { flex: 1; height: 8px; background: rgba(255,255,255,.10); border-radius: 999px; overflow: hidden; }
.ob-progress-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.ob-progress-lbl { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.ob-progress-lbl strong { color: var(--text); }

/* Trilha / percurso de checkpoints */
.ob-trail-top { margin: 18px 0 2px; }
.ob-trail-prog { font-size: 13px; color: var(--text-muted); }
.ob-trail-prog strong { color: var(--text); }

/* Bloco central + glows ambientes (camada de fundo fixa, não corta os cards) */
.ob-page { position: relative; }
.ob-page-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.ob-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ob-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.ob-glow-1 { width: 460px; height: 460px; top: 12%; left: 22%; background: radial-gradient(circle, rgba(62,230,165,.40), transparent 70%); animation: obFloat1 16s ease-in-out infinite; }
.ob-glow-2 { width: 420px; height: 420px; bottom: 6%; right: 16%; background: radial-gradient(circle, rgba(110,240,192,.30), transparent 70%); animation: obFloat2 20s ease-in-out infinite; }
@keyframes obFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(28px,22px); } }
@keyframes obFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px,-18px); } }

.ob-trail { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.ob-trail::before { /* trilho tracejado (o que falta) */
  content: ""; position: absolute; left: 50%; top: 16px; bottom: 16px; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--line) 0 7px, transparent 7px 14px);
}
.ob-trail::after { /* trilho percorrido */
  content: ""; position: absolute; left: 50%; top: 16px; width: 3px; height: var(--ob-prog, 0%); transform: translateX(-50%);
  background: linear-gradient(180deg, #43C59E, #3ee6a5); border-radius: 3px;
  box-shadow: 0 0 14px rgba(62,230,165,.45); transition: height .5s ease;
}

.ob-node { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 4px 0; }
.ob-node + .ob-node { margin-top: 16px; }   /* cards alternam de lado, cada um na sua linha (marcador alinhado) */
.ob-node.is-available { z-index: 3; }
.ob-node.is-done { z-index: 2; }
.ob-node-marker { grid-column: 2; grid-row: 1; display: flex; justify-content: center; z-index: 2; }
.ob-node-dot {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; background: #0c1a2c; border: 2px solid var(--line); color: var(--text-muted);
}
.ob-node.is-done .ob-node-dot { background: #43C59E; border-color: #43C59E; color: #04221a; }
.ob-node.is-available .ob-node-dot { background: var(--primary); border-color: #6ff0c0; color: #fff; box-shadow: 0 0 0 6px rgba(110,240,192,.14); }
.ob-node.is-available .ob-node-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(110,240,192,.55); animation: obPing 1.8s ease-out infinite;
}
@keyframes obPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

.ob-node-card {
  grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 340px;
  display: flex; flex-direction: column; gap: 14px; position: relative; min-height: 160px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
}
.ob-node:nth-child(even) .ob-node-card { grid-column: 3; justify-self: start; }
.ob-node-card::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 22px; height: 2px; background: var(--line); }
.ob-node:nth-child(odd)  .ob-node-card::after { right: -22px; }
.ob-node:nth-child(even) .ob-node-card::after { left: -22px; }
.ob-node.is-available .ob-node-card {
  border-color: rgba(110,240,192,.55);
  box-shadow: 0 0 0 1px rgba(110,240,192,.25), 0 14px 46px rgba(62,230,165,.32);
  animation: obCardGlow 2.6s ease-in-out infinite;
}
@keyframes obCardGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(110,240,192,.20), 0 10px 34px rgba(62,230,165,.22); }
  50%     { box-shadow: 0 0 0 1px rgba(110,240,192,.50), 0 18px 56px rgba(62,230,165,.48); }
}

/* Borda animada (luz girando) na etapa atual. Sem @property, cai na borda estática acima. */
@property --ob-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ob-node.is-available .ob-node-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ob-ang),
    transparent 0 52%, rgba(110,240,192,.65) 66%, #cdeeff 75%, rgba(110,240,192,.65) 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: obBorder 3s linear infinite;
}
@keyframes obBorder { to { --ob-ang: 360deg; } }

.ob-node.is-locked .ob-node-card { opacity: .55; }

/* Imagem de fundo por card — overlay em degradê mantém o texto legível */
.ob-node-card.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ob-node-card.has-img .ob-node-title,
.ob-node-card.has-img .ob-node-desc { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.ob-node-card.ob-card-porque    { background-image: linear-gradient(180deg, rgba(8,18,32,.93) 0%, rgba(8,18,32,.60) 40%, rgba(8,18,32,.50) 62%, rgba(8,18,32,.95) 100%), url("../img/porque.jpg"); }
.ob-node-card.ob-card-rotina    { background-image: linear-gradient(180deg, rgba(8,18,32,.93) 0%, rgba(8,18,32,.60) 40%, rgba(8,18,32,.50) 62%, rgba(8,18,32,.95) 100%), url("../img/rotina.jpg"); }
.ob-node-card.ob-card-confianca { background-image: linear-gradient(180deg, rgba(8,18,32,.93) 0%, rgba(8,18,32,.60) 40%, rgba(8,18,32,.50) 62%, rgba(8,18,32,.95) 100%), url("../img/confianca.jpg"); }
.ob-node-card.ob-card-prova     { background-image: linear-gradient(180deg, rgba(8,18,32,.93) 0%, rgba(8,18,32,.60) 40%, rgba(8,18,32,.50) 62%, rgba(8,18,32,.95) 100%), url("../img/prova.jpg"); }

.ob-node-top { display: flex; align-items: center; gap: 12px; }
.ob-node-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: rgba(110,240,192,.14); color: #9bd0ff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ob-node-body { flex: 1 1 auto; min-width: 0; }
.ob-node-step { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ob-here { color: #6ff0c0; }
.ob-node-title { display: block; font-size: 20px; font-weight: 800; color: var(--text); margin-top: 2px; line-height: 1.25; }
.ob-node-desc { display: block; font-size: 13.5px; color: #d6e2f0; margin-top: 7px; line-height: 1.55; }
.ob-node-side { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ob-node-cta { width: 100%; font-size: 15.5px; padding: 14px 22px; }
.ob-step-pe { font-size: 11.5px; font-weight: 800; color: var(--primary-strong); background: rgba(110,240,192,.14); border-radius: 999px; padding: 4px 11px; }
.ob-badge { font-size: 12px; font-weight: 700; color: #43C59E; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ob-badge-muted { color: var(--text-muted); }

@media (max-width: 720px) {
  .ob-trail::before, .ob-trail::after { left: 23px; }
  .ob-node { grid-template-columns: 46px 1fr; }
  .ob-node + .ob-node { margin-top: 14px; }   /* coluna cheia no mobile: sem sobreposição */
  .ob-node-marker { grid-column: 1; }
  .ob-node-card, .ob-node:nth-child(even) .ob-node-card { grid-column: 2; justify-self: stretch; max-width: none; min-height: 240px; }
  .ob-node-card::after,
  .ob-node:nth-child(odd) .ob-node-card::after,
  .ob-node:nth-child(even) .ob-node-card::after { left: -18px; right: auto; width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-node.is-available .ob-node-dot::after,
  .ob-node.is-available .ob-node-card::before,
  .ob-node.is-available .ob-node-card,
  .ob-glow { animation: none; }
}
.ob-done { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ob-done p { margin: 0; }

/* Modal de parabéns (fim do percurso) */
.ob-modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,7,10,.80); backdrop-filter: blur(5px); }
.ob-modal {
  width: min(440px, 92vw); text-align: center;
  background: linear-gradient(160deg, #11233f, #0d1a30);
  border: 1px solid rgba(110,240,192,.25); border-radius: var(--radius-lg);
  padding: 34px 28px; box-shadow: 0 30px 70px rgba(0,0,0,.55); animation: obModalIn .3s ease;
}
.ob-modal-ic { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #9bd0ff; background: rgba(110,240,192,.14); box-shadow: 0 0 0 8px rgba(110,240,192,.06); }
.ob-modal-title { font-size: 23px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.ob-modal-text { font-size: 14px; color: #c4d2e6; line-height: 1.6; margin: 0 0 22px; }
.ob-modal-text strong { color: #eaf3ff; }
@keyframes obModalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ob-modal { animation: none; } }

/* etapas (formulários) */
.ob-q { margin-bottom: 14px; }
.ob-q-en { font-size: 14px; color: var(--text); margin: 0 0 12px; line-height: 1.5; }
.ob-opts { display: flex; flex-direction: column; gap: 8px; }
.ob-opts-wrap { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.ob-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; transition: border-color .12s, background .12s; }
.ob-opt:hover { border-color: rgba(110,240,192,.35); background: rgba(110,240,192,.06); }
.ob-opt input { accent-color: var(--primary); }
.ob-opt-rot { font-weight: 800; color: var(--primary-strong); width: 18px; }
.ob-opt-txt { color: var(--text-body); font-size: 13.5px; }
.ob-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ob-check input { accent-color: var(--primary); }
.ob-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* confiança 0–5 */
.ob-conf-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ob-conf-row:last-child { border-bottom: none; }
.ob-conf-nome { font-size: 13.5px; color: var(--text); font-weight: 600; }
.ob-conf-nome small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; }
.ob-conf-scale { display: flex; gap: 6px; flex-shrink: 0; }
.ob-conf-opt { position: relative; }
.ob-conf-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.ob-conf-opt span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--text-muted); transition: .12s; }
.ob-conf-opt input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.ob-conf-opt:hover span { border-color: var(--primary); }

@media (max-width: 640px) {
  .ob-conf-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ob-step-side { flex-direction: column; align-items: flex-end; gap: 6px; }
}

/* ============================================================
   Mural dos Porquês
   ============================================================ */
.mural-page { max-width: 1060px; margin: 0 auto; padding: 40px 20px 80px; }
.mural-hero { text-align: center; margin-bottom: 52px; }
.mural-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(62,230,165,.1); color: var(--primary); border: 1px solid rgba(62,230,165,.2); border-radius: 20px; padding: 4px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.mural-hero-title { font-size: 2.4rem; font-weight: 900; color: var(--text); line-height: 1.15; margin: 0 0 12px; }
.mural-hero-sub { color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.65; font-size: 15px; }
.mural-grid { columns: 3; column-gap: 20px; }
.mural-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: transform .2s, box-shadow .2s;
}
.mural-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(62,230,165,.1); }
.mural-card-new  { opacity: 0; transform: translateY(12px); transition: none; }
.mural-card-in   { opacity: 1; transform: translateY(0); transition: opacity .35s, transform .35s; }
.mural-card-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--av-cor, var(--primary));
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0; overflow: hidden;
}
.mural-card-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Sem foto: avatar neutro (anônimo) — não usa a cor derivada do nome. */
.mural-card-av.is-anon { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.mural-card-txt { color: var(--text); font-size: 14px; line-height: 1.7; margin: 0 0 16px; word-break: break-word; }
.mural-card-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.mural-card-nome { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.mural-sentinel { text-align: center; padding: 40px 0; }
.mural-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: mural-spin .7s linear infinite; }
@keyframes mural-spin { to { transform: rotate(360deg); } }
.mural-fim { color: var(--text-muted); font-size: 13px; opacity: .6; }
.mural-empty { text-align: center; padding: 80px 20px; }
.mural-empty-ic { display: block; color: var(--text-muted); margin-bottom: 16px; }
@media (max-width: 860px) { .mural-grid { columns: 2; } }
@media (max-width: 520px) { .mural-grid { columns: 1; } }

/* ============================================================
   Prova ao Vivo (Simulado)
   ============================================================ */
.sim-page { max-width: 700px; margin: 0 auto; padding: 32px 20px 80px; }
.sim-header { text-align: center; margin-bottom: 36px; }
.sim-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,80,80,.1); color: #ff7070; border: 1px solid rgba(255,80,80,.2); border-radius: 20px; padding: 4px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.sim-title { font-size: 1.9rem; font-weight: 900; color: var(--text); margin: 0 0 8px; }
.sim-desc  { color: var(--text-muted); font-size: 14px; }
/* Aguardando */
.sim-aguardando { text-align: center; padding: 80px 20px; }
.sim-aguardando-ic { display: block; color: var(--text-muted); margin-bottom: 20px; }
.sim-aguardando-t  { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.sim-aguardando-s  { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
/* Iniciar prova (antes de começar) */
.sim-start { max-width: 460px; margin: 40px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px 28px; }
.sim-start-ic { display: inline-flex; width: 84px; height: 84px; border-radius: 24px; align-items: center; justify-content: center;
  background: rgba(110,240,192,.12); color: #9bd0ff; border: 1px solid rgba(110,240,192,.2); margin-bottom: 18px; }
.sim-start-t { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.sim-start-s { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.sim-start-fim { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--data-amber);
  background: rgba(251,176,59,.12); border: 1px solid rgba(251,176,59,.25); border-radius: 999px; padding: 7px 14px; margin: 0 0 22px; }
.sim-start-form { margin: 0 0 14px; }
.sim-start-back { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.sim-start-back:hover { color: var(--text); }
/* Form */
.sim-counter { font-size: 13px; color: var(--text-muted); text-align: right; margin-bottom: 16px; }
.sim-form-q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; }
.sim-q-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px; }
.sim-q-txt { font-size: 15px; color: var(--text); line-height: 1.65; margin: 0 0 16px; }
.sim-q-opts { display: flex; flex-direction: column; gap: 8px; }
.sim-opt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.sim-opt:hover { border-color: var(--primary); background: rgba(62,230,165,.05); }
.sim-opt.is-sel { border-color: var(--primary); background: rgba(62,230,165,.1); }
.sim-opt input { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.sim-opt-rotulo { font-weight: 700; color: var(--primary); min-width: 18px; font-size: 14px; }
.sim-opt-txt { color: var(--text); font-size: 14px; line-height: 1.5; }
.sim-form-foot { margin-top: 24px; text-align: center; }
.sim-form-aviso { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* Prova ao vivo — cronometrada, uma questão por vez */
.sim-clock { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0 0 22px; padding: 16px 20px; border-radius: 16px;
  background: rgba(251,176,59,.10); border: 1px solid rgba(251,176,59,.30); }
.sim-clock-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--data-amber); }
.sim-clock-time { font-size: 46px; font-weight: 800; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
/* Simulado Dia 3 — abas (Prova / Cartão) + cartão de resposta */
.sd3-tabs { display: flex; gap: 8px; margin: 0 0 18px; }
.sd3-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text-muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.sd3-tab.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.sd3-tab-count { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(110,240,192,.18); color: var(--primary-strong); }
/* Prova = "papel": fundo branco, texto preto (simula a prova real) sobre o fundo escuro */
.sd3-q { background: #fff; color: #23252b; border: 1px solid #e3e6ea; border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.20); }
.sd3-q .sim-q-num { color: #8a93a3; }
.sd3-q .sim-q-txt { color: #1c1f26; }
.sd3-q-opts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sd3-q-opt { font-size: 14px; color: #2a2e37; line-height: 1.55; padding: 9px 12px; border: 1px solid #e6e9ee; border-radius: 8px; background: #fafbfc; }
.sd3-q-opt strong { display: inline-block; min-width: 22px; color: #1856a8; font-weight: 800; }
.sd3-goto-cartao { margin-top: 22px; }
/* Cartão de resposta — folha branca clean, 10 por linha */
.sd3-cartao-hint { font-size: 13.5px; color: var(--text-muted); margin: 0 0 14px; display: flex; align-items: center; gap: 7px; }
.sd3-cartao { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px 8px; background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 20px 18px; box-shadow: 0 6px 18px rgba(0,0,0,.20); }
.sd3-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sd3-cell-num { font-size: 11px; font-weight: 700; color: #99a2b0; }
.sd3-cell-input { width: 100%; max-width: 42px; aspect-ratio: 1 / 1; text-align: center; text-transform: uppercase; font-size: 17px; font-weight: 800; color: #1c1f26; background: #f4f6f9; border: 1.5px solid #d4d9e0; border-radius: 8px; }
.sd3-cell.is-filled .sd3-cell-input { background: #eaf2ff; border-color: #3ee6a5; color: #1856a8; }
.sd3-cell-input:focus { outline: none; border-color: #3ee6a5; box-shadow: 0 0 0 3px rgba(62,230,165,.25); }
@media (max-width: 560px) { .sd3-cartao { grid-template-columns: repeat(5, 1fr); } }
.sd3-cartao-foot { margin-top: 20px; }
/* Modal de confirmação do envio do cartão */
.sd3-confirm-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(6,12,22,.78); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sd3-confirm-overlay[hidden] { display: none; }   /* display:flex sobrepõe o atributo hidden — força esconder */
.sd3-confirm { width: min(420px, 100%); background: linear-gradient(160deg,#11233f,#0d1a30); border: 1px solid rgba(110,240,192,.22); border-radius: 16px; padding: 26px 24px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.sd3-confirm-ic { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(62,230,165,.16); color: #6ff0c0; margin-bottom: 12px; }
.sd3-confirm-t { font-size: 18px; font-weight: 800; color: #eaf6ff; margin: 0 0 8px; }
.sd3-confirm-p { font-size: 13.5px; color: #9fb3cc; line-height: 1.55; margin: 0 0 20px; }
.sd3-confirm-p strong { color: #ffce85; }
.sd3-confirm-actions { display: flex; gap: 10px; }
.sd3-confirm-actions .btn { flex: 1; justify-content: center; }
/* Simulado Dia 3 — aguardando resultado + cards de resultado (ranking / raio-x) */
.sd3-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 18px; padding: 18px 20px; border-radius: 14px; background: rgba(251,176,59,.10); border: 1px solid rgba(251,176,59,.30); color: var(--text-body); text-align: center; }
.sd3-wait-ic { color: var(--data-amber); }
.sd3-result-head { text-align: center; margin: 0 0 18px; }
.sd3-result-done { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sd3-result-done-ic { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--grad-primary); color: #04160f; box-shadow: 0 0 20px rgba(62,230,165,.4); }
.sd3-result-sub { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.sd3-result-sub strong { color: var(--text); }
/* Ações do resultado (ver gabarito / ver questões) — lado a lado, quebram no mobile */
.sd3-result-acts { justify-content: center; margin-top: 12px; }
/* Variante neutra do outline: mesmo botão, texto claro — separa a ação
   secundária ("ver questões") da principal, em verde ("ver gabarito"). */
.btn-outline.is-neutral { color: var(--text); }
.btn-outline.is-neutral:hover { color: var(--text); }
.sd3-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 720px) { .sd3-result { grid-template-columns: 1fr; } }
/* Abas do resultado: Ranking / Desempenho */
.sd3-rtabs { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 16px; }
.sd3-rtab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text-muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.sd3-rtab.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.sd3-rpanel { max-width: 560px; margin: 0 auto; }
.sd3-rpanel[hidden] { display: none; }
.sd3-rank-row.is-top .sd3-rank-pos { font-size: 17px; min-width: 30px; }
/* Pódio: cores ouro / prata / bronze nas 3 primeiras linhas */
.sd3-rank-row.is-pos1 { box-shadow: inset 3px 0 0 #f4c430; background: rgba(244,196,48,.10); }
.sd3-rank-row.is-pos2 { box-shadow: inset 3px 0 0 #c4ccd6; background: rgba(196,204,214,.09); }
.sd3-rank-row.is-pos3 { box-shadow: inset 3px 0 0 #cd7f32; background: rgba(205,127,50,.10); }
/* Card "ainda não liberado" (ranking/desempenho fechados) */
.sd3-locked { text-align: center; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sd3-locked-ic { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(251,176,59,.14); color: #fbb03b; }
.sd3-locked p { margin: 0; color: var(--text-body); line-height: 1.55; }

/* Modal de convite do mini-simulado — abre no lugar de mandar pra /indicacoes,
   pra pessoa copiar o link e voltar direto ao gabarito. */
.conv-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(5,7,10,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.conv-modal[hidden] { display: none; }
.conv-modal-box { position: relative; background: rgba(16,21,27,.97); border: 1px solid rgba(110,240,192,.30); border-radius: 22px; padding: 28px 24px 24px; width: 100%; max-width: 440px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.6); margin: auto; }
.conv-modal-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: rgba(5,7,10,.55); border: 0; border-radius: 50%; font-size: 18px; line-height: 1; color: #fff; cursor: pointer; padding: 0; }
.conv-modal-x:hover { background: rgba(5,7,10,.8); }
.conv-modal-t { font-family: "Space Grotesk","Inter",sans-serif; font-size: 19px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.conv-modal-s { font-size: 13.5px; color: var(--text-body); line-height: 1.5; margin: 0 0 18px; }
.conv-modal-input { width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.045); color: var(--text); font-size: 13px; font-family: monospace; text-align: center; margin-bottom: 10px; }
.conv-modal-copy { width: 100%; justify-content: center; }
.conv-modal-back { display: block; width: 100%; background: none; border: 0; margin-top: 14px; padding: 6px; font: inherit; font-size: 13px; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.conv-modal-back:hover { color: var(--text); }
@media (max-width: 480px) { .conv-modal-box { padding: 24px 18px 20px; } .conv-modal-t { font-size: 17px; } }
.sd3-rank-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: #5fe0b8; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.sd3-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #43c59e; animation: sd3pulse 1.4s ease-in-out infinite; }
@keyframes sd3pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(67,197,158,.5); } 50% { box-shadow: 0 0 0 6px rgba(67,197,158,0); } }
.sd3-rcard { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; }
.sd3-rcard-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #eaf6ff; margin: 0 0 14px; }
/* botão "Ver gabarito" na aba Desempenho */
.sd3-gab-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
/* lista de gabarito (alternativa correta marcada, sem comentários) */
.sd3-gab-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-inline: auto; }
.sd3-gab-q { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; }
.sd3-gab-enun { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #eaf6ff; margin-bottom: 12px; }
.sd3-gab-num { flex-shrink: 0; min-width: 26px; height: 26px; border-radius: 8px; background: rgba(62,230,165,.16); color: var(--primary-strong, #6ff0c0); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.sd3-gab-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sd3-gab-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text-muted, #9fb3cc); border: 1px solid transparent; }
.sd3-gab-let { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.06); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sd3-gab-txt { flex: 1; }
.sd3-gab-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.sd3-gab-opt.is-correct { background: rgba(33,201,124,.12); border-color: rgba(33,201,124,.45); color: #d7f7e6; }
.sd3-gab-opt.is-correct .sd3-gab-let { background: #21c97c; color: #04130b; }
.sd3-gab-tag.ok { background: rgba(33,201,124,.2); color: #4fe6a0; }
.sd3-gab-opt.is-mine-wrong { background: rgba(229,57,53,.08); border-color: rgba(229,57,53,.35); }
.sd3-gab-tag.bad { background: rgba(229,57,53,.18); color: #ff8a85; }
.sd3-gab-noans { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 11px; font-size: 12.5px; font-weight: 700; color: #ff8a85; background: rgba(229,57,53,.1); border: 1px solid rgba(229,57,53,.32); border-radius: 8px; padding: 6px 11px; }
/* ranking */
.sd3-rank-you { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft, rgba(62,230,165,.14)); border: 1px solid var(--primary, #3ee6a5); margin-bottom: 12px; font-size: 13.5px; color: var(--text); }
.sd3-rank-youpos { font-size: 18px; font-weight: 800; color: var(--primary-strong, #6ff0c0); flex-shrink: 0; }
/* Mostra todo mundo que participou. Como a lista pode ficar longa, ela rola
   dentro do próprio card em vez de esticar a página. */
.sd3-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(110,240,192,.32) transparent; }
/* Barra de rolagem no mesmo padrão do resto do painel (trilha invisível, polegar
   verde arredondado) — no mobile o SO já desenha a sua, então só o desktop. */
@media (hover: hover) and (pointer: fine) {
  .sd3-rank-list::-webkit-scrollbar { width: 10px; }
  .sd3-rank-list::-webkit-scrollbar-track { background: transparent; }
  .sd3-rank-list::-webkit-scrollbar-thumb { background: rgba(110,240,192,.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
  .sd3-rank-list::-webkit-scrollbar-thumb:hover { background: rgba(110,240,192,.5); background-clip: padding-box; }
  /* Respiro pra lista não encostar na barra. */
  .sd3-rank-list { padding-right: 4px; }
}
.sd3-rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.sd3-rank-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.sd3-rank-row.is-you { background: var(--primary-soft, rgba(62,230,165,.16)); outline: 1px solid var(--primary, #3ee6a5); }
.sd3-rank-pos { flex-shrink: 0; min-width: 30px; font-weight: 800; color: var(--text-muted); }
.sd3-rank-nome { flex: 1; color: var(--text); }
/* Nome clicável (perfil público) é um <button>: sem isto ele fica com o estilo
   nativo do navegador — fundo branco cobrindo a linha e sumindo com o nome. */
.sd3-rank-nome-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; }
.sd3-rank-nome-btn:hover { color: var(--primary-strong); text-decoration: underline; }
.sd3-badge-ment { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; background: rgba(167,102,214,.2); color: #c79af0; margin-left: 4px; }
.sd3-rank-pct { flex-shrink: 0; font-weight: 800; color: var(--text); }
/* raio-x */
/* 3 cards empilhados (um embaixo do outro): rótulo à esquerda, valor à direita */
.sd3-rx-stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sd3-rx-stat { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.04); }
.sd3-rx-stat span { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.sd3-rx-stat b { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.3; text-align: right; }
.sd3-rx-stat b.ok { color: #5fe0b8; } .sd3-rx-stat b.bad { color: #ff8b8f; }
.sd3-rx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sd3-rx-list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.sd3-rx-nome { flex: 0 0 44%; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sd3-rx-nm { color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd3-rx-pos { font-size: 10.5px; font-weight: 700; color: var(--primary-strong, #6ff0c0); }
.sd3-rx-bar { flex: 1; height: 8px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.sd3-rx-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3ee6a5, #5fe0b8); }
.sd3-rx-list b { flex-shrink: 0; min-width: 34px; text-align: right; color: var(--text); font-weight: 800; }
.sim-warn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #ff8a8a; margin: 0 0 10px; justify-content: center; }
.sim-warn[hidden] { display: none; }   /* o aviso só aparece quando o JS mostra */
.sim-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sim-prog { font-size: 13px; color: var(--text-muted); }
.sim-prog b { color: var(--text); }
.sim-timers { display: flex; gap: 10px; }
.sim-timers[hidden] { display: none; }   /* respeita o hidden (tempo da questao oculto do aluno) */
.sim-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary-strong); background: var(--primary-soft); border-radius: var(--radius-pill); padding: 5px 12px; font-variant-numeric: tabular-nums; }
.sim-timer-total { color: var(--data-amber); background: rgba(251,176,59,.14); }
.sim-progressbar { height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 22px; }
.sim-progressbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); transition: width .4s; }
.sim-q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.sim-nav { margin-top: 22px; text-align: center; }
/* Enviado */
.sim-enviado { text-align: center; padding: 60px 20px 32px; }
.sim-enviado-ic { display: block; color: var(--primary); margin-bottom: 20px; }
.sim-enviado-t  { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.sim-enviado-s  { color: var(--text-muted); font-size: 14px; }
/* Resultado */
.sim-resultado { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 320px; margin: 24px auto; text-align: center; }
.sim-res-score { font-size: 3.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.sim-res-label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
/* Gabarito */
.sim-gabarito { margin-top: 32px; text-align: left; }
.sim-gab-q { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.sim-gab-q.sim-gab-ok { border-color: rgba(52,211,153,.3); }
.sim-gab-q.sim-gab-err { border-color: rgba(255,100,100,.25); }
.sim-gab-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sim-gab-txt { font-size: 14px; color: var(--text); line-height: 1.55; margin: 0 0 12px; }
.sim-gab-opts { display: flex; flex-direction: column; gap: 6px; }
.sim-gab-opt { font-size: 13px; color: var(--text-muted); padding: 7px 10px; border-radius: 7px; border: 1px solid transparent; }
.sim-gab-correta { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); color: #34d399; }
.sim-gab-errada  { border-color: rgba(255,100,100,.3); background: rgba(255,100,100,.07); color: #f87171; }
.sim-gab-mark { font-size: 11px; opacity: .7; margin-left: 6px; }

/* ============================================================
   Admin — Configurações (settings toggle panel)
   ============================================================ */
.stg-group { margin-bottom: 32px; }
.stg-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.stg-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); }
.stg-group-prog { flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--ok-ink); background: var(--ok-bg); border-radius: 999px; padding: 2px 11px; }
.stg-row.is-next { background: rgba(110,240,192,.07); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.stg-next { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #6ff0c0; background: rgba(110,240,192,.16); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.stg-dia-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stg-dia-note { font-size: 12px; color: var(--text-muted); }
.stg-dia { display: flex; gap: 8px; }
.stg-dia-btn { padding: 9px 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.stg-dia-btn:hover { border-color: rgba(110,240,192,.4); }
.stg-dia-btn.is-on { background: var(--primary); border-color: #6ff0c0; color: #04223a; }
.stg-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.04); gap: 16px; }
.stg-row-info { flex: 1; }
.stg-row-label { display: block; font-size: 14px; color: var(--text); }
.stg-row-key   { display: block; font-size: 11px; color: var(--text-muted); font-family: monospace; margin-top: 2px; opacity: .7; }
.stg-form { flex-shrink: 0; }
.stg-toggle {
  width: 48px; height: 26px; border-radius: 13px;
  background: var(--line); border: none; cursor: pointer;
  position: relative; transition: background .15s; flex-shrink: 0;
}
.stg-toggle.is-on { background: var(--primary); }
.stg-toggle-dot {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left .15s;
  pointer-events: none;
}

/* Controle de 3 estados: Bloqueado / Só admin / Liberado */
.stg-tri { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.stg-tri-btn {
  border: none; background: transparent; cursor: pointer; padding: 7px 12px;
  font-size: 12px; font-weight: 700; color: var(--text-muted, #8aa0bd);
  border-left: 1px solid var(--line); transition: background .12s, color .12s; white-space: nowrap;
}
.stg-tri-btn:first-child { border-left: none; }
.stg-tri-btn:hover { color: var(--text, #eaf2ff); }
.stg-tri-off.is-sel   { background: rgba(138,160,189,.18); color: #cdd9ea; }
.stg-tri-admin.is-sel { background: rgba(240,165,60,.2);  color: #ffce85; }
.stg-tri-on.is-sel    { background: rgba(67,197,158,.2);  color: #7fe3c2; }
.stg-row.is-adminonly { border-color: rgba(240,165,60,.35); }
.stg-toggle.is-on .stg-toggle-dot { left: 25px; }

/* Ajustes numéricos (tempos) */
.stg-num-form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.stg-num { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.stg-num .input { width: 140px; }

/* Zona de perigo (reset total) */
.stg-danger { border: 1px solid rgba(242,92,92,.35); }
.stg-danger-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stg-danger-form .input { max-width: 240px; }
.stg-danger-btn { background: var(--data-red); color: #fff; }
.stg-danger-btn:hover { background: #e23b3b; }

/* Dashboard comportamental (gráficos) */
.cmp-metrics { display: flex; gap: 30px; margin-top: 16px; flex-wrap: wrap; }
.cmp-metric { display: flex; flex-direction: column; }
.cmp-metric b { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.cmp-metric span { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; }
.cmp-card { display: flex; flex-direction: column; }
.cmp-q { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cmp-q h3 { font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.35; }
.cmp-n { flex-shrink: 0; font-size: 11px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.cmp-pie-wrap { display: flex; align-items: center; gap: 18px; }
.cmp-pie { width: 116px; height: 116px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.cmp-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmp-legend li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.35; }
.cmp-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; margin-top: 3px; }
.cmp-leg-l { flex: 1; min-width: 0; color: var(--text-body); }
.cmp-legend b { color: var(--text); font-weight: 800; flex-shrink: 0; }
.cmp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cmp-bars li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.cmp-bar-l { flex: 0 0 40%; min-width: 0; color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-bar { flex: 1; height: 9px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 999px; }
.cmp-bars b { flex: 0 0 auto; color: var(--text); font-weight: 800; min-width: 34px; text-align: right; }
.cmp-more { color: var(--text-muted); font-size: 12px; justify-content: center; }

/* Pesquisa — respostas individuais (colapsáveis, formato planilha) */
.psqa-list { display: flex; flex-direction: column; gap: 8px; }
.psqa-resp { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.psqa-resp[open] { border-color: var(--primary); }
.psqa-sum { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.psqa-sum::-webkit-details-marker { display: none; }
.psqa-sum:hover { background: var(--primary-soft); }
.psqa-sum-nome { font-weight: 700; color: var(--text); }
.psqa-sum-meta { flex: 1; color: var(--text-muted); font-size: 12.5px; }
.psqa-sum-chev { color: var(--text-muted); transition: transform .15s; }
.psqa-resp[open] .psqa-sum-chev { transform: rotate(180deg); }
.psqa-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.psqa-table th, .psqa-table td { text-align: left; vertical-align: top; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.psqa-table th { width: 42%; font-weight: 600; color: var(--text-muted); background: rgba(0,0,0,.02); }
.psqa-ans { color: var(--text); font-weight: 600; }
.psqa-txt { color: var(--text-body); font-style: italic; }
.psqa-vazio { color: var(--text-muted); }
/* Charts colapsáveis (no topo) */
.psqa-charts > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--text); }
.psqa-charts > summary::-webkit-details-marker { display: none; }
.psqa-charts > summary small { color: var(--text-muted); font-weight: 600; font-size: 12.5px; }
.psqa-charts[open] > summary .psqa-sum-chev { transform: rotate(180deg); }
/* Status do lead + atendimento do comercial */
.psqa-badge { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(217,138,27,.14); color: #b9760f; }
.psqa-resp.is-done .psqa-badge { background: rgba(46,155,107,.16); color: #2e9b6b; }
.psqa-resp.is-done { border-color: rgba(46,155,107,.4); }
.psqa-lead { padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(62,230,165,.05); display: flex; flex-direction: column; gap: 9px; }
.psqa-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.psqa-check input { width: 17px; height: 17px; accent-color: #2e9b6b; }
.psqa-obs { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; }
.psqa-lead-foot { display: flex; align-items: center; gap: 12px; }
.psqa-lead-meta { font-size: 12px; color: var(--text-muted); }

/* Tela de senha do planejamento */
.plk { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.plk-card { width: 100%; max-width: 440px; text-align: center; background: rgba(10,20,35,.86); border: 1px solid rgba(255,255,255,.10); border-radius: 20px; padding: 40px 32px; box-shadow: var(--shadow-card); }
.plk-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(240,165,60,.14); color: #f0a53c; margin-bottom: 18px; }
.plk-title { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.plk-sub { font-size: 14.5px; color: var(--text-body); line-height: 1.55; margin: 0 auto 24px; max-width: 360px; }
.plk-form { display: flex; flex-direction: column; gap: 12px; }
.plk-form .input { text-align: center; font-size: 16px; }
.plk-err { color: #ff8a8a; font-size: 13px; margin: 14px 0 0; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.plk-back { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--text-muted); text-decoration: none; }
.plk-back:hover { text-decoration: underline; }

/* Overlay "Volte para o Zoom" (acionado pelo admin, lido por polling) */
.zoverlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,12,22,.94); backdrop-filter: blur(6px); }
.zoverlay.is-on { display: flex; }
.zoverlay-card { text-align: center; max-width: 460px; }
.zoverlay-ic { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(242,92,92,.16); color: #ff6b6b; margin-bottom: 20px; animation: zovPulse 1.6s ease-in-out infinite; }
.zoverlay-card h2 { font-size: 32px; font-weight: 800; margin: 0 0 10px; color: #fff; }
.zoverlay-card p { font-size: 16px; color: #cfe0f5; margin: 0; }
@keyframes zovPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,92,92,.5); } 50% { box-shadow: 0 0 0 16px rgba(242,92,92,0); } }
body.zoverlay-on { overflow: hidden; }

/* Admin — participantes */
.usr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.usr-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.usr-export { position: relative; }
.usr-export > summary { list-style: none; cursor: pointer; }
.usr-export > summary::-webkit-details-marker { display: none; }
.usr-export-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 250px; padding: 6px; background: #0c1626; background-clip: padding-box;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.usr-export-hd { margin: 6px 8px 8px; font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.usr-export-menu a { display: flex; align-items: baseline; gap: 6px; padding: 9px 10px;
  border-radius: 8px; color: var(--text, #e7eefb); text-decoration: none; font-size: 13.5px; }
.usr-export-menu a:hover { background: rgba(255,255,255,.06); }
.usr-export-menu a strong { font-weight: 700; }
.usr-export-menu a small { color: var(--text-muted); font-size: 11.5px; }
.usr-export-menu a span { margin-left: auto; font-weight: 700; font-size: 12px; color: var(--text-muted); }

/* Liberar acesso manual (link mágico) */
.usr-linkbtn { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px;
  font-size: 11.5px; font-weight: 600; color: #9bd0ff; background: rgba(110,240,192,.1);
  border: 1px solid rgba(110,240,192,.28); border-radius: 999px; cursor: pointer; }
.usr-linkbtn:hover { background: rgba(110,240,192,.18); }
.usr-linkbtn:disabled { opacity: .6; cursor: default; }
/* Definir senha — mesmo visual, tom âmbar pra diferenciar do link */
.usr-senhabtn { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 0 6px; padding: 3px 9px;
  font-size: 11.5px; font-weight: 600; color: #ffce85; background: rgba(240,165,60,.1);
  border: 1px solid rgba(240,165,60,.3); border-radius: 999px; cursor: pointer; }
.usr-senhabtn:hover { background: rgba(240,165,60,.18); }
.usr-senhaform { display: inline-flex; gap: 6px; margin: 6px 0 0 6px; align-items: center; }
.usr-senhaform input { font-size: 11.5px; padding: 5px 8px; border-radius: 8px; width: 150px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); color: var(--text); }
.usr-senhasave { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  color: #2a1800; background: #ffce85; border: none; }
.usr-senhasave:disabled { opacity: .6; cursor: default; }
.usr-linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; max-width: 340px; }
.usr-linkbox input { flex: 1 1 180px; min-width: 0; font-size: 11.5px; padding: 5px 8px;
  background: #0c1626; color: #cfe0f5; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; }
.usr-copy { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; padding: 5px 10px; cursor: pointer;
  color: #06281c; background: #57B894; border: 0; border-radius: 7px; }
.usr-link-meta { flex-basis: 100%; font-size: 10.5px; color: var(--text-muted); }
.usr-link-meta b { color: #cfe0f5; letter-spacing: .04em; }
.usr-total { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.usr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.usr-tab { font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.usr-tab span { opacity: .7; margin-left: 4px; }
.usr-tab.is-active { background: var(--primary-soft); color: var(--primary-strong); border-color: rgba(110,240,192,.4); }
.usr-search { display: flex; gap: 10px; margin-bottom: 16px; }
.usr-search .input { flex: 1; }
.usr-table-wrap { overflow-x: auto; }
.usr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.usr-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.usr-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.usr-name { font-weight: 700; color: var(--text); }
.usr-mail { font-size: 12px; color: var(--text-muted); }
.usr-muted { color: var(--text-muted); }
.usr-empty { text-align: center; color: var(--text-muted); padding: 28px 0; }
.usr-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid; }
.usr-chip { display: inline-block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #9bd0ff;
  background: rgba(110,240,192,.12); border: 1px solid rgba(110,240,192,.3); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.usr-chip.is-ok   { color: #5fe0b8; background: rgba(67,197,158,.12); border-color: rgba(67,197,158,.35); }
.usr-ment { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--text-muted); cursor: pointer; vertical-align: 1px; }
.usr-ment:hover { border-color: #a766d6; color: #a766d6; }
.usr-ment.is-on { border-style: solid; border-color: #a766d6; background: rgba(167,102,214,.16); color: #b27fe0; }
.usr-chip.is-warn { color: #f0a53c; background: rgba(240,165,60,.12); border-color: rgba(240,165,60,.35); }
.usr-badge.is-ok   { color: var(--ok-ink);   background: var(--ok-bg);   border-color: rgba(95,224,184,.35); }
.usr-badge.is-wait { color: var(--warn-ink); background: var(--warn-bg); border-color: rgba(255,206,122,.35); }
.usr-badge.is-pend { color: var(--text-muted); background: rgba(255,255,255,.04); border-color: var(--line); }
.usr-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.imp-form { display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   Planejamento — Toast + métricas bloqueadas
   ============================================================ */
/* Card "como montar o dia: o rodízio" */
.pl-rodizio {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; margin: 0 0 18px; overflow: hidden;
}
.pl-rodizio-sum {
  display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none;
  padding: 14px 16px; font-size: 15px; font-weight: 700; color: #eaf2ff;
}
.pl-rodizio-sum::-webkit-details-marker { display: none; }
.pl-rodizio-ic { display: inline-flex; color: #6ff0c0; }
.pl-rodizio-chev { margin-left: auto; color: #6f87a8; transition: transform .2s; }
.pl-rodizio[open] .pl-rodizio-chev { transform: rotate(180deg); }
.pl-rodizio-body { padding: 0 16px 16px; }
.pl-rodizio-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #b9c8dc; }
.pl-rodizio-steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.pl-rodizio-steps li { font-size: 13px; line-height: 1.5; color: #cdd9ea; }
.pl-rodizio-steps strong, .pl-rodizio-lead strong { color: #eaf2ff; }
.pl-rodizio-fig { margin: 0 0 14px; }
.pl-rodizio-fig svg { width: 100%; height: auto; display: block; }
.pl-rodizio-fig figcaption { margin-top: 8px; font-size: 12px; color: #8aa0bd; text-align: center; }
.pl-rodizio-why {
  display: flex; gap: 8px; align-items: flex-start; margin: 0;
  padding: 11px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: #cbd9ec;
  background: rgba(110,240,192,.07); border: 1px solid rgba(110,240,192,.2);
}
.pl-rodizio-why .pl-rodizio-ic { color: #ffce85; flex-shrink: 0; margin-top: 1px; }
.pl-rodizio-why strong { color: #eaf2ff; }
@media (max-width: 640px) { .pl-rodizio-fig svg { min-width: 560px; } .pl-rodizio-fig { overflow-x: auto; } }

/* Painel "Seu volume x o peso da prova" */
.pl-volume { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; margin: 0 0 18px; overflow: hidden; }
.pl-volume-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; padding: 14px 16px; font-size: 15px; font-weight: 700; color: #eaf2ff; }
.pl-volume-sum::-webkit-details-marker { display: none; }
.pl-volume-sum > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pl-volume-chev { color: #6f87a8; transition: transform .2s; }
.pl-volume[open] .pl-volume-chev { transform: rotate(180deg); }
.pl-volume-body { padding: 0 16px 16px; }
.pl-volume-sub { font-size: 12.5px; color: #b9c8dc; line-height: 1.5; margin: 0 0 10px; }
.pl-volume-sub strong { color: #eaf2ff; }
.pl-volume-ctx { font-size: 12.5px; color: #cdd9ea; line-height: 1.5; margin: 0 0 14px; padding: 9px 12px; border-radius: 9px; background: rgba(110,240,192,.07); border: 1px solid rgba(110,240,192,.18); }
.pl-volume-ctx strong { color: #6ff0c0; }
.pl-volume-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pl-volume-list li { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 12px; }
.pl-volume-nome { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #cdd9ea; min-width: 0; }
.pl-volume-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-volume-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pl-volume-bars { display: flex; flex-direction: column; gap: 4px; }
.pl-volume-bar { height: 7px; border-radius: 999px; width: 0; transition: width .4s ease; min-width: 2px; }
.pl-volume-peso { background: #6E7E9B; }
.pl-volume-meu  { background: #3ee6a5; }
.pl-volume-status { font-size: 11px; font-weight: 700; color: #8aa0bd; white-space: nowrap; text-align: right; }
.pl-volume-status.is-low  { color: #ffce85; }
.pl-volume-status.is-high { color: #6ff0c0; }
.pl-volume-status.is-ok   { color: #7fe3c2; }
.pl-volume-legend { margin-top: 14px; font-size: 11.5px; color: #8aa0bd; display: flex; align-items: center; }
.pl-volume-k { display: inline-block; width: 14px; height: 7px; border-radius: 999px; margin-right: 5px; vertical-align: middle; }

#plToasts {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 10px; z-index: 9999;
  width: min(440px, calc(100vw - 32px));
}
.pl-toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: #1a2c42; color: var(--text);
  padding: 12px 12px 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45;
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s;
  pointer-events: auto; box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.pl-toast.is-visible { opacity: 1; transform: translateY(0); }
.pl-toast-warn { background: #3a2912; border-color: #ffb020; color: #ffe6c2; }
.pl-toast-warn .pl-toast-msg strong { color: #ffce85; }
.pl-toast-msg { flex: 1; text-align: left; }
.pl-toast-x {
  flex-shrink: 0; background: none; border: 0; color: inherit; opacity: .65;
  cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; transition: opacity .12s;
}
.pl-toast-x:hover { opacity: 1; }
.pl-lock-metricas {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 24px; margin-top: 24px;
  color: var(--text-muted);
}
.pl-lock-metricas-ic { flex-shrink: 0; }
.pl-lock-metricas-title { font-weight: 600; color: var(--text); margin: 0 0 4px; font-size: 15px; }
.pl-lock-metricas-sub   { margin: 0; font-size: 13px; }

/* ============================================================
   Raio-X — Dia 1: revelação ao vivo, página do usuário, da prova, lock
   ============================================================ */

/* — Cartões de revelação no hub (/raio-x) — */
.rx-reveal { margin: 4px 0 28px; }
.rx-reveal-head { margin-bottom: 14px; }
.rx-reveal-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
  font-size: 15px; font-weight: 800; color: var(--text);
  text-transform: uppercase; letter-spacing: .04em;
}
.rx-reveal-title svg { color: var(--data-red); }
.rx-reveal-sub { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.rx-reveal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.rx-reveal-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 20px; position: relative;
  text-decoration: none; color: var(--text); min-height: 150px;
  transition: transform .2s, border-color .2s, background .2s;
}
.rx-reveal-card.is-on { cursor: pointer; }
.rx-reveal-card.is-on:hover {
  transform: translateY(-3px); border-color: var(--primary);
  background: var(--surface-2);
}
.rx-reveal-card.is-locked { opacity: .62; }
.rx-reveal-ic {
  display: inline-flex; width: 44px; height: 44px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; margin-bottom: 4px;
  background: var(--primary-soft); color: var(--primary-strong);
}
.rx-reveal-card.is-locked .rx-reveal-ic { background: rgba(255,255,255,.05); color: var(--text-muted); }
.rx-reveal-card-title { font-size: 16px; font-weight: 700; }
.rx-reveal-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.rx-reveal-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary-strong); margin-top: 4px;
}
.rx-reveal-arrow { transform: rotate(180deg); }
.rx-reveal-cta-locked { color: var(--text-muted); font-weight: 600; }

/* — Tela de cadeado (locked) — */
.rx-lock { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 16px; }
.rx-lock-card {
  text-align: center; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 44px 36px; box-shadow: var(--shadow-card);
}
.rx-lock-ic {
  display: inline-flex; width: 76px; height: 76px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary-strong);
}
.rx-lock-title { font-size: 23px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.rx-lock-sub { margin: 0 0 18px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.rx-lock-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 22px;
  font-size: 12.5px; font-weight: 700; color: var(--data-red);
  background: rgba(242,92,92,.12); border: 1px solid rgba(242,92,92,.3);
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.rx-lock-back { display: block; margin-top: 16px; color: var(--text-muted); text-decoration: none; font-size: 13px; }
.rx-lock-back:hover { color: var(--primary-strong); }

/* — Raio-X do usuário — */
.rx-u-perfil {
  display: flex; align-items: center; gap: 18px; margin: 0 0 22px;
  background: linear-gradient(135deg, rgba(62,230,165,.14), rgba(155,107,240,.10));
  border: 1px solid rgba(110,240,192,.22);
  border-radius: var(--radius-lg); padding: 22px 26px;
}
.rx-u-perfil-ic {
  flex-shrink: 0; display: inline-flex; width: 60px; height: 60px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(110,240,192,.16); color: var(--primary-strong);
}
.rx-u-perfil-kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-strong); }
.rx-u-perfil-title { font-size: 22px; font-weight: 800; margin: 2px 0 6px; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-u-perfil-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-strong); background: var(--primary-soft); padding: 4px 11px; border-radius: var(--radius-pill); }
.rx-u-perfil-resumo { margin: 0; font-size: 13.5px; color: var(--text-body); line-height: 1.55; }
.rx-u-perfil-ctx { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }

.rx-u-conf { display: flex; flex-direction: column; gap: 11px; }
.rx-u-conf-row { display: grid; grid-template-columns: 1fr 140px 34px; align-items: center; gap: 12px; }
.rx-u-conf-nome { font-size: 13px; color: var(--text-body); }
.rx-u-conf-pills { display: flex; gap: 4px; }
.rx-u-conf-pills i {
  flex: 1; height: 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.10);
  transition: background .2s, border-color .2s;
}
.rx-u-conf-pills.is-zero i { border-color: rgba(229,72,77,.75); background: rgba(229,72,77,.10); }
.rx-u-conf-val { font-size: 12.5px; font-weight: 700; color: var(--text); text-align: right; }

.rx-u-rotina { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
.rx-u-rotina-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .rx-u-rotina { grid-template-columns: 1fr; } }
.rx-u-rotina-row dt { font-size: 13px; color: var(--text-muted); margin: 0; flex: 1; }
.rx-u-rotina-row dd { font-size: 13px; color: var(--text); font-weight: 600; margin: 0; text-align: right; }

.rx-u-resp { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: q; display: flex; flex-direction: column; gap: 14px; }
.rx-u-resp-item { counter-increment: q; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.rx-u-resp-q { margin: 0 0 8px; font-size: 13.5px; color: var(--text); font-weight: 600; }
.rx-u-resp-q::before { content: counter(q) ". "; color: var(--primary-strong); font-weight: 800; }
.rx-u-resp-a { margin: 0; font-size: 13px; color: var(--text-body); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rx-u-resp-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-strong); background: var(--primary-soft); padding: 3px 9px; border-radius: var(--radius-pill); }
.rx-u-empty { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13.5px; margin: 0; }
.rx-u-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* RX usuário — prova ao vivo / pressão */
.rx-u-cta { text-align: center; max-width: 520px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 32px; }
.rx-u-cta-ic { display: inline-flex; width: 76px; height: 76px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--primary-soft); color: var(--primary-strong); }
.rx-u-cta-title { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.rx-u-cta-text { font-size: 14.5px; color: var(--text-body); line-height: 1.6; margin: 0 0 20px; }
.rx-u-cta .rx-lock-back { display: block; margin-top: 16px; }
.rx-u-resp-mat { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--primary-strong); background: var(--primary-soft); padding: 2px 9px; border-radius: var(--radius-pill); vertical-align: middle; }
.rx-u-resp-tempo { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--data-amber); white-space: nowrap; }
.rx-u-press { display: flex; flex-direction: column; gap: 10px; }
.rx-u-press-row { display: grid; grid-template-columns: 1fr 120px 64px 78px; align-items: center; gap: 12px; }
.rx-u-press-nome { font-size: 13px; color: var(--text-body); }
.rx-u-press-tempo { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.rx-u-press-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; border: 1px solid; border-radius: var(--radius-pill); padding: 3px 0; text-align: center; }
.rx-u-press-hint { margin: 14px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* Cruzamento confiança × acerto (duas barras por matéria) */
.rx-cross { display: flex; flex-direction: column; }
.rx-cross-row { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 7px; }
.rx-cross-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rx-cross-nome { font-size: 14px; font-weight: 600; color: var(--text); }
.rx-cross-metric { display: flex; align-items: center; gap: 10px; }
.rx-cross-mlabel { flex: 0 0 70px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.rx-cross-bar { flex: 1; height: 9px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.rx-cross-bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.rx-cross-mval { flex: 0 0 42px; text-align: right; font-size: 12.5px; font-weight: 800; }
.rx-cross-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; border: 1px solid; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

/* Gráfico de barras sobrepostas: confiança × acerto na mesma escala (0–100%) */
.rx-ob-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: var(--text-muted); }
.rx-ob-legend span { display: inline-flex; align-items: center; gap: 7px; }
.rx-ob-sw { width: 22px; height: 11px; border-radius: 3px; display: inline-block; }
.rx-ob-sw-conf { background: rgba(110,240,192,.28); border: 1px solid rgba(110,240,192,.85); }
.rx-ob-sw-acc { background: #43C59E; }
/* Gráfico vertical: colunas com confiança × acerto sobrepostas */
.rx-vb { display: flex; gap: 8px; }
.rx-vb-yaxis { flex: 0 0 38px; height: 240px; display: flex; flex-direction: column;
  justify-content: space-between; text-align: right; font-size: 10.5px; color: var(--text-muted); padding-top: 2px; }
.rx-vb-scroll { flex: 1; overflow-x: auto; padding-bottom: 4px; }
.rx-vb-plot { position: relative; height: 240px; margin-bottom: 96px; display: flex;
  align-items: flex-end; gap: 10px; padding: 0 4px;
  border-left: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.rx-vb-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.rx-vb-grid i { display: block; height: 1px; background: rgba(255,255,255,.06); }
.rx-vb-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; outline: none; }
.rx-vb-bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  border-radius: 5px 5px 0 0; transition: height .5s ease; }
.rx-vb-conf { width: 62%; max-width: 58px; background: rgba(110,240,192,.26); border: 1px solid rgba(110,240,192,.6); border-bottom: 0; z-index: 1; }
.rx-vb-acc { width: 34%; max-width: 32px; box-shadow: 0 -1px 4px rgba(0,0,0,.3); z-index: 2; }
.rx-vb-xlabel { position: absolute; top: calc(100% + 8px); left: 50%; transform-origin: top left;
  transform: translateX(-2px) rotate(40deg); font-size: 10.5px; color: var(--text-muted);
  white-space: nowrap; max-width: 130px; }
.rx-vb-tip { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px);
  display: none; flex-direction: column; gap: 2px; z-index: 5; width: max-content; max-width: 220px;
  padding: 8px 11px; background: #0c1626; border: 1px solid rgba(255,255,255,.14); border-radius: 9px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 12px; }
.rx-vb-tip strong { font-size: 12.5px; color: var(--text); margin-bottom: 2px; }
.rx-vb-col:hover .rx-vb-tip, .rx-vb-col:focus .rx-vb-tip { display: flex; }

/* Entrada do Raio-X Pessoal: botão "Abrir meu Raio-X" + loading */
.rxp-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; text-align: center; padding: 20px; }
.rxp-gate[hidden] { display: none; }
.rxp-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; }
.rxp-intro[hidden] { display: none; }
.rxp-intro-ic { width: 72px; height: 72px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(110,240,192,.12); color: #9bd0ff; border: 1px solid rgba(110,240,192,.18); }
.rxp-intro-title { font-size: 22px; font-weight: 800; color: var(--text); margin: 4px 0 0; }
.rxp-intro-sub { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.rxp-intro-btn { margin-top: 10px; }
.rxp-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 420px; }
.rxp-loading[hidden] { display: none; }
.rxp-spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(110,240,192,.2); border-top-color: #6ff0c0; animation: rxp-spin .8s linear infinite; }
@keyframes rxp-spin { to { transform: rotate(360deg); } }
.rxp-load-msg { font-size: 16px; font-weight: 700; color: #eaf3ff; }
.rxp-load-bar { width: 240px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.rxp-load-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6ff0c0, #43c59e); transition: width .12s linear; }
#rxpContent[hidden] { display: none; }

/* Ritmo × ENARE */
.rx-ritmo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rx-ritmo-num { font-size: 32px; font-weight: 800; color: var(--text); }
.rx-ritmo-lbl { font-size: 12.5px; color: var(--text-muted); margin-left: 8px; }
.rx-ritmo-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border: 1px solid; border-radius: 999px; padding: 3px 11px; flex-shrink: 0; }
.rx-ritmo-bar { height: 12px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.rx-ritmo-bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.rx-ritmo-scale { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }

/* Ritmo × ENARE — comparação "VS" (Sua performance × ENARE) */
.rx-ritmo2-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0 16px; }
.rx-ritmo2-side { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px 14px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.rx-ritmo2-you { border-color: var(--rc); box-shadow: 0 14px 36px -18px var(--rc); }
.rx-ritmo2-you::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--rc); }
.rx-ritmo2-side-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.rx-ritmo2-time { font-size: 30px; font-weight: 800; line-height: 1; color: var(--text); letter-spacing: -.01em; }
.rx-ritmo2-you .rx-ritmo2-time { color: var(--rc); }
.rx-ritmo2-sub { font-size: 11px; color: var(--text-muted); }
.rx-ritmo2-badge { margin-top: 3px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; border: 1px solid; border-radius: 999px; padding: 4px 12px; }
.rx-ritmo2-you .rx-ritmo2-badge { color: var(--rc); border-color: var(--rc); }
.rx-ritmo2-badge-enare { color: var(--text-muted); border-color: var(--line); }
.rx-ritmo2-x { font-size: 20px; font-weight: 800; color: var(--text-muted); opacity: .5; }
.rx-ritmo2-msg { display: flex; align-items: center; gap: 9px; justify-content: center; text-align: left; margin: 0;
  font-size: 13px; color: var(--text-body); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rx-ritmo2-msg svg { color: #FBB03B; flex-shrink: 0; }
.sim-enviado-ritmo { max-width: 540px; margin: 28px auto 0; }
@media (max-width: 420px) {
  .rx-ritmo2-side { padding: 16px 8px 14px; }
  .rx-ritmo2-time { font-size: 24px; }
  .rx-ritmo2-vs { gap: 6px; }
}

/* Veredito geral do cruzamento */
.rx-geral { display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin: 0 0 18px; border-radius: 14px; border: 1px solid; background: rgba(255,255,255,.03); }
.rx-geral-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; align-items: center; justify-content: center; }
.rx-geral-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rx-geral-body strong { font-size: 15px; }
.rx-geral-body span { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* Cards de resultado de prova (linkam p/ página) */
.rx-provacard { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.rx-provacard:hover { border-color: rgba(110,240,192,.5); }
.rx-provacard-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; align-items: center; justify-content: center; background: rgba(110,240,192,.14); color: #9bd0ff; }
.rx-provacard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rx-provacard-body strong { font-size: 15px; }
.rx-provacard-body span { font-size: 12.5px; color: var(--text-muted); }
.rx-provacard-cta { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--primary-strong); }
.rx-u-resp-mark { font-weight: 800; font-size: 12px; margin-left: 8px; }

/* Página de RESULTADO da prova (respostas + gabarito) */
.rxr-score { display: flex; align-items: center; gap: 16px; background: rgba(10,20,35,.7); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 18px; }
.rxr-score-pct { font-size: 42px; font-weight: 800; line-height: 1; }
.rxr-score-body { display: flex; flex-direction: column; gap: 2px; }
.rxr-score-body strong { font-size: 16px; }
.rxr-score-body span { font-size: 13px; color: var(--text-muted); }
.rxr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rxr-q { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 14px; padding: 18px; }
.rxr-q.is-ok { border-left-color: #43C59E; }
.rxr-q.is-err { border-left-color: #E5484D; }
.rxr-q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rxr-q-num { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.rxr-q-mat { font-size: 11px; font-weight: 700; color: #9bd0ff; background: rgba(110,240,192,.12); border-radius: 999px; padding: 2px 9px; }
.rxr-q-time { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.rxr-q-verdict { margin-left: auto; font-size: 12.5px; font-weight: 800; }
.rxr-q-verdict.ok { color: #43C59E; } .rxr-q-verdict.err { color: #E5484D; }
.rxr-q-en { font-size: 14.5px; font-weight: 600; line-height: 1.5; margin: 0 0 12px; }
.rxr-opts { display: flex; flex-direction: column; gap: 7px; }
.rxr-opt { font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 8px; }
.rxr-opt strong { flex-shrink: 0; }
.rxr-opt.is-correct { border-color: rgba(67,197,158,.55); background: rgba(67,197,158,.10); }
.rxr-opt.is-wrong { border-color: rgba(229,72,77,.55); background: rgba(229,72,77,.10); }
.rxr-opt.is-mine { border-color: rgba(110,240,192,.5); background: rgba(110,240,192,.08); }
.rxr-opt-tags { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; align-self: center; }
.rxr-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.rxr-tag.ok { color: #04221a; background: #43C59E; }
.rxr-tag.mine { color: var(--text); background: rgba(255,255,255,.14); }
.rxr-blank { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 0; }
@media (max-width: 720px) {
  .rx-u-press-row { grid-template-columns: 1fr 90px 52px 70px; gap: 8px; }
}

/* — Raio-X da prova — */

/* Quadro de investigação com badges nas folhas */
.rx-quadro { padding: 0; overflow: hidden; }
.rx-quadro-img { position: relative; width: 100%; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center; }
.rx-leaf { position: absolute; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  background: rgba(8,14,24,.82); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: default;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.rx-leaf::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; transition: transform .15s ease; }
.rx-leaf-alta::before  { background: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.3); }
.rx-leaf-media::before { background: #F0A53C; box-shadow: 0 0 0 3px rgba(240,165,60,.28); }
.rx-leaf-baixa::before { background: #9fb2cc; box-shadow: 0 0 0 3px rgba(159,178,204,.2); }
.rx-leaf-alta  { border-color: rgba(229,72,77,.6); }
/* média e baixa: só o pino (sem rótulo) — folhas menores */
.rx-leaf-media, .rx-leaf-baixa { padding: 5px; gap: 0; }
.rx-leaf-baixa::before { width: 7px; height: 7px; }
.rx-leaf:hover, .rx-leaf:focus { z-index: 6; outline: none; }
.rx-leaf:hover::before { transform: scale(1.18); }
.rx-leaf-tip { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  display: none; flex-direction: column; gap: 3px; width: max-content; max-width: 220px; text-align: left;
  padding: 9px 12px; background: #0c1626; border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.6); z-index: 8; }
.rx-leaf-flip .rx-leaf-tip { bottom: auto; top: calc(100% + 9px); }
.rx-leaf-tip strong { color: #fff; font-size: 12.5px; font-weight: 700; white-space: normal; }
.rx-leaf-niv { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.rx-leaf-niv-alta { color: #ff6b6f; } .rx-leaf-niv-media { color: #F0A53C; } .rx-leaf-niv-baixa { color: #9fb2cc; }
.rx-leaf-pct { font-size: 11px; color: var(--text-muted); }
.rx-leaf:hover .rx-leaf-tip, .rx-leaf:focus .rx-leaf-tip { display: flex; }
.rx-quadro-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px;
  font-size: 12px; color: var(--text-muted); }
.rx-quadro-cap span { display: inline-flex; align-items: center; gap: 6px; }
.rx-quadro-cap small { opacity: .75; }
.rx-quadro-cap em { font-style: normal; margin-left: auto; opacity: .8; }
.rx-cap-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rx-cap-dot.is-alta { background: #E5484D; } .rx-cap-dot.is-media { background: #F0A53C; } .rx-cap-dot.is-baixa { background: #9fb2cc; }
@media (max-width: 560px) {
  .rx-leaf { font-size: 10px; padding: 3px 7px; }
  .rx-leaf-lbl { display: none; }            /* no celular vira só pino, evita poluir */
  .rx-leaf-alta { padding: 5px; gap: 0; }
  .rx-quadro-cap em { margin-left: 0; flex-basis: 100%; }
}

.rx-p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.rx-p-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; text-align: center; }
.rx-p-stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.rx-p-stat-lbl { display: block; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.rx-p-dist { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.rx-p-dist-chip { font-size: 12px; font-weight: 700; color: #fff; border: 1px solid; border-radius: var(--radius-pill); padding: 5px 13px; }
.rx-p-dist-note { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

.rx-p-list { display: flex; flex-direction: column; gap: 10px; }
.rx-p-mat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.rx-p-mat-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.rx-p-mat-head::-webkit-details-marker { display: none; }
.rx-p-mat-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rx-p-mat-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-p-mat-nome { font-size: 14.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rx-p-mat-flag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--data-green); background: var(--ok-bg); padding: 2px 8px; border-radius: var(--radius-pill); }
.rx-p-mat-bar { height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,.07); overflow: hidden; max-width: 320px; }
.rx-p-mat-bar i { display: block; height: 100%; border-radius: inherit; }
.rx-p-mat-pct { flex-shrink: 0; text-align: right; font-size: 16px; font-weight: 800; color: var(--text); }
.rx-p-mat-pct small { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.rx-p-sub-list { margin: 0; padding: 0 18px 16px; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rx-p-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: rgba(255,255,255,.03); border-radius: var(--radius-sm); }
.rx-p-sub-nome { font-size: 13px; color: var(--text-body); }
.rx-p-sub-inc { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff; border: 1px solid; border-radius: var(--radius-pill); padding: 3px 10px; }

/* Top 5 / Principais / Secundárias (sem %) */
.rx-p-stat-text { font-size: 15px; line-height: 1.25; }
.rx-p-section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text); margin: 28px 0 12px; }
.rx-p-section-title svg { color: var(--data-amber); }
.rx-p-section-muted { color: var(--text-muted); }
.rx-p-section-muted svg { color: var(--text-muted); }
.rx-p-mat-nome { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.rx-p-mat-count { flex-shrink: 0; font-size: 12px; color: var(--text-muted); }
.rx-p-mat-caret { flex-shrink: 0; color: var(--text-muted); font-size: 12px; transition: transform .2s; }
.rx-p-mat[open] .rx-p-mat-caret { transform: rotate(180deg); }
/* Bordas em escala de calor (quanto mais cai, mais quente) */
.rx-p-mat.is-top { border-width: 1.5px; }
.rx-p-top-1 { border-color: #E5484D; }
.rx-p-top-2 { border-color: #FF6B3D; }
.rx-p-top-3 { border-color: #FF7A45; }
.rx-p-top-4 { border-color: #FB9D3B; }
.rx-p-top-5 { border-color: #F5C518; }
.rx-p-rank {
  flex-shrink: 0; min-width: 58px; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  color: #0f1b2d; border-radius: var(--radius-pill); padding: 4px 10px;
  background: var(--primary-strong);
}
.rx-p-rank-1 { background: linear-gradient(135deg, #FFD86B, #F5B400); }
.rx-p-rank-2 { background: linear-gradient(135deg, #E6EDF5, #AEBED2); }
.rx-p-rank-3 { background: linear-gradient(135deg, #F0B68A, #D08348); }
.rx-p-rank-4, .rx-p-rank-5 { background: var(--primary-soft); color: var(--primary-strong); }

@media (max-width: 720px) {
  .rx-reveal-grid, .rx-p-stats { grid-template-columns: 1fr; }
  .rx-u-conf-row { grid-template-columns: 1fr 110px 30px; }
}

/* ============================================================
   Condutor (home) — onboarding · aguardando · Dia 1 ao vivo
   ============================================================ */
.cond { max-width: 860px; margin: 0 auto; }

/* — Progresso do onboarding — */
.cond-prog { margin: 0 0 18px; }
.cond-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); }
.cond-prog-head span { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.cond-prog-bar { height: 9px; border-radius: var(--radius-pill); background: rgba(255,255,255,.07); overflow: hidden; }
.cond-prog-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); transition: width .4s; }

/* — Passos do onboarding — */
.cond-steps { display: flex; flex-direction: column; gap: 12px; }
.cond-step { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; transition: border-color .2s, opacity .2s; }
.cond-step.is-available { border-color: rgba(110,240,192,.34); }
.cond-step.is-locked { opacity: .55; }
.cond-step-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: rgba(255,255,255,.06); color: var(--text-muted); }
.cond-step.is-available .cond-step-num { background: var(--primary-soft); color: var(--primary-strong); }
.cond-step.is-done .cond-step-num { background: var(--ok-bg); color: var(--ok-ink); }
.cond-step-body { flex: 1; min-width: 0; }
.cond-step-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cond-step-title { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0; }
.cond-step-desc { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
.cond-step-action { flex-shrink: 0; }
.cond-step-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ok-ink); }
.cond-step-lock { color: var(--text-muted); }

/* — Aguardando a imersão — */
.cond-wait { text-align: center; background: linear-gradient(135deg, rgba(62,230,165,.12), rgba(155,107,240,.08)); border: 1px solid rgba(110,240,192,.22); border-radius: var(--radius-lg); padding: 40px 32px; }
/* box com prévia do Raio-X de fundo */
.cond-wait-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,7,10,.30) 0%, rgba(5,7,10,.55) 48%, rgba(5,7,10,.80) 100%),
    url(../img/diagnostico-bg.jpg) center top / cover no-repeat;
  border-color: rgba(110,240,192,.30);
  padding: 110px 34px 48px;
}
/* luzes suaves por cima da imagem (atrás do conteúdo) */
.cond-wait-hero::before {
  content: ""; position: absolute; inset: -12%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 15% 4%,  rgba(95,224,184,.22), transparent 70%),
    radial-gradient(42% 46% at 88% 12%, rgba(127,170,255,.20), transparent 72%),
    radial-gradient(52% 50% at 50% 106%, rgba(155,107,240,.16), transparent 72%);
  animation: condGlow 12s ease-in-out infinite alternate;
}
@keyframes condGlow {
  0%   { opacity: .7;  transform: translate3d(0, 0, 0)    scale(1); }
  100% { opacity: 1;   transform: translate3d(0, -2%, 0)  scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .cond-wait-hero::before { animation: none; }
}
.cond-wait-inner { position: relative; z-index: 2; }
.cond-wait-badge { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--ok-bg); color: var(--ok-ink); }
.cond-wait-title { font-size: 22px; font-weight: 800; margin: 0 0 10px; color: var(--text); }
.cond-wait-sub { font-size: 15px; color: var(--text-body); margin: 0 auto 16px; max-width: 560px; line-height: 1.6; }
.cond-raiox-badge { display: inline-block; background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; padding: 1px 9px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(95,224,184,.35); }
.cond-wait-aula { font-size: 14px; color: var(--primary-strong); margin: 0 auto 22px; }
.cond-wait-aula strong { color: #fff; }
.cond-count { display: flex; justify-content: center; gap: 14px; margin: 0 0 20px; }
.cond-count-box { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 18px; min-width: 76px; }
.cond-count-box span { display: block; font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.cond-count-box small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .05em; }
.cond-wait-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); margin: 0; }

.cond-preview { margin-top: 26px; }
.cond-preview-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 12px; }
.cond-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cond-preview-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.cond-preview-ic { display: inline-flex; width: 34px; height: 34px; border-radius: var(--radius-sm); align-items: center; justify-content: center; background: rgba(255,255,255,.05); color: var(--text-muted); flex-shrink: 0; }
.cond-preview-nome { font-size: 13px; font-weight: 600; color: var(--text-body); }

/* — Dia 1 ao vivo — */
.cond-live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--data-red); margin-left: 6px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(242,92,92,.6); animation: condPulse 1.8s infinite; }
@keyframes condPulse { 0% { box-shadow: 0 0 0 0 rgba(242,92,92,.55); } 70% { box-shadow: 0 0 0 9px rgba(242,92,92,0); } 100% { box-shadow: 0 0 0 0 rgba(242,92,92,0); } }

.cond-flash { display: flex; align-items: center; gap: 16px; text-decoration: none; background: linear-gradient(135deg, rgba(62,230,165,.20), rgba(110,240,192,.10)); border: 1px solid var(--primary); border-radius: var(--radius-md); padding: 18px 20px; margin: 0 0 18px; box-shadow: 0 0 0 0 rgba(62,230,165,.4); animation: condFlash 2.2s ease-in-out infinite; }
@keyframes condFlash { 0%,100% { box-shadow: 0 0 0 0 rgba(62,230,165,.0); } 50% { box-shadow: 0 0 26px 0 rgba(62,230,165,.25); } }

/* Aviso de onboarding pendente na tela do Dia 1 */
.cond-onb-pend { background: rgba(240,165,60,.1); border: 1px solid rgba(240,165,60,.4); border-radius: var(--radius-md); padding: 16px 18px; margin: 0 0 18px; }
.cond-onb-pend-hd { display: flex; gap: 12px; align-items: flex-start; }
.cond-onb-pend-ic { flex-shrink: 0; color: #ffb020; margin-top: 2px; }
.cond-onb-pend-txt strong { display: block; font-size: 15px; color: #ffd9a3; margin-bottom: 3px; }
.cond-onb-pend-txt span { font-size: 13px; color: #d6c3a8; line-height: 1.5; }
.cond-onb-pend-txt strong + span strong, .cond-onb-pend-txt span strong { color: #ffe6c2; }
.cond-onb-pend-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cond-onb-pend-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.04); border-radius: 9px; padding: 9px 12px; }
.cond-onb-pend-list li.is-locked { opacity: .6; }
.cond-onb-pend-step { font-size: 13.5px; font-weight: 600; color: #eaf2ff; }
.cond-onb-pend-wait { font-size: 12px; color: #8aa0bd; display: inline-flex; align-items: center; gap: 5px; }

/* Tela do Dia 2/3: contador + ao vivo + recap do Dia 1 */
.cond-d2-hero { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; margin: 0 0 18px; }
.cond-d2-pre, .cond-d2-live { display: flex; flex-direction: column; align-items: center; }
.cond-d2-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6ff0c0; }
.cond-d2-title { font-size: clamp(19px, 3.4vw, 28px); font-weight: 800; color: #eaf6ff; margin: 10px 0 18px; }
.cond-d2-hero .cond-count { justify-content: center; }
.cond-d2-live { text-decoration: none; gap: 14px; }
.cond-d2-live-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff5a5f; animation: condD2Pulse 1.4s ease-in-out infinite; }
@keyframes condD2Pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,90,95,.5); } 50% { box-shadow: 0 0 0 9px rgba(255,90,95,0); } }
/* Card: contador para a Aula 3 (intervalo entre as aulas) — centralizado */
.cond-aula3 { text-align: center; background: linear-gradient(135deg, rgba(62,230,165,.16), rgba(110,240,192,.06)); border: 1px solid rgba(110,240,192,.35); border-radius: var(--radius-lg); padding: 26px 22px; margin: 14px 0 0; }
.cond-aula3-title { display: block; font-size: clamp(18px, 3vw, 23px); font-weight: 800; color: #eaf6ff; line-height: 1.3; }
.cond-aula3-faltam { margin: 18px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6ff0c0; }
.cond-aula3-boxes { display: flex; justify-content: center; gap: 10px; }
.cond-aula3-box { min-width: 64px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cond-aula3-box span { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cond-aula3-box small { font-size: 11px; color: #9fb3cc; text-transform: uppercase; letter-spacing: .03em; }
.cond-aula3-live { margin: 18px 0; font-size: 19px; font-weight: 800; color: #ff8b8f; }
.cond-aula3-hint { margin: 20px 0 10px; font-size: 14px; color: #c4d4e8; }
.cond-aula3-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 12px 26px; }
.cond-d2-live-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: #6ff0c0; }
.cond-d2-live:hover .cond-d2-live-cta { color: #aee4ff; }
.cond-d1-recap { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); margin: 4px 0 0; overflow: hidden; }
.cond-d1-recap-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; padding: 14px 16px; font-size: 14px; font-weight: 700; color: #cdd9ea; }
.cond-d1-recap-sum::-webkit-details-marker { display: none; }
.cond-d1-recap-sum > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.cond-d1-recap-chev { color: #6f87a8; transition: transform .2s; }
.cond-d1-recap[open] .cond-d1-recap-chev { transform: rotate(180deg); }
.cond-d1-recap .cond-roteiro { padding: 0 16px 16px; }
.cond-flash-ic { flex-shrink: 0; display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(110,240,192,.18); color: var(--primary-strong); }
.cond-flash-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cond-flash-body strong { font-size: 15.5px; color: var(--text); }
.cond-flash-body span { font-size: 13px; color: var(--text-body); }
.cond-flash-cta { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--primary-strong); }

.cond-roteiro { display: flex; flex-direction: column; gap: 11px; }
.cond-card { display: flex; align-items: center; gap: 15px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; transition: transform .18s, border-color .18s, background .18s; }
.cond-card.is-on:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--surface-2); }
.cond-card.is-locked { opacity: .5; }
.cond-card.is-novo { border-color: rgba(110,240,192,.5); }
.cond-card-ic { flex-shrink: 0; display: inline-flex; width: 42px; height: 42px; border-radius: var(--radius-sm); align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-strong); }
.cond-card.is-locked .cond-card-ic { background: rgba(255,255,255,.05); color: var(--text-muted); }
.cond-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cond-card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.cond-card-desc { font-size: 13px; color: var(--text-muted); }
.cond-card-tag { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: var(--primary-strong); }
.cond-card-tag.is-feito { color: var(--ok-ink); display: inline-flex; align-items: center; gap: 5px; }

/* — Acessos rápidos — */
.cond-quick { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.cond-quick-btn { display: inline-flex; align-items: center; gap: 8px; }
.cond-quick-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.cond-quick-link:hover { color: var(--primary-strong); }

@media (max-width: 720px) {
  .cond-preview-grid { grid-template-columns: 1fr; }
  .cond-count { gap: 10px; }
  .cond-step { flex-wrap: wrap; }
}

/* ============================================================
   Seu Porquê — 3 perguntas guiadas
   ============================================================ */
.pq-card { max-width: 680px; margin: 0 auto; }
.pq-saved { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; display: flex; align-items: center; gap: 7px; }
.pq-form { display: flex; flex-direction: column; gap: 22px; }
.pq-q { display: flex; gap: 14px; }
.pq-q-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--primary-soft); color: var(--primary-strong); }
.pq-q-final .pq-q-num { background: rgba(242,71,107,.16); color: #ff9ab0; }
.pq-q-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.pq-q-prompt { font-size: 14.5px; line-height: 1.55; color: var(--text-body); }
.pq-q-prompt strong { color: var(--text); }
.pq-q-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--primary-strong); background: var(--primary-soft); padding: 4px 11px; border-radius: var(--radius-pill); }
.pq-q-final { border-top: 1px solid var(--line); padding-top: 22px; }

/* Mural — botões "Voltar para a central" */
.mural-back-top { margin: 0 0 16px; }
.mural-back-bottom { display: flex; justify-content: center; margin: 32px 0 8px; }

/* Mural — estado "ainda não liberado" */
.mural-locked p { font-size: 16.5px; color: var(--text); line-height: 1.6; max-width: 440px; margin: 0 auto 24px; }

/* Onboarding — pergunta tipo select (dropdown) */
.ob-select { width: 100%; max-width: 560px; display: block; cursor: pointer; }
.ob-select option { color: #0f1b2d; background: #fff; }

/* Onboarding — foto de identificação */
.ob-foto { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ob-foto-preview {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-muted);
  overflow: hidden;
}
.ob-foto-preview img { width: 100%; height: 100%; object-fit: cover; }
.ob-foto-btn { cursor: pointer; }
.ob-foto-hint { font-size: 12px; color: var(--text-muted); flex-basis: 100%; }
.ob-foto-obs { font-size: 13px; color: var(--text-body); margin: -2px 0 14px; }
.ob-node-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary-strong); margin-top: 6px; font-weight: 600; }

/* ── Prova de nivelamento — wizard questão a questão ── */
.qz-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.qz-pill { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text-muted); font-weight: 800; font-size: 14px;
  cursor: pointer; transition: transform .12s, box-shadow .12s; }
.qz-pill:hover:not(:disabled) { transform: translateY(-1px); }
.qz-pill:disabled { cursor: not-allowed; }
.qz-pill.is-done { background: var(--ok-bg); color: var(--ok-ink); border-color: rgba(95,224,184,.4); }
.qz-pill.is-current { background: rgba(240,165,60,.20); color: #f0a53c; border-color: rgba(240,165,60,.55); box-shadow: 0 0 0 2px rgba(240,165,60,.25); }
.qz-pill.is-current-todo { background: rgba(242,92,92,.20); color: #ff8a8a; border-color: rgba(242,92,92,.55); box-shadow: 0 0 0 2px rgba(242,92,92,.22); }
.qz-pill.is-todo { background: rgba(255,255,255,.05); color: var(--text-muted); }
.qz-pill.is-locked { opacity: .45; }
.qz-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 16px; font-size: 12px; color: var(--text-muted); }
.qz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qz-key { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.qz-key.is-done { background: #5fe0b8; }
.qz-key.is-current { background: #f0a53c; }
.qz-key.is-current-todo { background: #ff8a8a; }
.qz-key.is-todo { background: rgba(255,255,255,.18); }
.qz-qnum { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-strong); margin-bottom: 8px; }
.qz-en { font-weight: 600; font-size: 16px; margin: 0 0 14px; line-height: 1.5; }
.qz-warn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #ff8a8a; margin: 12px 0 0; }
.qz-warn[hidden] { display: none; }   /* o aviso só aparece quando o JS mostra */
.qz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.qz-actions-right { display: flex; gap: 10px; }
#qzFinish:disabled { background: rgba(255,255,255,.08); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.qz-exit { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--text-muted); text-decoration: none; }
.qz-exit:hover { text-decoration: underline; }

/* ── Toast de prova social (notificação flutuante) ── */
.sproof { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 330px;
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  background: rgba(10,20,35,.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(110,240,192,.22); border-radius: 14px; box-shadow: var(--shadow-card);
  transform: translateY(18px); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.sproof.is-on { transform: translateY(0); opacity: 1; }
.sproof[hidden] { display: none; }   /* escondido de verdade: sem clique-fantasma no canto */
.sproof-ic { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok-ink); }
.sproof-text { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-body); }
.sproof-text strong { color: var(--text); }
.sproof-x { background: none; border: 0; color: var(--text-muted); font-size: 20px; line-height: 1;
  cursor: pointer; padding: 0 2px; flex-shrink: 0; align-self: flex-start; }
@media (max-width: 600px) { .sproof { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ── Vitrine de participantes (tela de aguardando) ── */
.cond-people { margin: 28px auto 0; max-width: 720px; text-align: center; }
.cond-people-title { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text-muted); margin: 0 0 16px; }
.cond-people-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cond-person { aspect-ratio: 1; }
.cond-person img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(110,240,192,.25); display: block; }
.cond-person.is-hidden { display: none; }
.cond-people-more { margin-top: 18px; }
@media (max-width: 600px) { .cond-people-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; } }

/* ── Ações da tela de aguardando (check-in + lembrete) ── */
.cond-actions { max-width: 720px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cond-act { display: flex; align-items: center; gap: 13px; text-align: left; text-decoration: none;
  background: rgba(10,20,35,.7); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); transition: border-color .15s; }
.cond-act--live:hover { border-color: rgba(110,240,192,.5); }
.cond-act-ic { display: inline-flex; width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; align-items: center; justify-content: center; background: rgba(110,240,192,.14); color: #9bd0ff; }
.cond-act--cal .cond-act-ic { background: var(--ok-bg); color: var(--ok-ink); }
.cond-act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cond-act-body strong { font-size: 14.5px; }
.cond-act-body > span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.cond-act-cta { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--primary-strong); }
.cond-cal-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; }
.cond-cal-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: #9bd0ff; text-decoration: none; }
.cond-cal-links a:hover { text-decoration: underline; }
@media (max-width: 600px) { .cond-actions { grid-template-columns: 1fr; } }

/* ── Celebração de conclusão do onboarding (efeitos por cima; card intacto) ── */
@property --celAng { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --celCol { syntax: "<color>"; inherits: false; initial-value: #ff5c5c; }

.ob-trail.is-celebrating::after { background: linear-gradient(180deg, #3fe08c, #43C59E); box-shadow: 0 0 18px rgba(63,224,140,.6); }

.ob-node--cel .ob-node-card { overflow: hidden; }
.ob-node--cel .ob-node-dot i { position: absolute; font-style: normal; transition: opacity .3s; }
.ob-node--cel .ob-node-dot .dk { opacity: 0; color: #04221a; }
.ob-node--cel.cel-done .ob-node-dot { background: #43C59E; border-color: #43C59E; }
.ob-node--cel.cel-done .ob-node-dot .dn { opacity: 0; }
.ob-node--cel.cel-done .ob-node-dot .dk { opacity: 1; }

.cel-ring { position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 2.5px; opacity: 0; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--celAng), transparent 0 60%, var(--celCol) 80%, #fff 88%, var(--celCol) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.ob-node--cel.cel-charging .cel-ring { opacity: 1; animation: celCharge 1.1s cubic-bezier(.55,0,.85,.3) forwards; }
@keyframes celCharge { 0% { --celAng: 0deg; --celCol: #ff5c5c; } 55% { --celCol: #f0a53c; } 100% { --celAng: 1440deg; --celCol: #3fe08c; } }

.cel-flash { position: absolute; inset: 0; opacity: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(63,224,140,.5), transparent 60%); }
.cel-sweep { position: absolute; top: 0; bottom: 0; width: 60%; left: -70%; opacity: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(120,255,190,.8), transparent); filter: blur(2px); transform: skewX(-18deg); }
.cel-badge { position: absolute; top: 14px; right: 14px; opacity: 0; transform: scale(.4); z-index: 4;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: #06150d;
  background: linear-gradient(135deg, #5fe0b8, #3fe08c); padding: 7px 12px; border-radius: 999px; box-shadow: 0 6px 22px rgba(63,224,140,.45); }

.ob-node--cel.cel-done .ob-node-card { border-color: rgba(63,224,140,.6); box-shadow: 0 0 0 1px rgba(63,224,140,.35), 0 14px 40px rgba(63,224,140,.2); }
.ob-node--cel.cel-done .cel-flash { animation: celFlash .7s ease-out; }
.ob-node--cel.cel-done .cel-sweep { animation: celSweep .7s ease-out .04s; }
.ob-node--cel.cel-done .cel-badge { animation: celStamp .55s cubic-bezier(.2,1.4,.3,1) .12s forwards; }
@keyframes celFlash { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes celSweep { 0% { left: -70%; opacity: 0; } 20% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
@keyframes celStamp { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }

/* ── Tela de aguardando "montando" (vinda da celebração: ?montar=1) ── */
.cond-wait-hero.is-montar .cond-wait-badge { animation: condPop .6s cubic-bezier(.2,1.5,.3,1) .1s both; }
.cond-wait-hero.is-montar .cond-wait-title { animation: condRise .5s ease .32s both; }
.cond-wait-hero.is-montar .cond-wait-sub { animation: condRise .5s ease .46s both; }
.cond-wait-hero.is-montar .cond-count-box { animation: condFlipIn .55s cubic-bezier(.2,1.3,.3,1) both; }
.cond-wait-hero.is-montar .cond-count-box:nth-child(1) { animation-delay: .60s; }
.cond-wait-hero.is-montar .cond-count-box:nth-child(2) { animation-delay: .70s; }
.cond-wait-hero.is-montar .cond-count-box:nth-child(3) { animation-delay: .80s; }
.cond-wait-hero.is-montar .cond-count-box:nth-child(4) { animation-delay: .90s; }
.cond-wait-hero.is-montar .cond-wait-hint { animation: condRise .5s ease 1s both; }
@keyframes condPop { 0% { opacity: 0; transform: scale(0) rotate(-30deg); } 100% { opacity: 1; transform: none; } }
@keyframes condRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes condFlipIn { from { opacity: 0; transform: translateY(14px) rotateX(-60deg); } to { opacity: 1; transform: none; } }

/* loading de transição (celebração → tela da imersão) */
.cel-loading { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(120% 90% at 50% -10%, #122742 0%, #0c1a2e 42%, #060d18 100%);
  opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.cel-loading.is-on { opacity: 1; pointer-events: auto; }
.cel-spinner { width: 62px; height: 62px; border-radius: 50%; border: 4px solid rgba(110,240,192,.16); border-top-color: #43C59E; animation: celSpin .8s linear infinite; }
@keyframes celSpin { to { transform: rotate(360deg); } }
.cel-loading p { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }

/* Aulas introdutórias — vídeos */
.aulas-list { display: flex; flex-direction: column; gap: 18px; }
.aula-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.aula-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aula-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-strong); font-weight: 800; font-size: 14px; }
.aula-titulo { font-size: 16px; font-weight: 700; color: var(--text); }
.aula-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.aula-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aulas-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.aulas-done { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ok-ink); }
.aula-status { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ok-ink); }
.aula-actions { margin-top: 14px; }
.aula-locknote { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 6px 0; }
.aula-card.is-locked { opacity: .7; }
.aula-card.is-locked .aula-num { background: rgba(255,255,255,.06); color: var(--text-muted); }
.aula-card.is-locked .aula-video, .aula-card.is-locked .aula-actions { display: none; }
.aula-card.is-locked .aula-locknote { display: flex; }
.aula-card.is-done .aula-num { background: var(--ok-bg); color: var(--ok-ink); }
.cond-wait-aulas { margin: 0 0 18px; }

/* Onboarding — combobox com busca (programa / instituição) */
.ob-q { overflow: visible; }           /* não cortar o dropdown */
.combo { position: relative; max-width: 560px; }
.combo-search { width: 100%; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; z-index: 30;
  max-height: 280px; overflow-y: auto;
  background: #0f1f33; border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.combo-opt { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-body); cursor: pointer; }
.combo-opt:hover { background: var(--surface-2); color: var(--text); }
.combo-opt[hidden] { display: none; }
.combo-opt-other { border-top: 1px solid var(--line); margin-top: 4px; color: var(--primary-strong); font-weight: 700; }
.combo-empty { padding: 10px 12px; font-size: 13px; color: var(--text-muted); }

/* ── Pesquisa obrigatória do planejamento (modal bloqueante) ─────────────────
   Prefixo psq- (NÃO usar pq-, que colide com o componente "Seu Porquê"). */
.psq-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(6,12,22,.82); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.psq-modal { width: min(640px, 100%); background: linear-gradient(160deg, #11233f, #0d1a30); border: 1px solid rgba(110,240,192,.22); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.psq-head { padding: 22px 24px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.psq-title { font-size: 19px; font-weight: 800; color: #eaf6ff; margin: 0; }
.psq-sub { font-size: 13px; color: #9fb3cc; margin: 6px 0 0; line-height: 1.5; }
.psq-body { padding: 8px 24px 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(110,240,192,.3) transparent; }
.psq-body::-webkit-scrollbar { width: 9px; }
.psq-body::-webkit-scrollbar-thumb { background: rgba(110,240,192,.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.psq-parte { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6ff0c0; margin: 18px 0 4px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.1); }
.psq-parte:first-child { border-top: 0; padding-top: 0; }
.psq-q { border: 0; margin: 0; padding: 14px 0; min-width: 0; }
.psq-q-label { display: block; font-size: 14.5px; font-weight: 700; color: #eaf2ff; line-height: 1.45; padding: 0; margin-bottom: 10px; }
.psq-opts { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.psq-opt { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; cursor: pointer; font-size: 14px; color: #d7e3f2; transition: border-color .15s, background .15s; }
.psq-opt:hover { border-color: rgba(110,240,192,.4); }
.psq-opt input { accent-color: #3ee6a5; flex-shrink: 0; width: 17px; height: 17px; }
.psq-opt:has(input:checked) { border-color: var(--primary, #3ee6a5); background: rgba(62,230,165,.12); }
.psq-textarea { width: 100%; box-sizing: border-box; margin-top: 8px; min-height: 88px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 13px; color: #eaf2ff; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.psq-textarea:focus { outline: none; border-color: var(--primary, #3ee6a5); }
.psq-open { margin-top: 12px; }
.psq-open.is-hidden { display: none; }
.psq-open-label { display: block; font-size: 13px; font-weight: 600; color: #cdd9ea; }
.psq-foot { padding: 16px 24px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.psq-submit { width: 100%; justify-content: center; font-size: 15px; padding: 13px; }

/* Admin — ranking do simulado (fakes + preview) */
.srk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 760px) { .srk-grid { grid-template-columns: 1fr; } }
.srk-form { display: flex; flex-direction: column; gap: 10px; }
.srk-form input[type=text] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.srk-form-row { display: flex; align-items: center; gap: 16px; }
.srk-form-row label { font-size: 13px; color: var(--text-body); display: inline-flex; align-items: center; gap: 8px; }
.srk-form-row input[type=number] { width: 70px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.srk-check { cursor: pointer; }
.srk-fakes { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.srk-fake { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.srk-fake-pct { font-weight: 800; color: var(--primary-strong); min-width: 42px; }
.srk-fake-nome { flex: 1; color: var(--text); font-size: 14px; }
.srk-del { background: none; border: 0; color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.srk-del:hover { color: #ff6b6b; }
.srk-prev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 540px; overflow-y: auto; }
.srk-prev li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
.srk-prev li:nth-child(odd) { background: rgba(0,0,0,.02); }
.srk-prev li.is-fake .srk-prev-nome { color: #8a4fc0; }
.srk-prev-pos { min-width: 30px; font-weight: 800; color: var(--text-muted); }
.srk-prev-nome { flex: 1; color: var(--text); }
.srk-prev-pct { font-weight: 800; color: var(--text); }

/* Modal/alerta do admin — overlay exibido ao entrar na área logada */
.modal-alerta { position: fixed; inset: 0; z-index: 9000; background: rgba(5,7,10,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
/* Fundo opaco (não usar --surface: é um véu translúcido, feito pra ficar
   SOBRE o --bg-app; num overlay a página apareceria através do modal). */
.modal-alerta-box { position: relative; background: rgba(16,21,27,.97); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.6); margin: auto; overflow: hidden; }
.modal-alerta-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--primary),transparent); opacity: .85; }
/* z-index + fundo escuro próprio: o × costuma cair sobre a imagem do topo,
   e sem isso some em imagens claras. */
.modal-alerta-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: rgba(5,7,10,.55); backdrop-filter: blur(4px); border: 0; border-radius: 50%; font-size: 18px; line-height: 1; color: #fff; cursor: pointer; padding: 0; }
.modal-alerta-x:hover { background: rgba(5,7,10,.8); }
.modal-alerta-img { max-width: 100%; height: auto; border-radius: 11px; display: block; margin: 0 auto 14px; }
.modal-alerta-heading { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--text); margin: 0 0 10px; }
.modal-alerta-body { font-size: 14.5px; line-height: 1.55; color: var(--text-body); white-space: pre-wrap; margin: 0 0 16px; }
.modal-alerta-box > :last-child { margin-bottom: 0; }
/* Verde do tema com texto escuro por cima (mesmo par do .btn-primary). */
.modal-alerta-btn { display: block; width: 100%; box-sizing: border-box; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #04160f; font: inherit; font-weight: 700; text-decoration: none; padding: 13px 18px; border: 0; border-radius: 999px; cursor: pointer; margin-top: 4px; }
.modal-alerta-btn:hover { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); box-shadow: 0 10px 22px rgba(62,230,165,.35); }
@media (max-width: 480px) { .modal-alerta-box { padding: 22px 18px 20px; } .modal-alerta-heading { font-size: 18px; } }

/* ============================================================
   Revisão ENARE — botão flutuante + modal da oferta
   ============================================================ */
/* z-index abaixo do .modal-alerta (9000): um aviso do sistema tem
   prioridade sobre o convite de venda. */
.rev-float { position: fixed; z-index: 8000; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
/* Sem isto o display:flex vence o [hidden] do navegador e o botão aparece
   mesmo com "Não mostrar mais" gravado. Mesmo motivo do .rev-modal[hidden]. */
.rev-float[hidden] { display: none; }
.rev-float-btn { display: flex; align-items: center; gap: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #04160f; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 26px rgba(62,230,165,.34); animation: rev-brilho 2.4s ease-in-out infinite; }
.rev-float-btn:hover { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); transform: translateY(-1px); }
/* Varredura de luz atravessando o botão — o "brilhoso" sem depender de imagem. */
.rev-float-btn { position: relative; overflow: hidden; }
.rev-float-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: rev-varredura 2.8s ease-in-out infinite; }
.rev-float-bang { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%; background: #04160f; color: var(--primary); font-weight: 800; font-size: 13px; line-height: 1; }
.rev-float-label { position: relative; z-index: 1; white-space: nowrap; }
.rev-float-x { align-self: flex-end; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(5,7,10,.7); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: 50%; font-size: 15px; line-height: 1; color: #fff; cursor: pointer; padding: 0; }
.rev-float-x:hover { background: rgba(5,7,10,.9); }
.rev-float-never { background: none; border: 0; padding: 2px 4px; font: inherit; font-size: 11.5px; color: var(--text-body); opacity: .75; text-decoration: underline; cursor: pointer; }
.rev-float-never:hover { opacity: 1; }
@keyframes rev-brilho {
    0%, 100% { box-shadow: 0 10px 26px rgba(62,230,165,.34); }
    50%      { box-shadow: 0 10px 34px rgba(62,230,165,.7); }
}
@keyframes rev-varredura {
    0%       { left: -60%; }
    55%,100% { left: 130%; }
}
/* Quem pediu menos movimento fica só com o botão parado — sem pulso nem varredura. */
@media (prefers-reduced-motion: reduce) {
    .rev-float-btn { animation: none; }
    .rev-float-btn::after { display: none; }
}

/* Modal: mesmo verde-escuro do material de venda, não o cinza dos avisos. */
.rev-modal { position: fixed; inset: 0; z-index: 8500; background: rgba(5,7,10,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.rev-modal[hidden] { display: none; }
.rev-modal-box { position: relative; background: linear-gradient(160deg, #0d3b36, #0a2b2c); color: #fff; border: 1px solid rgba(255,255,255,.10); border-radius: 22px; padding: 30px 26px 26px; width: 100%; max-width: 470px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.6); margin: auto; }
.rev-modal-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: rgba(5,7,10,.45); border: 0; border-radius: 50%; font-size: 18px; line-height: 1; color: #fff; cursor: pointer; padding: 0; }
.rev-modal-x:hover { background: rgba(5,7,10,.75); }
.rev-modal-tag { display: inline-block; background: rgba(255,255,255,.12); color: #e8f6f1; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 7px 15px; border-radius: 999px; margin-bottom: 16px; }
.rev-modal-heading { font-size: 21px; font-weight: 700; line-height: 1.3; color: #fff; margin: 0 0 20px; }
.rev-modal-list { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 13px; }
.rev-modal-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #dceee8; }
.rev-modal-list strong { color: #fff; font-weight: 700; }
.rev-modal-check { flex: 0 0 auto; color: var(--primary); font-weight: 700; }
/* Contorno claro sobre o fundo verde — o botão cheio some no gradiente. */
.rev-modal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #fff; color: #0a2b2c; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; padding: 14px 30px; border-radius: 999px; }
.rev-modal-btn:hover { background: var(--primary); color: #04160f; box-shadow: 0 10px 22px rgba(62,230,165,.35); }
@media (max-width: 480px) {
    .rev-float { right: 12px; bottom: 12px; }
    .rev-float-btn { font-size: 14px; padding: 12px 17px; }
    .rev-modal-box { padding: 26px 18px 22px; }
    .rev-modal-heading { font-size: 19px; }
    .rev-modal-list li { font-size: 14px; }
}
