/* Dense chart controls inside the existing white/blue Onest application shell. */
.chart-desk{max-width:1760px;margin:0 auto;color:var(--ink);font-variant-numeric:tabular-nums}.desk-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:12px 0 24px}.desk-heading a{font-size:13px;color:var(--muted);text-decoration:none}.desk-heading h1{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:6px 0 0;font-weight:750}.desk-heading-actions{display:flex;align-items:center;gap:14px}.desk-save-state{font-size:12px;color:var(--muted)}.desk-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.desk-market,.desk-strategy{background:#fff;border:1px solid var(--line);border-radius:16px;min-width:0}.desk-market{overflow:hidden}.desk-market-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px}.desk-symbol-wrap{display:flex;flex-direction:column;gap:4px;min-width:0}.desk-symbol{font:750 23px/1.2 var(--font);padding:0;text-align:left;border:0;background:transparent;color:var(--ink);cursor:pointer;align-self:start}.desk-symbol span{font-size:16px;color:var(--muted);margin-left:8px}.desk-symbol-wrap>span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.desk-quote{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}.desk-quote strong{font-size:23px;font-weight:650;letter-spacing:-.025em}.desk-quote>span{font-size:12px}.desk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;border-block:1px solid var(--line);flex-wrap:wrap}.desk-periods,.desk-tools{display:flex;gap:3px;flex-wrap:wrap}.chart-desk button{touch-action:manipulation}.desk-toolbar button,.desk-draw-tools button,.desk-inline button,.desk-chart-bottom button{font:550 12px/1.3 var(--font);color:var(--muted);border:0;background:transparent;padding:8px 9px;border-radius:6px;cursor:pointer;min-height:34px}.desk-toolbar button:hover,.desk-draw-tools button:hover,.desk-inline button:hover,.desk-chart-bottom button:hover{background:#f0f3f8;color:var(--ink)}.desk-toolbar button[aria-pressed=true],.desk-draw-tools button[aria-pressed=true]{background:#eaf0ff;color:#2454dd}.desk-tools{border-left:1px solid var(--line);padding-left:8px}.desk-ind-panel{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:22px;border-bottom:1px solid var(--line);background:#fafbfe}.desk-ind-panel[hidden]{display:none}.desk-ind-panel h2{font-size:14px;font-weight:650;margin:0 0 7px}.desk-ind-panel p{font-size:12px;color:var(--muted);margin:0 0 14px}.desk-ema{display:flex;gap:9px;align-items:center;margin:7px 0;font-size:13px}.desk-ema span{color:var(--ema-color);font-weight:650}.desk-ema input[type=number]{width:88px;height:34px;padding:4px 10px}.chart-desk input[type=checkbox]{appearance:auto;accent-color:var(--accent);width:16px;height:16px;min-height:0;flex:0 0 16px;margin:0}.desk-ind-option{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:13px;cursor:pointer}.desk-ind-option span{display:grid;gap:2px}.desk-ind-option strong{font-weight:550}.desk-ind-option small{font-size:11px;color:var(--muted)}.desk-chart-meta{display:flex;gap:12px;justify-content:space-between;padding:12px 18px 4px;min-height:32px;font-size:11px}.desk-chart-meta>div:first-child{display:flex;flex-wrap:wrap;gap:4px;align-items:center;color:var(--muted)}.desk-dot{color:#8793a5}.desk-chart-meta>div:last-child{flex-shrink:0;color:var(--muted)}#desk-live[data-state=live]{color:#17754f}#desk-live[data-state=live]:before{content:'';display:inline-block;width:6px;height:6px;background:#089981;border-radius:50%;margin-right:5px}#desk-live[data-state=stale]{color:#9c5c1c}.desk-ohlc{font-size:11px;color:var(--muted);min-height:25px;padding:3px 18px;white-space:pre-wrap}.desk-canvas-frame{position:relative;width:100%;max-width:100%;min-width:260px;height:480px;min-height:300px;background:white}.desk-canvas-frame canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-3px}.desk-canvas-frame .chart-resizer{z-index:2}.desk-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);background:#fff;font-size:14px;pointer-events:none}.desk-loading[hidden]{display:none}.desk-chart-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.desk-chart-bottom button{font-size:11px;padding:5px;min-height:32px}.desk-feed-note{font-size:10px;line-height:1.6;color:var(--muted);padding:0 18px 12px;max-width:115ch}.desk-alert{margin:0 16px 14px;padding:12px;background:#fff5e6;color:#865018;border-radius:8px;font-size:12px;line-height:1.5}.desk-sliders{border-top:1px solid var(--line);padding:20px 22px;display:grid;grid-template-columns:1fr 1fr;gap:36px;background:#fafbfe}.desk-sliders label{display:grid;gap:12px;min-width:0}.desk-sliders label>span{font-size:12px;font-weight:550;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.desk-sliders output{font-weight:700;color:var(--ink)}.chart-desk input[type=range]{appearance:auto;accent-color:#2857e6;width:100%;height:24px;padding:0;border:0;box-shadow:none;min-height:24px;cursor:ew-resize}.desk-sliders small{font-size:10px;color:var(--muted);margin-top:-6px}.desk-strategy{padding:22px;display:grid;gap:16px}.desk-strategy-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px}.desk-strategy h2{font-size:20px;letter-spacing:-.02em;margin:0;font-weight:700}.desk-strategy-title>span{font-size:10px;color:var(--muted);padding:4px 7px;border:1px solid var(--line);border-radius:5px}.desk-strategy label{font-size:11px;color:var(--muted);display:block;line-height:1.5}.desk-strategy input,.desk-strategy select{width:100%;margin-top:5px;background:#fff;color:var(--ink);font:500 13px/1.3 var(--font);height:40px;padding:8px 10px;border:1px solid #d8deea;border-radius:7px;min-width:0}.desk-rule{font-size:12px;line-height:1.65;color:var(--muted);margin:-4px 0 2px}.desk-geometry{border:0;border-top:1px solid var(--line);padding:15px 0 0;margin:0;min-width:0}.desk-geometry legend{font-size:12px;font-weight:650;padding:0 8px 0 0}.desk-draw-tools{display:grid;grid-template-columns:1fr 1fr;gap:4px}.desk-draw-tools button{border:1px solid var(--line);font-size:11px;min-height:34px}.desk-geometry p{font-size:11px;line-height:1.6;color:var(--muted);margin:12px 0}.desk-boundaries,.desk-exit-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.desk-inline{display:flex;align-items:end;gap:5px;margin:12px 0}.desk-inline label{width:65px;flex-shrink:0}.desk-inline button{font-size:10px;padding:8px 6px;white-space:nowrap}.desk-grid-stats{font-size:10px;color:var(--muted);line-height:1.6}.desk-strategy .btn{width:100%;min-height:42px;font-size:12px}.desk-test-note{margin:-6px 0 0;font-size:10px;color:var(--muted);line-height:1.7}#desk-result{display:grid;gap:7px;font-size:12px}#desk-result:empty{display:none}#desk-result strong{font-size:26px;font-weight:700}#desk-result small{font-size:10px;line-height:1.6;color:var(--muted)}.desk-expanded{position:fixed;inset:88px 16px 16px;z-index:110;overflow:auto;box-shadow:0 12px 60px #172c4933}.desk-expanded .desk-canvas-frame{height:calc(100vh - 360px)!important;min-height:300px;width:100%!important}.desk-search{width:min(600px,calc(100vw - 28px));max-height:80vh;padding:24px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 80px #10213d33}.desk-search::backdrop{background:#15254066}.desk-search-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.desk-search h2{font-size:21px;letter-spacing:-.025em;margin:0}.desk-search-head button{border:0;background:#f0f3f8;border-radius:6px;width:34px;height:34px;color:var(--muted);font-size:24px;cursor:pointer}.desk-search input{width:100%;font:400 15px var(--font);height:48px;border:1px solid #cbd4e4;border-radius:8px;padding:12px}.desk-asset-tabs{font-size:11px;color:var(--muted);padding:15px 0;border-bottom:1px solid var(--line)}#desk-search-results{max-height:340px;overflow:auto}#desk-search-results button{display:grid;grid-template-columns:100px minmax(0,1fr) 70px;gap:12px;width:100%;text-align:left;align-items:center;background:#fff;border:0;border-bottom:1px solid #eef1f6;border-radius:0;padding:14px 10px;font:400 12px var(--font);color:var(--ink);cursor:pointer}#desk-search-results button[aria-selected=true]{background:#edf2ff}#desk-search-results strong{font-size:13px}#desk-search-results span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#desk-search-results small{font-size:9px;color:var(--muted);text-align:right}#desk-search-status{font-size:11px;line-height:1.6;color:var(--muted);margin:15px 0 0}.chart-desk :focus-visible{outline:2px solid #2857e6;outline-offset:3px}.chart-desk button:disabled{opacity:.45;cursor:default}.chart-desk [hidden]{display:none!important}
@media(min-width:1700px){.desk-layout{grid-template-columns:minmax(0,1fr) 320px}.desk-canvas-frame{height:580px}}
@media(max-width:1100px){.desk-layout{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.desk-strategy{padding:17px}.desk-market-head{padding:16px}.desk-tools{border:0;padding:0}.desk-heading{margin-top:5px}.desk-sliders{padding:18px;gap:22px}.desk-toolbar{padding:8px 12px}}
@media(max-width:850px){.desk-layout{grid-template-columns:1fr}.desk-strategy{grid-template-columns:1fr 1fr;gap:16px 24px}.desk-strategy-title,.desk-rule,.desk-geometry,#desk-result{grid-column:1/-1}.desk-strategy-title+label{grid-column:1/-1}.desk-geometry{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.desk-geometry legend{margin-bottom:8px}.desk-geometry p{margin:0}.desk-boundaries{grid-column:1/-1}.desk-inline{margin:0}.desk-grid-stats{align-self:center}.desk-exit-fields{align-self:end}.desk-strategy .btn{align-self:end}.desk-heading h1{font-size:27px}.desk-save-state{display:none}.desk-expanded{inset:116px 10px 10px}.desk-canvas-frame{height:450px}}
@media(max-width:500px){.desk-heading{gap:12px;margin-bottom:16px;align-items:end}.desk-heading h1{font-size:23px}.desk-heading a{font-size:11px}.desk-heading .btn{font-size:10px;padding:9px 10px;min-height:36px;max-width:125px;line-height:1.35}.desk-market,.desk-strategy{border-radius:12px}.desk-market-head{padding:16px 12px;gap:10px}.desk-symbol{font-size:21px}.desk-symbol-wrap>span{max-width:160px;font-size:10px}.desk-quote strong{font-size:19px}.desk-quote>span{font-size:10px}.desk-toolbar{gap:8px;padding:8px}.desk-toolbar button{font-size:11px;padding:7px 9px;min-height:36px}.desk-tools{width:100%;border-top:1px solid var(--line);padding-top:6px;justify-content:space-between}.desk-chart-meta{padding:10px 10px 3px;flex-wrap:wrap;gap:5px;font-size:10px}.desk-ohlc{padding:4px 10px;font-size:9px;min-height:30px}.desk-canvas-frame{height:420px}.desk-chart-bottom{padding:5px 10px;align-items:start}.desk-chart-bottom>span{max-width:220px;line-height:1.6}.desk-feed-note{padding:0 10px 10px;font-size:9px}.desk-sliders{grid-template-columns:1fr;gap:22px;padding:18px 14px}.desk-strategy{padding:18px;gap:16px;grid-template-columns:1fr}.desk-strategy>*{grid-column:1!important}.desk-geometry{grid-template-columns:1fr}.desk-boundaries{grid-column:1}.desk-ind-panel{grid-template-columns:1fr;gap:20px;padding:18px}.desk-search{padding:18px}.desk-search h2{font-size:19px}#desk-search-results button{grid-template-columns:88px minmax(0,1fr);gap:8px}#desk-search-results small{grid-column:2;text-align:left;margin-top:-6px}.desk-expanded{inset:110px 6px 6px}}

body[data-route="strategy-chart"] #app,body[data-route="terminal"] #app{max-width:1824px;margin-inline:auto!important}.desk-ema input[type=number]{border:1px solid #d8deea;border-radius:7px;background:#fff;color:var(--ink);font:500 13px var(--font);box-shadow:none}.chart-desk svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.desk-heading a{display:inline-flex;align-items:center;gap:5px}.desk-symbol span svg{width:14px;height:14px}.desk-tools button{display:flex;align-items:center;gap:4px}.desk-search-head button{display:grid;place-items:center}.desk-search-head button svg{width:19px;height:19px}
/* Trading workspace: instrument/interval bar, direct indicator favourites, left tools. */
body[data-route="strategy-chart"] #app,body[data-route="terminal"] #app{padding:18px 24px 56px!important;max-width:1880px}.desk-heading{margin:0 0 14px;gap:18px;min-height:36px}.desk-heading>div:first-child{display:flex;align-items:center;gap:20px}.desk-heading h1{margin:0;font-size:19px;letter-spacing:-.02em;font-weight:650}.desk-heading a{font-size:12px}.desk-heading .btn{min-height:36px;font-size:12px;border-radius:6px}.desk-layout{gap:0;background:#fff;border:1px solid #dce2eb;border-radius:8px;overflow:hidden;grid-template-columns:minmax(0,1fr) 296px}.desk-market{border:0;border-radius:0}.desk-strategy{border:0;border-left:1px solid #dce2eb;border-radius:0;padding:20px;gap:14px}.desk-strategy-title h2{font-size:18px}.desk-market-head{padding:13px 18px 10px;min-height:64px}.desk-symbol-wrap{flex-direction:row;align-items:center;gap:14px}.desk-symbol{font-size:18px}.desk-symbol-wrap>span{font-size:11px;max-width:230px}.desk-quote{flex-direction:row;gap:12px;align-items:baseline}.desk-quote strong{font-size:19px}.desk-toolbar{padding:5px 10px;gap:8px;min-height:42px}.desk-periods button,.desk-tools button{border-radius:3px;font-size:12px;min-height:30px;padding:6px 9px}.desk-tools{border:0;padding:0}.desk-tools #desk-history-shortcut{color:#2857d9}.desk-quick-indicators{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid #e7ebf1;scrollbar-width:thin;scrollbar-color:#c3cedd transparent}.desk-quick-label{font-size:10px;color:#63758b;white-space:nowrap;margin-right:4px}.desk-quick-label b{font-weight:500}.desk-quick-indicators button{height:30px;min-height:30px;border:1px solid transparent;border-radius:4px;background:transparent;color:#526279;padding:4px 8px;font:500 11px var(--font);white-space:nowrap;cursor:pointer}.desk-quick-indicators button:hover{background:#f0f3f8}.desk-quick-indicators button[aria-pressed=true]{background:#eaf0ff;color:#2455d8;border-color:#d4dffd}.desk-quick-ema{display:flex;align-items:center;flex:none;border:1px solid #e2e7ef;border-radius:4px;height:30px;overflow:visible}.desk-quick-ema button{display:flex;align-items:center;gap:5px;height:28px;min-height:28px;border:0;border-radius:3px 0 0 3px;padding:3px 5px}.desk-quick-ema button i{width:10px;height:2px;background:var(--ema-color)}.desk-quick-ema input{width:39px;height:26px;min-height:0;margin:0;padding:3px 3px;border:0;border-left:1px solid #e2e7ef;border-radius:0 3px 3px 0;background:transparent;color:#526279;box-shadow:none;font:500 11px var(--font);appearance:textfield;-moz-appearance:textfield}.desk-quick-ema input::-webkit-inner-spin-button{appearance:none;margin:0}.desk-chart-meta{padding:9px 15px 3px;font-size:11px;min-height:26px}.desk-ohlc{font-size:10px;padding:3px 15px;min-height:23px}.desk-plot-shell{display:grid;grid-template-columns:42px minmax(0,1fr)}.desk-drawing-rail{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 4px;border-right:1px solid #e7ebf1;background:white}.desk-drawing-rail button{display:grid;place-items:center;width:32px;height:34px;border:0;border-radius:4px;background:transparent;color:#53657b;cursor:pointer}.desk-drawing-rail button:hover{background:#f0f3f8;color:#172c46}.desk-drawing-rail button[aria-pressed=true]{background:#eaf0ff;color:#2555dc}.desk-drawing-rail button svg{width:20px;height:20px}.desk-drawing-rail>span{height:1px;width:22px;background:#e1e7ef;margin:7px 0}.desk-canvas-frame{height:570px;min-width:0}.desk-chart-bottom{padding:6px 13px 6px 52px}.desk-feed-note{padding:0 14px 9px 54px;font-size:10px}.desk-sliders{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:26px;padding:20px 24px;background:#fafbfe}.desk-sliders label>span{font-size:12px}.desk-sliders label>span>b{font-weight:550}.desk-sliders small{font-size:10px}.desk-geometry p{font-size:11px}.desk-boundaries input{font-size:12px}.desk-strategy select,.desk-strategy input{font-size:12px;height:38px}.desk-strategy .btn{border-radius:6px;font-size:12px}.desk-strategy #desk-pick-history{color:#2455dc;border-color:#c9d6fa;background:#f6f8ff}.desk-expanded{border:1px solid #dce2eb;border-radius:8px}.desk-expanded .desk-canvas-frame{height:calc(100vh - 340px)!important;min-height:300px}.desk-research,.desk-similar{scroll-margin-top:96px;margin:28px 0 0;padding:26px;background:#fff;border:1px solid #dce2eb;border-radius:8px}.desk-research>header,.desk-similar>header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.desk-research h2,.desk-similar h2{font-size:23px;font-weight:700;letter-spacing:-.025em;margin:0 0 7px}.desk-research>header p,.desk-similar>header p{font-size:13px;line-height:1.6;color:#63758b;margin:0;max-width:65ch}.desk-research-controls{display:flex;align-items:end;gap:10px;flex-shrink:0}.desk-research-controls label{font-size:11px;color:#63758b;display:grid;gap:5px}.desk-research-controls select{height:38px;padding:7px 10px;border:1px solid #d7dfea;border-radius:6px;font:500 12px var(--font);background:white;color:var(--ink)}.desk-research-controls .btn{font-size:12px;min-height:38px;border-radius:6px}#desk-research-status{font-size:12px;line-height:1.7;color:#52647b}#desk-research-periods:not(:empty){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:19px 0;padding:15px 0;border-block:1px solid #e5eaf1}#desk-research-periods span{display:grid;gap:6px;font-size:11px;color:#63758b}#desk-research-periods strong{font-size:12px;font-weight:550;color:#273e59}.desk-research-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.research-option{min-width:0;border:1px solid #e1e7ef;border-radius:7px;padding:20px}.research-option-top{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#63758b}.research-option-top>span{color:#2a58d5}.research-option-top small{font-size:9px}.research-option h3{font-size:17px;line-height:1.35;margin:15px 0 7px;font-weight:650}.research-option>p{font-size:11px;line-height:1.5;color:#63758b;margin:0 0 12px}.chart-desk .research-curve{width:100%;height:64px;display:block;stroke:none}.research-curve-caption{font-size:9px;color:#63758b}.research-option dl{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:18px 0}.research-option dl div{min-width:0}.research-option dt{font-size:10px;color:#63758b;margin-bottom:5px}.research-option dd{font-size:18px;font-weight:650;margin:0;letter-spacing:-.02em}.research-check-periods{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#63758b;border-top:1px solid #e5eaf1;padding-top:12px;margin-bottom:17px}.research-option .btn{width:100%;min-height:38px;justify-content:space-between;font-size:12px;border-radius:6px}.research-option .btn svg{transform:rotate(90deg)}.desk-research-note{font-size:10px;line-height:1.6;color:#63758b;max-width:110ch;margin:18px 0 0}.desk-similar>header>a{font-size:12px;color:#2858dc;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;text-decoration:none}.desk-similar-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.similar-strategy{min-width:0;display:flex;flex-direction:column;border:1px solid #e1e7ef;border-radius:7px;padding:20px}.similar-strategy>header{display:flex;align-items:center;gap:10px;margin-bottom:16px}.similar-strategy .social-avatar{width:34px;height:34px;min-width:34px;font-size:11px}.similar-strategy>header>div{display:grid;gap:4px}.similar-strategy>header strong{font-size:12px;font-weight:600}.similar-strategy>header small{font-size:10px;color:#63758b}.similar-match{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.similar-match span{font-size:9px;background:#f0f4fb;color:#536c8e;padding:4px 6px;border-radius:4px}.similar-strategy h3{font-size:18px;line-height:1.4;letter-spacing:-.02em;font-weight:650;margin:4px 0 9px}.similar-strategy h3 a{color:var(--ink);text-decoration:none}.similar-strategy h3 a:hover{color:#2858dc}.similar-strategy>p{font-size:12px;color:#63758b;line-height:1.7;margin:0 0 20px;flex:1}.similar-budget{display:flex;gap:26px;padding:15px 0;border-top:1px solid #e5eaf1}.similar-budget span{display:grid;gap:5px;font-size:10px;color:#63758b}.similar-budget strong{font-size:17px;font-weight:650;color:var(--ink);white-space:nowrap}.similar-strategy footer{display:flex;align-items:center;gap:16px;justify-content:space-between;padding-top:9px}.similar-strategy footer .btn{min-height:36px;border-radius:6px;font-size:11px;padding:8px 12px}.similar-strategy footer>a:last-child{font-size:10px;color:#63758b;text-decoration:none}.desk-similar-empty{grid-column:1/-1;padding:22px 0}.desk-similar-empty h3{font-size:18px;margin:0 0 10px}.desk-similar-empty p{font-size:13px;color:#63758b;margin:0 0 18px}.chart-desk button,.chart-desk a{scroll-margin-top:100px}
@media(min-width:1700px){.desk-layout{grid-template-columns:minmax(0,1fr) 320px}.desk-canvas-frame{height:650px}}
@media(max-width:1100px){.desk-layout{grid-template-columns:minmax(0,1fr) 270px}.desk-strategy{padding:16px}.desk-symbol-wrap{gap:8px}.desk-symbol-wrap>span{max-width:140px;font-size:10px}.desk-market-head{padding-inline:12px}.desk-quote{flex-direction:column;align-items:end;gap:2px}.desk-quote strong{font-size:17px}.desk-sliders{gap:20px;padding:20px}.desk-research-results,.desk-similar-list{gap:12px}.research-option,.similar-strategy{padding:15px}.research-option dd{font-size:16px}.desk-research>header{align-items:start;flex-direction:column;gap:15px}.research-option-top{flex-direction:column;gap:5px}.similar-strategy footer{align-items:start;flex-direction:column;gap:10px}.similar-budget{gap:16px}.similar-budget strong{font-size:15px}}
@media(max-width:850px){body[data-route="strategy-chart"] #app,body[data-route="terminal"] #app{padding:15px 16px 44px!important}.desk-layout{grid-template-columns:1fr}.desk-strategy{border-left:0;border-top:1px solid #dce2eb;padding:22px}.desk-canvas-frame{height:520px}.desk-strategy>label{grid-column:auto!important}.desk-strategy-title,.desk-rule,.desk-geometry,#desk-result{grid-column:1/-1!important}.desk-strategy-title+label{grid-column:1/-1!important}.desk-geometry{display:block}.desk-geometry .desk-boundaries{margin:12px 0}.desk-research-results,.desk-similar-list{grid-template-columns:1fr}.research-option-top{flex-direction:row}.research-option dl{max-width:420px}.similar-strategy footer{flex-direction:row;align-items:center}.desk-similar>header{flex-direction:column;align-items:start;gap:12px}.desk-research,.desk-similar{padding:22px}.similar-strategy>p{max-width:75ch}.desk-heading h1{font-size:18px}.desk-heading>div:first-child{gap:14px}.desk-research-results{gap:14px}}
@media(max-width:500px){body[data-route="strategy-chart"] #app,body[data-route="terminal"] #app{padding:12px 8px 36px!important}.desk-heading{align-items:center;gap:8px;margin-bottom:10px}.desk-heading>div:first-child{display:grid;gap:5px}.desk-heading h1{font-size:17px}.desk-heading a{font-size:10px}.desk-heading .btn{font-size:10px;min-height:34px;max-width:125px}.desk-layout{border-radius:6px}.desk-market-head{padding:13px 10px;gap:10px}.desk-symbol-wrap{display:grid;gap:4px}.desk-symbol{font-size:17px}.desk-symbol-wrap>span{font-size:10px;max-width:155px}.desk-quote strong{font-size:17px}.desk-toolbar{padding:5px 8px;gap:5px}.desk-periods{gap:1px}.desk-periods button{font-size:11px;padding:5px 8px}.desk-tools{border-top:1px solid #e7ebf1;padding-top:4px}.desk-tools button{font-size:10px;padding:5px;min-height:30px}.desk-tools #desk-reset{display:none}.desk-quick-indicators{gap:5px;padding:7px 8px;min-height:46px}.desk-quick-label{display:none}.desk-chart-meta{padding:7px 9px 2px;min-height:24px;font-size:9px}.desk-ohlc{font-size:9px;padding:3px 9px;min-height:26px}.desk-plot-shell{grid-template-columns:34px minmax(0,1fr)}.desk-drawing-rail{padding:8px 2px;gap:6px}.desk-drawing-rail button{width:28px;height:32px}.desk-drawing-rail button svg{width:18px;height:18px}.desk-canvas-frame{height:430px}.desk-chart-bottom{padding:6px 8px 6px 40px;font-size:9px}.desk-chart-bottom>span{max-width:210px}.desk-feed-note{font-size:9px;padding:0 9px 9px 40px}.desk-sliders{grid-template-columns:1fr;padding:20px 16px;gap:22px}.desk-strategy{padding:20px 16px;grid-template-columns:1fr}.desk-strategy>*{grid-column:1!important}.desk-strategy-title,.desk-rule,.desk-geometry,#desk-result{grid-column:1!important}.desk-research,.desk-similar{padding:20px 16px;margin-top:18px;scroll-margin-top:122px}.desk-research h2,.desk-similar h2{font-size:21px}.desk-research>header p,.desk-similar>header p{font-size:12px}.desk-research-controls{flex-wrap:wrap;gap:10px;width:100%}.desk-research-controls label{flex:1;min-width:130px}.desk-research-controls .btn{font-size:11px}#desk-research-periods:not(:empty){grid-template-columns:1fr;gap:12px}.research-option{padding:16px}.research-option dd{font-size:17px}.research-option-top{flex-direction:column}.similar-strategy{padding:17px}.similar-strategy h3{font-size:18px}.similar-strategy footer .btn{font-size:11px}.desk-expanded{inset:112px 4px 5px}.desk-expanded .desk-canvas-frame{height:calc(100dvh - 340px)!important}.desk-quick-indicators:after{content:'';flex:0 0 4px}}
.desk-ema-quick-group,.desk-common-quick-group{display:flex;align-items:center;gap:6px;flex:none}.desk-common-quick-group{padding-left:4px;border-left:1px solid #e2e7ef}.desk-common-quick-group button{min-width:38px}
@media(max-width:500px){.desk-quick-indicators{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;gap:6px;padding:8px}.desk-ema-quick-group{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;min-width:0}.desk-quick-ema{min-width:0;width:100%;height:31px}.desk-quick-ema button{padding:3px;gap:3px;font-size:10px;min-width:0}.desk-quick-ema button i{width:7px;flex-shrink:0}.desk-quick-ema input{width:25px;min-width:0;padding:3px 1px;font-size:10px}.desk-common-quick-group{border:0;padding:0;justify-content:space-between;gap:4px}.desk-common-quick-group button{padding:4px 9px;font-size:11px;border:1px solid #e2e7ef;flex:1}.desk-quick-indicators:after{display:none}}
@media(max-width:360px){.desk-ema-quick-group{grid-template-columns:repeat(3,minmax(0,1fr))}.desk-quick-ema{justify-content:space-between}.desk-quick-ema button{padding:3px 7px;font-size:11px}.desk-quick-ema input{width:32px;font-size:11px}.desk-common-quick-group button{padding:4px 7px;font-size:10px}}
.desk-quick-indicators{flex-wrap:wrap;overflow:visible}.desk-fit-levels{padding:7px 0 0;border:0;background:transparent;color:#2858d8;font:500 11px var(--font);cursor:pointer}.desk-fit-levels:hover{text-decoration:underline}
@media(max-width:500px){.desk-research-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.desk-research-controls label{min-width:0;width:100%}.desk-research-controls select{width:100%;min-width:0}.desk-research-controls .btn{width:100%;min-height:40px}}
.research-option h3{margin:0 0 9px}.research-option-top{margin:0 0 10px}.research-option-top small{font-size:10px;line-height:1.5}

/* Selected price geometry: one clear active target and precise alternatives to dragging. */
.desk-level-editor{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:14px 16px;background:#f3f6ff;border-block:1px solid #dce5fa;font-variant-numeric:tabular-nums}.desk-level-editor[hidden]{display:none}.desk-level-editor label{display:grid;gap:6px;font-size:11px;color:#425873}.desk-level-editor select,.desk-level-editor input{height:38px;min-width:0;border:1px solid #cbd7ed;border-radius:6px;background:white;color:#19314e;font:500 12px var(--font);padding:6px 9px}.desk-level-editor select{max-width:240px}.desk-price-stepper{display:flex;align-items:center;gap:4px}.desk-price-stepper input{width:125px}.desk-price-stepper button{width:38px;height:38px;border:1px solid #bccceb;background:#fff;color:#2857df;border-radius:6px;font-size:20px;cursor:pointer;touch-action:manipulation}.desk-price-stepper button:hover{background:#e4ebff}.desk-level-editor :focus-visible{outline:2px solid #2857df;outline-offset:2px}.desk-level-editor p{flex-basis:100%;margin:0;font-size:11px;color:#526780;line-height:1.5}.desk-sliders input[type=range]{min-height:36px;cursor:ew-resize;accent-color:#2857df}.desk-sliders input[type=range]::-webkit-slider-thumb{width:24px;height:24px}.desk-sliders input[type=range]::-moz-range-thumb{width:24px;height:24px}
@media(max-width:760px){.desk-level-editor{gap:10px;padding:12px}.desk-level-editor>label:first-child{flex-basis:100%}.desk-level-editor>label:first-child select{max-width:none;width:100%}.desk-price-stepper input{width:112px}.desk-level-editor select,.desk-level-editor input,.desk-price-stepper button{height:44px}.desk-price-stepper button{width:44px}.desk-level-editor>label:last-of-type{flex:1}.desk-level-editor>label:last-of-type select{width:100%}}

.desk-sliders input[type=range]{appearance:none;-webkit-appearance:none;background:transparent}.desk-sliders input[type=range]::-webkit-slider-runnable-track{height:4px;background:#c9d5ec;border-radius:4px}.desk-sliders input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-10px;border:2px solid white;border-radius:50%;background:#2857df;box-shadow:0 1px 3px #18345d33}.desk-sliders input[type=range]::-moz-range-track{height:4px;background:#c9d5ec;border-radius:4px}.desk-sliders input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid white;border-radius:50%;background:#2857df}

/* Compact chart: events lead directly into the strategy sliders. */
.desk-level-details,.desk-source-details{grid-column:1/-1;min-width:0}
.desk-level-details summary,.desk-source-details summary{cursor:pointer;font-size:12px;padding:10px 0}
.desk-level-details .desk-level-editor{padding:12px 0;background:transparent;border:0;gap:10px}
.desk-level-details .desk-level-editor label{width:100%}
.desk-level-details .desk-level-editor select{width:100%;max-width:none}
.desk-level-details .desk-price-stepper input{width:0;flex:1}
.desk-source-details .desk-feed-note{padding:0;font-size:11px;line-height:1.5}

.desk-heading-actions{flex-wrap:wrap;justify-content:flex-end}.desk-heading-actions .btn{white-space:normal;text-align:center}@media(max-width:760px){.desk-heading-actions{width:100%;gap:8px}.desk-heading-actions .desk-save-state{flex-basis:100%}}
@media(max-width:760px){.chart-desk .desk-heading{flex-direction:column;align-items:stretch}.chart-desk .desk-heading-actions{width:100%}}

/* The final action stays visible while the investor edits the chart and budget. */
.chart-desk{padding-bottom:142px}
.desk-launch-bar{position:fixed;inset:auto 0 0;z-index:80;background:#fff;border-top:1px solid #dce5f2;box-shadow:0 -6px 24px #1935530a;padding:16px 24px calc(16px + env(safe-area-inset-bottom))}
.desk-launch-inner{max-width:1760px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.desk-launch-summary{display:grid;gap:5px;min-width:0}.desk-launch-summary strong{font-size:16px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}.desk-launch-summary span{font-size:13px;line-height:1.5;color:#536780}
.desk-launch-action{display:flex;align-items:center;gap:24px}.desk-launch-action p{font-size:13px;line-height:1.5;color:#536780;max-width:31ch;margin:0}
.chart-desk .desk-launch-action #desk-launch{display:flex;align-items:center;justify-content:center;gap:22px;min-height:52px;padding:14px 24px;font-size:16px;line-height:1.4;white-space:nowrap;color:#fff;border-radius:10px}
.desk-launch-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.chart-desk:has(.desk-expanded) .desk-launch-bar{display:none}
@media(max-width:760px){.chart-desk{padding-bottom:180px}.desk-launch-bar{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.desk-launch-inner{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:10px}.desk-launch-summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.desk-launch-summary strong{font-size:13px}.desk-launch-summary span{font-size:12px;text-align:right}.desk-launch-action{display:flex;flex-direction:column-reverse;align-items:stretch;gap:6px}.desk-launch-action p{max-width:none;text-align:center;font-size:12px}.chart-desk .desk-launch-action #desk-launch{width:100%;min-height:48px;font-size:16px;padding:12px 16px}}

/* Controls outside the selected author mechanic must not remain clickable. */
.chart-desk [hidden]{display:none!important}

/* Keep execution dates and amounts intact; the ledger scrolls within the card. */
.grid-operations{max-width:100%;overflow-x:auto}
.grid-operations table{min-width:640px}
.grid-operations th,.grid-operations td{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
#desk-result{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
#desk-result>details{min-width:0;max-width:100%}
