/* estagio — tema claro, acessível, mobile-friendly (estilo apoie) */

html { font-size: 16px; }
html[data-fs="0"] { font-size: 13px; }
html[data-fs="1"] { font-size: 14px; }
html[data-fs="2"] { font-size: 16px; }
html[data-fs="3"] { font-size: 18px; }
html[data-fs="4"] { font-size: 20px; }
html[data-fs="5"] { font-size: 22px; }
html[data-fs="6"] { font-size: 25px; }
html[data-fs="7"] { font-size: 28px; }

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0369a1;
  --accent-hover: #075985;
  --accent-soft: rgba(3, 105, 161, 0.08);
  --danger: #b91c1c;
  --success: #047857;
  --warning: #b45309;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 14px rgba(15,23,42,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 5rem;
}

.logo {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-align: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 30rem;
}

.step-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .5rem;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
  line-height: 1.25;
  color: var(--text);
}

.subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ── Inputs ── */

.field { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: .82rem;
  color: var(--text);
  margin-bottom: .4rem;
  font-weight: 600;
}

.input {
  width: 100%;
  padding: .75rem .85rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.input::placeholder { color: var(--text-muted); opacity: .7; }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input.otp {
  text-align: center;
  letter-spacing: .6em;
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-left: .6em;
}

/* ── Botões ── */

.btn {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  text-align: center;
  min-height: 44px;
}

.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: .6rem;
  font-size: .9rem;
}
.btn.ghost:hover:not(:disabled) {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
  font-size: .85rem;
  padding: .6rem;
  margin-top: .4rem;
  min-height: 0;
}

/* ── Grid de turmas ── */

.turma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .25rem;
}

.turma-btn {
  padding: 1.2rem .9rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  letter-spacing: .03em;
  min-height: 60px;
}

.turma-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Lista (duplas / pacientes) ── */

.list { margin-top: .25rem; }

.list-item {
  padding: 1rem 1.1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: .6rem;
}

.list-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.list-item .item-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.list-item .item-sub {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.list-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 2rem 0;
}

/* ── Mensagens ── */

.msg-error {
  color: var(--danger);
  font-size: .9rem;
  margin-top: .9rem;
  display: none;
  line-height: 1.4;
  background: rgba(185,28,28,.06);
  border: 1px solid rgba(185,28,28,.18);
  border-radius: 8px;
  padding: .65rem .8rem;
}
.msg-error.show { display: block; }

.msg-info {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .75rem;
  display: none;
}
.msg-info.show { display: block; }

.loading {
  display: none;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 1.5rem 0;
}
.loading.show { display: block; }

/* ── Tel masked ── */

.tel-info {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding: .8rem .9rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.tel-info strong { color: var(--text); font-weight: 700; }

/* ── Footer link ── */

.footer-link {
  margin-top: 1.2rem;
  text-align: center;
}

.footer-link button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: .4rem;
  min-height: 32px;
}
.footer-link button:hover { color: var(--accent); }

/* ── Textarea / Select ── */

textarea.input {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.5;
  font-family: inherit;
}

select.input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
  appearance: none;
}

.input[readonly] {
  background: var(--surface2);
  color: var(--text-muted);
  cursor: default;
}

/* ── Contexto (estagiário/RA/dupla/paciente) ── */

.ctx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ctx-item { min-width: 0; }

.ctx-item label {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
  font-weight: 700;
}

.ctx-item .ctx-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  /* fix anti-overflow: quebra nomes longos em vez de estourar a tabela */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* ── Tipo de documento ── */

.doc-grid {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .25rem;
}

.doc-card {
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  font-family: inherit;
}

.doc-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.doc-card .doc-title {
  font-weight: 700;
  font-size: .95rem;
}

.doc-card .doc-sub {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .25rem;
}

/* ── Ticket ── */

.ticket-box {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 10px;
  text-align: center;
}

.ticket-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
  font-weight: 700;
}

.ticket-code {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ── Seção de formulário ── */

.form-section {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 1.2rem;
  padding-top: 1.2rem;
}

.form-section-title {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Admin (tabelas, badges, stats) ── */

.card.admin { max-width: 56rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem;
  text-align: center;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .25rem;
  font-weight: 600;
}

/* ── Top nav (utilitários no topo do card) ── */

.top-nav {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin: -.4rem -.4rem 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

.top-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .8rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-size: .82rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  min-height: 36px;
  text-decoration: none;
}

.top-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.top-nav-btn .ico {
  font-size: 1rem;
  line-height: 1;
}

/* "Sair" empurrado para a direita */
.top-nav-btn.right { margin-left: auto; }

@media (max-width: 480px) {
  .top-nav-btn .label { display: none; }
  .top-nav-btn { padding: .5rem .6rem; }
  .top-nav-btn .ico { font-size: 1.15rem; }
}

/* ── Doc card variante: visualizar (lista de docs já enviados) ── */

.doc-card.view {
  background: linear-gradient(135deg, var(--surface2), var(--accent-soft));
}

.doc-card .doc-ico {
  font-size: 1.3rem;
  margin-bottom: .25rem;
  display: block;
}

/* ── Navbar superior admin ─────────────────────────────── */
.admin-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  flex-wrap: wrap;
}

.admin-topnav-brand {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-right: .5rem;
  white-space: nowrap;
}

.admin-topnav a {
  padding: .35rem .75rem;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.admin-topnav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-topnav a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Nav interna (painel admin) ────────────────────────── */
.admin-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-nav button {
  padding: .55rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  min-height: 38px;
}

.admin-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
  align-items: flex-end;
}

.filter-field { display: flex; flex-direction: column; gap: .3rem; }
.filter-field label {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  font-weight: 700;
}

.input.sm {
  padding: .5rem .65rem;
  font-size: .82rem;
}

.table-wrap { overflow-x: auto; margin-top: .5rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.admin-table th {
  text-align: left;
  padding: .6rem .65rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface2);
}

.admin-table td {
  padding: .6rem .65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.admin-table tr:hover td { background: var(--accent-soft); }

.badge {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.ativo    { background: rgba(4,120,87,.12);  color: var(--success); }
.badge.inativo  { background: rgba(100,116,139,.15); color: #475569; }
.badge.insert   { background: rgba(4,120,87,.12);  color: var(--success); }
.badge.update   { background: rgba(180,83,9,.12); color: var(--warning); }
.badge.softdel  { background: rgba(185,28,28,.1);  color: var(--danger); }
.badge.restore  { background: rgba(3,105,161,.12); color: var(--accent); }
.badge.harddel  { background: rgba(185,28,28,.2);   color: var(--danger); }
.badge.rev      { background: rgba(100,116,139,.15); color: #475569; }

.btn-sm {
  padding: .32rem .65rem;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all .15s;
  white-space: nowrap;
}

.btn-sm:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm.danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); background: rgba(185,28,28,.06); }
.btn-sm.success:hover:not(:disabled) { border-color: var(--success); color: var(--success); background: rgba(4,120,87,.06); }
.btn-sm:disabled { opacity: .35; cursor: not-allowed; }

.pagination {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.pagination button {
  padding: .35rem .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  transition: all .15s;
  min-height: 32px;
}

.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

.text-muted { color: var(--text-muted); }
.mono { font-family: 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .03em; }

/* ── Toolbar de acessibilidade A− / A+ ── */

.a11y-toolbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .25rem .35rem;
  box-shadow: var(--shadow);
}

.a11y-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .35rem .6rem;
  font-weight: 700;
  font-family: inherit;
  font-size: .85rem;
  border-radius: 6px;
  line-height: 1;
  min-height: 36px;
  min-width: 36px;
}
.a11y-btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.a11y-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ── Mobile ── */

@media (max-width: 560px) {
  body { padding: 1rem .75rem 4rem; }
  .card { padding: 1.5rem 1.1rem; border-radius: 12px; }
  .turma-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .ctx-grid { grid-template-columns: 1fr 1fr; gap: .6rem; padding: .8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card.admin { padding: 1.2rem .9rem; }

  /* iOS: input >=16px evita zoom no foco */
  .input, textarea.input, select.input { font-size: 1rem; }

  /* Toolbar a11y mais discreta no mobile, com toque maior */
  .a11y-toolbar {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    box-shadow: var(--shadow-md);
  }
  .a11y-btn { min-height: 40px; min-width: 40px; font-size: .9rem; }
}

@media (max-width: 380px) {
  .ctx-grid { grid-template-columns: 1fr; }
  .turma-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Perguntas & Respostas — admin
   ─────────────────────────────────────────────────────────────────────────── */

.rev-campo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .25rem;
}

.btn-perguntar {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .25rem .55rem;
  border-radius: 6px;
  font-size: .78rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.btn-perguntar:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.perg-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 0 .45rem;
  font-size: .7rem;
  font-weight: 700;
  margin-left: .25rem;
  min-width: 1.1rem;
  text-align: center;
}

.perg-painel {
  margin-top: .5rem;
  padding: .75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.perg-titulo {
  font-size: .82rem;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: .5rem;
}

.perg-lista { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .5rem; }

.perg-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .55rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 4px;
}

.perg-texto { color: #7f1d1d; font-size: .87rem; flex: 1; }

.perg-rm {
  background: transparent;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1;
  padding: 0 .35rem;
}
.perg-rm:hover { color: #991b1b; }

.perg-vazio { color: var(--text-muted); font-size: .82rem; font-style: italic; }

.perg-add {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.perg-add textarea {
  font-size: .87rem;
  padding: .5rem;
}
.perg-add .btn-sm {
  align-self: flex-start;
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}
.perg-add .btn-sm:hover { background: #991b1b; border-color: #991b1b; }

.btn-acao.enviar-perg {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-acao.enviar-perg:hover { background: #991b1b; }

.btn-acao.cancelar-perg {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

/* ───────────────────────────────────────────────────────────────────────────
   Respostas — admin (visualização das rodadas)
   ─────────────────────────────────────────────────────────────────────────── */

.resp-rodadas { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

.resp-rodada {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem;
  background: var(--surface2);
}

.resp-rodada-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.resp-rodada-titulo { font-weight: 700; font-size: .95rem; color: var(--text); }
.resp-rodada-meta { font-size: .82rem; color: var(--text-muted); }

.resp-perguntas { display: flex; flex-direction: column; gap: .65rem; }

.resp-bloco {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  padding: .65rem .85rem;
}

.resp-campo {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.resp-pergunta {
  color: #7f1d1d;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
}

.resp-resposta {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ───────────────────────────────────────────────────────────────────────────
   Página do estudante (responder.html)
   ─────────────────────────────────────────────────────────────────────────── */

.resp-progresso {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 1rem 0 1.5rem;
  padding: .75rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

#resp-progresso-texto {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.resp-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.resp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0369a1, #10b981);
  transition: width .3s;
}

.resp-campo-box {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.resp-campo-titulo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.resp-original {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .65rem .85rem;
  color: var(--text);
  font-size: .9rem;
  margin-bottom: .85rem;
  white-space: pre-wrap;
  line-height: 1.5;
  max-height: 220px;
  overflow-y: auto;
}

.resp-textarea {
  background: #fff;
  border: 2px solid #fecaca;
  font-size: 16px;
  padding: .65rem;
  margin-top: .35rem;
}
.resp-textarea:focus {
  border-color: #dc2626;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}

.resp-status {
  font-size: .78rem;
  margin-top: .25rem;
  text-align: right;
  min-height: 1.1em;
}
.resp-status.saving { color: var(--text-muted); }
.resp-status.saved  { color: #10b981; font-weight: 600; }
.resp-status.erro   { color: #dc2626; font-weight: 600; }

