.rich-field{display:flex;flex-direction:column;gap:8px;min-width:0}.rich-field>label{font-weight:600}.rich-editor-shell{min-width:0;border:1px solid #d9e2e0;border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}.rich-editor-shell:focus-within{border-color:#218a75;box-shadow:0 0 0 3px #218a7514}.rich-editor-shell .ql-toolbar.ql-snow{border:0;border-bottom:1px solid #e3ebe8;border-radius:12px 12px 0 0;background:#f7faf9;padding:9px 10px;line-height:1.8}.rich-editor-shell .ql-container.ql-snow{border:0;font-family:inherit;font-size:15px}.rich-editor-shell .ql-editor{min-height:190px;line-height:1.85;padding:16px;overflow-wrap:anywhere}.rich-field-compact .ql-editor{min-height:110px}.rich-editor-shell .ql-editor.ql-blank:before{font-style:normal;color:#7b8985;left:16px;right:16px}.rich-editor-shell .ql-toolbar button{min-height:28px}.rich-editor-shell .ql-toolbar button.ql-undo,.rich-editor-shell .ql-toolbar button.ql-redo{font-size:22px;line-height:20px;color:#44544f}.rich-editor-shell .ql-toolbar button.rich-alt-button{font-size:11px;font-weight:700}.rich-editor-shell .ql-toolbar.ql-snow .ql-formats{margin-right:10px;margin-bottom:3px}.rich-editor-shell .ql-picker.ql-header{width:114px}.rich-editor-shell .ql-picker.ql-header .ql-picker-label:before{content:'ข้อความปกติ'}.rich-editor-shell .ql-picker.ql-header .ql-picker-item:before{content:'ข้อความปกติ'}.rich-editor-shell .ql-picker.ql-header [data-value='1']:before{content:'หัวข้อใหญ่'}.rich-editor-shell .ql-picker.ql-header [data-value='2']:before{content:'หัวข้อกลาง'}.rich-editor-shell .ql-picker.ql-header [data-value='3']:before{content:'หัวข้อย่อย'}.rich-editor-shell .ql-picker-options{z-index:10}.rich-editor-status{font-size:12px;line-height:1.6;margin:0;padding:0 16px 10px;color:#667b71;min-height:10px}.rich-editor-status:empty{padding-bottom:2px}.rich-editor-status.is-error{color:#b53d3d}.rich-editor-shell[aria-busy=true]{border-color:#d6ac5b}.rich-content{overflow-wrap:anywhere;line-height:1.85;min-width:0}.rich-content p{margin:0 0 .8em}.rich-content>:first-child{margin-top:0}.rich-content>:last-child{margin-bottom:0}.rich-content img,.rich-editor-shell .ql-editor img{max-width:100%;height:auto;vertical-align:middle;border-radius:6px}.rich-editor-shell .ql-editor img{cursor:pointer}.rich-content h1{font-size:1.65em}.rich-content h2{font-size:1.4em}.rich-content h3{font-size:1.2em}.rich-content ul,.rich-content ol{padding-left:1.7em;margin:.65em 0}.rich-content blockquote{border-left:3px solid #a5cbbb;margin:1em 0;padding:.25em 1em;color:#52645d}.rich-content pre{white-space:pre-wrap;background:#f2f5f4;padding:14px;border-radius:8px;overflow:auto}.rich-content code{font-family:monospace;background:#f2f5f4;border-radius:3px}.rich-content a{color:#13775f;text-decoration:underline}.rich-content .ql-align-center{text-align:center}.rich-content .ql-align-right{text-align:right}.rich-content .ql-align-justify{text-align:justify}.rich-content .ql-size-small{font-size:.75em}.rich-content .ql-size-large{font-size:1.5em}.rich-content .ql-size-huge{font-size:2.5em}.rich-content .ql-indent-1{padding-left:3em}.rich-content .ql-indent-2{padding-left:6em}.rich-content .ql-indent-3{padding-left:9em}.rich-content .ql-indent-4{padding-left:12em}.rich-content .ql-indent-5{padding-left:15em}.rich-content .ql-indent-6{padding-left:18em}.rich-content .ql-indent-7{padding-left:21em}.rich-content .ql-indent-8{padding-left:24em}.rich-content li[data-list=bullet]{list-style-type:disc}.question-prompt{margin-bottom:18px}.question-option-preview{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin:7px 0;border-radius:8px;background:#f7f9f8}.question-option-preview>.rich-content{flex:1}.question-option-preview.correct-option{background:#e9f5ee;color:#225c42}.question-explanation{border-top:1px solid #e1e9e4;margin-top:18px;padding-top:14px}.question-explanation>.rich-content{margin-top:8px}.answer-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #dfe7e3;border-radius:10px;padding:14px;margin:10px 0;cursor:pointer}.answer-option:has(input:checked){border-color:#268966;background:#f0f8f4}.answer-option:focus-within{outline:2px solid #268966;outline-offset:2px}.answer-option input[type=radio]{width:18px;height:18px;flex-shrink:0;margin:5px 0 0;accent-color:#248260}.answer-content{display:flex;gap:10px;flex:1;min-width:0}.answer-content>.rich-content{flex:1}.quiz-review{border-top:1px solid #e3e9e6;margin-top:24px;padding-top:24px}.quiz-correct{background:#edf6ef;border-radius:10px;padding:14px;margin:15px 0}.quiz-correct>.rich-content{margin-top:8px}.rich-editor-shell .ql-toolbar button:focus-visible,.rich-editor-shell .ql-picker-label:focus-visible{outline:2px solid #218a75;outline-offset:1px;border-radius:3px}.rich-editor-shell .ql-editor[aria-invalid=true]{box-shadow:inset 0 0 0 2px #b53d3d}.ql-tooltip{max-width:calc(100vw - 48px)}
@media(max-width:640px){.rich-editor-shell .ql-toolbar.ql-snow{padding:7px 6px}.rich-editor-shell .ql-toolbar.ql-snow .ql-formats{margin-right:6px}.rich-editor-shell .ql-toolbar button{width:30px;height:30px}.rich-editor-shell .ql-editor{padding:12px;min-height:170px}.rich-field-compact .ql-editor{min-height:100px}.answer-option{padding:12px 10px;gap:8px}.answer-content{gap:8px}.rich-content [class*='ql-indent-']{padding-left:2em}}
