:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#17231d;background:#f4f7f5;font-synthesis:none;--green:#17784b;--green-dark:#0d5e39;--line:#dfe7e2;--muted:#718078;--card:#fff}*{box-sizing:border-box}body{margin:0}a{color:inherit}.login-card{width:min(94vw,440px);margin:7vh auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 16px 50px #173b2612;text-align:center}.logout-card{margin-top:18vh}.logout-card .button{margin-top:12px;min-height:44px}.brand{color:var(--green);font-weight:700}.muted,.hint{color:var(--muted)}.hint{font-size:13px}.qr{width:100%;height:360px;border:0;margin:16px 0;background:#fff}.button,button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:var(--green);color:#fff;padding:10px 16px;text-decoration:none;font-weight:650;cursor:pointer}.button:hover,button:hover{background:var(--green-dark)}.light{background:#fff;color:var(--green)}.light:hover{background:#eef9f2}.secondary{background:#edf7f1;color:#12663e}.error-label,.danger,.text-danger{color:#aa3838}.secret{padding:16px;background:#111;color:#d9ffe9;border-radius:8px;overflow:auto;text-align:left}
/* hot-reload probe: 2026-08-14-v2 */
.wecom-login-panel{min-height:380px;margin:14px auto 0;display:flex;justify-content:center;overflow:hidden}.wecom-login-panel iframe{display:block;max-width:100%;border:0}
.admin-body{background:#f4f7f5}.app-shell{min-height:100vh;display:grid;grid-template-columns:232px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#10261d;color:#dfeae4;padding:24px 16px;display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;gap:12px;text-decoration:none;padding:0 8px 28px}.brand-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#25a166;color:white;font-size:19px;font-weight:800}.sidebar-brand strong,.sidebar-user strong{display:block;color:#fff}.sidebar-brand small,.sidebar-user small{display:block;color:#91a79b;margin-top:3px}.side-nav{display:grid;gap:5px}.side-nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:9px;text-decoration:none;color:#aebfb6;font-weight:600;font-size:14px}.side-nav a span{width:20px;text-align:center;font-size:18px}.side-nav a:hover{background:#18382b;color:#fff}.side-nav a.active{background:#1c4a37;color:#fff;box-shadow:inset 3px 0 #47c482}.sidebar-user{margin-top:auto;border-top:1px solid #284237;padding:18px 7px 0;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;font-size:13px}.sidebar-user .avatar{width:36px;height:36px;border-radius:50%;background:#d9f6e5;color:#176c45;display:grid;place-items:center;font-weight:800}.sidebar-user>a{color:#8fa69a;text-decoration:none;font-size:18px}.workspace{min-width:0;padding:0 34px 50px}.page-header{height:104px;display:flex;align-items:center;justify-content:space-between}.page-header p{margin:0 0 5px;color:#8b9891;font-size:12px;letter-spacing:.08em}.page-header h1{margin:0;font-size:25px}.system-state{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#e8f6ee;color:#21714c;border-radius:999px;font-size:13px;font-weight:650}.system-state i{width:7px;height:7px;background:#24a261;border-radius:50%;box-shadow:0 0 0 4px #c9ead7}
.overview-hero{min-height:210px;border-radius:18px;padding:34px 38px;background:linear-gradient(120deg,#145f3d,#1b8b57);color:white;display:flex;align-items:center;justify-content:space-between;box-shadow:0 16px 34px #185a3a24}.overview-hero h2{font-size:28px;margin:10px 0}.overview-hero p{margin:0;color:#d2eee0}.eyebrow{font-size:11px;letter-spacing:.16em;color:#aee1c6}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.metric-grid article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;align-items:center;gap:16px}.metric-grid strong{font-size:25px}.metric-grid p{margin:3px 0 0;color:var(--muted);font-size:13px}.metric-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;font-size:22px}.metric-icon.green{background:#e8f7ef;color:#17804e}.metric-icon.blue{background:#eaf2fa;color:#3373a6}.metric-icon.amber{background:#fff2d9;color:#a86c13}.content-card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:0 5px 18px #173b2608}.card-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.card-heading h2,.section-title h2{font-size:18px;margin:0}.card-heading p,.section-title p{font-size:13px;color:var(--muted);margin:5px 0 0}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quick-grid a{padding:19px;border:1px solid var(--line);border-radius:12px;text-decoration:none;transition:.15s}.quick-grid a:hover{border-color:#8bc5a7;transform:translateY(-2px);box-shadow:0 9px 22px #143f2810}.quick-grid span{color:#2b9161;font-size:12px;font-weight:800}.quick-grid strong{display:block;margin:10px 0 5px}.quick-grid p{font-size:13px;color:var(--muted);line-height:1.55;margin:0}
.split-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:22px;align-items:start}.sticky-card{position:sticky;top:20px}.form-stack{display:grid;gap:14px}.form-stack label,.inline-create label,.permission-form label{display:grid;gap:6px;font-size:13px;font-weight:700}.form-stack label small{float:right;color:#9aa49f;font-weight:400}.form-stack input,.inline-create input,.permission-form select{width:100%;padding:10px 11px;border:1px solid #cdd9d2;border-radius:8px;background:#fff;color:#243129;outline:none}.form-stack input:focus,.inline-create input:focus,.permission-form select:focus{border-color:#4ba577;box-shadow:0 0 0 3px #dff2e8}.module-list{display:grid;gap:14px}.section-title{display:flex;justify-content:space-between;align-items:end;padding:2px 2px 4px}.module-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.module-card-top{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;margin-bottom:19px}.module-symbol{width:44px;height:44px;border-radius:11px;background:#e7f6ed;color:#197d4e;display:grid;place-items:center;text-transform:uppercase;font-weight:900;font-size:19px}.module-card h3{margin:0 0 3px}.module-card code,.person-card code{color:#79877f;font-size:12px}.status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:750}.status.enabled{background:#e8f7ee;color:#1d7c4d}.status.disabled{background:#f0f2f1;color:#78817c}.compact{grid-template-columns:1fr 1.35fr 1fr}.compact .form-footer{grid-column:1/-1}.form-footer{display:flex;justify-content:space-between;align-items:center}.switch-row{display:flex!important;align-items:center;gap:8px!important;font-weight:500!important}.switch-row input{width:auto}.rotate-form{margin-top:9px;text-align:right}.text-danger{background:transparent;padding:5px 0;font-size:12px}.text-danger:hover{background:transparent;color:#7d2020}
.access-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.wide-card{grid-column:1/-1}.inline-create{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.permission-form{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:end}.permission-form>span{padding-bottom:11px;color:#86928c;font-size:13px}.permission-form .actions{grid-column:1/-1;display:flex;gap:8px}.button-ghost{background:#eef3f0;color:#40534a}.button-ghost:hover{background:#e1e9e4}.button-ghost.danger{color:#a13b3b}.divider{height:1px;background:var(--line);margin:22px 0}.mapping-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.mapping-list span{padding:6px 9px;background:#f0f5f2;border-radius:7px;color:#456055;font-size:12px}.people-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.person-card{border:1px solid var(--line);border-radius:11px;padding:12px;display:grid;grid-template-columns:38px 1fr auto auto;align-items:center;gap:10px}.person-avatar{width:38px;height:38px;border-radius:10px;background:#edf4f0;display:grid;place-items:center;color:#286a4a;font-weight:800}.person-card strong,.person-card code{display:block}.person-card form{margin:0}
.logs-card{padding:0;overflow:hidden}.logs-card .card-heading{padding:24px 24px 18px;margin:0}.record-count{padding:6px 10px;background:#f0f5f2;border-radius:7px;color:#607168;font-size:12px}.table-scroll{overflow:auto}.log-table{width:100%;border-collapse:collapse;font-size:13px}.log-table th{background:#f7f9f8;color:#718078;font-size:11px;letter-spacing:.04em;text-transform:uppercase}.log-table th,.log-table td{padding:13px 18px;border-top:1px solid #e7ece9;text-align:left}.log-table tbody tr:hover{background:#fbfdfc}.nowrap{white-space:nowrap;color:#66756d}.mono,.log-table code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.result{padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750}.result.success{background:#e7f6ed;color:#177648}.result.denied,.result.failed{background:#fbe9e9;color:#a23d3d}.detail{color:#7a8780}
.log-filters{display:grid;grid-template-columns:1.4fr repeat(3,minmax(120px,.7fr));gap:12px;padding:18px 24px;background:#f8faf9;border-top:1px solid var(--line);border-bottom:1px solid var(--line);align-items:end}.log-filters label{display:grid;gap:5px;color:#65736b;font-size:11px;font-weight:700}.log-filters input,.log-filters select{width:100%;height:38px;border:1px solid #ccd7d1;border-radius:7px;background:white;padding:0 10px;color:#26372e}.filter-actions{display:flex;gap:8px;align-items:center}.filter-actions button{height:38px}.filter-actions a{height:38px;display:inline-flex;align-items:center;padding:0 12px;border-radius:7px;color:#586860;text-decoration:none;background:#e9efec;font-size:13px;font-weight:650}.empty-row{text-align:center!important;color:#8b9790;padding:45px!important}.pagination{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-top:1px solid var(--line);color:#708078;font-size:12px}.pagination>div{display:flex;align-items:center;gap:12px}.pagination strong{color:#425248}.page-button{padding:7px 10px;border:1px solid #d4ddd8;border-radius:7px;text-decoration:none;background:#fff;color:#355045;font-weight:650}.page-button.disabled{opacity:.45;pointer-events:none}
.logs-card .pagination{display:none}.number-pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 4px;color:#708078;font-size:12px}.number-pagination nav{display:flex;align-items:center;gap:6px}.page-number{min-width:34px;height:34px;padding:0 9px;border:1px solid #d4ddd8;border-radius:8px;background:#fff;color:#355045;text-decoration:none;display:grid;place-items:center;font-weight:700}.page-number:hover{border-color:#69ab88;background:#f0f8f3}.page-number.current{background:var(--green);border-color:var(--green);color:#fff}.page-ellipsis{width:24px;text-align:center;color:#849088;font-weight:700}
.danger-zone{margin-top:22px;border-color:#ecd5d5}.danger-zone .card-heading{margin-bottom:12px}.danger-zone h2{color:#8d3030}.delete-list{display:grid;gap:8px}.delete-list>div{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #eee0e0;background:#fffafa;border-radius:10px}.delete-list span strong,.delete-list span code{display:block}.delete-list span code{margin-top:3px;color:#8c7a7a}.delete-list form{margin:0}.delete-button{background:#fff;border:1px solid #dcaeae;color:#9b3333}.delete-button:hover{background:#a43b3b;color:#fff}
.workspace:has(.directory-card){display:flex;flex-direction:column}.workspace:has(.directory-card) .page-header{order:0;flex:none}.workspace:has(.directory-card) .bulk-access-card{order:1}.workspace:has(.directory-card) .directory-card{order:2}.workspace:has(.directory-card) .access-grid{order:3;grid-template-columns:1fr}.access-grid .wide-card{display:none}.directory-card{margin:0 0 20px;padding:0;overflow:hidden}.directory-card .card-heading{padding:24px;margin:0}.member-directory{display:grid}.member-row{display:grid;grid-template-columns:210px minmax(280px,1fr) minmax(230px,.9fr);gap:20px;padding:22px 24px;border-top:1px solid var(--line)}.member-row:hover{background:#fbfdfc}.member-identity{display:flex;gap:12px;align-items:flex-start}.member-identity img,.member-identity>.person-avatar{width:48px;height:48px;border-radius:13px;object-fit:cover;flex:none}.member-identity h3{margin:1px 0 3px;font-size:16px}.member-identity code{display:block;color:#7c8881;font-size:11px;margin-bottom:7px}.member-profile{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.member-profile div{min-width:0}.member-profile dt{color:#89958e;font-size:10px;font-weight:700;margin-bottom:3px}.member-profile dd{margin:0;color:#34473d;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.permission-summary{display:grid;gap:7px;font-size:12px}.permission-summary>div{display:grid;grid-template-columns:76px 1fr;gap:7px}.permission-summary strong{color:#748178}.permission-summary span{color:#31483c}.permission-summary .effective{padding:7px 9px;background:#eaf7ef;border-radius:7px}.member-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto;gap:10px;padding-top:14px;border-top:1px dashed #dbe4df}.member-actions form{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:end;margin:0}.member-actions label{display:grid;gap:4px;color:#78857e;font-size:10px;font-weight:700}.member-actions select{height:34px;border:1px solid #ced9d3;border-radius:7px;background:white;padding:0 8px}.member-actions button{height:34px;padding:0 11px;font-size:12px}.member-actions .status-action{display:block;align-self:end}
.bulk-access-card{margin-bottom:16px;padding:0;overflow:hidden}.bulk-toolbar-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 22px;border-bottom:1px solid var(--line)}.bulk-toolbar-heading div strong,.bulk-toolbar-heading div small{display:block}.bulk-toolbar-heading div strong{font-size:15px}.bulk-toolbar-heading div small{margin-top:3px;color:#849088;font-size:11px}.bulk-toolbar-heading>span{padding:6px 9px;border-radius:7px;background:#e8f6ee;color:#1d794c;font-size:10px;font-weight:700}.bulk-access-card form{padding:16px 22px}.bulk-block{min-width:0}.bulk-block h3{margin:0 0 10px}.module-checkboxes>label{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid #dfe7e2;border-radius:8px;background:#fbfdfc;cursor:pointer}.module-checkboxes input,.directory-member-check,.directory-select-all{accent-color:#198754}.module-checkboxes span{min-width:0;font-size:11px;font-weight:650}.module-checkboxes small{display:block;margin-top:2px;color:#89958e;font-size:9px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bulk-permission-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:24px}.bulk-role-select{display:grid;gap:5px;color:#718078;font-size:10px}.bulk-role-select select{height:38px;border:1px solid #ccd8d1;border-radius:8px;background:#fff;padding:0 10px}.module-checkboxes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.bulk-buttons{display:flex;gap:7px;margin-top:12px}.bulk-buttons button{height:36px;padding:0 13px;font-size:11px}.member-table th.select-col,.member-table td.select-col{width:4%;padding-left:8px;padding-right:4px;text-align:center}.member-table th:nth-child(2){width:15%}.member-table th:nth-child(3){width:15%}.member-table th:nth-child(4){width:18%}.member-table th:nth-child(5){width:17%}.member-table th:nth-child(6){width:17%}.member-table th:nth-child(7){width:6%}.member-table th:nth-child(8){width:8%}.directory-member-check,.directory-select-all{width:16px;height:16px;cursor:pointer}
.people-filters{display:grid;grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) 120px 100px auto;gap:10px;align-items:end;padding:0 24px 20px}.people-filters label{display:grid;gap:5px;color:#6f7d75;font-size:11px;font-weight:700}.people-filters input,.people-filters select{height:38px;border:1px solid #ccd8d1;border-radius:8px;background:#fff;padding:0 10px;color:#28372f}.people-filters .filter-actions{display:flex;gap:7px}.people-filters .filter-actions button,.people-filters .filter-actions a{height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:8px;font-size:12px;font-weight:700}.people-filters .filter-actions a{background:#eef3f0;color:#526259}.member-table-wrap{overflow:auto;border-top:1px solid var(--line)}.member-table{width:100%;min-width:780px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}.member-table th{padding:10px;background:#f7faf8;color:#75827b;text-align:left;font-size:11px;white-space:nowrap}.member-table td{padding:10px;border-top:1px solid #edf1ef;vertical-align:middle;color:#34443b;overflow-wrap:anywhere}.member-table th:nth-child(1){width:17%}.member-table th:nth-child(2){width:16%}.member-table th:nth-child(3){width:19%}.member-table th:nth-child(4){width:18%}.member-table th:nth-child(5){width:18%}.member-table th:nth-child(6){width:6%}.member-table th:nth-child(7){width:6%}.member-table tbody tr:hover{background:#fbfdfc}.member-table small,.contact-lines small{display:block;margin-top:4px;color:#87938c;font-size:10px;font-weight:400}.member-cell{display:flex;align-items:center;gap:8px;min-width:0}.member-cell img,.member-cell .person-avatar{width:32px;height:32px;border-radius:8px;object-fit:cover;flex:none}.member-cell strong,.member-cell code{display:block}.member-cell code{margin-top:3px;color:#87938c;font-size:10px;overflow:hidden;text-overflow:ellipsis}.contact-lines{word-break:break-all}.table-tags{display:flex;flex-wrap:wrap;gap:4px;max-width:none}.table-tags span{padding:4px 6px;border-radius:5px;background:#eef3f0;color:#486054;font-size:10px}.table-tags em{color:#9aa49f;font-style:normal}.effective-tags span{background:#e7f6ed;color:#19784b}.member-table th:last-child,.member-table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-7px 0 10px #203c2b0a;overflow:visible;z-index:2}.member-table th:last-child{background:#f7faf8;z-index:3}.member-table tr:hover td:last-child{background:#fbfdfc}.member-table td:has(> .row-editor[open]){z-index:20}.row-editor{position:relative}.row-editor summary{cursor:pointer;list-style:none;color:#187348;font-weight:700;white-space:nowrap}.row-editor summary::-webkit-details-marker{display:none}.row-editor>div{position:absolute;right:0;top:24px;width:300px;z-index:10;display:grid;gap:8px;padding:10px;background:#f6f9f7;border:1px solid #d5e1da;border-radius:9px;box-shadow:0 12px 30px #173a2526}.row-editor form{display:grid;grid-template-columns:1fr 1fr;gap:5px;align-items:end}.row-editor label{display:grid;grid-column:1/-1;gap:3px;color:#79867f;font-size:9px}.row-editor select{height:31px;min-width:120px;border:1px solid #cbd7d0;border-radius:6px;background:#fff;padding:0 6px}.row-editor button{height:31px;padding:0 8px;font-size:10px}.row-editor .status-action{display:block}.member-pagination{padding:16px 24px;margin:0;border-top:1px solid var(--line)}
@media(max-width:1000px){.app-shell{grid-template-columns:76px 1fr}.sidebar-brand span:last-child,.side-nav a:not(.active){font-size:0}.side-nav a{justify-content:center}.side-nav a.active{font-size:0}.side-nav a span{font-size:20px}.sidebar-user>div:not(.avatar),.sidebar-user>a{display:none}.sidebar-user{display:block}.split-layout{grid-template-columns:1fr}.sticky-card{position:static}.access-grid{grid-template-columns:1fr}.wide-card{grid-column:auto}.member-row{grid-template-columns:180px minmax(0,1fr)}.permission-summary{grid-column:1/-1}.member-actions{grid-template-columns:1fr}.people-filters{grid-template-columns:2fr 1fr 1fr}.people-filters .filter-actions{grid-column:auto}}@media(max-width:700px){.workspace{padding:0 14px 35px}.page-header{height:84px}.system-state{display:none}.overview-hero{padding:25px;display:block}.overview-hero .button{margin-top:22px}.metric-grid,.quick-grid,.people-grid{grid-template-columns:1fr}.compact,.inline-create,.permission-form{grid-template-columns:1fr}.permission-form>span{padding:0}.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:12px;display:block}.sidebar-brand,.sidebar-user{display:none}.side-nav{display:grid;grid-template-columns:repeat(5,1fr)}.side-nav a,.side-nav a.active,.side-nav a:not(.active){font-size:10px;display:grid;justify-items:center;padding:7px 2px}.side-nav a span{font-size:16px}.form-footer{align-items:flex-start;gap:10px}.log-table th,.log-table td{padding:10px}.member-row{grid-template-columns:1fr;padding:18px 16px}.member-profile{grid-template-columns:1fr 1fr}.permission-summary{grid-column:auto}.member-actions form{grid-template-columns:1fr auto auto}.people-filters{grid-template-columns:1fr;padding:0 16px 18px}.people-filters .filter-actions{grid-column:auto}.directory-card .card-heading{padding:20px 16px}.member-pagination{padding:14px 16px;display:grid;gap:10px}}
.directory-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.directory-summary article{display:flex;align-items:baseline;gap:9px;padding:17px 20px;background:#fff;border:1px solid var(--line);border-radius:12px}.directory-summary strong{font-size:23px;color:#176f47}.directory-summary span{font-size:12px;color:var(--muted)}.org-card{padding:0;overflow:hidden}.org-card .card-heading{align-items:center;padding:24px;margin:0}.org-card .card-heading form{margin:0}.org-legend{display:flex;gap:18px;padding:11px 24px;background:#f7faf8;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;color:#77857d}.org-legend span{display:flex;align-items:center;gap:6px}.org-legend i{width:9px;height:9px;border-radius:3px}.legend-dept{background:#d8f0e3}.legend-leader{background:#fff0c8}.legend-member{background:#e5edf8}.department-tree{padding:12px 18px 22px}.department-node details{position:relative}.department-node summary{min-height:55px;display:grid;grid-template-columns:22px 34px minmax(170px,1fr) minmax(180px,1.2fr) 72px;align-items:center;gap:9px;padding:7px 12px;border-radius:10px;cursor:pointer;list-style:none}.department-node summary::-webkit-details-marker{display:none}.department-node summary:hover{background:#f3f8f5}.tree-toggle{width:19px;height:19px;display:grid;place-items:center;color:#698077}.tree-toggle:before{content:'›';font-size:22px;line-height:1;transition:transform .15s}.department-node details[open]>summary .tree-toggle:before{transform:rotate(90deg)}.department-node details.leaf>summary .tree-toggle:before{content:'·';transform:none;font-size:20px}.department-mark{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#e6f5ec;color:#19794b;font-size:11px;font-weight:800}.department-title{min-width:0}.department-title strong,.department-title small{display:block}.department-title strong{font-size:13px;color:#263a30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.department-title small{margin-top:3px;color:#9aa59f;font-size:9px}.department-leaders{display:flex;flex-wrap:wrap;gap:5px}.department-leaders em{padding:4px 7px;border-radius:999px;background:#fff2d2;color:#8a6418;font-size:10px;font-style:normal;font-weight:650}.department-leaders small{color:#a0aaa4;font-size:10px}.department-members{justify-self:end;min-width:58px;padding:5px 8px;border-radius:7px;background:#edf3f9;color:#54708c;text-align:center;font-size:10px;font-weight:700}.department-children{position:relative;margin-left:27px;padding-left:19px}.department-children:before{content:'';position:absolute;left:5px;top:0;bottom:17px;border-left:1px solid #dbe6e0}.department-children>.department-node:before{content:'';position:absolute;left:-14px;top:27px;width:14px;border-top:1px solid #dbe6e0}.empty-tree{padding:60px;text-align:center;color:#738179}.empty-tree strong{color:#425249}.empty-tree p{margin:7px 0 0;font-size:12px}@media(max-width:850px){.directory-summary{grid-template-columns:repeat(2,1fr)}.department-node summary{grid-template-columns:20px 32px minmax(120px,1fr) 64px}.department-leaders{grid-column:3/-1;padding-bottom:6px}.department-members{grid-column:4;grid-row:1}}@media(max-width:700px){.side-nav{grid-template-columns:repeat(5,1fr)}.directory-summary{grid-template-columns:1fr 1fr}.org-card .card-heading{align-items:flex-start;gap:12px}.department-tree{padding:8px 5px 16px}.department-children{margin-left:14px;padding-left:9px}.department-node summary{padding:7px 5px}.org-legend{padding:10px 12px;flex-wrap:wrap}}
.sync-state-bar{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:11px}.sync-state-bar strong{font-size:12px;color:#627169}.sync-state-bar form{margin-left:auto}.sync-state-bar button{height:34px;padding:0 13px;font-size:11px}.result.running,.result.pending,.event-status.pending,.event-status.processing,.event-status.retry{background:#fff2d6;color:#946611}.result.failed,.event-status.failed,.event-status.dead{background:#fbe7e7;color:#a23b3b}.directory-layout{display:grid;grid-template-columns:minmax(540px,1.4fr) minmax(340px,.8fr);gap:18px;align-items:start}.department-node summary{grid-template-columns:22px 34px minmax(150px,1fr) minmax(150px,1.1fr) 62px 48px}.department-open{padding:5px 7px;border-radius:6px;background:#e9f5ee;color:#187347;text-decoration:none;text-align:center;font-size:10px;font-weight:750}.department-open:hover{background:#17784b;color:#fff}.department-panel{position:sticky;top:18px;padding:0;overflow:hidden}.department-panel .card-heading{padding:22px;margin:0;border-bottom:1px solid var(--line)}.department-member-list{max-height:680px;overflow:auto}.department-person{display:grid;grid-template-columns:38px minmax(110px,1fr) minmax(100px,auto) 44px;align-items:center;gap:9px;padding:11px 16px;border-bottom:1px solid #edf1ef;text-decoration:none}.department-person:hover{background:#f6faf8}.department-person img,.department-person>.person-avatar{width:36px;height:36px;border-radius:9px;object-fit:cover}.person-name strong,.person-name small{display:block}.person-name strong{font-size:12px}.person-name small{margin-top:3px;color:#849089;font-size:9px}.membership-badges{display:flex;gap:4px;justify-content:flex-end}.membership-badges em,.profile-groups em{padding:3px 6px;border-radius:999px;font-size:9px;font-style:normal;font-weight:750}.membership-badges .main,.profile-groups .main{background:#e6f0fa;color:#376c9f}.membership-badges .leader,.profile-groups .leader{background:#fff0c7;color:#8b6315}.open-profile{color:#278058;font-size:10px}.empty-department{min-height:330px;display:grid;place-content:center;justify-items:center;text-align:center;padding:30px;color:#75837b}.empty-department>span{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:#e8f5ed;color:#19794c;font-size:25px}.empty-department strong{margin-top:13px;color:#33473c}.empty-department p{max-width:250px;margin:6px 0;line-height:1.6;font-size:11px}.directory-audit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.audit-card{padding:0;overflow:hidden}.audit-card .card-heading{padding:20px;margin:0}.directory-audit-table{width:100%;border-collapse:collapse;font-size:11px}.directory-audit-table th,.directory-audit-table td{padding:10px 13px;border-top:1px solid #e8eeea;text-align:left;white-space:nowrap}.directory-audit-table th{background:#f7faf8;color:#79867f;font-size:9px}.directory-audit-table code{font-size:9px}.event-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#e7f6ed;color:#177648;font-size:9px;font-weight:750}.event-status.done{background:#e7f6ed;color:#177648}.back-link{display:inline-flex;margin-bottom:14px;color:#287552;text-decoration:none;font-size:12px;font-weight:700}.profile-hero{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:22px;background:linear-gradient(120deg,#103d2c,#17784b);color:#fff;border:0}.profile-hero>img:not(.profile-qr),.profile-avatar{width:88px;height:88px;border-radius:21px;object-fit:cover;display:grid;place-items:center;background:#dff4e8;color:#176a44;font-size:24px;font-weight:800}.profile-hero h2{margin:7px 0 4px;font-size:27px}.profile-hero p{margin:0;color:#d2e9dd}.profile-status{display:flex;align-items:center;gap:8px;margin-top:13px;font-size:10px;color:#bddacc}.profile-status .status.enabled{background:#d9f2e4}.profile-qr{width:76px;height:76px;border-radius:10px;background:#fff;padding:5px}.profile-layout{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;margin-top:18px;align-items:start}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;border:1px solid #e2e9e5;border-radius:10px;overflow:hidden}.profile-fields div{padding:13px 15px;border-bottom:1px solid #e8eeea}.profile-fields div:nth-child(odd){border-right:1px solid #e8eeea}.profile-fields .wide{grid-column:1/-1;border-right:0}.profile-fields dt{color:#86938c;font-size:9px;font-weight:700}.profile-fields dd{margin:5px 0 0;color:#30443a;font-size:12px;word-break:break-all}.profile-groups{display:grid;gap:20px}.profile-groups section+section{padding-top:17px;border-top:1px solid var(--line)}.profile-groups h3{margin:0 0 9px;font-size:12px}.profile-groups section>a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;margin-top:6px;border-radius:8px;background:#f5f8f6;text-decoration:none;font-size:11px}.profile-groups section>a span{display:flex;gap:4px}.profile-tags{display:flex;flex-wrap:wrap;gap:5px}.profile-tags span{padding:5px 8px;border-radius:6px;background:#eef3f0;color:#456055;font-size:10px}.profile-tags.modules span{background:#e6f4ec;color:#19764a}.profile-tags small{color:#8c9891}@media(max-width:1150px){.directory-layout{grid-template-columns:1fr}.department-panel{position:static}.directory-audit-grid{grid-template-columns:1fr}}@media(max-width:850px){.department-node summary{grid-template-columns:20px 32px minmax(120px,1fr) 55px 42px}.department-leaders{grid-column:3/-1;padding-bottom:6px}.department-members{grid-column:4;grid-row:1}.department-open{grid-column:5;grid-row:1}.profile-layout{grid-template-columns:1fr}}@media(max-width:700px){.sync-state-bar{flex-wrap:wrap}.sync-state-bar form{margin-left:0;width:100%}.directory-layout{display:flex;flex-direction:column}.department-panel{order:-1;margin:0 0 14px}.department-person{grid-template-columns:36px 1fr 42px}.membership-badges{grid-column:2/-1;justify-content:flex-start}.profile-hero{grid-template-columns:64px 1fr}.profile-hero>img:not(.profile-qr),.profile-avatar{width:64px;height:64px}.profile-qr{display:none}.profile-fields{grid-template-columns:1fr}.profile-fields div:nth-child(odd){border-right:0}.profile-fields .wide{grid-column:auto}}
.avatar-with-fallback{position:relative;display:grid;place-items:center;width:36px;height:36px;overflow:hidden;border-radius:9px}.avatar-with-fallback>.person-avatar,.avatar-with-fallback>img{grid-area:1/1;width:100%;height:100%;border-radius:inherit}.avatar-with-fallback>img{position:relative;z-index:1;display:block;object-fit:cover}.avatar-with-fallback>img[hidden]{display:none}.profile-avatar-fallback{width:88px;height:88px;border-radius:21px}.profile-avatar-fallback>.profile-avatar{width:100%;height:100%;border-radius:inherit}.profile-avatar-fallback>img{width:100%;height:100%;object-fit:cover}@media(max-width:700px){.profile-avatar-fallback{width:64px;height:64px}}
@media(max-width:900px){.bulk-member-grid{grid-template-columns:repeat(3,1fr)}.bulk-permission-grid{grid-template-columns:1fr}.module-checkboxes{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.bulk-member-grid,.module-checkboxes{grid-template-columns:repeat(2,1fr)}.bulk-access-card form{padding:16px}.bulk-buttons{display:grid;grid-template-columns:1fr 1fr}}
.member-table th.select-col,.member-table td.select-col{width:4%}.member-table th:nth-child(2){width:15%}.member-table th:nth-child(3){width:15%}.member-table th:nth-child(4){width:18%}.member-table th:nth-child(5){width:17%}.member-table th:nth-child(6){width:17%}.member-table th:nth-child(7){width:6%}.member-table th:nth-child(8){width:8%}
.callback-secret-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.callback-secret-heading strong{font-size:13px}.mini-button{padding:7px 10px;font-size:11px;white-space:nowrap}.callback-url-box{display:grid;gap:7px;padding:11px 12px;border:1px solid #cfe1d7;border-radius:9px;background:#f3faf6}.callback-url-box>span{color:#65776d;font-size:11px;font-weight:700}.callback-url-box>div{display:flex;align-items:center;gap:8px;min-width:0}.callback-url-box code{min-width:0;flex:1;color:#176a44!important;font-size:11px!important;overflow-wrap:anywhere}.callback-url-box.configured{margin:-4px 0 17px}.callback-generate-cell{display:flex;align-items:end}.callback-generate-cell button{width:100%}.message-app-form fieldset{min-width:0}.compact.message-app-form .callback-url-box,.compact.message-app-form fieldset{grid-column:1/-1}@media(max-width:700px){.callback-url-box>div{align-items:stretch;flex-direction:column}.callback-url-box button{align-self:flex-start}.callback-secret-heading{align-items:flex-start;flex-direction:column}}

/* Message application setup: one task at a time. */
.message-hub{display:grid;gap:26px;max-width:1100px;margin:auto}.message-intro{display:flex;justify-content:space-between;align-items:center;gap:16px}.message-intro h2{margin:0;font-size:21px}.message-intro p{color:var(--muted);font-size:14px}.message-create>summary,.message-official>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:32px}.message-create>summary strong{color:var(--green)}.message-create>summary span,.message-official>summary span{font-size:13px;color:var(--muted)}.message-create>summary:after,.message-official>summary:after{content:'展开';color:var(--green);font-size:13px}.message-create[open]>summary:after,.message-official[open]>summary:after{content:'收起'}.message-create[open]>summary,.message-official[open]>summary{margin-bottom:24px}.message-step{border:0;border-top:1px solid var(--line);padding:20px 0 4px;margin:0;min-width:0}.message-step h3{font-size:15px;margin:0 0 16px}.message-step h3>span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e8f7ee;color:var(--green);margin-right:7px}.message-presets,.message-secret-actions{display:flex;gap:10px;flex-wrap:wrap}.message-notice{font-size:13px;line-height:1.7;color:#617369;margin:10px 0}.message-notice a{color:var(--green);text-underline-offset:3px}.message-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.message-modules{border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:12px}.message-modules legend{font-size:13px;font-weight:600;padding:0 6px}.message-modules code{font-size:11px;color:var(--muted);margin-left:8px;overflow-wrap:anywhere}.message-app-form .switch-row input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.message-callback>summary,.message-editor>summary,.message-danger>summary{cursor:pointer;min-height:44px;align-content:center;font-size:14px;font-weight:600;color:var(--green)}.message-callback[open]>*,.message-editor[open]>.form-stack{margin-top:14px}.message-count{font-size:13px;color:var(--muted);margin-left:8px}.message-card .module-card-top{margin-bottom:12px}.message-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#617369;font-size:13px;line-height:1.7}.message-summary code{overflow-wrap:anywhere}.message-editor{border-top:1px solid var(--line);margin-top:16px;padding-top:5px}.message-danger{margin-top:20px;border-top:1px solid #f1dede;padding-top:8px}.message-danger>summary,.message-danger p{color:#aa3838}.message-danger p{font-size:13px}.message-hub button:disabled{opacity:.5;cursor:not-allowed}.message-hub summary:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:4px}.message-official>.content-card{box-shadow:none}.message-hub .form-footer{gap:16px}.message-hub .module-card-top>div{min-width:0}.message-hub .module-card-top code{overflow-wrap:anywhere}
@media(max-width:700px){.message-fields{grid-template-columns:1fr}.message-intro{align-items:flex-start;flex-direction:column}.message-create>summary,.message-official>summary{flex-wrap:wrap}.message-create>summary span,.message-official>summary span{width:100%}.message-hub .content-card,.message-hub .module-card{padding:18px}.message-hub .form-footer{align-items:stretch;flex-direction:column}.message-hub .module-card-top{grid-template-columns:36px minmax(0,1fr)}.message-hub .module-card-top>.status{grid-column:2;justify-self:start}.message-presets button,.message-secret-actions button{min-height:44px}.message-modules .switch-row{min-height:36px}.message-summary{flex-direction:column}.message-hub .module-symbol{width:36px;height:36px}}
