/* SCOVER Arena EDU RICH-10C — scoped portal rich authoring and equation builder. */
.arena-edu-quiz-editor .ae-rich-tools{margin:7px 0 12px;min-width:0}
.arena-edu-quiz-editor .ae-rich-bar{display:flex;gap:6px;flex-wrap:wrap}
.arena-edu-quiz-editor .ae-rich-bar button{width:auto!important;min-width:0!important;padding:6px 9px!important;min-height:31px!important;border:1px solid #365571!important;border-radius:8px!important;background:#10243b!important;color:#daefff!important;font-size:11px!important;font-weight:800!important}
.arena-edu-quiz-editor .ae-rich-bar .ae-rich-remove{color:#ffb8c4!important;border-color:#6b3647!important}
.arena-edu-quiz-editor .ae-rich-bar button:disabled{opacity:.4!important;cursor:not-allowed}
.arena-edu-quiz-editor .ae-rich-preview{min-height:14px;border:1px dashed rgba(87,129,160,.4);border-radius:9px;margin-top:6px;padding:6px 8px;overflow-wrap:anywhere;font-size:13px}
.arena-edu-quiz-editor .ae-rich-preview:empty{padding:4px 6px}
.arena-edu-quiz-editor .ae-rich-preview-text{white-space:normal;line-height:1.6;overflow-x:auto}
.arena-edu-quiz-editor .ae-rich-preview small{display:block;font-size:10px;color:var(--muted,#9db0c7);margin-top:5px}
.arena-edu-quiz-editor .ae-rich-image{display:block;max-width:100%;width:auto;max-height:230px;object-fit:contain;border-radius:8px;margin-top:6px}
.arena-edu-quiz-editor .ae-rich-preview .arena-math-block{display:block;margin:7px 0}
.ae-visual-overlay{position:fixed;inset:0;z-index:9999;background:rgba(3,9,19,.84);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto;color:#edf6ff;font-family:Inter,system-ui,sans-serif}
.ae-visual-panel{width:min(670px,100%);max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #3d6385;border-radius:17px;padding:20px;background:#0c2034;box-shadow:0 24px 80px rgba(0,0,0,.48)}
.ae-visual-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
.ae-visual-head strong{display:block;font-size:18px;color:#e8f9ff}.ae-visual-head small{display:block;color:#a9bfd2;font-size:11px;margin-top:5px}
.ae-visual-head button{width:auto!important;min-width:38px!important;padding:7px!important;background:#122e48!important;color:#fff!important;border:1px solid #3d6385!important}
.ae-visual-label{display:grid;gap:5px;color:#d1e4f5;font-size:12px;font-weight:700}
.ae-visual-select,.ae-visual-fields input,.ae-visual-raw{display:block!important;width:100%!important;padding:11px!important;background:#051522!important;color:#e8f5ff!important;border:1px solid #3a5f7d!important;border-radius:9px!important;font-size:13px!important}
.ae-visual-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.ae-visual-result{padding:12px;border:1px solid #3b6382;background:#0e2b43;border-radius:11px;min-height:99px}
.ae-visual-result small{display:block;color:#bcd5e8;margin-bottom:10px;font-size:10px}
.ae-visual-preview{min-height:46px;overflow-x:auto;font-size:23px;color:#fff}
.ae-visual-advanced{margin:13px 0;color:#bdd3e5}.ae-visual-advanced summary{cursor:pointer;font-size:11px;font-weight:750}
.ae-visual-raw{margin-top:10px;font-family:ui-monospace,Consolas,monospace!important;resize:vertical}
.ae-visual-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.ae-visual-display{display:flex;align-items:center;gap:8px;font-size:11px;color:#d0dfed}.ae-visual-display input{width:auto!important}
.ae-visual-insert{width:auto!important;padding:11px 16px!important;background:linear-gradient(135deg,#67d9fd,#a48cfa)!important;color:#061525!important;font-weight:850!important}
.ae-visual-note{color:#93b0c7;font-size:10px;line-height:1.5;margin:12px 0 0}
@media(max-width:520px){.ae-visual-panel{padding:14px}.ae-visual-fields{grid-template-columns:1fr}.ae-visual-actions{flex-direction:column;align-items:stretch}.ae-visual-insert{width:100%!important}}
/* Existing portal answer labels use a 28px + flexible two-column grid; toolbar must span both. */
.arena-edu-quiz-editor .arena-edu-q-options label > .ae-rich-tools{grid-column:1/-1;width:100%;min-width:0}
