:root{color-scheme:dark;--bg:#0b1017;--panel:#121c28;--panel2:#162332;--border:#263445;--text:#e3edf9;--muted:#8b9fb8;--green:#4cdebb;--blue:#75a7ff;--red:#ff7d8a;--amber:#eac488;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,input,select{border:1px solid var(--border);border-radius:6px}button{color:var(--text);background:#1d2d40;padding:9px 14px}input,select{background:#0e1722;color:var(--text);height:40px;padding:8px 11px;min-width:0;width:100%}input:focus,select:focus{outline:1px solid var(--green)}input[type=checkbox]{accent-color:var(--green);height:16px;width:16px;padding:0;flex-shrink:0}small{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#0e1621;border-right:1px solid var(--border);padding:30px 17px;z-index:20;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;margin:0 6px 49px}.brandmark{font-size:29px;font-weight:800;line-height:40px;border:1px solid #3d8d80;background:#15352f;color:var(--green);border-radius:9px;display:block;width:40px;height:41px;padding-left:10px;position:relative}.brandmark span{font-size:16px;position:absolute;right:3px;top:-7px}.brand div{font-weight:700;letter-spacing:1px;font-size:16px}.brand b{font-size:9px;font-weight:500;display:block;letter-spacing:2px;margin-top:3px;color:#9bb1c9}.brand small{display:block;font-weight:400;font-size:10px;letter-spacing:0;margin-top:7px}.nav-label{font-size:10px;letter-spacing:1.6px;color:#63778f;margin:0 12px 12px;display:flex;justify-content:space-between}.nav-label:nth-of-type(2){margin-top:31px}nav a{display:flex;gap:12px;align-items:center;padding:13px 12px;border-radius:7px;color:#92a7bf;margin-bottom:5px;font-size:13px;border:1px solid transparent;white-space:nowrap}nav a>span{margin-left:auto;font-size:10px;opacity:.55}nav a.active{background:#17302e;color:var(--green);border-color:#234a43}nav a:hover{background:#172330}nav i{font-style:normal;width:20px;text-align:center;font-size:18px}.binance{color:#ebc45a}.gate{color:#67a4ff}.hl{color:#58d7ba}.stock{color:#bda2ff}.sidebar-bottom{margin-top:auto;padding:20px 11px 0}.local-pill{font-size:11px;color:#a8bcd0}.dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:7px;vertical-align:middle;box-shadow:0 0 7px #4cdebb30}.sidebar-bottom p{font-size:11px;color:#5f748b;line-height:1.9;margin:12px 0 20px}.version{font-size:10px;letter-spacing:1px;color:#6e829a;display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:15px}.version b{font-weight:400}.workspace{margin-left:228px}header{height:68px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px}.crumb{font-size:12px;color:#778da7}.crumb span{padding:0 12px;color:#485d73}.crumb b{font-weight:400;color:#bdcee0}.top-right{display:flex;gap:17px;align-items:center;font-size:11px;color:#8fa5be}.header-line{width:1px;height:16px;background:var(--border)}.secure{color:#98b6ae}#mobile-menu{display:none}main{padding:30px 32px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);margin-bottom:9px}.page-head h1{font-size:27px;letter-spacing:-.5px;font-weight:550;margin:0 0 10px}.page-head h1 span{font-size:20px;color:#657b94;font-weight:400;margin-left:10px}.page-head p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}.head-actions{display:flex;gap:10px;align-items:center}.status-pill{display:flex;align-items:center;border:1px solid #295447;color:var(--green);background:#14302a;font-size:11px;border-radius:30px;padding:7px 12px}.status-pill.warn{border-color:#665034;color:var(--amber);background:#2d271d}.button{background:var(--green);color:#092820;font-weight:600;padding:10px 17px;border-color:var(--green);border-radius:6px;white-space:nowrap}.button.secondary{background:#182637;border-color:#33475f;color:#bdd0e6;font-weight:400}.button.danger{background:#3b202b;color:var(--red);border-color:#65404a}.button.small{padding:7px 11px;font-size:12px}.meta-strip{display:flex;gap:22px;align-items:center;background:#101924;border:1px solid var(--border);border-radius:7px;padding:12px 16px;font-size:11px;color:#839ab4;margin-bottom:20px;flex-wrap:wrap}.meta-strip b{font-weight:500;color:#bed1e8;margin-left:6px}.meta-strip .push{margin-left:auto}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:21px}.metric{background:var(--panel);border:1px solid var(--border);border-radius:9px;min-height:167px;padding:20px 20px 18px;position:relative;overflow:hidden}.metric::after{content:'';position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,var(--mcolor,var(--green)),transparent 80%);opacity:.55}.metric-label{font-size:12px;color:#9ab0ca;display:flex;justify-content:space-between;align-items:center}.metric-label span{font-size:9px;letter-spacing:1px;color:#4f697f}.metric-value{font-family:"Cascadia Code",Consolas,monospace;font-size:34px;font-weight:400;letter-spacing:-1px;margin:19px 0 11px;white-space:nowrap}.metric-value .unit{font-size:15px;margin-left:5px;color:#7b93ac;letter-spacing:0}.metric-sub{font-size:10px;color:#7d95ae;line-height:1.7}.positive{color:var(--green)}.negative{color:var(--red)}.blue{color:var(--blue)}.amber{color:var(--amber)}.coverage-track{height:5px;border-radius:4px;background:#27394c;margin:9px 0}.coverage-track i{display:block;height:100%;background:var(--green);border-radius:4px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:9px;margin-bottom:21px;overflow:hidden}.panel-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-head h2{font-size:15px;font-weight:550;margin:0;display:flex;align-items:center;gap:10px}.section-index{font-family:Consolas,monospace;font-size:11px;color:#4c6f86;padding-right:1px}.panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.subtle{font-size:11px;color:#7993ac}.chart-controls{padding:0 22px;display:flex;justify-content:space-between;gap:15px;align-items:center}.segments{display:flex;gap:5px;background:#0c1621;border:1px solid #223348;padding:4px;border-radius:7px}.segments button{font-size:11px;border:none;background:transparent;color:#91aac5;padding:7px 13px;white-space:nowrap}.segments button.selected{background:#1d4c43;color:var(--green)}.legend{display:flex;gap:18px;font-size:11px;color:#9bb1ca}.legend i{display:inline-block;width:13px;height:2px;vertical-align:middle;margin-right:6px;background:var(--green)}.legend .blue-line{background:var(--blue)}.chart-wrap{position:relative;height:310px;margin:20px 20px 0}.chart-wrap svg{width:100%;height:100%;overflow:visible}.chart-tip{position:absolute;pointer-events:none;background:#0b1622ed;border:1px solid #47617e;border-radius:7px;padding:10px 13px;font-size:11px;line-height:1.9;z-index:3;box-shadow:0 4px 20px #0006;min-width:195px}.chart-empty{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:13px;color:#758ba3;font-size:12px}.chart-empty .empty-icon{font-size:35px;color:#3b546d}.chart-foot{display:flex;justify-content:space-between;padding:11px 22px 17px;font-size:10px;color:#6d849d;border-top:1px solid #1d2c3e}.alert{border:1px solid #5b4931;background:#28251f;color:#cfb688;padding:11px 14px;border-radius:7px;font-size:11px;line-height:1.9;margin-bottom:20px}.alert.info{background:#122333;border-color:#2c455d;color:#91b8df}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 22px 16px;gap:20px}.search{max-width:235px;height:33px;font-size:11px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{font-size:10px;font-weight:400;color:#7e97b3;text-align:right;background:#101a26;border-top:1px solid #243447;border-bottom:1px solid #243447;padding:13px 17px}th:first-child,td:first-child{text-align:left;padding-left:22px}td{border-bottom:1px solid #223144;padding:15px 17px;text-align:right;font-family:"Cascadia Code",Consolas,monospace;color:#c8d8e9}td:first-child{font-family:inherit}td small{display:block;font-size:9px;margin-top:5px;color:#7189a3;max-width:240px;overflow:hidden;text-overflow:ellipsis}td b{font-size:12px;color:#dce7f7;font-weight:550}.tag{display:inline-block;padding:4px 8px;border-radius:4px;background:#183a32;color:var(--green);font-size:10px;font-family:inherit}.tag.missing{background:#233141;color:#849bb4}.tag.warn{background:#3c3020;color:var(--amber)}.table-summary{padding:12px 22px;color:#6d87a1;font-size:10px;display:flex;justify-content:space-between;line-height:1.8}.history-content{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;padding:0 22px 20px}.history-item{background:#0d1723;border:1px solid #223348;padding:11px 7px;border-radius:5px;text-align:center;font-size:10px}.history-item span{display:block;color:#738aa4;margin-bottom:7px}.history-item b{font-family:Consolas,monospace;font-size:13px;font-weight:400}.history-item small{display:block;font-size:8px;margin-top:6px}.trade-header{margin:32px 0 17px;display:flex;align-items:center;justify-content:space-between}.trade-header h2{font-size:20px;font-weight:500;margin:0}.trade-header p{font-size:11px;color:#7e95ae}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--border);padding:0 22px}.tabs button{border:none;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#8199b4;font-size:12px;padding:17px 20px}.tabs button.selected{color:var(--green);border-bottom-color:var(--green)}.trade-body{padding:22px}.trade-topline{display:flex;justify-content:space-between;gap:15px;align-items:center;padding-bottom:20px;border-bottom:1px solid #263447;margin-bottom:20px}.source-pill{font-size:11px;color:#8ca6be}.source-pill b{color:var(--green);font-weight:400;margin:0 5px}.trade-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 20px}.field label{display:block;font-size:11px;color:#8fa9c2;margin-bottom:9px}.field .hint{font-size:9px;line-height:1.6;color:#5e7791;margin-top:7px}.field.check{display:flex;align-items:center;gap:9px;font-size:11px;color:#94acc4;min-height:36px}.field.check label{margin:0}.input-unit{position:relative}.input-unit input{padding-right:60px}.input-unit span{position:absolute;right:11px;top:13px;color:#617e97;font-size:10px;pointer-events:none}.form-section{grid-column:1/-1;font-size:11px;color:#bed0e4;border-top:1px solid #263447;padding-top:17px;margin-top:4px}.form-actions{display:flex;gap:9px;align-items:center;margin-top:24px}.form-actions small{margin-left:auto;font-size:10px}.preview-box{border:1px solid #293a4e;border-radius:7px;margin-top:22px;overflow:hidden}.preview-head{background:#172535;padding:13px 15px;font-size:11px;display:flex;justify-content:space-between;align-items:center}.preview-empty{padding:23px;text-align:center;color:#617c95;font-size:11px}.loglist{max-height:220px;overflow:auto;padding:0 22px 18px;font-size:11px;line-height:1.8}.log{display:grid;grid-template-columns:75px 1fr;gap:12px;border-bottom:1px solid #223144;padding:9px 0}.log time{color:#5f7c96;font-family:Consolas,monospace}.log.error{color:var(--red)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card{padding:22px}.settings-card h2{font-size:16px;font-weight:500;margin:0 0 8px}.settings-card p{font-size:11px;color:#7e98b2;line-height:1.9;margin:0 0 22px}.settings-card .field{margin:16px 0}.settings-card .button{margin-top:5px}.vault-bar{display:flex;align-items:center;gap:12px;padding:19px 22px;margin-bottom:20px;border:1px solid #2e5148;border-radius:8px;background:#13251f}.vault-bar input{max-width:260px}.vault-bar p{font-size:11px;color:#83a99e;margin:5px 0}.vault-bar>div{margin-right:auto}.copy{max-width:980px;padding:24px;line-height:2;font-size:13px;color:#9db1c9}.copy h2{font-size:17px;color:#d5e5f7;font-weight:500;margin-top:25px}.copy h2:first-child{margin-top:0}.copy code{color:var(--green);background:#0b1620;border:1px solid #263b4a;border-radius:5px;padding:8px 12px;display:block;white-space:normal}.copy a{color:var(--blue)}.copy ul{padding-left:20px}.loading-line{width:100%;height:2px;background:linear-gradient(90deg,transparent,var(--green),transparent);animation:pulse 2s infinite}.empty-note{font-size:12px;color:#7893ac;text-align:center;padding:30px}.refreshing{animation:spin 1s linear infinite;display:inline-block}.mono{font-family:Consolas,monospace}footer{padding:18px 32px;border-top:1px solid #1d2b3d;display:flex;gap:20px;justify-content:space-between;color:#536c85;font-size:9px;letter-spacing:.4px}#toasts{position:fixed;bottom:25px;right:25px;z-index:99;display:flex;flex-direction:column;gap:10px}.toast{max-width:420px;padding:14px 20px;background:#193a31;border:1px solid #356555;border-radius:8px;color:#b9eada;font-size:12px;box-shadow:0 8px 30px #0007}.toast.error{background:#3b202a;border-color:#714450;color:#ffabb4}dialog{background:#121f2e;color:var(--text);border:1px solid #3a516b;border-radius:12px;width:min(600px,90vw);max-height:80vh;padding:25px}dialog::backdrop{background:#030812bb;backdrop-filter:blur(4px)}dialog h2{font-size:19px;font-weight:500}dialog p{font-size:12px;color:#9fb3ca;line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.page-head .exchange-badge{width:40px;height:40px;background:#1d2b3a;border:1px solid #334559;border-radius:9px;display:grid;place-items:center;float:left;margin-right:13px;font-size:21px}.trade-status{font-size:11px;color:var(--green)}@keyframes pulse{50%{opacity:.2}}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1700px){.metric{min-height:184px}.metric-value{font-size:39px}.chart-wrap{height:350px}}@media(max-width:1250px){.sidebar{width:200px;padding-left:11px;padding-right:11px}.workspace{margin-left:200px}main{padding:25px 22px}.metric{padding:17px 14px}.metric-value{font-size:28px}.trade-form{grid-template-columns:repeat(3,1fr)}.history-content{grid-template-columns:repeat(5,minmax(0,1fr))}.top-right .secure{display:none}}@media(max-width:950px){.metrics{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.trade-form{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start}.head-actions{flex-wrap:wrap;justify-content:flex-end}.chart-controls{flex-wrap:wrap}.meta-strip .push{margin-left:0}.top-right{font-size:9px}footer span:nth-child(2){display:none}.vault-bar{flex-wrap:wrap}.legend{gap:12px}}@media(max-width:700px){.sidebar{display:none;width:228px;box-shadow:10px 0 40px #0009}.sidebar.open{display:flex}.workspace{margin-left:0}header{padding:0 16px;height:57px}#mobile-menu{display:block;border:none;background:transparent;padding:7px}.crumb{margin-right:auto;margin-left:10px}.top-right{font-size:9px}main{padding:23px 15px}.page-head h1{font-size:23px}.page-head h1 span{display:block;font-size:12px;margin:7px 0}.head-actions{gap:7px}.status-pill{font-size:9px;padding:6px 9px}.head-actions .button{font-size:10px;padding:8px 10px}.meta-strip{gap:10px;font-size:9px;padding:11px}.metric{min-height:149px;padding:16px 13px}.metric-label{font-size:10px}.metric-label span{display:none}.metric-value{font-size:27px;margin:17px 0 9px}.metric-sub{font-size:9px}.panel-head{padding:17px}.panel-head h2{font-size:13px}.panel-head .subtle{font-size:9px;max-width:130px;text-align:right}.chart-controls{padding:0 12px;gap:13px}.segments button{padding:7px 9px;font-size:10px}.chart-wrap{margin:15px 8px 0;height:265px}.chart-foot{padding:10px;font-size:8px}.chart-foot span:last-child{display:none}.table-toolbar{padding:0 16px 13px;gap:10px}.table-toolbar .subtle{font-size:9px}.search{max-width:165px}.table-summary{padding:10px 16px;display:block;font-size:9px}.history-content{padding:0 15px 15px;gap:5px}.history-item{font-size:9px;padding:10px 3px}.history-item b{font-size:11px}.trade-header{align-items:flex-start}.trade-header h2{font-size:18px}.trade-header p{font-size:9px;text-align:right;max-width:140px}.tabs{padding:0 10px}.tabs button{font-size:11px;padding:15px}.trade-body{padding:16px}.trade-form{gap:17px 12px}.field label{font-size:10px}.form-actions{flex-wrap:wrap}.form-actions small{margin:4px 0;width:100%}.trade-topline{align-items:flex-start;gap:10px}.source-pill{font-size:10px;line-height:1.7}.trade-status{font-size:10px}.settings-card{padding:18px}.vault-bar{padding:15px}.vault-bar input{max-width:none}.settings-card .field{margin:15px 0}.copy{padding:18px;font-size:12px}footer{padding:17px;font-size:8px}.metric-value .unit{font-size:12px}.alert{font-size:10px}}
/* Live market values replace the former sidebar row numbers. */
.header-pnl{color:var(--green);font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.3}.header-pnl-label{font-size:.9em;margin-right:.28em}.header-pnl[hidden]{display:none}@media(max-width:950px){.header-pnl{font-size:17px}}@media(max-width:700px){.header-pnl{font-size:14px}.header-pnl:not([hidden])~#clock{display:none}.top-right{gap:10px}}
.execution-log-tools{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:22px;flex-wrap:wrap}.execution-log-tools>.field{min-width:230px}.execution-log-tools form{display:flex;gap:14px;align-items:center;max-width:100%}.execution-log-tools form .field{max-width:340px}.execution-log-tools .hint{max-width:380px}.execution-log-tools label{font-size:13px}.execution-log-tools .hint{font-size:11px}.execution-log-table{font-size:13px;white-space:normal}.execution-log-table th{text-align:left;font-size:12px}.execution-log-table td{text-align:left;font-family:inherit;vertical-align:top;line-height:1.7;padding-top:13px;padding-bottom:13px}.execution-log-table td:first-child{white-space:nowrap;min-width:175px;font-family:Consolas,monospace;font-size:12px}.execution-log-table td:nth-child(2),.execution-log-table td:nth-child(3),.execution-log-table td:nth-child(4){min-width:105px}.execution-log-table td:last-child{min-width:260px;overflow-wrap:anywhere;white-space:pre-wrap}.execution-log-table .log-error td:last-child,.execution-log-table .log-error td:nth-child(5){color:var(--red)}.execution-log-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;color:var(--muted);font-size:12px;flex-wrap:wrap}.execution-log-pagination>div{display:flex;gap:10px}.execution-log-panel #logs-storage-warning:empty{display:none}.execution-log-panel #logs-storage-warning .alert{margin:0 22px 18px}@media(max-width:700px){.execution-log-tools{padding:17px;gap:20px}.execution-log-tools form{align-items:flex-end;flex-wrap:wrap}.execution-log-pagination{padding:17px}}
#nav a{gap:8px;padding-left:8px;padding-right:8px}
#nav .nav-name{margin-left:0;min-width:0;flex:1;font-size:13px;opacity:1;overflow:hidden;text-overflow:ellipsis}
#nav .nav-deviation{margin-left:auto;flex:none;display:inline-flex;align-items:baseline;gap:3px;font-family:Consolas,monospace;font-size:14.4px;font-variant-numeric:tabular-nums;opacity:1;white-space:nowrap}
#nav .nav-deviation small{font-size:10.8px;color:inherit;opacity:.75}
#nav .nav-deviation.positive{color:var(--green)}
#nav .nav-deviation.negative{color:var(--red)}
#nav .nav-deviation.unavailable{color:#657d94}
/* Enlarged type stays inside the existing panel widths. */
.coverage-panel,.history-panel,.trade-panel{min-width:0}
.coverage-panel .panel-head,.history-panel .panel-head{flex-wrap:wrap}
.coverage-panel .panel-head h2,.history-panel .panel-head h2{font-size:18px}
.coverage-panel .section-index{font-size:13.2px}
.history-panel .section-index{font-size:16.5px}
.coverage-panel .panel-head p{font-size:13.2px;line-height:1.5}
.history-panel .panel-head p{font-size:16.5px;line-height:1.5}
.coverage-panel .subtle{font-size:13.2px}
.history-panel .subtle{font-size:16.5px}
.coverage-panel th,.trade-panel th{padding:12px 10px}
.coverage-panel td,.trade-panel td{padding:12px 10px}
.coverage-panel th{font-size:12px}
.coverage-panel td,.coverage-panel td b{font-size:14.4px}
.coverage-panel td small{font-size:10.8px;line-height:1.35}
.trade-panel th{font-size:13px}
.trade-panel td,.trade-panel td b{font-size:15.6px}
.trade-panel td small{font-size:11.7px;line-height:1.35}
.coverage-panel td:first-child,.coverage-panel th:first-child,.trade-panel td:first-child,.trade-panel th:first-child{padding-left:18px}
.coverage-panel td:first-child small{white-space:normal;max-width:215px}
.coverage-panel .tag{font-size:12px;white-space:nowrap}
.coverage-panel .search{font-size:13.2px;height:41px;max-width:285px}
.coverage-panel .table-toolbar{flex-wrap:wrap;gap:12px}
.coverage-panel .table-summary{font-size:12px;gap:12px;flex-wrap:wrap}
.coverage-panel .empty-note{font-size:14.4px}
.history-panel .empty-note{font-size:18px}
.history-panel .button.small{font-size:14.4px}
.history-panel .history-content{grid-template-columns:repeat(10,minmax(0,1fr));gap:7px}
.history-panel .history-item{font-size:15px;padding:10px 5px;min-width:0}
.history-panel .history-item b{font-size:19.5px;white-space:nowrap}
.history-panel .history-item small{font-size:12px;line-height:1.4}
.trade-header h2{font-size:26px}
.trade-header p{font-size:14.3px;line-height:1.5}
.trade-header .eyebrow{font-size:13px}
.trade-panel .tabs{flex-wrap:wrap}
.trade-panel .tabs button{font-size:15.6px;padding:15px 18px}
.trade-panel .trade-topline{flex-wrap:wrap;gap:10px}
.trade-panel .source-pill,.trade-panel .trade-status{font-size:14.3px;line-height:1.5}
.trade-panel .field label,.trade-panel .field.check,.trade-panel .form-section{font-size:14.3px;line-height:1.4}
.trade-panel .field .hint{font-size:11.7px;line-height:1.5}
.trade-panel input:not([type=checkbox]),.trade-panel select{font-size:18.2px;height:47px;padding-top:8px;padding-bottom:8px}
.trade-panel .input-unit input{padding-right:90px}
.trade-panel .input-unit span{font-size:13px;top:15px}
.trade-panel .form-actions{flex-wrap:wrap;align-items:center}
.trade-panel .form-actions .button{font-size:18.2px;padding:10px 15px}
.trade-panel .form-actions small{font-size:13px;line-height:1.5}
.trade-panel .preview-head,.trade-panel .preview-head .subtle,.trade-panel .preview-empty{font-size:14.3px;line-height:1.5}
.trade-panel .preview-head{gap:10px;flex-wrap:wrap}
.plan-table th small{display:block;color:var(--muted);font-size:10.4px;margin-top:5px}
.plan-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:19px 18px;background:#101b28;border-top:1px solid var(--border)}
.plan-totals>div{min-width:0}
.plan-totals span{display:block;color:#8fa9c2;font-size:14.3px;margin-bottom:9px}
.plan-totals strong{display:block;color:#e3edf9;font-size:20.8px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.35;overflow-wrap:anywhere}
.plan-totals strong small{color:inherit;font-size:14.3px;font-weight:550;white-space:nowrap}
.display-settings{padding:20px 22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);gap:22px;align-items:center}
.display-settings h2{font-size:16px;font-weight:500;margin:0 0 8px}
.display-settings p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
.display-settings .field{margin:0}
@media(max-width:1250px){.history-panel .history-content{grid-template-columns:repeat(5,minmax(0,1fr))}.plan-totals strong{font-size:19.0667px}.trade-header p{max-width:48%;text-align:right}}
@media(max-width:950px){.display-settings{grid-template-columns:1fr}.trade-panel .form-actions small{margin-left:0;flex-basis:100%}.plan-totals{gap:10px;padding:17px 14px}}
@media(max-width:700px){
  .coverage-panel .panel-head h2,.history-panel .panel-head h2{font-size:15.6px}
  .coverage-panel .panel-head .subtle,.history-panel .panel-head .subtle{max-width:none;text-align:left}
  .coverage-panel .panel-head .subtle,.coverage-panel .table-toolbar .subtle{font-size:10.8px}
  .history-panel .panel-head .subtle{font-size:13.5px}
  .coverage-panel .search{font-size:13.2px;max-width:none}
  .coverage-panel .table-summary{font-size:10.8px}
  .history-panel .history-content{grid-template-columns:repeat(4,minmax(0,1fr))}
  .history-panel .history-item{font-size:13.5px}
  .history-panel .history-item b{font-size:16.5px}
  .trade-header h2{font-size:23.4px}
  .trade-header p{font-size:11.7px;max-width:45%}
  .trade-panel .tabs button{font-size:14.3px;padding:13px 9px}
  .trade-panel .field label,.trade-panel .field.check{font-size:13px}
  .trade-panel .trade-status,.trade-panel .source-pill{font-size:13px}
  .trade-panel .form-actions .button{font-size:15.6px}
  .trade-panel .preview-head,.trade-panel .preview-head .subtle{font-size:13px}
  .plan-totals{gap:10px;padding:15px 10px}
  .plan-totals span{font-size:11.7px}
  .plan-totals strong{font-size:15.6px}
  .plan-totals strong small{font-size:10.4px}
}

.position-pnl{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--border,#26384b);flex-wrap:wrap}
.position-pnl span{display:block;color:var(--muted,#829cb9);font-size:14px;margin-bottom:8px}
.position-pnl strong{font-size:26px;font-variant-numeric:tabular-nums}
.position-pnl strong small{font-size:14px}
.position-pnl p{margin:0;color:var(--muted,#829cb9);font-size:13px;line-height:1.8}
#refresh-settings{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
#refresh-settings .field{min-width:150px}
#refresh-saved{display:block;flex-basis:100%;color:var(--green,#4cdebb)}

/* Keep the hover card footprint while enlarging its timestamp and deviation. */
.chart-tip>span{display:block;line-height:20.8px;white-space:nowrap}
.chart-tip .chart-tip-time,.chart-tip .chart-tip-deviation{font-size:1.3em}

/* Nine monitoring sources retain independent live badges in a scrollable rail. */
.trade-panel .trade-status.waiting{color:var(--amber)}
.sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar>nav,.sidebar>.brand,.sidebar>.nav-label,.sidebar>.sidebar-bottom{flex-shrink:0}.sidebar .brand{margin-bottom:28px}#nav a{padding-top:9px;padding-bottom:9px}.mexc{color:#4ca4ff}.extended{color:#d8ec8b}.bingx{color:#569dff}.okx{color:#eef3fa}.bitget{color:#54d6de}

.gate-mid-toggle{font-size:14px!important}.gate-mid-toggle[aria-pressed=true]{background:#173d34;border-color:#367c69;color:var(--green)}

#retry-settings label,.log-module-filter label{font-size:14px}.log-module-filter .hint{font-size:12px}

.monitor-subtitle{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.baseline-choice{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;max-width:100%}
.baseline-choice select{width:auto;min-width:175px;max-width:100%;padding:7px 30px 7px 10px;font-size:14px}
.catalog-settings{padding:20px 22px}
.catalog-settings-head{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}
.catalog-settings h2{margin:0 0 8px;font-size:16px;font-weight:500}
.catalog-settings p{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 12px;max-width:850px}
.catalog-settings td,.catalog-settings th{font-size:14px}
.catalog-settings td:last-child{white-space:normal;min-width:230px}
.catalog-settings td small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
#catalog-results{margin-top:14px}
@media(max-width:950px){.monitor-subtitle{gap:8px}.baseline-choice{flex-basis:100%}.catalog-settings-head{gap:10px}.catalog-settings-head .button{white-space:normal}}

.signed-out>.sidebar,.signed-out>.workspace{display:none}.signed-out{display:block}#auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,460px);padding:34px;border:1px solid var(--border);border-radius:16px;background:var(--panel)}.auth-card h1{font-size:28px;margin:18px 0}.auth-card p{color:var(--muted);line-height:1.7}.auth-card label{display:block;margin:20px 0}.auth-card input{display:block;width:100%;margin-top:8px;padding:12px;background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:7px}.auth-card .button{margin:10px 8px 10px 0}.server-secret{overflow-wrap:anywhere;white-space:pre-wrap;padding:16px;color:var(--accent)}#admin-users{margin-top:20px}.settings-card button{margin:6px 6px 0 0}.settings-card label,.auth-card label{color:var(--muted)}#server-preferences{padding:20px 0}#password-form{margin:20px 0}#totp-result form{display:flex;gap:12px;margin:16px 0}
