:root{--cap-brand-color:#1677ff;--cap-radius:6px;--text-primary:#000000e0;--text-secondary:#000000a6;--text-tertiary:#00000073;--bg-layout:#f5f5f5;--bg-container:#fff;--bg-elevated:#fff;--bg-subtle:#00000005;--bg-hover:#0000000a;--bg-inset:#0000000a;--border-faint:#f0f0f0;--border-subtle:#f0f0f0;--border-strong:#d9d9d9;--success-text:#389e0d;--success-bg:#f6ffed;--warning-text:#d46b08;--warning-bg:#fffbe6;--error-text:#cf1322;--error-bg:#fff2f0;--bg-success-subtle:#f6ffed;--bg-danger-subtle:#fff2f0;--accent-user-bg:var(--cap-brand-color);--accent-user-tint:#1677ff1a;--brand-color:var(--cap-brand-color);--brand-strong:#0958d9;--brand-soft:#1677ff1a;--brand-soft-strong:#1677ff29;--link-color:#1677ff;--link-color-hover:#4096ff;--shadow-card:none;--shadow-pop:0 6px 16px #00000014, 0 3px 6px -4px #0000001f;--scrollbar-thumb:#0003;--scrollbar-thumb-hover:#00000052;--scrollbar-thumb-firefox:#0000003d}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{background:var(--bg-layout);color:var(--text-primary);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-firefox) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);background-clip:padding-box;border:2px solid #0000;border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover);background-clip:padding-box}::-webkit-scrollbar-corner{background:0 0}.tnum{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.text-xs{font-size:12px}.text-sm{font-size:13px}.text-muted{color:var(--text-secondary)}.text-success{color:var(--success-text)}.text-primary{color:var(--brand-color)}.text-center{text-align:center}.cursor-pointer{cursor:pointer}.margin-0{margin:0}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.w-full{width:100%}.overflow-auto{overflow:auto}.flex-col{flex-direction:column;display:flex}.page-loading{justify-content:center;align-items:center;height:100vh;display:flex}.app-sider{border-right:1px solid var(--border-faint);height:100vh;overflow:hidden}.app-sider .ant-layout-sider-children{flex-direction:column;height:100%;display:flex}.app-menu{scrollbar-width:none;flex:1;min-height:0;overflow:hidden auto}.app-menu::-webkit-scrollbar{display:none}.app-logo{border-bottom:1px solid var(--border-subtle);justify-content:center;align-items:center;gap:10px;height:64px;display:flex;overflow:hidden}.app-logo-badge{border-radius:6px;flex-shrink:0;width:32px;height:32px;display:block}.app-logo-text{white-space:nowrap;font-size:15px;font-weight:600}.app-header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;height:64px;padding:0 16px;line-height:normal;display:flex}.app-header-context{flex-direction:row;flex:auto;align-items:center;gap:12px;min-width:0;max-width:100%;display:flex;overflow:hidden}.app-header-breadcrumb{white-space:nowrap;flex:none;min-width:0;font-size:14px;font-weight:600}.app-header-breadcrumb ol{flex-wrap:nowrap;min-width:0}.app-header-breadcrumb li{flex:none}.app-header-breadcrumb li:last-child{min-width:0;overflow:hidden}.app-header-breadcrumb li:last-child .ant-breadcrumb-link{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.header-user{align-items:center;gap:8px;height:40px;display:flex}.app-content{overflow-anchor:none;flex:auto;min-height:0;padding:0;overflow-y:auto}.page-container{flex-direction:column;gap:16px;min-width:0;min-height:100%;padding:16px;display:flex}.page-container>.ant-card:last-child{flex:auto}.filter-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.filter-bar-group{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.filter-bar>.filter-bar-group:last-child:not(:first-child){margin-left:auto}.filter-bar-label{color:var(--text-tertiary);white-space:nowrap;font-size:12px}.muted{color:var(--text-secondary)}.table-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.table-toolbar-group{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.table-toolbar>.ant-space:last-child:not(:first-child){margin-left:auto}.permission-tree-box{border:1px solid var(--border-subtle);background:var(--bg-subtle);border-radius:8px;max-height:320px;padding:12px 8px;overflow-y:auto}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.stat-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.metric-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.layout-2-1,.layout-1-2,.layout-even,.layout-thirds,.layout-3-2{grid-template-columns:minmax(0,1fr);align-items:start;gap:16px;display:grid}.layout-fill{align-items:stretch}.layout-fill>.ant-card{flex-direction:column;display:flex}.layout-fill>.ant-card>.ant-card-body{flex-direction:column;flex:1;min-height:0;display:flex}.layout-fill .ant-card-body>.metric-list,.layout-fill .ant-card-body>.metric-list>.metric-list-row{flex:1}.echart{width:100%;min-width:0}.echart-fill{flex:auto;min-height:200px}@media (width>=1180px){.layout-2-1{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}.layout-1-2{grid-template-columns:minmax(300px,1fr) minmax(0,2fr)}.layout-even{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-thirds{grid-template-columns:repeat(3,minmax(0,1fr))}.layout-3-2{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}}.metric-card-main{flex:1;min-width:0}.metric-card-title{align-items:center;gap:4px;display:inline-flex}.metric-card-hint{color:var(--text-tertiary);cursor:help;flex-shrink:0;align-items:center;font-size:12px;display:inline-flex}.metric-card .ant-statistic-content{white-space:nowrap;font-variant-numeric:tabular-nums}.metric-card-foot{flex-wrap:wrap;align-items:center;gap:8px;min-height:18px;margin-top:2px;display:flex}.metric-delta{font-variant-numeric:tabular-nums;align-items:center;gap:3px;font-size:12px;font-weight:600;display:inline-flex}.metric-delta-up{color:var(--success-text)}.metric-delta-down{color:var(--error-text)}.metric-card-footer{font-size:12px}.status-dot{color:var(--text-secondary);white-space:nowrap;align-items:center;gap:7px;font-size:12px;display:inline-flex}.status-dot-mark{border-radius:999px;flex-shrink:0;width:6px;height:6px}.status-dot-success .status-dot-mark{background:var(--success-text)}.status-dot-warning .status-dot-mark{background:var(--warning-text)}.status-dot-danger .status-dot-mark{background:var(--error-text)}.status-dot-info .status-dot-mark{background:var(--brand-color)}.status-dot-neutral .status-dot-mark{background:var(--text-tertiary)}.metric-list{flex-direction:column;display:flex}.metric-list-row{border-bottom:1px solid var(--border-faint);justify-content:space-between;align-items:center;gap:16px;padding:9px 0;font-size:13px;display:flex}.metric-list-row:last-child{border-bottom:none}.metric-list-row-label{color:var(--text-secondary);white-space:nowrap}.metric-list-row-value{color:var(--text-primary);font-variant-numeric:tabular-nums;text-align:right;font-weight:600}.metric-list-row-value-wrap{text-align:left;white-space:normal;flex:1;line-height:1.7}.metric-list-row-value .muted{font-weight:400}.progress-line{align-items:center;gap:10px;display:flex}.progress-track{background:var(--bg-inset);border-radius:999px;flex:1;min-width:60px;height:6px;overflow:hidden}.progress-fill{background:var(--brand-color);border-radius:999px;height:100%}.progress-fill-success{background:var(--success-text)}.progress-fill-warning{background:var(--warning-text)}.detail-stack{flex-direction:column;gap:16px;min-width:0;display:flex}.master-detail-layout{grid-template-columns:360px minmax(0,1fr);align-items:start;gap:16px;min-width:0;display:grid}.master-card,.detail-card{min-width:0}.rank-badge{width:22px;height:22px;color:var(--text-secondary);background:var(--bg-inset);border-radius:4px;place-items:center;font-size:12px;font-weight:700;display:inline-grid}.rank-badge-1{color:#8a5a00;background:#d69e2e2e}.rank-badge-2{color:#4c5a70;background:#788caa2e}.rank-badge-3{color:#8a4b24;background:#c47a4a29}.rank-cell{align-items:center;gap:10px;min-width:0;display:inline-flex}.rank-cell-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.export-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;display:grid}.export-item{border:1px solid var(--border-subtle);background:var(--bg-subtle);border-radius:8px;flex-direction:column;gap:7px;padding:14px;display:flex}.export-item-head{align-items:center;gap:8px;display:flex}.export-item-icon{color:var(--brand-color);font-size:15px;display:inline-flex}.export-item-title{color:var(--text-primary);font-size:13px;font-weight:600}.export-item .ant-btn{align-self:flex-start;margin-top:2px}.stat-card{box-shadow:none}.stat-card .ant-card-body{padding:16px}.stat-card-content{align-items:center;gap:12px;min-width:0;display:flex}.stat-card-icon{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;display:flex}.stat-grid .ant-card-body{padding:16px}.login-page{background:#f0f2f5;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{width:380px;max-width:92vw;box-shadow:none}.login-head{border-bottom:1px solid var(--border-faint);align-items:center;gap:12px;margin-bottom:16px;padding-bottom:16px;display:flex}.login-brand-mark{border-radius:6px;flex-shrink:0;width:40px;height:40px;display:block}.login-title{color:var(--text-primary);font-size:17px;font-weight:600;line-height:1.5}.login-captcha-row{align-items:center;gap:12px;display:flex}.login-captcha-row .ant-input-affix-wrapper{flex:1}.login-captcha-refresh{border:1px solid var(--border-strong);cursor:pointer;width:120px;height:40px;color:var(--text-secondary);background:#fff;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:13px;transition:border-color .2s;display:inline-flex;overflow:hidden}.login-captcha-refresh:hover{border-color:var(--accent-user-bg)}.login-captcha-refresh:disabled{cursor:progress;opacity:.7}.login-captcha-refresh img{object-fit:cover;width:100%;height:100%;display:block}@media (width<=1200px){.metric-grid,.metric-grid-4,.metric-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=992px){.master-detail-layout{grid-template-columns:1fr}}@media (width<=768px){.stat-grid-2,.stat-grid-3,.stat-grid-4,.stat-grid-5,.metric-grid,.metric-grid-4,.metric-grid-5{grid-template-columns:1fr}}
