/* Folhas A4. A tela imita o papel; a impressão usa o tamanho real. */
@page { size: A4; margin: 16mm 15mm; }

* { box-sizing: border-box; }

.folha {
  background: #fff;
  color: #1f2933;
  font-family: Verdana, "DejaVu Sans", Arial, sans-serif;
  font-size: 13pt;
  line-height: 1.5;
  max-width: 210mm;
  margin: 0 auto;
  padding: 16mm 15mm;
}
.folha h1 { font-size: 19pt; line-height: 1.25; margin: 14px 0 2px; }
.folha h2 { font-size: 13.5pt; margin: 0 0 4px; }
.folha p { margin: 0 0 6px; }
.folha ol { margin: 0; padding-left: 24px; }

.cabecalho { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; border: 1.5px solid #1f2933; padding: 10px 12px; font-size: 11.5pt; }
.campo { border-bottom: 1px solid #7b8794; min-height: 26px; }
.campo-largo { grid-column: 1 / -1; }
.disciplina { color: #52606d; font-size: 11.5pt; }

.bloco { margin-top: 14px; break-inside: avoid; }
.exemplo { background: #eef5fb; border-left: 4px solid #2f80c2; padding: 10px 12px; }
.titulo-exercicios { border-top: 1.5px solid #1f2933; margin-top: 18px !important; padding-top: 10px; }

.questao { margin-top: 14px; break-inside: avoid; }
.enunciado { margin-bottom: 8px !important; }
.figura { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.faixa-titulo { align-items: center; background: #fff3c4; border-radius: 14px; display: flex; gap: 14px; margin-top: 14px; padding: 10px 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.faixa-titulo h1 { margin: 0 0 2px; }
.mascote .pictograma { height: 24mm; width: 24mm; }
.rotina { background: #e6f4ea; border-radius: 10px; margin-top: 8px !important; padding: 8px 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.questao { border: 1.5px solid #cbd2d9; border-radius: 12px; padding: 10px 14px; }
.autoavaliacao { background: #f3ecfb; border-radius: 12px; padding: 10px 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.autoavaliacao .campo { margin-bottom: 8px; }
.pictograma { display: block; width: 26mm; height: 26mm; }
.pictograma-barra { width: 80mm; height: 20mm; }
.lacuna-grupo { white-space: nowrap; }
.lacuna { display: inline-block; width: 34mm; border-bottom: 1.5px solid #1f2933; }

.opcoes { list-style: none; margin: 0; padding: 0; }
.opcoes li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.opcoes-vf { display: flex; gap: 28px; }
.marca { flex: none; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid #1f2933; border-radius: 50%; }
.linha { border-bottom: 1px solid #7b8794; height: 30px; }

.selo { background: #1f2933; color: #fff; display: inline-block; font-size: 10.5pt; font-weight: 700; padding: 3px 10px; }
.ficha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; margin: 12px 0 0; font-size: 11.5pt; }
.ficha dt { color: #52606d; display: inline; }
.ficha dt::after { content: ": "; }
.ficha dd { display: inline; font-weight: 700; margin: 0; }
.respostas li { margin-bottom: 10px; }
.observacao { font-size: 11.5pt; margin: 2px 0 0 !important; }
.aviso-revisao { border-top: 1px solid #7b8794; color: #52606d; font-size: 10.5pt; margin-top: 20px !important; padding-top: 8px; }

/* Barra de ações do widget e da página de impressão. */
.painel { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #1f2933; background: #f4f6f8; padding: 12px; }
.painel p { margin: 0 0 8px; }
.grupo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.painel button { background: #fff; border: 1px solid #9aa5b1; border-radius: 8px; color: #1f2933; cursor: pointer; font: inherit; min-height: 40px; padding: 8px 14px; }
.painel button:hover { background: #e4e7eb; }
.painel button:focus-visible { outline: 3px solid #2f80c2; outline-offset: 2px; }
.painel button.principal { background: #1b5e94; border-color: #1b5e94; color: #fff; font-weight: 600; }
.painel button.principal:hover { background: #154a75; }
.painel button[aria-pressed="true"] { background: #1f2933; border-color: #1f2933; color: #fff; }
.painel .titulo-grupo { color: #52606d; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.aviso { background: #fff8e1; border: 1px solid #d9b44a; border-radius: 8px; color: #5c4400; margin: 0 0 10px; overflow-wrap: anywhere; padding: 8px 12px; }
.fundo-folha { background: #cbd2d9; padding: 12px; }

@media (max-width: 600px) {
  .folha { font-size: 12pt; padding: 18px 16px; }
  .cabecalho { grid-template-columns: 1fr; }
}

@media print {
  .nao-imprimir { display: none !important; }
  html, body { background: #fff !important; margin: 0; }
  .fundo-folha { background: #fff; padding: 0; }
  .folha { font-size: 13pt; max-width: none; padding: 0; }
  .exemplo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .selo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* Site de geração. */
.site { color: #1f2933; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; margin: 0 auto; max-width: 900px; padding: 16px; }
.site h1 { font-size: 26px; margin: 4px 0; }
.site h2 { font-size: 18px; margin: 0 0 8px; }
.site [hidden] { display: none !important; }
.etapa { background: #fff; border: 1px solid #cbd2d9; border-radius: 12px; margin-top: 14px; padding: 16px; }
.campos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.campos label { display: block; font-weight: 600; }
.site select, .site textarea { background: #fff; border: 1px solid #7b8794; border-radius: 8px; color: #1f2933; font: inherit; margin-top: 4px; padding: 9px; width: 100%; }
.site textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 150px; resize: vertical; }
.site button { background: #fff; border: 1px solid #7b8794; border-radius: 8px; color: #1f2933; cursor: pointer; font: inherit; min-height: 42px; padding: 8px 14px; }
.site button:hover { background: #e4e7eb; }
.site button:focus-visible, .site select:focus-visible, .site textarea:focus-visible { outline: 3px solid #2f80c2; outline-offset: 2px; }
.site button.principal { background: #1b5e94; border-color: #1b5e94; color: #fff; font-weight: 600; }
.site button.principal:hover { background: #154a75; }
.site button[aria-pressed="true"] { background: #1f2933; border-color: #1f2933; color: #fff; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.aviso-prototipo { background: #fff8e1; border: 1px solid #d9b44a; border-radius: 8px; color: #5c4400; padding: 8px 12px; }
.status-site { color: #1e6b3a; font-weight: 600; margin: 8px 0 0; min-height: 21px; }
.ajuda { color: #52606d; margin: 4px 0 8px; }
.site h1 { margin: 0 0 6px; }
.etapa { margin-top: 10px; padding: 14px; }
.campos { gap: 8px 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.campo-inteiro { grid-column: 1 / -1; }
.site select { margin-top: 2px; padding: 7px 8px; }
.botao-largo { width: 100%; }
.site .ajuda, .site .aviso-prototipo { font-size: 13.5px; margin: 8px 0 0; padding-block: 6px; }
.status-site { margin: 6px 0 0; min-height: 0; }
.site textarea.pedido { background: #fff; border: 2px solid #1b5e94; color: #111827; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; font-weight: 500; height: 280px; line-height: 1.55; margin-top: 8px; padding: 12px; resize: vertical; }
.cabecalho-pedido { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.cabecalho-pedido h2 { margin: 0; }
.cabecalho-pedido button { padding-inline: 28px; }
@media (max-width: 650px) {
  .campo-disciplina { grid-column: 1 / -1; }
}
.abas { display: flex; gap: 8px; margin-top: 8px; }
.abas button { flex: 1; }
.site input { background: #fff; border: 1px solid #7b8794; border-radius: 8px; color: #1f2933; font: inherit; margin-top: 2px; padding: 7px 8px; width: 100%; }
.site input:focus-visible { outline: 3px solid #2f80c2; outline-offset: 2px; }
.site textarea:not(.pedido) { font-family: inherit; font-size: 14px; font-weight: 400; min-height: 0; }
.campos-cadastro label { font-weight: 600; }
.erro-campo { color: #a61b1b; display: block; font-size: 13px; font-weight: 600; margin-top: 3px; }
.erro-campo[hidden] { display: none; }
.lista-estudantes { display: grid; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.item-estudante { align-items: center; border: 1px solid #cbd2d9; border-radius: 10px; display: flex; gap: 8px; padding: 10px 12px; }
.item-estudante > div { display: grid; flex: 1; min-width: 0; }
.item-estudante strong { overflow-wrap: anywhere; }
.item-estudante span { color: #52606d; font-size: 13.5px; }
.tela-entrada { margin: 6vh auto 0; max-width: 440px; }
.campos-coluna { display: grid; gap: 10px; }
.campos-coluna label { display: block; font-weight: 600; }
.barra-conta { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.barra-conta h1 { margin: 0; }
.conta-atual { align-items: center; display: flex; gap: 10px; min-width: 0; }
.conta-atual span { color: #52606d; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-atual button { min-height: 34px; padding: 4px 12px; }
.site input:disabled { background: #e4e7eb; color: #52606d; }
.item-estudante { flex-wrap: wrap; }
.historico { border-top: 1px solid #e4e7eb; flex-basis: 100%; padding-top: 6px; }
.historico summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.historico ul { display: grid; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.historico li { align-items: center; display: flex; gap: 8px; }
.historico li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.historico button { min-height: 34px; padding: 4px 10px; white-space: nowrap; }
.site button.botao-link { background: none; border: 0; color: #1b5e94; text-decoration: underline; }
.botao-acao { background: #1b5e94; border: 1px solid #1b5e94; border-radius: 8px; color: #fff; display: inline-block; font-weight: 600; min-height: 42px; padding: 9px 14px; text-decoration: none; }
.botao-acao.secundario { background: #fff; color: #1b5e94; }
.fundo-admin { background: #f4f6f8; margin: 0; }
.rotulo-resultado { display: block; font-weight: 600; margin-top: 12px; }
.site .rotulo-resultado textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
