/* Preview: Options learning and context help. UI only, no site-wide layout changes. */
#opts .moi-edu-host{position:relative}
#opts .oi-head.moi-edu-host{padding-inline-end:54px}
#opts .oi-ctl.moi-edu-host{padding-inline-end:36px}
#opts .oi-ch.moi-edu-host{align-items:center}
#opts .oi-ch.moi-edu-host .moi-edu-q{margin-inline-start:auto}
#opts .oi-k.moi-edu-host{padding-inline-end:35px}
#opts .moi-edu-q{display:inline-grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;border:1px solid rgba(226,184,92,.83);background:#1a1d22;color:#f9d17b;font:800 12px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 0 10px rgba(226,184,92,.12);z-index:5}
#opts .oi-head>.moi-edu-q{position:absolute;top:16px;inset-inline-end:17px}
#opts .oi-ctl>.moi-edu-q{position:absolute;top:9px;inset-inline-end:4px}
#opts .oi-k>.moi-edu-q{position:absolute;top:9px;inset-inline-end:9px}
#opts .moi-edu-q:hover,#opts .moi-edu-q:focus-visible{background:#e9c36b;color:#11150e;outline:2px solid #d1a84f;outline-offset:2px}
#opts .moi-learning-shortcut{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;border:1px solid rgba(212,166,79,.38);border-radius:12px;background:rgba(31,43,57,.6);padding:11px 14px;font-size:12px;line-height:1.8}
#opts .moi-learning-shortcut strong{color:#f2d189}
#opts .moi-learning-shortcut span{color:#c3cfe0}
#opts .moi-learning-shortcut a{margin-inline-start:auto;color:#f6d382;font-weight:700;text-decoration:underline}
.moi-edu-open{overflow:hidden}
.moi-edu-modal[hidden]{display:none!important}
.moi-edu-modal{position:fixed;inset:0;z-index:2147482800;display:grid;place-items:center;padding:18px;direction:rtl}
.moi-edu-scrim{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(4px)}
.moi-edu-dialog{position:relative;display:flex;flex-direction:column;max-width:680px;width:100%;max-height:min(810px,91vh);background:#132039;color:#e6f0fc;border:1px solid #b48a48;border-radius:18px;box-shadow:0 25px 90px rgba(0,0,0,.62);overflow:hidden}
.moi-edu-header{padding:18px 23px 12px;background:linear-gradient(110deg,#263957,#162439);border-bottom:1px solid rgba(226,184,92,.36);display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.moi-edu-header small{color:#cfb574;font-size:10px;letter-spacing:1px}
.moi-edu-header h2{margin:8px 0 5px;color:#f7d782;font-size:21px;line-height:1.55}
.moi-edu-header p{margin:0;color:#c5d5e8;font-size:12px;line-height:1.75}
#moiEduClose{border:1px solid #b38c49;color:#f9d37c;background:#182439;font:400 25px/1 sans-serif;border-radius:9px;width:36px;height:36px;cursor:pointer;flex:none}
.moi-edu-body{padding:6px 23px 20px;overflow:auto;overscroll-behavior:contain}
.moi-edu-body section{border-bottom:1px solid rgba(165,196,232,.19);padding:13px 0}
.moi-edu-body section:last-child{border-bottom:none}
.moi-edu-body h3{font-size:14px;color:#ebcb80;margin:0 0 5px}
.moi-edu-body p{font-size:13px;line-height:1.95;color:#dce8f7;margin:0;white-space:pre-wrap}
.moi-edu-caution{background:rgba(195,119,74,.08);padding:13px!important;border-radius:10px}
.moi-edu-footer{padding:12px 22px;border-top:1px solid rgba(165,196,232,.22);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#0e1a2d}
.moi-edu-footer a{color:#f0c879;font-size:13px;font-weight:700;text-decoration:underline}
.moi-edu-footer button{background:#c6a35f;color:#151b22;border:0;border-radius:9px;padding:10px 15px;font-weight:800;cursor:pointer}
.moi-edu-dialog button:focus-visible,.moi-edu-dialog a:focus-visible{outline:2px solid #f8df95;outline-offset:2px}
html[data-th=light] .moi-edu-dialog,html[data-theme=light] .moi-edu-dialog{background:#f8fbff;color:#1e344f}
html[data-th=light] .moi-edu-header,html[data-theme=light] .moi-edu-header{background:#e8f1ff}
html[data-th=light] .moi-edu-body p,html[data-theme=light] .moi-edu-body p{color:#2f4865}
html[data-th=light] .moi-edu-header p,html[data-theme=light] .moi-edu-header p{color:#456381}
html[data-th=light] .moi-edu-footer,html[data-theme=light] .moi-edu-footer{background:#e6f0fd}
@media(max-width:640px){#opts .moi-learning-shortcut a{margin-inline-start:0}.moi-edu-modal{padding:8px}.moi-edu-header,.moi-edu-body,.moi-edu-footer{padding-inline:14px}.moi-edu-header h2{font-size:18px}#opts .oi-ch{gap:5px}#opts .oi-ch h3{font-size:14px}}
/* Normalize global app button defaults for compact icon-only questions. */
#opts .moi-edu-q{min-height:23px!important;max-height:23px!important;min-width:23px!important;max-width:23px!important;padding:0!important;line-height:1!important}
