/* Made by Matt — additive teacher workflow layer v1.0.0 */
:root{--mbm-tw-navy:#161d3d;--mbm-tw-card:#fffdf6;--mbm-tw-ink:#1b2140;--mbm-tw-muted:#59627d;--mbm-tw-mint:#b9e6cd;--mbm-tw-mint-deep:#2f6b4d;--mbm-tw-amber:#e08a2e;--mbm-tw-line:#d7d2c7;--mbm-tw-shadow:0 10px 28px rgba(22,29,61,.22)}
#mbm-teacher-launcher{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:2147483000;min-height:44px;border:0;border-radius:999px;padding:0 16px;background:var(--mbm-tw-navy);color:#fff;font:800 13px/1.2 "Segoe UI",system-ui,sans-serif;box-shadow:var(--mbm-tw-shadow);cursor:pointer;touch-action:manipulation}
#mbm-teacher-launcher:focus-visible,.mbm-tw-dialog button:focus-visible,.mbm-tw-dialog input:focus-visible{outline:3px solid var(--mbm-tw-amber);outline-offset:3px}
.mbm-tw-dialog{border:0;border-radius:18px;padding:0;width:min(760px,calc(100vw - 24px));max-width:760px;background:var(--mbm-tw-card);color:var(--mbm-tw-ink);box-shadow:0 24px 80px rgba(0,0,0,.42);font-family:"Segoe UI",system-ui,sans-serif}
.mbm-tw-dialog::backdrop{background:rgba(5,8,26,.72);backdrop-filter:blur(3px)}
.mbm-tw-head{display:flex;align-items:center;gap:10px;padding:13px 15px;background:var(--mbm-tw-navy);color:#fff}.mbm-tw-head strong{font-size:17px}.mbm-tw-head span{font-size:9px;letter-spacing:.16em;color:var(--mbm-tw-mint);font-weight:800}.mbm-tw-spacer{flex:1}.mbm-tw-close{min-width:44px!important;min-height:44px!important;border:0;border-radius:10px;background:rgba(255,255,255,.14)!important;color:#fff!important;font-size:22px!important;cursor:pointer}
.mbm-tw-body{padding:15px}.mbm-tw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mbm-tw-field{display:flex;flex-direction:column;gap:5px}.mbm-tw-field.wide{grid-column:1/-1}.mbm-tw-field label{font-size:12px;font-weight:800;color:var(--mbm-tw-muted)}.mbm-tw-field input{width:100%;min-height:44px;border:2px solid var(--mbm-tw-line);border-radius:10px;background:#fff;color:var(--mbm-tw-ink);padding:9px 10px;font:inherit;box-sizing:border-box}
.mbm-tw-note{margin:10px 0 0;padding:10px 12px;border-left:5px solid var(--mbm-tw-amber);border-radius:8px;background:#fff4df;color:#4b3b22;font-size:12.5px;line-height:1.45}.mbm-tw-note b{display:block}.mbm-tw-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.mbm-tw-actions button,.mbm-tw-handoff{min-height:44px;border:0;border-radius:10px;padding:0 13px;background:#eef0f5;color:var(--mbm-tw-ink);font:800 12.5px/1.2 "Segoe UI",system-ui,sans-serif;cursor:pointer;touch-action:manipulation}.mbm-tw-actions button.primary,.mbm-tw-handoff{background:var(--mbm-tw-mint-deep);color:#fff}.mbm-tw-actions button.amber{background:var(--mbm-tw-amber);color:#161d3d}.mbm-tw-status{min-height:22px;margin-top:9px;font-weight:700;color:var(--mbm-tw-mint-deep);font-size:12.5px}
.mbm-tw-handoff{display:inline-flex;align-items:center;justify-content:center;margin:6px 0;box-shadow:none}
@media(max-width:620px){.mbm-tw-grid{grid-template-columns:1fr}.mbm-tw-field.wide{grid-column:auto}.mbm-tw-actions button{flex:1 1 145px}.mbm-tw-dialog{width:calc(100vw - 16px)}}
@media(prefers-reduced-motion:reduce){#mbm-teacher-launcher,.mbm-tw-dialog,.mbm-tw-dialog *{transition:none!important;animation:none!important}}
@media print{#mbm-teacher-launcher,.mbm-tw-dialog,.mbm-tw-handoff{display:none!important}}
