
.practice-embed { margin-block: 1rem; padding: .85rem; background: #f7faf9; border: 1px solid #dce4e4; border-radius: .65rem; scroll-margin-top: 9rem; }
.practice-embed h3 { font-size: 1rem; }
.practice-embed .solution[hidden] { display: none; }
@scope (.practice-embed) {
:scope {
  color-scheme: light;
  --ink: #19373f;
  --muted: #46616a;
  --teal: #12515f;
  --line: #dce4e4;
  --tint: #eef5f4;
  --page: #f7f9f8;
  --good: #146340;
  --wrong: #94362f;
  --focus: #9e5e08;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.answer-form { margin-top: 1.05rem; }
.answer-fields { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.answer-field {
  display: grid;
  align-content: start;
  gap: .3rem;
  width: min(100%, 20rem);
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
}
.answer-input {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.85rem;
  padding-inline: .65rem;
  border: 1px solid #829da2;
  border-radius: .5rem;
  color: var(--ink);
}
.answer-input:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.answer-input:has([data-result="good"]) { border-color: var(--good); background: #f3faf5; }
.answer-input:has([data-result="wrong"]) { border-color: var(--wrong); background: #fff6f4; }
input { min-width: 0; width: 100%; min-height: 2.75rem; padding: .25rem 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1rem; font-weight: 500; }
input:focus-visible { outline: none; }
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
}
button {
  border: 1px solid var(--teal);
  border-radius: .5rem;
  padding: .55rem .9rem;
  min-height: 2.75rem;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #1f6574; }
.retry-button { background: white; color: var(--teal); }
.retry-button:hover { background: var(--tint); }
button:disabled { opacity: .6; cursor: default; }
.status { margin: 0; font-weight: 700; }
.status:not(:empty) { margin-top: .75rem; }
.status[data-result="good"] { color: var(--good); }
.status[data-result="wrong"] { color: var(--wrong); }
.solution {
  margin-top: .55rem;
  padding: .7rem 1rem;
  border-left: 3px solid #438591;
  border-radius: .25rem;
  background: var(--tint);
  overflow-wrap: anywhere;
}
.solution h3 { margin: 0 0 .3rem; font-size: 1rem; }
.solution h3 span { display: block; color: var(--teal); font-size: 1.1rem; }
.solution ol { margin: .45rem 0 .15rem; padding-left: 1.2rem; }
.solution li + li { margin-top: .18rem; }
.answer-fields .answer-field { flex: 1 1 11rem; max-width: 20rem; }
.answer-fields .open-field { flex-basis: 100%; max-width: 100%; }
.open-field textarea {
  min-height: 4.8rem;
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid #829da2;
  border-radius: .5rem;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  resize: vertical;
}
.answer-field label { display: grid; gap: .3rem; }
}
