/* Multi-select: checkbox buttons, or the words of a sentence with a clickable gap after each. */
.multi { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.multi-options { display: flex; flex-direction: column; gap: 0.45rem; }
.multi-option { display: flex; align-items: center; gap: 0.7rem; width: 100%; font: inherit; text-align: left; padding: 0.65rem 0.9rem; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
.multi-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* The box is drawn without colour: an empty square, or a square holding a tick. */
.multi-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 5px; border: 2px solid var(--muted); background: var(--surface); color: transparent; font-size: 0.95rem; font-weight: 700; line-height: 1; }
.multi-option.is-chosen { border-color: var(--accent); background: var(--accent-soft); }
.multi-option.is-chosen .multi-tick { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.multi-option:hover:not(:disabled) { border-color: var(--accent); }
.multi-option.is-good, .multi-option.is-good.is-chosen { border-color: var(--good); background: var(--good-soft); }
.multi-option.is-good .multi-tick { border-color: var(--good); background: var(--good); color: var(--accent-text); }
.multi-option:disabled, .multi-gap:disabled { cursor: default; }

/* The group is what a wrong attempt marks, so no single option gives the key away. */
.multi-options.is-bad, .multi-sentence.is-bad { outline: 2px solid var(--bad); outline-offset: 4px; border-radius: 10px; }
.multi-options.is-good, .multi-sentence.is-good { outline: 2px solid var(--good); outline-offset: 4px; border-radius: 10px; }

/* Inline gaps: the sentence wraps like text. The last word of a segment (all of its pieces, when it holds markup such as Haus**tür**) stays with the gap after it; the unit is an inline block that can still break inside a very long word. */
.multi-sentence { margin: 0; font-size: 1.1rem; line-height: 2.3; overflow-wrap: anywhere; }
.multi-unit { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.multi-gap { display: inline-flex; align-items: center; justify-content: center; vertical-align: baseline; min-width: 28px; height: 2rem; margin: 0 1px; padding: 0 0.2rem; font: inherit; font-weight: 700; line-height: 1; border-radius: 8px; border: 1.5px dashed var(--muted); background: var(--bg); color: var(--text); cursor: pointer; }
.multi-gap:hover:not(:disabled) { border-color: var(--accent); }
.multi-gap.is-chosen { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.multi-gap.is-good, .multi-gap.is-good.is-chosen { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.multi-comma { display: inline-block; min-width: 0.4em; }
