.leader-quiz {
  background: #f6f4ed;
}

body.design-leader {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #f6f4ed;
}

.design-leader .editorial-story > .editorial-scenario {
  display: block;
  max-width: 580px;
  margin: 30px 0 0;
  color: #263337;
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -.015em;
  white-space: pre-line;
}

.design-leader .editorial-answer legend {
  margin-bottom: 24px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
  text-transform: none;
}

.design-leader .editorial-choice:has(input:checked) {
  font-weight: 500;
}

.design-leader .editorial-scenario strong {
  font-weight: 600;
}

.design-leader .editorial-choice-text {
  line-height: 1.55;
}

.design-leader .editorial-choice:hover .editorial-choice-text {
  box-shadow: inset 0 -7px 0 #ffbc0b4d;
}

.design-leader .editorial-choice:has(input:checked) .editorial-choice-text {
  box-shadow: inset 0 -8px 0 #ffbc0b88;
}

.design-leader .editorial-head .editorial-quiz-title {
  margin: 8px 0 0;
  font-size: 37px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.design-leader .editorial-number h1 {
  margin: 0;
  font: inherit;
  text-transform: uppercase;
}

.design-leader .editorial-stage-meta,
.design-leader .editorial-back-label,
.design-leader .editorial-next[hidden] {
  display: none;
}

.design-leader .quiz-storage-warning {
  color: #8e2a4a;
  font-size: 14px;
}

@media (max-width: 800px) {
  .leader-quiz {
    scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .design-leader .page {
    min-height: calc(100svh - 68px);
    padding: 22px 14px calc(96px + env(safe-area-inset-bottom));
    background: #f2f0e9;
  }

  .design-leader .editorial-layout {
    max-width: 560px;
  }

  .design-leader .editorial-main {
    padding: 20px 18px 22px;
    border: 1px solid #d8d4c9;
    border-radius: 8px;
    background: #fffdf8;
  }

  .design-leader .editorial-head,
  .design-leader .editorial-number b,
  .design-leader .editorial-story > i,
  .design-leader .editorial-progress {
    display: none;
  }

  .design-leader .editorial-stage-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #4c5559;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .design-leader .editorial-steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: clamp(100px, 36vw, 162px);
    gap: 4px;
  }

  .design-leader .editorial-steps i {
    height: 5px;
    border-radius: 1px;
    background: #d8d4c9;
  }

  .design-leader .editorial-steps .reached {
    background: #101c22;
  }

  .design-leader .editorial-story {
    padding: 0;
    border: 0;
  }

  .design-leader .editorial-number {
    display: block;
  }

  .design-leader .editorial-number h1 {
    color: #101c22;
    font-size: clamp(25px, 6.5vw, 33px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.04em;
    text-transform: none;
    overflow-wrap: anywhere;
  }

  .design-leader .editorial-story > .editorial-scenario {
    margin: 16px 0 0;
    padding: 8px 0 8px 12px;
    border-left: 2px solid #c69622;
    font-size: 15px;
    line-height: 1.5;
  }

  .design-leader .editorial-answer {
    padding: 17px 0 0;
  }

  .design-leader .editorial-answer legend {
    margin-bottom: 11px;
    font-size: 17px;
  }

  .design-leader .editorial-options {
    gap: 8px;
  }

  .design-leader .editorial-choice,
  .design-leader .editorial-choice:last-child {
    min-height: 46px;
    padding: 9px 10px;
    gap: 10px;
    border: 1px solid #d0d1cc;
    border-radius: 5px;
  }

  .design-leader .editorial-choice:has(input:checked) {
    border-color: #c69622;
    background: #ffbc0b12;
  }

  .design-leader .editorial-choice-text {
    font-size: 15px;
    line-height: 1.42;
  }

  .design-leader .editorial-letter {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .design-leader .editorial-footer {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8d4c9;
    background: #fffdf8;
    box-shadow: 0 -6px 16px #101c2214;
  }

  .design-leader .editorial-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-height: 44px;
    padding: 0;
    flex: none;
    color: #4c5559;
    font-size: 14px;
  }

  .design-leader .editorial-back-label {
    display: inline;
  }

  .design-leader .editorial-next {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (hover: none) {
  .design-leader .editorial-choice:hover:not(:has(input:checked)) .editorial-choice-text {
    box-shadow: none;
  }
}
