/* Open answer: a text area, then the model answer and a rubric of checkbox rows to self-rate. */
.open { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.open-input { display: block; width: 100%; box-sizing: border-box; min-height: 8rem; padding: 0.7rem 0.85rem; font: inherit; line-height: 1.5; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; resize: vertical; }
.open-input:disabled { color: var(--muted); }
.open-input.is-bad { border-color: var(--bad); }
.open-count { align-self: flex-end; }

.open-review { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; min-width: 0; }
.open-heading { margin: 0 0 0.4rem; padding: 0; font-size: 1rem; font-weight: 700; }
.open-model { padding: 0.8rem 0.95rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface-2); overflow-wrap: anywhere; }
.open-model-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }

.open-rubric { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.open-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.open-rubric-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.open-rubric-item { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; padding: 0.55rem 0.9rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); cursor: pointer; box-sizing: border-box; }
.open-rubric-item:hover { border-color: var(--accent); }
.open-rubric-item:has(.open-check:checked) { border-color: var(--accent); background: var(--accent-soft); }
.open-rubric-item:has(.open-check:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.open-check { flex: none; width: 1.4rem; height: 1.4rem; margin: 0.05rem 0 0; accent-color: var(--accent); cursor: pointer; }
.open-rubric-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.open-tally { margin: 0; }
.open-done { align-self: flex-start; max-width: 100%; white-space: normal; text-align: left; min-height: 44px; }

/* Solved or solution opened: the model answer sits under the text area and wraps like text. */
.open-model:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.open .open-model { margin-top: 0.6rem; }
