.h4bs-staff-admin{max-width:1500px}.h4bs-staff-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:20px 0}.h4bs-staff-header h1{margin:0 0 6px}.h4bs-staff-commands,.h4bs-staff-toolbar,.h4bs-staff-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.h4bs-staff-commands button,.h4bs-staff-toolbar button,.h4bs-staff-actions button,.h4bs-staff-admin .nav-tab{min-height:44px}.h4bs-staff-toolbar{padding:18px 0}.h4bs-staff-toolbar label{display:grid;gap:5px}.h4bs-staff-toolbar input,.h4bs-staff-toolbar select{min-height:44px;min-width:180px}.h4bs-staff-row{display:grid;grid-template-columns:44px 64px minmax(200px,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #c3c4c7;background:#fff;margin:0 0 8px}.h4bs-staff-drag{width:44px;height:44px;border:0;background:transparent;cursor:grab}.h4bs-staff-thumb{width:64px;height:64px;background:#eef2f6;overflow:hidden}.h4bs-staff-thumb img{width:100%;height:100%;object-fit:cover}.h4bs-staff-summary{display:grid;gap:3px}.h4bs-staff-summary strong{font-size:15px}.h4bs-staff-summary span,.h4bs-staff-summary small{color:#50575e}.h4bs-staff-admin dialog{width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - 40px);padding:0;border:1px solid #8c8f94}.h4bs-staff-admin dialog::backdrop{background:rgba(0,0,0,.52)}.h4bs-staff-admin dialog form>header,.h4bs-staff-admin dialog form>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#f6f7f7;position:sticky;z-index:2}.h4bs-staff-admin dialog form>header{top:0}.h4bs-staff-admin dialog form>footer{bottom:0;justify-content:flex-end}.h4bs-staff-admin dialog form>header h2{margin:0}.h4bs-staff-admin [data-staff-editor-fields]{padding:20px;overflow:auto}.h4bs-staff-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.h4bs-staff-field-grid label,.h4bs-staff-field-grid fieldset{display:grid;align-content:start;gap:6px;margin:0}.h4bs-staff-field-grid .wide,.h4bs-staff-field-grid fieldset{grid-column:1/-1}.h4bs-staff-field-grid input,.h4bs-staff-field-grid select,.h4bs-staff-field-grid textarea{width:100%;min-height:44px}.h4bs-staff-field-grid textarea{min-height:92px}.h4bs-staff-field-grid .h4bs-check{display:flex;align-items:center;gap:8px}.h4bs-staff-field-grid .h4bs-check input{width:22px;min-height:22px}.h4bs-portrait-preview{width:160px;aspect-ratio:4/5;background:#eef2f6;display:grid;place-items:center;overflow:hidden}.h4bs-portrait-preview img{width:100%;height:100%;object-fit:cover}.h4bs-staff-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.h4bs-staff-preview-grid article{border:1px solid #c3c4c7;background:#fff;padding:16px;display:grid;gap:6px}.h4bs-staff-admin [role=alert]{margin:12px 20px 0;padding:12px;border-left:4px solid #d63638;background:#fcf0f1}
@media(max-width:782px){.h4bs-staff-header{display:grid}.h4bs-staff-commands{width:100%}.h4bs-staff-toolbar{display:grid}.h4bs-staff-toolbar label,.h4bs-staff-toolbar input,.h4bs-staff-toolbar select,.h4bs-staff-toolbar button{width:100%;max-width:none}.h4bs-staff-row{grid-template-columns:44px 56px minmax(0,1fr)}.h4bs-staff-actions{grid-column:1/-1}.h4bs-staff-actions button{flex:1 1 100px}.h4bs-staff-field-grid{grid-template-columns:1fr}.h4bs-staff-field-grid .wide,.h4bs-staff-field-grid fieldset{grid-column:auto}.h4bs-staff-preview-grid{grid-template-columns:1fr}.h4bs-staff-admin dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}}
.h4bs-staff-admin :is(button,.button,.nav-tab){min-height:44px!important}
.h4bs-staff-admin [hidden]{display:none!important}.h4bs-staff-commands button:disabled{display:none!important}
.h4bs-staff-row{grid-template-columns:44px 44px 64px minmax(200px,1fr) auto}.h4bs-staff-select{display:grid;place-items:center;min-width:44px;min-height:44px}.h4bs-staff-select input{width:20px;height:20px}
@media(max-width:782px){.h4bs-staff-row{grid-template-columns:32px 44px 56px minmax(0,1fr)}}
.h4bs-staff-editor-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.h4bs-staff-editor-section{padding:16px;border:1px solid #d7d6df;border-radius:10px}.h4bs-staff-editor-section h3{margin-top:0}.h4bs-staff-editor-section label{display:grid;gap:6px;margin:0 0 12px}.h4bs-staff-editor-section input,.h4bs-staff-editor-section textarea,.h4bs-staff-editor-section select{width:100%;min-height:44px}.h4bs-staff-editor-section textarea{min-height:86px}.h4bs-staff-editor-advanced{grid-column:1/-1;padding:14px;border:1px solid #d7d6df;border-radius:10px}.h4bs-staff-editor-advanced summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}.h4bs-owner-note{padding:12px;background:#eef6ff;border-left:4px solid #2271b1}.h4bs-portrait-tools{display:flex;align-items:center;gap:16px;margin-bottom:12px}.h4bs-focal-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.h4bs-public-previews{display:flex;align-items:end;gap:16px}.h4bs-public-previews figure{margin:0}.h4bs-public-previews figcaption{font-weight:600;margin-bottom:6px}.h4bs-crop-preview{width:180px;aspect-ratio:4/5;border-radius:8px;background:#eef2f6;display:grid;place-items:center;overflow:hidden}.h4bs-crop-preview.is-mobile{width:110px}.h4bs-crop-preview img{width:100%;height:100%;object-fit:cover}.h4bs-duplicate-warning{padding:10px;background:#fff8e5;border-left:4px solid #dba617}.h4bs-staff-order{display:flex;gap:4px}.h4bs-staff-order .button{min-width:44px}
@media(max-width:782px){.h4bs-staff-editor-layout{grid-template-columns:1fr}.h4bs-staff-editor-advanced{grid-column:auto}.h4bs-portrait-tools,.h4bs-public-previews{align-items:flex-start;flex-direction:column}.h4bs-focal-controls{grid-template-columns:1fr}}
@media(max-width:782px){.h4bs-staff-header{padding-bottom:4px}.h4bs-staff-admin>.nav-tab-wrapper{display:none}.h4bs-staff-toolbar [data-staff-add]{order:-2}.h4bs-staff-toolbar label:has([data-staff-search]){order:-1}.h4bs-staff-toolbar label:has([data-staff-tier-filter]),.h4bs-staff-toolbar label:has([data-staff-state-filter]),.h4bs-staff-toolbar label:has([data-staff-bulk-action]),.h4bs-staff-toolbar [data-staff-bulk-apply],.h4bs-staff-select{display:none!important}.h4bs-staff-commands [data-staff-undo],.h4bs-staff-commands [data-staff-redo]{display:none!important}.h4bs-staff-row{grid-template-columns:44px 56px minmax(0,1fr)}}
.h4bs-staff-row{grid-template-columns:44px 44px auto 64px minmax(200px,1fr) auto}
@media(max-width:782px){.h4bs-staff-select,.h4bs-staff-drag{display:none!important}.h4bs-staff-row{grid-template-columns:auto 56px minmax(0,1fr)}}
.h4bs-staff-toolbar{padding:12px;margin:12px 0 18px;border:1px solid #c3c4c7;border-radius:10px;background:#fff}.h4bs-staff-tier-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 8px;padding:0 4px;font-size:17px}.h4bs-staff-tier-heading small{font-size:12px;color:#646970;font-weight:500}.h4bs-staff-row{padding:8px 10px;margin-bottom:5px;border-radius:8px}.h4bs-staff-row.is-owner{border-color:#8c6ac8;background:#faf7ff;box-shadow:inset 4px 0 #6b3fa0}.h4bs-staff-row.is-leadership{border-left:4px solid #2271b1}.h4bs-staff-thumb.is-fallback{display:grid;place-items:center;background:#e8e2f3;color:#43296a;font-size:20px;font-weight:800}.h4bs-staff-summary small{display:flex;gap:6px;flex-wrap:wrap}.h4bs-staff-badge{display:inline-flex;align-items:center;min-height:24px;padding:1px 8px;border-radius:999px;background:#edf1f5;color:#3c434a;font-weight:600}.h4bs-staff-badge.is-protected{background:#eee6fa;color:#4f277a}.h4bs-staff-badge.is-draft,.h4bs-staff-badge.is-hidden,.h4bs-staff-badge.is-archived{background:#fff2cc;color:#644d00}.h4bs-staff-order{position:relative;padding-top:17px}.h4bs-staff-order::before{content:"Move";position:absolute;top:0;left:0;font-size:10px;color:#646970;text-transform:uppercase;letter-spacing:.04em}.h4bs-staff-actions .button-primary{font-weight:700}
@media(max-width:782px){.h4bs-staff-toolbar{padding:8px}.h4bs-staff-tier-heading{margin-top:14px}.h4bs-staff-order{padding-top:0}.h4bs-staff-order::before{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%)}.h4bs-staff-row{padding:8px}}
.h4bs-team-preview{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px;margin-top:20px}.h4bs-team-preview>section{padding:16px;border:1px solid #c3c4c7;border-radius:12px;background:#f6f7f7}.h4bs-team-preview h3{margin-top:0}.h4bs-team-preview .h4bs-staff-preview-grid{grid-template-columns:repeat(var(--h4bs-preview-columns,3),minmax(0,1fr));margin:0}.h4bs-team-preview .is-mobile{grid-template-columns:1fr;max-width:320px}.h4bs-team-preview-card{padding:10px!important;border-radius:9px!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:center}.h4bs-team-preview-card.is-owner{border-color:#8c6ac8!important;box-shadow:inset 3px 0 #6b3fa0}.h4bs-team-preview-photo{width:54px;aspect-ratio:4/5;display:grid;place-items:center;overflow:hidden;background:#e8e2f3;color:#43296a;font-weight:800}.h4bs-team-preview-photo img{width:100%;height:100%;object-fit:cover}.h4bs-team-preview-card div:last-child{display:grid;gap:3px}.h4bs-team-preview-card small{color:#6b3fa0;font-weight:700}
@media(max-width:900px){.h4bs-team-preview{grid-template-columns:1fr}}
.h4bs-recovery-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;margin:0 0 10px;border:1px solid #c3c4c7;border-radius:10px;background:#fff}.h4bs-recovery-card p{margin:5px 0}.h4bs-recovery-card summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700}.h4bs-recovery-card details[open]{min-width:280px}.h4bs-empty-recovery{padding:24px;border:1px dashed #a7aaad;border-radius:10px;background:#fff}
@media(max-width:782px){.h4bs-recovery-card{grid-template-columns:1fr}.h4bs-recovery-card details[open]{min-width:0}}
@media(min-width:783px){.h4bs-staff-admin .h4bs-staff-row{grid-template-columns:44px 44px 96px 64px minmax(280px,1fr) auto!important;grid-template-areas:"select drag order photo summary actions"}.h4bs-staff-row>.h4bs-staff-select{grid-area:select}.h4bs-staff-row>.h4bs-staff-drag{grid-area:drag}.h4bs-staff-row>.h4bs-staff-order{grid-area:order}.h4bs-staff-row>.h4bs-staff-thumb{grid-area:photo}.h4bs-staff-row>.h4bs-staff-summary{grid-area:summary;min-width:0}.h4bs-staff-row>.h4bs-staff-actions{grid-area:actions}.h4bs-staff-admin .h4bs-staff-row.is-owner{grid-template-columns:64px minmax(280px,1fr) auto!important;grid-template-areas:"photo summary actions"}.h4bs-staff-row.is-owner>.h4bs-staff-select,.h4bs-staff-row.is-owner>.h4bs-staff-drag{display:none!important}}
@media(max-width:782px){.h4bs-staff-admin .h4bs-staff-row.is-owner{grid-template-columns:56px minmax(0,1fr)!important;grid-template-areas:"photo summary" "actions actions"!important}.h4bs-staff-row.is-owner>.h4bs-staff-thumb{grid-area:photo}.h4bs-staff-row.is-owner>.h4bs-staff-summary{grid-area:summary;min-width:0}.h4bs-staff-row.is-owner>.h4bs-staff-actions{grid-area:actions;width:100%}}

/* Compact staff workspaces keep navigation, filters, recovery, and bulk-safe controls available. */
@media(max-width:782px){
    .h4bs-staff-admin>.nav-tab-wrapper{display:flex!important;max-width:100%;overflow-x:auto;scrollbar-gutter:stable;padding-bottom:2px}
    .h4bs-staff-admin>.nav-tab-wrapper .nav-tab{flex:0 0 auto;white-space:nowrap}
    .h4bs-staff-toolbar label:has([data-staff-tier-filter]),
    .h4bs-staff-toolbar label:has([data-staff-state-filter]){display:grid!important}
    .h4bs-staff-toolbar label:has([data-staff-bulk-action]):not([hidden]){display:grid!important}
    .h4bs-staff-toolbar [data-staff-bulk-apply]:not([hidden]){display:block!important}
    .h4bs-staff-commands [data-staff-undo]:not(:disabled),
    .h4bs-staff-commands [data-staff-redo]:not(:disabled){display:inline-flex!important;align-items:center;justify-content:center}
    .h4bs-staff-admin .h4bs-staff-row:not(.is-owner){grid-template-columns:44px auto 56px minmax(0,1fr)!important;grid-template-areas:"select order photo summary" "actions actions actions actions"!important}
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-select{
        display:grid!important;
        grid-area:select;
        position:relative;
        border-radius:6px;
        cursor:pointer;
    }
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-select input{
        position:absolute;
        inset:0;
        width:44px!important;
        height:44px!important;
        min-width:44px;
        min-height:44px;
        margin:0;
        opacity:0;
        cursor:pointer;
    }
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-select::before{
        content:"";
        width:20px;
        height:20px;
        border:2px solid #50575e;
        border-radius:3px;
        background:#fff;
    }
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-select:has(input:checked)::before{background:#3858e9;border-color:#3858e9}
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-select:has(input:checked)::after{
        content:"";
        position:absolute;
        left:16px;
        top:11px;
        width:8px;
        height:14px;
        border:solid #fff;
        border-width:0 3px 3px 0;
        transform:rotate(45deg);
    }
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-select:has(input:focus-visible){outline:3px solid #72aee6;outline-offset:1px}
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-order{grid-area:order}
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-thumb{grid-area:photo}
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-summary{grid-area:summary;min-width:0}
    .h4bs-staff-row:not(.is-owner)>.h4bs-staff-actions{grid-area:actions;width:100%}
}
