/* NUAD Meet — folha de estilos construída sobre o design system NUAD/SGTES.
   Tokens em css/tokens/ (cores, tipografia, espaçamento, raios, elevação,
   movimento, semântica). Azul --sgtes-azul é a única cor de ação; verde,
   amarelo e vermelho só carregam estado ou categoria de gráfico. */
@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/radii.css");
@import url("tokens/elevation.css");
@import url("tokens/motion.css");
@import url("tokens/semantic.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; }

@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.container { max-width: 960px; margin: 0 auto; padding: var(--space-6) var(--space-4); }
.container.narrow { max-width: 480px; }
.container.wide { max-width: var(--container-max); }

h1, h2, h3 { font-family: var(--font-display); color: var(--text-heading); letter-spacing: var(--tracking-tight); }
h1 { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); line-height: var(--leading-tight); margin: 0 0 4px; }
h2 { font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--leading-snug); margin: 0 0 var(--space-3); }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-xs); }
.num { font-variant-numeric: tabular-nums; }

/* Rótulo em caixa-alta (campo, sobretítulo, cabeçalho de seção) */
.overline {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Marca NUAD Meet: pontos ascendentes + tipo ─────────────────────────── */
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark .dots { display: flex; align-items: flex-end; gap: 4px; height: 16px; }
.wordmark .dots span:nth-child(1) { width: 7px; height: 7px; border-radius: 50%; background: var(--sgtes-verde); }
.wordmark .dots span:nth-child(2) { width: 7px; height: 10px; border-radius: 4px; background: var(--sgtes-amarelo); }
.wordmark .dots span:nth-child(3) { width: 7px; height: 13px; border-radius: 4px; background: var(--sgtes-vermelho); }
.wordmark .dots span:nth-child(4) { width: 7px; height: 16px; border-radius: 4px; background: var(--sgtes-azul); }
.wordmark .name { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: 20px; color: var(--text-heading); letter-spacing: var(--tracking-tight); }
.wordmark .name b { color: var(--sgtes-azul); font-weight: inherit; }
.wordmark.lg .dots { height: 22px; gap: 5px; }
.wordmark.lg .dots span { width: 9px; }
.wordmark.lg .dots span:nth-child(1) { height: 9px; }
.wordmark.lg .dots span:nth-child(2) { height: 13px; border-radius: 5px; }
.wordmark.lg .dots span:nth-child(3) { height: 17px; border-radius: 5px; }
.wordmark.lg .dots span:nth-child(4) { height: 22px; border-radius: 5px; }
.wordmark.lg .name { font-size: 34px; }

/* ── Cartão ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

/* ── Botões: pílula, azul de ação ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  background: var(--action-primary-bg); color: var(--action-primary-fg);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 13px 24px; font-size: var(--text-md); font-weight: var(--weight-bold);
  cursor: pointer; text-decoration: none;
  transition: var(--transition-interactive);
}
.btn:hover { background: var(--action-primary-bg-hover); color: var(--action-primary-fg); text-decoration: none; }
.btn:active { background: var(--action-primary-bg-active); transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn:disabled { background: var(--action-disabled-bg); color: var(--action-disabled-fg); cursor: not-allowed; }
.btn.secondary { background: var(--action-secondary-bg); color: var(--action-secondary-fg); border-color: var(--action-secondary-border); }
.btn.secondary:hover { background: var(--action-secondary-bg-hover); color: var(--action-secondary-fg); }
.btn.danger { background: var(--red-600); }
.btn.danger:hover { background: var(--red-700); }
.btn.ghost { background: transparent; color: var(--action-ghost-fg); border-color: transparent; }
.btn.ghost:hover { background: var(--action-ghost-bg-hover); color: var(--action-ghost-fg); }
.btn.small { padding: 7px 16px; font-size: var(--text-sm); }
.btn.block { width: 100%; }
.btn.lg { padding: 16px 28px; font-size: 18px; }

/* Botão circular de ícone */
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--action-ghost-fg); font-size: 14px;
  transition: var(--transition-interactive);
}
.icon-btn:hover { background: var(--action-ghost-bg-hover); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.icon-btn.danger { color: var(--red-600); }
.icon-btn.danger:hover { background: var(--red-50); }
.icon-btn.outline { border: 1px solid var(--border-default); }
.icon-btn.big { width: 64px; height: 64px; font-size: 20px; }
.icon-btn.primary { background: var(--action-primary-bg); color: var(--action-primary-fg); }
.icon-btn.primary:hover { background: var(--action-primary-bg-hover); }
.icon-btn:disabled { color: var(--action-disabled-fg); cursor: not-allowed; background: transparent; }

/* ── Formulários ────────────────────────────────────────────────────────── */
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-heading);
  transition: var(--transition-interactive);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--ring-focus); }
label { display: block; margin: var(--space-4) 0 var(--space-2); }
label, .field-label {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
label input[type="checkbox"] { width: auto; margin-right: 8px; }

.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ── Selos ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--text-2xs);
  font-weight: var(--weight-bold); letter-spacing: .06em; text-transform: uppercase;
  background: var(--status-info-bg); color: var(--status-info-fg);
  white-space: nowrap;
}
.badge.gray { background: var(--surface-sunken); color: var(--text-muted); }
.badge.green { background: var(--status-success-bg); color: var(--status-success-fg); }
.badge.code { font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-caps); color: var(--sgtes-azul); background: var(--blue-50); }

/* ── Aviso flutuante ────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-inverse); color: var(--text-inverse);
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--duration-base) var(--ease-standard); z-index: 99;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--red-600); }

/* ── Cabeçalho institucional (participante) ─────────────────────────────── */
.inst-header {
  background: var(--surface-institutional); color: var(--text-inverse);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.inst-header .title {
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inst-header .counter {
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 13px;
  font-variant-numeric: tabular-nums; opacity: .85;
}

/* Rodapé de assinatura */
.inst-footer {
  padding: 16px 24px 20px; text-align: center;
  font-size: var(--text-2xs); color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Pergunta na tela do participante */
.question-title {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: 22px; line-height: 1.25; color: var(--text-heading);
  letter-spacing: var(--tracking-tight); text-wrap: pretty;
  margin: 0;
}

/* ── Opções de resposta (participante) ──────────────────────────────────── */
.option-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 64px; padding: 12px 18px; margin-bottom: 12px;
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background: var(--surface-card); color: var(--text-heading);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition-interactive);
}
.option-btn::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--dot-color, var(--data-1));
}
.option-btn:hover { border-color: var(--border-focus); background: var(--surface-accent); }
.option-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.option-btn.selected { border-color: var(--border-focus); background: var(--surface-accent); color: var(--blue-700); font-weight: var(--weight-bold); }
.option-btn.correct { border-color: var(--status-success-border); background: var(--status-success-bg); }
.option-btn.wrong { border-color: var(--status-danger-border); opacity: .6; }
.option-btn.plain::before { display: none; }
.option-btn:disabled { cursor: default; }

/* ── Escala de avaliação ────────────────────────────────────────────────── */
.rating-row { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.rating-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--border-default); background: var(--surface-card);
  font-family: var(--font-display); font-size: 20px; font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  cursor: pointer; color: var(--text-heading);
  transition: var(--transition-interactive);
}
.rating-btn:hover { border-color: var(--border-focus); background: var(--surface-accent); }
.rating-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.rating-btn.selected { background: var(--action-primary-bg); border-color: var(--action-primary-bg); color: var(--action-primary-fg); font-weight: var(--weight-extrabold); box-shadow: var(--ring-focus); }
.rating-labels { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2); }

/* ── Ordenação (participante) ───────────────────────────────────────────── */
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; margin-bottom: 12px;
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background: var(--surface-card);
  font-weight: var(--weight-semibold); color: var(--text-heading); font-size: 15px;
}
.rank-item .pos {
  font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-md);
  font-variant-numeric: tabular-nums; color: var(--sgtes-azul); min-width: 18px;
}
.rank-item .movers { margin-left: auto; display: flex; gap: 8px; }
.rank-item .movers .icon-btn { width: 44px; height: 44px; border: 1px solid var(--border-default); }

/* ── Barras de resultado ────────────────────────────────────────────────── */
.bar-row { margin-bottom: var(--space-4); }
.bar-label {
  display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px;
  font-family: var(--font-display); font-weight: var(--weight-bold); color: var(--text-heading);
}
.bar-label .value { font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: var(--weight-bold); }
.bar-track { background: var(--surface-sunken); border-radius: var(--radius-pill); height: 28px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: var(--radius-pill); min-width: 4px;
  transform-origin: left;
  animation: barGrow var(--duration-slow) var(--ease-standard) both;
  transition: width var(--duration-slow) var(--ease-standard);
}

/* ── Nuvem de palavras ──────────────────────────────────────────────────── */
.wordcloud {
  display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 14px;
  align-items: center; justify-content: center; align-content: center;
  padding: var(--space-6) 0; min-height: 200px;
  font-family: var(--font-display); font-weight: var(--weight-extrabold); line-height: 1;
  animation: fadeUp var(--duration-slow) var(--ease-standard) both;
}

/* ── Q&A ────────────────────────────────────────────────────────────────── */
.qna-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  background: var(--surface-card);
}
.qna-item.answered { opacity: .55; }
.qna-item .q-text { font-weight: var(--weight-semibold); color: var(--text-heading); }
.qna-votes {
  display: flex; flex-direction: column; align-items: center; min-width: 48px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 6px 4px; cursor: pointer; background: var(--surface-card);
  color: var(--text-muted); font-family: var(--font-display);
  transition: var(--transition-interactive);
}
.qna-votes:hover { border-color: var(--border-focus); background: var(--surface-accent); }
.qna-votes.voted { border-color: var(--border-focus); color: var(--sgtes-azul); background: var(--surface-accent); }
.qna-votes b { font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.qna-votes i { font-size: 11px; }

/* ── Tela do apresentador ───────────────────────────────────────────────── */
.present-shell {
  min-height: 100vh; background: var(--surface-card);
  display: grid; grid-template-columns: 1fr 380px; grid-template-rows: 1fr 88px;
}
.present-main { padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; min-width: 0; overflow: auto; }
.present-kicker {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: var(--text-sm); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted);
}
.present-title {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: clamp(28px, 3.4vw, 52px); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); color: var(--text-heading); text-wrap: pretty;
  margin: 0;
}
.present-results { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 0; }

/* Barras grandes do telão: rótulo à direita · pílula · percentual */
.pbar-row { display: grid; grid-template-columns: minmax(120px, 26%) 1fr 92px; align-items: center; gap: 20px; margin-bottom: 22px; }
.pbar-label { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: clamp(15px, 1.4vw, 22px); color: var(--text-heading); text-align: right; }
.pbar-track { height: clamp(28px, 3.2vw, 44px); background: var(--surface-sunken); border-radius: var(--radius-pill); overflow: hidden; }
.pbar-fill { height: 100%; border-radius: var(--radius-pill); transform-origin: left; animation: barGrow var(--duration-slow) var(--ease-standard) both; transition: width var(--duration-slow) var(--ease-standard); }
.pbar-value { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: clamp(18px, 2vw, 30px); font-variant-numeric: tabular-nums; color: var(--text-heading); }

.present-side {
  grid-row: 1; grid-column: 2;
  border-left: 1px solid var(--border-subtle); background: var(--surface-page);
  padding: 40px 36px; display: flex; flex-direction: column; align-items: center; gap: 28px;
  overflow: auto;
}
.join-code-label { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 13px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.join-code {
  font-family: var(--font-display); font-weight: var(--weight-extrabold);
  font-size: 56px; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--sgtes-azul); line-height: 1;
}
.join-url { font-size: var(--text-sm); color: var(--text-muted); }
.qr-box { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px; }
.qr-box img { display: block; width: 180px; height: 180px; }
.participants-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: auto; }
.participants-stat .n { display: flex; align-items: baseline; gap: 10px; }
.participants-stat .n i { font-size: 18px; color: var(--sgtes-azul); }
.participants-stat .n b { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: 40px; font-variant-numeric: tabular-nums; color: var(--text-heading); }
.participants-stat .lbl { font-size: var(--text-sm); color: var(--text-muted); }

.present-bottom {
  grid-column: 1 / -1; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 24px; padding: 0 48px;
  background: var(--surface-card);
}
.slide-dots { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; }
.slide-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-300); cursor: pointer; transition: var(--transition-interactive); }
.slide-dots span.active { width: 28px; border-radius: var(--radius-pill); background: var(--sgtes-azul); }
.live-indicator { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; }
.live-indicator::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sgtes-verde); }
.live-indicator b { font-variant-numeric: tabular-nums; color: var(--text-heading); }

/* Cronômetro do quiz: anel */
.timer-ring {
  width: 112px; height: 112px; border-radius: 50%; border: 8px solid var(--sgtes-azul);
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--surface-card);
}
.timer-ring b { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: 38px; font-variant-numeric: tabular-nums; color: var(--text-heading); line-height: 1; }
.timer-ring span { font-size: var(--text-xs); color: var(--text-muted); }
.timer-ring.done { border-color: var(--red-500); }

/* Opções do quiz no telão: letra A/B/C/D */
.quiz-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: stretch; }
.quiz-opt {
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background: var(--surface-page);
  display: flex; align-items: center; gap: 20px; padding: 16px 24px; min-height: 84px;
}
.quiz-opt .letter {
  width: 48px; height: 48px; border-radius: var(--radius-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: 24px; color: #fff;
}
.quiz-opt .letter.on-yellow { color: var(--neutral-900); }
.quiz-opt .txt { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: clamp(16px, 1.8vw, 26px); color: var(--text-heading); }
.quiz-opt.correct { border-color: var(--status-success-border); background: var(--status-success-bg); }
.quiz-opt.dim { opacity: .5; }

/* Placar */
.leaderboard { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); width: 100%; }
.leaderboard-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-lg); }
.leaderboard-item .rank { width: 26px; font-weight: var(--weight-extrabold); font-size: var(--text-md); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.leaderboard-item .who { flex: 1; font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-item .pts { font-weight: var(--weight-extrabold); font-size: var(--text-md); font-variant-numeric: tabular-nums; color: var(--text-heading); }
.leaderboard-item.first { background: var(--surface-accent); }
.leaderboard-item.first .rank, .leaderboard-item.first .who, .leaderboard-item.first .pts { color: var(--blue-700); }
.leaderboard-item.first .rank { color: var(--sgtes-azul); }

/* Respostas abertas em cartões */
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.open-grid .card { margin: 0; padding: var(--space-4); animation: fadeUp var(--duration-base) var(--ease-standard) both; }

.big-number { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: 56px; font-variant-numeric: tabular-nums; color: var(--sgtes-azul); text-align: center; line-height: 1.1; }
.big-number .of { font-size: 22px; color: var(--text-muted); font-weight: var(--weight-bold); }

/* Confirmação de resposta enviada (participante) */
.sent-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: var(--space-8); text-align: center; }
.sent-state .check {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--status-success-bg); border: 1px solid var(--status-success-border);
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp var(--duration-base) var(--ease-standard) both;
}
.sent-state .check i { font-size: 36px; color: var(--status-success-fg); }
.sent-state h2 { font-size: 24px; font-weight: var(--weight-extrabold); margin: 0; }
.sent-state p { font-size: 15px; color: var(--text-muted); max-width: 260px; margin: 0; }

/* ── Barra de topo (admin e editor) ─────────────────────────────────────── */
.topbar {
  background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
  padding: 16px 40px; display: flex; align-items: center; gap: 24px;
}
.page-footer { border-top: 1px solid var(--border-subtle); padding: 14px 40px; font-size: var(--text-2xs); color: var(--text-muted); }

/* ── Painel admin ───────────────────────────────────────────────────────── */
.pres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.pres-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.pres-card .name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 18px; color: var(--text-heading); line-height: 1.3; }
.pres-card .meta { display: flex; align-items: center; gap: var(--space-4); font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.pres-card .meta .code { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-md); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-caps); color: var(--sgtes-azul); }
.pres-card .actions { border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); display: flex; align-items: center; gap: 8px; }
.pres-card .actions .spacer { flex: 1; }
.new-card {
  border: 1px dashed var(--border-default); border-radius: var(--radius-lg);
  min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--action-ghost-fg); cursor: pointer; background: transparent;
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 15px;
  transition: var(--transition-interactive);
}
.new-card:hover { background: var(--blue-50); }
.new-card i { font-size: 22px; }

/* ── Editor ─────────────────────────────────────────────────────────────── */
.editor-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-page); }
.editor-body { flex: 1; display: grid; grid-template-columns: 340px 1fr; }
.editor-list { border-right: 1px solid var(--border-subtle); background: var(--surface-card); padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.editor-form { padding: var(--space-8) var(--space-10); max-width: 760px; }

.slide-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  cursor: pointer; margin-bottom: 8px;
  transition: var(--transition-interactive);
}
.slide-list-item:hover { background: var(--surface-page); }
.slide-list-item.active { border-color: var(--border-focus); background: var(--surface-accent); }
.slide-list-item .type-tile {
  width: 34px; height: 34px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.slide-list-item.active .type-tile { background: var(--sgtes-azul); color: #fff; }
.slide-list-item .s-info { flex: 1; min-width: 0; }
.slide-list-item .s-title { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-list-item .s-type { display: block; font-size: var(--text-2xs); color: var(--text-muted); }
.slide-list-item.active .s-title, .slide-list-item.active .s-type { color: var(--blue-700); }
.slide-list-item .s-num { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.slide-list-item .movers { display: flex; flex-direction: column; gap: 2px; }
.slide-list-item .movers button { border: none; background: none; color: var(--neutral-400); cursor: pointer; font-size: 11px; padding: 1px 4px; border-radius: 4px; }
.slide-list-item .movers button:hover { color: var(--sgtes-azul); background: var(--blue-50); }

/* Linha de opção no editor: ponto colorido + campo + remover */
.opt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.opt-row::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--dot-color, var(--data-1)); }
.opt-row input { flex: 1; }

/* Menu de tipos de slide */
.type-menu { position: relative; }
.type-menu .menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; z-index: 10;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 6px;
  display: none;
}
.type-menu .menu.open { display: block; }
.type-menu .menu button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: none; background: none; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm);
  color: var(--text-heading); cursor: pointer; text-align: left;
}
.type-menu .menu button:hover { background: var(--surface-accent); color: var(--blue-700); }
.type-menu .menu button i { width: 20px; text-align: center; color: var(--text-muted); }

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .present-shell { grid-template-columns: 1fr; grid-template-rows: auto auto 88px; }
  .present-side { grid-column: 1; grid-row: 2; border-left: none; border-top: 1px solid var(--border-subtle); }
  .present-main { padding: 24px 20px; }
  .present-bottom { padding: 0 20px; }
  .editor-body { grid-template-columns: 1fr; }
  .editor-list { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .editor-form { padding: var(--space-6) var(--space-4); }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .quiz-grid { grid-template-columns: 1fr; }
  .pbar-row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 16px; }
  .pbar-label { text-align: left; }
  .pbar-value { font-size: 18px; }
}
