.ab-trilha {
  --ab-teal: #0B4A5A;
  --ab-editorial: #160774;
  --ab-text: #3A3A3A;
  --ab-soft: #F7F9FA;
  --ab-border: #dbe7eb;
  --ab-white: #FFFFFF;
  --ab-success: #176b42;
  --ab-error: #8b2f2f;
  color: var(--ab-text);
  font-family: Inter, Arial, sans-serif;
  max-width: 980px;
  margin: 32px auto;
}
.ab-trilha * { box-sizing: border-box; }
.ab-trilha h2,
.ab-trilha h3,
.ab-trilha h4,
.ab-trilha .ab-kicker,
.ab-trilha .ab-question-number,
.ab-trilha button {
  font-family: Poppins, Arial, sans-serif;
}
.ab-trilha h2,
.ab-trilha h3,
.ab-trilha h4 { color: var(--ab-editorial); }
.ab-shell {
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  background: var(--ab-white);
  overflow: hidden;
}
.ab-start,
.ab-question-screen,
.ab-results { padding: clamp(20px, 4vw, 40px); }
.ab-kicker {
  margin: 0 0 8px;
  color: var(--ab-teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ab-start h2,
.ab-results h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.6vw, 36px);
  line-height: 1.18;
}
.ab-start p,
.ab-results p,
.ab-feedback p { line-height: 1.68; }
.ab-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.ab-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--ab-border);
  border-radius: 999px;
  background: var(--ab-soft);
  font-size: 14px;
}
.ab-privacy {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--ab-teal);
  background: var(--ab-soft);
  font-size: 14px;
}
.ab-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ab-btn {
  appearance: none;
  border: 1px solid var(--ab-editorial);
  border-radius: 9px;
  padding: 11px 17px;
  background: var(--ab-editorial);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.ab-btn:hover,
.ab-btn:focus-visible { filter: brightness(.94); }
.ab-btn:focus-visible,
.ab-option input:focus-visible + .ab-option-card {
  outline: 3px solid rgba(79,176,198,.45);
  outline-offset: 2px;
}
.ab-btn-secondary {
  background: #fff;
  color: var(--ab-editorial);
}
.ab-btn-quiet {
  background: var(--ab-soft);
  color: var(--ab-text);
  border-color: var(--ab-border);
}
.ab-btn[disabled] { opacity: .48; cursor: not-allowed; }
.ab-progress-wrap {
  padding: 18px clamp(20px, 4vw, 40px) 0;
  background: #fff;
}
.ab-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ab-text);
  font-size: 14px;
  margin-bottom: 8px;
}
.ab-progress-track {
  width: 100%;
  height: 7px;
  background: #e8eef0;
  border-radius: 999px;
  overflow: hidden;
}
.ab-progress-bar {
  height: 100%;
  width: 0;
  background: var(--ab-teal);
  transition: width .2s ease;
}
.ab-question-number {
  margin: 0 0 12px;
  color: var(--ab-teal);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ab-question-text {
  margin: 0 0 22px;
  color: var(--ab-text);
  font-size: 18px;
  line-height: 1.66;
}
.ab-figure {
  margin: 24px auto;
  text-align: center;
}
.ab-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 620px;
  margin: 0 auto;
  object-fit: contain;
}
.ab-figure figcaption {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}
.ab-data-details {
  margin: 12px 0 22px;
  border: 1px solid var(--ab-border);
  border-radius: 9px;
  background: var(--ab-soft);
  padding: 10px 14px;
}
.ab-data-details summary { cursor: pointer; font-weight: 700; color: var(--ab-editorial); }
.ab-data-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.ab-data-table th, .ab-data-table td { border: 1px solid var(--ab-border); padding: 8px; text-align: center; }
.ab-data-table th:first-child, .ab-data-table td:first-child { text-align: left; }
.ab-options {
  border: 0;
  padding: 0;
  margin: 26px 0 0;
  min-width: 0;
}
.ab-options legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--ab-editorial);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 700;
}
.ab-option { display: block; margin: 10px 0; cursor: pointer; }
.ab-option input { position: absolute; opacity: 0; pointer-events: none; }
.ab-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.ab-option:hover .ab-option-card { border-color: #9bbdc5; }
.ab-option input:checked + .ab-option-card {
  border-color: var(--ab-editorial);
  background: #f8f7fc;
}
.ab-letter {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ab-editorial);
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.ab-option-text { padding-top: 3px; line-height: 1.5; white-space: pre-line; }
.ab-message {
  min-height: 24px;
  margin-top: 12px;
  color: var(--ab-error);
  font-size: 14px;
  font-weight: 600;
}
.ab-score-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 24px;
  align-items: center;
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  background: var(--ab-soft);
}
.ab-score-number {
  color: var(--ab-editorial);
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.ab-score-number span { display: block; margin-top: 7px; color: var(--ab-text); font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 500; }
.ab-results-section { margin-top: 30px; }
.ab-results-section > h3 { margin-bottom: 10px; font-size: 23px; }
.ab-axis-list { display: grid; gap: 9px; }
.ab-axis-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ab-border);
  border-radius: 9px;
}
.ab-axis-score { font-weight: 700; color: var(--ab-editorial); white-space: nowrap; }
.ab-review-list { display: grid; gap: 14px; margin-top: 14px; }
.ab-review-item {
  padding: 18px;
  border: 1px solid var(--ab-border);
  border-left: 4px solid var(--ab-teal);
  border-radius: 10px;
  background: #fff;
}
.ab-review-item h4 { margin: 0 0 8px; font-size: 19px; }
.ab-review-item p { margin: 7px 0 0; line-height: 1.6; }
.ab-question-review {
  margin-top: 18px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  overflow: hidden;
}
.ab-question-review > summary {
  cursor: pointer;
  padding: 15px 17px;
  background: var(--ab-soft);
  color: var(--ab-editorial);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 700;
}
.ab-review-body { padding: 17px; }
.ab-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.ab-status-correct { color: var(--ab-success); background: #edf7f1; }
.ab-status-wrong { color: var(--ab-error); background: #fbefef; }
.ab-answer-lines {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--ab-border);
  background: var(--ab-soft);
  line-height: 1.6;
}
.ab-feedback {
  padding: 15px;
  border: 1px solid var(--ab-border);
  border-radius: 9px;
}
.ab-feedback h4 { margin: 0 0 8px; font-size: 18px; }
.ab-feedback p { margin: 8px 0; }
.ab-feedback-review {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ab-border);
}
.ab-all-comments { margin-top: 14px; }
.ab-all-comments > summary { cursor: pointer; color: var(--ab-editorial); font-weight: 700; }
.ab-comment-option { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ab-border); }
.ab-comment-option:first-of-type { border-top: 0; }
.ab-comment-option h5 { margin: 0 0 7px; color: var(--ab-editorial); font-size: 15px; }
.ab-empty-review {
  padding: 18px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: var(--ab-soft);
}
@media (max-width: 640px) {
  .ab-score-card { grid-template-columns: 1fr; }
  .ab-score-number { text-align: left; }
  .ab-axis-row { grid-template-columns: 1fr; }
  .ab-start, .ab-question-screen, .ab-results { padding: 20px 16px; }
  .ab-progress-wrap { padding: 16px 16px 0; }
  .ab-question-text { font-size: 17px; }
  .ab-button-row .ab-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-trilha *, .ab-trilha *::before, .ab-trilha *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* v1.1.0: result screen and review refinements */
.ab-score-card {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ab-score-card .ab-score-number {
  min-width: 180px;
}
.ab-related-question {
  font-size: 14px;
  color: #5c5c5c;
}
.ab-synthesis {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--ab-border);
  border-left: 4px solid var(--ab-teal);
  border-radius: 9px;
  background: var(--ab-soft);
}
.ab-synthesis h4 {
  margin: 0 0 8px;
  font-size: 18px;
}
.ab-synthesis p {
  margin: 0;
  line-height: 1.68;
}
