/* Scoped to the existing staff-approval page and its identity confirmation dialog. */
.staff-review-panel{max-width:1240px;min-width:0}
.staff-review-panel [hidden]{display:none!important}
.staff-review-toolbar,.staff-review-section-head,.staff-plan-heading,.staff-plan-matrix-heading{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.staff-review-toolbar h2{font-size:23px;line-height:1.3;margin:0 0 8px}
.staff-review-toolbar p,.staff-review-section-head p,.staff-plan-heading p{font-size:13px;line-height:1.7;margin:6px 0 0}
.staff-review-section-head h3,.staff-plan-placeholder h3{font-size:18px;line-height:1.4;margin:0}
.staff-review-section-head{margin:0 0 18px}
.staff-review-panel .button{min-height:44px;white-space:normal}
.staff-review-panel .quiet{background:#edf4f4;color:var(--teal)}
.staff-review-panel button:disabled{opacity:.56;cursor:not-allowed}
.staff-review-panel button:focus-visible,.staff-review-panel input:focus-visible,.staff-review-panel select:focus-visible{outline:3px solid #d49617;outline-offset:3px}
.staff-review-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#f2f6f7;margin:24px 0}
.staff-review-tabs button{min-height:52px;padding:10px 8px;border:1px solid transparent;border-radius:7px;color:var(--teal);background:transparent;font-size:13px;font-weight:700;line-height:1.4}
.staff-review-tabs button[aria-selected="true"]{background:var(--teal);color:#fff;box-shadow:0 2px 5px #193f4918}
.staff-review-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.staff-review-filters button{min-height:44px;padding:9px 12px;border:1px solid var(--line);background:#fff;color:var(--teal);border-radius:7px;font-size:12px}
.staff-review-filters button.active{background:#e2efef;border-color:var(--teal);font-weight:700}
.staff-review-note{font-size:12px!important;line-height:1.75!important;margin:14px 0;color:#526b72}
.staff-review-message{font-size:13px;line-height:1.7;padding:14px;background:#eef5f5;border-radius:7px;margin:0 0 16px}
.staff-review-message.staff-review-error{background:#fff1ed;color:#923c24;border:1px solid #f0cbbf}
.staff-review-list{display:grid;gap:16px}
.staff-review-card{border:1px solid var(--line);padding:18px;border-radius:10px;background:#fff;min-width:0}
.staff-review-card h3{font-size:19px;margin:12px 0 18px;overflow-wrap:anywhere}
.staff-review-card dl{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;font-size:12px;line-height:1.6}
.staff-review-card dt{color:#526b72}
.staff-review-card dd{margin:0;overflow-wrap:anywhere}
.staff-email-state{display:block;font-size:11px;color:var(--teal);margin-top:4px}
.staff-review-actions{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.staff-review-actions button{min-height:44px;width:100%}
.staff-review-empty{padding:18px 0;font-size:13px;line-height:1.7;color:#526b72}
#staff-review-more{margin-top:20px}
.staff-plan-badge{display:inline-block;border:1px solid #c8dddd;background:#edf5f4;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:700;color:#315d65;line-height:1.5}
.staff-plan-warning{border:1px solid #e8ce83;border-radius:9px;padding:16px;background:#fff9e8;margin-bottom:24px;color:#694d11}
.staff-plan-warning strong{display:block;font-size:14px}
.staff-plan-warning p{font-size:12px;line-height:1.8;margin:6px 0 0}
.staff-access-layout{display:grid;gap:20px;min-width:0}
.staff-access-roster{display:flex;flex-direction:column;gap:10px;min-width:0;align-self:start}
.staff-access-person{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:9px;padding:15px;min-height:100px;color:var(--ink);width:100%;overflow-wrap:anywhere}
.staff-access-person strong{font-size:14px}
.staff-access-person>span{font-size:12px;max-width:100%}
.staff-access-person small{font-size:11px;line-height:1.6;color:#526b72}
.staff-access-person.active{background:#eef6f6;border-color:var(--teal);box-shadow:inset 3px 0 var(--teal)}
.staff-access-person .staff-access-person-cta{color:var(--teal);font-size:11px;font-weight:700;margin-top:5px}
.staff-access-detail{min-width:0}
.staff-plan-placeholder{border:1px dashed #c4d5d9;border-radius:10px;background:#fafcfc;padding:22px;min-height:230px}
.staff-plan-placeholder p{font-size:13px;line-height:1.8;color:#526b72;margin:12px 0 18px}
.staff-plan-editor{border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff;min-width:0}
.staff-plan-heading h3{font-size:21px;line-height:1.4;margin:6px 0;overflow-wrap:anywhere}
.staff-plan-heading p{overflow-wrap:anywhere}
.staff-plan-fields{display:grid;gap:16px;margin:22px 0 10px}
.staff-plan-fields label{display:flex;flex-direction:column;gap:8px;color:var(--ink);font-size:12px;font-weight:700}
.staff-plan-fields select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #bacdd1;border-radius:7px;background:#fff;color:var(--ink);font-size:13px}
.staff-plan-fields select:disabled{background:#f1f4f4;color:#526b72}
.staff-plan-matrix-heading{margin:24px 0 14px}
.staff-plan-matrix-heading h4,.staff-plan-summary h4,.staff-plan-history h4{font-size:15px;line-height:1.5;margin:0 0 7px}
.staff-plan-matrix-heading p{font-size:12px;line-height:1.75;color:#526b72;margin:0}
.staff-plan-mode{display:inline-block;background:#edf4f4;border-radius:5px;padding:5px 8px;font-size:11px;color:var(--teal)}
.staff-plan-matrix{display:grid;gap:12px;min-width:0}
.staff-plan-feature{min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px 10px 10px;margin:0}
.staff-plan-feature legend{font-size:12px;font-weight:700;padding:0 6px;max-width:100%;overflow-wrap:anywhere}
.staff-plan-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.staff-plan-check{display:flex;gap:6px;align-items:center;min-height:44px;font-size:11px;padding:4px 2px;cursor:pointer}
.staff-plan-check input{width:17px;height:17px;margin:0;accent-color:var(--teal);flex-shrink:0}
.staff-plan-check:has(input:disabled){color:#74838a;cursor:not-allowed}
.staff-plan-check input:disabled{cursor:not-allowed}
.staff-plan-bottom{margin-top:22px;border-top:1px solid var(--line);padding-top:22px}
.staff-plan-summary{background:#f3f8f8;padding:16px;border-radius:8px}
.staff-plan-summary p,.staff-plan-summary li{font-size:12px;line-height:1.75}
.staff-plan-summary p{margin:8px 0}
.staff-plan-summary ul{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:8px}
.staff-plan-summary li{border-top:1px solid #dfebeb;padding-top:8px}
.staff-plan-summary li strong,.staff-plan-summary li span{display:block}
.staff-plan-save{display:flex;flex-direction:column;gap:10px;margin-top:18px;align-items:stretch}
.staff-plan-save p{font-size:12px;line-height:1.75;color:#694d11;margin:0}
.staff-plan-history{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.staff-plan-history>p{font-size:12px;line-height:1.75;color:#526b72}
.staff-plan-history ol{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:10px;max-height:300px;overflow:auto}
.staff-plan-history li{display:grid;gap:3px;font-size:12px;line-height:1.7;border-left:2px solid #c7dcdc;padding-left:10px}
.staff-plan-history time{font-size:10px;color:#526b72}
#staff-review-dialog{max-width:480px;width:calc(100% - 32px);max-height:calc(100% - 32px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:12px;color:var(--ink)}
#staff-review-dialog::backdrop{background:#193f4966}
#staff-review-dialog h2{font-size:22px;line-height:1.4}
#staff-review-dialog p{font-size:13px;line-height:1.8;margin-top:18px;overflow-wrap:anywhere}
#staff-review-dialog .quiet{background:#edf4f4;color:var(--teal)}
#staff-review-dialog button:disabled{opacity:.5;cursor:not-allowed}
.staff-review-confirm{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.7;margin-top:22px}
.staff-review-confirm input{margin:3px 0 0;width:18px;height:18px;flex-shrink:0}
#staff-review-error{color:#a72828!important}
@media(min-width:600px){.staff-review-toolbar,.staff-review-section-head,.staff-plan-heading{flex-direction:row;justify-content:space-between}.staff-review-toolbar>div,.staff-review-section-head>div,.staff-plan-heading>div{min-width:0}.staff-review-toolbar>.staff-plan-badge{flex-shrink:0}.staff-review-section-head>.button{flex-shrink:0}.staff-review-actions{flex-direction:row}.staff-review-actions button{width:auto}.staff-review-card{padding:22px}.staff-review-card dl{grid-template-columns:125px minmax(0,1fr);font-size:13px}.staff-plan-editor{padding:22px}.staff-plan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-plan-actions{grid-template-columns:repeat(6,minmax(0,1fr))}.staff-plan-check{font-size:11px}.staff-plan-save{flex-direction:row;flex-wrap:wrap}.staff-plan-save p{flex-basis:100%}.staff-plan-save button{flex:1 1 auto}.staff-review-tabs button{font-size:14px;padding:12px 18px}#staff-review-dialog{padding:28px}}
@media(min-width:1050px){.staff-access-layout{grid-template-columns:250px minmax(0,1fr)}.staff-access-roster{max-height:860px;overflow:auto;padding-right:4px}.staff-plan-check{font-size:12px;gap:7px}.staff-review-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.staff-review-panel *{scroll-behavior:auto}}

/* Access UI mobile polish v1: presentation only, no permission defaults. */
.staff-review-panel,.staff-review-panel *{box-sizing:border-box}
.staff-review-panel{width:100%;padding-bottom:88px;overflow-wrap:anywhere}
#staff-current-access{margin-bottom:24px}
.staff-review-panel .staff-current-card{padding:20px;margin:0 0 16px;border-radius:14px;box-shadow:none;min-width:0}
.staff-current-identity{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.staff-current-identity>div{min-width:0}
.staff-current-identity .eyebrow{font-size:10px;letter-spacing:.12em;margin:0 0 8px;color:#526b72}
.staff-current-identity h4{font-size:22px;line-height:1.3;margin:0 0 8px}
.staff-current-identity .staff-current-email{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere;color:#526b72}
.staff-current-identity>.staff-plan-badge{flex-shrink:0}
.staff-current-facts,.staff-plan-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:20px 0}
.staff-current-facts>div,.staff-plan-identity>div{min-width:0}
.staff-current-facts .staff-current-wide{grid-column:1/-1}
.staff-current-facts dt,.staff-plan-identity dt{font-size:12px;line-height:1.5;font-weight:600;color:#526b72;margin:0 0 8px}
.staff-current-facts dd,.staff-plan-identity dd{font-size:14px;line-height:1.65;margin:0;overflow-wrap:anywhere}
.staff-current-tags,.staff-current-branches{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.staff-current-tags li{max-width:100%;background:#edf5f4;border:1px solid #d7e6e6;color:#315d65;border-radius:7px;padding:6px 10px;font-size:13px;line-height:1.5}
.staff-current-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
.staff-current-branches li{border-left:2px solid #c8dddd;padding-left:10px;min-width:0}
.staff-current-card>.muted{font-size:12px;line-height:1.7;margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.staff-plan-identity{background:#f3f8f8;padding:14px;border-radius:8px;margin:18px 0}
.staff-plan-fields select{font-size:16px;min-height:48px}
.staff-plan-feature{padding:12px;border-radius:10px;background:#fcfdfd}
.staff-plan-feature legend{font-size:14px;line-height:1.5}
.staff-plan-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.staff-plan-check{min-height:48px;font-size:13px;line-height:1.4;padding:9px 8px;gap:8px;border:1px solid #dde6e8;border-radius:7px;background:#fff}
.staff-plan-check input{width:20px;height:20px}
.staff-plan-check:has(input:checked){background:#eaf5f2;border-color:#5e9695;color:#244c52}
.staff-plan-check:has(input:disabled){background:#f4f6f6;color:#657780;border-color:#e5ebed}
.staff-plan-save{background:#fff9e8;border:1px solid #e8ce83;border-radius:10px;padding:16px;gap:12px}
.staff-plan-save button{min-height:48px}
.staff-plan-save button:disabled{opacity:1;background:#e7ecec;color:#526b72;border:1px solid #cdd9db}
.staff-review-panel :is(button,input,select){scroll-margin-block:24px}
.staff-review-panel .staff-plan-badge{max-width:100%}
@media(min-width:800px){.staff-plan-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))}.staff-current-branches{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:599px){
 .staff-review-panel{padding:18px 14px 96px}
 .staff-review-toolbar h2{font-size:22px}
 .staff-review-tabs{margin:20px 0;gap:4px}
 .staff-review-tabs button{font-size:13px;min-height:56px;padding:10px 8px}
 .staff-review-section-head{gap:12px}
 .staff-review-section-head>.button{width:100%;min-height:46px}
 .staff-review-panel .staff-current-card{padding:16px}
 .staff-current-identity{flex-wrap:wrap;gap:10px}
 .staff-current-identity h4{font-size:21px}
 .staff-current-facts,.staff-plan-identity{gap:16px}
 .staff-current-branches{grid-template-columns:minmax(0,1fr)}
 .staff-plan-warning{padding:14px;margin-bottom:24px}
 .staff-plan-warning p{font-size:13px;line-height:1.7}
 .staff-access-layout{gap:16px}
 .staff-access-person{padding:14px;min-height:96px}
 .staff-access-person strong{font-size:15px}
 .staff-access-person>span,.staff-access-person small{font-size:13px;line-height:1.55}
 .staff-plan-editor{padding:14px}
 .staff-plan-fields label{font-size:13px}
 .staff-plan-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-plan-check{font-size:14px}
 .staff-plan-save{padding:14px}
 .staff-plan-save p{font-size:13px}
}
@media(forced-colors:active){.staff-plan-check:has(input:checked){border:2px solid Highlight}.staff-review-tabs button[aria-selected="true"]{border:2px solid Highlight}}


/* Staff approval compact layout and server-backed registration filter. */
body.k2-staff-approval-route .content>.heading{display:none}
.staff-review-panel>.staff-review-tabs{margin-top:0}
.staff-branch-filter{margin:0 0 18px}
.staff-branch-filter label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700;max-width:420px}
.staff-branch-filter select{min-height:48px;width:100%;padding:10px;border:1px solid #bacdd1;border-radius:7px;background:#fff;color:var(--ink);font-size:16px}
.staff-branch-filter select:disabled{background:#f1f4f4;color:#526b72;cursor:not-allowed}
.staff-branch-filter .staff-review-note{margin:8px 0 0}
