/* 076: Staff workspace presentation; permission and submission logic stays in staff-team-ui.js. */
#team-workspace .workspace-switch{display:inline-flex;align-items:center;min-height:46px;padding:12px 18px;margin:0 0 20px;border:1px solid var(--line);border-left:3px solid var(--red);background:var(--surface,var(--paper));font-size:13px;font-weight:600;line-height:1.4;gap:12px}
#team-workspace .workspace-switch:hover{border-color:var(--ink)}
#team-workspace:has(.workspace-switch[href="/team"]) .workspace-head{padding-bottom:24px;border-bottom:1px solid var(--line)}
#team-workspace:has(.workspace-switch[href="/team"]) .workspace-head .eyebrow{color:var(--red)}
#team-workspace .staff-team{max-width:1100px;min-width:0}
#team-workspace .staff-team-heading{max-width:720px;margin-bottom:28px}
#team-workspace .staff-team-heading h2{margin:8px 0 12px;font-weight:600}
#team-workspace .staff-team-heading .eyebrow{margin:0;font-size:10px}
#team-workspace .staff-team .workspace-card{padding:clamp(16px,3vw,32px);margin:20px 0;background:var(--surface,#faf9f5)}
#team-workspace .staff-team h3{margin:0 0 20px;font-size:20px;letter-spacing:-.025em}
#team-workspace .staff-members{table-layout:fixed;margin-bottom:28px}
#team-workspace .staff-members th{font-size:11px;color:var(--muted,#686c69);font-weight:600;padding:12px 0}
#team-workspace .staff-members th:first-child{width:30%}
#team-workspace .staff-members td{padding:16px 12px 16px 0;vertical-align:top;overflow-wrap:anywhere;line-height:1.6}
#team-workspace .staff-members strong{font-weight:600}
#team-workspace .staff-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:5px 12px;margin:0 6px 6px 0;border:1px solid var(--line);border-radius:4px;background:var(--paper);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#team-workspace .staff-chip:has(button){padding:0 0 0 12px}
#team-workspace .staff-chip button{min-width:44px;min-height:44px;flex-shrink:0;border:0;border-left:1px solid var(--line);font-size:20px;padding:4px 10px}
#team-workspace .staff-chip button:hover{color:var(--red);background:var(--surface,#eee)}
#team-workspace .staff-team button{min-height:44px;line-height:1.4}
#team-workspace .staff-team [data-delete-role],#team-workspace .staff-members>tbody>tr>td>button{color:var(--red)}
#team-workspace .staff-add{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;padding-top:24px;border-top:1px solid var(--line);align-items:end}
#team-workspace .staff-add h4{grid-column:1/-1;margin:0 0 4px;font-size:15px;font-weight:600}
#team-workspace .staff-add label{margin:0}
#team-workspace .staff-add>.small-copy{grid-column:1/-1;margin:0}
#team-workspace .staff-add>button{justify-self:start;min-width:140px}
#team-workspace .staff-permission-note{max-width:720px;padding:14px 16px;border-left:2px solid var(--red);background:var(--paper);margin:0 0 24px}
#team-workspace .staff-role{border:1px solid var(--line);margin:12px 0;background:var(--paper)}
#team-workspace .staff-role summary{cursor:pointer;padding:18px 20px;font-size:13px;line-height:1.65;overflow-wrap:anywhere;min-height:56px}
#team-workspace .staff-role summary strong{font-size:15px;font-weight:600}
#team-workspace .staff-role summary::marker{color:var(--red)}
#team-workspace .staff-role[open]>summary{border-bottom:1px solid var(--line)}
#team-workspace .staff-role-create{border-style:dashed;margin-top:24px}
#team-workspace .staff-role-form{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
#team-workspace .staff-role-form>label,#team-workspace .staff-role-form>.small-copy,#team-workspace .staff-role-form>.workspace-actions{grid-column:1/-1;margin:0}
#team-workspace .staff-role-form>label{max-width:480px;width:100%}
#team-workspace .staff-role-form>.button{justify-self:start}
#team-workspace .staff-permission-group{min-width:0;margin:0;padding:14px;border:1px solid var(--line);height:100%}
#team-workspace .staff-permission-group legend{font-size:12px;font-weight:600;padding:0 6px;line-height:1.5}
#team-workspace .staff-permission-group .workspace-check{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:44px;margin:0;padding:8px 0;font-size:13px;overflow-wrap:anywhere}
#team-workspace .staff-permission-group input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:var(--red)}
#team-workspace .staff-permission-group label:has(input:disabled){color:var(--muted,#686c69);cursor:not-allowed}
#team-workspace .staff-permission-group label:has(input:disabled)::after{content:'Unavailable';margin-left:auto;font-size:10px;border:1px solid var(--line);padding:3px 5px;border-radius:3px}
#team-workspace .staff-team input:disabled{cursor:not-allowed}
#team-workspace .staff-history{list-style:none;padding:0;margin:0}
#team-workspace .staff-history li{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:13px;line-height:1.7}
#team-workspace .staff-history li:last-child{border:0;padding-bottom:0}
#team-workspace .staff-history time{display:block;font-size:11px;color:var(--muted,#686c69);font-variant-numeric:tabular-nums;margin-bottom:4px}
@media(max-width:600px){
 #team-workspace .staff-add,#team-workspace .staff-role-form{grid-template-columns:minmax(0,1fr)}
 #team-workspace .staff-role-form{padding:16px;gap:18px}
 #team-workspace .staff-role summary{padding:16px}
 #team-workspace .staff-members thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #team-workspace .staff-members,#team-workspace .staff-members tbody,#team-workspace .staff-members tr,#team-workspace .staff-members td{display:block;width:100%}
 #team-workspace .staff-members tr{padding:16px 0;border-bottom:1px solid var(--line)}
 #team-workspace .staff-members td{border:0;padding:4px 0}
 #team-workspace .staff-members td::before{content:attr(data-label);display:block;font-size:10px;font-weight:500;color:var(--muted,#686c69);margin-bottom:6px}
 #team-workspace .staff-members strong{font-size:15px}
 #team-workspace .staff-add>button{width:100%}
 #team-workspace .staff-permission-group label:has(input:disabled){flex-wrap:wrap}
 #team-workspace .staff-permission-group label:has(input:disabled)::after{margin-left:30px}
}
/* Override the app's compact, tracked accordion headings for readable role names. */
#team-workspace .staff-role summary{display:list-item;letter-spacing:normal;text-transform:none}
#team-workspace .staff-role summary strong{letter-spacing:normal}
