#matterTabBody.portal-staff { padding:20px; }
.portal-staff .ps-header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; }
.portal-staff .ps-header h2 { margin:0 0 6px; font-size:21px !important; }
.portal-staff .ps-header p { margin:0; font-size:14px; color:var(--heirlo-muted, #5d6b82); }
.portal-staff .ps-header-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.portal-staff .ps-header a { font-size:13px; color:var(--heirlo-primary, #a41f35); text-decoration:none; }
.portal-staff .portal-card { padding:18px; margin-bottom:12px; border:1px solid var(--heirlo-border, #e2e7f0); border-radius:12px; box-shadow:none; }
.portal-staff h2 { font-size:17px !important; font-weight:600; }
.portal-staff h3 { font-size:15px !important; }
.portal-staff button { width:auto; min-height:38px; margin:0; padding:8px 12px; font-size:13px; font-weight:500; border-color:#dce3ec; border-radius:8px; box-shadow:none; }
.portal-staff .portal-primary { background:var(--heirlo-primary, #a41f35); border-color:var(--heirlo-primary, #a41f35); }
.portal-staff label { font-size:13px; font-weight:500; color:var(--heirlo-text-secondary, #475569); margin:12px 0; }
.portal-staff input:not([type=checkbox]), .portal-staff textarea, .portal-staff select { padding:9px 12px; border-color:#dce3ec; font-size:14px; border-radius:8px; }
.portal-staff input[type=checkbox] { flex-shrink:0; margin:2px 0 0; }
.portal-staff label:has(> input[type=checkbox]) { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.6; font-weight:400; }
.portal-staff .ps-disclosure { border:1px solid var(--heirlo-border, #e2e7f0); border-radius:10px; background:#fff; margin:12px 0; }
.portal-staff .ps-disclosure > summary { padding:14px 16px; font-size:14px; color:var(--heirlo-text-secondary, #475569); font-weight:600; cursor:pointer; }
.portal-staff .ps-disclosure > form, .portal-staff .ps-disclosure > p { margin:0; padding:0 16px 16px; border:0; box-shadow:none; }
.portal-staff .ps-disclosure p { font-size:13px; color:var(--heirlo-muted, #5d6b82); line-height:1.65; overflow-wrap:anywhere; }
.portal-staff .ps-invitation form { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.portal-staff .ps-invitation form > :not(label), .portal-staff .ps-invitation label:has([type=checkbox]) { grid-column:1 / -1; }
.portal-staff .ps-invitation form button { justify-self:start; }
.portal-staff .ps-client-select { max-width:600px; margin:0 0 16px; }
.portal-staff .ps-client-summary { display:flex; align-items:center; gap:8px 14px; flex-wrap:wrap; padding-bottom:18px; font-size:13px; color:var(--heirlo-muted, #5d6b82); overflow-wrap:anywhere; }
.portal-staff .ps-client-summary strong { font-size:15px; color:var(--heirlo-navy, #172033); }
.portal-staff .ps-access-status { padding:3px 8px; border-radius:5px; background:#f1f4f8; font-size:12px; text-transform:capitalize; }
.portal-staff .hc-staff { background:#fafbfd; }
.portal-staff .ps-activity { margin-top:24px; }
.portal-staff .ps-activity-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.portal-staff .ps-activity-header h2 { margin:0; }
.portal-staff .ps-activity-header select { width:auto; margin:0; font-size:13px; }
.portal-staff .portal-entry { padding:16px; border:1px solid var(--heirlo-border, #e2e7f0); border-radius:10px; margin-bottom:10px; }
.portal-staff .portal-entry:last-child { border-bottom:1px solid var(--heirlo-border, #e2e7f0); }
.portal-staff .portal-entry p { font-size:14px; line-height:1.65; }
.portal-staff .portal-muted { font-size:12px; line-height:1.6; }
.portal-staff .portal-actions { gap:8px; }
.portal-staff .ps-access-controls { margin-top:24px; }
.portal-staff .ps-access-controls > summary { color:var(--heirlo-muted, #5d6b82); font-weight:500; }
.portal-staff :is(button,input,textarea,select,summary,a):focus-visible { outline:2px solid var(--heirlo-primary, #a41f35); outline-offset:3px; }
@media(max-width:650px) {
 #matterTabBody.portal-staff { padding:14px; }
 .portal-staff .ps-header { align-items:flex-start; flex-wrap:wrap; }
 .portal-staff .ps-invitation form { grid-template-columns:1fr; }
 .portal-staff .portal-card { padding:14px; }
 .portal-staff .ps-activity-header { flex-wrap:wrap; }
}
.portal-staff .hc-staff .hc-log { height:220px; min-height:120px; max-height:320px; }
.portal-staff .hc-staff .hc-status { padding:8px 0; border:0; background:none; color:var(--heirlo-muted, #5d6b82); font-size:12px; }

/* Submitted questionnaire notice */
.questionnaire-notice{margin:auto;width:min(620px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;padding:28px;border:1px solid #e1e5ed;border-top:4px solid #a41f35;border-radius:18px;background:#fff;color:#1b2434;box-shadow:0 24px 80px #1b243430;overflow:auto}
.questionnaire-notice::backdrop{background:#171b2a70;backdrop-filter:blur(4px)}
.questionnaire-notice__brand{color:#a41f35;font-size:11px;font-weight:700;letter-spacing:.18em;margin-bottom:16px}
.questionnaire-notice h2{font-size:24px;margin:0 0 12px}.questionnaire-notice p{line-height:1.6}.questionnaire-notice__date{font-size:12px;color:#52617a}
.questionnaire-notice button{padding:10px 16px;border:1px solid #d5dce8;border-radius:9px;background:#fff;color:#1b2434;cursor:pointer;font:inherit}.questionnaire-notice button:focus-visible{outline:3px solid #8585c9;outline-offset:3px}.questionnaire-notice button:disabled{opacity:.6;cursor:wait}
.questionnaire-notice .questionnaire-notice__expand{width:100%;text-align:left;color:#a41f35;background:#fbf5f6;font-weight:600}
.questionnaire-notice__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.questionnaire-notice .questionnaire-notice__primary{background:#a41f35;border-color:#a41f35;color:#fff}.questionnaire-notice__error{color:#a41f35}
.cq-submission-summary{margin:16px 0;border:1px solid #e1e5ed;border-radius:10px;padding:14px;background:#fff;color:#1b2434}.cq-submission-summary summary{cursor:pointer;font-weight:600}.cq-submission-summary dl{margin:0}.cq-submission-summary dt{font-size:12px;color:#52617a;margin-top:14px}.cq-submission-summary dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
@media(max-width:600px){.questionnaire-notice{padding:20px}.questionnaire-notice__actions button{flex:1}}
