.hbl-dialog{width:min(1220px,96vw)!important;max-width:1220px!important}.hbl{padding:20px;color:var(--text-primary,#e5e9e2);font-size:14px;line-height:1.6;max-height:83vh;overflow:auto}.hbl-intro{max-width:78ch}.hbl-identity,.hbl-actions,.hbl nav,.hbl footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.hbl-identity{justify-content:space-between;border-bottom:1px solid #76857544;padding-bottom:14px}.hbl-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}.hbl label{display:grid;gap:6px}.hbl input,.hbl select,.hbl textarea{width:100%;padding:10px;border:1px solid #87948360;border-radius:9px;background:var(--bg-secondary,#212722);color:inherit;min-height:44px}.hbl textarea{font-family:ui-monospace,monospace}.hbl button{min-height:44px;padding:10px 14px;border:1px solid #87948360;border-radius:9px;background:var(--bg-secondary,#252c27);color:inherit;cursor:pointer}.hbl button:disabled{opacity:.5;cursor:default}.hbl button:focus-visible,.hbl input:focus-visible,.hbl summary:focus-visible{outline:3px solid #6bc7b2;outline-offset:3px}.hbl button[aria-pressed=true],.hbl button[type=submit]{background:#317665;color:white}.hbl nav{margin:22px 0;border-block:1px solid #87948344;padding:12px 0}.hbl-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.hbl-stats article{padding:13px;border:1px solid #87948340;border-radius:11px}.hbl-stats small,.hbl-stats strong{display:block}.hbl-stats strong{font-size:23px;font-variant-numeric:tabular-nums}.hbl-plot{margin:18px 0;border:1px solid #87948340;border-radius:12px;padding:14px;overflow:hidden}.hbl-plot svg{width:100%;height:auto;min-height:160px}.hbl-plot text{fill:currentColor;font-size:11px}.hbl-grid{stroke:#87948330}.hbl figcaption{font-weight:650;margin-bottom:10px}.hbl-progress{display:flex;gap:12px;align-items:center;margin-top:14px}.hbl-progress progress{max-width:35%}.hbl-error{padding:12px;background:#9e465533;border:1px solid #d47c88;border-radius:8px}.hbl-table{overflow:auto}.hbl table{width:100%;border-collapse:collapse;white-space:nowrap}.hbl td,.hbl th{padding:12px;text-align:left;border-bottom:1px solid #87948335;font-variant-numeric:tabular-nums}.hbl details{margin:14px 0}.hbl summary{cursor:pointer;min-height:44px;padding:10px 0}.hbl pre{overflow:auto;max-height:350px;white-space:pre-wrap;overflow-wrap:anywhere}.hbl footer{border-top:1px solid #87948344;padding-top:18px;margin-top:22px}.hbl footer small{flex-basis:100%}.hbl-empty{padding:30px 0}@media(max-width:600px){.hbl{padding:12px}.hbl-form{grid-template-columns:1fr 1fr}.hbl-stats{grid-template-columns:1fr 1fr}.hbl nav button{flex:1}.hbl-progress{display:block}.hbl-progress progress{max-width:100%;width:100%}.hbl-identity{display:block}.hbl-identity span{display:block}.hbl-stats strong{font-size:19px}}
.hbl-trade-plots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hbl-trade-plots .hbl-plot{min-width:0;margin:0}.hbl-trade-plots .hbl-plot figcaption{min-height:44px}@media(max-width:700px){.hbl-trade-plots{grid-template-columns:1fr}}
.hbl{color:var(--ap-ink,#e5e9df);font-family:inherit;box-sizing:border-box}.hbl-study-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px}.hbl-eyebrow{font-size:10px;letter-spacing:.12em;color:var(--ap-muted,#a8b29e)}.hbl-intro{font-size:16px;font-weight:500;line-height:1.5;margin:5px 0 8px}.hbl-study-bar .hbl-background{flex:none;font-size:11px;min-height:36px;padding:8px 11px;background:transparent;border-radius:8px}.hbl-scope-note{font-size:11px;line-height:1.6;color:var(--ap-muted,#a8b29e);max-width:95ch;margin:0 0 18px}.hbl-identity{padding:12px 0;font-size:12px}.hbl-identity strong{font-size:14px}.hbl-identity span{font-size:11px;color:var(--ap-muted,#a8b29e)}.hbl label{font-size:12px}.hbl input,.hbl select,.hbl textarea{box-sizing:border-box;max-width:100%;font:inherit}.hbl .hbl-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.hbl button{font:inherit;font-size:12px;line-height:1.5}.hbl button[type=submit],.hbl nav button[aria-pressed=true]{background:var(--ap-accent,#d8e77d);color:var(--ap-accent-contrast,#20251a);border-color:transparent}.hbl .hbl-actions{gap:8px;align-items:stretch}.hbl .hbl-actions button{flex:1 1 170px;padding:10px 12px}.hbl-study-select{max-width:600px;margin:10px 0 16px}.hbl .hbl-progress{display:block;padding:16px;margin:18px 0;border:1px solid var(--ap-line,#5a6544);border-radius:12px;background:var(--ap-panel,#20251e)}.hbl-progress-heading,.hbl-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hbl-progress-heading strong{font-size:13px;font-weight:600}.hbl-progress-heading>span{font-size:11px;font-variant-numeric:tabular-nums;color:var(--ap-muted,#a8b29e)}.hbl .hbl-progress progress{display:block;width:100%;max-width:100%;height:7px;accent-color:var(--ap-accent,#d8e77d);margin:13px 0}.hbl-progress-meta{font-size:11px;line-height:1.6}.hbl-progress-meta>span:last-child,.hbl-progress small{color:var(--ap-muted,#a8b29e)}.hbl-progress small{display:block;margin-top:6px;font-size:10px}.hbl-copy-note{padding:14px;border:1px solid var(--ap-line,#5a6544);border-radius:10px;margin:14px 0;font-size:12px}.hbl-copy-note p{font-size:11px;color:var(--ap-muted,#a8b29e)}.hbl nav{gap:6px}.hbl nav button{min-height:36px;font-size:11px;padding:8px 11px}.hbl-stats article{background:var(--ap-panel,#20251e)}.hbl-stats small{font-size:11px;color:var(--ap-muted,#a8b29e)}.hbl-stats strong{font-size:21px;font-weight:500}.hbl footer small{font-size:11px;line-height:1.6;color:var(--ap-muted,#a8b29e)}
.hbl-global-status{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--ap-line,#48503b);border-radius:10px;background:var(--ap-panel,#20251e);margin:8px 12px;color:var(--ap-ink,#e5e9df);font-family:inherit;min-width:0}.hbl-global-status>div{flex:1;min-width:0;display:grid;gap:3px}.hbl-global-status strong{font-size:11px;font-weight:600;overflow-wrap:anywhere}.hbl-global-status span,.hbl-global-status small{font-size:10px;color:var(--ap-muted,#a8b29e);line-height:1.5}.hbl-global-status button{font:inherit;font-size:11px;padding:7px 10px;min-height:32px;border:1px solid var(--ap-line,#48503b);border-radius:7px;color:inherit;background:transparent;cursor:pointer;flex:none}.hbl-global-status button:focus-visible{outline:2px solid var(--ap-accent,#d8e77d);outline-offset:3px}.hbl-global-status button:disabled{opacity:.5;cursor:default}
@media(max-width:700px){.hbl-study-bar{flex-wrap:wrap;gap:8px}.hbl .hbl-form{grid-template-columns:repeat(2,minmax(0,1fr))}.hbl-study-bar .hbl-background{width:100%}.hbl .hbl-actions button{flex-basis:calc(50% - 8px)}.hbl-progress-heading,.hbl-progress-meta{gap:5px}.hbl-global-status{margin:6px 8px;gap:8px;flex-wrap:wrap}.hbl-global-status>div{flex-basis:65%}.hbl-global-status button{padding:7px 8px}}@media(max-width:380px){.hbl .hbl-form{grid-template-columns:minmax(0,1fr)}.hbl .hbl-actions button{flex-basis:100%}}

.hbl-study-settings{padding:16px;border:1px solid var(--ap-line,#48503b);border-radius:12px;background:var(--ap-panel,#20251e);margin:16px 0 20px}.hbl h3{font-size:16px;margin:18px 0 12px}.hbl-study-settings h3{margin-top:0}.hbl-periods{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.hbl-periods button{min-height:34px;padding:6px 12px;background:transparent;border:1px solid var(--ap-line,#48503b);border-radius:18px}.hbl-study-settings small,.hbl-preflight{display:block;font-size:11px;line-height:1.6;color:var(--ap-muted,#a8b29e)}.hbl-result-scope{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.hbl-result-scope label{display:grid;gap:6px;max-width:100%;min-width:210px}.hbl-diagnostics{border:1px solid var(--ap-line,#48503b);border-radius:12px;padding:16px;margin:12px 0 18px}.hbl-diagnostics h3{margin-top:0}.hbl-diagnostics>p{font-size:12px;line-height:1.7}.hbl-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hbl-counts>div{display:grid;gap:5px;padding:10px;background:var(--ap-panel,#20251e);border-radius:9px}.hbl-counts strong{font-size:20px;font-weight:500}.hbl-counts span{font-size:10px;line-height:1.5;color:var(--ap-muted,#a8b29e)}.hbl-diagnostics li{font-size:11px;line-height:1.7;overflow-wrap:anywhere}.hbl-result-analysis{border:1px solid var(--ap-line,#48503b);border-radius:12px;padding:18px;margin:20px 0}.hbl-result-analysis h3{margin-top:0}.hbl-result-analysis p,.hbl-result-analysis small{font-size:12px;line-height:1.7}.hbl-result-analysis label{display:grid;gap:8px;margin:12px 0}.hbl-analysis-answer{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}.hbl-rule-builder{padding:16px;border:1px solid var(--ap-line,#48503b);border-radius:10px;margin:14px 0}.hbl-rule-builder p{font-size:12px;line-height:1.6}.hbl-rule-builder h4{margin-top:0}.hbl .hbl-form label{min-width:0}.hbl select{width:100%;text-overflow:ellipsis}.hbl-study-bar .hbl-background{align-self:flex-start}.hbl-study-bar .hbl-intro{font-size:14px;font-weight:400}.hbl-stats strong{font-variant-numeric:tabular-nums}.hbl-result-analysis .hbl-actions{display:flex}
@media(max-width:700px){.hbl-study-settings,.hbl-diagnostics,.hbl-result-analysis{padding:12px}.hbl-result-scope label{width:100%;min-width:0}.hbl-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.hbl-study-bar .hbl-background{width:auto;margin-left:auto}.hbl .hbl-form{grid-template-columns:repeat(2,minmax(0,1fr))}.hbl h3{font-size:15px}.hbl-periods button{flex:1}.hbl .hbl-study-bar{gap:4px}}
@media(max-width:380px){.hbl .hbl-form{grid-template-columns:minmax(0,1fr)}}
.hbl-catalog-filters{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:14px 0}.hbl-variable-catalog>p{font-size:12px;line-height:1.7}.hbl-variable-catalog td{white-space:normal;vertical-align:top;min-width:130px}.hbl-variable-catalog td:first-child{min-width:235px}.hbl-variable-catalog code,.hbl-variable-catalog td small{display:block;font-size:10px;color:var(--ap-muted,#a8b29e);overflow-wrap:anywhere;margin-top:5px}.hbl-variable-catalog td button{display:block;margin-top:8px;min-height:34px;padding:6px 9px;font-size:10px}.hbl-current-rules{padding:14px;border:1px solid var(--ap-line,#48503b);border-radius:10px}.hbl-current-rules ol{padding-left:22px;margin-bottom:0}.hbl-current-rules li{padding:8px 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.hbl-current-rules li>button{margin-left:10px;min-height:32px;padding:5px 10px;font-size:10px}.hbl-variable-help{padding:12px;background:var(--ap-panel,#20251e);border-radius:8px;margin-bottom:14px}.hbl-variable-help>p{margin:6px 0}.hbl-variable-help small{font-size:11px;color:var(--ap-muted,#a8b29e)}.hbl-value-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.hbl-value-chips button{min-height:32px;font-size:10px;padding:5px 9px;overflow-wrap:anywhere;max-width:100%}.hbl-variable-catalog th{font-size:11px}.hbl-variable-catalog strong{font-weight:500}
@media(max-width:600px){.hbl-catalog-filters{grid-template-columns:minmax(0,1fr)}.hbl-current-rules{padding:10px}.hbl-variable-catalog td:first-child{min-width:190px}}
@media(max-width:700px){.hbl-variable-catalog .hbl-table{overflow:visible}.hbl-variable-catalog table,.hbl-variable-catalog tbody,.hbl-variable-catalog tr,.hbl-variable-catalog td{display:block;width:100%;box-sizing:border-box}.hbl-variable-catalog thead{display:none}.hbl-variable-catalog tbody{display:grid;gap:12px}.hbl-variable-catalog tr{padding:12px;border:1px solid var(--ap-line,#48503b);border-radius:10px;background:var(--ap-panel,#20251e)}.hbl-variable-catalog td,.hbl-variable-catalog td:first-child{min-width:0;padding:7px 0;border:0}.hbl-variable-catalog td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:var(--ap-muted,#a8b29e);margin-bottom:4px}.hbl-variable-catalog td button{min-height:40px;width:100%;font-size:11px}.hbl-variable-catalog td:first-child strong{display:block;overflow-wrap:anywhere}}
.hbl-advanced-management,.hbl-draft-review,.hbl-alpha-review{border:1px solid var(--ap-line,#48503b);border-radius:12px;padding:15px;margin:16px 0}.hbl-advanced-management>summary{font-weight:600}.hbl-advanced-management p,.hbl-draft-review p,.hbl-alpha-review p{font-size:12px;line-height:1.7}.hbl-advanced-management small,.hbl-draft-review small,.hbl-alpha-review small{display:block;color:var(--ap-muted,#a8b29e);font-size:11px;line-height:1.6}.hbl-zone-selector,.hbl-partial-targets{border:1px solid var(--ap-line,#48503b);border-radius:9px;padding:12px;margin:14px 0;min-width:0}.hbl-zone-selector legend,.hbl-partial-targets legend{font-size:12px;padding:0 6px}.hbl-partial-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:12px 0}.hbl-alpha-review ul,.hbl-draft-review ul{padding-left:20px;font-size:12px;line-height:1.7}.hbl-alpha-review li{margin:10px 0}.hbl-alpha-review li strong{font-weight:500}.hbl-draft-review{background:var(--ap-panel,#20251e)}.hm-backtest-replay-status{position:absolute;left:60px;right:85px;top:10px;z-index:24;display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:760px;padding:9px 12px;border:1px solid var(--ap-line,#48503b);border-radius:9px;background:var(--ap-panel,#20251e);color:var(--ap-ink,#e5e9df);font:11px/1.5 system-ui;box-shadow:0 4px 18px #0003}.hm-backtest-replay-status strong{font-weight:600}.hm-backtest-replay-status small{flex-basis:100%;font-size:10px}.hm-backtest-replay-status button{border:1px solid var(--ap-line,#48503b);border-radius:6px;background:transparent;color:inherit;min-height:30px;padding:5px 8px;cursor:pointer;font:inherit}.hm-backtest-replay-status button:focus-visible{outline:2px solid var(--ap-accent,#d8e77d);outline-offset:2px}
@media(max-width:700px){.hbl-partial-row{grid-template-columns:1fr 1fr}.hbl-partial-row>button{grid-column:1/-1}.hbl-advanced-management,.hbl-alpha-review,.hbl-draft-review{padding:11px}.hm-backtest-replay-status{left:35px;right:40px;top:5px;padding:7px;font-size:10px;gap:5px}.hm-backtest-replay-status>span{flex-basis:100%}.hm-backtest-replay-status small{display:none}.hm-backtest-replay-status button{min-height:28px;font-size:10px}}
