:root{--verdict-correct:var(--green);--verdict-incorrect:var(--red)}
html[data-theme=light]{--verdict-correct:#246b4b;--verdict-incorrect:#a13342}
/* Keep each part's verdict and correction beside the submitted control. */
#answer-area [data-answer-mark]{--part-colour:var(--green,#39946b);--part-ink:var(--verdict-correct);border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--part-colour) 7%,var(--ground-2));margin-block:10px;padding:14px 16px;}
#answer-area [data-answer-mark=incorrect]{--part-colour:var(--red,#d86c76);--part-ink:var(--verdict-incorrect)}
#answer-area .field-row[data-answer-mark]{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(150px,1fr) minmax(170px,1fr);gap:14px;align-items:center;}
#answer-area [data-answer-mark] :is(input,select,.answer-select-button){border-color:var(--line);box-shadow:none;}
#answer-area [data-answer-mark] :is(input,select,button):disabled{opacity:1;color:var(--ink);-webkit-text-fill-color:var(--ink)}
.inline-answer-feedback{display:grid;gap:5px;font-size:13px;line-height:1.5;white-space:normal;}
.inline-answer-feedback>strong{color:var(--part-ink);font-weight:650;}
.inline-answer-correction{color:var(--ink-2,var(--ink));}
.inline-answer-correction b{color:var(--ink);font-weight:650;}
.inline-answer-part{display:flex;gap:14px;align-items:center;justify-content:space-between;}
.chapter6-inline .field-row[data-answer-mark]{display:flex!important;flex-wrap:wrap;}.chapter6-inline .field-row[data-answer-mark] .inline-answer-feedback{margin-left:auto;min-width:170px;}
#answer-area [data-answer-mark]:focus,#answer-area [data-answer-mark] :is(input,select,.answer-select-button):focus-visible{outline:2px solid var(--cyan);outline-offset:3px;}
#answer-area [data-answer-mark=correct]:focus{outline-color:var(--verdict-correct);outline-offset:2px;}
#answer-area [data-answer-mark=incorrect]:focus{outline-color:var(--verdict-incorrect);outline-offset:2px;}
@media(max-width:1100px){#answer-area .field-row[data-answer-mark]{grid-template-columns:minmax(110px,.7fr) minmax(160px,1fr)}.field-row[data-answer-mark] .inline-answer-feedback{grid-column:2}}
/* Checked structures stay beside their correction; the saved editor returns on Reset. */
.molecule-check-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--red) 4%,var(--ground-2));}
.molecule-check-comparison[data-answer-mark=correct]{grid-template-columns:repeat(2,minmax(0,1fr));border-color:var(--line);background:color-mix(in srgb,var(--green) 4%,var(--ground-2));}
.molecule-check-comparison h3{font-size:15px;font-weight:650;margin:0 0 12px;}.molecule-check-comparison>div:first-child h3{color:var(--verdict-incorrect);}.molecule-check-comparison[data-answer-mark=correct]>div:first-child h3{color:var(--verdict-correct);}.molecule-check-comparison>div+div h3{color:var(--verdict-correct);}
.molecule-check-comparison .molecule{min-height:190px;}.molecule-check-comparison .small{overflow-wrap:anywhere;font-family:monospace;}
@media(max-width:1050px){.molecule-check-comparison{gap:12px;padding:12px;}}
.molecule-check-comparison>div{min-width:0}.molecule-check-comparison .molecule svg{display:block;width:100%;max-width:100%;height:auto}

.choice[data-answer-mark=correct]{border-color:var(--line);background:color-mix(in srgb,var(--verdict-correct) 9%,var(--ground-2));box-shadow:inset 3px 0 var(--verdict-correct);color:var(--ink)}
.choice[data-answer-mark=incorrect]:has(input:checked){border-color:var(--line);background:color-mix(in srgb,var(--verdict-incorrect) 9%,var(--ground-2));box-shadow:inset 3px 0 var(--verdict-incorrect);color:var(--ink)}
.choice[data-answer-mark=correct]:has(input:checked) input,.choice[data-answer-mark=incorrect]:has(input:checked) input{accent-color:var(--verdict-correct)}
.choice[data-answer-mark=incorrect]:has(input:checked) input{accent-color:var(--verdict-incorrect)}
.inline-choice-verdict{margin-left:auto;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap;background:color-mix(in srgb,currentColor 10%,var(--ground-2))}
.choice[data-answer-mark=correct] .inline-choice-verdict{color:var(--verdict-correct)}.choice[data-answer-mark=incorrect] .inline-choice-verdict{color:var(--verdict-incorrect)}.drawing-feedback{grid-column:1/-1;padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:var(--ground)}.drawing-feedback h3{margin:0 0 8px;font-size:16px}.drawing-feedback li{line-height:1.65;margin:6px 0}

.learn-reviewed-options>div{padding:12px;margin:6px 0;border:1px solid var(--line);border-radius:10px}.learn-reviewed-options .learn-part-correct{border-color:var(--line);background:color-mix(in srgb,var(--green) 7%,var(--ground-2));color:var(--verdict-correct)}.learn-reviewed-options .learn-part-missed{border-color:var(--line);background:color-mix(in srgb,var(--red) 7%,var(--ground-2));color:var(--verdict-incorrect)}

/* Molecule drawings inside answer options. Letter options (A–E) always show theirs; options written as names show theirs once answered. */
.choice{flex-wrap:wrap}.choice-structure{display:flex;flex-direction:column;align-items:center;gap:2px;flex:0 0 auto;margin-left:4px}.choice-structure em{font:500 12px/1.3 Manrope,sans-serif;font-style:normal;color:var(--ink-2)}
.choice-structure .molecule{width:190px;min-height:110px;display:grid;place-items:center}.choice-structure .molecule svg{width:190px;height:120px}
.choice-structure[data-mode=name]{display:none}[role=group]:has([data-inline-feedback]) .choice-structure[data-mode=name]{display:flex}
.choice:has(.choice-structure) .inline-answer-feedback{flex:1 1 220px}
.option-structure-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;margin:.75rem 0}.option-structure-gallery figure{margin:0;padding:.5rem;border:1px solid var(--hairline);border-radius:12px;text-align:center}.option-structure-gallery .molecule{display:block;min-height:110px}.option-structure-gallery figcaption{font-size:.8rem;color:var(--ink-2)}
.option-structure-gallery .molecule{display:grid;place-items:center;width:100%;min-height:0;height:130px;overflow:hidden}.option-structure-gallery .molecule svg{width:100%;max-width:180px;height:120px}

/* Review: your answer outlined red (wrong or partial) or green (right); the correct answer below in green. */
.review-answer-pair{display:grid;gap:.75rem}.review-answer-mine[data-mark],.review-answer-correct{border-radius:12px;padding:1rem 1.25rem}.review-answer-mine[data-mark=incorrect]{border:2px solid var(--red,#f87171)!important;background:rgba(248,113,113,.06)}.review-answer-mine[data-mark=correct]{border:2px solid var(--green,#4ade80)!important;background:rgba(74,222,128,.06)}.review-answer-correct{border:2px solid var(--green,#4ade80)!important;background:rgba(74,222,128,.06)}.review-answer-mine[data-mark=incorrect] h3{color:var(--red,#f87171)}.review-answer-mine[data-mark=correct] h3,.review-answer-correct h3{color:var(--green,#4ade80)}
.answer-structures{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.6rem}.answer-structures figure{margin:0;text-align:center}.answer-structures .molecule{display:grid;place-items:center;width:180px;height:120px;overflow:hidden}.answer-structures .molecule svg{width:180px;height:120px}.answer-structures figcaption{font-size:.8rem;color:var(--ink-2)}

/* The whole option box selects; right-click crosses a choice out. */
.choice-elimination-row {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:6px 12px;
  align-items:center;
  cursor:pointer;
}
.choice-elimination-content,.choice-elimination-label {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  min-width:0;
}
.choice-elimination-label { flex-wrap:nowrap; cursor:pointer; }
.choice-elimination-content>.choice-elimination-label:last-child { flex:1; }
.choice-elimination-text { min-width:0; overflow-wrap:anywhere; }
.choice-elimination-row>.inline-answer-feedback { grid-column:1/-1; }
.choice-elimination-row>.inline-choice-verdict { grid-column:1; justify-self:start; margin-left:0; }
.choice-elimination-row[data-eliminated=true],.choice-elimination-row[data-eliminated=true] .choice-elimination-label { cursor:default; }
.choice-elimination-row[data-eliminated=true] .choice-elimination-text { text-decoration:line-through; opacity:.6; }
.choice-elimination-row[data-eliminated=true] .choice-structure { opacity:.65; }
.choice-elimination-review { margin:12px 0; color:var(--ink-2,var(--ink)); }
.choice-elimination-review ul { margin:5px 0 0; padding-inline-start:1.25rem; }
@media(max-width:560px) {
  .choice-elimination-row.choice,.choice-elimination-row.learn-option { padding:8px 10px; gap:4px; }
  .choice-elimination-label { gap:6px 8px; }
}
