.mg-workspace{max-width:1560px}.mg-workspace .sidebar{min-width:190px}.mg-workspace .workspace-content{min-width:0}.mg-workspace .workspace-heading h1{font-size:45px}.mg-workspace .workspace-heading>div>p{font-size:13px;max-width:620px}.mg-workspace .side-link{font-size:12px;padding:11px 12px}.mg-toolbar{display:flex;gap:12px;align-items:center;margin:28px 0 22px;flex-wrap:wrap}.mg-toolbar input,.mg-toolbar select{border:1px solid var(--line);border-radius:7px;background:#fefefe;padding:11px 13px;min-width:140px;font-size:12px}.mg-toolbar input{flex:1;min-width:200px}.mg-toolbar select{max-width:270px;flex:1}.mg-table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#faf7f0}.mg-table{width:100%;border-collapse:collapse;font-size:12px}.mg-table th{text-align:left;white-space:nowrap;padding:15px 18px;font-weight:550;background:#e5d9bb;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.04em}.mg-table td{padding:18px;border-bottom:1px solid var(--line);vertical-align:middle;min-width:90px;max-width:370px;overflow-wrap:anywhere}.mg-table tr:last-child td{border-bottom:0}.mg-table strong{display:block;font-size:13px;font-weight:550}.mg-table small{display:block;color:var(--muted);font-size:10px;margin:6px 0;line-height:1.5}.mg-table select{padding:8px;border:1px solid var(--line);border-radius:6px;font-size:11px;background:var(--paper);min-width:120px}.mg-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.mg-actions{display:flex;gap:8px;flex-wrap:wrap}.mg-actions .button,.mg-table .button{font-size:10px;padding:8px 12px;min-height:36px;white-space:nowrap}.mg-pill{display:inline-block;padding:3px 9px;border-radius:20px;font-size:9px;background:#e5d9bb;color:#685e55;white-space:nowrap;margin:2px 0}.mg-pill.good{background:#e5d9bb;color:#62100a}.mg-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:20px 0;font-size:11px;color:var(--muted)}.mg-pagination>span{margin-right:auto}.mg-pagination .button{font-size:10px;min-height:36px}.mg-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:25px 0}.mg-stats article{padding:24px;border:1px solid var(--line);border-radius:12px;background:#f4ead1}.mg-stats strong{display:block;font-size:39px;line-height:1.3;font-weight:500;letter-spacing:-.05em}.mg-stats span{font-size:11px;color:var(--muted)}.mg-empty{border:1px dashed var(--line);border-radius:12px;padding:35px;margin:25px 0}.mg-empty h2{font-size:25px}.mg-empty p{font-size:13px;color:var(--muted);margin:12px 0 20px}.mg-next{background:var(--green);color:var(--paper);border-radius:14px;padding:30px;margin:28px 0}.mg-next h2{font-size:32px}.mg-next p{font-size:13px;max-width:580px;margin:18px 0 24px}.mg-next .outline{border-color:#c7b795;color:var(--paper)}.mg-notice,.mg-success{background:#e5d9bb;padding:20px;border-radius:10px;font-size:13px;margin:22px 0}.mg-notice a{text-decoration:underline}.mg-success{background:#e5d9bb;color:#62100a}.mg-success h2,.mg-notice h2{font-size:26px;margin-bottom:12px}.mg-loading{font-size:13px;padding:30px;color:var(--muted)}.mg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mg-fieldset,.mg-question{border:1px solid var(--line);border-radius:11px;padding:22px;margin:24px 0;min-width:0}.mg-fieldset legend,.mg-question legend{padding:0 8px;font-size:12px;font-weight:550}.mg-question h3{font-size:20px;letter-spacing:-.02em;line-height:1.4;margin:7px 0 22px}.mg-fieldset .check-field{margin:10px 0}.mg-workspace .form-field{margin:20px 0}.mg-workspace .form-field input,.mg-workspace .form-field select,.mg-workspace .form-field textarea{width:100%;border:1px solid var(--line);background:#fefefe;border-radius:7px;padding:12px;font-size:13px}.mg-workspace .form-field textarea{min-height:110px;resize:vertical}.mg-section-title{font-size:28px;margin:38px 0 20px}.form-error{font-size:12px;color:#2b1a16;line-height:1.6;min-height:18px;margin:15px 0}.mg-course-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.mg-code{font-family:monospace;font-size:10px}.mg-export-note{margin:18px 0 25px}.mg-answer{display:flex;align-items:flex-start;gap:12px;padding:14px;margin:10px 0;border:1px solid var(--line);border-radius:9px;font-size:14px;cursor:pointer}.mg-answer input{margin-top:5px;accent-color:var(--green);width:16px;height:16px;flex-shrink:0}.mg-feedback{border-bottom:1px solid var(--line);padding:22px 0;font-size:13px}.mg-feedback strong{color:var(--green)}.mg-feedback p{margin:10px 0;line-height:1.7}.mg-attempt{font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.mg-learning{border-top:1px solid var(--line);padding:28px 0;margin:24px 0}.mg-learning h2{font-size:30px}.mg-learning h3{font-size:23px;margin:26px 0 18px}.mg-learning p{font-size:13px;color:var(--muted);margin:18px 0}.mg-learning .button{margin:7px 8px 7px 0;font-size:12px}.mg-downloads{display:flex;gap:10px;flex-wrap:wrap}.mg-certificate-callout{background:#e5d9bb;padding:20px;border-radius:12px;margin:25px 0}.mg-certificate-callout p{margin:0 0 14px}.mg-certificates{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.mg-certificates article{padding:28px;border-radius:12px;border:1px solid var(--line);background:#f4ead1}.mg-certificates h2{font-size:27px;margin:16px 0}.mg-certificates p{font-size:12px;margin:12px 0 24px}.course-teachers{padding:20px 0;border-top:1px solid var(--line);margin-top:25px}.course-teachers article{display:flex;gap:18px;margin:20px 0}.course-teachers img{width:58px;height:58px;border-radius:50%;object-fit:cover}.course-teachers strong{display:block;font-size:14px}.course-teachers p{font-size:12px;color:var(--muted);margin:8px 0;line-height:1.7}
@media(max-width:1050px){.mg-workspace .workspace-heading{align-items:flex-start}.mg-workspace .workspace-heading h1{font-size:37px}.mg-workspace .sidebar{min-width:160px}.mg-table td,.mg-table th{padding:13px}.mg-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-workspace .sidebar .side-link{padding:9px;font-size:11px}}
@media(max-width:760px){.mg-workspace .workspace-heading{display:block}.mg-workspace .workspace-heading .button{margin-top:18px}.mg-workspace .workspace-heading h1{font-size:35px}.mg-toolbar{gap:9px}.mg-toolbar input{min-width:100%;flex-basis:100%}.mg-toolbar select{max-width:none;min-width:130px}.mg-form-grid{grid-template-columns:1fr;gap:0}.mg-stats{gap:10px}.mg-stats article{padding:20px}.mg-stats strong{font-size:34px}.mg-table{min-width:620px}.mg-workspace .sidebar .side-link{padding:8px 10px}.mg-workspace .sidebar{display:flex;flex-wrap:wrap;gap:6px}.mg-workspace .sidebar .account-chip{flex-basis:100%}.mg-workspace .sidebar .side-divider,.mg-workspace .sidebar .account-sync{display:none}.mg-workspace .sidebar .side-link svg{width:14px;height:14px}.mg-next{padding:24px}.mg-question{padding:18px}.mg-certificates{grid-template-columns:1fr}.mg-pagination{flex-wrap:wrap}.mg-pagination>span{width:100%;margin-bottom:4px}.mg-course-shortcuts{gap:8px}}

/* Functions belong to the authenticated personal space. */
.staff-home{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:0 0 32px}.staff-entry{display:flex;gap:16px;border:1px solid #a18b60;background:#e5d9bb;border-radius:20px;padding:26px;text-decoration:none;color:var(--ink);transition:background .15s,transform .15s}.staff-entry:hover{background:#c7b795;transform:translateY(-2px)}.staff-entry:focus-visible,.staff-course:focus-visible{outline:3px solid #685e55;outline-offset:4px}.staff-entry-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:#62100a;color:#fefefe}.staff-entry-icon svg{width:22px;height:22px}.staff-entry small{display:block;font-size:10px;letter-spacing:.11em;margin:0 0 10px;color:#62100a}.staff-entry strong{display:block;font-size:24px;line-height:1.15;font-weight:500;letter-spacing:-.03em}.staff-entry p{font-size:14px;line-height:1.55;margin:12px 0 20px}.staff-entry-cta{font-size:13px;font-weight:600;display:flex;align-items:center;gap:12px}.staff-entry-cta svg{width:18px;height:18px}.staff-panel{padding:28px;background:#faf7f0;border:1px solid #c7b795;border-radius:20px;margin-bottom:24px;min-width:0}.staff-panel h2{margin:8px 0 20px;line-height:1.15}.staff-panel form{max-width:650px}.staff-form-note,.staff-role-note{background:#f4ead1;color:#62100a;padding:16px 18px;border-radius:10px;font-size:14px;line-height:1.6;margin:16px 0 22px}.staff-table small{display:block;margin-top:5px;max-width:300px;overflow-wrap:anywhere}.staff-table td .button{margin:3px}.staff-panel summary{cursor:pointer;font-size:18px}.staff-audit{list-style:none;padding:0;margin:20px 0 0}.staff-audit li{padding:12px 0;border-bottom:1px solid #e5d9bb;overflow-wrap:anywhere}.staff-audit small{display:block;margin-top:6px;color:#685e55}.staff-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-bottom:28px}.staff-course{display:block;border:1px solid #c7b795;border-radius:16px;padding:24px;color:inherit;text-decoration:none}.staff-course.selected{border-color:#62100a;background:#e5d9bb;box-shadow:inset 0 0 0 1px #62100a}.staff-course h2{font-size:26px;line-height:1.2;margin:16px 0}.staff-course p{font-size:14px}.staff-course svg{width:18px;height:18px}.staff-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px}.staff-pagination span{font-size:13px}.staff-workspace .workspace-heading{margin-top:24px}
@media(max-width:700px){.staff-home{grid-template-columns:1fr}.staff-entry{padding:22px}.staff-panel{padding:20px 16px}.staff-panel .section-head{align-items:flex-start;flex-direction:column;gap:12px}.staff-course-grid{grid-template-columns:1fr}.staff-entry strong{font-size:23px}}
