/* Banco de questões — visual coerente com a Home (vidro fosco, dourado, Cormorant) */

:root {
  --gold: #d4a857;
  --gold-telos: #d4a857;
  --gold-light: #fbe8b4;
  --gold-mid: #e8c477;
  --gold-deep: #a87930;
  --bg-deep: #07121f;
  --bg-ink: #0e0a06;
  --text: #f7eccd;
  --text-soft: rgba(247, 236, 205, 0.82);
  --text-mute: rgba(247, 236, 205, 0.6);
  --glass: rgba(14, 10, 6, 0.36);
  --glass-strong: rgba(14, 10, 6, 0.62);
  --line: rgba(212, 168, 87, 0.18);
  --line-strong: rgba(212, 168, 87, 0.38);
  --success: #5fb87a;
}

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

html {
  min-height: 100%;
  background: #07121f; /* fallback escuro pré-pintura, alinhado com styles.css da home */
}
body {
  min-height: 100vh;
  margin: 0;
  color: #f7eccd;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Sem background hardcoded: o .bg-art injetado pelo shared-chrome.js cuida do fundo.
     Quando NÃO há pintura ativa (data-pintura=""), styles.css já dá fallback escuro.
     A topbar do shared-chrome é position:sticky (ocupa lugar no fluxo), então
     o conteúdo abaixo dela já fica naturalmente posicionado — SEM padding-top. */
}
/* Quando há pintura ativa, esconde qualquer gradient legado */
body[data-pintura]:not([data-pintura=""]) {
  background: transparent;
}

/* ===== background ===== */
/* A Home esconde a pintura (WebGL canvas substitui) — aqui simplificamos:
   o gradient do body já dá o wash quente. A pintura fica invisível, presente
   no DOM apenas pra preload e símbolo. */
.bq-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bq-bg__painting { display: none; }
.bq-bg__veil { display: none; }

/* ===== pagehead (substituiu .bq-topbar; logo agora vem do shared-chrome) ===== */
.bq-pagehead {
  display: grid;
  grid-template-columns: auto 1fr auto;  /* mascote · título · stat */
  align-items: center;
  gap: 24px;
  padding: 26px clamp(20px, 4vw, 56px) 18px;
  max-width: 1380px;
  margin: 0 auto;
}
.bq-pagehead__mascote {
  width: clamp(64px, 7vw, 92px);
  height: clamp(64px, 7vw, 92px);
  display: flex; align-items: center; justify-content: center;
}
.bq-pagehead__mascote img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: opacity .35s ease, transform .35s ease;
  opacity: 0;  /* fade-in quando JS seta src */
}
.bq-pagehead__mascote img.is-loaded { opacity: 1; }
.bq-pagehead__mascote img.is-swapping { opacity: 0; transform: translateY(-4px); }
.bq-pagehead__center {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

/* Mobile: mascote menor + título centralizado, stat embaixo */
@media (max-width: 720px) {
  .bq-pagehead {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
  }
  .bq-pagehead__mascote {
    width: 64px; height: 64px;
    grid-row: 1; grid-column: 1;
  }
  .bq-pagehead__center {
    grid-row: 1; grid-column: 2;
    text-align: left; align-items: flex-start;
  }
  .bq-stat {
    grid-row: 2; grid-column: 1 / -1;
    justify-self: center;
    flex-direction: row !important; gap: 10px; align-items: baseline !important;
  }
}

/* legado — mantido por algum tempo caso outra coisa referencie .bq-topbar */
.bq-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(20px, 4vw, 56px) 18px;
  max-width: 1380px;
  margin: 0 auto;
}

.bq-brand {
  justify-self: start;
  display: inline-flex; align-items: center;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 12px;
  transition: opacity .25s, transform .25s;
  opacity: 0.92;
}
.bq-brand:hover, .bq-brand:focus-visible {
  opacity: 1;
  outline: none;
  transform: translateY(-1px);
}
.bq-brand__logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(31, 53, 82, 0.18));
}

.bq-topbar__center {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bq-eyebrow {
  font-family: Caveat, cursive;
  font-size: 24px;
  color: #a87930;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.bq-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4vmin, 46px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  color: #1f3552;
}
.bq-title em {
  font-style: italic;
  background: linear-gradient(120deg, #b08530 0%, #d4a857 60%, #a87930 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bq-stat {
  justify-self: end;
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255, 249, 235, 0.78);
  border: 1px solid rgba(168, 121, 48, 0.35);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 6px 18px rgba(31, 53, 82, 0.10);
}
.bq-stat strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600; font-size: 26px;
  color: #1f3552;
  line-height: 1;
  letter-spacing: -0.005em;
}
.bq-stat span {
  font-size: 11.5px;
  color: rgba(31, 53, 82, 0.6);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-top: 3px;
}

/* ===== abas de área (Residência · Concursos · Vestibular) ===== */
.bq-areas {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px clamp(20px, 4vw, 56px) 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* fade nas pontas pra indicar scroll, igual disciplinas */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.bq-areas::-webkit-scrollbar { height: 4px; }
.bq-areas::-webkit-scrollbar-thumb { background: rgba(212,168,87,.5); border-radius: 999px; }
.bq-area { flex: 0 0 auto; }  /* não encolhe na rolagem */
.bq-area {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 11px 22px 9px;
  border-radius: 14px;
  background: rgba(255, 249, 235, 0.55);
  border: 1px solid rgba(168, 121, 48, 0.22);
  color: #1f3552;
  font: 500 14px/1.2 Inter, sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  letter-spacing: 0.005em;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.bq-area:hover {
  background: rgba(255, 244, 213, 0.78);
  border-color: rgba(168, 121, 48, 0.42);
  transform: translateY(-1px);
}
.bq-area[aria-selected="true"] {
  background: linear-gradient(160deg, #fbe8b4, #d4a857 75%, #a87930);
  border-color: rgba(168, 121, 48, 0.7);
  color: #1a1208;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(168, 121, 48, 0.32);
}
.bq-area__label {
  font-size: 14.5px;
  letter-spacing: 0.005em;
}
.bq-area__count {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
  color: #a87930;
  letter-spacing: -0.005em;
}
.bq-area[aria-selected="true"] .bq-area__count {
  color: #5c3a18;
}

.bq-aviso {
  margin: 6px 4px 0;
  padding: 9px 14px;
  background: rgba(255, 244, 213, 0.78);
  border-left: 3px solid #d4a857;
  border-radius: 6px;
  font: 400 12.5px/1.5 Inter, sans-serif;
  color: rgba(31, 53, 82, 0.78);
  letter-spacing: 0.005em;
}

.bq-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(31, 53, 82, 0.55);
  font: 500 14.5px/1.5 "Cormorant Garamond", serif;
  font-style: italic;
}
.bq-loading__dots {
  display: inline-block;
  animation: bq-pulse-dots 1.4s ease-in-out infinite;
}
@keyframes bq-pulse-dots {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== main ===== */
.bq-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 56px) 80px;
  display: flex; flex-direction: column;
  gap: 28px;
}

/* ===== filtros — vidro CREME claro pra casar com fundo dourado da Home ===== */
.bq-filters {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 249, 235, 0.72);
  border: 1px solid rgba(168, 121, 48, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 12px 36px rgba(31, 53, 82, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bq-filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bq-filters__row--secondary > * { flex: 0 0 auto; }
.bq-filters__row--secondary .bq-search { flex: 1 1 280px; min-width: 220px; }

.bq-pills {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.bq-pill {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(168, 121, 48, 0.28);
  color: #1f3552;
  font: 500 13px/1 Inter, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;  /* nunca quebra texto interno da pill */
  flex: 0 0 auto;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.bq-pill:hover, .bq-pill:focus-visible {
  background: rgba(255, 244, 213, 0.85);
  border-color: rgba(168, 121, 48, 0.55);
  color: #5c3a18;
  outline: none;
}
.bq-pill[aria-pressed="true"] {
  background: linear-gradient(160deg, #fbe8b4, #d4a857 75%, #a87930);
  border-color: rgba(168, 121, 48, 0.7);
  color: #1a1208;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(168, 121, 48, 0.25);
}
.bq-pill__count {
  font-size: 11px;
  font-weight: 400;
  color: rgba(31, 53, 82, 0.55);
}
.bq-pill[aria-pressed="true"] .bq-pill__count {
  color: rgba(26, 18, 8, 0.7);
}
.bq-pills--small .bq-pill { padding: 6px 11px; font-size: 12px; }

.bq-search {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 14px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(168, 121, 48, 0.28);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.bq-search:focus-within {
  border-color: rgba(168, 121, 48, 0.6);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.18);
}
.bq-search svg { color: rgba(31, 53, 82, 0.55); }
.bq-search input {
  flex: 1; background: transparent; border: 0; color: #1f3552;
  font: 400 14px/1 Inter, sans-serif;
  outline: none;
  letter-spacing: 0.005em;
}
.bq-search input::placeholder { color: rgba(31, 53, 82, 0.45); }

.bq-range {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(168, 121, 48, 0.28);
}
.bq-range__label {
  font: 600 12.5px/1 Inter, sans-serif;
  color: #a87930;
  min-width: 36px; text-align: center;
}
.bq-range__dash { color: rgba(31, 53, 82, 0.4); font-size: 12px; }
.bq-range input[type="range"] {
  width: 90px;
  height: 4px;
  -webkit-appearance: none; appearance: none;
  background: rgba(168, 121, 48, 0.3);
  border-radius: 2px;
  outline: none;
}
.bq-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  background: linear-gradient(160deg, #fbe8b4, #d4a857);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px #a87930, 0 2px 4px rgba(0,0,0,0.15);
}
.bq-range input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: linear-gradient(160deg, #fbe8b4, #d4a857);
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid #a87930;
}

.bq-select {
  height: 38px;
  padding: 0 32px 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a87930' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/12px no-repeat;
  border: 1px solid rgba(168, 121, 48, 0.28);
  color: #1f3552;
  font: 500 13.5px/1 Inter, sans-serif;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  max-width: 220px;
}
.bq-select:focus { border-color: rgba(168, 121, 48, 0.6); outline: none; box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.18); }
.bq-select option { background: #fdf7e7; color: #1f3552; }

.bq-clear {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px dashed rgba(168, 121, 48, 0.4);
  color: rgba(31, 53, 82, 0.6);
  font: 500 12.5px/1 Inter, sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-transform: lowercase;
  transition: color .2s, border-color .2s;
}
.bq-clear:hover { color: #5c3a18; border-color: #a87930; }

/* ===== results ===== */
.bq-results__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 6px;
}
.bq-results__meta > span {
  font-size: 12.5px;
  color: rgba(31, 53, 82, 0.65);
  letter-spacing: 0.02em;
}
.bq-shuffle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 235, 0.7);
  border: 1px solid rgba(168, 121, 48, 0.3);
  color: #1f3552;
  font: 500 12px/1 Inter, sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bq-shuffle:hover { background: rgba(212,168,87,0.18); color: #1f3552; border-color: rgba(168, 121, 48, 0.55); }

/* ===== card ===== */
.bq-card {
  position: relative;
  background: rgba(14,10,6,0.78);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(24px, 3.5vmin, 38px) clamp(24px, 3.5vmin, 42px);
  box-shadow: 0 28px 72px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,237,180,0.08);
  display: flex; flex-direction: column; gap: 22px;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  transition: opacity .25s;
}
.bq-card.is-loading { opacity: 0.4; pointer-events: none; }

.bq-card__head {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11.5px;
}
.bq-card__pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212,168,87,0.14);
  border: 1px solid rgba(212,168,87,0.32);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.bq-card__pill--soft {
  background: transparent;
  border-color: var(--line);
  color: var(--text-mute);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 11px;
}

.bq-card__statement {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 2.4vmin, 26px);
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.bq-card__alts {
  display: flex; flex-direction: column; gap: 10px;
}
.bq-card__alts[hidden] { display: none !important; }
.bq-alt {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,247,219,0.035);
  border: 1px solid var(--line);
  color: var(--text);
  font: 400 14.5px/1.5 Inter, sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background .2s, border-color .2s, transform .15s;
  width: 100%;
}
.bq-alt:hover { background: rgba(212,168,87,0.08); border-color: rgba(212,168,87,0.34); }
.bq-alt:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.bq-alt__label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--gold);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(212,168,87,0.12);
  border: 1px solid rgba(212,168,87,0.3);
  line-height: 1;
}
.bq-alt[aria-pressed="true"] {
  background: rgba(212,168,87,0.14);
  border-color: rgba(212,168,87,0.5);
}
.bq-alt[aria-pressed="true"] .bq-alt__label {
  background: rgba(212,168,87,0.3);
  color: var(--gold-light);
}
/* Estados após revelar gabarito */
.bq-alt.is-correct {
  background: rgba(95, 184, 122, 0.15);
  border-color: rgba(95, 184, 122, 0.55);
}
.bq-alt.is-correct .bq-alt__label {
  background: rgba(95, 184, 122, 0.3);
  border-color: rgba(95, 184, 122, 0.6);
  color: #c2e8cf;
}
.bq-alt.is-wrong-marked {
  background: rgba(184, 80, 80, 0.08);
  border-color: rgba(184, 80, 80, 0.35);
  opacity: 0.7;
}

.bq-card__reveal {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* Resposta médica (formato Q&A aberto — MedPT) */
.bq-card__resposta-medica {
  margin-top: 8px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.10), rgba(95, 184, 122, 0.08));
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}
.bq-card__resposta-medica header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.bq-card__resposta-medica header span {
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.bq-card__resposta-medica p {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.005em;
  white-space: pre-wrap;
}
.bq-card__reveal span {
  font: 500 11.5px/1 Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bq-card__reveal strong {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--gold-light);
  line-height: 1;
}

.bq-card__foot {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
}
.bq-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-mid) 55%, var(--gold-deep));
  color: #1a1208;
  font: 700 13.5px/1 Inter, sans-serif;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(212,168,87,0.25);
}
.bq-action:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212,168,87,0.35); }
.bq-action--ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  box-shadow: none;
}
.bq-action--ghost:hover { background: rgba(212,168,87,0.1); color: var(--text); box-shadow: none; }

.bq-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(31, 53, 82, 0.6);
  font: 500 16px/1.5 "Cormorant Garamond", serif;
  font-style: italic;
}
.bq-empty button {
  background: transparent; border: 0; padding: 0;
  color: var(--gold);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bq-footnote {
  text-align: center;
  color: rgba(31, 53, 82, 0.5);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  max-width: 600px;
  margin: 12px auto 0;
}

/* ===== responsive ===== */
@media (max-width: 720px) {
  .bq-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 18px;
    text-align: center;
  }
  .bq-back { justify-self: center; }
  .bq-stat { justify-self: center; flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 14px; }
  .bq-stat strong { font-size: 18px; }
  .bq-stat span { margin-top: 0; }
  .bq-filters__row--secondary { flex-direction: column; align-items: stretch; }
  .bq-filters__row--secondary > * { width: 100%; max-width: none; }
  .bq-range { justify-content: space-between; }
  .bq-range input[type="range"] { flex: 1; }
  .bq-card { padding: 22px 18px; }
  .bq-card__statement { font-size: 19px; }
  .bq-alt { font-size: 14px; padding: 12px; }
  .bq-card__foot { flex-direction: column; gap: 8px; }
  .bq-card__foot > * { width: 100%; justify-content: center; }
}

/* ============================================================================
   MedPT — UI de resposta do aluno + feedback IA (formato Q&A aberto).
   ============================================================================ */
.bq-medpt-extra {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(252, 248, 239, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bq-medpt-extra__label {
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bq-medpt-extra__textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: 400 14.5px/1.55 Inter, system-ui, sans-serif;
  color: var(--text);
  resize: vertical;
}
.bq-medpt-extra__textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-color: var(--gold);
}
.bq-medpt-extra__actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.bq-action--primary {
  background: var(--text);
  color: #fff;
}
.bq-action--primary:hover { background: #000; }
.bq-action--primary:disabled { opacity: .55; cursor: wait; }
.bq-medpt-extra__hint {
  font: 400 12px/1.4 Inter, sans-serif;
  color: var(--text-mute);
  font-style: italic;
}

.bq-medpt-feedback {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bq-medpt-feedback--loading { color: var(--text-mute); font-style: italic; }
.bq-medpt-feedback--warn { background: rgba(212, 168, 87, 0.08); border-color: var(--gold); }
.bq-medpt-feedback--error { background: rgba(189, 80, 80, 0.06); border-color: #c66; }

.bq-medpt-feedback__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.bq-medpt-feedback__veredito {
  font: 700 13px/1 Inter, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bq-medpt-feedback__head--ok .bq-medpt-feedback__veredito { color: #2f7d3a; }
.bq-medpt-feedback__head--parcial .bq-medpt-feedback__veredito { color: #b3781f; }
.bq-medpt-feedback__head--errou .bq-medpt-feedback__veredito { color: #c33; }
.bq-medpt-feedback__head--impreciso .bq-medpt-feedback__veredito { color: #777; }

.bq-medpt-feedback__source {
  font: 400 11px/1 Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.bq-medpt-feedback__section {
  display: flex; flex-direction: column; gap: 4px;
}
.bq-medpt-feedback__section h4 {
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}
.bq-medpt-feedback__section ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bq-medpt-feedback__section li {
  font: 400 14px/1.55 Inter, sans-serif;
  color: var(--text);
}
.bq-medpt-feedback__section--gaps li { color: #8b5e1f; }
.bq-medpt-feedback__section--obs p {
  font: 400 14px/1.55 Inter, sans-serif;
  color: var(--text);
  margin: 0;
}
.bq-medpt-feedback__detail {
  font: 400 12.5px/1.4 ui-monospace, monospace;
  color: #a44;
  background: #fbeaea;
  padding: 6px 8px;
  border-radius: 6px;
  word-break: break-word;
}
.bq-medpt-feedback__hint {
  font: 400 13px/1.5 Inter, sans-serif;
  color: var(--text-mute);
  margin: 0;
}

/* =============================
   Concursos Certo/Errado — botões grandes Certo/Errado em vez de A-E
   ============================= */
.bq-alt--ce {
  min-height: 64px;
  font-size: 16px;
  font-weight: 600;
}
.bq-alt--ce .bq-alt__label {
  font-size: 22px;
  min-width: 48px;
}

/* =============================
   Redação ENEM — tema + descrição + notas competência
   ============================= */
.bq-redacao__tema {
  display: block;
  font: 600 18px/1.3 "Cormorant Garamond", serif;
  color: var(--text);
  margin-bottom: 10px;
}
.bq-redacao__desc {
  display: block;
  font: 400 14.5px/1.55 Inter, sans-serif;
  color: var(--text-mute);
  white-space: pre-wrap;
}
.bq-redacao__notas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 14px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  font: 500 13px/1.4 ui-monospace, monospace;
}
.bq-redacao__notas span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.bq-redacao__notas strong {
  font-weight: 700;
  color: var(--text-mute);
  font-size: 11.5px;
}
.bq-redacao__comentario {
  margin-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.12);
  padding-top: 10px;
}
.bq-redacao__comentario summary {
  cursor: pointer;
  font: 500 13.5px/1.4 Inter, sans-serif;
  color: var(--text-mute);
}
.bq-redacao__comentario p {
  margin: 8px 0 0;
  font: 400 14px/1.55 Inter, sans-serif;
}

/* =====================================================================
   ADAPTAÇÃO PRA FUNDO DE PINTURA (shared-chrome.js ativo)
   ---------------------------------------------------------------------
   A paleta original foi calibrada pra fundo creme. Quando há pintura
   ativa (body[data-pintura] preenchido), toda a UI vira "vidro fumê" —
   superfícies translúcidas escuras com texto claro, alinhado com a Home.
   ===================================================================== */

body[data-pintura]:not([data-pintura=""]) .bq-title {
  color: #f7eccd;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
body[data-pintura]:not([data-pintura=""]) .bq-eyebrow {
  color: #e8c477;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

body[data-pintura]:not([data-pintura=""]) .bq-stat {
  background: rgba(14,10,6,.55);
  border-color: rgba(212,168,87,.32);
  color: #f7eccd;
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
body[data-pintura]:not([data-pintura=""]) .bq-stat strong { color: #fbe8b4; }
body[data-pintura]:not([data-pintura=""]) .bq-stat span { color: rgba(247,236,205,.62); }

body[data-pintura]:not([data-pintura=""]) .bq-area {
  background: rgba(14,10,6,.42);
  border-color: rgba(212,168,87,.22);
  color: rgba(247,236,205,.92);
}
body[data-pintura]:not([data-pintura=""]) .bq-area:hover {
  background: rgba(14,10,6,.62);
  border-color: rgba(212,168,87,.5);
}
body[data-pintura]:not([data-pintura=""]) .bq-area__count { color: rgba(232,196,119,.85); }
/* selecionado mantém o gradient dourado original (já contrasta bem) */

body[data-pintura]:not([data-pintura=""]) .bq-filters {
  background: rgba(14,10,6,.55);
  border-color: rgba(212,168,87,.22);
  box-shadow: 0 14px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,237,180,.06);
}
body[data-pintura]:not([data-pintura=""]) .bq-aviso {
  background: rgba(212,168,87,.10);
  color: rgba(247,236,205,.82);
  border-left-color: #d4a857;
}

body[data-pintura]:not([data-pintura=""]) .bq-pill {
  background: rgba(247,236,205,.06);
  border-color: rgba(212,168,87,.28);
  color: #f7eccd;
}
body[data-pintura]:not([data-pintura=""]) .bq-pill:hover,
body[data-pintura]:not([data-pintura=""]) .bq-pill:focus-visible {
  background: rgba(247,236,205,.14);
  border-color: rgba(212,168,87,.55);
  color: #fbe8b4;
}
body[data-pintura]:not([data-pintura=""]) .bq-pill__count { color: rgba(247,236,205,.5); }

body[data-pintura]:not([data-pintura=""]) .bq-search input,
body[data-pintura]:not([data-pintura=""]) .bq-search {
  background: rgba(14,10,6,.55);
  border-color: rgba(212,168,87,.28);
  color: #f7eccd;
}
body[data-pintura]:not([data-pintura=""]) .bq-search input::placeholder { color: rgba(247,236,205,.42); }

body[data-pintura]:not([data-pintura=""]) .bq-select,
body[data-pintura]:not([data-pintura=""]) .bq-range {
  background: rgba(14,10,6,.55);
  border-color: rgba(212,168,87,.28);
  color: #f7eccd;
}
body[data-pintura]:not([data-pintura=""]) .bq-range__label,
body[data-pintura]:not([data-pintura=""]) .bq-range__dash { color: rgba(247,236,205,.65); }

body[data-pintura]:not([data-pintura=""]) .bq-card {
  background: rgba(14,10,6,.62);
  border: 1px solid rgba(212,168,87,.22);
  color: #f7eccd;
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18);
  box-shadow: 0 16px 44px rgba(0,0,0,.4);
}
body[data-pintura]:not([data-pintura=""]) .bq-card__statement { color: #f7eccd; }
body[data-pintura]:not([data-pintura=""]) .bq-card__pill {
  background: rgba(212,168,87,.18); color: #fbe8b4; border-color: rgba(212,168,87,.4);
}
body[data-pintura]:not([data-pintura=""]) .bq-card__pill--soft {
  background: rgba(247,236,205,.06); color: rgba(247,236,205,.78);
}
body[data-pintura]:not([data-pintura=""]) .bq-alt {
  background: rgba(247,236,205,.04);
  border-color: rgba(212,168,87,.20);
  color: #f7eccd;
}
body[data-pintura]:not([data-pintura=""]) .bq-alt:hover { background: rgba(247,236,205,.10); border-color: rgba(212,168,87,.42); }
body[data-pintura]:not([data-pintura=""]) .bq-action {
  background: rgba(212,168,87,.18); color: #fbe8b4; border-color: rgba(212,168,87,.4);
}

body[data-pintura]:not([data-pintura=""]) .bq-clear,
body[data-pintura]:not([data-pintura=""]) .bq-shuffle {
  background: transparent; color: rgba(247,236,205,.62); border-color: rgba(212,168,87,.22);
}

/* =====================================================================
   PÍLULAS DE DISCIPLINA EM 1 LINHA COM SCROLL HORIZONTAL
   ---------------------------------------------------------------------
   Antes ocupavam 2-3 linhas em telas médias (Residência médica tem ~12
   disciplinas). Vira scroll horizontal só na linha principal de pílulas
   (#bq-categoria-pills); a linha secundária (.bq-filters__row--secondary)
   mantém wrap pra busca/range/select.
   ===================================================================== */
.bq-filters__row--disciplines {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,168,87,.5) transparent;
  /* fade nas pontas pra indicar scroll */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  padding-bottom: 4px;
}
.bq-filters__row--disciplines #bq-categoria-pills {
  flex-wrap: nowrap;
  width: max-content;
}
.bq-filters__row--disciplines::-webkit-scrollbar { height: 4px; }
.bq-filters__row--disciplines::-webkit-scrollbar-track { background: transparent; }
.bq-filters__row--disciplines::-webkit-scrollbar-thumb { background: rgba(212,168,87,.5); border-radius: 999px; }


