:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;font-size:16px;--bg:#171924;--panel:#12141f;--line:#2a2d39;--text:#c8cbd5;--muted:#9298a9;--accent:#7e7ae9;--up:#25a893;--down:#ef4558}
.menu[data-kind="markets"]{max-height:min(420px,calc(100dvh - 110px));overflow-y:auto}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer;background:none;border:0}button:hover{background:#ffffff0b}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #8986ff;outline-offset:-2px}button.active,button.selected{color:#6882ff}button[hidden],[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#terminal{height:100dvh;display:flex;flex-direction:column}.navigation{height:36px;min-height:36px;background:#fff;color:#717581;display:flex;align-items:stretch;border-bottom:1px solid #dcdde0;z-index:5}.brand{display:flex;align-items:center;gap:7px;flex-shrink:0;padding:0 20px;color:#635ecc}.brand svg{width:25px;height:25px;stroke-width:2}.brand span{text-align:left;font-size:10px;line-height:11px;letter-spacing:.2px}.brand b{font-size:11px;font-weight:600}.navigation nav{display:flex;align-items:stretch;gap:7px;flex:1}.nav-item{padding:0 17px;white-space:nowrap;font-size:14px;font-weight:600;display:flex;align-items:center;gap:14px}.nav-item:hover{background:#f2f2f8}.nav-item.active{color:#6862de}.chevron{display:inline-block;border-right:1.6px solid #9399a5;border-bottom:1.6px solid #9399a5;width:7px;height:7px;transform:rotate(45deg);margin-top:-4px}.flame{color:#dc6c30;font-size:22px}.camera{padding:4px 22px;color:#161a24}.camera svg{width:21px}.toolbar{height:43px;min-height:43px;display:flex;align-items:center;gap:7px;background:var(--panel);border-bottom:4px solid var(--line);white-space:nowrap;overflow:auto;scrollbar-width:none;padding:0 9px;font-size:14px}.toolbar::-webkit-scrollbar{display:none}.toolbar button{height:35px;min-width:28px;padding:4px}.toolbar .symbol{font-size:13px;padding:0 2px}.separator{display:block;align-self:center;width:1px;height:23px;flex-shrink:0;background:#40434d;margin:0 3px}.toolbar svg{width:22px;height:22px;vertical-align:middle}.icon-label{display:flex;align-items:center}.toolbar input[type=number]{width:52px;background:#343434;color:#d0d0d0;border:1px solid #777;border-right:2px solid #b8bbc5;border-bottom:2px solid #b8bbc5;height:26px;padding:2px 4px;border-radius:0;appearance:textfield}.toolbar input::-webkit-inner-spin-button{appearance:none}.toolbar #hours{width:49px}.toolbar #threshold{width:96px;font-variant-numeric:tabular-nums}.toolbar #group{width:40px}.toolbar select{background:#383838;color:#ddd;border:1px solid #8b8b8b;border-radius:2px;height:27px;width:73px;font-size:14px}.intensity{display:flex;flex-direction:column;gap:1px;width:91px;flex-shrink:0}#color-ramp{height:10px;background:linear-gradient(90deg,blue,cyan,lime,yellow,red)}input[type=range]{accent-color:#98c7f9;height:12px;width:100%;margin:0;cursor:pointer}.gold{color:#ffae19}.pools-label{margin-left:1px}.leverage-controls{display:flex;align-items:center;gap:13px}.leverage-controls label{display:flex;align-items:center;gap:4px;font-size:13px;cursor:pointer}.leverage-controls input{accent-color:#9dc9fb;margin:0;width:13px;height:13px;cursor:pointer}.leverage-controls output{min-width:34px;font-variant-numeric:tabular-nums}.total{padding-left:9px;border-left:1px solid #40434d;font-size:13px}.workspace{display:flex;min-height:0;flex:1}.drawing-tools{background:var(--panel);width:54px;min-width:54px;border-right:4px solid var(--line);display:flex;flex-direction:column;align-items:center;overflow-y:auto;scrollbar-width:none;padding-top:7px}.drawing-tools button{height:36px;min-height:36px;width:43px;display:flex;align-items:center;justify-content:center}.drawing-tools svg{height:27px;width:27px;stroke-width:1.2}.drawing-tools .tool-divider{width:34px;min-height:1px;background:#383c48;margin:6px 0}.spacer{flex:1}.chart-area{position:relative;min-width:0;flex:1;overflow:hidden;background:linear-gradient(#191b26,#121520)}#chart{display:block;width:100%;height:100%;touch-action:none}.chart-heading{position:absolute;left:9px;top:8px;font-size:14px;display:flex;gap:7px;align-items:center;pointer-events:none;white-space:nowrap;max-width:calc(100% - 80px);overflow:hidden;text-shadow:0 1px 3px #141722}.coin{width:17px;height:17px;display:flex;align-items:center;justify-content:center;font-size:10px;background:#769882;border-radius:50%;color:#e5ece6}.chart-heading #ohlc{font-size:12px;margin-left:8px;font-variant-numeric:tabular-nums}#ohlc .up{color:var(--up)}#ohlc .down{color:var(--down)}.model-badge{position:absolute;right:82px;top:10px;font-size:12px;color:#a2a6b8;background:#171925d9;padding:4px 7px;border-radius:3px}.model-badge span{margin-left:4px}.watermark{position:absolute;right:20%;bottom:90px;font-size:49px;color:#a7adc4;opacity:.065;pointer-events:none;font-weight:700;line-height:.96;text-align:right;letter-spacing:-2px}.watermark span{display:block;font-size:39px;font-weight:300;letter-spacing:-1px}.chart-message{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:#171924e8;z-index:2;font-size:14px}.chart-message span{color:var(--muted)}.chart-message strong{font-weight:500;font-size:17px}.loader{width:27px;height:27px;border:2px solid #383b50;border-top-color:#8580ed;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.chart-message button{background:#6862d6;color:#fff;border-radius:4px;padding:9px 18px}.statusbar{height:36px;min-height:36px;background:var(--panel);border-top:1px solid var(--line);padding:0 9px 0 64px;display:flex;align-items:center;gap:9px;font-size:13px}.statusbar button{padding:4px 5px;height:28px;white-space:nowrap}.ranges{display:flex;gap:7px;margin-right:14px}.status-spacer{flex:1}#connection{font-size:12px;display:flex;gap:6px;align-items:center}.connection-dot{width:6px;height:6px;background:#c68c46;border-radius:50%}#connection.live .connection-dot{background:#55b7a2}#connection.error .connection-dot{background:#e15e70}#pool-status{font-size:12px;color:#787f93}#clock{font-size:13px;font-variant-numeric:tabular-nums;margin-right:6px}.menu{position:fixed;z-index:15;min-width:180px;max-width:calc(100vw - 16px);background:#202330;border:1px solid #373b4b;box-shadow:0 6px 24px #0007;border-radius:4px;padding:6px}.menu button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:14px;text-align:left;border-radius:2px}.menu .menu-title{padding:7px 12px;font-size:12px;color:#8e94a5}.menu button:hover,.menu button.chosen{background:#32354b}.menu button small{font-size:12px;color:#9da6bc}.menu .swatch{width:76px;height:9px;border-radius:1px}.menu hr{border:0;border-top:1px solid #373b4b;margin:4px}dialog{background:#1b1e2b;color:#d0d4e0;border:1px solid #41475a;border-radius:8px;padding:28px;width:min(580px,calc(100vw - 28px));max-height:88vh;box-shadow:0 20px 90px #000b}dialog::backdrop{background:#07091288;backdrop-filter:blur(3px)}dialog form{position:absolute;right:12px;top:8px}.close-dialog{font-size:26px;padding:0 7px;color:#969caf}dialog h2{font-size:22px;font-weight:500;margin:0 28px 21px 0}dialog h3{font-size:15px;font-weight:600;margin:23px 0 8px}dialog p,dialog li{font-size:14px;line-height:1.65;color:#aeb5c8}dialog a{color:#ada8ff}dialog .note{padding:12px 14px;border-left:2px solid #8b84e9;background:#7770dc0e}dialog .setting{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #303445;font-size:14px;gap:20px}dialog input[type=checkbox]{accent-color:#8d85ed;width:17px;height:17px}dialog input[type=number],dialog input[type=text]{background:#111521;border:1px solid #42485c;color:#d2d7e4;padding:8px;width:112px;border-radius:4px}dialog input[type=text]{width:100%;margin:12px 0}dialog .primary{padding:10px 18px;background:#746bdd;border-radius:4px;color:white;margin-top:18px}dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;font-size:14px}dialog dt{color:#929aad}dialog dd{text-align:right;margin:0}dialog code{font-size:12px;color:#c9c4ff}#tooltip{position:absolute;z-index:4;pointer-events:none;width:206px;background:#121521f2;border:1px solid #454c64;border-radius:4px;padding:11px 13px;font-size:12px;box-shadow:0 4px 16px #0005}#tooltip strong{font-weight:500;color:#eee}#tooltip div{display:flex;justify-content:space-between;margin-top:7px;color:#a5aec4}#tooltip small{display:block;color:#868da1;margin-top:9px;font-size:11px}#toast{position:fixed;bottom:54px;left:50%;transform:translateX(-50%);z-index:20;background:#32364b;border:1px solid #505873;border-radius:5px;padding:11px 18px;font-size:14px;box-shadow:0 5px 24px #0006;max-width:90vw}.chart-zoom{display:flex;position:absolute;bottom:43px;left:50%;transform:translateX(-50%);background:#232633bd;border:1px solid #343b50;border-radius:4px;opacity:0;transition:opacity .15s}.chart-area:hover .chart-zoom{opacity:1}.chart-zoom button{font-size:20px;padding:1px 13px;color:#9ca7c3}#replay{position:absolute;bottom:67px;left:12%;right:17%;display:flex;align-items:center;gap:14px;border:1px solid #514b78;background:#202234f5;border-radius:5px;padding:9px 12px;font-size:12px;z-index:5}#replay-range{flex:1;width:auto}.replay-label{font-size:10px;color:#b0a9f5;white-space:nowrap;letter-spacing:1px}#replay button{white-space:nowrap}.light{--bg:#f3f4f8;--panel:#e8eaf1;--line:#d2d6e1;--text:#363c4c;--muted:#6b7285}.light .chart-area{background:#f5f6fa}.light .toolbar input,.light .toolbar select{background:#e0e3ed;color:#34394b}.light .model-badge{background:#e6e8ef;color:#62697d}
.toolbar>*{flex-shrink:0}.toolbar .symbol{min-width:max-content}.toolbar{scrollbar-width:thin;scrollbar-color:#3d4256 transparent}.toolbar::-webkit-scrollbar{display:block;height:3px}.toolbar::-webkit-scrollbar-thumb{background:#3d4256}
@media(min-width:1700px){.toolbar{gap:10px}.navigation nav{gap:16px}.nav-item{padding:0 22px}.leverage-controls{gap:18px}}
@media(max-width:1200px){.brand{padding:0 12px}.navigation nav{gap:0;overflow-x:auto;scrollbar-width:none}.nav-item{padding:0 12px;font-size:13px;gap:10px}.camera{padding:4px 12px}.market-nav{display:none}.model-badge{top:35px}#pool-status{display:none}}
@media(max-width:700px){.navigation{height:40px;min-height:40px}.brand span{display:none}.brand{padding:0 9px}.nav-item{padding:0 10px}.camera{padding:4px 9px}.drawing-tools{width:41px;min-width:41px;border-right-width:2px}.drawing-tools button{width:36px;height:34px;min-height:34px}.drawing-tools svg{width:23px;height:23px}.drawing-tools .tool-divider{width:28px}.toolbar{height:44px;min-height:44px}.chart-heading{font-size:12px;left:6px;top:8px}.chart-heading #ohlc{display:none}.coin{display:none}.model-badge{top:31px;right:75px;font-size:11px}.statusbar{padding-left:44px;gap:1px;font-size:12px}.ranges{gap:0;margin-right:5px}.ranges button[data-range="6"],.ranges button[data-range="120"]{display:none}#connection-text{max-width:86px;overflow:hidden;text-overflow:ellipsis}#clock{font-size:11px;margin:0}#connection{font-size:11px}.statusbar>.separator{display:none}#percent{display:none}.watermark{font-size:34px;right:22%;bottom:75px}.watermark span{font-size:27px}#replay{left:8px;right:80px;gap:7px;flex-wrap:wrap}#replay-time{display:none}.chart-zoom{opacity:.7}.chart-zoom button{padding:0 10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.navigation nav{min-width:0;overflow-x:auto;scrollbar-width:none}.reset-terminal{display:flex;align-items:center;gap:6px;align-self:center;margin:0 6px 0 12px;padding:5px 12px;border-radius:4px;background:#6c63d9;color:#fff;font-size:13px;font-weight:600;flex-shrink:0;box-shadow:0 1px 4px #625bc32b}.reset-terminal:hover{background:#5850bf}.reset-terminal svg{width:16px;height:16px;stroke-width:1.8}.market-nav img{width:19px;height:19px;border-radius:50%;object-fit:contain}.coin{background:none}.coin img{width:100%;height:100%;border-radius:50%;object-fit:contain}.menu .market-option{display:flex;gap:11px;align-items:center;color:#d7dbea;text-decoration:none;padding:10px;border-radius:4px;font-size:14px}.menu .market-option:hover{background:#32354b}.market-option img{width:30px;height:30px;object-fit:contain;border-radius:50%}.market-option span{flex:1}.market-option small{display:block;font-size:12px;color:#949eb3;margin-top:4px}@media(max-width:1200px){.navigation .market-nav{display:flex}.reset-terminal{margin-left:5px;padding:5px 10px}}@media(max-width:700px){.reset-terminal{margin-right:2px;padding:5px 8px}.reset-terminal svg{width:14px;height:14px}}
.group-control{position:relative;display:inline-flex;width:58px;height:26px}.toolbar .group-control #group{width:100%;padding-right:21px}.group-stepper{position:absolute;top:1px;right:2px;bottom:2px;width:17px;display:flex;flex-direction:column;border-left:1px solid #666}.toolbar .group-stepper button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;width:100%;height:0;padding:0;color:#c5c4df;border-radius:0}.toolbar .group-stepper button+button{border-top:1px solid #555}.toolbar .group-stepper svg{width:12px;height:8px;fill:none;stroke:currentColor;stroke-width:1.6}.toolbar .group-stepper button:hover:not(:disabled){background:#6c63d9;color:#fff}.toolbar .group-stepper button:disabled{opacity:.3;cursor:default}
.heatmap-filter-controls{display:flex;align-items:center;gap:4px}.heatmap-filter-controls .intensity{width:90px;gap:0;transform:translateY(-4px)}.threshold-control{position:relative;display:inline-flex;width:66px;height:23px}.toolbar .threshold-control #threshold{width:100%;height:23px;padding:0 23px 0 3px;border:2px inset #c4c4c4;background:#383838;color:#c8cbd5;font:400 14px Arial,Helvetica,sans-serif;font-variant-numeric:normal}.threshold-control #threshold-unit{position:absolute;right:15px;top:5px;font:10px Arial,Helvetica,sans-serif;pointer-events:none;color:#c8cbd5}.threshold-stepper{position:absolute;top:2px;right:2px;bottom:2px;width:12px;display:flex;flex-direction:column}.toolbar .threshold-stepper button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;width:100%;height:0;padding:0;border-radius:0;color:#fff}.toolbar .threshold-stepper svg{width:10px;height:8px;fill:currentColor;stroke:none}.toolbar .threshold-stepper button:hover:not(:disabled){background:#555}.toolbar .threshold-stepper button:disabled{opacity:.3;cursor:default}
#tooltip{width:250px}#tooltip .peak-value{color:#c8b7ff}

/* Official TradingView chart surface; custom overlays share its canvas scales. */
#chart{position:absolute;inset:0}.chart-provider{font-size:10px;color:#858b9f;white-space:nowrap;text-decoration:none}.chart-provider:hover{color:#c3bbff}.chart-heading{z-index:1}.model-badge{z-index:1}.watermark{z-index:1}.chart-zoom{z-index:2}@media(max-width:1100px){.chart-provider{display:none}}

#chart svg{width:35px;height:19px;fill:none;stroke:none;stroke-width:0}
.chart-context-menu{width:340px;padding:6px 0;background:#1e212d;color:#c5c8d3;border:1px solid #252937;border-radius:2px;max-height:calc(100dvh - 16px);overflow-y:auto;box-shadow:0 4px 20px #0006}
.chart-context-menu button{justify-content:flex-start;gap:10px;min-height:34px;padding:7px 18px 7px 12px;border-radius:0;font-size:14px;line-height:20px}
.chart-context-menu button:hover,.chart-context-menu button:focus-visible{background:#2a2d39}
.chart-context-menu button:disabled{color:#6f7380;cursor:default;background:none}
.chart-context-menu .context-icon{width:20px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.chart-context-menu svg{width:20px;height:20px;stroke-width:1.3}
.chart-context-menu .context-label{flex:1}.chart-context-menu .context-shortcut{color:#767b89;font-size:12px}
.chart-context-menu hr{margin:6px 0;border-top-color:#363946}
.light .chart-context-menu{background:#fff;color:#363c4c;border-color:#d2d6e1}.light .chart-context-menu button:hover,.light .chart-context-menu button:focus-visible{background:#eceef5}

#drawing-toolbar{position:absolute;z-index:3;top:45px;left:50%;transform:translateX(-50%);display:flex;gap:6px;align-items:center;padding:6px 8px;background:var(--panel);border:1px solid #434a61;border-radius:5px;box-shadow:0 4px 18px #0005;max-width:calc(100% - 24px);font-size:12px;white-space:nowrap}#drawing-toolbar button{padding:7px;border-radius:3px}#drawing-toolbar button:disabled{opacity:.4;cursor:default}#drawing-toolbar input[type=color]{width:27px;height:28px;padding:1px;background:none;border:0}#drawing-toolbar select,dialog select{background:var(--panel);color:var(--text);border:1px solid #42485c;border-radius:3px;padding:5px}#drawing-name{padding:0 6px;color:#9da7be}#drawing-status{position:absolute;pointer-events:none;z-index:2;bottom:42px;left:12px;font-size:12px;padding:7px 10px;border:1px solid #434a61;background:var(--panel);color:var(--text);border-radius:4px}.drawing-coordinate{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #303445;font-size:12px}.drawing-coordinate label{display:flex;flex-direction:column;gap:5px}.drawing-coordinate input{max-width:190px;color:var(--text);background:var(--panel);border:1px solid #42485c;padding:6px}.object-row{display:flex;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid #303445}.object-row button{font-size:12px;padding:7px;border:1px solid #434a61;border-radius:3px}.object-row .object-name{flex:1;text-align:left;border:0}.object-row button:disabled{opacity:.35}.object-empty{color:var(--muted);padding:15px 0;font-size:14px}@media(max-width:700px){#drawing-name{display:none}#drawing-toolbar{gap:2px}#drawing-toolbar button{padding:5px}.drawing-coordinate{flex-wrap:wrap}}

.drawing-coordinate input[type=text]{width:190px;margin:0;font-size:12px}#drawing-status{left:70px}

/* Chart identity and actions share the dark toolbar; actions stay reachable. */
.navigation nav{padding-left:12px}
.terminal-controls{display:flex;align-items:stretch;min-height:43px;flex-shrink:0;background:var(--panel)}
.terminal-controls .toolbar{flex:1;min-width:0}
.toolbar .terminal-home{position:sticky;left:0;z-index:2;background:var(--panel);width:35px;min-width:35px;padding:4px 5px;display:flex;align-items:center;justify-content:center}
.terminal-home img{display:block;width:25px;height:26px;object-fit:contain}
.toolbar .terminal-home:hover{background:#282b40}
.terminal-actions{display:flex;align-items:center;gap:5px;padding:0 9px 0 7px;border-left:1px solid #343847;border-bottom:4px solid var(--line);background:var(--panel)}
.terminal-actions .reset-terminal{height:28px;margin:0;padding:4px 10px;border:1px solid #716ad5;background:#6259c8;box-shadow:none}
.terminal-actions .reset-terminal:hover{background:#756cdd}
.terminal-actions .camera{height:29px;min-width:34px;padding:4px 7px;border:1px solid #42455e;border-radius:4px;color:#cbc8ef;background:#242638}
.terminal-actions .camera:hover{background:#36334f;color:#fff}
.terminal-actions .camera svg{display:block;width:20px;height:20px}
#projected-toggle[aria-pressed=true]{color:#a59bff}
@media(max-width:700px){.terminal-actions{gap:4px;padding:0 5px}.terminal-actions .reset-terminal{padding:4px 6px;font-size:12px}.terminal-actions .camera{min-width:28px;padding:4px}.toolbar .terminal-home{width:30px;min-width:30px}.terminal-home img{width:23px;height:24px}.navigation nav{padding-left:3px}}

@media(min-width:1400px){.toolbar{gap:7px}.leverage-controls{gap:10px}.toolbar .separator{margin:0 2px}.toolbar .symbol{font-size:13px}.navigation{height:34px;min-height:34px}}
.chart-heading{background:linear-gradient(90deg,#191b26ed 0%,#191b26a0 85%,transparent 100%);padding:3px 8px 3px 0;top:5px}
#pool-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} .statusbar .status-spacer{min-width:5px}

#replay{left:6%;right:6%;gap:10px}.replay-date{display:flex;align-items:center;gap:5px;white-space:nowrap}.replay-date input,#replay-speed{font:12px Arial;background:#151824;color:#c8cbd5;border:1px solid #454b60;border-radius:3px;padding:5px}#replay-time{white-space:nowrap}#replay-range{min-width:70px} @media(max-width:1200px){#replay{flex-wrap:wrap}.replay-date{font-size:11px}#replay-time{display:none}}

/* DutchBlock action color. */
.terminal-actions .reset-terminal{background:#79be7e;border-color:#79be7e;color:#0c0f12}
.terminal-actions .reset-terminal:hover{background:#8dca91;border-color:#8dca91}

/* Reference-aligned heatmap and drawing controls. */
.terminal-controls{background:#131722;min-height:45px}
.terminal-controls .toolbar{background:#131722;height:45px;min-height:45px;gap:6px;padding:0 8px;border-bottom:4px solid #2b303c;scrollbar-width:thin}
.toolbar .separator{height:25px;margin:0 4px;background:#444650}
.toolbar button{height:37px;min-width:31px;padding:4px;color:#c9cbd4}
.toolbar svg{width:25px;height:25px;stroke-width:1.6}
.toolbar .symbol{font-size:14px}.toolbar #interval{font-size:15px;padding:0 6px}
.toolbar .terminal-home{background:#131722;width:29px;min-width:29px;padding:3px}
.terminal-home img{width:22px;height:24px}
.toolbar select{height:29px;width:78px;border-radius:2px}
.toolbar input[type=number]{height:28px}.toolbar #hours{width:57px}
.toolbar .threshold-control,.toolbar .threshold-control #threshold{height:27px}
.heatmap-filter-controls{gap:6px}.heatmap-filter-controls .intensity{width:100px;transform:translateY(-2px)}
#color-ramp{height:11px}.toolbar .group-control{height:28px;width:51px}
.toolbar .gold{color:#ffad05}.leverage-controls{gap:10px}
.leverage-controls label,.total{font-size:14px}.leverage-controls input{width:14px;height:14px}
.toolbar #projected-toggle{display:none}
.terminal-actions{background:#131722;border-bottom:4px solid #2b303c;border-left:0;gap:5px;padding:0 8px}
.terminal-actions button{height:37px;min-width:30px;padding:4px;color:#c9cbd4}
.terminal-actions svg{width:25px;height:25px;stroke-width:1.3}
.clean-menu{display:flex;align-items:center;gap:17px;white-space:nowrap;font-size:14px;margin:0 4px 0 10px}
.clean-menu .chevron{border-color:#c9cbd4;width:6px;height:6px}
.drawing-tools{background:#131722;width:55px;min-width:55px;border-right:4px solid #2b303c;padding-top:7px}
.drawing-tools button{width:44px;height:37px;min-height:37px;color:#c9cbd4}
.drawing-tools button.selected{color:#4f7fff}
.drawing-tools svg{width:27px;height:27px;stroke-width:1.15}
.drawing-tools .tool-divider{width:33px;margin:8px 0;background:#424650}
.drawing-tools [data-action=layers]{margin-bottom:12px}
@media(max-width:700px){.drawing-tools{width:43px;min-width:43px}.drawing-tools button{width:36px;height:34px;min-height:34px}.drawing-tools svg{width:24px;height:24px}.terminal-actions{gap:1px;padding:0 3px}.clean-menu{gap:7px;margin:0 3px;font-size:12px}.terminal-actions .separator{margin:0 2px}.terminal-actions svg{width:21px;height:21px}}
/* Compact reference sizing keeps all leverage totals visible on desktop. */
@media(min-width:701px){
.terminal-controls{min-height:38px}.terminal-controls .toolbar{height:38px;min-height:38px;gap:4px;padding:0 6px;font-size:12px}
.toolbar button{height:31px;min-width:26px;padding:3px}.toolbar svg{width:21px;height:21px}
.toolbar .symbol{font-size:12px}.toolbar #interval{font-size:13px;padding:0 3px}
.toolbar .separator{height:22px;margin:0 3px}.toolbar select{width:66px;height:26px;font-size:12px}
.toolbar #hours{width:47px}.toolbar input[type=number]{height:25px;font-size:12px}
.toolbar .threshold-control,.toolbar .threshold-control #threshold{height:25px;width:62px;font-size:12px}
.heatmap-filter-controls .intensity{width:87px}#color-ramp{height:10px}
.toolbar .group-control{width:44px;height:25px}.leverage-controls{gap:8px}
.leverage-controls label,.total{font-size:12px}.leverage-controls output{min-width:30px}.leverage-controls input{width:12px;height:12px}
.terminal-actions{gap:3px;padding:0 6px}.terminal-actions button{height:31px;min-width:27px}.terminal-actions svg{width:22px;height:22px}
.clean-menu{font-size:12px;gap:12px;margin-left:6px}
}

/* DutchBlock controls: quiet surfaces, precise outlines and brand-green states. */
:root{--control-icon-size:20px;--control-icon-stroke:1.6;--control-green:#79be7e;--control-ink:#d8e2e8;--control-edge:#465c6d;--control-surface:#1b2430}
.toolbar button:not(.terminal-home),.terminal-actions button,.drawing-tools button{
 border:1px solid transparent;border-radius:5px;color:var(--control-ink);
 transition:background .12s,border-color .12s,color .12s;}
.toolbar button:not(.terminal-home):hover,.terminal-actions button:hover,.drawing-tools button:hover{
 background:#79be7e0c;border-color:#79be7e55;color:#a3d5a7;}
.toolbar button:focus-visible,.terminal-actions button:focus-visible,.drawing-tools button:focus-visible,
.toolbar input:focus-visible,.toolbar select:focus-visible{outline:2px solid var(--control-green);outline-offset:-2px}
.toolbar button[aria-pressed=true],.drawing-tools button[aria-pressed=true],.drawing-tools button.selected{
 background:#79be7e14;border-color:#79be7e55;color:var(--control-green);}
.toolbar .gold,.toolbar #profile-toggle[aria-pressed=true]{color:var(--control-green)}
.toolbar svg,.terminal-actions svg{stroke-width:1.45}.drawing-tools svg{stroke-width:1.2}
.terminal-actions .clean-menu{border:1px solid #465c6d;background:linear-gradient(180deg,#25313e,#1b2430);padding:4px 10px;border-radius:5px;font-weight:600;letter-spacing:.015em}
.clean-menu .chevron{border-color:#79be7e}.terminal-actions [data-action=settings],.terminal-actions [data-action=fullscreen]{border-color:#465c6d66;background:#1b243066}
.toolbar select,.toolbar input[type=number],.toolbar .threshold-control #threshold{
 background:#1b2430;color:#d8e2e8;border:1px solid #465c6d;border-radius:4px;box-shadow:inset 0 1px 0 #ffffff05;}
.toolbar select{font-weight:500;padding-left:5px}.toolbar .separator{background:#465c6d77}
.toolbar .threshold-stepper,.toolbar .group-stepper{border-color:#465c6d}
.toolbar .threshold-stepper button,.toolbar .group-stepper button{border:0;border-radius:0;color:#a8bdcc;background:none}
.toolbar .threshold-stepper button:hover:not(:disabled),.toolbar .group-stepper button:hover:not(:disabled){background:#79be7e22;color:#79be7e}
.leverage-controls input,input[type=range]{accent-color:#79be7e}
#menu{background:#1b2430;border-color:#465c6d;border-radius:7px;box-shadow:0 12px 32px #0006}
#menu button{border-radius:4px}#menu button:hover{background:#79be7e14;color:#a3d5a7}
.drawing-tools .tool-divider{background:#465c6d77}
@media(prefers-reduced-motion:reduce){.toolbar button,.terminal-actions button,.drawing-tools button{transition:none}}

/* One shared centerline and icon box for all DutchBlock toolbar controls. */
.terminal-controls{--button-size:28px;--icon-size:var(--control-icon-size);min-height:40px;align-items:stretch}
.terminal-controls .toolbar{height:40px;min-height:40px;gap:4px;padding:0 6px;border-bottom-width:2px;align-items:center;overflow-y:hidden;scrollbar-width:none}
.terminal-controls .toolbar::-webkit-scrollbar{display:none}
.terminal-controls .toolbar>button,.terminal-actions>button{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 height:var(--button-size);min-height:var(--button-size);min-width:var(--button-size);
 padding:3px;line-height:1;vertical-align:middle;}
.terminal-controls .toolbar>button[data-icon],.terminal-controls .toolbar>button[data-action=indicators],.terminal-actions>button[data-icon]{width:var(--button-size)}
.terminal-controls .toolbar>button>svg,.terminal-controls .icon-label>svg,.terminal-actions>button>svg{
 display:block;width:var(--icon-size);height:var(--icon-size);flex:none;vertical-align:middle;stroke-width:var(--control-icon-stroke);}
.terminal-controls .toolbar>button[data-action=indicators] .indicator-icon{stroke-linecap:round;stroke-linejoin:round}
.terminal-controls .icon-label{height:var(--button-size);width:24px;display:flex;align-items:center;justify-content:center}
.terminal-controls .separator{height:20px;margin:0 3px;align-self:center}
.terminal-actions{border-bottom-width:2px;gap:4px;padding:0 6px;align-items:center}
.terminal-actions .clean-menu{padding:0 10px;gap:10px;margin:0;line-height:1;font-size:12px}
.terminal-actions .clean-menu .chevron{margin-top:-3px;flex:none}
.terminal-controls .toolbar .symbol,.terminal-controls .toolbar #interval{line-height:1;display:inline-flex;align-items:center;font-size:12px}
.terminal-controls .toolbar .terminal-home{width:28px;min-width:28px;padding:3px}
.terminal-controls .terminal-home img{width:21px;height:22px;display:block}
.terminal-controls .toolbar select,.terminal-controls .toolbar input[type=number]{height:26px;line-height:24px;font-size:12px;padding-top:0;padding-bottom:0}
.terminal-controls .threshold-control,.terminal-controls .toolbar .threshold-control #threshold,.terminal-controls .group-control{height:26px}
.terminal-controls .heatmap-filter-controls{height:28px;align-items:center;gap:6px}
.terminal-controls .heatmap-filter-controls .intensity{height:26px;transform:none;justify-content:center;gap:2px}
.terminal-controls #color-ramp{height:9px;border-radius:2px;flex:none}
.terminal-controls .intensity input[type=range]{height:13px;display:block;flex:none}
.terminal-controls .leverage-controls,.terminal-controls .leverage-controls label{height:28px;align-items:center;line-height:1}
.terminal-controls .pools-label,.terminal-controls .total{display:inline-flex;align-items:center;height:28px;line-height:1}
.terminal-controls .total{gap:4px}
.drawing-tools button{display:flex;align-items:center;justify-content:center;padding:5px;line-height:1}
.drawing-tools button>svg{display:block;width:var(--control-icon-size);height:var(--control-icon-size);flex:none;stroke-width:var(--control-icon-stroke)}
@media(max-width:700px){.terminal-controls{--button-size:28px;--icon-size:var(--control-icon-size)}.terminal-actions .clean-menu{padding:0 7px;gap:7px}.terminal-actions{gap:2px;padding:0 4px}}

.terminal-controls .toolbar>button>svg [stroke-width],.drawing-tools button>svg [stroke-width]{stroke-width:inherit}

/* Keep the history label clear of its chevron, at every toolbar size. */
.terminal-controls .toolbar #history{
 width:88px;min-width:88px;flex:0 0 88px;
 appearance:none;-webkit-appearance:none;
 padding:0 25px 0 9px;line-height:normal;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%2379be7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 8px center;background-size:12px 12px;
}

/* Match the drawing-lock silhouette to its existing pressed state. */
.drawing-tools #lock:not([aria-pressed=true]) .lock-closed,
.drawing-tools #lock[aria-pressed=true] .lock-open{display:none}

/* Keep the two heatmap views reachable beside the chart actions. */
.terminal-actions #color-mode{padding:0 10px;white-space:nowrap;font-size:12px;border:1px solid #465c6d;border-radius:5px;background:#1b2430;color:#c9cbd4}
.terminal-actions #color-mode[aria-pressed=true]{border-color:#79be7e;background:#21342d;color:#a4dbac}
.terminal-actions #color-mode:hover{border-color:#8bb0c2}
@media(max-width:700px){.terminal-actions #color-mode{font-size:11px;padding:0 7px}}
