/* ======== 原 base.css ======== */
/* 基础样式：由原 console97/css/app.602a5fa4.css 精简而来，只保留页面实际用到的规则；图标字体已去掉 */
:root{--color-primary:#1890ff;--color-primary-1:#e6f7ff;--color-primary-2:#bae7ff;--color-primary-3:#91d5ff;--color-primary-4:#69c0ff;--color-primary-5:#40a9ff;--color-primary-6:#1890ff;--color-primary-7:#096dd9;--color-primary-8:#0050b3;--color-primary-9:#003a8c;--color-primary-10:#002766;--color-success:#52c41a;--color-success-1:#f6ffed;--color-success-2:#d9f7be;--color-success-3:#b7eb8f;--color-success-4:#95de64;--color-success-5:#73d13d;--color-success-6:#52c41a;--color-success-7:#389e0d;--color-success-8:#237804;--color-success-9:#135200;--color-success-10:#092b00;--color-warning:#faad14;--color-warning-1:#fffbe6;--color-warning-2:#fff1b8;--color-warning-3:#ffe58f;--color-warning-4:#ffd666;--color-warning-5:#ffc53d;--color-warning-6:#faad14;--color-warning-7:#d48806;--color-warning-8:#ad6800;--color-warning-9:#874d00;--color-warning-10:#613400;--color-danger:#ff4d4f;--color-danger-1:#fff1f0;--color-danger-2:#ffccc7;--color-danger-3:#ffa39e;--color-danger-4:#ff7875;--color-danger-5:#ff4d4f;--color-danger-6:#f5222d;--color-danger-7:#cf1322;--color-danger-8:#a8071a;--color-danger-9:#820014;--color-danger-10:#5c0011;--color-info:#909399;--color-info-1:#f4f4f5;--color-info-2:#dedfe0;--color-info-3:#d3d4d6;--color-info-4:#bcbec2;--color-info-5:#a6a9ad;--color-info-6:#909399;--color-info-7:#6e7074;--color-info-8:#58595c;--color-info-9:#414244;--color-info-10:#2a2b2b;--color-white:#fff;--color-white-5:hsla(0,0%,100%,.5);--color-black:#000;--color-black-1:rgba(0,0,0,.1);--color-black-3:rgba(0,0,0,.3);--color-black-5:rgba(0,0,0,.5);--color-text-primary:#303133;--color-text-regular:#606266;--color-text-secondary:#909399;--color-text-placeholder:#c0c4cc;--color-text-dark-primary:#fff;--color-text-dark-regular:hsla(0,0%,100%,.8);--border-color-base:#ddd;--border-color-light:#e5e5e5;--border-color-lighter:#ededed;--border-color-extra-light:#f4f4f4;--background-color-base:#fafafa;--box-shadow-base:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);--box-shadow-dark:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.12);--box-shadow-light:0 4px 12px 0 rgba(0,0,0,.15);--checkbox-background-color:var(--color-white);--radio-input-background-color:var(--color-white);--radio-checked-icon-color:var(--color-white);--input-background-color:var(--color-white);--button-default-background-color:var(--color-white);--button-disabled-background-color:var(--color-white);--button-default-border-color-5:hsla(0,0%,87%,.5);--table-header-background-color:var(--background-color-base);--table-fixed-box-shadow:0 0 10px rgba(0,0,0,.12);--popup-modal-background-color:#000;--popup-modal-opacity:0.5;--popover-background-color:var(--color-white);--dialog-box-shadow:0 1px 3px rgba(0,0,0,.3);--tooltip-fill:var(--color-text-primary);--tooltip-color:var(--color-text-dark-primary);--tooltip-border-color:var(--tooltip-fill);--scrollbar-background-color:hsla(0,0%,67%,.5);--scrollbar-hover-background-color:hsla(0,0%,67%,.8);--backtop-background-color:var(--color-white);--backtop-font-color:var(--color-primary);--backtop-hover-background-color:var(--border-color-extra-light);--avatar-background-color:#c0c4cc;--skeleton-color:#f2f2f2;--skeleton-to-color:#e6e6e6;--svg-monochrome-grey:#dcdde0;--loading-mask-bg:hsla(0,0%,100%,.9);--menu-dark-background:#191a23;--layout-body-background:#f0f2f5;--sidebar-background-light:var(--color-white);--sidebar-background-dark:var(--menu-dark-background);--sidebar-light-shadow:1px 3px 3px rgba(0,21,41,.08);--sidebar-dark-shadow:0 4px 4px rgba(0,0,0,.35);--header-background:var(--menu-dark-background);--header-light-background:var(--color-white);--header-light-shadow:0 1px 4px rgba(0,21,41,.08);--header-dark-shadow:0 1px 4px rgba(0,0,0,.1);--header-tool-hover-bg:rgba(0,0,0,.025);--header-dark-tool-hover-bg:hsla(0,0%,100%,.05);--logo-light-shadow:1px 2px 3px rgba(0,21,41,.08);--logo-dark-shadow:0 3px 4px rgba(0,0,0,.35);--content-image-filter:none}[class*=" el-icon-"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=el-col-]{float:left;box-sizing:border-box}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:var(--button-default-background-color);border:1px solid var(--border-color-base);border-color:var(--border-color-base);color:var(--color-text-regular);-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button:focus,.el-button:hover{color:var(--color-primary);border-color:var(--color-primary-3);background-color:var(--color-primary-1)}.el-button:active{color:var(--color-primary-7);border-color:var(--color-primary-7);outline:none}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button--primary{color:var(--color-text-dark-primary);background-color:var(--color-primary);border-color:var(--color-primary)}.el-button--primary:focus,.el-button--primary:hover{background:var(--color-primary-5);border-color:var(--color-primary-5);color:var(--color-text-dark-primary)}.el-button--primary:active{outline:none}.el-button--primary:active{background:var(--color-primary-7);border-color:var(--color-primary-7);color:var(--color-text-dark-primary)}body [class*=el-icon-_],body [class^=el-icon-_]{font-family:ele-icon!important}*{margin:0;padding:0;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);scrollbar-width:thin}html{overflow:auto;overflow:overlay}body{color:var(--color-text-regular);font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;background:var(--color-white);overflow-x:hidden;position:relative}a{text-decoration:none;color:var(--color-primary)}a:hover{color:var(--color-primary-5)}input{background-color:transparent}textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px;color:var(--color-text-primary)}h5{font-size:18px}h4{font-size:20px}h3{font-size:22px}h2{font-size:24px}h1{font-size:26px}em:not([class]){padding:0 .5em;font-style:normal}s:not([class]){padding:0 .125em;font-style:normal}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background:transparent;border-radius:5px}::-webkit-scrollbar-thumb{border-radius:6px;border:2px solid transparent;background-color:var(--scrollbar-background-color);background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-hover-background-color)}::-webkit-scrollbar-corner{background:transparent}.del{text-decoration:line-through}.time{color:#ef7e7f}.caps{font-variant:all-small-caps}

/* ======== 原 app.css ======== */
:root{--nav:#172b32;--nav-muted:#8fa6ad;--ink:#213b43;--muted:#7d8e95;--green:#168876;--green-dark:#086958;--green-pale:#e9f5f1;--line:#e6ecec;--bg:#f5f8f8;--shadow:0 3px 18px #17383d05}
*{box-sizing:border-box}
body{margin:0;font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
a{color:inherit;text-decoration:none}
button{border:0}
h1,h2,h3,p{margin-top:0}
h1{font-size:28px;letter-spacing:-.8px;margin-bottom:6px;font-weight:650}
h2{font-size:19px;letter-spacing:-.3px;margin-bottom:6px}
h3{font-size:15px;font-weight:600;margin-bottom:3px}
.muted{color:var(--muted)}
.eyebrow{font-size:10px;letter-spacing:2px;color:#93a4a8;font-weight:600;margin-bottom:12px}
.sidebar{position:fixed;width:244px;inset:0 auto 0 0;background:var(--nav);color:#e9f1f2;display:flex;flex-direction:column;padding:27px 16px 0;z-index:20}
.wordmark{display:flex;gap:11px;align-items:center;letter-spacing:1.4px;font-size:14px;font-weight:650;padding:0 11px}
.wordmark small{display:block;letter-spacing:1.5px;font-size:10px;color:var(--nav-muted);font-weight:400;margin-top:2px}
.brand-icon{display:grid;place-items:center;background:#44b49a;color:white;font-size:21px;border-radius:12px;width:37px;height:37px;font-weight:750;letter-spacing:-3px;padding-right:3px}
.workspace{margin:31px 0 22px;border:1px solid #ffffff16;border-radius:9px;background:#ffffff04;display:flex;align-items:center;padding:12px 10px;gap:10px}
.workspace-avatar{width:32px;height:32px;border-radius:8px;background:#31484f;display:grid;place-items:center;font-size:14px;color:#bad7ce}
.workspace strong{font-size:12px;font-weight:500;max-width:137px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace small{display:block;font-size:10px;color:var(--nav-muted);margin-top:2px}
.workspace-dot{width:6px;height:6px;background:#64b39e;border-radius:50%;margin-left:auto}
.nav-label{font-size:10px;color:#78929a;letter-spacing:1px;padding:0 15px;margin:17px 0 10px}
.nav-item{display:flex;align-items:center;gap:13px;border-radius:7px;padding:11px 15px;color:#a8bdc2;margin:3px 0;font-size:12px;transition:background .15s}
.nav-item:hover{background:#ffffff08;color:white}
.nav-item.active{background:#2d4a4d;color:#a1dfcb;box-shadow:inset 3px 0 #5fbba0}
.nav-item svg{width:17px;height:17px;flex:none;opacity:.9}
.nav-item small{margin-left:auto;font-size:10px;border-radius:4px;background:#ffffff12;padding:0 6px;color:#c3d9d8}
.sidebar-help{margin:auto 6px 25px;padding:17px 13px 13px;border:1px solid #ffffff13;border-radius:9px;color:#bcd1d2;font-size:11px}
.help-dot{display:grid;place-items:center;width:20px;height:20px;border:1px solid #779c95;border-radius:7px;margin-bottom:12px;color:#9bc7b9}
.sidebar-help strong{font-size:11px;font-weight:500}
.sidebar-help p{color:#7f9ba1;font-size:10px;margin:5px 0 13px}
.sidebar-help a{display:flex;justify-content:space-between;color:#82c4af;font-size:10px}
.sidebar-footer{margin:0 -16px;border-top:1px solid #ffffff12;display:flex;align-items:center;gap:11px;padding:17px 22px;font-size:11px}
.avatar,.top-avatar{width:31px;height:31px;display:grid;place-items:center;background:#d7e8e1;color:#527e71;border-radius:50%;font-weight:600;font-size:11px}
.sidebar-footer small{display:block;color:#728f96;font-size:10px}
.sidebar-footer .icon-button{margin-left:auto;color:#9ab3ba}
.app-shell{margin-left:244px}
.topbar{height:73px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 34px}
.breadcrumbs{font-size:11px;color:#8c9da2;display:flex;gap:15px}
.breadcrumbs strong{font-weight:500;color:#4e656d}
.top-actions{display:flex;gap:18px;align-items:center}
.edition{font-size:10px;border:1px solid #e2e9e7;border-radius:4px;padding:3px 8px;color:#758b88}
.top-divider{width:1px;height:18px;background:var(--line)}
.top-avatar{width:29px;height:29px}
.mobile-toggle{display:none}
main{padding:30px 34px 0;max-width:1760px;margin:auto}
.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 25px}
.page-heading .muted{font-size:11px;margin-bottom:0}
.page-actions{display:flex;align-items:center;gap:10px}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:6px;padding:9px 16px;font-size:11px;font-weight:500;min-height:36px;white-space:nowrap}
.primary{background:var(--green);color:white;box-shadow:0 2px 3px #0e786212}
.primary:hover{background:var(--green-dark)}
.secondary{background:white;border:1px solid #dce5e4;color:#5e747b}
.page-actions select{width:151px;font-size:11px}
.demo-banner{display:flex;gap:10px;padding:10px 13px;background:#f3f6ed;border:1px solid #e6ebda;border-radius:6px;color:#7c8662;font-size:10px;margin-bottom:20px}
.demo-banner span{font-size:14px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}
.stat-card{border:1px solid var(--line);border-radius:9px;background:white;padding:20px 20px 16px;box-shadow:var(--shadow);min-width:0}
.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#798e94}
.stat-icon{display:grid;place-items:center;background:#eff5f3;color:#428d7d;width:32px;height:32px;border-radius:9px}
.stat-icon svg{width:17px;height:17px}
.stat-number{font-size:32px;letter-spacing:-1px;font-weight:600;line-height:1.3;margin:7px 0 11px;color:#28444b}
.stat-caption{font-size:10px;color:#a0afb2;border-top:1px solid #f1f4f4;padding-top:10px;display:flex;align-items:center;gap:5px}
.tiny-dot{width:5px;height:5px;border-radius:50%;background:#54ab8c;display:inline-block}
.panel{background:white;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);min-width:0}
.panel-header{padding:19px 20px 15px;border-bottom:1px solid #edf1f1;display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-header h2{font-size:13px;margin:0}
.panel-header p{font-size:10px;color:var(--muted);margin:3px 0 0}
.text-link{font-size:10px;color:var(--green);background:none;padding:4px 0}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 283px;gap:20px;margin-bottom:22px}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:11px}
th{text-align:left;font-size:10px;font-weight:500;color:#8a9ba0;background:#fafcfc;padding:13px 19px;border-bottom:1px solid var(--line)}
td{padding:17px 19px;border-bottom:1px solid #edf1f1;color:#667d83}
tr:last-child td{border-bottom:0}
td strong{font-weight:500;color:var(--ink)}
.bot-cell{display:flex;align-items:center;gap:10px}
.bot-avatar{width:32px;height:32px;border-radius:9px;background:#edf6f3;color:#408d7b;font-size:12px;font-weight:600;display:grid;place-items:center;flex:none}
.bot-avatar.violet{background:#f1eef8;color:#8b78b1}
.bot-avatar.blue{background:#edf3fa;color:#7598bc}
.bot-cell small{display:block;font-size:10px;color:#9aa9ad;margin-top:2px}
.chip{display:inline-flex;gap:5px;align-items:center;font-size:9px;line-height:1.6;border-radius:4px;padding:2px 6px;margin:2px 4px 2px 0;background:#edf5f2;color:#5a8d7d}
.chip.neutral{background:#f1f4f4;color:#8a9b9f}
.chip.purple{background:#f2eff9;color:#9182aa}
.status{display:inline-flex;align-items:center;gap:5px;font-size:10px}
.status:before{content:'';width:5px;height:5px;border-radius:50%;background:#a9b7b9}
.status.running{color:#39997a}
.status.running:before{background:#53b391}
.status.pending{color:#c29952}
.status.pending:before{background:#d4ac65}
.status.error{color:#c2746d}
.status.error:before{background:#ce766e}
.row-actions{display:flex;gap:7px}
.row-actions button{background:transparent;font-size:10px;color:#3b9382;padding:4px 0}
.row-actions button:disabled{cursor:wait}
.row-actions .delete{color:#b27672}
.module-row{padding:15px 19px;display:flex;gap:11px;align-items:flex-start;border-bottom:1px solid #f0f3f3}
.module-row:last-child{border:0}
.module-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#edf5f1;color:#5c9d88;font-size:17px}
.module-row p{font-size:9px;color:#99a8ad;margin:2px 0}
.module-row strong{font-size:11px;font-weight:500}
.module-row .module-count{margin-left:auto;font-size:10px;color:#7f9599}
.panel-note{padding:13px 19px;background:#fbfcfc;color:#99a9ac;font-size:9px;border-top:1px solid var(--line);border-radius:0 0 9px 9px}
.activity-list{padding:7px 20px}
.activity{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eff3f2;font-size:10px}
.activity:last-child{border:0}
.activity .activity-icon{width:26px;height:26px;border:1px solid #e7efeb;border-radius:50%;display:grid;place-items:center;color:#8bb4a4}
.activity time{margin-left:auto;font-size:9px;color:#9cabad}
.quick-panel{background:#edf5f1;border:1px solid #dcece4;border-radius:9px;padding:20px;margin-top:18px}
.quick-panel h3{font-size:12px}
.quick-panel p{font-size:10px;line-height:1.8;color:#7a958a;margin-bottom:15px}
.quick-panel a{font-size:10px;color:#36836d}
.toolbar{display:flex;justify-content:space-between;padding:15px 20px;gap:12px;align-items:center}
.searchbox{position:relative}
.searchbox input{width:240px;padding:8px 11px;font-size:11px}
.toolbar small{color:#96a7ab;font-size:10px}
.empty{padding:58px 20px;text-align:center;color:#99a8ad;font-size:12px;white-space:normal}
.empty strong{display:block;color:#6b858b;font-weight:500;font-size:14px;margin-bottom:6px}
.empty-icon{font-size:25px;opacity:.45;margin-bottom:12px}
.modules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.module-card{padding:25px;min-height:230px;display:flex;flex-direction:column}
.module-card .module-icon{width:45px;height:45px;font-size:23px;margin-bottom:20px}
.module-card h2{font-size:16px}
.module-card p{font-size:11px;line-height:1.8;color:#8b9da2;max-width:300px}
.module-card footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between}
.notice{padding:13px 16px;background:#f1f7f4;color:#759487;border:1px solid #e2eee7;border-radius:7px;font-size:11px;line-height:1.8;margin:16px 0}
.notice.compact{margin:0 0 14px;padding:9px 12px;font-size:10px}
.notice.warn{background:#fcf7ed;border-color:#f0e9d8;color:#a38b62}
.settings-form{padding:23px}
.settings-form .primary{margin-top:10px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.span-2{grid-column:span 2}
label{display:block;font-size:11px;color:#678087;margin-bottom:15px}
label small{font-size:10px;color:#9aa9ad;font-weight:400;display:block;line-height:1.7;margin-top:5px}
label em{font-style:normal;color:#b96d60}
input:not([type=checkbox]),select,textarea{display:block;width:100%;background:white;border:1px solid #dfe8e6;border-radius:5px;padding:9px 11px;color:#3b575f;min-width:0;margin-top:7px;transition:border-color .15s}
input::placeholder,textarea::placeholder{color:#b0bdbf}
input:focus,select:focus,textarea:focus{border-color:#71b4a3;outline:2px solid #1688760d}
select{margin-top:0;padding:8px 11px}
label select{margin-top:7px}
textarea{resize:vertical}
label:has(input:disabled){color:#bbc6c8}
input:disabled{background:#f4f7f6;color:#adb9bb}
.form-section-title{font-size:12px;font-weight:600;border-bottom:1px solid var(--line);padding-bottom:9px;margin:5px 0 18px}
.form-error{font-size:11px;color:#bc655a;margin:5px 0;min-height:18px}
.module-toggles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}
.module-toggles label{border:1px solid var(--line);border-radius:7px;padding:11px 8px;display:flex;align-items:flex-start;gap:8px;font-size:11px;cursor:pointer;margin:0}
.module-toggles small{font-size:9px;margin-top:3px}
.module-toggles input{accent-color:var(--green);margin:3px 0 0}
.module-toggles label:has(input:checked){border-color:#87c2ad;background:#f3faf6}
.icon-button{background:none;color:#8fa5ab;padding:3px;min-width:28px;font-size:20px}
.wide{width:100%;display:flex;justify-content:space-between}
.page-footer{border-top:1px solid #e7eeee;display:flex;justify-content:space-between;margin-top:28px;padding:19px 0;color:#a1b0b3;font-size:9px;letter-spacing:.3px}
.footer-separator{color:#c8d3d3;margin:0 12px}
.loading{padding:80px;text-align:center;color:#9cabad}
.pagination{display:flex;gap:10px;justify-content:flex-end;align-items:center;border-top:1px solid var(--line);padding:13px 20px;font-size:10px;color:#8b9fa4}
.pagination .secondary{padding:4px 9px;min-height:26px;font-size:10px}
dialog{width:700px;max-width:calc(100vw - 30px);max-height:92vh;padding:0;border:1px solid #dce6e2;border-radius:12px;box-shadow:0 30px 100px #102e3540;color:var(--ink)}
dialog::backdrop{background:#17333b70;backdrop-filter:blur(3px)}
.dialog-header{display:flex;justify-content:space-between;padding:22px 26px 16px;border-bottom:1px solid var(--line)}
.dialog-header h2{font-size:18px}
.dialog-header p{font-size:11px;margin:0}
.dialog-body{padding:20px 26px;max-height:65vh;overflow:auto}
.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 26px;border-top:1px solid var(--line);background:#fcfdfd}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;color:white;background:#244d43;border-radius:8px;box-shadow:0 6px 30px #183c3430;z-index:100;font-size:12px}
.toast.error{background:#9e5b52}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.login-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:white}
.login-story{background:#19343a;color:#e3eeea;display:flex;flex-direction:column;justify-content:space-between;padding:46px 64px;background-image:radial-gradient(ellipse at 10% 90%,#2b6b5a55,transparent 70%)}
.login-story .wordmark{padding:0}
.login-story h1{font-size:43px;line-height:1.5;letter-spacing:-1px;font-weight:550}
.login-story .eyebrow{color:#78ab9c}
.login-story p{color:#8da9ab;line-height:2;font-size:13px}
.login-story small{color:#6e9398;font-size:10px}
.story-chips{display:flex;gap:10px;margin-top:26px}
.story-chips span{border:1px solid #ffffff1f;padding:6px 10px;font-size:10px;border-radius:4px;color:#a5c2bc}
.login-main{display:flex;align-items:center;justify-content:center;padding:50px}
.login-form{width:330px}
.small-brand{font-size:10px;letter-spacing:1.3px;color:#87a49d;margin-bottom:30px}
.small-brand span{font-size:9px;color:#aab6b7;letter-spacing:0;margin-left:8px}
.login-form h2{font-size:27px;margin-bottom:9px;font-weight:600}
.login-form>p{font-size:12px;margin-bottom:29px}
.login-form label{margin:20px 0}
.login-form input{padding:12px;font-size:12px}
.login-form .wide{padding:12px 15px;margin-top:14px}
.login-form>small{display:block;font-size:10px;margin-top:22px;line-height:1.8}
.login-form .form-error{margin-bottom:5px}
@media(min-height:950px){.sidebar-help{margin-bottom:40px}}
@media(max-width:1280px){.sidebar{width:220px;padding-left:12px;padding-right:12px}.app-shell{margin-left:220px}.sidebar-footer{margin:0 -12px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px}main{padding:27px 25px 0}.topbar{padding:0 25px}.stat-card{padding:16px}.dashboard-grid td,.dashboard-grid th{padding-left:13px;padding-right:13px}.sidebar-help{margin-top:30px}.sidebar{overflow-y:auto}.sidebar-help{margin-top:auto}.wordmark{font-size:12px}.workspace strong{max-width:120px}.nav-item{font-size:11px}}
@media(max-width:1080px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.quick-panel{margin-top:0}.modules-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-actions{flex-wrap:wrap;justify-content:flex-end}.stat-grid{gap:10px}.stat-card{padding:13px}.stat-caption{font-size:9px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:244px}.sidebar.open{transform:translateX(0);box-shadow:10px 0 40px #17333b35}.app-shell{margin-left:0}.mobile-toggle{display:block;margin-right:12px}.topbar{height:60px;padding:0 18px}.breadcrumbs{margin-right:auto;font-size:10px}.top-actions{gap:9px}.edition{font-size:9px}.top-divider{display:none}main{padding:24px 17px 0}.page-heading{display:block}.page-actions{justify-content:flex-start;margin-top:18px}.page-actions select{width:150px}h1{font-size:25px}.stat-grid{grid-template-columns:1fr 1fr;gap:12px}.stat-number{font-size:28px}.stat-card{padding:16px}.stat-caption{font-size:9px}.dashboard-aside{display:block}.quick-panel{margin-top:16px}.table-wrap table{min-width:580px}.page-footer{display:block;line-height:2}.page-footer>span:last-child{display:block}.module-toggles{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.dialog-body{padding:17px}.dialog-header,.dialog-footer{padding:17px}.toolbar{padding:13px}.searchbox input{width:210px}.demo-banner{font-size:9px}.login-page{grid-template-columns:1fr}.login-story{display:none}.login-main{padding:40px 25px;min-height:100vh}.stat-top{font-size:10px}.dialog-body{max-height:65vh}.modules-grid{gap:15px}}
.activity-panel{margin-top:22px}
.block{display:block;font-size:9px;margin-top:4px}
.nav-item{font-size:13px}
.nav-label{font-size:11px}
table{font-size:12px}
th{font-size:11px}
.bot-cell small{font-size:11px}
.stat-top{font-size:12px}
.stat-caption{font-size:11px}
.panel-header h2{font-size:14px}
.panel-header p{font-size:11px}
.module-row strong{font-size:12px}
.module-row p,.panel-note{font-size:11px}
.text-link,.row-actions button{font-size:11px}
.page-heading .muted{font-size:12px}
label{font-size:12px}
.dashboard-grid>div,.dashboard-aside{min-width:0}
@media(max-width:1080px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.table-wrap:after{content:"左右滑动，查看完整列表";display:block;padding:8px 14px;color:#92a6aa;font-size:10px;background:#fbfcfc}}
.rule-list{min-width:0;margin:14px 0}
.rule-list h3{margin-bottom:6px}
.rule-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px;border:1px solid var(--border,#e4e9ec);border-radius:10px;margin-bottom:12px}
.rule-row>button{justify-self:start}
.rule-row label{min-width:0}
.rule-row input,.rule-row textarea,.rule-row select{width:100%;min-width:0}
.rule-list>button{margin-top:4px}
details{padding:12px 0;border-bottom:1px solid #e4e9ec}
summary{cursor:pointer;font-weight:600}
#features-tabs{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.rule-row{grid-template-columns:minmax(0,1fr)}.rule-row .span-2{grid-column:1}.rule-list{width:100%}}
[hidden]{display:none!important}
.feature-page .panel .dialog-body{max-height:none;overflow:visible}
.forward-card .form-grid>label{min-width:0}
.forward-card input:not([type=checkbox]),.forward-card select{width:100%;min-width:0}
#forward-form>.toolbar{flex-wrap:wrap;gap:10px}
.forward-card .panel-header{gap:12px;flex-wrap:wrap}
.forward-card input[type=checkbox]{width:auto;flex:0 0 auto}
.chat-identity{display:flex;align-items:center;gap:10px;min-width:0}
.chat-identity input{flex:1;min-width:0!important;width:0!important}
.chat-name-label{font-size:12px;color:var(--green);max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-name-label:empty{display:none}
body>.sidebar nav button.nav-item{width:100%;text-align:left;background:transparent}
body>.sidebar nav button.nav-item.active{background:#2d4a4d}
.sidebar-help button{width:100%}
.sidebar{overflow-y:auto}
.sidebar-footer{flex-shrink:0}
.module-copy-editor{margin-top:16px;border-top:1px solid var(--border,#e7e9ee);padding-top:12px}
.module-copy-editor summary{cursor:pointer;color:#4f64cf}
.module-copy-editor form{display:grid;gap:12px;padding-top:12px}
.module-copy-editor textarea{width:100%;resize:vertical}
.bill-template-field{display:grid;gap:6px;margin:16px 0}
.bill-template-field textarea{width:100%;font-family:monospace;resize:vertical}
.bill-format-example{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:#f5f7fa;border-radius:10px;line-height:1.7}
.dispatch-group-section{margin:20px 0}
.dispatch-group-section>h3{margin-bottom:10px}
#ledger-group-search{flex-wrap:wrap;gap:8px}
#ledger-group-search input{max-width:100%}
.ledger-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:0 0 20px}
.ledger-stat-grid .stat-card{padding:17px 18px 14px}
.ledger-stat-grid .stat-number{font-size:27px;overflow-wrap:anywhere}
@media(max-width:1200px){.ledger-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.ledger-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ledger-stat-grid .stat-card{padding:13px 12px}.ledger-stat-grid .stat-number{font-size:22px}}
dialog{margin:auto;box-sizing:border-box}
dialog:modal{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);overflow:auto}
#upstream-surcharge-dialog{width:min(760px,calc(100vw - 24px))}
#upstream-surcharge-dialog .dialog-header p{margin:4px 0 0;color:var(--muted);font-size:12px}
.surcharge-switch{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink);margin:0 0 14px}
.surcharge-switch input,.surcharge-fee input{width:auto;margin:0;accent-color:var(--green)}
.surcharge-rules{border:1px solid var(--line);border-radius:8px;padding:10px 14px 14px;margin:0 0 14px;min-width:0}
.surcharge-rules legend{padding:0 6px;font-size:12px;font-weight:600;color:var(--ink)}
.surcharge-hint{font-size:11px;margin:0 0 10px}
.surcharge-tier{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 72px 64px;gap:8px;align-items:center;margin-bottom:8px}
.surcharge-tier input:not([type=checkbox]){margin:0;padding:7px 9px}
.surcharge-head{margin-bottom:4px;font-size:11px;color:var(--muted)}
.surcharge-rules:has([data-surcharge-tiers]:empty) .surcharge-head{display:none}
.surcharge-fee{display:flex;align-items:center;gap:5px;margin:0;font-size:12px;white-space:nowrap}
.surcharge-remove{min-height:32px;padding:6px 10px}
@media(max-width:600px){.surcharge-tier{grid-template-columns:repeat(3,minmax(0,1fr))}.surcharge-head span:nth-child(n+4){display:none}.surcharge-fee{grid-column:1/3}.surcharge-remove{grid-column:3}}
#group-forward-dialog{width:min(560px,calc(100vw - 24px))}
#group-forward-dialog .dialog-header p{margin:4px 0 0;color:var(--muted);font-size:12px}
.group-forward{margin-top:6px}

/* ======== 原 layout.css ======== */
/* 总后台配色：原 theme97.css 中仍生效的规则，只作用于总后台页面（html.admin-theme），:where() 不增加优先级 */
:root:where(.admin-theme){--nav:#202a3b;--nav-muted:#9ba8bc;--ink:#273448;--muted:#8390a1;--green:#16a085;--green-dark:#0c846c;--green-pale:#e7f8f2;--line:#e8ecf2;--bg:#f5f7fb;--shadow:0 3px 16px rgba(24,40,64,.045)}
:where(.admin-theme) body{background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
:where(.admin-theme) .sidebar{background:#202a3b;border-right:1px solid #283549;box-shadow:2px 0 16px #1b2a3b0b}
:where(.admin-theme) .wordmark{letter-spacing:.3px;font-size:15px}
:where(.admin-theme) .wordmark small{letter-spacing:.3px;color:#9eacc1}
:where(.admin-theme) .brand-icon{background:linear-gradient(135deg,#26b899,#0e8b75);border-radius:8px;letter-spacing:0;padding:0;font-size:19px}
:where(.admin-theme) .workspace{background:#29374b;border:1px solid #34445b;border-radius:8px}
:where(.admin-theme) .workspace-avatar{background:#39506a;color:#dceaf2}
:where(.admin-theme) .nav-label{color:#8493a9;letter-spacing:.4px}
:where(.admin-theme) .nav-item{color:#b3c0d0;border-radius:6px;transition:background .15s,color .15s}
:where(.admin-theme) .nav-item:hover{background:#2c3b51;color:#fff}
:where(.admin-theme) .nav-item.active{background:#173d42;color:#75e3bd;box-shadow:inset 3px 0 #21b992}
:where(.admin-theme) .sidebar-help{border-color:#3b485b;background:#273549}
:where(.admin-theme) .sidebar-footer{border-color:#344052}
:where(.admin-theme) .topbar{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 2px #18253805}
:where(.admin-theme) .page-heading h1{font-weight:650;letter-spacing:-.4px}
:where(.admin-theme) .eyebrow{color:#8394a7;letter-spacing:1.3px}
:where(.admin-theme) .panel,:where(.admin-theme) .stat-card,:where(.admin-theme) .quick-panel,:where(.admin-theme) .module-card,:where(.admin-theme) .forward-card{background:#fff;border:1px solid #e8edf3;border-radius:9px;box-shadow:var(--shadow)}
:where(.admin-theme) .panel-header{border-bottom-color:#edf0f5}
:where(.admin-theme) table{border-collapse:collapse}
:where(.admin-theme) thead,:where(.admin-theme) th{background:#fafbfe;color:#65748b}
:where(.admin-theme) tbody tr:hover{background:#f7fbfc}
:where(.admin-theme) td,:where(.admin-theme) th{border-bottom-color:#edf0f4}
:where(.admin-theme) .primary,:where(.admin-theme) button.primary{background:#16a085;color:#fff;border-radius:6px}
:where(.admin-theme) .primary:hover,:where(.admin-theme) button.primary:hover{background:#0d8972}
:where(.admin-theme) .secondary,:where(.admin-theme) button.secondary{border:1px solid #dce3ec;background:#fff;color:#45566c;border-radius:6px}
:where(.admin-theme) .secondary:hover{background:#f5f8fc}
:where(.admin-theme) input:not([type=checkbox]):not([type=radio]),:where(.admin-theme) select,:where(.admin-theme) textarea{border-color:#dce4ed;border-radius:6px;background:#fff}
:where(.admin-theme) input:focus,:where(.admin-theme) select:focus,:where(.admin-theme) textarea:focus{border-color:#16a085;box-shadow:0 0 0 3px #16a08518}
:where(.admin-theme) .chip{border-radius:5px}
:where(.admin-theme) dialog{border-radius:10px;border:1px solid #e4e9f1}
:where(.admin-theme) dialog::backdrop{background:#16243888}
:where(.admin-theme) .login-story{background:#202a3b;background-image:radial-gradient(ellipse at 12% 92%,#137e6d44,transparent 65%)}
@media(max-width:760px){:where(.admin-theme) .sidebar{background:#202a3b}}
@media(max-width:760px){:where(.admin-theme) .topbar{background:#fff}}
:where(.admin-theme) body[data-page="modules"]{--pear-blue:#1688f8;background:#f2f3f5}
:where(.admin-theme) body[data-page="modules"] main{max-width:none;padding:20px 16px 0}
:where(.admin-theme) body[data-page="modules"] .page-heading{margin-bottom:12px}
:where(.admin-theme) body[data-page="modules"] .page-heading h1{font-size:18px}
/* 页面布局（原 console97/layout.css） */

:root{--bg:#eff1f4;--green:#1677ff;--green-dark:#0969da;--nav:#191a23;--line:#e8eaec}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
body .sidebar{background:#191a23;color:#eee}.sidebar .wordmark{color:white;font-size:19px}.brand-icon img{height:30px;width:30px}.sidebar .brand-icon{background:transparent}.sidebar .workspace{background:#22242f}.sidebar .nav-item{border-radius:0;color:#d7d8df}.sidebar .nav-item.active,.sidebar nav button.nav-item.active{background:#168fff;color:white;box-shadow:none}
body main#main,.app-shell main{max-width:none;width:100%;box-sizing:border-box}.topbar{background:#fff}.page-heading{margin-bottom:14px}
.panel,.stat-card,.module-card,.quick-panel,.card{border-radius:4px;box-shadow:none}.primary,button.primary,.el-button.primary{background:#168fff;color:white;border-color:#168fff}.panel th,.b97panel th{background:#fafafa}.panel td,.panel th{border:1px solid #ebeef5}.panel tbody tr:hover{background:#f2faff}
.el-button+.el-button{margin-left:0}body [hidden]{display:none!important}

/* ======== 原 user-workspace.css ======== */
/* User workspace: shared administrator palette, scoped to user pages. */
body[data-tenant="true"]{background:#eff1f4;color:#293241}
body[data-tenant="true"] .sidebar{width:240px;background:#191a23;padding:20px 14px;transition:width .2s,transform .2s}
body[data-tenant="true"] .app-shell{margin-left:240px;min-width:0}
body[data-tenant="true"] .sidebar .nav-item{display:flex;gap:12px;align-items:center;min-height:46px;padding:12px 14px;border-radius:6px;font-size:14px}
body[data-tenant="true"] .nav-item svg{width:20px;height:20px;flex:0 0 20px}
body[data-tenant="true"] .sidebar-help{display:none}
body[data-tenant="true"] .workspace{margin-bottom:16px}
body[data-tenant="true"] #main{padding:24px;max-width:none;width:100%;box-sizing:border-box}
body[data-tenant="true"] .topbar{padding:0 24px;gap:14px}
body[data-tenant="true"] .topbar .breadcrumbs{margin-right:auto}
body[data-tenant="true"] #mobile-toggle{display:inline-flex}
body[data-tenant="true"] .panel{border:1px solid #e2e7ee;border-radius:10px;background:#fff;margin-bottom:18px;overflow:visible}
body[data-tenant="true"] .panel-header{padding:18px 20px}
body[data-tenant="true"] .dialog-body{padding:20px}
body[data-tenant="true"] .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body[data-tenant="true"] label{min-width:0}
body[data-tenant="true"] .table-wrap{max-width:100%;overflow:auto}
body[data-tenant="true"] table td{vertical-align:middle;padding:14px 12px}
body[data-tenant="true"] table td:last-child .text-link{display:inline-block;margin:4px 9px 4px 0;white-space:nowrap}
body[data-tenant="true"] table td small{display:block;max-width:260px;overflow-wrap:anywhere;color:#c34242}
body[data-tenant="true"] #password-form{max-width:520px}
body[data-tenant="true"] #features-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
body[data-tenant="true"] .user-menu-backdrop{display:none}
@media(min-width:992px){body[data-tenant="true"].user-collapsed .sidebar{width:76px}body[data-tenant="true"].user-collapsed .app-shell{margin-left:76px}body[data-tenant="true"].user-collapsed .sidebar .workspace,body[data-tenant="true"].user-collapsed .sidebar .nav-label,body[data-tenant="true"].user-collapsed .sidebar .wordmark>span:last-child,body[data-tenant="true"].user-collapsed .sidebar-footer>div,body[data-tenant="true"].user-collapsed .sidebar-footer>.avatar,body[data-tenant="true"].user-collapsed .nav-item>span{display:none}body[data-tenant="true"].user-collapsed .sidebar .nav-item{padding:12px}body[data-tenant="true"].user-collapsed .sidebar-footer{justify-content:center}}
@media(max-width:991px){body[data-tenant="true"] .sidebar{width:240px;transform:translateX(-100%);z-index:1100}body[data-tenant="true"] .sidebar.open{transform:translateX(0)}body[data-tenant="true"] .app-shell{margin-left:0}body[data-tenant="true"].user-menu-open .user-menu-backdrop{display:block;position:fixed;inset:0;background:#10182866;z-index:1090;border:0;border-radius:0}body[data-tenant="true"] #main{padding:16px}}
@media(max-width:600px){body[data-tenant="true"] .form-grid{grid-template-columns:minmax(0,1fr)}body[data-tenant="true"] .form-grid .span-2{grid-column:auto}body[data-tenant="true"] .page-heading{flex-wrap:wrap;gap:12px}body[data-tenant="true"] .topbar{padding:0 16px}body[data-tenant="true"] .dialog-body{padding:16px}}

/* ======== 原 saas.css ======== */
/* ===== 清爽浅色 SaaS 主题（全站，最后加载，覆盖 console97 / theme97 / layout 的配色）=====
   只改视觉，不改页面结构与交互。颜色：底 #F6F7F9，卡片 #FFF，边框 #E6E8EC，正文 #111827，次要 #6B7280，主色 #2563EB。 */
:root{--bg:#F6F7F9;--ink:#111827;--muted:#6B7280;--line:#E6E8EC;--green:#2563EB;--green-dark:#1D4ED8;--green-pale:#EEF3FF;--nav:#FFFFFF;--nav-muted:#6B7280;--shadow:0 1px 2px rgba(16,24,40,.04);
  --sx-radius:12px;--sx-input:#D9DDE3;--sx-soft:#F9FAFB}
html body{background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
html body .muted,html body small{color:var(--muted)}
html body .sidebar,html body>.sidebar{background:#FFFFFF;color:var(--ink);border-right:1px solid var(--line);box-shadow:none}
html body .sidebar .wordmark{color:var(--ink);font-size:15px;font-weight:600}
html body .sidebar .wordmark small{color:var(--muted)}
html body .sidebar .brand-icon{background:#2563EB;border-radius:9px}
html body .sidebar .workspace{background:var(--sx-soft);border:1px solid var(--line);border-radius:10px;color:var(--ink)}
html body .sidebar .workspace strong{color:var(--ink)}
html body .sidebar .workspace-avatar{background:#EEF3FF;color:#1D4ED8}
html body .sidebar .nav-label{color:var(--muted);letter-spacing:.02em}
html body .sidebar .nav-item,html body>.sidebar nav button.nav-item{color:#4B5563;border-radius:8px;box-shadow:none;background:transparent}
html body .sidebar .nav-item:hover{background:#F3F4F6;color:var(--ink)}
html body .sidebar .nav-item.active,html body>.sidebar nav button.nav-item.active{background:#EEF3FF;color:#1D4ED8;font-weight:600;box-shadow:none}
html body .sidebar .nav-item small{background:#F3F4F6;color:#4B5563}
html body .sidebar .nav-item.active small{background:#DBE6FF;color:#1D4ED8}
html body .sidebar .sidebar-help{background:var(--sx-soft);border:1px solid var(--line);color:#4B5563}
html body .sidebar .sidebar-help strong{color:var(--ink)}
html body .sidebar .sidebar-help a{color:#2563EB}
html body .sidebar .sidebar-footer{border-top:1px solid var(--line);color:var(--ink)}
html body .sidebar .sidebar-footer strong{color:var(--ink)}
html body .sidebar .icon-button{color:#4B5563}
html body .topbar{background:#FFFFFF;border-bottom:1px solid var(--line);box-shadow:none}
html body .breadcrumbs{color:var(--muted)}
html body .breadcrumbs strong{color:var(--ink);font-weight:500}
html body .top-avatar,html body .sidebar-footer .avatar{background:#EEF3FF;color:#1D4ED8}
html body .edition{background:var(--sx-soft);border:1px solid var(--line);color:#4B5563;border-radius:999px}
html body .page-heading .eyebrow{display:none}
html body .page-heading h1{font-size:24px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
html body .page-heading .muted{font-size:14px}
html body .panel,html body .stat-card,html body .quick-panel,html body .module-card,html body .card,html body .forward-card{background:#FFFFFF;border:1px solid var(--line);border-radius:var(--sx-radius);box-shadow:var(--shadow)}
html body .panel-header{border-bottom:1px solid #EEF0F3}
html body .panel-header h2{font-size:15px;font-weight:600;color:var(--ink)}
html body .stat-number{font-size:26px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
html body .stat-icon{background:#EEF3FF;color:#2563EB}
html body table{border-collapse:collapse}
html body .panel th,html body .panel td,html body th,html body td{border:0;border-bottom:1px solid #F0F1F4}
html body thead,html body th,html body .panel th{background:var(--sx-soft);color:var(--muted);font-weight:500}
html body tbody tr:hover,html body .panel tbody tr:hover{background:#FAFBFC}
html body .primary,html body button.primary,html body .el-button.primary{background:#2563EB;border:1px solid #2563EB;color:#FFFFFF;border-radius:8px}
html body .primary:hover,html body button.primary:hover{background:#1D4ED8;border-color:#1D4ED8}
html body .secondary,html body button.secondary{background:#FFFFFF;border:1px solid var(--sx-input);color:var(--ink);border-radius:8px}
html body .secondary:hover,html body button.secondary:hover{background:#F9FAFB}
html body .text-link{color:#2563EB}
html body button:focus-visible,html body a:focus-visible{outline:2px solid #2563EB;outline-offset:2px}
html body input:not([type=checkbox]):not([type=radio]),html body select,html body textarea{border:1px solid var(--sx-input);border-radius:8px;background:#FFFFFF;color:var(--ink)}
html body input:focus,html body select:focus,html body textarea:focus{border-color:#2563EB;box-shadow:0 0 0 3px rgba(37,99,235,.15);outline:0}
html body input[type=checkbox],html body input[type=radio]{accent-color:#2563EB}
html body .notice{background:var(--sx-soft);border:1px solid var(--line);color:#4B5563;border-radius:10px}
html body .notice.warn{background:#FFF7ED;border-color:#FED7AA;color:#9A3412}
html body .chip{background:#F3F4F6;color:#374151;border-radius:6px}
html body .status.running{color:#15803D}
html body .status.pending{color:#B45309}
html body .status.error{color:#B91C1C}
html body .toast{background:#111827;color:#FFFFFF;border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.25)}
html body .toast.error{background:#B91C1C}
html body dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 64px rgba(16,24,40,.24)}
html body dialog::backdrop{background:rgba(17,24,39,.45)}
html body .dialog-header{border-bottom:1px solid #EEF0F3}
html body .dialog-footer{border-top:1px solid #EEF0F3;background:#FCFCFD}
@media(max-width:760px){html body .sidebar{background:#FFFFFF}}
.dx-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.dx-status{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600}
.dx-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.dx-status.on{background:#ECFDF3;color:#15803D}
.dx-status.off{background:#F3F4F6;color:#4B5563}
.dx-master{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;margin:0;color:var(--ink)}
.dx-sw{appearance:none;-webkit-appearance:none;width:40px;height:22px;border-radius:999px;background:#D1D5DB;position:relative;flex:none;margin:0;cursor:pointer;transition:background .15s;border:0}
.dx-sw:checked{background:#2563EB}
.dx-sw::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.dx-sw:checked::after{left:21px}
.dx-sw:focus-visible{outline:2px solid #2563EB;outline-offset:2px}
.dx-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.dx-tabs button{flex:none;height:44px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:none;font:inherit;font-size:14px;color:#4B5563;cursor:pointer;border-radius:0}
.dx-tabs button[aria-selected=true]{color:#1D4ED8;border-bottom-color:#2563EB;font-weight:600}
.dx-tabs button span{color:var(--muted);font-weight:400;margin-left:4px}
.dx-pane[hidden]{display:none!important}
.dx-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.dx-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-width:0}
.dx-card-head{padding:18px 20px 0}
.dx-card-head h3{margin:0;font-size:15px;font-weight:600;color:var(--ink)}
.dx-card-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.dx-card-body{padding:16px 20px 20px;display:flex;flex-direction:column;gap:16px}
.dx-row{display:flex;justify-content:space-between;align-items:center;gap:16px}
.dx-lbl{display:block;font-size:13px;font-weight:500;color:var(--ink)}
.dx-hint{display:block;font-size:12px;color:var(--muted);margin-top:2px;line-height:1.55}
.dx-field{display:flex;flex-direction:column;gap:6px;margin:0}
.dx-field input,.dx-field textarea,.dx-field select{width:100%;margin:0!important;font:inherit}
.dx-field textarea{min-height:76px;resize:vertical;line-height:1.5}
.dx-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dx-unit{display:flex;align-items:stretch;border:1px solid var(--sx-input);border-radius:8px;overflow:hidden;background:#fff;height:38px}
html body .dx-unit input{border:0!important;box-shadow:none!important;height:100%;border-radius:0;padding:0 12px;min-width:0;flex:1}
.dx-unit span{padding:0 12px;color:var(--muted);font-size:13px;border-left:1px solid var(--line);display:flex;align-items:center;background:var(--sx-soft);white-space:nowrap}
.dx-unit:focus-within{border-color:#2563EB;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.dx-info{background:var(--sx-soft);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px;color:#4B5563}
.dx-help{background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 18px}
.dx-help summary{cursor:pointer;padding:14px 0;font-size:14px;font-weight:500;color:var(--ink)}
.dx-help p{margin:0 0 14px;font-size:13px;color:#4B5563;line-height:1.7}
.dx-savebar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px;box-shadow:0 -4px 16px rgba(16,24,40,.06)}
.dx-dirty{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.dx-dirty::before{content:"";width:8px;height:8px;border-radius:50%;background:#D1D5DB}
.dx-dirty.on{color:#B45309}
.dx-dirty.on::before{background:#F59E0B}
.dx-savebar .dx-actions{display:flex;gap:10px}
.dx-savebar button{min-height:38px;padding:0 16px}
#dispatch-form.dx-form{display:flex;flex-direction:column;gap:20px}
.dx-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.dx-seg{display:inline-flex;background:#F3F4F6;border-radius:8px;padding:3px;gap:2px;flex-wrap:wrap}
.dx-seg button{border:0;background:transparent;font:inherit;font-size:13px;color:#4B5563;height:32px;padding:0 12px;border-radius:6px;cursor:pointer}
.dx-seg button.on{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(16,24,40,.08)}
html body .dx-search{width:260px;max-width:100%;height:36px;margin:0;padding:0 12px}
.dx-groups{display:flex;flex-direction:column;gap:12px}
.dx-group{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-width:0}
.dx-group[hidden]{display:none}
.dx-group-head{display:flex;align-items:center;gap:14px;padding:16px 20px;flex-wrap:wrap}
.dx-avatar{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none;background:#F3F4F6;color:#374151}
.dx-avatar.dx-upstream{background:#EEF3FF;color:#1D4ED8}
.dx-avatar.dx-downstream{background:#FFF7ED;color:#B45309}
.dx-group-title{flex:1 1 220px;min-width:0;display:flex;flex-direction:column}
.dx-group-title>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dx-group-title strong{font-size:16px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.dx-group-title small{font-size:12px;color:var(--muted)}
.dx-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:600;background:#F3F4F6;color:#374151}
.dx-badge.dx-upstream{background:#EEF3FF;color:#1D4ED8}
.dx-badge.dx-downstream{background:#FFF7ED;color:#B45309}
.dx-badge.dx-left{background:#FEF2F2;color:#B91C1C}
.dx-group-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dx-group-controls label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:#4B5563;white-space:nowrap}
html body .dx-group-controls select{height:36px;margin:0;width:auto;max-width:260px;font-size:13px;padding:0 30px 0 10px}
.dx-expand{border:1px solid var(--sx-input);background:#fff;border-radius:8px;height:36px;padding:0 14px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;flex:none}
.dx-group-body{padding:0 20px 18px;border-top:1px solid #EEF0F3}
.dx-tg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-top:16px}
.dx-grp{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:8px}
.dx-tg-group>label+label{margin-top:8px}
.dx-tg{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:0 12px;border:1px solid #EEF0F3;border-radius:8px;background:#FCFCFD;font-size:13px;color:#374151;margin:0;cursor:pointer}
.dx-group-foot{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #EEF0F3}
.dx-group-foot .block{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dx-group-foot .block small{color:var(--muted)}
.dx-empty{padding:28px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:12px}
.dx-st{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:600;background:#F3F4F6;color:#374151;white-space:nowrap}
.dx-st.s-success{background:#ECFDF3;color:#15803D}
.dx-st.s-fail{background:#FEF2F2;color:#B91C1C}
.dx-st.s-dispatched,.dx-st.s-dispatching,.dx-st.s-finalizing{background:#EEF3FF;color:#1D4ED8}
.dx-st.s-needs_review,.dx-st.s-pending{background:#FFF7ED;color:#B45309}
.dx-pane .toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
html body .dx-pane .toolbar select{width:auto;min-width:160px;margin:0;height:38px}
.dx-pane .toolbar button{margin:0;min-height:38px}
@media(max-width:900px){.dx-cards{grid-template-columns:minmax(0,1fr)}.dx-tg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dx-tabs{gap:20px}.dx-tabs button{font-size:15px}.dx-two{grid-template-columns:minmax(0,1fr)}.dx-tg-grid{grid-template-columns:minmax(0,1fr)}.dx-tg{min-height:48px;font-size:15px}.dx-sw{width:44px;height:26px}.dx-sw::after{width:20px;height:20px}.dx-sw:checked::after{left:21px}.dx-group-head{padding:14px}.dx-group-body{padding:0 14px 14px}.dx-group-controls{width:100%}.dx-group-controls label{width:100%;flex-direction:column;align-items:stretch;gap:4px;white-space:normal}html body .dx-group-controls select{width:100%;max-width:none;height:44px;font-size:15px}.dx-expand{width:100%;height:44px}html body .dx-search{width:100%}.dx-savebar .dx-actions{width:100%}.dx-savebar .dx-actions button{flex:1;min-height:44px}}
html body .ledger-stat-grid .stat-number{font-size:clamp(20px,1.7vw,26px);overflow-wrap:normal;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1600px){html body .ledger-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){html body .ledger-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body .ledger-stat-grid .stat-number{font-size:16px}}
.st-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.st-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.st-side{display:flex;flex-direction:column;gap:20px;position:sticky;top:20px;min-width:0}
.st-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.st-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.st-text[hidden]{display:none}
.st-text-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.st-text-meta .dx-hint{margin:0}
.st-count{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
html body .st-text textarea{min-height:240px;font-size:13px}
.st-side .dx-card-body>button{align-self:flex-start;min-height:38px;padding:0 16px}
.st-info{margin:0;padding:12px 20px 18px;display:flex;flex-direction:column}
.st-info div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}
.st-info div:first-child{border-top:0}
.st-info dt{color:var(--muted)}
.st-info dd{margin:0;color:var(--ink);font-weight:500;text-align:right;word-break:break-all}
@media (max-width:1180px){.st-layout{grid-template-columns:minmax(0,1fr)}.st-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.st-three,.st-side{grid-template-columns:minmax(0,1fr)}.st-layout .dx-two,.st-layout .dx-cards{grid-template-columns:minmax(0,1fr)}.st-head-row .dx-seg{width:100%}.st-head-row .dx-seg button{flex:1;min-height:40px}.st-side .dx-card-body>button{align-self:stretch;min-height:44px}html body .st-layout input{min-height:44px}}
#bot-form [data-needs][hidden],#bot-form [data-needs-empty][hidden]{display:none!important}
#bot-form .module-empty{margin:4px 0 0;padding:12px 14px;border:1px dashed var(--line);border-radius:8px;font-size:13px;background:var(--sx-soft)}
.lg-page{display:flex;flex-direction:column;gap:20px}
.lg-card{overflow:hidden}
.lg-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line)}
.lg-search{display:flex;gap:8px;align-items:center;margin:0}
.lg-search button{height:36px;padding:0 14px}
.lg-note{margin:0;font-size:13px;max-width:720px}
.lg-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid var(--line)}
.lg-foot .pagination{margin:0;padding:0;border:0}
html body .lg-card .table-wrap{border:0;border-radius:0;margin:0}
html body .lg-table{width:100%;border-collapse:collapse}
html body .lg-table th{font-size:12px;font-weight:500;color:var(--muted);background:var(--sx-soft);padding:10px 16px;text-align:left;white-space:nowrap;border:0;border-bottom:1px solid var(--line)}
html body .lg-table td{padding:14px 16px;vertical-align:top;border:0;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink)}
html body .lg-table tbody tr:hover td{background:#FAFBFC}
.lg-table td small{font-size:12px;margin-top:3px;line-height:1.5}
.lg-table td:first-child{min-width:220px}
.lg-num strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.lg-pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:22px;padding:0 8px;border-radius:999px;background:#F3F4F6;color:#4B5563;white-space:nowrap}
.lg-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.7}
.lg-pill.ok{background:#ECFDF5;color:#047857}
.lg-pill.warn{background:#FFFBEB;color:#B45309}
.lg-pill.bad{background:#FEF2F2;color:#B91C1C}
.lg-pill.info{background:#EFF6FF;color:#1D4ED8}
html body .lg-table tr.lg-left td{background:#FFFBFB}
.lg-members summary{cursor:pointer;color:#2563EB;font-size:13px;white-space:nowrap;list-style:none}
.lg-members summary::-webkit-details-marker{display:none}
.lg-members summary::after{content:" ▾"}
.lg-members[open] summary::after{content:" ▴"}
.lg-members p{margin:6px 0;font-size:12px}
.lg-members [data-member-items]{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#374151;max-height:220px;overflow:auto;min-width:200px;font-variant-numeric:tabular-nums}
.lg-ops{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.lg-ops .text-link{font-size:13px;white-space:nowrap}
html body .lg-edit{height:32px;padding:0 14px;font-size:13px}
.lg-totals .panel-header{padding:16px 20px 8px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:baseline;border:0}
.lg-totals .panel-header h3{margin:0;font-size:14px;font-weight:600}
.lg-totals .panel-header span{font-size:13px;color:var(--muted)}
html body .lg-totals table th{background:var(--sx-soft);font-size:12px;color:var(--muted);font-weight:500;border:0;border-bottom:1px solid var(--line)}
html body .lg-totals table td{border:0;border-bottom:1px solid var(--line);font-size:13px}
.lg-pane>.panel{margin:0}
@media (max-width:760px){.lg-toolbar{padding:14px}.lg-search{width:100%}.lg-search input{flex:1}.lg-toolbar .dx-seg{width:100%}.lg-toolbar .dx-seg button{flex:1;min-height:40px;padding:0 6px}html body .lg-table thead{display:none}html body .table-wrap .lg-table,html body .lg-table tbody{display:block;min-width:0;width:100%}html body .lg-card .table-wrap{overflow:visible}html body .lg-table tr{display:block;padding:12px 14px;border-bottom:1px solid var(--line)}html body .lg-table td{display:block;position:relative;padding:6px 0 6px 92px;border:0;text-align:right;min-height:30px}html body .lg-table td::before{content:attr(data-label);position:absolute;left:0;top:7px;color:var(--muted);font-size:12px;text-align:left}html body .lg-table td:first-child{display:block;text-align:left;min-width:0;padding:0 0 8px}html body .lg-table td:first-child::before{display:none}html body .lg-table td>*{min-width:0}.lg-ops{align-items:flex-end}.lg-members summary{text-align:right}.lg-ops{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}html body .lg-edit{min-height:40px}.lg-members [data-member-items]{text-align:left;min-width:0}.lg-foot{padding:12px 14px}}
.fx-page{display:flex;flex-direction:column;gap:16px}
.fx-page>[hidden]{display:none!important}
.fx-tip{margin:0;font-size:13px;color:var(--muted)}
.fx-card{overflow:visible}
.fx-body{padding:16px 20px 20px;display:flex;flex-direction:column;gap:16px}
.fx-body>form{display:flex;flex-direction:column;gap:16px;margin:0}
.fx-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.fx-group{margin:0;min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px 16px 16px;background:#fff}
.fx-group legend{padding:0 6px;margin-left:-6px;font-size:14px;font-weight:600;color:var(--ink)}
.fx-group-desc{margin:0 0 10px;font-size:12px;color:var(--muted)}
html body .fx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin:0}
html body .fx-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
html body .fx-page .form-grid>label,html body .fx-page .fx-body>form>label,.fx-picker{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13px;font-weight:500;color:var(--ink);min-width:0}
html body .fx-page .form-grid label small{font-weight:400;font-size:12px;color:var(--muted);line-height:1.5}
html body .fx-page .form-grid input:not([type=checkbox]),html body .fx-page .form-grid select,html body .fx-page .form-grid textarea{width:100%;min-width:0;margin:0}
.fx-grid .span-full,.fx-grid .span-2{grid-column:1/-1}
.fx-inline{display:flex;gap:8px}
.fx-inline input{flex:1}
.fx-inline button{flex:none;height:38px;padding:0 12px}
.fx-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.fx-rules:has(>:only-child){grid-template-columns:minmax(0,1fr)}
html body .fx-page .rule-list{margin:0;border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:#fff;display:flex;flex-direction:column;gap:10px}
html body .fx-page .rule-list h3{margin:0;font-size:14px;font-weight:600}
html body .fx-page .rule-list>p{margin:0;font-size:12px}
html body .fx-page [data-rule-rows]{display:flex;flex-direction:column;gap:8px}
html body .fx-page [data-rule-rows]:empty::before{content:"暂未添加";display:block;padding:12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px;text-align:center}
html body .fx-page .rule-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--sx-soft);margin:0}
html body .fx-page .rule-row[data-rule=auto_replies]{grid-template-columns:minmax(0,1fr) 140px auto}
html body .fx-page .rule-row[data-rule=auto_replies] .span-2{grid-column:1/3}
html body .fx-page .rule-row label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);margin:0;min-width:0}
html body .fx-page .rule-row input,html body .fx-page .rule-row select,html body .fx-page .rule-row textarea{width:100%;margin:0;background:#fff}
html body .fx-page .rule-row [data-remove-rule]{height:36px;padding:0 12px;color:#B91C1C}
html body .fx-page [data-add-rule]{align-self:flex-start;height:34px;padding:0 12px}
.fx-savebar{margin-top:4px}
.fx-savebar-left{display:flex;align-items:center;min-width:0;flex:1}
.fx-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--ink);margin:0;line-height:1.5}
.fx-check input{margin-top:3px}
.fx-check small{display:block;color:var(--muted);font-size:12px}
.fx-save-title{font-size:14px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-picker select{max-width:520px}
.fx-empty{padding:28px;border:1px dashed var(--line);border-radius:10px;text-align:center;color:var(--muted);font-size:13px;background:var(--sx-soft)}
#group-form-area{display:flex;flex-direction:column;gap:16px}
.fx-actions{display:flex;justify-content:flex-end;margin-top:12px}
html body .fx-page .fx-body .toolbar{display:flex;gap:10px;flex-wrap:wrap;padding:0;border:0}
html body .fx-page .fx-body h3{margin:4px 0 0;font-size:14px;font-weight:600}
html body .fx-page .fx-body>.muted,html body .fx-page .fx-body form>.muted{margin:0;font-size:13px}
html body .fx-page .fx-body .notice{margin:0}
html body .fx-page .bill-format-example{margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--sx-soft);font-size:13px;line-height:1.6;white-space:pre-wrap;max-height:420px;overflow:auto}
html body .fx-page .bill-template-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;margin:0}
html body .fx-page .bill-template-field textarea{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
html body .fx-page .bill-template-field small{font-weight:400;color:var(--muted);font-size:12px;word-break:break-all}
html body .fx-page .fx-body details{border:1px solid var(--line);border-radius:10px;padding:0 14px;background:#fff}
html body .fx-page .fx-body details summary{cursor:pointer;padding:12px 0;font-size:13px;font-weight:500}
html body .fx-page .fx-body details[open]{padding-bottom:12px}
html body .fx-page .module-toggles{display:flex;flex-wrap:wrap;gap:8px}
html body .fx-page .module-toggles label{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;margin:0;background:#fff;cursor:pointer}
html body .fx-page .module-toggles label:has(input:checked){border-color:#93C5FD;background:#EFF6FF;color:#1D4ED8}
html body .fx-page #broadcast-targets{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
html body .fx-page #broadcast-targets label{display:flex;gap:8px;align-items:center;font-size:13px}
html body .fx-page .fx-body>form>button,html body .fx-page .fx-body form>button.primary{align-self:flex-start;min-height:38px;padding:0 18px}
html body .fx-page #provider-form .form-grid,html body .fx-page #exchange-form .form-grid,html body .fx-page #admin-form .form-grid,html body .fx-page #bill-format-form>.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin:0}
html body .fx-page #provider-form label span{display:flex;gap:6px;align-items:center;font-weight:400;font-size:12px;color:var(--muted)}
html body .fx-page #bill-format-form>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1280px){.fx-groups,.fx-rules{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){html body .fx-grid,html body .fx-grid-2,html body .fx-page #provider-form .form-grid,html body .fx-page #exchange-form .form-grid,html body .fx-page #admin-form .form-grid,html body .fx-page #bill-format-form>.form-grid{grid-template-columns:minmax(0,1fr)}.fx-body{padding:14px}html body .fx-page .rule-row,html body .fx-page .rule-row[data-rule=auto_replies]{grid-template-columns:minmax(0,1fr)}html body .fx-page .rule-row[data-rule=auto_replies] .span-2{grid-column:auto}html body .fx-page .rule-row [data-remove-rule]{width:100%}.fx-savebar .dx-actions{width:100%}.fx-savebar .dx-actions button{flex:1;min-height:44px}html body .fx-page input,html body .fx-page select{min-height:44px}.fx-picker select{max-width:none}}
html body .fx-page #features-tabs{gap:28px;display:flex}
html body .fx-page .fx-body>button,html body .fx-page .fx-body form>button{align-self:flex-start;width:auto;min-height:36px;padding:0 16px}
html body .fx-page #features-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
html body .fx-page #features-tabs button{flex:none;white-space:nowrap}
@media (max-width:760px){html body .fx-page #features-tabs{gap:20px}.fx-group{padding:12px}}
html body .fx-page .fx-rules{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
html body .fx-page .fx-rules:has(>:only-child){grid-template-columns:minmax(0,1fr)}
html body .fx-page .fx-rules>.rule-list{grid-column:auto;min-width:0}
html body .fx-page .rule-row,html body .fx-page .rule-row[data-rule=auto_replies]{grid-template-columns:minmax(0,1fr) 140px;align-items:end}
html body .fx-page .rule-row[data-rule=buttons]>label{grid-column:1/-1}
html body .fx-page .rule-row[data-rule=auto_replies] .span-2{grid-column:1/-1}
html body .fx-page .rule-row [data-remove-rule]{grid-column:1/-1;justify-self:end;height:32px}
@media (max-width:1100px){html body .fx-page .fx-rules{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){html body .fx-page .rule-row[data-rule=auto_replies]{grid-template-columns:minmax(0,1fr)}html body .fx-page .rule-row [data-remove-rule]{justify-self:stretch}}
html body dialog.lg-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;padding:0}
html body .lg-dialog form{display:flex;flex-direction:column;max-height:calc(100vh - 48px)}
html body .lg-dialog .dialog-body{overflow:auto;flex:1;padding:18px 24px}
.lg-dtabs{padding:0 24px;gap:24px;flex:none}
.lg-dpane[hidden]{display:none!important}
.lg-dgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
html body .lg-dgrid>label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13px;font-weight:500;color:var(--ink);min-width:0}
html body .lg-dgrid>label small{font-weight:400;font-size:12px;color:var(--muted);line-height:1.5}
html body .lg-dgrid input,html body .lg-dgrid select,html body .lg-dgrid textarea{width:100%;margin:0;min-width:0}
.lg-dgrid .lg-dfull{grid-column:1/-1}
.lg-dnote{margin:0 0 12px;font-size:13px}
#lg-extra-status{margin:12px 0 0}
.lg-rules{display:flex;flex-direction:column;gap:10px}
.lg-rules:empty::before{content:"暂未添加按钮";display:block;padding:14px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px;text-align:center}
.lg-rule{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--sx-soft)}
html body .lg-rule label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);margin:0}
html body .lg-rule input{width:100%;margin:0;background:#fff}
html body .lg-remove{align-self:flex-end;height:30px;padding:0 12px;color:#B91C1C}
html body .lg-add{margin-top:10px;height:34px;padding:0 12px}
@media (max-width:760px){.lg-dgrid{grid-template-columns:minmax(0,1fr)}html body .lg-dialog .dialog-body{padding:14px 16px}.lg-dtabs{padding:0 16px;gap:18px;overflow-x:auto}html body .lg-dgrid input,html body .lg-dgrid select{min-height:44px}}
html body .lg-dialog .lg-remove{color:#B91C1C!important}
.lg-addon{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-bottom:14px;background:#fff}
.lg-addon-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:10px}
.lg-addon-head h3{margin:0;font-size:14px;font-weight:600;color:var(--ink)}
.lg-addon-head p{margin:4px 0 0;font-size:12px;line-height:1.6}
.lg-switch{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;white-space:nowrap;margin:0;flex:none}
#lg-sc-body.off .lg-sc-head,#lg-sc-body.off #lg-sc-tiers,#lg-sc-body.off #lg-sc-add,#lg-sc-body.off .lg-sc-msg{opacity:.5}
.lg-sc-head,.lg-sc-tier{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 64px 64px;gap:8px;align-items:center}
.lg-sc-head{font-size:12px;color:var(--muted);margin-bottom:6px}
#lg-sc-tiers{display:flex;flex-direction:column;gap:8px}
#lg-sc-tiers:empty::before{content:"暂无区间，点击下方添加";display:block;padding:12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px;text-align:center}
html body .lg-sc-tier input:not([type=checkbox]){width:100%;margin:0;min-width:0;height:36px}
html body .lg-sc-tier .lg-remove{height:34px;padding:0 8px;align-self:center}
html body .lg-sc-msg{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;font-size:13px;font-weight:500}
html body .lg-sc-msg textarea{width:100%;margin:0}
html body .lg-sc-msg small{font-weight:400;color:var(--muted);font-size:12px}
@media (max-width:760px){.lg-sc-head{display:none}.lg-sc-tier{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--sx-soft)}.lg-addon-head{flex-direction:column;gap:8px}}
html body .surcharge-tier{grid-template-columns:repeat(3,minmax(0,1fr)) 118px 64px}
html body select.surcharge-fee{margin:0;height:36px;padding:0 6px;font-size:12px;min-width:0;width:100%}
html body .lg-sc-head,html body .lg-sc-tier{grid-template-columns:repeat(3,minmax(0,1fr)) 118px 60px}
html body .lg-sc-tier select{margin:0;height:36px;padding:0 6px;font-size:12px;min-width:0;width:100%}
.lg-sc-help{margin:12px 0 0;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:#fff}
.lg-sc-help summary{cursor:pointer;padding:10px 0;font-size:13px;color:#2563EB}
.lg-sc-help p,.lg-sc-help ul{margin:0 0 8px;font-size:12px;color:#4B5563;line-height:1.7}
.lg-sc-help ul{padding-left:18px}
.lg-sc-legacy{margin-top:12px;padding:10px 12px;border:1px solid #FDE68A;background:#FFFBEB;border-radius:8px;font-size:12px;color:#92400E}
.lg-sc-legacy p{margin:0 0 6px}
.lg-sc-legacy label{display:flex;gap:6px;align-items:center;margin:0;font-size:12px}
@media (max-width:760px){html body .lg-sc-tier{grid-template-columns:repeat(3,minmax(0,1fr))}html body .lg-sc-tier select{grid-column:1/3}}
#bot-dialog.b97-module-only .dialog-body>:not(.module-toggles):not(#bot-error){display:none}
#bot-dialog.b97-module-only .module-toggles{margin:8px 0}
.lg-filterbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:0 0 20px;box-shadow:var(--shadow)}
.lg-fb-field{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:var(--muted)}
html body .lg-fb-field select{height:36px;margin:0;min-width:180px}
.lg-filterbar .dx-seg button{height:30px}
.lg-stats.ledger-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.lg-stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;min-width:0}
.lg-stat span{font-size:13px;color:var(--muted)}
.lg-stat strong{font-size:24px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.lg-stat small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-stat.pos strong,.lg-stat.bx-ok strong{color:#15803D}
.lg-stat.neg strong,.lg-stat.bx-bad strong{color:#B91C1C}
.lg-stat.bx-warn strong{color:#B45309}
.lg-title h3{margin:0;font-size:15px;font-weight:600;color:var(--ink)}
.lg-title p{margin:3px 0 0;font-size:12px;color:var(--muted)}
.lg-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body .lg-tools select{height:36px;margin:0}
.lg-batchbar{display:flex;align-items:center;gap:10px;padding:10px 20px;background:#EFF6FF;border-bottom:1px solid #BFDBFE;font-size:13px;color:#1E3A8A}
.lg-batchbar[hidden]{display:none}
.lg-batchbar button{height:32px;padding:0 12px;font-size:13px}
html body .lg-table th.lg-chk,html body .lg-table td.lg-chk{width:36px;padding-right:0}
html body .lg-table .lg-r{text-align:right}
html body .lg-gtable td{vertical-align:middle}
html body .lg-gtable tr.lg-sel td{background:#F5F9FF}
.lg-gname{font-weight:600}
.lg-gtable .lg-members{margin-top:4px;display:inline-block}
.lg-gtable .lg-members summary{font-size:12px}
.lg-ops{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.lg-ops i,.bx-ops i{font-style:normal;color:#CBD5E1}
html body .lg-ops .text-link,html body .bx-ops .text-link{background:none;border:0;padding:0;height:auto;font-size:13px;color:#2563EB;cursor:pointer}
html body .lg-sdialog{width:min(820px,calc(100vw - 32px));max-width:820px}
html body .lg-bdialog{width:min(560px,calc(100vw - 32px));max-width:560px}
html body .lg-sdialog .dialog-body,html body .lg-bdialog .dialog-body{padding:18px 24px}
@media (max-width:1400px){.lg-stats.ledger-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.lg-stats.ledger-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-filterbar{padding:12px}.lg-fb-field{width:100%}html body .lg-fb-field select{flex:1;min-width:0}.lg-filterbar .dx-seg{width:100%}.lg-filterbar .dx-seg button{flex:1;padding:0 4px}.lg-tools{width:100%}.lg-tools .dx-seg{width:100%}.lg-tools .dx-seg button{flex:1}.lg-search{width:100%}html body .lg-table td.lg-chk{position:absolute;right:12px;top:12px;padding:0;min-height:0}html body .lg-table td.lg-chk::before{display:none}html body .lg-gtable tr{position:relative}html body .lg-table .lg-r{text-align:right}.lg-batchbar{flex-wrap:wrap;padding:10px 14px}}
.bx-page{display:flex;flex-direction:column;gap:20px}
.bx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.bx-stats .lg-stat strong{font-size:28px}
.bx-bot{display:flex;align-items:center;gap:12px;min-width:0}
.bx-avatar{flex:none;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;background:#EFF6FF;color:#1D4ED8}
.bx-avatar.t1{background:#FFF7ED;color:#C2410C}
.bx-avatar.t2{background:#F5F3FF;color:#6D28D9}
.bx-avatar.t3{background:#ECFDF5;color:#047857}
html body .bx-name{background:none;border:0;padding:0;height:auto;font:inherit;font-weight:600;color:var(--ink);cursor:pointer;text-align:left}
html body .bx-name:hover{color:#2563EB}
html body .bx-mods{background:none;border:0;padding:0;height:auto;display:flex;flex-wrap:wrap;gap:6px;cursor:pointer;text-align:left}
.bx-chip{display:inline-block;padding:0 8px;line-height:24px;border-radius:6px;background:#F3F4F6;color:#374151;font-size:12px;white-space:nowrap}
html body .bx-mods:hover .bx-chip{background:#E5E7EB}
.bx-exp{white-space:nowrap}
.bx-exp.warn{color:#B45309}
.bx-exp.bad{color:#B91C1C}
.bx-ops{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;position:relative}
html body .bx-ops .bx-danger,html body .bx-more .bx-danger{color:#B91C1C}
.bx-more{position:relative}
.bx-more summary{list-style:none;cursor:pointer;color:#6B7280;padding:0 4px;font-size:16px;line-height:1}
.bx-more summary::-webkit-details-marker{display:none}
.bx-more>div{position:absolute;right:0;top:22px;z-index:20;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.14);padding:6px;min-width:200px;display:flex;flex-direction:column;text-align:left;white-space:normal}
html body .bx-more>div button{background:none;border:0;height:34px;padding:0 10px;text-align:left;border-radius:6px;font-size:13px;color:var(--ink);cursor:pointer}
html body .bx-more>div button:hover{background:#F3F4F6}
.bx-more p{margin:4px 10px 6px;font-size:12px;line-height:1.7}
body[data-page=bots] #global-bot{display:none}
@media (max-width:1100px){.bx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.bx-ops{flex-wrap:wrap;justify-content:flex-end;white-space:normal}.bx-mods{justify-content:flex-end}}
html body .lg-gtable td:first-child{min-width:0}
html body .lg-gtable td:nth-child(2){min-width:220px}
html body .lg-gtable .lg-ops{flex-direction:row;align-items:center}
.lg-fb-field span{white-space:nowrap}
.lg-stats .lg-stat strong{font-size:clamp(17px,1.35vw,22px)}
html body .lg-tools select{width:auto;min-width:130px}
html body .lg-tools .dx-search{width:260px}
html body .bx-table td{vertical-align:middle}
html body .bx-more,html body .bx-more[open]{border:0;padding:0;background:none}
html body .bx-more summary{border:0}
html body .lg-gtable .lg-members{border:0}
@media (max-width:760px){html body .lg-gtable td:nth-child(2){min-width:0}html body .lg-tools select,html body .lg-tools .dx-search{width:100%}}
@media (max-width:760px){html body .lg-gtable td:nth-child(2){display:block;text-align:left;padding:0 36px 8px 0;min-height:0}html body .lg-gtable td:nth-child(2)::before{display:none}html body .lg-gtable td:nth-child(2) .lg-members summary{text-align:left}html body .lg-gtable td.lg-chk{top:14px;right:14px}html body .lg-gtable td.lg-chk input{width:20px;height:20px;min-height:0}}
.ac-chips{display:flex;flex-wrap:wrap;gap:6px}
html body .ac-table tr.ac-off td{background:#FAFAFA;color:#6B7280}
.ac-form{display:flex;flex-direction:column;gap:0}
.ac-mods{display:flex;flex-wrap:wrap;gap:8px}
.ac-mod{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;margin:0;background:#fff;cursor:pointer}
.ac-mod:has(input:checked){border-color:#93C5FD;background:#EFF6FF;color:#1D4ED8}
.ac-save{display:flex;justify-content:flex-end;margin:0 0 14px}
.ac-save button{min-height:38px;padding:0 18px}
.ac-meta{margin:0 0 12px;font-size:13px;color:#4B5563}
.ac-row{display:flex;align-items:flex-end;gap:10px;margin-top:10px;flex-wrap:wrap}
html body .ac-row label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13px;font-weight:500;flex:1;min-width:220px}
html body .ac-row input,html body .ac-row select{margin:0;width:100%}
.ac-row button{height:38px;padding:0 14px}
.ac-renew{display:inline-flex;gap:8px;align-items:center}
html body .ac-renew select{margin:0;height:34px;width:auto}
.ac-renew button{height:34px;padding:0 12px}
.ac-empty{margin:16px 20px 20px}
html body .bx-page .dx-help{margin:0}
@media (max-width:760px){.ac-renew{flex-wrap:wrap;justify-content:flex-end}.ac-save button{width:100%;min-height:44px}.ac-row button{width:100%;min-height:44px}}
@media (max-width:760px){.ac-chips{justify-content:flex-end}}
html body[data-tenant="true"]{background:var(--sx-bg,#F6F7F9);color:var(--ink)}
html body[data-tenant="true"] .sidebar{background:#FFFFFF;color:var(--ink);border-right:1px solid var(--line)}
html body[data-tenant="true"] .sidebar .wordmark,html body[data-tenant="true"] .sidebar .wordmark span{color:var(--ink)}
html body[data-tenant="true"] .sidebar .wordmark small{color:var(--muted)}
html body[data-tenant="true"] .sidebar .nav-item{color:#4B5563;min-height:42px;padding:10px 12px;border-radius:8px}
html body[data-tenant="true"] .sidebar .nav-item:hover{background:#F3F4F6;color:var(--ink)}
html body[data-tenant="true"] .sidebar .nav-item.active{background:#EEF3FF;color:#1D4ED8;font-weight:600}
html body[data-tenant="true"] .sidebar-footer,html body[data-tenant="true"] .sidebar-footer strong{color:var(--ink)}
html body[data-tenant="true"] .sidebar-footer small{color:var(--muted)}
html body[data-tenant="true"] table td small{color:var(--muted);max-width:none}
html body[data-tenant="true"] #main{padding:28px 32px}
html body[data-tenant="true"] .page-heading .page-actions{display:flex;gap:10px;align-items:center}
html body[data-tenant="true"] .u-btn{display:inline-flex;align-items:center;height:38px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-decoration:none;font-size:13px;font-weight:500}
html body[data-tenant="true"] #u-add-bot{height:38px;padding:0 16px}
.u-count{color:var(--muted);font-weight:400;font-size:12px;margin-left:2px}
.dx-seg button.on .u-count{color:#4B5563}
.u-filterbar{margin:0}
.u-narrow{max-width:520px}
.u-back{align-self:flex-start;background:none;border:0;padding:0;font-size:13px;color:#2563EB;cursor:pointer}
.u-edit-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:start}
html body .u-form .span-2{grid-column:1/-1}
html body .u-form label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13px;font-weight:500;color:var(--ink)}
html body .u-form label>span{display:flex;align-items:center;gap:6px;font-weight:500}
html body .u-form label small{font-weight:400;color:var(--muted);font-size:12px}
html body .u-form input:not([type=checkbox]),html body .u-form textarea{width:100%;margin:0}
html body .u-form textarea{min-height:90px}
.u-mods{gap:10px!important}
.u-mod{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;text-decoration:none;color:var(--ink)}
.u-mod.off{background:var(--sx-soft);opacity:.75}
html body .u-mod-open{background:none;border:0;padding:0;height:auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;cursor:pointer;font:inherit;color:var(--ink);flex:1;min-width:0}
.u-mod-open:disabled{cursor:not-allowed}
.u-mod strong{font-size:14px;font-weight:600}
.u-mod small{font-size:12px;color:var(--muted)}
.u-mod-open:not(:disabled):hover strong,.u-mod-link:hover strong{color:#2563EB}
.u-mod-link{flex-direction:column;align-items:flex-start;gap:2px}
.u-switch{margin:0;flex:none}
@media (max-width:1100px){.u-edit-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){html body[data-tenant="true"] #main{padding:18px 14px}html body[data-tenant="true"] .page-heading .page-actions{width:100%}html body[data-tenant="true"] .page-heading .page-actions>*{flex:1;justify-content:center}}
.u-trial{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-left:4px solid #2563EB}
.u-trial.ok{border-left-color:#16A34A}
.u-trial.bad{border-left-color:#DC2626}
.u-trial h3{margin:0;font-size:15px;font-weight:600}
.u-trial p{margin:4px 0 0;font-size:13px;color:#4B5563}
.u-trial form{margin:0;flex:none}
.u-trial button{height:38px;padding:0 18px}
.u-modgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.u-modcard{padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.u-modcard.off{background:var(--sx-soft)}
.u-modcard-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.u-modicon{width:36px;height:36px;border-radius:10px;background:#EFF6FF;color:#1D4ED8;display:flex;align-items:center;justify-content:center;font-size:16px}
.u-modcard.off .u-modicon{background:#F3F4F6;color:#6B7280}
.u-modcard h3{margin:0;font-size:15px;font-weight:600}
.u-modcard p{margin:0;font-size:13px;color:#4B5563;line-height:1.6;flex:1}
.u-modcard footer{margin-top:10px;padding:0;border:0;background:none}
.u-modcard footer .text-link{font-size:13px}
@media (max-width:760px){.u-trial{flex-direction:column;align-items:stretch}.u-trial button{width:100%;min-height:44px}}
html body .u-form label>span{justify-content:flex-start;width:auto}
html body .u-form label>span input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:none}
@media (max-width:760px){html body .lg-card .table-wrap::after,html body .lg-sdialog .table-wrap::after{content:none;display:none}.bx-ops i,.lg-ops i{display:none}.bx-ops,.lg-ops{gap:4px 14px}}
html body select:not([multiple]):not([size]){-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#FFFFFF;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:12px;padding-right:30px;min-height:36px;line-height:1.3}
html body select:disabled{background-color:#F3F4F6;color:#9CA3AF}
html body select::-ms-expand{display:none}
html body input[type=number]{-moz-appearance:textfield;appearance:textfield}
html body input[type=number]::-webkit-inner-spin-button,html body input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body[data-tenant="true"] #features-tabs{margin:0;gap:28px}
html body .form-grid select,html body .fx-grid select,html body .lg-dgrid select,html body .dx-field select,html body .ac-row select{min-height:40px;height:40px}
.od-filter{border-bottom:1px solid var(--line);padding-top:10px;padding-bottom:10px;background:#FCFCFD}
.od-seg{flex-wrap:wrap}
.od-bulk{position:relative}
.od-bulk summary{list-style:none;display:inline-flex;align-items:center;height:36px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px;font-weight:500;cursor:pointer;color:var(--ink)}
.od-bulk summary::-webkit-details-marker{display:none}
.od-bulk>div{position:absolute;right:0;top:42px;z-index:30;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.14);padding:6px;width:320px;display:flex;flex-direction:column;gap:2px}
html body .od-bulk>div button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;height:auto;padding:10px 12px;background:none;border:0;border-radius:8px;text-align:left;cursor:pointer;color:var(--ink)}
html body .od-bulk>div button:hover{background:#F3F4F6}
.od-bulk strong{font-size:13px;font-weight:600}
.od-bulk small{font-size:12px;color:var(--muted);line-height:1.5}
html body .od-bulk .od-danger strong{color:#B91C1C}
html body .od-table td{vertical-align:middle}
.od-timeline{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--line);display:flex;flex-direction:column;gap:12px}
.od-timeline li{position:relative;display:flex;flex-direction:column;gap:2px;font-size:13px}
.od-timeline li::before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #93C5FD}
.od-timeline time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.od-timeline span{color:#4B5563;word-break:break-all}
@media (max-width:760px){.od-bulk>div{width:calc(100vw - 48px)}.od-seg button{flex:1 0 30%}}
html body .cw-addr{display:flex;align-items:center;gap:10px;min-width:0}
html body .cw-addr>div{display:flex;flex-direction:column;min-width:0}
html body .cw-addr strong{font-weight:600;color:#111827;line-height:1.3}
html body .cw-addr code,html body .cw-table code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#6B7280;background:none;padding:0}
html body .cw-copy{font-size:12px;align-self:flex-start;padding:0;min-height:0}
html body .cw-chain{flex:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:24px;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:.02em}
html body .cw-chain.cw-tron{background:#FEE2E2;color:#B91C1C}
html body .cw-chain.cw-eth{background:#E0E7FF;color:#3730A3}
html body .cw-target{display:inline-block;margin-right:6px;padding:0 6px;line-height:20px;border-radius:5px;background:#F3F4F6;color:#4B5563;font-size:12px}
html body .cw-in{color:#047857;font-weight:600;white-space:nowrap}
html body .cw-in small{color:#6B7280;font-weight:400}
html body .cw-notice{margin:0 0 12px;padding:10px 14px;font-size:13px;line-height:1.6}
html body .cw-targets{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
html body .cw-chain-seg{margin-top:6px}
html body .cw-clear{display:flex;align-items:center;gap:6px;font-size:12px;color:#6B7280;margin-top:4px;font-weight:400}
html body #cw-form .dx-lbl{display:block;font-size:13px;font-weight:500;color:#374151}
html body #cw-form #cw-assets{margin-top:6px}
html body .cw-table td{vertical-align:middle}
html body #cw-form label.ac-mod{display:inline-flex;flex-direction:row;align-items:center;gap:8px;width:auto;min-height:38px;padding:8px 14px;white-space:nowrap;font-weight:400;color:#374151}
html body #cw-form label.ac-mod:has(input:checked){color:#1D4ED8}
html body #cw-form label.ac-mod input{width:16px;height:16px;min-height:0;margin:0;flex:none;padding:0}
html body #cw-form label.ac-mod small{display:inline;margin:0 0 0 4px}
html body #cw-form label.ac-mod span{display:inline}
@media (max-width:640px){html body #cw-form label.ac-mod{white-space:normal}}
html body .cw-clear input{width:16px;height:16px;min-height:0;margin:0;padding:0;flex:none}
html body .cw-notice+.cw-notice{margin-top:-4px}
html body dialog.u-locked{width:min(420px,calc(100vw - 32px));padding:0;border:0;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.25)}
html body dialog.u-locked::backdrop{background:rgba(15,23,42,.45)}
html body .u-locked-body{padding:28px 28px 22px;text-align:center}
html body .u-locked-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:#FEF3C7;font-size:24px;margin-bottom:12px}
html body .u-locked-body h2{margin:0 0 8px;font-size:18px;font-weight:600;color:#111827}
html body .u-locked-body p{margin:0 0 6px;font-size:14px;line-height:1.6;color:#374151}
html body .u-locked-body p.muted{color:#6B7280;font-size:13px}
html body .u-locked-actions{margin-top:18px;display:flex;justify-content:center}
html body .u-locked-actions button{min-width:120px}
html body[data-tenant="true"] .sidebar .nav-item[data-locked]::after{content:'未开通';margin-left:auto;padding:0 6px;line-height:18px;border-radius:5px;background:#F3F4F6;color:#9CA3AF;font-size:11px}
html body[data-tenant="true"] .sidebar .nav-item[data-locked]{opacity:.75}
html body .cw-keys{display:flex;flex-direction:column;gap:18px}
html body .cw-key-chain h4{margin:0 0 8px;font-size:13px;font-weight:600;color:#6B7280}
html body .cw-key-chain{display:flex;flex-direction:column;gap:10px}
html body .cw-key{border:1px solid var(--line,#E5E7EB);border-radius:10px;padding:12px 14px;background:#fff}
html body .cw-key-head{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
html body .cw-key-head>div{display:flex;align-items:center;gap:8px}
html body .cw-key-head strong{font-size:14px;color:#111827}
html body .cw-key-head small{font-size:12px}
html body .cw-key-list{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:4px}
html body .cw-key-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;padding:4px 0;border-bottom:1px dashed #F3F4F6}
html body .cw-key-list li:last-child{border-bottom:0}
html body .cw-key-list code{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#374151}
html body .cw-key-add{display:flex;gap:8px}
html body .cw-key-add input{flex:1;min-width:0}
html body .cw-key-add button{flex:none}
@media (min-width:1100px){html body .chainwatch-page .dx-cards{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}}
html body dialog .dialog-header .icon-button,html body dialog [data-close]{outline:none;border-radius:8px}
html body dialog .dialog-header .icon-button:focus,html body dialog [data-close]:focus{outline:none;box-shadow:none}
html body dialog .dialog-header .icon-button:focus-visible,html body dialog [data-close]:focus-visible{outline:none;box-shadow:none;background:#F3F4F6}
html body dialog .dialog-header .icon-button:hover,html body dialog [data-close]:hover{background:#F3F4F6}
html body dialog.bm-dialog{width:min(1080px,calc(100vw - 32px))}
html body .bm-grid{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:20px;align-items:start}
html body .bm-preview{position:sticky;top:0;background:#E7F3E7;border-radius:14px;padding:14px}
html body .bm-phone-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;color:#374151;margin-bottom:10px}
html body .bm-kbd{display:flex;flex-direction:column;gap:6px;background:#D9E8D9;border-radius:12px;padding:6px}
html body .bm-krow{display:flex;gap:6px}
html body .bm-key{flex:1 1 0;min-width:0;min-height:40px;padding:6px 8px;border:0;border-radius:8px;background:#F3F4F6;color:#111827;font-size:13px;line-height:1.3;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 0 rgba(0,0,0,.08)}
html body .bm-key.on{background:#DBEAFE;color:#1D4ED8;box-shadow:0 0 0 2px #93C5FD}
html body .bm-tip{font-size:12px;margin:10px 2px 0;line-height:1.6}
html body .bm-rows{display:flex;flex-direction:column;gap:10px}
html body .bm-row{border:1px solid var(--line,#E5E7EB);border-radius:10px;padding:10px 12px;background:#fff}
html body .bm-row-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px}
html body .bm-row-ops{margin-left:auto;display:flex;gap:10px;align-items:center}
html body .bm-row-ops .text-link{padding:0;min-height:0;font-size:12px}
html body .bm-row-ops .text-link:disabled{color:#D1D5DB;cursor:default}
html body .bm-chips{display:flex;flex-wrap:wrap;gap:8px}
html body .bm-chip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:220px;padding:6px 10px;border:1px solid var(--line,#E5E7EB);border-radius:8px;background:#F9FAFB;cursor:pointer;text-align:left}
html body .bm-chip span{font-size:13px;color:#111827;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .bm-chip small{font-size:11px;color:#6B7280}
html body .bm-chip.on{border-color:#93C5FD;background:#EFF6FF}
html body .bm-add{padding:6px 12px;border:1px dashed #CBD5E1;border-radius:8px;background:#fff;color:#2563EB;font-size:13px;cursor:pointer}
html body .bm-add-row{align-self:flex-start}
html body .bm-panel{margin-top:14px;border:1px solid #BFDBFE;border-radius:10px;padding:14px;background:#F8FBFF}
html body .bm-panel.bm-empty{border-style:dashed;border-color:#E5E7EB;background:#fff;text-align:center;font-size:13px}
html body .bm-panel-head{display:flex;align-items:center;margin-bottom:10px;font-size:14px}
html body .bm-lbl{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:6px}
html body .bm-link{display:flex;gap:8px;align-items:center;margin-bottom:6px}
html body .bm-link input:first-child{flex:0 0 150px}
html body .bm-link input:nth-child(2){flex:1;min-width:0}
html body .bm-note{font-size:13px;margin:0}
html body .bm-foot{display:flex;align-items:center;gap:10px}
html body .bm-foot-gap{flex:1}
html body .bm-entry{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:12px 0;padding:12px 14px;border:1px solid var(--line,#E5E7EB);border-radius:10px;background:#F9FAFB}
html body .bm-entry>div{display:flex;flex-direction:column;gap:2px}
html body .bm-entry[hidden]{display:none}
@media (max-width:820px){html body .bm-grid{grid-template-columns:1fr}html body .bm-preview{position:static}html body .bm-link{flex-wrap:wrap}html body .bm-link input:first-child{flex:1 1 100%}}
html body .bm-grid{grid-template-columns:minmax(0,440px) minmax(0,1fr)}
html body .bm-left{position:sticky;top:0;display:flex;flex-direction:column;gap:0}
html body .bm-preview{position:static}
@media (max-width:820px){html body .bm-left{position:static}}

/* 费率区间 */
html body #lg-feetiers{margin-top:16px}
html body .lg-ft-head,html body .lg-ft-tier{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 60px;gap:8px;align-items:center}
.lg-ft-head{font-size:12px;color:var(--muted);margin-bottom:6px}
#lg-ft-tiers{display:flex;flex-direction:column;gap:8px}
#lg-ft-tiers:empty::before{content:"暂无区间，点击下方添加";display:block;padding:12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px;text-align:center}
html body .lg-ft-tier input:not([type=checkbox]){width:100%;margin:0;min-width:0;height:36px}
html body .lg-ft-tier .lg-remove{height:34px;padding:0 8px;align-self:center}
#lg-ft-body.off .lg-ft-head,#lg-ft-body.off #lg-ft-tiers,#lg-ft-body.off #lg-ft-add{opacity:.5}
@media (max-width:760px){html body .lg-ft-head{display:none}html body .lg-ft-tier{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--sx-soft)}html body .lg-ft-tier .lg-remove{grid-column:1/-1}}
