.cqs-app {
  --cqs-navy: #102b4e;
  --cqs-blue: #1f5f9f;
  --cqs-gold: #caa43b;
  --cqs-bg: #f5f7fb;
  --cqs-card: #ffffff;
  --cqs-border: #d8dee9;
  --cqs-ink: #172033;
  --cqs-muted: #64748b;
  --cqs-green: #16a34a;
  --cqs-red: #dc2626;
  color: var(--cqs-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  text-transform: none !important;
  font-variant-caps: normal !important;
}

.cqs-app * {
  text-transform: none !important;
  font-variant-caps: normal !important;
}

.cqs-shell,
.cqs-exam {
  max-width: 980px;
  margin: 24px auto;
}

.cqs-card {
  background: var(--cqs-card);
  border: 1px solid var(--cqs-border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.cqs-hero {
  border-top: 6px solid var(--cqs-gold);
  margin-bottom: 16px;
}

.cqs-hero h2,
.cqs-result h2 {
  color: var(--cqs-navy);
  font-size: 30px;
  line-height: 1.15;
  margin: 8px 0;
}

.cqs-kicker {
  color: var(--cqs-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cqs-meta,
.cqs-tags,
.cqs-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cqs-meta span,
.cqs-tags span,
.cqs-pill,
.cqs-timer {
  background: #eef4fb;
  border: 1px solid #d7e5f4;
  border-radius: 999px;
  color: var(--cqs-navy);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
}

.cqs-timer {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.cqs-form {
  display: grid;
  gap: 14px;
}

.cqs-form label {
  color: var(--cqs-navy);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.cqs-form input {
  border: 1px solid var(--cqs-border);
  border-radius: 10px;
  font: inherit;
  padding: 12px 13px;
}

.cqs-hp {
  display: none !important;
}

.cqs-required {
  color: var(--cqs-red);
}

.cqs-optional {
  color: var(--cqs-muted);
  font-size: 12px;
  font-weight: 700;
}

.cqs-primary,
.cqs-secondary,
.cqs-option,
.cqs-map-toggle {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.cqs-primary {
  background: var(--cqs-gold);
  color: #102033;
  padding: 12px 16px;
}

.cqs-secondary {
  background: #edf2f7;
  color: var(--cqs-navy);
  padding: 12px 16px;
}

.cqs-map-toggle {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 8px 12px;
}

.cqs-primary:disabled,
.cqs-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cqs-topbar {
  align-items: center;
  background: var(--cqs-navy);
  border-radius: 14px 14px 0 0;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.cqs-topbar span {
  color: #dbeafe;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.cqs-progress {
  background: #dbe4f0;
  height: 7px;
}

.cqs-progress span {
  background: var(--cqs-gold);
  display: block;
  height: 100%;
  transition: width 0.2s ease;
}

.cqs-question-map {
  background: #fff;
  border: 1px solid var(--cqs-border);
  border-top: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  padding: 16px;
}

.cqs-map-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cqs-map-head strong {
  color: var(--cqs-navy);
  font-size: 18px;
}

.cqs-map-head button {
  background: #edf2f7;
  border: 0;
  border-radius: 8px;
  color: var(--cqs-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.cqs-map-section {
  border-top: 1px solid var(--cqs-border);
  padding: 12px 0;
}

.cqs-map-section h4 {
  color: var(--cqs-navy);
  font-size: 14px;
  margin: 0 0 8px;
}

.cqs-map-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cqs-map-number {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 9px;
  color: var(--cqs-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  height: 38px;
  min-width: 38px;
  padding: 0 8px;
}

.cqs-map-number.is-answered {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.cqs-map-number.is-active {
  background: var(--cqs-gold);
  border-color: var(--cqs-gold);
  color: #102033;
}

.cqs-question-card {
  border-radius: 0 0 14px 14px;
}

.cqs-question-card h3 {
  color: var(--cqs-ink);
  font-size: 24px;
  line-height: 1.38;
  margin: 16px 0;
}

.cqs-passage {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-left: 5px solid var(--cqs-blue);
  border-radius: 12px;
  line-height: 1.62;
  margin-top: 15px;
  max-height: 280px;
  overflow: auto;
  padding: 15px;
  white-space: pre-line;
}

.cqs-options {
  display: grid;
  gap: 10px;
}

.cqs-option {
  align-items: flex-start;
  background: #f8fafc;
  border: 2px solid #dbe4f0;
  color: var(--cqs-ink);
  display: flex;
  gap: 12px;
  line-height: 1.45;
  padding: 14px 15px;
  text-align: left;
}

.cqs-option,
.cqs-option-text,
.cqs-passage,
.cqs-question-card h3 {
  letter-spacing: 0;
  text-transform: none !important;
}

.cqs-option:hover,
.cqs-option.cqs-selected {
  background: #fffaf0;
  border-color: var(--cqs-gold);
}

.cqs-letter {
  background: var(--cqs-navy);
  border-radius: 8px;
  color: #fff;
  flex: 0 0 auto;
  font-weight: 900;
  min-width: 34px;
  padding: 5px 8px;
  text-align: center;
}

.cqs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 14px;
}

.cqs-result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 16px 0;
}

.cqs-result-grid div {
  background: #f8fafc;
  border: 1px solid var(--cqs-border);
  border-radius: 12px;
  padding: 14px;
}

.cqs-result-grid strong {
  color: var(--cqs-navy);
  display: block;
  font-size: 30px;
}

.cqs-result-grid span {
  color: var(--cqs-muted);
  font-size: 13px;
  font-weight: 800;
}

.cqs-table {
  border-collapse: collapse;
  width: 100%;
}

.cqs-table td {
  border-bottom: 1px solid var(--cqs-border);
  padding: 10px;
}

.cqs-review {
  display: grid;
  gap: 10px;
}

.cqs-review-row {
  border: 1px solid var(--cqs-border);
  border-left: 5px solid var(--cqs-red);
  border-radius: 10px;
  padding: 12px;
}

.cqs-review-row.is-correct {
  border-left-color: var(--cqs-green);
}

.cqs-review-row span {
  display: inline-block;
  margin: 5px 12px 5px 0;
}

.cqs-loading,
.cqs-error {
  max-width: 760px;
  margin: 24px auto;
}

@media (max-width: 720px) {
  .cqs-shell,
  .cqs-exam {
    margin: 12px auto;
  }

  .cqs-card {
    padding: 16px;
  }

  .cqs-topbar,
  .cqs-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .cqs-question-card h3 {
    font-size: 20px;
  }

  .cqs-primary,
  .cqs-secondary,
  .cqs-map-toggle {
    width: 100%;
  }
}
