.ed-lesson-check{margin:26px 0;padding:22px;background:#fffaf0;border:1px solid #dacb9d;border-radius:14px;color:#173a63}
.ed-lesson-check h2{margin:0 0 10px;font-size:25px}
.ed-lesson-check .ed-check-intro{margin:0 0 16px;line-height:1.5}
.ed-lesson-check fieldset{margin:0 0 18px;padding:14px;border:1px solid #ccd9e7;border-radius:10px;min-width:0;background:#fff}
.ed-lesson-check legend{font-weight:600;padding:0 5px;line-height:1.5}
.ed-lesson-check label{display:flex;align-items:center;gap:10px;margin:7px 0;padding:10px;min-height:44px;border:2px solid transparent;border-radius:7px;cursor:pointer;line-height:1.4}
.ed-lesson-check input[type=radio]{flex-shrink:0;width:18px;height:18px;margin:0;accent-color:#173a63}
.ed-lesson-check label:hover{background:#edf4ff}
.ed-lesson-check label:focus-within{outline:3px solid #bd8200;outline-offset:1px}
.ed-lesson-check .ed-answer-right{border-color:#327547;background:#edf8ef}
.ed-lesson-check .ed-answer-wrong{border-color:#a04834;background:#fff1ed}
.ed-lesson-check .ed-check-feedback{margin:10px 0 0;line-height:1.5;font-size:15px}
.ed-lesson-check .ed-check-actions{display:flex;gap:10px;flex-wrap:wrap}
.ed-lesson-check button{font:inherit;font-weight:600;border:1px solid #173a63;border-radius:8px;padding:11px 15px;min-height:44px;cursor:pointer;color:#fff;background:#173a63}
.ed-lesson-check [data-check-retry]{background:#fff;color:#173a63}
.ed-lesson-check button:focus-visible{outline:3px solid #bd8200;outline-offset:3px}
.ed-lesson-check .ed-check-result{min-height:1.5em;margin:12px 0 0;font-weight:600;line-height:1.5}
.ed-lesson-check [hidden]{display:none!important}
@media(max-width:520px){.ed-lesson-check{padding:15px}.ed-lesson-check fieldset{padding:10px}}
@media print{.ed-lesson-check{display:none!important}}

/* Keep questions in normal flow and allow narrow mobile layouts to wrap. */
.ed-lesson-check { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; min-width: 0; }
.ed-lesson-check fieldset { display: flow-root; width: 100%; max-width: 100%; }
.ed-lesson-check legend { float: left; display: block; width: 100%; max-width: 100%; margin: 0 0 12px; padding: 0; white-space: normal; overflow-wrap: anywhere; }
.ed-lesson-check fieldset > label { clear: both; align-items: flex-start; width: 100%; min-width: 0; }
.ed-lesson-check label > span { flex: 1 1 0%; min-width: 0; overflow-wrap: anywhere; }
.ed-lesson-check input[type=radio] { margin-top: .2em; }
@media (max-width: 520px) {
 .ed-lesson-check { width: 100%; padding: 14px; }
 .ed-lesson-check fieldset { padding: 12px; }
 .ed-lesson-check legend, .ed-lesson-check label { font-size: 18px; line-height: 1.5; }
 .ed-lesson-check label { gap: 10px; padding: 10px 6px; }
}
