html body #dialog.instructor-modal403 .instructor-invitation813{margin:20px 0 0;padding:18px 0 0;border-top:1px solid #d1deeb}
html body #dialog.instructor-modal403 .instructor-invitation813 h3{margin:0 0 12px;font:600 15px/1.5 'RL67 UI',Arial,sans-serif;color:#173c60}
html body #dialog.instructor-modal403 .instructor-access-actions815{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(max-content,1.6fr);gap:12px;align-items:stretch}
html body #dialog.instructor-modal403 .instructor-access-actions815>[data-location-permission353]{white-space:nowrap}
html body #dialog.instructor-modal403 .instructor-access-actions815>button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;height:auto!important;min-height:48px!important;box-sizing:border-box;margin:0!important;padding:10px 12px!important;border:1px solid #c7d6e8!important;border-radius:5px;background:#edf3fa!important;color:#173c60!important;font:600 14px/1.4 'RL67 UI',Arial,sans-serif!important;text-align:center;white-space:normal}
html body #dialog.instructor-modal403 .instructor-access-actions815>button svg{width:20px;height:20px;flex:0 0 20px}
html body #dialog.instructor-modal403 .instructor-invitation813>p{margin:10px 0 0;font-size:12px;line-height:1.5}
html body #dialog.instructor-remove792{width:760px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important;padding:0!important}
html body #dialog.instructor-remove792 #dialog-body{display:flex!important;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden!important;padding:0!important}
html body #dialog.instructor-remove792 .instructor-card403{display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden}
html body #dialog.instructor-remove792 .instructor-card403>header{flex:0 0 auto}
html body #dialog.instructor-remove792 #instructor-remove-form792{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0}
html body #dialog.instructor-remove792 #instructor-remove-form792>.instructor-content403{flex:1 1 auto;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px!important}
html body #dialog.instructor-remove792 #instructor-remove-form792>footer{flex:0 0 auto;position:static!important;margin:0;padding:16px 24px;background:#edf1f6;border-top:1px solid #d1deeb}
@media(max-width:800px){
 html body #dialog.instructor-modal403 .instructor-access-actions815{grid-template-columns:minmax(0,1fr)}
 html body #dialog.instructor-modal403 .instructor-access-actions815>[data-location-permission353]{white-space:normal}
 html body #dialog.instructor-remove792 #instructor-remove-form792>.instructor-content403{padding:16px!important}
 html body #dialog.instructor-remove792 #instructor-remove-form792>footer{padding:12px 16px}
}
html body #dialog.instructor-ledger-dialog755 .ledger-head755{padding:18px 22px;gap:12px;min-height:76px}
html body #dialog.instructor-ledger-dialog755 .ledger-head755>svg{width:24px;height:24px;flex:0 0 24px}
html body #dialog.instructor-ledger-dialog755 .ledger-head755>h2{flex:1;min-width:0;margin:0!important;padding:0!important;font:700 18px/1.35 'RL67 UI',Arial,sans-serif!important;letter-spacing:normal;text-transform:uppercase;color:#fff!important}
html body #dialog.instructor-ledger-dialog755 .ledger-head755>button{width:32px;height:32px;flex:0 0 32px;padding:0 4px!important;font-size:28px;line-height:1;background:transparent;color:#fff;border:0}
html body #dialog.instructor-ledger-dialog755 .ledger-person817{margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #d1deeb;line-height:1.5}
html body #dialog.instructor-ledger-dialog755 .ledger-person817>span{display:block;margin-bottom:4px;font-size:13px;color:#61758b}
html body #dialog.instructor-ledger-dialog755 .ledger-person817>strong{display:block;font-size:16px;font-weight:600;color:#173c60;overflow-wrap:anywhere}
html body #dialog #rb-permission353 .rb-permission-enabled353{padding:12px 16px;min-height:56px;box-sizing:border-box;margin:0 0 20px;background:#edf3fa;border:1px solid #c7d6e8;border-radius:5px;gap:16px!important}
html body #dialog #rb-permission353 .rb-switch-control817{display:flex;align-items:center;gap:10px;flex-shrink:0}
html body #dialog #rb-permission353 [data-permission-status817]{font-size:13px;font-weight:600;color:#52677b}
html body #dialog #rb-permission353 [data-enabled=true] [data-permission-status817]{color:#245d9c}
html body #dialog #rb-permission353 input[name=enabled]{appearance:none!important;display:block;width:48px!important;height:28px!important;min-width:48px!important;flex:0 0 48px!important;border:1px solid #697f94!important;border-radius:16px!important;background:#8493a3!important;position:relative;margin:0!important;cursor:pointer;padding:0!important;box-sizing:border-box}
html body #dialog #rb-permission353 input[name=enabled]::before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #173c6040}
html body #dialog #rb-permission353 input[name=enabled]:checked{background:#245d9c!important;border-color:#245d9c!important}
html body #dialog #rb-permission353 input[name=enabled]:checked::before{left:23px}
html body #dialog #rb-permission353 input[name=enabled]:focus-visible{outline:3px solid #7ca9d5;outline-offset:3px}
html body #dialog #rb-permission353 .rb-grants353:disabled{opacity:.6}
html body #dialog #rb-permission353 .rb-grants353:disabled label{cursor:default}
@media(max-width:420px){html body #dialog #rb-permission353 .rb-permission-enabled353{flex-wrap:wrap}.rb-permission-enabled353 .rb-switch-control817{margin-left:auto}}

/* 4.824: stable dimensions and typography for instructor account dialogs. */
html body #dialog:has(#instructor-form){width:1000px!important;height:auto!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important}
html body #dialog:has(#admin-recovery-form){width:760px!important;height:auto!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important}
html body #dialog:has(#rb-permission353){width:760px!important;height:auto!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important}
html body #dialog:is(:has(#instructor-form),:has(#admin-recovery-form),:has(#rb-permission353))>#dialog-close{display:none!important}
html body #dialog:is(:has(#instructor-form),:has(#admin-recovery-form),:has(#rb-permission353))>#dialog-body{height:auto!important;max-height:calc(100dvh - 32px)!important;min-height:0;padding:0!important;overflow-y:auto!important}
html body #dialog:has(#admin-recovery-form) .recovery-head486,html body #dialog:has(#rb-permission353) .rb-permission-card384>header,html body #dialog:has(#instructor-form) .instructor-card403>header{display:flex!important;align-items:center;gap:12px;padding:18px 22px!important;min-height:76px;box-sizing:border-box}
html body #dialog:has(#admin-recovery-form) .recovery-head486>h2,html body #dialog:has(#rb-permission353) .rb-permission-card384>header>h2,html body #dialog:has(#instructor-form) .instructor-card403>header>h2{flex:1;margin:0!important;padding:0!important;border:0!important;text-align:left!important;font:700 18px/1.35 'RL67 UI',Arial,sans-serif!important;text-transform:uppercase;color:#fff!important}
html body #dialog:has(#admin-recovery-form) .recovery-head486>svg,html body #dialog:has(#rb-permission353) .rb-permission-card384>header>svg,html body #dialog:has(#instructor-form) .instructor-card403>header>svg{width:24px!important;height:24px!important;flex:0 0 24px}
html body #dialog:has(#admin-recovery-form) .recovery-head486>button,html body #dialog:has(#rb-permission353) .rb-permission-card384>header>button,html body #dialog:has(#instructor-form) .instructor-card403>header>button{width:32px!important;height:32px!important;min-height:32px!important;flex:0 0 32px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;font:400 28px/1 Arial,sans-serif!important}
html body #dialog:has(#admin-recovery-form) .recovery-content486{padding:20px 22px!important}
html body #dialog:has(#admin-recovery-form) .recovery-footer486{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 22px!important;margin:0!important;background:#edf1f6;border-top:1px solid #d1deeb}
html body #dialog:has(#admin-recovery-form) .recovery-footer486>button{min-height:44px;margin:0!important}
html body #dialog:has(#admin-recovery-form) [data-instructor-recovery-back805]{margin-right:auto!important}
html body #dialog:has(#instructor-form) .instructor-access-actions815>button svg{width:20px!important;height:20px!important;flex:0 0 20px}
@media(max-width:600px){html body #dialog:has(#admin-recovery-form) .recovery-content486{padding:16px!important}html body #dialog:has(#admin-recovery-form) .recovery-footer486{padding:12px 16px!important;flex-wrap:wrap}}

/* 4.845: one visual rhythm for single-line administrator section headings. */
html body #main.design249[data-design-role249="admin"] :is(.design-bar249,.tasks-heading239,.duplicate-heading310,.package-heading260,.package-heading544){min-height:74px!important;padding:18px 20px!important;box-sizing:border-box!important}

/* 4.842: account editor follows its content instead of keeping empty space. */
@media(min-width:651px){
 html body #dialog.instructor-modal403:has(#instructor-form){height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important}
 html body #dialog.instructor-modal403:has(#instructor-form)>#dialog-body{height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:visible!important}
 html body #dialog.instructor-modal403:has(#instructor-form) .instructor-card403{height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important}
 html body #dialog.instructor-modal403:has(#instructor-form) #instructor-form{flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
 html body #dialog.instructor-modal403:has(#instructor-form) .instructor-content403{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
}

/* 4.826: recovery dialogs size to their content, including the client profile entry point. */
html body #dialog:has(#admin-recovery-form){min-height:0!important;height:auto!important}
html body #dialog:has(#admin-recovery-form)>#dialog-body{height:auto!important;min-height:0!important;flex:0 1 auto!important;gap:0!important}
html body #dialog:has(#admin-recovery-form) .recovery-content486{flex:0 1 auto!important;height:auto!important;min-height:0!important}
html body #dialog:has(#admin-recovery-form) #admin-recovery-form{height:auto!important;min-height:0!important}
html body #dialog:has(#admin-recovery-form) [data-recovery-demo826][hidden]{display:none!important}
html body #dialog:has(#admin-recovery-form) .recovery-footer486{flex:0 0 auto!important}
