.site-shell #staff-panel:has(>.admin-workspace){padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.admin-workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:22px;align-items:start}
.admin-sidebar{position:sticky;top:16px;background:#fff9ed;border:1px solid #e2d4b7;border-radius:14px;padding:12px;min-width:0}
.site-shell #staff-panel .admin-section-menu{display:block;padding:0;margin:0;max-height:70vh;overflow-y:auto;border:0;border-radius:0;background:none;box-shadow:none}
.admin-sidebar-title{font-size:15px;font-weight:700;margin:3px 8px 16px;color:#264957}
.admin-menu-group{margin:0 0 18px}.site-shell #staff-panel .admin-menu-group h3{font:700 11px/1.4 system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#647463;margin:0 8px 7px}
.site-shell #staff-panel #admin-section-menu button{display:block;width:100%;height:auto;min-height:36px;margin:3px 0;padding:8px 10px;text-align:left;white-space:normal;overflow-wrap:normal;font:500 13px/1.4 system-ui,sans-serif;border:1px solid transparent;background:transparent;color:#24475b;box-shadow:none}
.site-shell #staff-panel #admin-section-menu button:hover{background:#f0ebdd;border-color:#e0d3ba;color:#24475b}.site-shell #staff-panel #admin-section-menu button[aria-current=page]{background:#992d48;color:white;border-color:#84243c;font-weight:650}
.admin-sidebar-exit{border-top:1px solid #e2d4b7;padding-top:12px}.site-shell #staff-panel .admin-sidebar-exit button{width:100%}
.admin-workarea{min-width:0;background:#fffaf0;border:1px solid #e6d9bf;border-radius:14px;padding:20px}
.admin-work-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;padding-bottom:18px;border-bottom:1px solid #e6d9bf;margin-bottom:18px}.admin-current-group{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#657462;margin:0 0 5px}.site-shell #staff-panel #admin-work-title{font-size:25px;margin:0;outline:none}
.admin-draft-note{font-size:11px;color:#8b3c24;background:#fff0d6;padding:4px 8px;border-radius:6px;max-width:130px}
.admin-pane[hidden],.admin-draft-note[hidden]{display:none!important}.admin-pane{min-width:0}.site-shell #staff-panel .admin-pane>.card{border:0;padding:0;margin:0;background:none;box-shadow:none}.admin-pane>.card>h2{display:none}.admin-pane>details{padding:14px 0;border-top:1px solid #e1d8c5}.admin-pane>details:first-child{border:0;padding-top:0}.admin-pane summary{cursor:pointer;font-weight:650}.admin-pane form{min-width:0}.admin-pane fieldset{min-width:0}.admin-pane .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-pane input,.admin-pane select{max-width:100%;min-width:0}
.admin-editor-frame{display:block;width:100%;border:0;min-height:180px;height:540px;background:transparent}
.site-shell #staff-panel .admin-mobile-toggle{display:none}
@media(min-width:851px){.site-shell #staff-panel #school-schedule-form .schedule-program-times{grid-template-columns:repeat(2,minmax(0,1fr));max-width:380px}.site-shell #staff-panel #school-schedule-form .schedule-editor-row{grid-template-columns:145px 145px minmax(0,1fr)}.site-shell #staff-panel #school-schedule-form .schedule-editor-row button{grid-column:3;justify-self:end}}
@media(max-width:760px){.admin-workspace{grid-template-columns:minmax(0,1fr);gap:14px}.admin-sidebar{position:static;padding:10px}.site-shell #staff-panel .admin-mobile-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:38px}.site-shell #staff-panel .admin-section-menu{display:none;max-height:55vh;margin-top:14px}.site-shell #staff-panel .admin-section-menu.is-open{display:block}.admin-sidebar-exit{margin-top:10px;padding-top:10px}.site-shell #staff-panel .admin-sidebar-exit button{width:auto}.admin-workarea{padding:16px}.admin-work-heading{flex-direction:column;gap:8px}.site-shell #staff-panel #admin-work-title{font-size:23px}}
@media(max-width:560px){.admin-pane .grid.two{grid-template-columns:minmax(0,1fr)}.admin-workarea{padding:12px}.admin-pane fieldset{padding:10px}.admin-workspace{gap:12px}}
html.admin-embedded,html.admin-embedded body{background:transparent!important}html.admin-embedded body{margin:0;padding:0;min-height:0}html.admin-embedded body:before,html.admin-embedded body:after,html.admin-embedded .site-shell:not(.admin-embed-root),html.admin-embedded #assistant,html.admin-embedded #assistant-toggle,html.admin-embedded .background-preview{display:none!important}
html.admin-embedded .admin-embed-root{display:block;max-width:none;margin:0;padding:0;background:transparent;box-shadow:none;border:0;color:#203e39}
html.admin-embedded #staff-panel>.card{padding:14px 0;margin-top:12px;border:0;background:transparent;box-shadow:none}html.admin-embedded #staff-panel>button{margin:0 8px 10px 0}html.admin-embedded #staff-panel input:not([type=checkbox]),html.admin-embedded #staff-panel select{min-height:32px;padding:4px 10px;max-width:100%}html.admin-embedded #staff-panel .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}html.admin-embedded #cancel-announcement{display:none}html.admin-embedded .announcement-toolbar{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:560px){html.admin-embedded #staff-panel .grid.two{grid-template-columns:minmax(0,1fr)}html.admin-embedded #staff-panel input:not([type=checkbox]),html.admin-embedded #staff-panel select{font-size:16px}}
.site-shell #staff-panel #admin-section-menu button[data-admin-section]:hover:not(:disabled){background:#f0ebdd;border-color:#e0d3ba;color:#24475b}
.site-shell #staff-panel #admin-section-menu button[data-admin-section][aria-current=page]:hover:not(:disabled){background:#84243c;color:#fff;border-color:#712037}
.site-shell #staff-panel button.admin-mobile-toggle:not(#menu-toggle){width:100%}

/* An embedded editor is itself #staff-panel; it has no .site-shell ancestor. */
html.admin-embedded .admin-embed-root#staff-panel button:not(#menu-toggle),
html.admin-embedded .admin-embed-root#staff-panel .button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-width:0;min-height:32px;height:auto;padding:5px 10px;font:500 12px/1.4 system-ui,sans-serif;border:1px solid #84243c;border-radius:6px!important;background:#992d48;color:#fff;box-shadow:none;white-space:normal;text-align:center}
html.admin-embedded .admin-embed-root#staff-panel button:not(#menu-toggle):hover:not(:disabled),
html.admin-embedded .admin-embed-root#staff-panel .button:hover{background:#84243c;border-color:#712037}
html.admin-embedded .admin-embed-root#staff-panel :is(input:not([type=checkbox]):not([type=radio]),select){box-sizing:border-box;width:100%;height:32px;min-height:32px;min-width:0;max-width:100%;padding:4px 9px;border-radius:6px;font-size:13px;line-height:1.4}
html.admin-embedded .admin-embed-root#staff-panel input[type=file]{height:auto;min-height:32px;padding:3px 6px}
html.admin-embedded .admin-embed-root#staff-panel input[type=file]::file-selector-button{font:inherit;padding:2px 7px;border:1px solid #a2afa0;border-radius:4px;background:#f6f5ee;color:inherit;cursor:pointer}
@media(pointer:coarse){html.admin-embedded .admin-embed-root#staff-panel button:not(#menu-toggle),html.admin-embedded .admin-embed-root#staff-panel .button{min-height:44px;padding:8px 12px}html.admin-embedded .admin-embed-root#staff-panel :is(input:not([type=checkbox]):not([type=radio]),select){font-size:16px;min-height:44px;height:auto}}
