.ept-app {
  --ept-border: #d9dde3;
  --ept-muted: #667085;
  --ept-bg: #f7f8fa;
  --ept-error: #b42318;
  --ept-ok: #067647;
  --ept-accent: #2b5fad;
  color: inherit;
  font: inherit;
  max-width: 920px;
  margin: 0 auto;
}

.ept-app *, .ept-app *::before, .ept-app *::after { box-sizing: border-box; }
.ept-app [hidden] { display: none !important; }

.ept-progress { margin: 0 0 28px; }
.ept-progress-bar { height: 8px; background: #e8ebef; border-radius: 999px; overflow: hidden; }
.ept-progress-bar span { display: block; width: 20%; height: 100%; background: var(--ept-accent); transition: width .2s ease; }
.ept-progress-text { margin-top: 8px; color: var(--ept-muted); font-size: .92em; }

.ept-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--ept-bg);
  border: 1px solid var(--ept-border);
  border-radius: 12px;
}

.ept-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.ept-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ept-border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.ept-field input:focus { outline: 2px solid color-mix(in srgb, var(--ept-accent) 30%, transparent); border-color: var(--ept-accent); }

.ept-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.ept-section-header { margin-bottom: 24px; }
.ept-section-header h2 { margin: 0; padding: 0; }
.ept-kicker { margin: 0 0 4px; color: var(--ept-muted); font-size: .9em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.ept-questions { display: grid; gap: 18px; }
.ept-question {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ept-border);
  border-radius: 12px;
  background: #fff;
}
.ept-question.has-error { border-color: var(--ept-error); }
.ept-question legend { width: 100%; padding: 0 0 14px; font-weight: 600; line-height: 1.45; }
.ept-question legend span { color: var(--ept-muted); margin-right: 3px; }

.ept-options { display: grid; gap: 9px; }
.ept-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--ept-border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ept-option:hover { background: var(--ept-bg); }
.ept-option:has(input:checked) { border-color: var(--ept-accent); background: color-mix(in srgb, var(--ept-accent) 7%, #fff); }
.ept-option input { position: absolute; opacity: 0; pointer-events: none; }
.ept-option-letter {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ept-border);
  font-weight: 700;
  font-size: .85em;
}
.ept-option:has(input:checked) .ept-option-letter { border-color: var(--ept-accent); background: var(--ept-accent); color: #fff; }
.ept-option:focus-within { outline: 2px solid color-mix(in srgb, var(--ept-accent) 30%, transparent); outline-offset: 2px; }

.ept-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.ept-button {
  appearance: none;
  border: 0;
  border-radius: 9px;
  min-height: 46px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ept-button:disabled { opacity: .6; cursor: wait; }
.ept-button-primary { margin-left: auto; background: var(--ept-accent); color: #fff; }
.ept-button-secondary { background: #eef1f4; color: inherit; }
.ept-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--ept-accent) 35%, transparent); outline-offset: 2px; }

.ept-message { display: none; margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #fef3f2; color: var(--ept-error); }
.ept-message.is-visible { display: block; }

.ept-result { padding: 26px; border: 1px solid var(--ept-border); border-radius: 14px; background: #fff; }
.ept-result-intro { margin-top: 0; font-size: 1.05em; }
.ept-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.ept-score-card { padding: 18px; text-align: center; border-radius: 10px; background: var(--ept-bg); }
.ept-score-card strong { display: block; font-size: 2em; line-height: 1.1; }
.ept-score-card span { display: block; margin-top: 5px; color: var(--ept-muted); }
.ept-section-results h3, .ept-review h3 { margin: 0 0 12px; }
.ept-section-result { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ept-border); }
.ept-section-result:last-child { border-bottom: 1px solid var(--ept-border); }
.ept-review { margin-top: 26px; }
.ept-review-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ept-review-item { padding: 10px 8px; text-align: center; border-radius: 8px; background: var(--ept-bg); }
.ept-review-item strong, .ept-review-item span { display: block; }
.ept-review-item span { margin-top: 2px; font-size: .82em; color: var(--ept-muted); }
.ept-review-item.is-correct strong { color: var(--ept-ok); }
.ept-review-item.is-wrong strong { color: var(--ept-error); }

@media (max-width: 640px) {
  .ept-identity { grid-template-columns: 1fr; }
  .ept-question { padding: 16px; }
  .ept-score-grid { grid-template-columns: 1fr; }
  .ept-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ept-actions { flex-wrap: wrap; }
}
