/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #5c5488; color: #fff; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }

.btn-danger {
  background: var(--error-light);
  color: var(--error);
  border: 1.5px solid var(--error-border);
}
.btn-danger:hover { background: #f5e0de; text-decoration: none; }

.btn-sm {
  padding: var(--s2) var(--s4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--s4) var(--s8);
  font-size: var(--text-lg);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-link {
  background: none; border: none;
  color: var(--primary); font-size: var(--text-sm);
  cursor: pointer; padding: 0; font-family: var(--font);
  text-decoration: underline;
}

/* Formulários */
.form-group { margin-bottom: var(--s5); text-align: left; }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: var(--s2);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--s1);
}

/* Quiz — opções de resposta */
.questao-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s4);
  box-shadow: var(--shadow-sm);
}

.questao-header {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.questao-num {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-sm);
  min-width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.questao-enunciado {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-main);
}

.opcoes { display: flex; flex-direction: column; gap: var(--s2); }

.opcao-label {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  line-height: 1.5;
}

.opcao-label:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.opcao-label.selecionada {
  background: var(--primary-light);
  border-color: var(--primary);
}

.opcao-input { display: none; }

.opcao-letra {
  font-weight: 700;
  color: var(--primary);
  font-size: var(--text-sm);
  min-width: 18px;
  flex-shrink: 0;
  padding-top: 2px;
}

.opcao-texto { font-size: var(--text-base); color: var(--text-main); }

/* Bloco de questões */
.bloco-section { margin-bottom: var(--s8); }

.bloco-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  padding: var(--s4) var(--s5);
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--accent);
}

.bloco-num-badge {
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.bloco-titulo {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Questão reflexiva */
.reflexiva-section {
  background: var(--accent-light);
  border: 1px solid #d5d0ea;
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-top: var(--s6);
}

.reflexiva-titulo {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.reflexiva-enunciado {
  font-size: var(--text-sm);
  color: var(--text-sub);
  margin-bottom: var(--s4);
  line-height: 1.6;
}

/* Submit bar */
.submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg-header);
  border-top: 1px solid var(--border-soft);
  padding: var(--s4) 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  z-index: 90;
}

.submit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.submit-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Resultado */
.resultado-score {
  text-align: center;
  padding: var(--s8);
  border-radius: var(--r-xl);
  margin-bottom: var(--s6);
}

.score-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--s2);
}

.score-label {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--s3);
  opacity: 0.75;
}

.score-avaliacao {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0;
}

.resultado-score.nivel-otimo    { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); }
.resultado-score.nivel-bom      { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.resultado-score.nivel-medio    { background: var(--warning-light); color: var(--warning); border: 1px solid var(--warning-border); }
.resultado-score.nivel-inicio   { background: var(--error-light);   color: var(--error);   border: 1px solid var(--error-border); }

/* Grid de questões no resultado */
.questoes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.q-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: default;
}

.q-badge.certa  { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); }
.q-badge.errada { background: var(--error-light);   color: var(--error);   border: 1px solid var(--error-border); }
.q-badge.sem-gabarito { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border-soft); }

/* Revisão de erros */
.revisao-section { margin-top: var(--s6); }

.revisao-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: var(--s4) var(--s5);
  background: var(--error-light);
  border: 1px solid var(--error-border);
  border-radius: var(--r-lg);
  margin-bottom: 0;
}

.revisao-header h3 { color: var(--error); font-size: var(--text-base); margin: 0; }
.revisao-toggle { color: var(--error); font-size: 1.2rem; transition: transform 0.2s; }
.revisao-toggle.aberto { transform: rotate(180deg); }

.revisao-lista { display: none; margin-top: var(--s3); }
.revisao-lista.aberta { display: block; }

.erro-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--error);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s4);
}

.erro-numero { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); margin-bottom: var(--s2); }
.erro-enunciado { font-size: var(--text-base); margin-bottom: var(--s4); color: var(--text-main); }

.opcao-review {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  margin-bottom: var(--s2);
  font-size: var(--text-sm);
}

.opcao-review.errada-aluno  { background: var(--error-light);   border: 1px solid var(--error-border); }
.opcao-review.correta-resp  { background: var(--success-light); border: 1px solid var(--success-border); }

.opcao-review-icone { font-size: 1rem; flex-shrink: 0; }
.opcao-review-letra { font-weight: 700; min-width: 18px; flex-shrink: 0; }
.opcao-review-texto { color: var(--text-main); line-height: 1.5; }

.nota-bloco {
  margin-top: var(--s4);
  padding: var(--s4);
  background: var(--accent-light);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: 1.6;
}

.nota-bloco-titulo {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s2);
  font-size: var(--text-sm);
}

.base-teorica {
  margin-top: var(--s4);
  padding: var(--s4);
  background: #f0f4ff;
  border: 1px solid #c7d4f5;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: 1.6;
}

.base-teorica-titulo {
  font-weight: 600;
  color: #4a6ccc;
  margin-bottom: var(--s2);
  font-size: var(--text-sm);
}

.revisao-header-ok {
  background: var(--success-light);
  border-color: var(--success-border);
}

/* Materiais de apoio */
.materiais-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s6);
}

.materiais-panel-titulo {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.materiais-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.material-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.material-link:hover { border-color: var(--accent); background: var(--accent-light); }
.material-icone { font-size: 1rem; }

/* Reflexão do aluno no resultado */
.reflexao-card {
  background: var(--accent-light);
  border: 1px solid #d5d0ea;
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-top: var(--s5);
}

.reflexao-titulo {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s3);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.reflexao-texto {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: 1.65;
  font-style: italic;
}

/* Quiz list cards */
.quiz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transition: box-shadow 0.15s;
}

.quiz-card:hover { box-shadow: var(--shadow-md); }

.quiz-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.quiz-card-titulo { font-size: var(--text-lg); font-weight: 600; color: var(--text-main); }
.quiz-card-meta   { font-size: var(--text-sm); color: var(--text-muted); }

.quiz-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--border-soft);
}

.ja-fez-badge {
  font-size: var(--text-sm);
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: 99px;
  padding: 2px var(--s3);
  font-weight: 500;
}

/* Admin */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--s3);
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-ativo    { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); }
.status-rascunho { background: var(--warning-light); color: var(--warning); border: 1px solid var(--warning-border); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table th {
  text-align: left;
  padding: var(--s3) var(--s4);
  background: var(--bg-alt);
  color: var(--text-sub);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-table td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.acoes { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* Questão admin edit */
.questao-edit {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s4);
}

.questao-edit-header {
  background: var(--bg-alt);
  padding: var(--s3) var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
  cursor: pointer;
  user-select: none;
}

.questao-edit-header:hover { background: #e8e4de; }

.questao-edit-num { font-weight: 700; color: var(--accent); font-size: var(--text-sm); }
.questao-edit-preview { font-size: var(--text-sm); color: var(--text-sub); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.questao-edit-toggle { color: var(--text-muted); font-size: 0.9rem; transition: transform 0.2s; }
.questao-edit-toggle.aberto { transform: rotate(180deg); }

.questao-edit-body {
  display: none;
  padding: var(--s5);
  border-top: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.questao-edit-body.aberta { display: block; }

.opcoes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

/* ===== Lista de pendentes (compacta) ===== */
.quiz-row-pendente {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.quiz-row-pendente:hover { box-shadow: var(--shadow-md); }

.quiz-row-main { flex: 1; min-width: 0; }
.quiz-row-titulo { font-size: var(--text-base); font-weight: 600; color: var(--text-main); line-height: 1.35; }
.quiz-row-sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }

.quiz-row-mats { display: flex; gap: var(--s1); flex-shrink: 0; }
.quiz-row-cta { flex-shrink: 0; }

/* Ícone de material (só ícone) */
.mat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.mat-icon:hover { border-color: var(--accent); background: var(--accent-light); }

/* ===== Histórico (tabela) ===== */
.hist-filtros, .tf-bar {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
  align-items: center;
}
.hist-input, .hist-select, .tf-busca, .tf-filtra, .tf-ordem {
  font-family: var(--font);
  font-size: var(--text-sm);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  color: var(--text-main);
}
.hist-input, .tf-busca { flex: 1; min-width: 180px; }
.hist-input:focus, .hist-select:focus,
.tf-busca:focus, .tf-filtra:focus, .tf-ordem:focus { outline: none; border-color: var(--primary); }

.hist-tabela-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hist-tabela { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.hist-tabela th {
  text-align: left;
  padding: var(--s3) var(--s4);
  background: var(--bg-alt);
  color: var(--text-sub);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border-soft);
}
.hist-tabela td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
  vertical-align: middle;
}
.hist-tabela tr:last-child td { border-bottom: none; }
.hist-tabela tbody tr:hover td { background: var(--bg-alt); }
.hist-td-titulo { font-weight: 500; }
.hist-td-data { color: var(--text-muted); white-space: nowrap; }

.hist-nota {
  display: inline-block;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 1px var(--s2);
  border-radius: var(--r-sm);
}
.hist-nota.nota-alta  { color: var(--success); }
.hist-nota.nota-media { color: var(--text-main); }
.hist-nota.nota-baixa { color: var(--text-muted); }

.hist-acao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
}
.hist-acao:hover { background: var(--bg-alt); border-color: var(--border-soft); }
.hist-vazio { text-align: center; padding: var(--s8); color: var(--text-muted); font-size: var(--text-sm); }

/* ===== Modo revisão (rever) ===== */
.rever-questao {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s4);
}
.rever-q-num { font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: var(--s2); }
.rever-q-enunciado { font-size: var(--text-base); color: var(--text-main); margin-bottom: var(--s4); line-height: 1.5; }
.rever-opcoes { display: flex; flex-direction: column; gap: var(--s2); }
.rever-opcao {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  font-size: var(--text-sm);
}
.rever-opcao.correta { background: var(--success-light); border-color: var(--success-border); }
.rever-letra { font-weight: 700; min-width: 18px; flex-shrink: 0; color: var(--text-sub); }
.rever-opcao.correta .rever-letra { color: var(--success); }
.rever-texto { color: var(--text-main); line-height: 1.5; flex: 1; }
.rever-check { font-size: var(--text-xs); color: var(--success); font-weight: 600; flex-shrink: 0; }

/* ===== Indicadores ===== */
.ind-filtros { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); align-items: center; }
.ind-filtros .hist-input { flex: 1; min-width: 160px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s6);
}
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.kpi-num { font-size: var(--text-2xl); font-weight: 700; color: var(--text-main); line-height: 1.1; }
.kpi-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: var(--s1); }

.insight-card { margin-bottom: var(--s6); border-left: 4px solid var(--accent); }
.insight-corpo { font-size: var(--text-sm); color: var(--text-main); line-height: 1.6; }
.insight-corpo .insight-h { font-size: var(--text-base); color: var(--accent); margin: var(--s4) 0 var(--s2); }
.insight-corpo .insight-h:first-child { margin-top: 0; }
.insight-corpo p { margin-bottom: var(--s2); }
.insight-corpo .insight-ul { margin: 0 0 var(--s3) var(--s5); display: flex; flex-direction: column; gap: var(--s1); }
.insight-corpo .insight-ul li { list-style: disc; }

.ind-secao {
  font-size: var(--text-sm);
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: var(--s3);
}
.ind-vazio { color: var(--text-muted); font-size: var(--text-sm); padding: var(--s4) 0 var(--s6); }

.conceito-linha {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border-soft);
}
.conceito-linha:last-child { border-bottom: none; }
.conceito-nome { flex: 0 0 34%; font-size: var(--text-sm); font-weight: 500; color: var(--text-main); }
.conceito-barra-wrap { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.conceito-barra { height: 100%; background: var(--error); border-radius: 99px; min-width: 2px; }
.conceito-stat { flex: 0 0 auto; font-size: var(--text-sm); font-weight: 600; color: var(--error); white-space: nowrap; }

/* Multi-mês (histórico do aluno) */
.mes-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mes-chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  padding: var(--s1) var(--s3);
  border-radius: 99px;
  border: 1px solid var(--border-mid);
  background: var(--bg-surface);
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
}
.mes-chip.ativo { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 600px) {
  /* Admin */
  .opcoes-row { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .conceito-nome { flex-basis: 42%; }
  .submit-inner { flex-direction: column; align-items: stretch; }
  .submit-inner .btn { width: 100%; justify-content: center; }

  /* Quiz questões */
  .questao-card { padding: var(--s4); }
  .questao-enunciado { font-size: var(--text-base); }
  .questao-num { min-width: 28px; height: 28px; font-size: var(--text-xs); }

  .opcao-label {
    padding: var(--s4);       /* maior área de toque */
    min-height: 48px;
  }
  .opcao-texto { font-size: var(--text-base); }

  .bloco-header { padding: var(--s3) var(--s4); flex-wrap: wrap; gap: var(--s2); }
  .bloco-titulo { font-size: var(--text-sm); }

  /* Lista de quizzes */
  .quiz-card { padding: var(--s4); }
  .quiz-card-titulo { font-size: var(--text-base); }
  .quiz-card-header { flex-wrap: wrap; }

  /* Resultado */
  .score-num { font-size: 3.5rem; }
  .questoes-grid .q-badge { width: 32px; height: 32px; }

  /* Admin tabela scroll horizontal */
  .admin-table { font-size: var(--text-xs); }
  .admin-table th, .admin-table td { padding: var(--s2) var(--s3); }

  /* Pendentes compactos: empilha materiais/CTA se faltar espaço */
  .quiz-row-pendente { flex-wrap: wrap; gap: var(--s3); padding: var(--s4); }
  .quiz-row-main { flex-basis: 100%; }
  .quiz-row-cta { margin-left: auto; }

  /* Histórico: fonte menor, esconde coluna de data (fica na ação de rever) */
  .hist-tabela { font-size: var(--text-xs); }
  .hist-tabela th, .hist-tabela td { padding: var(--s2) var(--s3); }
  .col-data { display: none; }
  .hist-acao { width: 38px; height: 38px; }
}
