:root {
  --interaction-paper: #F0EEE6;
  --interaction-navy: #243550;
  --interaction-navy-deep: #18263C;
  --interaction-burgundy: #6B2431;
  --interaction-practice: #E5E1D8;
  --interaction-ink: #20201F;
}

.reflection-field {
  display: grid;
  gap: 0.55rem;
  margin: 1.4rem 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.reflection-field > span {
  color: var(--interaction-navy);
  font-size: 0.94rem;
  font-weight: 600;
}

.reflection-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  border: 1px solid rgba(36, 53, 80, 0.34);
  border-radius: 0;
  background: rgba(240, 238, 230, 0.72);
  color: var(--interaction-ink);
  font: inherit;
  line-height: 1.65;
  padding: 0.9rem 1rem;
}

.reflection-field textarea:focus-visible,
.choice-option:focus-within,
.choice-submit:focus-visible,
.choice-retry:focus-visible,
.choice-feedback:focus-visible {
  outline: 3px solid var(--interaction-burgundy);
  outline-offset: 3px;
}

.exercise-row-choice {
  align-items: start;
}

.choice-form {
  display: grid;
  gap: 1.25rem;
}

.choice-form fieldset {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-form legend {
  margin-bottom: 0.75rem;
  color: var(--interaction-navy);
  font-weight: 600;
  line-height: 1.55;
}

.choice-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 44px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(36, 53, 80, 0.28);
  background: rgba(240, 238, 230, 0.62);
  cursor: pointer;
}

.choice-option:hover {
  border-color: var(--interaction-burgundy);
}

.choice-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--interaction-burgundy);
}

.choice-option > span {
  min-width: 0;
  color: var(--interaction-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.choice-option strong {
  display: none;
}

.choice-instruction {
  margin: 0;
  line-height: 1.7;
}

.choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.choice-submit,
.choice-retry {
  min-height: 44px;
  border: 1px solid var(--interaction-navy);
  border-radius: 0;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.choice-submit {
  background: var(--interaction-navy);
  color: var(--interaction-paper);
}

.choice-retry {
  background: transparent;
  color: var(--interaction-navy);
}

.choice-submit:hover,
.choice-retry:hover {
  border-color: var(--interaction-burgundy);
}

.choice-feedback {
  border-left: 3px solid var(--interaction-burgundy);
  padding: 0.9rem 1rem;
  background: rgba(240, 238, 230, 0.72);
}

.choice-feedback h4 {
  margin: 0 0 0.45rem;
  color: var(--interaction-navy);
  font: 600 0.95rem/1.45 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.choice-feedback p {
  margin: 0;
  line-height: 1.65;
}

.choice-feedback[data-result="complete"] {
  border-left-style: solid;
}

.choice-feedback[data-result="retry"] {
  border-left-style: dashed;
}

.noscript-note {
  margin: 1rem 0;
  color: rgba(36, 53, 80, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

.js-enabled .exercise-row-choice .exercise-disclosure[data-calibration-locked="true"] {
  display: none;
}

@media (min-width: 960px) {
  .exercise-row-choice .choice-form {
    grid-column: 1 / -1;
  }

  .exercise-row-choice .choice-option {
    padding: 1rem 1.15rem;
  }
}

@media (max-width: 640px) {
  .choice-actions {
    display: grid;
  }

  .choice-submit,
  .choice-retry {
    width: 100%;
  }

  .reflection-field textarea {
    min-height: 8rem;
  }
}

/* Parallel model labels share one color; panel treatment carries the contrast. */
.rejected-model .model-label {
  color: var(--peach-on-dark);
}

/*
  The three-step model allocates space by semantic block rather than protecting
  one specific word pair. Below 900px the base stylesheet stacks the steps.
*/
@media (min-width: 901px) {
  .three-step-model {
    grid-template-columns:
      minmax(12ch, 0.9fr)
      auto
      minmax(10ch, 0.8fr)
      auto
      minmax(22ch, 1.65fr);
  }

  .three-step-model > span {
    min-width: 0;
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
  }
}
