select,
textarea,
button {
  font: inherit;
}

.scenario-field {
  margin-top: 1.2rem;
}

.field select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb9c8;
  border-radius: 0.65rem;
}

.panel > button:not(.secondary-button) {
  width: 100%;
  margin-top: 0.8rem;
}

.test-results,
.readme-results {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.test-results li,
.readme-results li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background: var(--soft);
  border-radius: 0.65rem;
}

.test-results li span,
.readme-results li span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.test-results li[data-state="passed"],
.readme-results li[data-state="passed"] {
  background: #effaf6;
}

.test-results li[data-state="passed"] span,
.readme-results li[data-state="passed"] span {
  color: var(--green);
}

.test-results li[data-state="failed"],
.readme-results li[data-state="failed"] {
  background: #fff2f1;
}

.test-results li[data-state="failed"] span,
.readme-results li[data-state="failed"] span {
  color: var(--red);
}

.summary {
  margin: 0;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  background: var(--soft);
  border-radius: 0.65rem;
  font-weight: 750;
}

.summary[data-state="passed"] {
  color: var(--green);
  background: #effaf6;
}

.summary[data-state="failed"] {
  color: var(--red);
  background: #fff2f1;
}

.readme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.secondary-button {
  min-height: 2.5rem;
  color: var(--blue);
  background: #edf1ff;
  border: 1px solid #bec9f8;
}

.textarea-label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 780;
}

textarea {
  min-height: 15rem;
  resize: vertical;
  font: 0.76rem/1.5 "Cascadia Code", Consolas, monospace;
}

.delivery-panel,
.code-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.delivery-status {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  color: var(--muted);
  background: var(--soft);
  border-radius: 0.75rem;
}

.delivery-status[data-state="ready"] {
  color: var(--green);
  background: #effaf6;
  border: 1px solid #9bd8c6;
}

.delivery-status[data-state="blocked"] {
  color: var(--red);
  background: #fff2f1;
  border: 1px solid #f1b8b3;
}

.delivery-status span {
  font-size: 0.82rem;
}

.code-panel pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: #dffdfa;
  background: var(--navy);
  border-radius: 0.75rem;
  font: 0.76rem/1.6 "Cascadia Code", Consolas, monospace;
}

@media (min-width: 48rem) {
  .delivery-panel,
  .code-panel {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
  }
}

@media (max-width: 30rem) {
  .test-results li,
  .readme-results li {
    align-items: flex-start;
    flex-direction: column;
  }
}
