:root{font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",Arial,sans-serif;color:#25272b;background:#f6f7f9;font-synthesis:none;--red:#d5222a;--red-dark:#a71920;--red-soft:#fff0f0;--red-line:#ffd6d6;--line:#e6e8ec;--muted:#737780;--surface:#fff;--green:#14835f}
*{box-sizing:border-box}
body{margin:0;min-width:1024px;min-height:100vh;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ee6b70;outline-offset:2px}
h1,h2,h3,p{margin:0}
input,select{height:38px;border:1px solid #dfe2e8;border-radius:7px;background:#fff;color:#25272b;padding:0 12px;transition:.15s}
input:hover,select:hover{border-color:#d2a2a4}
input:focus,select:focus{outline:0;border-color:#db4a50;box-shadow:0 0 0 3px #d5222a16}
.button{height:38px;padding:0 16px;border:1px solid #dfe2e8;border-radius:7px;background:#fff;color:#31343a;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500;white-space:nowrap}
.button:hover{border-color:#d5222a;color:#c21e25;background:#fffafa}
.button.primary{background:#d5222a;border-color:#d5222a;color:#fff;box-shadow:0 2px 5px #a7192026}
.button.primary:hover{background:#c31c23}
.button.danger{background:#d5222a;border-color:#d5222a;color:#fff}
.icon-button{width:36px;height:36px;border:0;border-radius:7px;background:transparent;color:#666b74;display:inline-grid;place-items:center}
.icon-button:hover{background:#f2f3f5;color:#d5222a}
.surface{background:#fff;border:1px solid var(--line);border-radius:9px}
.status{display:inline-flex;align-items:center;padding:3px 9px;border-radius:5px;font-size:12px;line-height:20px}
.status.on{background:#ebf8f3;border:1px solid #c8ecde;color:#087756}
.status.off{background:#f1f2f4;border:1px solid #e0e2e6;color:#858a93}
.search-box{height:38px;min-width:250px;display:flex;align-items:center;border:1px solid #dfe2e8;border-radius:7px;background:#fff;padding:0 11px;color:#92969e}
.search-box:focus-within{border-color:#db4a50;box-shadow:0 0 0 3px #d5222a16}
.search-box input{height:34px;min-width:0;flex:1;border:0;padding-left:9px;box-shadow:none!important;outline:0}
.shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:70px 1fr;transition:.2s}
.topbar{position:sticky;top:0;z-index:30;grid-column:1/-1;height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center}
.brand{width:280px;height:70px;padding:0 23px;display:flex;align-items:center;gap:12px;white-space:nowrap;overflow:hidden;transition:.2s}
.brand-mark{width:36px;height:36px;border-radius:9px;background:#d5222a;color:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 4px 10px #d5222a35}
.brand b{font-size:15px;letter-spacing:.1px}
.top-actions{margin-left:auto;padding-right:24px;display:flex;align-items:center;gap:9px;position:relative;cursor:pointer}
.user-dropdown{position:absolute;top:calc(100% + 8px);right:16px;width:280px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #20232a22;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:40;overflow:hidden}
.user-dropdown.open{opacity:1;transform:translateY(0);pointer-events:auto}
.user-dropdown-header{display:flex;align-items:center;gap:12px;padding:16px 18px;background:#fff8f8;border-bottom:1px solid var(--line)}
.user-dropdown-header .avatar{width:46px;height:46px;font-size:18px;flex:none}
.user-dropdown-header .identity small{display:block;line-height:1.5}
.user-dropdown-header .identity small:last-child{color:#8e929a;margin-top:2px}
.user-dropdown-body{padding:6px 0;border-bottom:1px solid var(--line)}
.user-dropdown-body button,.user-dropdown-footer button{width:100%;height:44px;padding:0 18px;border:0;background:transparent;color:#444850;display:flex;align-items:center;gap:10px;font-size:14px;text-align:left;cursor:pointer}
.user-dropdown-body button:hover,.user-dropdown-footer button:hover{background:#fff5f5;color:#c81f26}
.user-dropdown-body button span,.user-dropdown-footer button span{display:inline-grid;place-items:center;width:20px;color:#8e929a;font-size:15px}
.user-dropdown-body button:hover span,.user-dropdown-footer button:hover span{color:#c81f26}
.user-dropdown-footer{padding:6px 0}
.user-dropdown-footer button{color:#a72a2e}
.user-dropdown-footer button span{font-size:16px}
.avatar,.mini-avatar{border-radius:50%;display:grid;place-items:center;background:#ffe4e4;color:#c71e25;font-weight:700}
.avatar{width:38px;height:38px;margin-left:8px}
.identity{display:flex;flex-direction:column;line-height:1.35}
.identity b{font-size:14px}
.identity small{font-size:11px;color:#8e929a}
.sidebar{position:sticky;top:70px;height:calc(100vh - 70px);background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:20px 12px 14px;overflow:hidden}
.sidebar nav{display:flex;flex-direction:column;gap:4px}
.sidebar nav button{height:46px;border:0;border-radius:7px;background:transparent;color:#555a63;display:flex;align-items:center;gap:13px;padding:0 15px;font-size:14px;text-align:left;white-space:nowrap}
.sidebar nav button>svg:first-child{font-size:18px}
.sidebar nav button:hover{background:#f8f8f9}
.sidebar nav button.active{background:var(--red-soft);color:#d5222a;font-weight:600;position:relative}
.sidebar nav button.active:before{content:"";position:absolute;left:0;width:3px;height:24px;background:#d5222a;border-radius:0 3px 3px 0}
.nav-divider{border-top:1px solid var(--line);margin:9px 6px}
.sidebar .group-button{font-weight:600}
.group-button>svg:last-child{margin-left:auto;font-size:10px;transition:.2s}
.group-button .turn{transform:rotate(-90deg)}
.group-button.group-active{color:#b71d24}
.subnav{display:flex;flex-direction:column;gap:2px}
.subnav button{padding-left:38px!important;height:43px!important}
.subnav button>svg{font-size:16px!important}
.scope{margin-top:auto;border-top:1px solid var(--line);padding:17px 10px 4px;display:flex;gap:10px;align-items:flex-start;color:#777c85;white-space:nowrap}
.scope div{display:flex;flex-direction:column;gap:4px}
.scope small{font-size:11px}
.scope b{font-size:12px;color:#444850}
.compact{grid-template-columns:76px minmax(0,1fr)}
.compact .brand{width:76px;padding:0 20px}
.compact .sidebar nav button{justify-content:center;padding:0}
.compact .sidebar nav button span,.compact .group-button>svg:last-child,.compact .scope div{display:none}
.compact .scope{justify-content:center}
.compact .subnav button{padding:0!important}
.workspace{min-width:0;min-height:calc(100vh - 70px);background:#f6f7f9}
.page{padding:24px 28px 32px;min-width:0}
.page-title{min-height:70px;display:flex;align-items:flex-start;gap:20px}
.page-title>div:first-child{margin-right:auto}
.page-title h1{font-size:24px;line-height:1.25;margin-bottom:7px}
.page-title p{font-size:13px;color:#838791}
.page-actions{display:flex;align-items:center;gap:10px}
.welcome-page{max-width:1500px;margin:auto}
.welcome-hero{height:284px;position:relative;border:0;border-radius:10px;overflow:hidden;background:#fff3f2}
.welcome-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-copy{position:relative;z-index:1;padding:53px 42px}
.hero-copy h1{font-size:38px;letter-spacing:-.5px}
.hero-copy h1 strong{color:#cf232a}
.hero-copy p{font-size:18px;margin:18px 0 40px}
.hero-copy time{font-size:16px}
.recent{margin-top:18px;overflow:hidden}
.section-head{height:66px;padding:0 20px;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.section-head>div{display:flex;align-items:center;gap:11px}
.section-head h2{font-size:17px}
.section-head div>i{width:4px;height:22px;border-radius:3px;background:#d5222a}
.section-head>button{margin-left:auto;border:0;background:none;color:#727780}
.section-head>button:hover{color:#d5222a}
.recent-row{height:86px;margin:0 18px;display:flex;align-items:center;border-bottom:1px solid #eceef1;gap:16px}
.recent-row:last-child{border-bottom:0}
.app-glyph{width:46px;height:46px;flex:none;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:#fff;box-shadow:0 2px 8px #25272b14}
.app-glyph img{display:block;width:100%;height:100%;object-fit:cover}
.app-glyph.large{width:54px;height:54px}
.app-glyph.tone-2{background:#ffe9e5;color:#d43a27}
.app-glyph.tone-3{background:#fff0df;color:#d56d0c}
.app-glyph.tone-4{background:#f2eafe;color:#7849b4}
.app-copy{min-width:260px;display:flex;flex-direction:column;gap:6px}
.app-copy h3{font-size:15px}
.app-copy p{font-size:12px;color:#878b93}
.used{margin-left:auto;color:#717680;font-size:13px}
.recent-row .button{width:118px;margin-left:22px}
.toolbar{min-height:66px;padding:13px 15px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.toolbar .search-box{flex:1}
.toolbar select{min-width:145px}
.app-table{overflow:auto}
.table-head,.app-table-row{display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(7,minmax(96px,1fr));align-items:center;padding:0 18px;min-width:1240px;column-gap:16px}
.audience-tag{font-style:normal;font-size:12px;line-height:1;padding:5px 10px;border-radius:4px;display:inline-block;white-space:nowrap}
.audience-tag.gov{color:#b3541e;background:#fdf1e7;border:1px solid #f3d9c2}
.audience-tag.ent{color:#1f5bb5;background:#eaf2fd;border:1px solid #cfe0f8}
.table-head{height:48px;background:#f8f9fa;color:#6e737c;font-size:13px;border-bottom:1px solid var(--line)}
.app-table-row{min-height:76px;border-bottom:1px solid #eceef1;color:#565b64;font-size:13px}
.app-table-row:last-child{border-bottom:0}
.app-table-row>div:first-child{display:flex;align-items:center;gap:13px}
.app-table-row>div:first-child>span:last-child{display:flex;flex-direction:column;gap:6px}
.app-table-row small{color:#92969e}
.app-table-row>div:last-child{display:flex;align-items:center}
.link-button{border:0;background:none;color:#c81f26;padding:5px 7px;border-radius:6px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.link-button:hover{background:#fff0f0;text-decoration:none}
.link-button svg{width:15px;height:15px;flex:none}
.danger-text{color:#df3b3f!important}
.myapps-bar{height:54px;display:flex;align-items:center;margin-bottom:18px}
.myapps-bar .search-box{width:360px}
.app-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:16px}
.app-card{min-height:245px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;transition:.18s}
.app-card:hover{border-color:#e5a7a9;box-shadow:0 8px 24px #5a1c1f10;transform:translateY(-1px)}
.app-card header{display:flex;justify-content:space-between}
.app-card .icon-button{color:#d59d18}
.app-card h2{font-size:17px;margin-top:18px}
.app-card>p{font-size:13px;color:#747983;line-height:1.7;margin:8px 0 12px}
.app-card>small{font-size:12px;color:#999da5}
.app-card footer{border-top:1px solid #eceef1;margin-top:18px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;color:#969aa2;font-size:11px}
.app-card footer .button{height:34px;padding:0 13px}
.myapps-footer{height:62px;margin-top:18px;padding:0 16px;border:1px solid var(--line);border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:space-between;color:#737780;font-size:13px}
.management-layout{display:grid;grid-template-columns:280px minmax(750px,1fr);gap:14px}
.management-layout>section{min-width:0}
.tree-panel{min-height:650px;display:flex;flex-direction:column;padding:14px 10px}
.tree-panel .search-box{min-width:0;margin-bottom:12px}
.tree-panel h3{font-size:14px;padding:12px 10px}
.tree-panel>button{min-height:56px;border:0;background:#fff;border-radius:7px;padding:8px 10px;text-align:left;display:flex;flex-direction:column;gap:5px;color:#595e66}
.tree-panel>button span{display:flex;align-items:center;gap:9px}
.tree-panel>button small{padding-left:24px;color:#989ca4}
.tree-panel>button.selected{background:#fff0f0;color:#c81f26}
.tree-panel footer{margin-top:auto;padding:15px 8px 2px;border-top:1px solid var(--line);color:#969aa2;font-size:12px}
.data-table{overflow:auto}
.data-table table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
.data-table th{height:48px;padding:0 16px;text-align:left;background:#f8f9fa;color:#6d727b;font-weight:500;border-bottom:1px solid var(--line)}
.data-table td{height:62px;padding:0 16px;border-bottom:1px solid #eceef1;color:#545963}
.data-table tr:hover td{background:#fffafa}
.data-table td b{color:#272a2f}
.status-button{border:0;background:none;padding:0}
.row-actions{white-space:nowrap}
.row-actions-inner{display:inline-flex;align-items:center;gap:2px}
.table-footer{height:56px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;color:#737780;font-size:13px}
.pagination{display:flex;gap:6px}
.pagination button{width:32px;height:32px;border:1px solid #dfe2e8;background:#fff;border-radius:6px}
.pagination button.active{background:#d5222a;color:#fff;border-color:#d5222a}
.pagination button:disabled{color:#c7c9cd;background:#f7f8fa}
.role-pill{display:inline-flex;padding:3px 8px;background:#fff0f0;border:1px solid #ffdada;color:#a72a2e;border-radius:5px;font-size:12px}
/* 用户管理 / 岗位管理：固定列宽，统一字段间距与对齐 */
.data-table.fixed-cols table{table-layout:fixed}
.cell-with-icon,.cell-user{display:inline-flex;align-items:center;gap:10px;max-width:100%}
.cell-with-icon b,.cell-user b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cell-icon{display:inline-grid;place-items:center;width:32px;height:32px;flex:none;border-radius:7px;background:#fff0f0;color:#d5222a}
.cell-icon svg{width:17px;height:17px}
.data-table .ellipsis{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.permission-page{padding-bottom:100px}
.scope-select{height:38px;border:1px solid #dfe2e8;background:#fff;border-radius:7px;padding:0 12px;display:flex;align-items:center;gap:8px;color:#595e66;font-size:13px}
.permission-grid{height:630px;border-radius:9px;display:grid;grid-template-columns:260px 280px minmax(500px,1fr);overflow:hidden}
.permission-pane{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}
.permission-pane:last-child{border-right:0}
.permission-pane>header{height:58px;display:flex;align-items:center;padding:0 14px;border-bottom:1px solid var(--line)}
.permission-pane>header>span{display:flex;align-items:center;gap:8px}
.permission-pane>header i{width:22px;height:22px;border-radius:50%;background:#d5222a;color:#fff;font:12px/22px Arial;text-align:center;font-style:normal}
.permission-pane>header button{margin-left:auto;border:0;background:none;color:#c81f26}
.permission-pane .search-box{min-width:0;margin:12px 10px 5px}
.select-list{flex:1;overflow:auto;padding:5px 8px}
.select-list>button{width:100%;min-height:70px;border:1px solid transparent;border-bottom-color:#eceef1;border-radius:7px;background:#fff;padding:9px 10px;display:flex;align-items:center;gap:10px;text-align:left}
.select-list>button:hover{background:#fffafa}
.select-list>button.selected{background:#fff0f0;border-color:#f3b4b6;color:#c81f26}
.select-icon{width:36px;height:36px;display:grid!important;place-items:center;background:#f3f4f6;border-radius:7px;font-size:17px}
.select-list>button.selected .select-icon{background:#ffdddd}
.select-list>button>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:5px}
.select-list small{color:#90949c}
.permission-pane>footer{height:48px;border-top:1px solid var(--line);padding:0 13px;display:flex;align-items:center;justify-content:space-between;color:#93979f;font-size:12px}
.permission-pane>footer button{border:0;background:none;color:#c81f26;padding:5px 8px}
.permission-pane>footer button:disabled{color:#cacdd2}
.points-pane>header small{color:#92969e}
.points-body{min-height:0;flex:1;display:grid;grid-template-columns:180px 1fr}
.points-body aside{border-right:1px solid var(--line);padding:14px 8px}
.points-body aside>b{display:block;padding:0 10px 10px;font-size:13px;color:#6c717a}
.points-body aside button{width:100%;height:43px;border:0;border-radius:6px;background:#fff;color:#555a63;padding:0 10px;display:flex;align-items:center;gap:8px}
.points-body aside button span{margin-left:auto}
.points-body aside button.selected{background:#fff0f0;color:#c81f26;font-weight:600}
.points-body aside .menu-group-head{height:30px;margin:10px 2px 2px;padding:0 10px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#8b9099}
.points-body aside .menu-group-head::after{content:"";flex:1;height:1px;background:#eceef1}
.points-body aside button.menu-child{padding-left:28px;font-weight:400}
.points-body aside .menu-note{margin:8px 2px 0;padding:0 10px;font-size:11px;color:#b3b7be}
.points-body main{min-width:0;overflow:auto}
.points-body main>header{height:58px;padding:0 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.points-body main>header>span{display:flex;flex-direction:column;gap:4px}
.points-body main small{color:#9498a0}
.point-row{height:70px;padding:0 16px;border-bottom:1px solid #eceef1;display:flex;align-items:center;gap:11px}
.key-icon{width:34px;height:34px;border-radius:7px;background:#fff0f0;color:#d5222a;display:grid!important;place-items:center}
.point-row>span:nth-child(3){display:flex;flex:1;flex-direction:column;gap:4px}
.point-row em{font-style:normal;font-size:12px;color:#898e96}
.point-row:has(input:checked) em{color:#14835f}
.permission-save{position:sticky;bottom:0;z-index:5;height:68px;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 9px 9px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;color:#666b74;font-size:13px;box-shadow:0 -10px 24px #20232a0a}
.permission-save>span:last-child{display:flex;gap:9px}
.overlay{position:fixed;inset:0;z-index:100;background:#1e20265c;display:grid;place-items:center;padding:24px}
.modal{width:500px;max-height:calc(100vh - 48px);background:#fff;border-radius:12px;box-shadow:0 24px 70px #0003;display:flex;flex-direction:column;overflow:hidden;animation:pop .16s ease-out}
.modal.wide{width:700px}
.modal>header,.modal>footer{height:64px;padding:0 20px;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.modal>header h2{font-size:18px}
.modal>header .icon-button{margin-left:auto}
.modal-body{padding:22px;overflow:auto}
.modal>footer{border-bottom:0;border-top:1px solid var(--line);justify-content:flex-end;gap:9px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}
.stack-fields{display:flex;flex-direction:column;gap:18px}
.field{display:flex;flex-direction:column;gap:7px;color:#5e636c;font-size:14px}
.field>span em{font-style:normal;color:#d5222a;margin-right:4px}
.field input,.field select{width:100%;height:40px}
.confirm{display:flex;gap:14px}
.confirm>svg{font-size:23px;color:#d5222a}
.confirm p{margin-top:8px;color:#858a93;line-height:1.6}
.role-options{display:flex;flex-direction:column;gap:9px}
.role-options>button{height:70px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 14px;display:flex;align-items:center;gap:12px;text-align:left}
.role-options>button.selected{border-color:#e79a9d;background:#fff3f3;color:#c81f26}
.role-options>button>span{flex:1;display:flex;flex-direction:column;gap:5px}
.role-options small{color:#90949c}
.drawer-overlay{display:flex;justify-content:flex-end;padding:0}
.drawer{width:min(920px,86vw);height:100vh;background:#fff;box-shadow:-20px 0 50px #0002;display:flex;flex-direction:column;animation:slide .2s ease-out}
.drawer>header{height:82px;padding:0 22px;border-bottom:1px solid var(--line);display:flex;align-items:center}
.drawer>header h2{font-size:19px}
.drawer>header .icon-button{margin-left:auto}
.drawer-body{flex:1;min-height:0;overflow:hidden;padding:20px;display:flex;flex-direction:column}
.drawer>footer{height:68px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:0 20px}
.assignment-summary{display:flex;align-items:center;gap:13px;padding:14px;background:#fff5f5;border:1px solid #ffdddd;border-radius:9px;margin-bottom:14px}
.assignment-summary>div{display:flex;flex-direction:column;gap:5px}
.assignment-summary small{color:#8b6e70}
.assignment-flow{min-height:0;flex:1;display:grid;grid-template-columns:310px minmax(0,1fr);border:1px solid var(--line);border-radius:9px;overflow:hidden}
.unit-select{min-width:0;border-right:1px solid var(--line);background:#fafbfc;display:flex;flex-direction:column}
.people-select>header{height:56px;padding:0 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.people-select>header b{font-size:14px;color:#272a2f}
.unit-list{padding:9px;overflow:auto}
.unit-list button{width:100%;min-height:54px;border:1px solid transparent;border-radius:7px;background:transparent;padding:7px 10px;display:flex;align-items:center;gap:8px;text-align:left;color:#565b64}
.unit-list button:hover{background:#fff}
.unit-list button.selected{border-color:#f0b6b8;background:#fff0f0;color:#c81f26}
.unit-list button.child{padding-left:22px}
.unit-list button>span{min-width:0;flex:1;display:flex;align-items:center;gap:8px}
.unit-list button>span i{color:#b5b8be;font-style:normal}
.unit-list button>span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.unit-list button em{flex:none;padding:3px 8px;border-radius:12px;background:#eceef1;color:#737780;font-size:12px;font-style:normal}
.unit-list button.selected em{background:#ffdcdc;color:#b71d24}
.people-select{min-width:0;display:flex;flex-direction:column;background:#fff}
.people-select>header>span{font-size:12px;color:#c81f26;background:#fff0f0;border-radius:13px;padding:4px 9px}
.people-select>.search-box{margin:12px 14px 4px;min-width:0}
.people-select .person-list{min-height:0;overflow:auto;padding:0 14px}
.person-list{display:flex;flex-direction:column}
.person-list label{min-height:68px;border-bottom:1px solid #eceef1;display:flex;align-items:center;gap:11px}
.mini-avatar{width:34px;height:34px;font-size:12px}
.person-list label>div{display:flex;flex:1;flex-direction:column;gap:4px}
.person-list small{color:#92969e}
.drawer-empty{padding:42px 12px;text-align:center;color:#92969e;font-size:13px}
.toast{position:fixed;top:82px;left:50%;z-index:300;transform:translateX(-50%);height:44px;padding:0 18px;border:1px solid #cbe9dc;border-radius:8px;background:#fff;color:#0c7d59;box-shadow:0 8px 28px #20232a24;display:flex;align-items:center;gap:9px;animation:drop .2s ease-out}
@keyframes pop{from{opacity:0;transform:scale(.97) translateY(8px)}
}
@keyframes slide{from{transform:translateX(30px);opacity:.7}
}
@keyframes drop{from{opacity:0;transform:translate(-50%,-8px)}
}
@media(max-width:1280px){.shell{grid-template-columns:76px minmax(0,1fr)}
.brand{width:76px;padding:0 20px}
.brand b,.sidebar nav button span,.group-button>svg:last-child,.scope div{display:none}
.sidebar nav button{justify-content:center;padding:0}
.subnav button{padding:0!important}
.scope{justify-content:center}
.page{padding:22px}
.app-table-row,.table-head{grid-template-columns:minmax(240px,1.4fr) repeat(7,minmax(96px,1fr))}
.permission-grid{grid-template-columns:220px 240px minmax(480px,1fr)}
.management-layout{grid-template-columns:240px minmax(700px,1fr)}
.identity{display:none}
}
@media(max-width:1080px){
.app-grid{grid-template-columns:repeat(2,minmax(250px,1fr))}
.used{display:none}
.management-layout{grid-template-columns:1fr}
.tree-panel{display:none}
.toolbar{flex-wrap:wrap}
.toolbar .search-box{min-width:320px}
.permission-grid{overflow:auto;grid-template-columns:220px 230px 520px}
.welcome-hero{height:250px}
}

/* Framework-free static prototype additions */
[hidden]{display:none!important}.brand-emblem{width:36px;height:36px;flex:none;object-fit:contain}.nav-icon{display:inline-grid;place-items:center;min-width:18px;font-size:18px;line-height:1}.group-arrow{margin-left:auto;transition:.2s}.group-button.collapsed .group-arrow{transform:rotate(-90deg)}.search-box input[type=search]{appearance:none}.search-box input[type=search]::-webkit-search-cancel-button{display:none}.empty-state{padding:42px;text-align:center;color:#92969e}.empty-state b{display:block;margin-bottom:7px;color:#555a63}.table-check{width:16px;height:16px}.button+.button{margin-left:2px}.modal textarea{width:100%;min-height:90px;border:1px solid #dfe2e8;border-radius:7px;padding:10px;resize:vertical}.tag-muted{color:#93979f;font-size:12px}.admin-hidden{display:none!important}.overlay[hidden]{display:none!important}.toast{white-space:nowrap}.permission-pane .select-list button{cursor:pointer}.point-row input,.person-list input{width:16px;height:16px}.permission-save b{color:#c81f26}.toolbar .button{flex:none}.allocation-toolbar .search-box{max-width:430px}

@media (min-width:1181px) and (max-width:1280px){.shell:not(.compact){grid-template-columns:270px minmax(0,1fr)}.shell:not(.compact) .brand{width:270px;padding:0 18px}.shell:not(.compact) .brand b,.shell:not(.compact) .sidebar nav button span,.shell:not(.compact) .scope div{display:flex}.shell:not(.compact) .brand b{display:block;font-size:14px}.shell:not(.compact) .brand-emblem{width:32px;height:32px}.shell:not(.compact) .group-button .group-arrow{display:inline-block}.shell:not(.compact) .sidebar nav button{justify-content:flex-start;padding:0 15px}.shell:not(.compact) .subnav button{padding-left:38px!important}.shell:not(.compact) .scope{justify-content:flex-start}.shell:not(.compact) .identity{display:flex}.welcome-hero{height:250px}.hero-copy{padding-block:40px}.section-head{height:58px}.recent-row{height:78px}}

/* 分配应用：按单位 / 按人员 双模式 */
#assignmentFlow{min-height:0;flex:1;display:flex;flex-direction:column}
.assignment-modes{display:flex;gap:9px;margin-bottom:12px;flex:none}
.mode-tab{height:40px;padding:0 18px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;color:#5e636c;font-weight:500;font-size:13px;display:inline-flex;align-items:center;gap:7px}
.mode-tab:hover{border-color:#e79a9d;color:#c81f26}
.mode-tab.active{background:var(--red-soft);border-color:#e79a9d;color:#c81f26;font-weight:600}
.assignment-hint{min-height:44px;background:#fff8f8;border:1px solid #ffdada;border-radius:8px;display:flex;align-items:center;gap:9px;padding:8px 14px;margin-bottom:12px;color:#a72a2e;font-size:12.5px;line-height:1.6;flex:none}
.assignment-hint .nav-icon{color:#c81f26;flex:none}
.unit-assign-flow{flex:1;min-height:0}
.unit-check-row{width:100%;min-height:54px;border:1px solid transparent;border-radius:7px;background:transparent;padding:7px 10px;display:flex;align-items:center;gap:8px;text-align:left;color:#565b64;cursor:pointer}
.unit-check-row:hover{background:#fff}
.unit-check-row:has(input:checked){border-color:#f0b6b8;background:#fff0f0;color:#c81f26}
.unit-check-row input{width:16px;height:16px;flex:none}
.unit-check-row.child{padding-left:22px}
.unit-check-row>span{min-width:0;flex:1;display:flex;align-items:center;gap:8px}
.unit-check-row>span i{color:#b5b8be;font-style:normal}
.unit-check-row>span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.unit-check-row em{flex:none;padding:3px 8px;border-radius:12px;background:#eceef1;color:#737780;font-size:12px;font-style:normal}
.unit-check-row:has(input:checked) em{background:#ffdcdc;color:#b71d24}
.unit-effect{min-width:0;display:flex;flex-direction:column;background:#fff;padding:16px}
.selected-units{display:flex;flex-direction:column;gap:12px}
.selected-units>b{font-size:13px;color:#555a63}
.unit-tags{display:flex;flex-wrap:wrap;gap:8px}
.unit-tags span{padding:5px 11px;border-radius:14px;background:#fff0f0;border:1px solid #ffdada;color:#a72a2e;font-size:12px}
.unit-tags .placeholder{padding:0;border:0;background:none;color:#989ca4}

/* 树形懒加载列表（单位 / 部门管理） */
.tree-table td:first-child,.tree-table th:first-child{padding-left:8px}
.tree-name{display:flex;align-items:center;gap:7px;max-width:100%}
.tree-toggle{width:24px;height:24px;flex:none;border:0;border-radius:6px;background:#f2f3f5;color:#6b7078;display:inline-grid;place-items:center;padding:0;transition:background .15s,color .15s}
.tree-toggle:hover{background:#ffe3e3;color:#c81f26}
.tree-toggle i{width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(-45deg);margin-top:-2px;transition:transform .18s,margin .18s}
.tree-toggle.expanded i{transform:rotate(45deg);margin-top:2px}
.tree-toggle.leaf{visibility:hidden;background:transparent}
.tree-hook{position:relative;width:15px;height:24px;flex:none}
.tree-hook::before{content:"";position:absolute;left:0;top:-9px;width:12px;height:24px;border-left:1px solid #d9dce2;border-bottom:1px solid #d9dce2;border-radius:0 0 0 7px}
.tree-loading-row td{height:52px;color:#8a8f98;font-size:12px}
.tree-spinner{width:13px;height:13px;display:inline-block;vertical-align:-2px;margin-right:9px;border:2px solid #e6e8ec;border-top-color:#d5222a;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.tree-hint{color:#a2a6ae;font-size:12px;display:inline-flex;align-items:center;gap:5px}
.tree-hint .nav-icon{font-size:13px;min-width:0}
.toolbar select[data-action="org-status"]{flex:none}

/* 可搜索下拉框（新增/编辑组织 - 上级组织选择） */
.combobox{position:relative;width:100%}
.combobox .combobox-input{width:100%;height:40px;padding-right:34px;cursor:pointer;text-overflow:ellipsis}
.combobox-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#8a8f98;font-size:12px;pointer-events:none;transition:transform .18s,color .18s}
.combobox.open .combobox-arrow{transform:translateY(-50%) rotate(180deg);color:#d5222a}
.combobox-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:120;max-height:264px;overflow:auto;background:#fff;border:1px solid #dfe2e8;border-radius:8px;box-shadow:0 12px 34px #20232a1c;padding:5px;display:none}
.combobox.open .combobox-menu{display:block}
.combobox-option{width:100%;min-height:38px;border:0;border-radius:6px;background:#fff;color:#454a53;padding:0 11px;display:flex;align-items:center;gap:7px;font-size:13px;text-align:left;white-space:nowrap}
.combobox-option:hover{background:#fff0f0;color:#c81f26}
.combobox-option.selected{background:#fff0f0;color:#c81f26;font-weight:600}
.combobox-option[hidden]{display:none}
.combobox-option .depth-mark{flex:none;width:14px;color:#c3c7cd;font-style:normal;font-size:11px}
.combobox-option.selected .depth-mark{color:#e08a8d}
.combobox-option b{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.combobox-empty{padding:22px 12px;text-align:center;color:#9a9ea6;font-size:12px}
.combobox .combobox-value{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none;font-size:1px}

/* 单位表单独立页 */
.form-page{max-width:960px;margin:0 auto}
.back-link{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border:1px solid #dfe2e8;border-radius:7px;background:#fff;color:#c81f26;font-size:13px;margin-bottom:14px}
.back-link:hover{border-color:#e79a9d;background:#fff5f5}
.form-page .page-title{min-height:0;margin-bottom:18px}
.form-card{border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:16px;overflow:hidden}
.form-card-title{height:52px;padding:0 18px;display:flex;align-items:center;gap:10px;background:#fafbfc;border-bottom:1px solid var(--line);font-size:14px}
.form-card-title i{width:22px;height:22px;flex:none;border-radius:50%;background:#d5222a;color:#fff;font:12px/22px Arial;font-style:normal;text-align:center}
.form-card-title b{color:#3a3e46}
.form-card .form-grid{padding:20px 18px 26px}
.form-grid-one{grid-template-columns:minmax(0,1fr)}
.form-footer{height:72px;margin-top:4px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:0 18px}

/* 右下角悬浮「需求说明」按钮 */
.req-fab{position:fixed;right:24px;bottom:24px;z-index:90;height:44px;padding:0 20px 0 16px;border:0;border-radius:22px;background:#d5222a;color:#fff;display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;box-shadow:0 8px 22px #a7192040;transition:transform .15s,box-shadow .15s,background .15s}
.req-fab:hover{background:#c31c23;transform:translateY(-1px);box-shadow:0 10px 26px #a7192050}
.req-fab:active{transform:translateY(0)}
.req-fab svg{width:17px;height:17px;flex:none}

/* 需求说明抽屉 */
.req-drawer{width:min(520px,92vw)}
.req-drawer>header{height:70px;gap:11px;padding:0 18px}
.req-drawer>header h2{font-size:17px}
.req-head-icon{width:34px;height:34px;flex:none;border-radius:9px;background:var(--red-soft);color:#d5222a;display:grid;place-items:center}
.req-head-icon svg{width:18px;height:18px}
.req-page-tag{margin-left:auto;padding:3px 12px;border-radius:12px;background:#fff0f0;border:1px solid #ffdada;color:#a72a2e;font-size:12px;font-weight:500;white-space:nowrap}
.req-drawer>header .icon-button{margin-left:8px}
.req-body{flex:1;min-height:0;overflow:auto;padding:22px 24px 30px}
.req-section{margin-bottom:22px}
.req-section>h3{height:24px;display:flex;align-items:center;gap:9px;font-size:14.5px;color:#31343a;margin-bottom:11px;font-weight:600}
.req-section>h3::before{content:"";width:4px;height:15px;border-radius:3px;background:#d5222a;flex:none}
.req-overview{background:#fafbfc;border:1px solid var(--line);border-radius:9px;padding:14px 16px}
.req-overview p{font-size:13px;line-height:1.8;color:#5e636c}
.req-features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.req-features li{display:flex;gap:11px;align-items:flex-start}
.req-feature-icon{width:28px;height:28px;flex:none;border-radius:7px;background:#fff0f0;color:#c81f26;display:grid;place-items:center;font-size:13px;line-height:1;margin-top:1px}
.req-features li>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.req-features b{font-size:13.5px;color:#31343a;font-weight:600}
.req-features p{font-size:12.5px;color:#7a7f88;line-height:1.7}
.req-notes{background:#fff8f8;border:1px solid #ffdada;border-radius:9px;padding:13px 16px 14px}
.req-notes>h3{color:#a72a2e}
.req-notes ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.req-notes li{position:relative;padding-left:15px;font-size:12.5px;line-height:1.7;color:#8a4a4d}
.req-notes li::before{content:"›";position:absolute;left:0;top:0;color:#d5222a;font-weight:700}

/* 登录页：账号 / 密码登录 */
.login-view{position:fixed;inset:0;z-index:200;background:#f6f7f9;display:grid;place-items:center;padding:24px;min-width:1024px}
.login-stage{width:min(1020px,96vw);height:min(640px,92vh);background:#fff;border-radius:16px;box-shadow:0 30px 80px #20232a26;display:grid;grid-template-columns:1.06fr 1fr;overflow:hidden;animation:loginIn .28s ease-out}
@keyframes loginIn{from{opacity:0;transform:translateY(14px) scale(.985)}}
.login-banner{position:relative;min-width:0;background:linear-gradient(155deg,#9e1620 0%,#c31c23 55%,#d5222a 100%);color:#fff;overflow:hidden}
.login-banner-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5;mix-blend-mode:screen}
.login-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(200deg,rgba(122,10,16,.08) 0%,rgba(122,10,16,.45) 100%)}
.login-banner-content{position:relative;z-index:1;height:100%;padding:42px 44px;display:flex;flex-direction:column}
.login-brand{display:flex;align-items:center;gap:11px}
.login-brand img{filter:drop-shadow(0 2px 8px #00000040)}
.login-brand b{font-size:16px;letter-spacing:.2px;font-weight:600}
.login-banner-content h1{font-size:32px;line-height:1.45;letter-spacing:.5px;margin-top:auto;font-weight:700}
.login-banner-content>p{font-size:13.5px;line-height:1.9;color:#ffe9e9;margin-top:14px;max-width:400px}
.login-points{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:13px}
.login-points li{display:flex;align-items:center;gap:12px}
.login-points li>span{width:38px;height:38px;flex:none;border-radius:10px;background:#ffffff1f;border:1px solid #ffffff33;display:grid;place-items:center;font-size:17px}
.login-points li>div{display:flex;flex-direction:column;gap:3px}
.login-points b{font-size:13.5px;font-weight:600}
.login-points small{font-size:12px;color:#ffd9d9}
.login-form{min-width:0;display:flex;flex-direction:column}
.login-form-inner{flex:1;min-height:0;overflow:auto;padding:48px 52px 20px;display:flex;flex-direction:column}
.login-form h2{font-size:26px;letter-spacing:1px}
.login-sub{font-size:13px;color:#8b8f97;margin:10px 0 30px}
.login-field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;color:#555a63;font-size:13.5px;font-weight:500}
.login-field input{height:44px;border-radius:8px;font-size:14px;font-weight:400}
.login-field input::placeholder{color:#b6bac1}
.login-meta{height:22px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.remember{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#6d727b;cursor:pointer}
.remember input{width:15px;height:15px;accent-color:#d5222a;margin:0}
.login-tip{font-size:12px;color:#a2a6ae}
.login-error{background:#fff2f2;border:1px solid #ffd3d3;color:#c21e25;font-size:12.5px;line-height:1.6;border-radius:8px;padding:9px 12px;margin-bottom:14px}
.login-submit{height:46px;border:0;border-radius:8px;background:linear-gradient(135deg,#c31c23,#d5222a);color:#fff;font-size:15.5px;font-weight:600;letter-spacing:6px;box-shadow:0 8px 20px #d5222a33;transition:.18s}
.login-submit:hover{background:linear-gradient(135deg,#ab171d,#c31c23);box-shadow:0 10px 24px #d5222a45}
.login-submit:active{transform:translateY(1px)}
.login-demo-accounts{margin-top:30px;border:1px dashed #e3c9ca;background:#fffafa;border-radius:10px;padding:13px 16px;display:flex;flex-direction:column;gap:8px}
.login-demo-accounts>b{font-size:12.5px;color:#a72a2e;font-weight:600}
.login-demo-accounts>div{display:flex;flex-wrap:wrap;gap:6px 18px}
.login-demo-accounts span{font-size:12px;color:#8a7a7b;font-family:Consolas,"Courier New",monospace}
.login-footer{margin-top:auto;padding:18px 0 0;font-size:11.5px;color:#aeb2b9;text-align:center}
@media(max-width:1180px){.login-banner-content{padding:34px 32px}.login-banner-content h1{font-size:27px}.login-form-inner{padding:40px 36px 18px}}
@media(max-height:760px){.login-banner-content h1{margin-top:18px}.login-banner-content{padding:28px 32px}.login-points{display:none}}
