.ps-shell .pw-main{background:#f3f4f6}.ps-shell .pp-content{padding:0!important}.ps-heading{height:58px;padding:0 24px;display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid #eceef2}.ps-heading h2{font-size:17px!important;line-height:1.4;margin:0!important;white-space:nowrap;font-weight:600}.ps-tabs{display:flex;align-self:stretch;gap:24px}.ps-tabs button{border:0;background:transparent;font:inherit;color:#666;padding:0 0;position:relative;white-space:nowrap}.ps-tabs button.active{color:#1688f5;font-weight:600}.ps-tabs button.active:after{content:'';position:absolute;width:32px;height:3px;bottom:0;background:#1688f5;left:calc(50% - 16px)}.ps-body{padding:16px;display:grid;gap:12px}.ps-card{background:#fff;border:1px solid #eff0f3;border-radius:5px;padding:20px 22px;min-width:0}.ps-card>header{display:flex;align-items:center;gap:10px;min-height:30px;margin-bottom:16px}.ps-card h3{font-size:15px;font-weight:600;margin:0;color:#252a32}.ps-card-actions{margin-left:auto;display:flex;align-items:center;flex-shrink:0;gap:10px}.ps-card>.pp-table-scroll{margin:0 -2px}.ps-card .pp-table-scroll table th{background:#fafbfc;color:#6d7480;font-size:13px;font-weight:400}.ps-card .pp-table-scroll td{font-size:13px;color:#343940;padding:14px 12px;border-bottom:1px solid #f0f1f4}.ps-card .pp-table-scroll th{padding:13px 12px}.ps-card .pp-table-scroll{border:0;border-radius:0}.ps-card .pp-pager{margin:12px 0 -4px}.ps-card .pp-button.is-link{color:#208aeb;padding:3px 5px;min-height:28px;font-weight:400}.ps-card .pp-button.is-primary{background:white;color:#208aeb;border:1px solid #208aeb;border-radius:5px;min-height:34px;font-weight:400}.ps-card .pp-button.is-primary:hover{background:#f0f7ff}.ps-definition{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px 0;font-size:14px;margin:0}.ps-definition dt{color:#888}.ps-definition dd{margin:0;color:#292e35;overflow-wrap:anywhere;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.ps-definition .ps-status{color:#555}.ps-definition .ps-status.on{color:#209573}.ps-hint,.ps-note{color:#888;font-size:12px;font-weight:400;line-height:1.7}.ps-hint{margin-left:3px}.ps-description{font-size:13px;line-height:1.7;color:#5e6570;margin:0}.ps-note{margin:10px 0 0}.ps-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ps-chip{background:#f4f5f7;color:#333;border:0;border-radius:3px;padding:6px 11px;font:inherit;font-size:14px;cursor:pointer}.ps-chip span{color:#b5bac2;margin-right:5px}.ps-chip.is-off{color:#999;text-decoration:line-through}.ps-chip:hover{background:#e9f3ff;color:#1688f5}.ps-rule-chips{display:flex;gap:6px 18px;flex-wrap:wrap;min-width:220px}.ps-rule-chips>span{white-space:nowrap;font-size:13px}.ps-rule-chips small{color:#777;font-size:12px}.ps-inline-state{display:flex;align-items:center;gap:12px;font-size:13px;margin-top:12px;color:#666}.ps-provider{background:#eff6ff;color:#2485e9;padding:4px 12px;border-radius:4px}.ps-card .pw-toggle{width:38px;height:21px;min-height:21px;padding:2px!important;border:0!important;flex-shrink:0}.ps-card .pw-toggle i{width:17px;height:17px}.ps-card .pw-toggle.on i{transform:translateX(17px)}.ps-card .pw-toggle:disabled{opacity:.4;cursor:default}.ps-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}.ps-search{display:flex;align-items:center;gap:8px}.ps-search input{border:1px solid #dcdfe6;border-radius:4px;padding:8px 10px;font:inherit;font-size:13px;width:220px;background:#fff}.ps-event-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.ps-event-filter .pp-field{gap:7px;font-size:12px;flex:1 1 145px;max-width:220px}.ps-event-filter .pp-field input,.ps-event-filter .pp-field select{min-width:0;width:100%;box-sizing:border-box;height:34px;border:1px solid #dcdfe6;border-radius:4px;padding:6px 9px;font:inherit}.ps-event-filter .pp-field-label{font-weight:400;color:#6c7480}.ps-link{color:#208aeb;text-decoration:none;white-space:nowrap}.ps-filter-indicator{color:#208aeb;font-size:12px}.ps-directory{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;min-height:300px}.ps-directory>aside{border-right:1px solid #eee;padding-right:15px}.ps-directory aside h4{font-size:13px;color:#777;font-weight:400;margin:0 0 12px}.ps-directory aside>.pp-button{display:block;text-align:left;width:100%;overflow-wrap:anywhere;white-space:normal;margin:4px 0;color:#555!important}.ps-directory aside>.pp-button:hover{background:#edf5ff}.ps-dept-pages{display:flex;margin-top:16px;justify-content:space-between}.ps-empty{text-align:center;color:#a1a7af;padding:60px 20px}.ps-empty span{font-size:44px}.ps-drawer{justify-content:flex-end!important;padding:0!important}.ps-drawer>.pp-dialog{width:min(780px,94vw)!important;max-width:none!important;height:100%!important;max-height:100%!important;border-radius:0!important;box-shadow:-8px 0 30px #182c4920}.ps-drawer .pp-dialog>header{height:62px;padding:0 24px!important}.ps-drawer .pp-dialog>header h2{font-size:17px!important}.ps-drawer .pp-form-body{display:flex!important;flex-direction:column!important;gap:22px!important;background:#fff!important;padding:24px!important}.ps-drawer .pp-field-label{font-size:13px;color:#646b75;font-weight:400}.ps-drawer .pp-field{font-size:13px;gap:9px}.ps-drawer input:not([type=checkbox]):not([type=radio]),.ps-drawer select,.ps-drawer textarea{width:100%;min-width:0;min-height:36px;box-sizing:border-box;border:1px solid #dcdfe6;border-radius:4px;background:#fff;padding:7px 10px;font:inherit;color:#333}.ps-drawer input:focus,.ps-drawer textarea:focus,.ps-drawer select:focus{outline:2px solid #ddecff;border-color:#55a8fb}.ps-drawer input:disabled,.ps-drawer select:disabled{background:#f7f8fa;color:#777}.ps-drawer textarea{height:76px;resize:vertical}.ps-cycle-types{border:0;margin:0;padding:0;display:flex;gap:12px 20px;flex-wrap:wrap}.ps-cycle-types legend{margin-bottom:14px;color:#646b75;font-size:13px}.ps-cycle-types small{color:#999;margin-left:8px}.ps-cycle-types label{font-size:13px;font-weight:400}.ps-rule-basics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;align-items:end}.ps-band-editor .pp-table-scroll{border:0;border-radius:0}.ps-band-editor th{font-weight:400;font-size:12px;color:#888;background:#fafafa}.ps-band-editor td{padding:10px 6px!important;min-width:0!important}.ps-band-editor td:first-child{width:26%}.ps-band-editor input{padding:6px!important}.ps-band-editor table{min-width:560px!important}.ps-band-editor .pp-button{padding:0;font-size:12px;color:#208aeb}.ps-option-row{display:grid;grid-template-columns:22px 1fr 40px;gap:12px;padding:16px 0;border-bottom:1px solid #eceef1;align-items:start}.ps-option-row>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ps-option-row>div>.pp-field:last-child{grid-column:1/-1}.ps-option-order{margin-top:28px;color:#999;font-size:12px}.ps-option-values{display:flex;gap:10px;min-width:0}.ps-option-values>.pp-field{flex:1;min-width:0}.ps-drawer .pp-dialog footer{border-top:1px solid #eceef1;background:white;padding:16px 24px;justify-content:flex-end}.ps-custom-value{grid-column:1/-1;min-height:120px}.ps-settings-groups{border:0}.ps-settings-groups>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;font-size:13px;cursor:pointer}.ps-settings-groups>summary:after{content:'⌄';color:#89919c}.ps-settings-groups[open]>summary:after{content:'⌃'}.ps-settings-groups>button{padding-left:38px!important}.ps-shell .pw-secondary .pw-app-name{height:58px;border-bottom:1px solid #eceef2;display:flex;align-items:center;padding:0 20px}.pp-rating-form .ps-rating-options{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ps-rating-options label{border:1px solid #e3e7ed;border-radius:4px;padding:8px 12px;font-size:13px;color:#555;cursor:pointer}.ps-rating-options label:has(input:checked){border-color:#3297f2;background:#f0f7ff;color:#1688f5}.ps-rating-options small{color:#999;margin-left:5px}.ps-rating-options input{margin-right:5px}.ps-rating-options legend{font-size:12px;color:#777;margin-bottom:9px}.pp-rating-form fieldset.ps-rating-options{border:0;padding:0}
@media(max-width:900px){.ps-body{padding:12px}.ps-card{padding:16px}.ps-heading{padding:0 16px;gap:18px}.ps-card>header{flex-wrap:wrap}.ps-card>header>.ps-hint{order:3;width:100%;margin:0}.ps-tabs{gap:16px;font-size:13px}.ps-directory{grid-template-columns:145px minmax(0,1fr)}.ps-search input{width:180px}.ps-card .pp-table-scroll td{padding:12px 8px}.ps-rule-chips{min-width:180px}.ps-rule-basics{grid-template-columns:1fr 1fr}.ps-rule-basics>.pp-check{grid-column:1/-1}}
@media(max-width:600px){.ps-heading{height:auto;min-height:58px;flex-wrap:wrap;padding-top:12px}.ps-tabs{height:42px}.ps-drawer>.pp-dialog{width:100vw!important}.ps-drawer .pp-form-body{padding:18px!important}.ps-directory{grid-template-columns:1fr}.ps-directory>aside{border-right:0;border-bottom:1px solid #eee;display:flex;flex-wrap:wrap;gap:8px}.ps-directory aside>.pp-button{width:auto}.ps-option-row>div{grid-template-columns:1fr}.ps-definition{grid-template-columns:90px 1fr}.ps-definition dd{gap:8px}}
/* Explicitly isolate settings controls from the host application's button theme. */
.ps-shell .pw-secondary .ps-settings-groups>button{display:block;width:100%;border:0;background:transparent;padding:10px 18px 10px 38px!important;text-align:left;font:inherit;font-size:13px;color:#555f6b;cursor:pointer;border-radius:0;box-shadow:none;min-height:38px}.ps-shell .pw-secondary .ps-settings-groups>button.active{background:#e8f2ff;color:#2485e9;font-weight:500}.ps-shell .pw-secondary .ps-settings-groups>button:hover{background:#eff6ff}.ps-shell .ps-card button.ps-chip{border:0;border-radius:3px;box-shadow:none;background:#f3f4f6;color:#333;padding:6px 11px;min-height:32px;font-weight:400}.ps-shell .ps-card button.ps-chip.is-off{color:#999}.ps-shell .ps-card button.ps-chip:hover{background:#e8f2ff;color:#2485e9}
/* Shared Feishu organization: paged, nested departments and explicit scope. */
.ps-shell .ps-directory{grid-template-columns:250px minmax(0,1fr);gap:22px}
.ps-shell .ps-directory>aside{min-width:0;padding-right:16px}
.ps-shell .ps-directory aside h4{margin:4px 10px 12px;color:#8b929d}
.ps-department-tree{list-style:none;padding:0;margin:0}
.ps-department-tree .ps-department-tree{margin:2px 0 4px 17px;padding-left:12px;border-left:1px solid #e8edf3}
.ps-department-tree li{list-style:none;margin:0;padding:0}
.ps-department-row{display:flex;align-items:center;min-height:36px;border-radius:4px;margin:2px 0;color:#525b67}
.ps-department-row:hover{background:#f5f8fc}
.ps-department-row.is-selected{background:#e8f2ff;color:#1683ed}
.ps-shell .ps-directory button.ps-department-select,.ps-shell .ps-directory button.ps-department-toggle{box-shadow:none;border:0;background:transparent;color:inherit;font:inherit;font-size:13px;min-width:0;margin:0;cursor:pointer;border-radius:4px}
.ps-shell .ps-directory button.ps-department-select{flex:1;text-align:left;padding:8px 8px 8px 2px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;font-weight:400}
.ps-shell .ps-directory .is-selected button.ps-department-select{font-weight:600}
.ps-shell .ps-directory button.ps-department-toggle{display:grid;place-items:center;flex:0 0 26px;width:26px;min-height:32px;padding:4px;color:#8a94a2}
.ps-department-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ps-department-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.ps-shell .ps-directory button.ps-department-toggle:hover{background:#dfeeff;color:#1683ed}
.ps-shell .ps-directory button:focus-visible{outline:2px solid #2689ee;outline-offset:1px}
.ps-department-leaf,.ps-department-all>span{flex:0 0 26px;text-align:center;color:#aab4c1;font-size:18px}
.ps-department-all{margin-bottom:8px}
.ps-department-all.is-selected>span{color:#1683ed}
.ps-dept-pages{align-items:center;gap:6px;font-size:12px;color:#8b929d;margin:8px 0 12px}
.ps-directory-members{min-width:0}
.ps-directory-scope{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:2px 0 15px;font-size:13px;line-height:1.6}
.ps-directory-scope strong{font-size:14px;font-weight:600;color:#343d49;overflow-wrap:anywhere}
.ps-directory-scope>span{color:#9099a5;font-size:12px;white-space:nowrap}
.ps-directory .ps-search{margin-bottom:14px;flex-wrap:wrap}
.ps-directory .ps-employee-departments{display:grid;gap:5px;min-width:150px;max-width:330px;white-space:normal;line-height:1.65;color:#677181}
.ps-directory .pp-table-scroll td:first-child{white-space:nowrap}
@media(max-width:1200px){.ps-shell .ps-directory{grid-template-columns:220px minmax(0,1fr);gap:16px}}
@media(max-width:900px){.ps-shell .ps-directory{grid-template-columns:190px minmax(0,1fr);gap:14px}.ps-shell .ps-directory>aside{padding-right:10px}}
@media(max-width:600px){.ps-shell .ps-directory{grid-template-columns:1fr}.ps-shell .ps-directory>aside{display:block;padding:0 0 12px;max-height:360px;overflow:auto}.ps-directory .ps-search input{width:min(220px,100%)}.ps-directory-scope{margin-top:4px}}
/* Department supervisors use the same source as the shared Feishu directory. */
.ps-directory-help{font-size:12px;line-height:1.7;color:#8b929d;margin:-5px 0 16px}
.ps-supervisor-panel{border:1px solid #e7edf5;border-radius:6px;background:#f9fbfe;padding:16px 18px;margin:0 0 20px}
.ps-supervisor-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-bottom:13px}
.ps-supervisor-panel h4{font-size:13px;font-weight:600;color:#414d5c;margin:0}
.ps-supervisor-panel>header>span{color:#919aa6;font-size:11px;line-height:1.6}
.ps-supervisor-list{display:flex;flex-wrap:wrap;gap:16px 32px}
.ps-supervisor-person{display:flex;gap:10px;align-items:center;min-width:130px}
.ps-supervisor-avatar{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#e7f1ff;color:#3984cf;border-radius:50%;font-size:15px}
.ps-supervisor-person strong{font-size:14px;font-weight:500;color:#303c4b;line-height:1.6}
.ps-supervisor-title{display:block;font-size:12px;color:#86909d;line-height:1.6;margin-top:1px}
.ps-supervisor-empty{margin:0;color:#8c96a3;font-size:12px;line-height:1.8}
.ps-directory .ps-supervisor-warning{display:block;color:#a67532;font-size:11px;font-weight:400;line-height:1.6}
.ps-supervisor-muted{color:#9ba3af;font-size:12px}
.ps-employee-supervisors{display:grid;gap:10px;min-width:100px;max-width:190px;white-space:normal;line-height:1.7}
.ps-employee-supervisors>div>small{display:block;font-size:11px;color:#8c96a3}
.ps-employee-supervisors>div>span{display:block}
@media(max-width:900px){.ps-supervisor-panel{padding:14px}.ps-supervisor-panel>header>span{width:100%}}

/* In-heading, indeterminate loading never adds a row above the directory. */
.ps-heading{position:relative}
.ps-heading .ps-loading-progress{position:absolute;left:0;right:0;bottom:0;height:3px;overflow:hidden;background:#e8f2ff;pointer-events:none}
.ps-heading .ps-loading-progress::after{content:'';display:block;width:30%;height:100%;background:#3488f5;transform:translateX(-100%);animation:ps-directory-loading 1.2s ease-in-out infinite}
@keyframes ps-directory-loading{to{transform:translateX(340%)}}
@media(prefers-reduced-motion:reduce){.ps-heading .ps-loading-progress::after{animation:none;transform:none;width:100%;background:#91bfff}}
