:root{--primary:#409eff;--success:#67c23a;--warning:#e6a23c;--danger:#f56c6c;--text:#303133;--regular:#606266;--muted:#909399;--line:#ebeef5;--bg:#f5f7fa;--shadow:0 2px 12px rgba(0,0,0,.10)}
.login-required-banner{display:none;position:fixed;left:50%;top:80px;z-index:18;width:min(620px,calc(100vw - 24px));padding:9px 12px;transform:translateX(-50%);border:1px solid #e6a23c;border-radius:4px;background:#fdf6ec;color:#b88230;font-size:13px;font-weight:700;text-align:center;box-shadow:0 2px 7px rgba(0,0,0,.08);pointer-events:none}
.cy-login-locked .login-required-banner{display:block}.cy-login-locked [data-cy-login-locked="true"]{cursor:not-allowed!important;opacity:.52!important;filter:grayscale(.18)}
[hidden]{display:none!important}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0}body{overflow:hidden;background:var(--bg);color:var(--text);font:14px/1.45 Arial,"Microsoft YaHei","PingFang SC",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:var(--regular);border-radius:3px;padding:7px 12px;line-height:1;transition:.15s}button:hover{color:var(--primary);border-color:#a0cfff}button.primary{background:var(--primary);border-color:var(--primary);color:#fff}button.success{background:var(--success);border-color:var(--success);color:#fff}button.warning{background:var(--warning);border-color:var(--warning);color:#fff}button.danger{background:var(--danger);border-color:var(--danger);color:#fff}.wide{width:100%;height:32px}.page{width:100%;height:100vh;overflow-y:auto;overflow-x:hidden;background:#fff;scrollbar-width:thin}.page::-webkit-scrollbar{width:4px;height:4px}.page::-webkit-scrollbar-thumb{background:#999;border-radius:3px}.site-header,.top-box-list{width:calc(100% + 10px)}.site-header{height:74px;position:relative;background:#fff;box-shadow:0 2px 8px #00000017;z-index:3}.reference-title{position:absolute;left:23%;top:16px;font-size:28.8px;line-height:42px;font-weight:800;letter-spacing:3px;color:#333;white-space:nowrap}.header-notice{position:absolute;left:41.7%;top:20px;max-width:460px;color:#dda43b;font-size:10px;line-height:16px}.header-meta{position:absolute;right:21px;top:2px;display:flex;align-items:flex-end;flex-direction:column;gap:4px;font-size:10px;color:#606266}.header-meta b{font-weight:400;background:#f2f3f5;padding:1px 6px;border-radius:3px}.header-meta button{background:var(--primary);border-color:var(--primary);color:#fff;padding:5px 10px;font-size:10px}
.top-box-list{display:grid;grid-template-columns:calc(25% - 7.5px) 1fr;gap:10px;align-items:start;padding-top:8px;min-width:1000px}.left-column{display:flex;flex-direction:column;gap:8px;min-width:0}.right-box{display:flex;flex-direction:column;gap:0;min-width:0}.right-top-box{height:552px;display:grid;grid-template-columns:240px minmax(0,1fr);gap:8px}.top-row-jump-settings,.rule-panels-area{height:552px}.right-bottom-box{height:269px;display:grid;grid-template-columns:calc(33.333% - 2px) minmax(0,1fr);gap:8px}.el-card{background:#fff;border:1px solid var(--line);border-radius:4px;box-shadow:var(--shadow);overflow:hidden}.el-card__header{height:49px;padding:0 16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);font-size:14px}.el-card__header>span:first-child{margin-right:auto}.el-card__body{padding:14px 16px}.header-actions{display:flex;align-items:center;gap:10px}.header-actions button{font-size:10.4px;padding:6px 10px}.data-card{height:334px}.continuous-card{height:326px}.parameter-card{min-height:790px;height:auto}.odd-stats-card{min-height:260px}.logs-card{min-height:330px}.jump-settings-card{height:544px;margin-top:0}.block-data-card,.order-data-card{height:262px}.stat-rows{padding-top:8px}.stat-rows>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;border-bottom:1px solid #f0f1f4;color:var(--regular);font-size:12px}.stat-rows>div:last-child{border-bottom:0}.stat-rows b{font-weight:400;color:#303133}.balance-row b{min-width:58px;text-align:right}.info-box{border:1px solid;border-radius:6px;padding:12px;margin-bottom:12px;font-size:11px}.blue-box{background:#ecf8ff;border-color:#8ed8f8}.blue-box strong{display:block;margin-bottom:9px}.blue-box label{display:flex;align-items:center;gap:6px;margin:8px 0}.blue-box small{display:block;color:#637481}.number-control{display:inline-flex;height:28px}.number-control button{width:25px;padding:0;border-radius:0;background:#f5f7fa;color:#c0c4cc}.number-control input{width:48px;text-align:center;border:1px solid #dcdfe6;border-left:0;border-right:0;outline:0}.empty-warning{height:50px;border:1px solid #f3c35b;background:#fdf8ef;color:#a8a8a8;border-radius:5px;display:grid;place-items:center;font-size:11px;margin-bottom:12px}.note-box{background:#ecf5ff;border-color:#c6e2ff;color:#6e7f94;line-height:1.8}.parameter-body{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;font-size:12px}.parameter-body h4{grid-column:1/-1;margin:0 -16px;padding:9px 16px;background:#fafafa;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px}.parameter-body h4:first-child{margin-top:-14px;border-top:0}.parameter-body>label{display:flex;flex-direction:column;gap:5px;color:var(--regular)}.parameter-body select,.parameter-body input,.extension-content input,.extension-content select,.extension-content textarea,.strategy-modal-panel select{height:32px;border:1px solid #dcdfe6;border-radius:3px;padding:0 8px;background:#fff;color:#606266}.parameter-body .inline-switch{grid-column:1/-1;flex-direction:row;align-items:center;gap:10px}.radio-row{grid-column:1/-1;display:flex;align-items:center;gap:16px;color:#606266;min-height:30px}.radio-row>span{min-width:92px}.radio-row label{display:flex;align-items:center;gap:4px}.parameter-body>.wide{grid-column:1/-1;margin-top:5px}.compact>div{min-height:31px}.logs-card pre{margin:0;padding:12px 16px;max-height:280px;overflow:auto;white-space:pre-wrap;font:11px/1.8 Consolas,monospace;color:#606266}
.jump-body{padding:14px 16px;font-size:11px}.jump-body>.primary{margin-bottom:12px}.enabled-strategy-count{display:inline-block;margin:0 0 12px 6px;padding:3px 6px;border-radius:3px;background:#f0f9eb;color:#67c23a;font-size:9px}.recommend-title{border-left:2px solid var(--danger);background:#fef0f0;color:var(--danger);padding:8px;margin:0 0 8px}.recommended-list{max-height:130px;overflow:auto;padding:0 8px}.recommended-item{display:flex;align-items:center;gap:7px;height:31px;border-bottom:1px solid #f0f1f4;color:#aaa}.recommended-item.selected span{border-color:#c2e7b0;background:#f0f9eb;color:#67c23a}.recommended-item span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#f5f7fa;border:1px solid #e9ebef;text-align:center;border-radius:3px}.recommended-item input{accent-color:var(--primary)}.jump-group{border-top:1px solid var(--line);padding:10px 0 6px}.jump-group strong{display:block;margin-bottom:8px;font-size:11px}.jump-group label{display:flex;align-items:center;justify-content:space-between;margin:7px 0;color:#606266}.jump-group .number-control input{width:40px}.rule-panels-area{position:relative;background:#fff}.empty-strategy{padding-top:43px;text-align:center;color:#909399;font-size:12px}.empty-icon{font-size:45px;line-height:1;color:#eef0f5}.empty-strategy button{margin-top:9px;font-size:10px}.order-data-card .el-card__header{padding-right:16px}.order-header{display:flex;align-items:center;gap:13px;min-width:0;font-size:10px;color:#909399;white-space:nowrap}.order-header .title{font-size:14px;color:#303133}.order-header b{font-weight:500;color:#409eff}.order-header span:nth-last-child(-n+2) b{color:#67c23a}.order-data-card .header-actions{margin-left:auto}.order-data-card select{height:27px;border:1px solid #dcdfe6;color:#909399;font-size:10px}.mini-switch{display:flex;align-items:center;gap:5px;font-size:10px}.mini-switch input{accent-color:#409eff}.table-wrap{height:calc(100% - 49px);overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:10px}th,td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;color:#606266}th{background:#fafafa;color:#909399;font-weight:500;position:sticky;top:0}.empty-cell{text-align:center;color:#c0c4cc;height:120px}.result-tag{display:inline-block;padding:2px 5px;border-radius:3px;background:#ecf5ff;color:#409eff}.profit-plus{color:#67c23a}.profit-minus{color:#f56c6c}
.modal{position:fixed;inset:0;display:none;z-index:50}.modal.open{display:block}.modal-backdrop{position:absolute;inset:0;background:#0007}.modal-panel{position:relative;margin:4vh auto;background:#fff;border-radius:4px;box-shadow:0 18px 50px #0004;display:flex;flex-direction:column;max-height:92vh}.modal-panel>header,.modal-panel>footer{min-height:52px;padding:0 18px;display:flex;align-items:center;border-bottom:1px solid var(--line)}.modal-panel>footer{justify-content:flex-end;gap:8px;border-top:1px solid var(--line);border-bottom:0}.modal-panel h2{font-size:16px;font-weight:500;margin:0}.icon-close{margin-left:auto;border:0;font-size:22px;padding:4px;background:transparent}.modal-scroll{overflow:auto;padding:16px}.strategy-modal-panel{width:min(760px,94vw)}.strategy-toolbar{display:flex;align-items:end;gap:8px}.strategy-toolbar label{display:flex;flex-direction:column;gap:5px;flex:1}.strategy-config{margin-top:12px;border:1px solid var(--line);padding:14px}.config-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.setting-line{display:flex;align-items:center;gap:18px;min-height:37px;border-top:1px solid #f1f2f5}.setting-line>span{min-width:160px}.strategy-help{margin:7px 0;padding:8px 10px;background:#ecf5ff;color:#6380a0;font-size:11px}.sequence-list{max-height:320px;overflow:auto;border:1px solid var(--line);padding:8px}.sequence-row{display:flex;align-items:flex-start;gap:7px;border-bottom:1px solid #f0f1f4;padding:8px 0}.sequence-row>strong{width:60px}.sequence-tokens{display:flex;gap:4px;flex-wrap:wrap;flex:1}.sequence-token{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;background:#ecf5ff;color:#409eff;border-radius:3px}.sequence-token button{border:0;background:transparent;padding:0;color:#f56c6c}.sequence-actions button{padding:5px 7px}.plan-buttons{display:flex;gap:8px}.plan-buttons button.active{background:#409eff;color:#fff;border-color:#409eff}.plan-description,.current-mode{padding:9px;background:#f5f7fa;color:#606266;margin-top:8px}.extension-panel{width:min(900px,95vw)}.extension-tabs{display:flex;gap:4px;padding:10px 16px;border-bottom:1px solid var(--line);overflow:auto}.extension-tabs button.active{background:#ecf5ff;color:#409eff;border-color:#b3d8ff}.extension-content{min-height:450px;padding:20px;overflow:auto}.ext-view{display:none}.ext-view.active{display:block}.ext-view h3{margin-top:0}.ext-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.ext-form label{display:flex;flex-direction:column;gap:5px}.ext-form textarea{min-height:80px;padding:8px;resize:vertical}.ext-form button{align-self:end;height:32px}.ext-actions{display:flex;gap:8px}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}.kpi-grid article{border:1px solid var(--line);padding:14px}.kpi-grid span,.kpi-grid b{display:block}.kpi-grid b{font-size:22px}.record-list{margin-top:16px;border-top:1px solid var(--line)}.record-item{padding:10px;border-bottom:1px solid var(--line)}.record-item small{color:#909399}.admin-split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:#303133;color:#fff;padding:10px 15px;border-radius:4px;opacity:0;transform:translateY(15px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:none}.toast.error{background:#f56c6c}
.compact-select{max-width:155px;height:27px;border:1px solid #dcdfe6;border-radius:3px;color:#606266;font-size:10px;background:#fff}.grow-input{height:32px;flex:1;border:1px solid #dcdfe6;border-radius:3px;padding:0 8px}.step-table{max-height:220px;overflow:auto;border:1px solid var(--line);margin-bottom:8px}.step-table input,.step-table select{width:66px;height:27px;border:1px solid #dcdfe6;border-radius:3px;padding:0 4px}.step-table th,.step-table td{padding:6px}.step-table button{padding:5px 7px}.target-manager{display:grid;grid-template-columns:1fr 1fr;gap:10px}.target-card{border:1px solid var(--line);border-radius:4px;padding:10px}.target-card.running{border-left:4px solid var(--success)}.target-card.paused{border-left:4px solid var(--warning)}.target-card.stopped{border-left:4px solid var(--danger)}.target-card.dormant{border-left:4px solid var(--primary)}.target-card header{display:flex;align-items:center;gap:8px}.target-card header b{margin-right:auto}.target-card small{display:block;color:#909399;margin:6px 0}.target-card .target-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#f5f7fa;padding:7px;margin:7px 0;font-size:11px}.target-card .target-actions{display:flex;gap:5px;flex-wrap:wrap}.target-card button{font-size:10px;padding:6px 8px}
@media(max-width:991px){body{overflow:auto}.page{height:auto;min-height:100vh}.site-header{height:78px}.reference-title{left:18px;font-size:22px}.header-notice{display:none}.header-meta{right:12px}.top-box-list{min-width:0;grid-template-columns:1fr;padding:8px}.right-top-box{grid-template-columns:1fr;height:auto}.top-row-jump-settings,.rule-panels-area{height:auto}.jump-settings-card{height:auto}.rule-panels-area{min-height:300px}.right-bottom-box{height:auto;grid-template-columns:1fr}.block-data-card,.order-data-card{height:270px}.data-card,.continuous-card,.parameter-card{height:auto}.parameter-body{grid-template-columns:1fr}.left-column{order:1}.right-box{order:2}.ext-form,.admin-split,.target-manager{grid-template-columns:1fr}}
.provider-site-control{display:flex;align-items:center;gap:7px}.provider-site-control select{flex:1;min-width:0}.provider-status{flex:0 0 auto;font-weight:700;color:#f56c6c;white-space:nowrap}.provider-status.connected{color:#67c23a}.provider-login-field{grid-column:1/-1}.provider-login-field[hidden]{display:none!important}.provider-auto-auth{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:8px}.provider-auto-auth[hidden]{display:none}.provider-auto-auth label{display:flex;flex-direction:column;gap:5px;color:var(--regular)}.provider-auth-actions{display:flex;align-items:center;gap:8px}.provider-login-progress{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(90px,1fr);align-items:center;gap:9px;padding:7px 9px;border:1px solid #b3d8ff;border-radius:4px;background:#ecf5ff;color:#337ecc;font-size:11px}.provider-login-progress[hidden],.provider-login-progress[hidden] *{animation:none!important}.provider-login-track{height:6px;overflow:hidden;border-radius:999px;background:#d9ecff}.provider-login-track i{display:block;width:42%;height:100%;border-radius:999px;background:#409eff;animation:provider-login-running 1s ease-in-out infinite}@keyframes provider-login-running{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}.provider-contract-details{grid-column:1/-1;margin-top:-4px;color:#909399;font-size:11px}.provider-contract-details summary{cursor:pointer;width:max-content}.provider-contract{margin:7px 0 0;padding:8px 9px;border-left:3px solid #409eff;background:#f0f7ff;color:#606266;font-size:11px;line-height:1.55;word-break:break-all}.provider-contract.warning{border-left-color:#e6a23c;background:#fdf6ec}.provider-contract strong{color:#303133}
.cy-agreement-panel{width:min(560px,92vw)}.cy-agreement-panel .modal-scroll{font-size:13px;line-height:1.7}.cy-agreement-panel .provider-contract{font-size:12px}.cy-captcha-panel{display:grid;gap:8px;padding:9px;border:1px solid #dcdfe6;border-radius:4px;background:#fafafa}.cy-captcha-toolbar{display:flex;align-items:center;gap:8px}.cy-captcha-toolbar small{color:#909399}.cy-captcha-stage{position:relative;width:100%;max-width:360px;overflow:hidden;border:1px solid #dcdfe6;border-radius:3px;background:#eef0f4}.cy-captcha-stage img:first-child{display:block;width:100%;height:auto}.cy-captcha-stage img:last-child{position:absolute;left:0;top:0;max-width:none;pointer-events:none}.cy-captcha-panel input[type="range"]{width:100%;height:auto;padding:0;accent-color:#409eff}.cy-captcha-panel>button{justify-self:start}.cy-captcha-panel.verified{border-color:#b3e19d;background:#f0f9eb}.cy-captcha-panel.verified .cy-captcha-toolbar small{color:#67c23a}
.control-switches{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:9px;background:#f5f7fa;border:1px solid #ebeef5}.control-switches label{display:flex;align-items:center;gap:5px;color:#606266}.control-switches input{width:auto!important;height:auto!important}.target-card details{margin:8px 0;border-top:1px solid var(--line);padding-top:7px}.target-card summary{cursor:pointer;color:#409eff;font-size:11px}.target-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.target-settings label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#606266}.target-settings input,.target-settings select{width:100%;height:27px;border:1px solid #dcdfe6;border-radius:3px;padding:0 5px}.target-settings .target-switches,.target-settings .provider-code-grid,.target-settings .target-save{grid-column:1/-1}.target-switches{display:flex;gap:10px;flex-wrap:wrap}.target-switches label{flex-direction:row;align-items:center}.provider-code-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;padding:7px;background:#fdf6ec}.target-save{justify-self:start}.admin-token-field{display:flex;flex-direction:column;gap:5px;max-width:420px;color:#606266}.admin-token-field input{height:32px;border:1px solid #dcdfe6;border-radius:3px;padding:0 8px}@media(max-width:768px){.control-switches,.target-settings{grid-template-columns:1fr 1fr}.target-settings .provider-code-grid{grid-template-columns:1fr}}
.run-game-picker{grid-column:1/-1;padding:10px;border:1px solid #b3d8ff;border-radius:5px;background:#f0f7ff}.run-game-picker-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.run-game-picker-head strong{color:#303133;font-size:12px}.run-game-picker-head small{color:#7b8794;font-size:10px}.run-game-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.run-game-options label{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 8px;border:1px solid #d9ecff;border-radius:4px;background:#fff;color:#4b5b6c;font-size:11px;cursor:pointer}.run-game-options label:has(input:checked){border-color:#409eff;background:#ecf5ff;color:#287dcc;font-weight:600}.run-game-options input{width:14px!important;height:14px!important;margin:0;accent-color:#409eff}.run-game-picker p{margin:8px 0 0;color:#337ecc;font-size:10px}.run-game-picker.no-selection{border-color:#f3c35b;background:#fdf6ec}.run-game-picker.no-selection p{color:#b88230}@media(max-width:768px){.run-game-options{grid-template-columns:1fr}.run-game-picker-head{align-items:flex-start;flex-direction:column}}
.game-picker-panel{width:min(560px,94vw)}.game-picker-panel .modal-scroll{padding:16px}.data-card{height:auto;min-height:334px}.data-card .el-card__header{height:auto;min-height:49px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}.data-card .header-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.data-card .header-actions button{padding:6px 7px;white-space:nowrap}.data-card #openRunGamePicker{border-color:#b3d8ff;background:#ecf5ff;color:#287dcc}
.run-game-picker .game-source-note{color:#606b78;line-height:1.5}
.data-card{overflow:visible}.data-card .el-card__header{position:relative;z-index:4}.run-game-dropdown{position:relative}.run-game-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:20;width:min(310px,calc(100vw - 24px));max-height:min(66vh,520px);overflow:auto;padding:11px;border:1px solid #b3d8ff;border-radius:5px;background:#f0f7ff;box-shadow:0 10px 30px #0003}.run-game-menu .run-game-options{grid-template-columns:1fr}.run-game-menu p{margin:8px 0 0;color:#337ecc;font-size:10px}.run-game-menu .game-source-note{color:#606b78;line-height:1.5}.run-game-menu.no-selection{border-color:#f3c35b;background:#fdf6ec}.run-game-menu.no-selection #runGameSummary{color:#b88230}.run-game-menu-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px;padding-top:9px;border-top:1px solid #d9ecff}
.block-data-card .table-wrap,.order-data-card .table-wrap{height:calc(100% - 79px)}.table-pagination{height:30px;display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid var(--line);font-size:10px}.table-pagination button{padding:4px 7px;font-size:10px}.table-pagination button:disabled{cursor:not-allowed;color:#c0c4cc;background:#f5f7fa}
.recommended-item.unverified{opacity:.55}.recommended-item.unverified span{background:#fafafa;color:#909399}.delivery-warning{margin:4px 0 0;color:#e6a23c;font-size:10px}
.header-nav-actions{display:flex;gap:4px}.header-nav-actions button{padding:5px 8px}.streak-stats{padding:0 16px 14px}.streak-stats h4{margin:8px 0 5px;font-size:11px;color:#606266}.streak-group{display:flex;flex-wrap:wrap;gap:4px}.streak-tag{padding:3px 6px;border-radius:3px;background:#f5f7fa;color:#606266;font-size:10px}.streak-tag.odd,.streak-tag.big{background:#fef0f0;color:#f56c6c}.streak-tag.even,.streak-tag.small{background:#ecf5ff;color:#409eff}.custom-assistant-page{padding:8px;background:#f5f7fa;min-width:1000px;min-height:calc(100vh - 74px)}.custom-top-grid{display:grid;grid-template-columns:260px 390px minmax(560px,1fr);gap:8px;align-items:start}.custom-summary-card,.custom-editor-card{min-height:410px}.custom-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.custom-form-grid label,.custom-editor-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#606266}.custom-form-grid input,.custom-form-grid select,.custom-editor-toolbar input,.custom-editor-toolbar select,.custom-editor-toolbar textarea{width:100%;height:30px;border:1px solid #dcdfe6;border-radius:3px;padding:5px 7px}.custom-form-grid input[type="range"]{height:auto;padding:0}.custom-form-section,.custom-full-field{grid-column:1/-1}.custom-form-section{margin:4px 0 0;padding-bottom:5px;border-bottom:1px solid #ebeef5;color:#303133;font-size:12px}.custom-provider-account-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.custom-provider-hint{padding:7px 9px;border-left:3px solid #409eff;background:#f0f7ff;color:#606266;font-size:11px;line-height:1.5}.custom-provider-hint.warning{border-left-color:#e6a23c;background:#fdf6ec;color:#b88230}.custom-editor-toolbar textarea{height:58px;resize:vertical}.custom-param-actions,.custom-editor-actions,.custom-input-actions,.custom-switches{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.custom-param-actions{grid-column:1/-1}.custom-editor-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.custom-switches{padding:7px;background:#f5f7fa;margin-bottom:8px}.custom-input-actions{margin-bottom:7px}.custom-editor-actions{margin-top:8px}.custom-batch-input{width:100%;min-height:190px;border:1px solid #dcdfe6;padding:8px;font:11px/1.6 Consolas,monospace}.custom-bottom-grid{display:grid;grid-template-columns:1fr 1fr 2fr;gap:8px;margin-top:8px}.custom-bottom-grid>.el-card{height:260px}.custom-bottom-grid .table-wrap{height:210px}.memory-line,.target-summary-line{display:flex;justify-content:space-between;border-bottom:1px solid #f0f1f4;padding:7px 0;font-size:11px}.quota-panel{width:min(560px,92vw)}.quota-content{font-size:13px}.quota-content b{word-break:break-all}.quota-warning{padding:9px;border-left:3px solid #e6a23c;background:#fdf6ec;color:#b88230}.quota-actions{display:flex;gap:8px;margin-top:14px}@media(max-width:1100px){.custom-assistant-page{min-width:0}.custom-top-grid{grid-template-columns:1fr}.custom-bottom-grid{grid-template-columns:1fr}.custom-summary-card,.custom-params-card,.custom-editor-card{min-height:0}}

/* 第二助手按基准站的 25% / 75% 网格组织。新增业务仍从扩展功能进入。 */
.run-game-menu{width:min(360px,calc(100vw - 24px))}
.run-game-entry{padding:6px;border:1px solid #d9ecff;border-radius:5px;background:#fff}
.run-game-entry .run-game-name{border:0;padding:4px;background:transparent}
.run-route-grid{display:grid;gap:4px;margin:5px 0 0;padding:6px;border-top:1px solid #e4eef9}
.run-game-entry .run-route-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,1.2fr);align-items:center;gap:6px;padding:3px 2px;border:0;background:transparent;color:#4b5b6c;font-weight:400;cursor:default}
.run-route-line select{width:100%;min-width:0;padding:4px 6px;border:1px solid #cfd9e5;border-radius:4px;background:#fff;color:#303133;font-size:11px}
body.custom-route .site-header{height:74px}
body.custom-route .reference-title{left:50%;top:14px;transform:translateX(-50%);font-size:22px;line-height:38px}
body.custom-route .header-notice,body.custom-route .header-meta>span:nth-child(2){display:none}
body.custom-route .header-meta{top:24px;right:22px;flex-direction:row;align-items:center;gap:10px}
.custom-assistant-page{padding:0;background:#f5f7fa;min-width:1000px;min-height:calc(100vh - 74px)}
.custom-reference-grid{display:grid;grid-template-columns:calc(25% - 7.5px) minmax(0,1fr);gap:10px;align-items:start;width:calc(100% + 4px);padding-top:0}
.custom-reference-left{display:flex;flex-direction:column;gap:8px;min-width:0}
.custom-summary-card{height:391px;min-height:391px}
.custom-summary-card .el-card__header{padding:0 16px}
.custom-stat-list{padding:12px 16px}
.custom-stat-list>div{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;color:#606266;font-size:12px}
.custom-stat-list b{font-weight:400;color:#303133}
.custom-params-card{height:880px;min-height:880px;max-height:880px}
.custom-parameter-stack{display:flex;flex-direction:column;gap:8px;padding:14px 16px;font-size:11px;height:calc(100% - 49px);overflow-y:auto;scrollbar-width:thin}
.custom-parameter-stack>label,.custom-provider-account-fields label{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center;gap:8px;color:#606266}
.custom-parameter-stack input,.custom-parameter-stack select,.custom-editor-toolbar input,.custom-editor-toolbar select,.custom-editor-toolbar textarea{width:100%;height:30px;border:1px solid #dcdfe6;border-radius:3px;padding:5px 7px;background:#fff;color:#606266}
.custom-provider-account-fields{display:flex;flex-direction:column;gap:9px}
.custom-provider-account-fields label{position:relative}
.required-star{color:#f56c6c}
.custom-parameter-stack .cy-captcha-panel{margin:2px 0}
.custom-parameter-stack .cy-captcha-panel label{display:flex;flex-direction:column;gap:5px}
.custom-provider-hint{padding:7px 9px;border-left:3px solid #409eff;background:#f0f7ff;color:#606266;font-size:10px;line-height:1.5}
.custom-provider-hint.warning{border-left-color:#e6a23c;background:#fdf6ec;color:#b88230}
.custom-full-button,.custom-start-button,.custom-mode-button{width:100%}
.custom-strategy-inline{margin:7px -16px -16px;padding:15px 16px;border-top:1px solid #ebeef5}
.custom-strategy-select-row,.custom-editor-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.custom-strategy-select-row label,.custom-editor-toolbar label{display:flex;flex-direction:column;gap:4px;color:#606266}
.custom-editor-toolbar textarea{height:58px;resize:vertical}
.custom-switches{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:7px;background:#f5f7fa;margin-bottom:8px}
.continuous-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;min-height:50px;margin-bottom:12px;padding:7px 8px;border:1px solid #c6e2ff;border-radius:5px;background:#ecf5ff;font-size:10px;color:#606266}.continuous-rule-grid[hidden]{display:none}.continuous-rule-grid label{display:flex;align-items:center;justify-content:space-between;gap:4px}.continuous-rule-grid input{width:46px;height:24px;padding:2px 4px;border:1px solid #dcdfe6;border-radius:3px;text-align:center}.custom-continuous-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 8px}.custom-continuous-grid label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#606266}.custom-continuous-grid input{width:100%;height:28px;border:1px solid #dcdfe6;border-radius:3px;padding:3px 6px}
.custom-reference-step-table{max-height:310px;margin:8px -16px;overflow:auto;border-left:0;border-right:0}
.custom-reference-step-table table{min-width:760px}
.custom-reference-actions,.custom-editor-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:7px 0}
.custom-reference-actions button,.custom-editor-actions button{flex:1;min-width:70px}
.custom-batch-input{width:100%;min-height:190px;border:1px solid #dcdfe6;padding:8px;font:11px/1.6 Consolas,monospace}
.custom-logs-card{height:504px;min-height:504px;max-height:504px}
.custom-logs-card .el-card__header button{margin-left:auto}
.custom-logs-card pre{margin:0;padding:12px 16px;height:449px;max-height:449px;overflow:auto;white-space:pre-wrap;font:11px/1.8 Consolas,monospace;color:#606266}
.custom-reference-right{display:flex;flex-direction:column;gap:8px;min-width:0}
.custom-reference-top{height:393px;display:grid;grid-template-columns:calc(50% - 4px) minmax(0,1fr);gap:8px}
.custom-jump-card,.custom-chart-card{height:393px}
.custom-jump-body{padding:13px 16px;font-size:11px;overflow:auto;height:100%}
.custom-jump-body label{display:grid;grid-template-columns:142px 90px minmax(0,1fr);align-items:center;gap:8px;min-height:36px;color:#606266}
.custom-jump-body input{width:90px;height:28px;border:1px solid #dcdfe6;border-radius:3px;padding:0 7px;text-align:center}
.custom-jump-body small,.custom-jump-body p{color:#909399;margin:0}
.custom-jump-body h4{text-align:center;margin:5px 0;font-size:11px;font-weight:400}
.custom-chart-card{position:relative;padding:18px}
.custom-chart-card canvas{display:block;width:100%;height:100%}
#customChartEmpty{position:absolute;inset:18px;display:grid;place-items:center;border:1px solid #909399;color:#c0c4cc;font-size:11px}
.custom-reference-bottom{height:900px;display:grid;grid-template-columns:353px minmax(0,1fr);gap:8px}
.custom-block-card,.custom-order-card{height:900px}
.custom-block-card .el-card__header,.custom-order-card .el-card__header{height:55px}
.custom-block-card .table-wrap,.custom-order-card .table-wrap{height:calc(100% - 55px)}
.custom-order-card .el-card__header button{margin-left:auto}
@media(max-width:991px){body.custom-route .reference-title{left:18px;transform:none;font-size:20px}.custom-assistant-page{min-width:0;padding:8px}.custom-reference-grid{grid-template-columns:1fr;width:100%;gap:8px}.custom-summary-card{height:auto}.custom-reference-top,.custom-reference-bottom{height:auto;grid-template-columns:1fr}.custom-jump-card,.custom-chart-card{height:392px}.custom-block-card,.custom-order-card{height:300px}.custom-reference-left{order:1}.custom-reference-right{order:2}}

/* 基准站在窄窗口使用高密度布局，而不是把桌面表单等比放大。 */
@media(max-width:768px){
  html{font-size:10px}
  body{overflow-y:auto;overflow-x:hidden;font-size:10px;line-height:1.3}
  .page{width:100%;height:auto;min-height:100vh;overflow:visible}
  .site-header{width:calc(100% - 4px);height:117px}
  .reference-title{left:0;top:10px;width:100%;font-size:14px;line-height:21px;letter-spacing:1px;text-align:center}
  .header-notice{display:block;left:8px;top:37px;width:calc(100% - 16px);max-width:none;font-size:6px;line-height:9px;text-align:center}
  .header-meta{left:50%;right:auto;top:61px;width:150px;transform:translateX(-50%);align-items:center;gap:2px;font-size:6px;line-height:9px}
  .header-meta b{padding:0 3px}
  .header-nav-actions{gap:2px}
  .header-meta button,.header-nav-actions button{padding:2px 6px;font-size:6.5px}
  .login-required-banner{top:70px;width:min(360px,calc(100vw - 64px));padding:6px 9px;font-size:9px;line-height:1.35}

  .top-box-list{width:calc(100% + 5px);min-width:0;margin:5px -5px 0;padding:0 5px;grid-template-columns:1fr;gap:4px}
  .left-column,.right-box{gap:4px}
  .el-card__header{height:39px;padding:0 10px;gap:4px;font-size:10px}
  .el-card__body{padding:10px}
  .header-actions{gap:3px}
  .header-actions button,button{padding:4px 6px;font-size:7px}

  .data-card{height:220px}
  .stat-rows{padding-top:0}
  .stat-rows>div{min-height:17.7px;gap:3px;font-size:7px}
  .balance-row b{min-width:0}
  .continuous-card{height:217px}
  .info-box{padding:7px;margin-bottom:6px;border-radius:4px;font-size:7px}
  .blue-box strong{margin-bottom:4px}
  .blue-box label{gap:4px;margin:4px 0}
  .number-control{height:16px}
  .number-control button{width:16px;padding:0}
  .number-control input{width:34px}
  .empty-warning{height:38px;margin-bottom:6px;font-size:7px}
  .continuous-rule-grid{min-height:38px;margin-bottom:6px;padding:4px 5px;gap:2px 5px;font-size:6.5px}.continuous-rule-grid input{width:30px;height:16px;padding:0 2px;font-size:6.5px}
  .note-box{line-height:1.45}

  .parameter-card{height:auto;min-height:0}
  .parameter-body{grid-template-columns:1fr;gap:5px;padding:10px;font-size:7px}
  .parameter-body h4{margin:0 -10px;padding:5px 10px;font-size:8px}
  .parameter-body h4:first-child{margin-top:-10px}
  .parameter-body>label,.provider-auto-auth>label{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:4px;min-height:18px;font-size:7px}
  .provider-site-control{min-width:0}
  .parameter-body select,.parameter-body input,.extension-content input,.extension-content select,.extension-content textarea,.strategy-modal-panel select{height:18px;padding:0 4px;font-size:7px}
  .parameter-body input[type="checkbox"],.parameter-body input[type="radio"],.parameter-body input[type="range"]{width:auto;height:auto;padding:0}
  .parameter-body .inline-switch{display:flex;min-height:18px;gap:6px}
  .radio-row{min-height:18px;gap:8px;font-size:7px}
  .radio-row>span{min-width:112px}
  .provider-auto-auth{gap:4px}
  .provider-auth-actions{gap:4px}
  .provider-auth-actions button{padding:4px 7px;font-size:7px}
  .cy-captcha-panel{gap:4px;padding:5px;font-size:7px}
  .cy-captcha-toolbar{gap:4px}.cy-captcha-toolbar small{font-size:6px}
  .provider-contract-details{margin-top:0;font-size:6.5px}
  .provider-contract{margin-top:4px;padding:5px 6px;font-size:6.5px;line-height:1.4}
  .control-switches{grid-template-columns:repeat(4,1fr);gap:3px;padding:4px;font-size:6.5px}
  .wide{height:20px;margin-top:2px!important;font-size:7px}

  .odd-stats-card{min-height:272px}
  .compact>div{min-height:18px}
  .streak-stats{padding:0 10px 8px}.streak-stats h4{margin:5px 0 3px;font-size:7px}.streak-tag{padding:2px 4px;font-size:6.5px}
  .logs-card{height:194px;min-height:194px}
  .logs-card pre{max-height:154px;padding:8px 10px;font:7px/1.55 Consolas,monospace}

  .right-top-box{height:350px;grid-template-columns:150px minmax(0,1fr);gap:4px}
  .top-row-jump-settings,.rule-panels-area{height:350px}
  .jump-settings-card{height:350px}
  .jump-body{padding:9px 10px;font-size:7px}
  .jump-body>.primary{margin-bottom:6px}
  .recommend-title{padding:5px;margin-bottom:4px}
  .recommended-list{max-height:90px;padding:0 4px}
  .recommended-item{height:20px;gap:3px;font-size:6.5px}
  .jump-group{padding:5px 0 3px}.jump-group strong{margin-bottom:4px;font-size:7px}.jump-group label{margin:4px 0}
  .empty-strategy{padding-top:35px;font-size:7px}.empty-icon{font-size:28px}.empty-strategy button{margin-top:5px;font-size:7px}
  .right-bottom-box{height:206px;grid-template-columns:1fr 1fr;gap:4px}
  .block-data-card,.order-data-card{height:206px}
  .block-data-card .table-wrap,.order-data-card .table-wrap{height:calc(100% - 63px)}
  .table-pagination{height:24px;gap:4px;font-size:6.5px}.table-pagination button{padding:3px 5px;font-size:6.5px}
  .order-data-card .el-card__header{padding-right:8px}
  .order-header{gap:5px;font-size:6px}.order-header .title{font-size:9px}
  .order-data-card select{height:18px;font-size:6px}.mini-switch{gap:3px;font-size:6.5px}
  table{font-size:6.5px}th,td{padding:5px 6px}.empty-cell{height:82px}

  body.custom-route .site-header{height:117px}
  body.custom-route .reference-title{left:0;top:10px;width:100%;transform:none;font-size:14px;line-height:21px;text-align:center}
  body.custom-route .header-meta{left:50%;right:auto;top:61px;transform:translateX(-50%);flex-direction:column;gap:2px}
  .custom-assistant-page{min-width:0;padding:0;min-height:calc(100vh - 117px)}
  .custom-reference-grid{width:calc(100% + 5px);margin:5px -5px 0;padding:0 5px;grid-template-columns:1fr;gap:4px}
  .custom-reference-left,.custom-reference-right{gap:4px}
  .custom-summary-card{height:220px;min-height:220px}
  .custom-stat-list{padding:8px 10px}.custom-stat-list>div{min-height:24px;font-size:7px}
  .custom-params-card{height:auto;min-height:0;max-height:none}
  .custom-parameter-stack{height:auto;overflow:visible;gap:4px;padding:10px;font-size:7px}
  .custom-parameter-stack>label,.custom-provider-account-fields label{display:flex;align-items:center;gap:2px;min-height:18px;font-size:7px}
  .custom-parameter-stack>label>input,.custom-parameter-stack>label>select,.custom-provider-account-fields label>input{flex:0 0 calc(100% - 120px);min-width:0;margin-left:auto}
  .custom-parameter-stack input,.custom-parameter-stack select,.custom-editor-toolbar input,.custom-editor-toolbar select,.custom-editor-toolbar textarea{height:18px;padding:0 4px;font-size:7px}
  .custom-provider-account-fields{gap:4px}
  .custom-provider-hint{padding:5px 6px;font-size:6.5px}
  .custom-strategy-inline{margin:4px -10px -10px;padding:8px 10px}
  .custom-strategy-select-row,.custom-editor-toolbar{gap:4px;margin-bottom:4px}
  .custom-editor-toolbar textarea{height:40px}
  .custom-switches{gap:4px;padding:4px;margin-bottom:4px;font-size:6.5px}
  .custom-continuous-grid{grid-template-columns:1fr 1fr;gap:3px;margin-bottom:4px}.custom-continuous-grid label{font-size:6.5px}.custom-continuous-grid input{height:18px;padding:0 3px;font-size:6.5px}
  .custom-reference-step-table{max-height:210px;margin:4px -10px}
  .custom-reference-actions,.custom-editor-actions{gap:3px;margin:4px 0}
  .custom-logs-card{height:194px;min-height:194px;max-height:194px}.custom-logs-card pre{height:154px;max-height:154px;padding:8px 10px;font:7px/1.55 Consolas,monospace}
  .custom-reference-top{height:350px;grid-template-columns:1fr 1fr;gap:4px}.custom-jump-card,.custom-chart-card{height:350px}
  .custom-reference-bottom{height:206px;grid-template-columns:1fr 1fr;gap:4px}.custom-block-card,.custom-order-card{height:206px}
}
.header-nav-actions{align-items:center}
.header-nav-actions a{padding:5px 8px;border:1px solid #dcdfe6;border-radius:3px;background:#fff;color:#606266;text-decoration:none}
.header-nav-actions a:hover{border-color:#409eff;color:#409eff}
.system-account-badge{display:inline-flex;align-items:center;max-width:230px;padding:3px 8px;border:1px solid #b3d8ff;border-radius:12px;background:#ecf5ff;color:#337ecc;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.system-auth-panel{width:min(430px,calc(100vw - 28px))}
.system-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px 20px 0}
.system-auth-tabs button.active{background:#409eff;color:#fff;border-color:#409eff}
.system-auth-panel form{padding:16px 20px 20px}
.system-auth-panel .strategy-help{margin:0 20px 20px}
.admin-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0 20px}
.admin-account-grid>section{min-width:0;padding:12px;border:1px solid #ebeef5;border-radius:6px;background:#fafafa}
.admin-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.admin-section-title h4,.admin-account-grid h4{margin:0 0 10px}
.admin-member-row,.provider-authorization-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #ebeef5}
.admin-member-row:last-child,.provider-authorization-row:last-child{border-bottom:0}
.admin-member-row small,.provider-authorization-row small{display:block;color:#909399;margin-top:3px}
body:not(.system-member-logged-in) #loginRequiredBanner{display:block}

@media(max-width:760px){
  .admin-account-grid{grid-template-columns:1fr}
}

/* 基础设置沿用本项目字段与登录流程，只对齐基准页的紧凑横排表单。 */
.parameter-form-section{grid-column:1/-1;min-width:0;margin:0 0 10px;padding:8px;border:1px solid #f0f0f0;background:#fafafa}
.parameter-form-section h4,.parameter-form-section h4:first-child{margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important;font-size:10.4px;font-weight:600;line-height:1.4}
.basic-settings-section .setting-row{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:start;min-width:0;min-height:19.2px;margin:0 0 8px;color:#606266;font-size:10.4px;font-weight:500;line-height:19.2px}
.basic-settings-section .setting-label{display:flex;justify-content:flex-end;min-width:0;padding-right:9.6px;text-align:right}
.basic-settings-section .setting-control,.basic-settings-section select,.basic-settings-section input{min-width:0}
.basic-settings-section select,.basic-settings-section input[type="text"],.basic-settings-section input[type="password"]{width:100%;height:19.2px;padding:1.6px 6.4px;border:1px solid #dcdfe6;border-radius:3.2px;background:#fff;color:#606266;font-size:9.6px;line-height:16px}
.basic-settings-section .provider-site-control{display:flex;align-items:flex-start;flex-wrap:wrap;gap:0}
.basic-settings-section .provider-site-control select{flex:1 0 100%}
.basic-settings-section .provider-status{margin-top:4.8px;font-size:9.6px;line-height:19.2px}
.basic-settings-section .inline-switch{display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;align-items:start!important;gap:0!important}
.basic-settings-section .switch-control,.basic-settings-section .setting-radio-group{display:flex;align-items:center;gap:16px;min-height:19.2px;font-size:9.6px;font-weight:500}
.basic-settings-section .setting-radio-group label{display:flex;align-items:center;gap:4px;white-space:nowrap}
.basic-settings-section input[type="checkbox"],.basic-settings-section input[type="radio"]{width:12px!important;height:12px!important;margin:0;padding:0}
.basic-settings-section .provider-auto-auth{display:grid;grid-template-columns:1fr;gap:8px;min-width:0}
.basic-settings-section .provider-auto-auth[hidden]{display:none}
.basic-settings-section .provider-auto-auth .setting-row{margin:0}
.basic-settings-section .provider-auto-auth input[type="text"],.basic-settings-section .provider-auto-auth input[type="password"]{height:26px;padding:0 7px;font-size:11px;line-height:24px}
.basic-settings-section .provider-auth-actions{margin-left:120px}
.basic-settings-section .provider-auth-actions button{padding:5px 8px;font-size:9.6px}
.basic-settings-section .cy-captcha-panel{margin-left:120px}
.cy-captcha-toolbar button{flex:0 0 auto;white-space:nowrap}
.cy-captcha-toolbar small{min-width:0}
.basic-settings-section .provider-login-progress,.basic-settings-section .provider-contract-details{margin-left:120px}

/* 基准页点击策略设置后使用约 70% 视口宽的大弹窗。 */
.strategy-modal-panel{width:70vw;max-width:calc(100vw - 48px)}

@media(max-width:768px){
  .parameter-form-section{margin-bottom:5px;padding:5px}
  .parameter-form-section h4,.parameter-form-section h4:first-child{margin-bottom:5px!important;font-size:8px}
  .basic-settings-section .setting-row{grid-template-columns:120px minmax(0,1fr);min-height:18px;margin-bottom:5px;font-size:7px;line-height:18px}
  .basic-settings-section .setting-label{padding-right:4px}
  .basic-settings-section select,.basic-settings-section input[type="text"],.basic-settings-section input[type="password"]{height:18px;padding:0 4px;font-size:7px;line-height:16px}
  .basic-settings-section .provider-status{margin-top:3px;font-size:7px;line-height:16px}
  .basic-settings-section .switch-control,.basic-settings-section .setting-radio-group{min-height:18px;gap:8px;font-size:7px}
  .basic-settings-section input[type="checkbox"],.basic-settings-section input[type="radio"]{width:10px!important;height:10px!important}
  .basic-settings-section .provider-auto-auth{gap:5px}
  .basic-settings-section .provider-auto-auth input[type="text"],.basic-settings-section .provider-auto-auth input[type="password"]{height:26px;padding:0 6px;font-size:11px;line-height:24px}
  .basic-settings-section .provider-auth-actions button{padding:4px 7px;font-size:7px}
  .strategy-modal-panel{width:calc(100vw - 20px);max-width:none}
}

/* 简洁的会员登录框；总后台功能放在独立页面。 */
.system-auth-modal .modal-backdrop{background:rgba(22,29,38,.52)}
.system-auth-panel{position:relative;width:min(390px,calc(100vw - 28px));margin:max(8vh,24px) auto;padding:28px;border:0;border-radius:10px;background:#fff;box-shadow:0 16px 42px rgba(0,0,0,.2);overflow:auto;max-height:92vh}
.system-auth-panel>.icon-close{position:absolute;top:12px;right:13px;width:30px;height:30px;margin:0;padding:0;border:0;background:transparent;color:#909399;font-size:22px}
.system-auth-panel>.icon-close:hover{color:#303133}
.system-auth-heading{padding-right:28px}
.system-auth-heading h2{margin:0 0 7px;font-size:21px;font-weight:650;color:#303133}
.system-auth-heading p{margin:0;color:#909399;font-size:12px}
.system-auth-tabs{display:flex;gap:22px;margin:22px 0 20px;padding:0;border-bottom:1px solid #ebeef5}
.system-auth-tabs button{height:35px;padding:0 2px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#909399;font-size:12px;box-shadow:none}
.system-auth-tabs button:hover{border-color:transparent;color:#409eff}
.system-auth-tabs button.active{border:0;border-bottom:2px solid #409eff;background:transparent;color:#409eff;box-shadow:none}
.system-auth-content{padding:0}
.system-auth-panel .auth-form{display:grid;grid-template-columns:1fr;gap:14px;margin:0;padding:0}
.system-auth-panel .auth-form label{display:flex;flex-direction:column;gap:6px;color:#606266;font-size:12px;font-weight:500}
.system-auth-panel .auth-form input{width:100%;height:40px;padding:0 11px;border:1px solid #dcdfe6;border-radius:4px;outline:0;background:#fff;color:#303133;font-size:13px;box-shadow:none}
.system-auth-panel .auth-form input::placeholder{color:#c0c4cc}
.system-auth-panel .auth-form input:focus{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.1)}
.system-auth-panel .auth-submit{width:100%;height:40px;margin-top:3px;border:1px solid #409eff;border-radius:4px;background:#409eff;color:#fff;font-size:13px;font-weight:500;box-shadow:none}
.system-auth-panel .auth-submit:hover{border-color:#66b1ff;background:#66b1ff;color:#fff}
.auth-note{margin:16px 0 0;color:#a0a7b1;font-size:10px;line-height:1.5;text-align:center}
.system-auth-panel .auth-form .auth-note{margin:-6px 0 0;color:#909399;font-size:11px;text-align:left}
.agency-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.agency-title h3{margin:0}.agency-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:12px 0;color:#909399;font-size:11px}.agency-pager button{padding:6px 9px}.agency-pager button:disabled{opacity:.45;cursor:default}.agency-kpis b{font-size:clamp(14px,2vw,22px);overflow-wrap:anywhere}.agency-rate input:disabled,.agency-rate button:disabled{opacity:.55;cursor:not-allowed}
.player-message-form{grid-template-columns:1fr}.player-message-form textarea{min-height:110px;line-height:1.7}.player-message-form button{justify-self:start;min-width:100px}.player-message-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.message-status{font-size:11px;color:#b47713;background:#fff3dc;padding:3px 8px;border-radius:12px}.message-status.replied{color:#2a8b55;background:#e8f7ef}.player-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:8px 0}.player-message-reply{margin-top:12px;padding:12px;background:#f3f7fc;border-left:3px solid #409eff;border-radius:3px}.player-message-reply b{color:#287dc5}
.header-meta{top:14px;gap:8px}.header-meta .system-account-badge{font-size:12px;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:768px){.site-header{height:146px!important}.header-meta,body.custom-route .header-meta{left:12px;right:12px;top:58px;transform:none;width:auto;gap:8px;align-items:flex-end}.header-meta .system-account-badge{font-size:11px;max-width:100%}.header-nav-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px}.header-meta button,.header-nav-actions button,.header-nav-actions a{padding:6px 8px;font-size:10px}}
@media(max-width:768px){.system-auth-panel{margin:18px auto;padding:23px 20px}.system-auth-heading h2{font-size:19px}}
.agency-invite{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;margin:8px 0 14px}.agency-invite label{display:flex;flex-direction:column;gap:5px;color:#606266;font-size:12px}.agency-invite input{height:34px;padding:0 9px;border:1px solid #dcdfe6;border-radius:3px;background:#fafafa;color:#4c5b6d}.agency-invite button{height:34px}.agency-kpis{margin:0 0 12px}.agency-list{border:1px solid var(--line);border-radius:4px;overflow:hidden}.agency-row{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border-bottom:1px solid var(--line)}.agency-row:last-child{border-bottom:0}.agency-row-info b,.agency-row-info small{display:block}.agency-row-info small{margin-top:3px;color:#909399;font-size:10px}.agency-rate{display:flex;align-items:center;gap:6px}.agency-rate input{width:82px;height:30px;padding:0 7px;border:1px solid #dcdfe6;border-radius:3px}.agency-rate button{height:30px;padding:0 9px}.agency-rate>span{color:#909399;font-size:11px}.agency-empty{padding:22px;text-align:center;color:#909399;font-size:12px}.ext-view[data-ext-view="agency"] h4{margin:18px 0 8px;font-size:13px}.commission-positive{color:#2a8b55;font-weight:700}.commission-meta{display:block;margin-top:4px;color:#909399;font-size:10px}@media(max-width:768px){.agency-invite,.agency-row{grid-template-columns:1fr}.agency-invite button{width:100%}.agency-rate{justify-content:flex-start}.agency-kpis{grid-template-columns:1fr 1fr}}
.commission-withdrawal-form{display:grid;grid-template-columns:minmax(110px,1fr) minmax(180px,2fr) auto;gap:10px;align-items:end}.commission-withdrawal-form label{display:grid;gap:5px;color:#606266;font-size:12px}.commission-withdrawal-form input{height:34px;min-width:0;padding:0 9px;border:1px solid #dcdfe6;border-radius:3px}.commission-withdrawal-form button{height:34px}.commission-withdrawal-address{overflow-wrap:anywhere}.commission-withdrawal-status{font-weight:700;color:#c47a00}.commission-withdrawal-status.paid{color:#2a8b55}.commission-withdrawal-status.rejected{color:#909399}@media(max-width:768px){.commission-withdrawal-form{grid-template-columns:1fr}}

/* Keep the shared automation controls across the full parameter card. */
#automationParameterExtras{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px 12px;min-width:0}
#automationParameterExtras>h4,#automationParameterExtras>.control-switches{grid-column:1/-1}
#automationParameterExtras>h4{margin-top:0}
#automationParameterExtras>label{display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--regular)}
#automationParameterExtras>label>input,#automationParameterExtras>label>select{width:100%;min-width:0;max-width:100%}
#automationParameterExtras .control-switches{grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));min-width:0}
#automationParameterExtras .control-switches label{min-width:0;white-space:nowrap}
#automationParameterExtras .control-switches input{flex:0 0 auto}
.extension-panel{height:min(760px,92vh);overflow:hidden}.extension-panel>header,.extension-panel>footer{position:relative;z-index:4;flex:0 0 auto;background:#fff}.extension-panel .extension-tabs{position:relative;z-index:3;flex:0 0 auto;min-height:53px;background:#fff}.extension-panel .extension-content{position:relative;z-index:1;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.extension-panel .target-manager{position:relative;z-index:1}.announcement-article details{padding:2px 0}.announcement-article summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;list-style-position:outside}.announcement-article summary span{display:flex;align-items:center;gap:7px;min-width:0}.announcement-article summary b{overflow-wrap:anywhere}.announcement-article summary i{flex:0 0 auto;padding:2px 6px;border-radius:10px;background:#fff3dc;color:#b47713;font-size:9px;font-style:normal}.announcement-article summary small{flex:0 0 auto}.announcement-article p{margin:12px 0 2px;padding:12px;background:#f7f9fc;border-left:3px solid #409eff;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.block-stack{display:flex;flex-direction:column;gap:8px;min-width:0}
.right-bottom-box{height:auto;align-items:stretch}
.reference-block-stack{height:530px}
.reference-block-stack>.block-trend-card{flex:0 0 265px}
.reference-block-stack>.block-data-card{flex:1 1 auto;height:auto;min-height:0}
.reference-block-stack>.block-data-card .table-wrap{height:calc(100% - 79px)}
.right-bottom-box>.order-data-card{height:530px;min-height:530px}
.right-bottom-box>.order-data-card .table-wrap{height:450px}
.block-trend-card{min-height:265px}
.block-trend-card .el-card__header{height:40px;padding:0 12px}
.trend-counts{display:flex;gap:10px;font-size:12px;white-space:nowrap}
.trend-positive{color:#159c8e}.trend-negative{color:#e95764}
.trend-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px 10px 4px}
.trend-toolbar select{min-width:0;max-width:100%;height:28px;border:1px solid #dcdfe6;border-radius:4px;background:#fff;color:#606266;padding:0 5px;font-size:11px}
.trend-toolbar select:first-child{flex:1 1 140px}
.trend-source,.trend-caption{padding:5px 10px;color:#909399;font-size:10px;line-height:1.5}
.trend-scroll{margin:0 8px;overflow-x:auto;overflow-y:hidden;background:linear-gradient(#fff,#fafcfd);border-radius:4px}
.trend-road{position:relative;min-width:100%;height:148px}
.trend-dot{position:absolute;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;color:white;font-size:10px;font-weight:500;box-shadow:0 1px 3px #00000012}
.trend-dot.positive{background:#39b9a6}.trend-dot.negative{background:#f46b76}
.trend-dot.latest{outline:2px solid #409eff;outline-offset:2px}
.trend-dot:focus{outline:2px solid #303133;outline-offset:2px}
.trend-empty{height:140px;display:flex;align-items:center;justify-content:center;color:#a4a8b0;font-size:12px;padding:12px}
.trend-view-tabs{display:flex;gap:4px;padding:4px 10px;border-bottom:1px solid #ebeef5}.trend-view-tabs button{border:0;border-radius:4px;padding:4px 12px;background:#f4f7fb;color:#606266;font-size:11px;cursor:pointer}.trend-view-tabs button[aria-selected="true"]{background:#409eff;color:#fff}.trend-history{height:148px;margin:0 8px;overflow:hidden}.trend-history[hidden]{display:none}.trend-history label{display:flex;align-items:center;gap:8px;height:32px;padding:2px 5px;color:#606266;font-size:11px}.trend-history select{min-width:0;max-width:220px;height:26px;padding:2px 6px;border:1px solid #dcdfe6;border-radius:4px;background:#fff;color:#303133;font-size:11px}.trend-history-list{height:116px;overflow-y:auto}.trend-history-row{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 7px;border-bottom:1px solid #f0f2f5;font-size:10px}.trend-history-issue{flex:0 0 auto;color:#606266}.trend-history-numbers{display:flex;gap:2px;min-width:0;flex:1 1 auto;overflow-x:auto}.trend-history-numbers b{display:grid;place-items:center;flex:0 0 20px;height:20px;border-radius:3px;background:#ecf5ff;color:#409eff;font-size:10px}.trend-history-row small{flex:0 0 auto;color:#909399;font-size:9px}
@media(max-width:600px){.trend-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px;padding:3px 5px}.trend-history-numbers{grid-column:1/-1;grid-row:2;width:100%;overflow-x:auto}.trend-history-numbers b{flex-basis:16px;height:16px;font-size:9px}.trend-history-row small{white-space:nowrap}}
.custom-reference-bottom>.block-stack{min-width:0}
@media(max-width:991px){.reference-block-stack{height:auto}.reference-block-stack>.block-trend-card{flex-basis:265px}.reference-block-stack>.block-data-card,.right-bottom-box>.order-data-card{height:280px;min-height:280px}.reference-block-stack>.block-data-card .table-wrap,.right-bottom-box>.order-data-card .table-wrap{height:201px}}
.order-runtime-status.is-running{color:#67c23a!important}.order-runtime-status.is-monitoring{color:#e6a23c!important}.order-runtime-status.is-error{color:#f56c6c!important}
.order-runtime-hint{padding:6px 12px;border-bottom:1px solid #ebeef5;background:#f4f7fb;color:#606266;font-size:11px;line-height:1.5}.order-runtime-hint.warning{background:#fdf6ec;color:#b88230}.order-runtime-hint.error{background:#fef0f0;color:#d94b4b}
.order-runtime-copy{display:none}.order-data-table{width:850px;min-width:850px;table-layout:fixed}.order-data-table th,.order-data-table td{height:43px;padding:0 6px;text-align:center}.order-data-table th{height:36px;background:#f5f7fa;color:#606266;font-weight:600}.order-env,.order-status{display:inline;padding:2px 6px;border-radius:4px;font-size:10px;line-height:13px}.env-prod{background:rgba(103,194,58,.1);color:#67c23a}.env-test{background:rgba(245,108,108,.1);color:#f56c6c}.status-wait{background:rgba(230,162,60,.1);color:#e6a23c}.status-win{background:rgba(103,194,58,.1);color:#67c23a}.status-lose{background:rgba(245,108,108,.1);color:#f56c6c}.status-cancel{background:rgba(144,147,153,.1);color:#909399}.status-neutral{background:#f4f4f5;color:#606266}.order-amount,.order-direction{color:#303133}.order-result{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:4px;font-size:10px}.order-result.result-odd{background:rgba(26,155,92,.12);color:#1a9b5c}.order-result.result-even{background:rgba(208,48,47,.12);color:#d0302f}.order-rule-cell{overflow:hidden}.order-rule-content{display:flex;min-width:0;flex-direction:column;align-items:center;gap:2px}.order-rule-tag{display:block;max-width:100%;overflow:hidden;padding:1px 3px;border:0;border-radius:2px;color:#fff;font-size:8px;font-weight:600;line-height:14px;letter-spacing:.3px;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 2px #0003}.order-rule-color-0{background:linear-gradient(135deg,#409eff 0%,#67c23a 100%)}.order-rule-color-1{background:linear-gradient(135deg,#f56c6c 0%,#e6a23c 100%)}.order-rule-color-2{background:linear-gradient(135deg,#909399 0%,#606266 100%)}.order-rule-color-3{background:linear-gradient(135deg,#67c23a 0%,#409eff 100%)}.order-rule-color-4{background:linear-gradient(135deg,#e6a23c 0%,#f56c6c 100%)}.order-rule-detail{padding:1px 4px;border:1px solid #ebeef5;border-radius:2px;background:linear-gradient(180deg,#fff 0%,#f8f9fb 100%);color:#303133;font-size:8px;font-weight:600;line-height:10px;box-shadow:0 1px 2px #00000012}.order-time{color:#606266}
.parameter-body>label{min-width:0}.parameter-body>label>input,.parameter-body>label>select{width:100%;min-width:0;max-width:100%}
.strategy-cards-row{display:flex;width:100%;height:100%;min-height:0;align-items:stretch;gap:8px}.strategy-chart-card{flex:1 1 0;height:100%;min-width:0;min-height:0;border-color:#e4e7ed;box-shadow:0 0 12px rgba(0,0,0,.12)}
.strategy-chart-card>.el-card__body{display:flex;width:100%;height:100%;max-height:calc(100% - 20px);padding:8px}
.strategy-chart-card-body{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;gap:8px}
.strategy-chart-card-chart{position:relative;flex:1 1 0;min-height:220px}
.strategy-chart-plot,.strategy-chart-placeholder{position:relative;width:100%;height:100%;min-height:220px;border-radius:4px;background:#fafafa;overflow:hidden}
.strategy-chart-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#c0c4cc;font-size:11px}
.strategy-chart-placeholder-icon{display:block;width:29px;height:29px;color:#d8dce4}.strategy-chart-placeholder-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.strategy-curve{display:block;width:100%;height:100%}.strategy-curve-grid{stroke:#e7ebf0;stroke-width:1;vector-effect:non-scaling-stroke}.strategy-curve-axis{stroke:#999;stroke-width:1;vector-effect:non-scaling-stroke}.strategy-curve-win{fill:#0269bf}.strategy-curve-loss{fill:#d00808}.strategy-curve-tick{fill:#606266;font-size:10px}.strategy-curve-title{fill:#606266;font-size:12px;font-weight:600}
.strategy-chart-card-header{display:flex;flex:0 0 23px;align-items:center;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px solid #f0f0f0}
.strategy-tag{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border:1px solid;border-radius:3px;font-size:10px;line-height:1.2;white-space:nowrap}.strategy-tag.primary{border-color:#b3d8ff;background:#ecf5ff;color:#409eff}.strategy-tag.success{border-color:#c2e7b0;background:#f0f9eb;color:#67c23a}.strategy-tag.warning{border-color:#f5dab1;background:#fdf6ec;color:#e6a23c}.strategy-tag.info{border-color:#e9e9eb;background:#f4f4f5;color:#909399}
.strategy-chart-waiting{position:absolute;right:12px;bottom:10px;left:58px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 9px;border:1px solid #f5dab1;border-radius:4px;background:rgba(253,246,236,.94);color:#b88230;font-size:10px;line-height:1.35;box-shadow:0 2px 7px rgba(230,162,60,.12)}.strategy-chart-waiting b{font-weight:600}.strategy-chart-waiting span{color:#c89446;text-align:right}
.strategy-chart-card-settings{display:flex;flex:0 0 145px;min-height:0;flex-direction:column;font-size:10px;color:#606266}
.strategy-setting-row{display:flex;flex:1;min-height:24px;align-items:center;gap:8px;border-bottom:1px solid #f0f1f4}.strategy-setting-row:last-child{border-bottom:0}.strategy-setting-label{flex:0 0 76px;color:#606266}.strategy-setting-value{min-width:0;color:#909399}.strategy-setting-hint{color:#909399}.strategy-plan-dot{display:grid;width:19px;height:19px;place-items:center;border-radius:50%;background:#409eff;color:#fff;font-size:9px}.strategy-setting-footer button{margin-left:auto;padding:5px 11px;font-size:10px}.strategy-card-actions{display:inline-flex;align-items:center;gap:5px;margin-left:auto}.strategy-card-actions button{margin-left:0}.strategy-direction-switch{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#606266;user-select:none}.strategy-direction-switch input{position:absolute;opacity:0;pointer-events:none}.strategy-direction-track{position:relative;width:26px;height:14px;border-radius:8px;background:#dcdfe6;transition:.18s}.strategy-direction-track::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:.18s}.strategy-direction-switch input:checked+.strategy-direction-track{background:#409eff}.strategy-direction-switch input:checked+.strategy-direction-track::after{transform:translateX(12px)}.strategy-direction-switch input:focus-visible+.strategy-direction-track{outline:2px solid #a0cfff;outline-offset:2px}.strategy-direction-switch input:disabled+.strategy-direction-track{opacity:.55}.strategy-direction-switch b{min-width:20px;font-weight:400}
@media(max-width:991px) and (min-width:769px){.strategy-chart-card{height:540px;min-height:540px}.strategy-chart-card-chart{min-height:318px}}
@media(max-width:768px){.strategy-chart-card{height:338px;min-height:338px}.strategy-chart-card-chart,.strategy-chart-plot,.strategy-chart-placeholder{min-height:160px}.strategy-chart-card-settings{flex-basis:102px;font-size:6.5px}.strategy-chart-card-header{flex-basis:16px}.strategy-tag{min-height:14px;padding:1px 4px;font-size:6.5px}.strategy-chart-waiting{right:6px;bottom:6px;left:34px;padding:3px 5px;font-size:6.5px}.strategy-setting-row{min-height:14px;gap:4px}.strategy-setting-label{flex-basis:52px}.strategy-setting-footer button{padding:3px 5px;font-size:6.5px}.strategy-curve-tick{font-size:7px}.strategy-curve-title{font-size:9px}}
.reference-block-stack{height:auto}.reference-block-stack>.block-data-card,.right-bottom-box>.order-data-card{height:auto;min-height:0}.reference-block-stack>.block-data-card{display:flex;flex-direction:column}.reference-block-stack>.block-data-card .table-wrap,.right-bottom-box>.order-data-card .table-wrap{height:auto;max-height:none;overflow-x:auto;overflow-y:visible}.reference-block-stack>.block-data-card .table-wrap{flex:1 1 auto}
.order-runtime-hint{display:none}.order-runtime-hint.warning,.order-runtime-hint.error{display:block}.order-data-table th,.order-data-table td{height:38px}.order-data-card .table-wrap{min-height:796px}
.header-status-stack{display:flex;align-items:center;gap:8px;color:#606266;font-size:10px}.header-status-stack span{white-space:nowrap}.header-status-stack b{font-weight:400;background:#f2f3f5;padding:1px 6px;border-radius:3px}.status-pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:12px;background:#f4f4f5;color:#909399;font-size:10px}.status-pill.connected{background:#f0f9eb;color:#67c23a}.copy-follow-card{height:83px}.copy-follow-body{padding:10px 16px;font-size:11px}.copy-follow-body>div{display:flex;gap:7px;color:#606266}.copy-follow-body b{font-weight:400;color:#303133}.copy-follow-body p{margin:8px 0 0;color:#909399;font-size:10px}.continuous-card{height:auto;min-height:326px}.blue-box label{align-items:flex-start;line-height:28px}.blue-box label .number-control{flex:0 0 auto}.parameter-body input[type=hidden]{display:none}
@media(max-width:768px){.header-status-stack{gap:3px;font-size:6px}.header-status-stack button{font-size:6.5px}.copy-follow-card{height:83px}.copy-follow-body{padding:8px 10px;font-size:7px}.copy-follow-body p{font-size:6px;margin-top:5px}.status-pill{font-size:6px;padding:2px 5px}.continuous-card{min-height:0}.blue-box label{line-height:16px}}

.custom-summary-subcard{margin-top:10px;padding-top:8px;border-top:1px solid #ebeef5}.custom-summary-subcard>strong{display:block;color:#606266;font-size:11px;margin-bottom:5px}.custom-summary-subcard>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.memory-line,.target-summary-line{display:flex;flex-direction:column;gap:2px;padding:5px;background:#f8f9fb;border-radius:3px;font-size:10px;color:#909399}.memory-line b,.target-summary-line b{color:#303133;font-weight:500}@media(max-width:768px){.custom-summary-subcard>strong{font-size:7px}.memory-line,.target-summary-line{font-size:6px;padding:3px}}

.copy-follow-form{display:flex;align-items:center;gap:6px;margin-top:7px}.copy-follow-form input{flex:1;min-width:0;padding:4px 7px;border:1px solid #dcdfe6;border-radius:3px;font-size:10px}.copy-follow-form button{font-size:10px;padding:4px 8px}@media(max-width:768px){.copy-follow-form{gap:3px;margin-top:4px}.copy-follow-form input{font-size:7px;padding:3px 5px}.copy-follow-form button{font-size:7px;padding:3px 5px}}

.page-size-select{border:1px solid #dcdfe6;border-radius:3px;background:#fff;color:#606266;padding:3px 7px;font-size:10px}.continuous-strategy-name{font-size:11px;font-weight:600;color:#303133;margin:8px 0 6px;padding-bottom:5px;border-bottom:1px solid #ebeef5}@media(max-width:768px){.page-size-select{font-size:7px;padding:2px 4px}.continuous-strategy-name{font-size:7px}}
/* Strategy editor parity fields */
.strategy-name-line .grow-input{max-width:420px}
.strategy-inline-input{width:150px;height:32px!important;padding:0 8px;margin-left:4px}
.strategy-help-inline{color:#909399;font-size:11px}
.strategy-mode-button{margin:0 0 8px}
.strategy-batch-input{width:100%;min-height:180px;box-sizing:border-box;margin:0 0 8px;padding:10px;font:12px/1.6 monospace;border:1px solid #dcdfe6;border-radius:4px;resize:vertical}

.strategy-config [hidden]{display:none!important}


/* The header uses normal flow so announcements cannot overlap the title. */
.site-header,body.custom-route .site-header{width:100%;height:auto!important;min-height:120px!important;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 14px;overflow:visible}
.header-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0}
.reference-title,body.custom-route .reference-title{position:static;transform:none;width:auto;font-size:21px;line-height:1.45;letter-spacing:3px;text-align:center;white-space:nowrap}
.header-notice,body.custom-route .header-notice{position:static;display:block;width:auto;max-width:min(100%,720px);font-size:12px;line-height:1.5;color:#e6a23c;text-align:center;overflow-wrap:anywhere}
.header-meta,body.custom-route .header-meta{position:static;transform:none;width:100%;display:flex;flex-direction:column;align-items:flex-end;gap:4px;line-height:1.45}
.header-status-stack{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;font-size:9px;line-height:12px}
.header-status-stack>span{display:flex;align-items:center;gap:4px;white-space:nowrap}
.header-status-stack b{padding:0 4px;border-radius:3px;font-size:inherit;font-weight:500}
.header-meta button{padding:3px 6px;font-size:6.5px;line-height:1;border-radius:3px}
.header-account-menu{display:none;position:absolute;left:10px;top:10px;font-size:10px;color:#909399;z-index:5}
.header-account-menu>summary{cursor:pointer;list-style:none;padding:3px 5px;border:1px solid #ebeef5;border-radius:3px;background:#fff}
.header-account-panel{position:absolute;top:100%;left:0;width:240px;max-width:calc(100vw - 24px);padding:10px;border:1px solid #ebeef5;border-radius:4px;background:#fff;box-shadow:0 3px 12px #0002}
.header-account-panel .system-account-badge{display:block;margin-bottom:8px;font-size:11px}
.header-account-panel .header-nav-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:5px}
.header-account-panel .header-nav-actions button,.header-account-panel .header-nav-actions a{padding:6px 8px;font-size:10px}
@media(max-width:1280px){.reference-title,body.custom-route .reference-title{font-size:18px;letter-spacing:2px}.header-status-stack{font-size:9px}}
@media(max-width:768px){
  .site-header,body.custom-route .site-header{min-height:170px!important;padding:10px 8px;gap:7.5px}
  .header-brand{width:100%;flex-direction:column;gap:6px}
  .header-notice,body.custom-route .header-notice{width:calc(100% - 16px);max-width:none;font-size:11px;line-height:1.5;text-align:center}
  .header-meta,body.custom-route .header-meta{position:static;transform:none;width:auto;align-items:center}
  .header-status-stack{align-items:center;gap:3px;font-size:9px}
  .header-account-menu{left:4px;top:4px;font-size:6px}
  .header-account-menu>summary{padding:2px 3px}
  .header-account-menu{display:none}
  .top-box-list{margin-top:5px}
}
@media(max-width:480px){.reference-title,body.custom-route .reference-title{font-size:14px;letter-spacing:1px}.header-status-stack{font-size:9px}}

/* Keep account actions visible in the upper-right corner. */
.header-meta{align-items:flex-end;gap:5px;max-width:none;z-index:6}
.header-account-area{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.header-account-area .system-account-badge{font-size:11px;line-height:18px;max-width:min(52vw,420px)}
.header-account-area .header-nav-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px}
.header-account-area .header-nav-actions button,.header-account-area .header-nav-actions a{padding:4px 7px;font-size:10px;line-height:1;border-radius:3px}
.header-account-area .header-nav-actions a{border:1px solid #dcdfe6;background:#fff;color:#606266;text-decoration:none}
.header-account-area .header-nav-actions a:hover{border-color:#409eff;color:#409eff}
.order-header b.profit-plus{color:#67c23a!important}
.order-header b.profit-minus{color:#f56c6c!important}
.account-center-panel{width:min(460px,calc(100vw - 24px))}
.account-center-body{padding:18px 20px}
.account-center-status{padding:9px 12px;border:1px solid #b3d8ff;border-radius:4px;background:#ecf5ff;color:#337ecc;font-weight:600}
.account-center-body dl{margin:14px 0 0}
.account-center-body dl>div{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px solid #f0f1f4;font-size:13px}
.account-center-body dt{color:#909399}.account-center-body dd{margin:0;color:#303133;font-weight:600;word-break:break-all;text-align:right}
.account-center-panel footer{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.order-environment-switch{display:inline-flex;align-items:center;flex:0 0 auto;gap:2px;padding:2px;border:1px solid #dcdfe6;border-radius:5px;background:#f5f7fa;white-space:nowrap}
.order-environment-switch label{position:relative;display:block;cursor:pointer}
.order-environment-switch input{position:absolute;width:1px;height:1px;margin:0;opacity:0}
.order-environment-switch span{display:block;padding:5px 8px;border-radius:3px;color:#606266;font-size:10px;font-weight:600;line-height:1.2}
.order-environment-switch input:checked+span{background:#409eff;color:#fff;box-shadow:0 1px 3px #0002}
.order-environment-switch input[value="live"]:checked+span{background:#e6a23c}
.order-environment-switch input:focus-visible+span{outline:2px solid #303133;outline-offset:2px}
@media(max-width:991px){.order-data-card .el-card__header{height:auto;min-height:70px;flex-wrap:wrap;padding-top:5px;padding-bottom:5px}.order-data-card .order-header{width:100%;flex-wrap:wrap;white-space:normal}.order-data-card .order-header-actions{width:100%;justify-content:flex-end;gap:5px;margin-left:0}.order-data-card .table-wrap{height:calc(100% - 98px)}.order-environment-switch span{padding:3px 5px;font-size:8px}}
.account-recharge-link{margin-right:auto;padding:7px 12px;color:#409eff;text-decoration:none}
@media(max-width:768px){
  .site-header,body.custom-route .site-header{min-height:190px!important;padding:10px 8px;gap:6px}
  .header-brand{width:100%}
  .header-meta,body.custom-route .header-meta{position:static;transform:none;width:100%;max-width:none;align-items:center;gap:5px}
  .header-status-stack{align-items:center}
  .header-account-area{width:100%;align-items:center}
  .header-account-area .system-account-badge{max-width:100%;font-size:10px}
  .header-account-area .header-nav-actions{justify-content:center;gap:3px}
  .header-account-area .header-nav-actions button,.header-account-area .header-nav-actions a{padding:5px 6px;font-size:9px}
}

/* The recharge flow stays on the workbench in a compact dialog. */
.quota-panel{width:min(390px,calc(100vw - 28px));max-height:min(520px,calc(100vh - 28px))}
.quota-panel>header{height:46px;padding:0 14px}
.quota-panel>header h2{font-size:15px}
.quota-content{padding:14px;font-size:12px}
.quota-content p{margin:0 0 10px}
.quota-current-line{font-size:13px;color:#606266}
.quota-current-line b{color:#409eff;font-size:16px}
.quota-rate-line{padding:8px 10px;border-radius:4px;background:#f0f7ff;color:#337ecc;text-align:center}
.quota-address-box{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid #ebeef5;border-radius:4px;background:#fafafa}
.quota-address-box span{color:#909399;font-size:11px}
.quota-address-box b{overflow-wrap:anywhere;color:#303133;font-size:11px;line-height:1.45}
.quota-address-box button{align-self:flex-start;padding:5px 8px;font-size:11px}
.quota-warning{margin-top:10px!important;padding:8px 9px;font-size:11px;line-height:1.5}
.quota-actions{margin-top:12px;justify-content:flex-end}
.quota-actions button{padding:7px 10px;font-size:11px}
.quota-panel>footer{padding:10px 14px}
.quota-summary{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:9px;color:#606266;font-size:12px}
.quota-summary b{color:#409eff;font-size:19px}
.quota-create-form{padding:10px;border:1px solid #ebeef5;border-radius:5px;background:#fafbfd}
.quota-create-form label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#606266;font-size:12px}
.quota-amount-wrap{display:flex;align-items:center;flex:0 0 175px;border:1px solid #dcdfe6;border-radius:4px;background:#fff}
.quota-amount-wrap input{width:100%;height:32px;border:0;outline:0;padding:0 8px;font-size:15px;font-weight:600}
.quota-amount-wrap i{padding-right:8px;color:#909399;font-style:normal;font-size:11px}
.quota-estimate{display:flex;justify-content:space-between;margin:8px 0;color:#909399;font-size:11px}
.quota-estimate b{color:#606266}
.quota-create-form .primary{width:100%;height:32px;padding:0;font-size:11px}
.quota-payment-step{display:block}
.quota-payment-card{margin-top:10px;padding:10px;border:1px solid #c6e2ff;border-radius:5px;background:#f4f9ff}
.quota-payment-head{display:flex;align-items:center;justify-content:space-between;color:#337ecc;font-size:12px}
.quota-payment-head span{padding:2px 7px;border-radius:10px;background:#fff3dc;color:#b47713;font-size:10px}
.quota-pay-amount{text-align:center;padding:8px 0 5px}.quota-pay-amount small,.quota-pay-amount em{display:block;color:#909399;font-size:10px;font-style:normal}.quota-pay-amount strong{display:block;margin:2px 0;color:#e67826;font-size:25px}
.quota-payment-qr{display:flex;flex-direction:column;align-items:center;gap:6px;margin:6px auto 10px;padding:8px;border:1px solid #e3e8ef;border-radius:5px;background:#fff}.quota-payment-qr canvas{display:block;width:190px;height:190px;max-width:100%;image-rendering:pixelated}.quota-payment-qr span{color:#6f7d8f;font-size:10px;text-align:center}
.quota-detail{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:6px;padding-top:7px;border-top:1px solid #dcecfb;font-size:10px}.quota-detail span{color:#909399}.quota-detail b{overflow-wrap:anywhere;color:#303133}.quota-detail button{padding:3px 5px;font-size:10px}
.quota-history{margin-top:12px}.quota-history>b{display:block;margin-bottom:5px;color:#606266;font-size:11px}.quota-order-list{display:grid;gap:4px}.quota-order-row{display:grid;grid-template-columns:minmax(80px,1fr) auto auto auto;gap:6px;align-items:center;padding:6px 7px;border-bottom:1px solid #f0f1f4;font-size:10px}.quota-order-row span{color:#909399}.quota-order-row b{color:#303133}.quota-order-row em{color:#606266;font-style:normal}.quota-order-row small{color:#b47713}.quota-order-empty{padding:8px;text-align:center;color:#c0c4cc;font-size:10px}
@media(max-width:480px){.quota-amount-wrap{flex-basis:145px}.quota-payment-qr canvas{width:176px;height:176px}.quota-order-row{grid-template-columns:1fr auto}.quota-order-row em,.quota-order-row small{justify-self:end}}

.order-draw-period{display:block;margin-top:3px;color:#909399;font-size:10px;line-height:1.35;white-space:nowrap}

.notification-dot{display:inline-block;width:8px;height:8px;margin-left:3px;border-radius:50%;background:#f56c6c;vertical-align:middle;box-shadow:0 0 0 2px #fff}
.header-notice.has-unread::before{content:"";display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#f56c6c;vertical-align:middle}

.enabled-strategy-count[hidden]{display:none}

.provider-status.pending{color:#e6a23c}

/* Keep the parameter footer aligned with the reference environment selector. */
#automationParameterExtras[hidden]{display:none!important}
.environment-settings-section{grid-column:1/-1;min-width:0;margin:16px 0 0;padding:20px 16px 24px;border:1px solid #ebeef5;border-radius:8px;background:#fafafa}
.parameter-body .environment-settings-section h4,.parameter-body .environment-settings-section h4:first-child{margin:0 0 20px;padding:0;border:0;background:none;color:#303133;font-size:16px;font-weight:600;line-height:1.4}
.initial-environment-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;color:#606266;font-size:14px;line-height:1.5}
.initial-environment-options{display:flex;align-items:center;flex-wrap:wrap;gap:30px}
.initial-environment-options label{display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap;font-size:14px;line-height:20px}
.parameter-body .initial-environment-options input[type="radio"]{width:16px!important;height:16px!important;margin:0;padding:0;accent-color:#409eff;cursor:pointer}
.initial-environment-options input:checked+span{color:#409eff;font-weight:600}
.parameter-body #startFromParams{grid-column:1/-1;width:100%;height:40px;padding:0;margin-top:26px;border-radius:5px;font-size:16px;font-weight:600;letter-spacing:4px}
@media(max-width:600px){.environment-settings-section{padding:18px 14px 22px}.initial-environment-row{justify-content:flex-start;gap:12px}.initial-environment-options{gap:22px}}

.environment-settings-section{container-type:inline-size}
@container(max-width:340px){.initial-environment-row{gap:12px;font-size:11px}.initial-environment-options{gap:16px}.initial-environment-options label{font-size:11px;gap:6px}.parameter-body .initial-environment-options input[type="radio"]{width:14px!important;height:14px!important}}
