.staff-overlay{z-index:1300}
body:has(#staff-root .staff-overlay) .toast-root{z-index:1600}
.staff-status-message,.staff-conflict-message{margin:0 20px 20px;font-size:12px;color:var(--muted);line-height:1.6}
.staff-confirm-overlay{position:fixed;inset:0;z-index:1310;display:flex;align-items:center;justify-content:center;padding:20px;background:#00000035;backdrop-filter:blur(4px)}
.staff-confirm-card{position:relative;width:min(360px,100%);padding:24px;border:1px solid #ffffff14;border-radius:12px;background:#19191b;box-shadow:0 20px 60px #00000045}
.staff-confirm-card>.icon-button{position:absolute;top:7px;right:7px;width:28px;height:28px;padding:6px;color:var(--muted)}
.staff-confirm-card h3{font-size:14px;margin:0 20px 9px 0}.staff-confirm-card p{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 17px}
.staff-confirm-card>div{display:flex;flex-wrap:wrap;gap:8px}.staff-confirm-card .button{padding:8px 11px;font-size:11px;min-height:34px}
.client-origins-panel{margin-top:24px}.client-origins-panel .panel-heading{margin-bottom:18px}.client-origins-panel .dashboard-origin-bars{max-width:900px}.client-origins-panel .dashboard-origin-note{margin-top:16px}
.sidebar-staff-profile{min-width:0;display:flex;flex-direction:column;gap:4px}.sidebar-staff-profile>small{padding-left:26px}.sidebar-staff-profile .staff-linked-name{color:var(--ink);font-size:12px}.sidebar-staff-profile .staff-preview-trigger{margin-left:0}
.staff-gallery-heading{font-size:14px;margin:16px 0}.staff-profile-panel>.record-gallery{margin-top:14px}
.login-mode-switch{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.login-mode-switch button{font-size:12px;padding:8px 12px;border:1px solid #ffffff12;border-radius:7px;color:var(--muted);background:#ffffff03}.login-mode-switch button[aria-pressed=true]{color:var(--gold);border-color:#cbb37e44;background:#cbb37e0b}
@media(prefers-reduced-transparency:reduce){.staff-confirm-overlay{backdrop-filter:none;background:#00000070}}

.staff-profile-modal:not(.staff-account-modal){height:min(820px,calc(100dvh - 56px))}
.staff-profile-modal .staff-profile-layout{min-height:100%}
.staff-profile-main{min-height:calc(min(820px,100dvh - 56px) - 2px);display:flex;flex-direction:column}
.staff-profile-main>.client-tab-panel{flex:1}
.staff-profile-main>.task-dossier-footer{margin-top:auto}
.staff-assignment-picker{padding:14px;margin:0 0 18px;border:1px solid #ffffff14;background:#ffffff03;border-radius:8px}
.staff-assignment-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.staff-assignment-picker .form-helper{margin:8px 0 12px}
.staff-assignment-picker .search-box{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.staff-assignment-picker input{width:100%;min-width:0;padding:8px;border:1px solid #ffffff14;border-radius:6px;background:#ffffff03;color:var(--ink);font:inherit;font-size:12px}
.staff-candidate-row{display:flex;width:100%;gap:9px;align-items:center;text-align:left;padding:10px 8px;border:0;border-bottom:1px solid #ffffff09;background:transparent;color:var(--ink);font:inherit;font-size:12px}
.staff-candidate-row:hover{background:#ffffff04}.staff-candidate-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.staff-candidate-row>.icon{width:14px;height:14px;flex:none}
@media(max-width:580px){.staff-profile-modal:not(.staff-account-modal){height:calc(100dvh - 24px)}.staff-profile-main{min-height:calc(100dvh - 26px)}}

.staff-control-structures{margin:24px 0}.staff-control-office{padding:16px 0;border-bottom:1px solid #ffffff0b}.staff-control-office:last-child{border:0}.staff-control-office .record-relation-tools{flex-wrap:wrap;gap:12px}.staff-control-office .record-relation-tools>span{display:inline-flex;gap:6px;align-items:center;font-size:12px}.staff-office-director-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

.control-section-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.control-section-tabs .icon{width:14px;height:14px;margin-right:5px}.staff-control-actions{display:flex;gap:8px;justify-content:flex-end;margin-bottom:15px}.control-icons-group{margin-bottom:22px}.control-icon-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.control-icon-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #ffffff0b;border-radius:7px;font-size:12px}.control-icon-row>span{min-width:0;overflow-wrap:anywhere}@media(max-width:680px){.control-icon-list{grid-template-columns:minmax(0,1fr)}}
