/* Misiarium 12.4.12 — one action vocabulary for native lesson submission.
 * Scoped to lesson actions. Does not recolor exercise-choice buttons,
 * drawing canvases, code editors, quizzes or teacher control surfaces.
 */
body.magic90-lesson {
 --m12412-green:#08634b;
 --m12412-green-dark:#044632;
 --m12412-border:#176650;
 --m12412-focus:#e39527;
}
/* The two submission paths must look and behave alike. */
body.magic90-lesson .mw139-panel :is(button.mw139-submit,button.wl12410-submit,button.m12412-btn),
body.magic90-lesson form#mission-work-form11239 button[type="submit"],
body.magic90-lesson .wl12410-admin-preview button.m12412-btn,
body.magic90-lesson .f111-card button[type="submit"],
body.magic90-lesson .wl12410-inline-link button[type="submit"]{
 box-sizing:border-box!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:.45rem!important;
 min-height:52px!important;
 min-width:205px!important;
 max-width:100%!important;
 padding:12px 18px!important;
 margin:7px 0!important;
 border:2px solid var(--m12412-border)!important;
 border-radius:12px!important;
 background:#e9f5ef!important;
 color:#164939!important;
 -webkit-text-fill-color:currentColor!important;
 box-shadow:0 2px 6px rgba(0,39,26,.1)!important;
 font-family:inherit!important;
 font-size:1rem!important;
 font-weight:800!important;
 line-height:1.35!important;
 text-align:center!important;
 text-decoration:none!important;
 white-space:normal!important;
 vertical-align:middle!important;
 overflow-wrap:anywhere!important;
 cursor:pointer!important;
 transition:background-color .15s, border-color .15s, box-shadow .15s!important;
}
/* An actual SUBMISSION is primary, whether file, link or free text. */
body.magic90-lesson .mw139-panel :is(button.mw139-submit,button.wl12410-submit,button.m12412-btn--primary):not(:disabled),
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="submit"]:not(:disabled),
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="submit_file11239"]:not(:disabled),
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="finish_class"]:not(:disabled),
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="thinking_submit11968"]:not(:disabled),
body.magic90-lesson .wl12410-inline-link button[type="submit"][value="submit"]:not(:disabled) {
 background:var(--m12412-green)!important;
 border-color:var(--m12412-green-dark)!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
body.magic90-lesson .mw139-panel :is(button.mw139-submit,button.wl12410-submit,button.m12412-btn--primary):not(:disabled):hover,
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="submit"]:not(:disabled):hover,
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="submit_file11239"]:not(:disabled):hover,
body.magic90-lesson form#mission-work-form11239 button[type="submit"][value="finish_class"]:not(:disabled):hover{
 background:var(--m12412-green-dark)!important;
 border-color:#032f22!important;
}
body.magic90-lesson .mw139-panel button:disabled,
body.magic90-lesson form#mission-work-form11239 button[type="submit"]:disabled,
body.magic90-lesson .f111-card button[type="submit"]:disabled,
body.magic90-lesson .wl12410-inline-link button[type="submit"]:disabled{
 /* Disabled but not a tiny grey illegible widget. */
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 min-height:52px!important;
 min-width:205px!important;
 padding:12px 18px!important;
 border:2px dashed #6a9889!important;
 border-radius:12px!important;
 background:#e5efeb!important;
 color:#365a4d!important;
 -webkit-text-fill-color:#365a4d!important;
 opacity:1!important;
 box-shadow:none!important;
 font:inherit!important;
 font-weight:800!important;
 line-height:1.35!important;
 text-align:center!important;
 white-space:normal!important;
 cursor:not-allowed!important;
}
body.magic90-lesson .mw139-panel button:focus-visible,
body.magic90-lesson form#mission-work-form11239 button:focus-visible,
body.magic90-lesson .f111-card button:focus-visible,
body.magic90-lesson .wl12410-inline-link button:focus-visible {
 outline:3px solid var(--m12412-focus)!important;
 outline-offset:3px!important;
}
/* The file and link inputs also share dimensions and visual language. */
body.magic90-lesson .mw139-upload :is(input[type="file"],input[type="url"]),
body.magic90-lesson .wl12410-inline-link input[type="url"]{
 box-sizing:border-box!important;
 width:100%!important;
 max-width:100%!important;
 min-height:52px!important;
 border:2px solid #6f9e91!important;
 border-radius:11px!important;
 padding:12px 14px!important;
 background:#fff!important;
 color:#163e34!important;
 font:inherit!important;
}
body.magic90-lesson .mw139-upload input:focus-visible{
 outline:3px solid var(--m12412-focus)!important;outline-offset:3px!important;
}
body.magic90-lesson .mw139-upload :is(.mw139-file-choice,.wl12410-file-choice,.wl12410-link-choice){
 border-radius:14px!important;
}
/* Read-only owner preview uses the SAME visual controls, not browser default. */
body.magic90-lesson .m12412-submit-options{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px;margin:14px 0;
}
body.magic90-lesson .m12412-preview-option{
 min-width:0;background:#f7fbf9;border:1px solid #a9c5bb;border-radius:13px;
 padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:7px;
}
body.magic90-lesson .m12412-preview-option h5{
 margin:0 0 7px;font-size:1.04rem;line-height:1.4;color:#173c31;
}
body.magic90-lesson .m12412-preview-option label{margin:0 0 5px!important;}
body.magic90-lesson .m12412-preview-option :is(button,input){width:100%!important;}
body.magic90-lesson .m12412-preview-option button{margin-top:auto!important;}
body.magic90-lesson .m12412-readonly-note{
 background:#edf6f1;border-left:4px solid #0e6850;
 padding:12px;border-radius:8px;color:#23483f;font-size:.95rem;
}
body.magic90-lesson .m12412-readonly-note a{
 color:#07543f!important;-webkit-text-fill-color:#07543f!important;
 text-decoration:underline!important;font-weight:800;
}
/* Keep actionable links distinguished from submissions. */
body.magic90-lesson .mw139-panel .mw126-links a,
body.magic90-lesson .mw139-panel .wl12410-check{
 min-height:48px;box-sizing:border-box;border-radius:11px;
}
@media (max-width:640px){
 body.magic90-lesson .mw139-panel :is(button.mw139-submit,button.wl12410-submit,button.m12412-btn),
 body.magic90-lesson form#mission-work-form11239 button[type="submit"],
 body.magic90-lesson .m12412-submit-options button{
  width:100%!important;min-width:0!important;
 }
 body.magic90-lesson .mw139-panel .wl12410-actions{align-items:stretch;flex-direction:column;}
}
@media (prefers-reduced-motion:reduce){
 body.magic90-lesson .mw139-panel button,body.magic90-lesson form#mission-work-form11239 button{transition:none!important;}
}
