/* Escola de Cristo — UI moderna + acessibilidade (foco visível, contraste, alvos de toque) */

:root {
  --bg: #050508;
  --bg-elevated: #0c0c10;
  --text: #f4f4f5;
  --text-muted: #b4b4b8;
  --brand: #0d7bff;
  --brand-hover: #3d94ff;
  --brand-muted: rgba(13, 123, 255, 0.15);
  --accent: #38c6ff;
  --accent-soft: rgba(56, 198, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.1);
  --ok-border: rgba(52, 211, 153, 0.35);
  --err: #f87171;
  --err-bg: rgba(248, 113, 113, 0.1);
  --err-border: rgba(248, 113, 113, 0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(56, 198, 255, 0.08);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 2px;
  --touch-min: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --tabbar-h: 3.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  color-scheme: dark;
  -webkit-tap-highlight-color: rgba(13, 123, 255, 0.25);
  touch-action: manipulation;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(13, 123, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(56, 198, 255, 0.06), transparent 45%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  font-weight: 400;
}

/* Skip link — teclado / leitores */
.skip-link {
  position: absolute;
  left: calc(0.75rem + var(--safe-left));
  top: calc(0.75rem + var(--safe-top));
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Foco visível — teclado */
:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

a:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.tf-opt:has(input:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #7ddbff;
}

/* Topbar — compacto no telefone (estilo app) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: calc(0.65rem + var(--safe-top));
  padding-bottom: 0.65rem;
  padding-left: calc(0.9rem + var(--safe-left));
  padding-right: calc(0.9rem + var(--safe-right));
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Menu superior: só em desktop (evita duplicar com a barra inferior) */
.topbar__nav--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .topbar__nav--desktop {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  /* Evita “Sair” duplicado: o <form> não vira um flex item extra */
  .topbar__nav--desktop .inline-form {
    display: contents;
  }
}

.nav-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand__line1 {
  font-size: clamp(0.82rem, 2.5vw, 1rem);
}

.brand__line2 {
  font-size: clamp(0.82rem, 2.5vw, 1rem);
}

.brand__de {
  font-size: 0.55rem;
  font-weight: 600;
  margin-right: 0.2rem;
  text-transform: lowercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.4rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text);
}

.nav-link--btn {
  background: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  color: var(--accent);
}

.nav-link--btn:hover {
  color: #7ddbff;
}

.inline-form {
  margin: 0;
  display: inline;
}

.main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem calc(1rem + var(--safe-left)) 1.5rem calc(1rem + var(--safe-right));
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.main--with-tabbar {
  padding-bottom: calc(5.75rem + var(--safe-bottom));
}

@media (min-width: 1024px) {
  .main--with-tabbar {
    padding-bottom: calc(2rem + var(--safe-bottom));
  }
}

@media (min-width: 768px) {
  .main {
    max-width: 52rem;
    padding-top: 1.75rem;
  }
}

.main:focus {
  outline: none;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-head {
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.dashboard-export-wrap {
  margin: 0.35rem 0 0;
}

.dashboard-export-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.profile-actions__title {
  margin: 0;
  flex: 1 1 auto;
}

.profile-export {
  flex: 0 0 auto;
  white-space: nowrap;
}

.quiz-header {
  margin-bottom: 1.25rem;
}

.quiz-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.foot {
  text-align: center;
  padding: 1rem calc(1rem + var(--safe-left)) 1rem calc(1rem + var(--safe-right));
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.foot--with-tabbar {
  padding-bottom: calc(4.5rem + var(--safe-bottom));
}

@media (min-width: 1024px) {
  .foot--with-tabbar {
    padding-bottom: 1rem;
  }
}

/* Barra inferior — celular e tablet: 100% largura, Início + Perfil + Sair + safe area */
.tabbar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  padding-left: max(var(--safe-left), 0.25rem);
  padding-right: max(var(--safe-right), 0.25rem);
  background: rgba(8, 8, 12, 0.96);
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .tabbar {
    display: none !important;
  }
}

.tabbar__form {
  flex: 1;
  display: flex;
  margin: 0;
  min-width: 0;
}

a.tabbar__item,
button.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: var(--tabbar-h);
  padding: 0.35rem 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.tabbar__item--btn {
  width: 100%;
  height: 100%;
  min-height: var(--tabbar-h);
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--text-muted);
}

.tabbar__item--btn:focus {
  outline: none;
}

.tabbar__item--btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.tabbar__item:active,
.tabbar__item--btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.tabbar__item.is-active {
  color: var(--accent);
}

.tabbar__item.is-active .tabbar__icon {
  color: var(--accent);
}

.tabbar__icon {
  display: flex;
  color: currentColor;
  opacity: 0.9;
}

.tabbar__item.is-active .tabbar__icon path {
  stroke-width: 2.1;
}

/* Logo compacto em telas estreitas */
@media (max-width: 360px) {
  .brand__text--full {
    display: none;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }
}

/* Barra fixa “Enviar” no questionário — polegar (mobile) */
.quiz-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  /* Acima da barra de abas — não cobre Início / Perfil */
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  z-index: 55;
  padding: 0.5rem calc(1rem + var(--safe-left)) 0.5rem calc(1rem + var(--safe-right));
  background: linear-gradient(to top, rgba(5, 5, 8, 0.97) 40%, transparent);
  pointer-events: none;
}

.quiz-sticky-bar .btn {
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* Tablet e celular: botão Enviar fixo acima da barra inferior */
@media (max-width: 1023px) {
  .quiz-sticky-bar {
    display: block;
  }

  .form--quiz {
    padding-bottom: calc(6.5rem + var(--safe-bottom) + var(--tabbar-h));
  }

  .btn--in-form {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .quiz-sticky-bar {
    display: none !important;
  }
}

.h1 {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.85rem;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.88rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}

.card--elevated {
  border-color: var(--border-strong);
}

.card--narrow {
  max-width: 26rem;
  margin: clamp(1.5rem, 6vw, 3rem) auto;
}

.card__header {
  margin-bottom: 1.25rem;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  margin: 0 0 1rem;
  word-break: break-word;
  border: 1px solid var(--border);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.input {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(165deg, var(--brand-hover) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(13, 123, 255, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: #fff;
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #9ee8ff;
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.btn--disabled,
.btn:disabled {
  background: #2a2a30;
  color: #8a8a90;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.85;
}

.btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.88;
  pointer-events: none;
}

.welcome {
  margin-bottom: 2rem;
}

.badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  margin: 0.5rem 0 1.25rem;
}

.badge--large {
  align-items: center;
}

.badge__icon {
  color: var(--ok);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Progresso */
.progress-block {
  margin: 1rem 0 1.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.progress-count {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.4s ease;
}

.module {
  margin-bottom: 2rem;
}

.module__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
  letter-spacing: -0.01em;
}

.quiz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quiz-card--locked {
  opacity: 0.72;
}

.quiz-card--done {
  border-color: var(--ok-border);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15);
}

.quiz-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.quiz-card__title {
  font-size: 1.02rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.quiz-card__meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0.45rem 0 0.85rem;
}

.quiz-card__lock {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  white-space: nowrap;
}

.tag--ok {
  background: rgba(52, 211, 153, 0.18);
  color: #a7f3d0;
}

.crumb {
  margin: 0 0 1.25rem;
}

.crumb__link {
  font-size: 0.92rem;
  font-weight: 500;
}

/* Questões V/F */
.qblock {
  border: none;
  margin: 0 0 1.35rem;
  padding: 1rem 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.qblock__text {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.tf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tf-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch-min);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 140px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tf-opt:hover {
  border-color: rgba(56, 198, 255, 0.4);
  background: var(--accent-soft);
}

.tf-opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-muted);
  box-shadow: inset 0 0 0 1px rgba(13, 123, 255, 0.25);
}

.tf-opt__label {
  font-weight: 500;
}

.tf-opt input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.msg {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg--ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: #ecfdf5;
}

.msg--err {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: #fef2f2;
}

.result-panel {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

.result-score {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0.35rem 0 1rem;
  letter-spacing: -0.03em;
}

.result-score__suffix {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0;
}

/* Revisão pós-envio: o que errou e gabarito */
.result-review {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.result-review__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.result-review__intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.result-review__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-review__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.result-review__item--ok {
  border-color: rgba(52, 211, 153, 0.35);
}

.result-review__item--wrong {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.06);
}

.result-review__badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
}

.result-review__item--ok .result-review__badge {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}

.result-review__item--wrong .result-review__badge {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.result-review__body {
  min-width: 0;
  flex: 1;
}

.result-review__q {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.result-review__ans {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.result-review__ans strong {
  color: var(--text);
}

.result-review__item--wrong .result-review__ans strong:last-of-type {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th[scope="col"] {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table th[scope="row"] {
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 520px) {
  .tf-opt {
    flex: 1 1 100%;
  }

  .table th,
  .table td {
    padding: 0.55rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.22);
    --border-strong: rgba(255, 255, 255, 0.35);
  }

  .card,
  .qblock,
  .quiz-card {
    border-width: 2px;
  }
}
