.qpm .sheet.signal-builder{width:100%;max-width:1080px;margin-inline:auto}.qpm .dim:has(>.signal-builder){z-index:100;position:fixed;inset:0}.qpm .sheet.signal-builder{min-height:0;max-height:92dvh}.qpm .signal-builder :is(button,input){min-height:44px}.qpm .signal-builder .shd{z-index:2;background:var(--surface);padding-bottom:8px;position:sticky;top:-6px}.qpm .rule-builder{border-top:1px solid var(--line);min-width:0;margin-top:20px;padding-top:12px}.qpm .rb-title,.qpm .rb-row-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.qpm .rb-title h4,.qpm .rb-picker h4{margin:0;font-size:15px;font-weight:600}.qpm .rb-title output{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.qpm .rb-meta,.qpm .rb-group-controls,.qpm .rb-condition-grid{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.qpm .rb-meta>*,.qpm .rb-condition-grid>*,.qpm .rb-group-controls>*{min-width:0}.qpm .rb-numbers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.qpm .rb-select{text-align:left;gap:8px;width:100%;min-width:0}.qpm .rb-select>span:first-child{overflow-wrap:anywhere;white-space:normal}.qpm .rule-builder .fld{margin-top:8px}.qpm .rule-builder .in{border-color:var(--line-strong);width:100%;min-width:0;height:auto;padding:8px 10px}.qpm .rb-group{border:1px solid var(--line);border-radius:2px;min-width:0;margin:12px 0 0;padding:8px}.qpm .rb-group legend{color:var(--muted);padding-inline:4px;font-size:11px}.qpm .rb-group.is-nested{border-left-width:2px}.qpm .rb-condition{border-top:1px solid var(--line);min-width:0;margin-top:12px;padding:12px 0}.qpm .rb-condition.has-error{border-top-color:var(--down)}.qpm .rb-row-heading b{font-size:12px;font-weight:500}.qpm .rb-row-heading .btn,.qpm .rb-remove-group{flex:none;padding:8px 10px;font-size:12px}.qpm .rb-remove-group{align-self:end}.qpm .rb-add,.qpm .rb-start{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.qpm .rb-add .btn,.qpm .rb-start .btn{flex:1}.qpm .rb-hint{color:var(--muted);margin:8px 0 0;font-size:11px;line-height:1.6;display:block}.qpm .rb-error{color:var(--down);margin:8px 0 0;font-size:12px;line-height:1.6}.qpm .rb-pattern-op{color:var(--muted);margin-top:14px;font-size:12px;line-height:1.6}.qpm .rb-preview{border-top:1px solid var(--line);overflow-wrap:anywhere;margin-top:12px;padding:12px 0;font-size:12px;line-height:1.7}.qpm .rb-preview b{font-weight:500}.qpm .rb-preview p{margin:4px 0}.qpm .rb-preview small{color:var(--muted)}.qpm .rb-boundary{border-block:1px solid var(--line);margin-top:16px;padding:12px 0;font-size:12px;line-height:1.7}.qpm .rb-boundary h4{margin:0 0 4px;font-size:14px}.qpm .rb-boundary p{color:var(--muted);margin:4px 0}.qpm .rb-boundary .btn{margin-top:8px}.qpm .rb-demo{color:var(--amber);margin:8px 0;font-size:12px}.qpm .rb-template-list{flex-direction:column;max-height:240px;margin-top:8px;display:flex;overflow:auto}.qpm .rb-template-list button{text-align:left;border:0;border-bottom:1px solid var(--line);background:0 0;border-radius:2px;padding:10px 4px}.qpm .rb-template-list b{font-size:13px;font-weight:500;display:block}.qpm .rb-template-list small{color:var(--muted)}.qpm .rb-picker-scrim{z-index:120;background:var(--scrim);justify-content:center;align-items:flex-end;padding:12px;display:flex;position:fixed;inset:0}.qpm .rb-picker{background:var(--surface);border:1px solid var(--line);border-radius:2px;width:100%;max-width:600px;max-height:85dvh;padding:12px;overflow:auto}.qpm .rb-picker .in{border:1px solid var(--line-strong);background:0 0;border-radius:2px;width:100%;height:44px;margin-top:8px;padding:10px;display:block}.qpm .rb-picker-options{flex-direction:column;margin-top:8px;display:flex}.qpm .rb-picker-options button{text-align:left;border:0;border-bottom:1px solid var(--line);width:100%;min-height:44px;color:var(--ink);background:0 0;border-radius:2px;justify-content:space-between;align-items:center;gap:12px;padding:10px 4px;display:flex}.qpm .rb-picker-options button[aria-selected=true]{color:var(--accent)}.qpm :is(.rule-builder,.rb-picker,.signal-builder) button:focus-visible{outline:1px solid var(--ink);outline-offset:2px}.qpm :is(.rule-builder,.rb-picker,.signal-builder) input:focus-visible{outline:1px solid var(--ink);outline-offset:0}.qpm .rule-builder button:disabled,.qpm .signal-builder button:disabled{opacity:.55;cursor:not-allowed}@media (min-width:760px){.qpm .rb-meta{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.qpm .rb-condition-grid{grid-template-columns:minmax(0,1fr) minmax(120px,.6fr) minmax(0,1fr);gap:12px}.qpm .rb-group-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.qpm .rb-picker-scrim{align-items:center}}
.qpm .fysi{border:1px solid color-mix(in srgb, var(--amber) 40%, var(--line));background:var(--surface);color:var(--ink);border-radius:2px;align-items:center;gap:10px;margin:8px 14px 0;padding:8px 10px;font-size:12px;line-height:1.4;display:flex}.qpm .fysi>i{background:var(--amber);border-radius:2px;flex:none;align-self:flex-start;width:6px;height:6px;margin-top:6px}.qpm .fysi .t{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.qpm .fysi .t b{font-weight:500}.qpm .fysi .t small{color:var(--muted);font-size:11px}.qpm .fysi .btn{white-space:nowrap;border-radius:2px;flex:none;width:auto;height:34px;min-height:34px;padding:0 12px;font-size:12.5px}.qpm .fysi .btn:disabled{opacity:.55}.qpm .osh .fysi{margin:10px 0 0}
.qpm .sheet.osh{background:var(--surface);border:1px solid var(--line);box-shadow:none;border-radius:2px;padding:0 14px 14px}.qpm .osh .hd{flex-wrap:wrap;gap:8px}.qpm .osh .sym b{font-size:15px;font-weight:500}.qpm .osh .exch{min-height:40px;padding-inline:4px}.qpm .osh .hd .lt{border:1px solid var(--line);background:0 0;border-radius:50%}.qpm .osh .bsx{border-color:var(--line-strong);border-radius:2px}.qpm .osh .bsx button{width:52px;height:40px;min-height:40px;font-weight:500}.qpm .osh .bsx button.on{color:var(--on-trade);font-weight:600}.qpm .osh .bsx button:not(.on){background:0 0}.qpm .osh .bsx button.b{color:var(--buy)}.qpm .osh .bsx button.s{color:var(--sell)}.qpm .osh .bsx button.on.b{background:var(--buy-fill);color:var(--on-trade)}.qpm .osh .bsx button.on.s{background:var(--sell-fill);color:var(--on-trade)}.qpm .osh .ltpr{flex-wrap:wrap;gap:4px 12px;min-height:28px;font-size:11px}.qpm .osh .ltpr b{color:var(--ink);font-size:14px;font-weight:500}.qpm .osh .ltpr small{font-size:11px}.qpm .osh .order-demo-label{color:var(--muted);flex-basis:100%;font-size:10px}.qpm .osh .otabs{gap:20px;margin-top:8px}.qpm .osh .otabs button{min-width:44px;min-height:44px;padding-block:0;font-size:12px}.qpm .osh .otabs button.on{border-bottom-color:var(--accent);font-weight:500}.qpm .osh .ofl{gap:12px;margin-top:12px}.qpm .osh .fld>label{color:var(--muted);font-size:11px}.qpm .osh .seg{border:1px solid var(--line-strong);background:0 0;border-radius:2px;gap:2px;min-height:44px;padding:2px}.qpm .osh .seg button{height:auto;min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:2px;font-size:12px}.qpm .osh .seg button.on{background:var(--surface2);color:var(--ink);box-shadow:none;border:0;font-weight:500}.qpm .osh .in,.qpm .osh .stepin,.qpm .osh .pxin{border:1px solid var(--line-strong);height:44px;min-height:44px;color:var(--ink);background:0 0;border-radius:2px;font-size:14px}.qpm .osh .in:focus-within,.qpm .osh .stepin:focus-within,.qpm .osh .pxin:focus-within{outline:1px solid var(--ink);outline-offset:-1px}.qpm .osh .in.off{background:var(--surface2);color:var(--faint)}.qpm .osh .stepin button,.qpm .osh .pxin button{min-width:40px;min-height:40px;font-size:15px}.qpm .osh .pxin .ltpb{padding:0 6px;font-size:11px}.qpm .osh .presets{gap:4px}.qpm .osh .presets button{border-color:var(--line-strong);background:0 0;height:auto;min-height:40px;font-size:11px}.qpm .osh .presets button.on{color:var(--ink);background:var(--surface2);border-color:var(--line-strong)}.qpm .osh .morerow{align-items:center;gap:12px}.qpm .osh .more{min-height:40px;font-size:11px}.qpm .osh .ofoot{background:var(--surface);margin-top:12px;padding-top:12px}.qpm .osh .mrg{flex-wrap:wrap;gap:8px;font-size:12px}.qpm .osh .mrg>span{white-space:nowrap}.qpm .osh .ofoot .row2 .ib{border-color:var(--line-strong);width:48px;height:48px}.qpm .osh .ofoot .btn{height:48px;min-height:48px;color:var(--on-trade);font-size:15px;font-weight:600}.qpm .osh .ofoot .btn.buy{background:var(--buy-fill)}.qpm .osh .ofoot .btn.sell{background:var(--sell-fill)}@media (min-width:1024px){.qpm .sheet.osh{width:480px;max-width:480px;margin-inline:auto}}.qpm .osh .obroker{margin-bottom:10px}.qpm .osh .obroker .seg{border-radius:2px;flex-wrap:wrap}.qpm .osh .obroker .seg button{border-radius:2px}.qpm .osh .obto{color:var(--muted);margin:2px 0 8px;font-size:12px}.qpm .osh .obto b{color:var(--ink);font-weight:600}
.qpm .chat-mute[aria-pressed=true]{color:var(--muted)}.qpm .chat-mute[aria-pressed=false]{color:var(--ink)}.qpm .chat-lang{border:1px solid var(--line-strong);width:44px;height:44px;color:var(--muted);border-radius:2px;flex:none;place-items:center;display:grid;position:relative}.qpm .chat-lang b{color:var(--ink);font-size:8.5px;font-weight:600;line-height:1;position:absolute;bottom:2px;right:3px}.qpm .chat-lang select{opacity:0;cursor:pointer;border:0;width:100%;height:100%;font-size:16px;position:absolute;inset:0}.qpm .chat-lang:focus-within{border-color:var(--ink);color:var(--ink)}.qpm .chat-bar{border-top:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--ink);align-items:center;gap:8px;padding:4px 8px 4px 14px;font-size:12.5px;display:flex}.qpm .chat-bar .grow{flex:1;min-width:0}.qpm .chat-bar .dot{background:var(--accent);border-radius:50%;flex:none;width:8px;height:8px}@media (prefers-reduced-motion:no-preference){.qpm .chat-bar .dot{animation:1.1s ease-in-out infinite chat-pulse}}@keyframes chat-pulse{50%{opacity:.35}}.qpm .chat-bar-btn{border:1px solid var(--line-strong);min-height:36px;color:var(--ink);background:0 0;border-radius:2px;flex:none;align-items:center;gap:6px;padding:0 12px;font-size:12.5px;font-weight:500;display:inline-flex}.qpm .chat-bar-btn.pri{background:var(--ink);border-color:var(--ink);color:var(--bg)}.qpm .chat-chips{flex-wrap:wrap;gap:6px;margin:10px 0 4px;display:flex}.qpm .chat-chip{border:1px solid var(--line-strong);min-height:36px;color:var(--ink);text-align:left;background:0 0;border-radius:2px;padding:7px 11px;font-size:12.5px;line-height:1.3}.qpm .chat-chip:hover{border-color:var(--accent)}.qpm .chat-chip:disabled{opacity:.5}.qpm .chat-more{min-height:36px;padding:0 4px;font-size:12.5px}
.qpm .theme-t4{background:var(--bg)}.qpm .theme-t4 :is(.card,.note,.finder,.scard,.stats>div,.gk4,.tpl,.quanty-algo-library .btn){background:var(--bg);box-shadow:none}.qpm .theme-t4 :is(.card,.note,.finder,.scard){border:1px solid var(--line);border-radius:2px}.qpm .theme-t4 .note{gap:8px;padding:12px;line-height:1.55}.qpm .theme-t4 .note svg{color:var(--muted);width:16px;height:16px}.qpm .theme-t4 .theme-demo{padding-top:4px;padding-bottom:4px;font-size:11px}.qpm .theme-t4 :is(.btn,.lnkb,.ib,.seg button,.sel,.step button,.sctfs button){border-radius:2px;min-height:40px}.qpm .theme-t4 :is(.ib,.step button){min-width:40px}.qpm .theme-t4 .btn{border-color:var(--line-strong);background:0 0;font-size:13px;font-weight:500}.qpm .theme-t4 .btn.pri{background:var(--ink);border-color:var(--ink);height:48px;color:var(--bg);font-size:15px;font-weight:600}.qpm .theme-t4 .btn.buy{background:var(--buy-fill);border-color:var(--buy-fill);color:var(--on-trade)}.qpm .theme-t4 .btn.sell{background:var(--sell-fill);border-color:var(--sell-fill);color:var(--on-trade)}.qpm .theme-t4 .sbfoot .btn{justify-content:center;align-items:center;gap:6px;min-width:0;height:48px;line-height:1.3;display:flex}.qpm .theme-t4 .sbfoot .btn svg{stroke-width:1.75px;flex:none;width:16px;height:16px;display:block}.qpm .theme-t4 .fld .in{border-color:var(--line-strong);background:0 0;border-radius:2px;min-height:44px}.qpm .theme-t4 .fld .in:focus{border-color:var(--ink);box-shadow:none}.qpm .theme-t4 .seg{border-color:var(--line);background:0 0;min-height:40px;overflow-x:auto}.qpm .theme-t4 .seg button{flex-shrink:0;min-width:40px}.qpm .theme-t4 .seg button.on{background:var(--surface2);color:var(--ink)}.qpm .theme-t4 .step{border-color:var(--line-strong);height:40px}.qpm .theme-t4 .step button{background:0 0;height:38px}.qpm .theme-t4 :is(button,[role=button]):focus-visible{outline:1px solid var(--ink);outline-offset:2px}.qpm .theme-t4 .sw.on,.qpm .theme-t4 .tog .sw.on{background:var(--buy-fill)}.qpm .theme-t4 .sw:after{border-radius:50%}.qpm .theme-t4 .sw.on:after{background:var(--on-trade)}.qpm .theme-algos .bot{gap:8px;padding:12px}.qpm .theme-algos .bot .h{min-height:40px}.qpm .theme-algos .bot .h b{font-size:14px;line-height:1.35}.qpm .bot .h .sw{cursor:pointer;background:0 0;border:0;width:44px;height:44px;padding:0}.qpm .bot .h .sw:before{content:"";background:var(--line-strong);border-radius:2px;height:24px;position:absolute;top:10px;left:2px;right:2px}.qpm .bot .h .sw:after{background:var(--on-trade);width:18px;height:18px;top:13px;left:5px}.qpm .bot .h .sw.on:before{background:var(--buy-fill)}.qpm .bot .h .sw.on:after{background:var(--on-trade);left:21px}.qpm .theme-algos .bot .kv{gap:8px;line-height:1.5}.qpm .theme-algos .bot .kv b{font-size:13px}.qpm .theme-algos .quanty-algo-library{gap:8px}.qpm .theme-t4 :is(.scard,.lim){min-height:52px}.qpm .theme-strategies .slist{gap:0}.qpm .theme-strategies .scard{border-width:0 0 1px;padding:8px 0}.qpm .theme-strategies .scard.on{border-color:var(--line);box-shadow:inset 2px 0 var(--accent);padding-left:10px}.qpm .theme-strategies .scard b{font-size:14px}.qpm .theme-strategies .finder{padding:12px}.qpm .theme-strategies .finder .r .btn{font-size:13px;height:40px!important}.qpm .theme-strategies .finder .r .sel{height:40px!important}.qpm .theme-builder .stats b,.qpm .theme-backtest .kv2 b{font-size:14px;font-weight:500}.qpm .theme-builder .leg{grid-template-columns:40px minmax(0,1fr);gap:8px;padding:12px 0}.qpm .theme-builder .leg .side{width:40px;height:40px;font-weight:600}.qpm .theme-builder .leg>:nth-child(3){grid-area:2/1/auto/-1;justify-self:start}.qpm .theme-builder .leg>:nth-child(4){grid-area:2/1/auto/-1;justify-self:end}.qpm .theme-builder .tgt{flex-wrap:wrap;gap:8px}.qpm .theme-builder .tgt .num{margin-left:auto}.qpm .theme-builder .gk4{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.qpm .theme-builder .pay{background:var(--chart-bg)}.qpm .theme-builder .pay>.sh{flex-wrap:wrap;gap:8px}.qpm .theme-backtest .kv2>div{background:var(--bg);border-bottom:1px solid var(--line);padding:8px 0}.qpm .theme-backtest .lim{border-bottom:1px solid var(--line);gap:12px}.qpm .theme-backtest .lim>span{min-width:0}.qpm .theme-backtest .lim>b{flex:none}.qpm .theme-backtest .backtest-curve{background:var(--chart-bg)}.qpm .theme-backtest .backtest-curve.up .area path[fill=none]{stroke:var(--up)}.qpm .theme-backtest .backtest-curve.dn .area path[fill=none]{stroke:var(--down)}.qpm .theme-backtest .bt-grid{border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:2px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.qpm .theme-backtest .bt-grid>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg);min-width:0;padding:7px 8px}.qpm .theme-backtest .bt-grid small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;display:block;overflow:hidden}.qpm .theme-backtest .bt-grid b{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;display:block;overflow:hidden}.qpm .theme-backtest .bt-mgrid{border:1px solid var(--line);border-radius:2px;max-width:100%;margin-top:8px;overflow-x:auto}.qpm .theme-backtest .bt-mgrid table{border-collapse:collapse;width:100%;font-size:12px}.qpm .theme-backtest .bt-mgrid :is(th,td){text-align:right;border-bottom:1px solid var(--line);white-space:nowrap;padding:6px 8px}.qpm .theme-backtest .bt-mgrid :is(th,td):first-child{text-align:left;color:var(--muted)}.qpm .theme-backtest .bt-mgrid th{color:var(--muted);font-weight:500}.qpm .theme-backtest .bt-mgrid .tot td{border-bottom:0;font-weight:600}.qpm .theme-backtest .bt-trade>span{flex-direction:column;gap:2px;display:flex}.qpm .theme-backtest .bt-trade small{color:var(--muted);font-size:11px}.qpm .theme-baskets .card{min-height:52px}.qpm .theme-baskets .card .btn{height:40px;font-size:12px}.qpm .theme-scalper .scpanel{background:var(--bg);gap:8px}.qpm .theme-scalper .big{min-height:48px;font-size:15px;font-weight:600}.qpm .theme-scalper .qty{min-height:48px}.qpm .theme-scalper .sctfs{flex:1;min-width:0;overflow-x:auto}.qpm .theme-scalper .sctfs button{padding:0 8px}.qpm .theme-scalper .cps button{min-height:40px}.qpm .theme-scalper .cps button.on{background:var(--surface2);color:var(--ink)}.qpm .theme-scalper .chart.dual>div{container-type:inline-size}.qpm .theme-scalper .chart.dual .chart-overlay-grid-heading .chart-overlay-identity{flex-wrap:nowrap;overflow:hidden}.qpm .theme-scalper .chart.dual .chart-overlay-grid-heading{grid-template-columns:minmax(0,1fr) auto 40px}.qpm .theme-scalper .chart.dual .chart-overlay-grid-heading>button{width:40px}.qpm .theme-scalper .chart.dual .chart-overlay-grid-heading .chart-overlay-identity strong{white-space:nowrap;text-overflow:ellipsis;overflow-wrap:normal;min-width:0;overflow:hidden}.qpm .theme-t4 .opswrap .seg{flex-wrap:wrap;overflow:visible}.qpm .theme-t4 .opswrap .seg button{flex:1 0 calc(50% - 4px)}@media (min-width:1024px){.qpm .qpm-app.theme-t4{max-width:1440px}:is(.qpm .theme-algos .scroll:has(>.quanty-algo-library),.qpm .theme-strategies>.scroll){grid-template-columns:380px minmax(0,1fr);align-content:start;display:grid}.qpm .theme-algos .scroll>.quanty-algo-library{flex-direction:column;align-self:start;align-items:stretch;padding:16px}.qpm .theme-algos .scroll>.quanty-algo-library .btn{flex:none}.qpm .theme-algos .scroll:has(>.quanty-algo-library)>.sec:not(.quanty-algo-library){border-left:1px solid var(--line)}.qpm .theme-strategies .finder{align-self:start;margin:0 16px 16px}.qpm .theme-strategies .slist{border-left:1px solid var(--line);padding:0 16px 16px}.qpm .theme-builder>.scroll{grid-template-columns:380px minmax(0,1fr);grid-auto-rows:min-content;align-content:start;gap:0;display:grid}.qpm .theme-builder .builder-summary,.qpm .theme-builder .stats,.qpm .theme-builder .gk4,.qpm .theme-builder .legs,.qpm .theme-builder .tgt{grid-column:1}.qpm .theme-builder .pay{grid-area:1/2/7;align-self:start;margin:16px}.qpm .theme-builder .pay>svg{max-height:420px}.qpm .theme-builder .stats{align-self:start;min-height:56px}.qpm .theme-builder>.scroll>.note{grid-column:1/-1}.qpm .theme-backtest>.scroll>.sec,.qpm .theme-baskets>.scroll>.sec,.qpm .theme-signals>.scroll>.sec{width:100%;max-width:960px;margin-inline:auto;padding-inline:16px}.qpm .theme-scalper{grid-template-rows:48px 48px minmax(0,1fr) 36px;grid-template-columns:380px minmax(0,1fr);display:grid}.qpm .theme-scalper>.top{grid-area:1/1/auto/-1}.qpm .theme-scalper>.tabs{grid-area:2/1/auto/-1}.qpm .theme-scalper>.chart{grid-area:3/2}.qpm .theme-scalper>.scpanel{border-top:0;border-right:1px solid var(--line);grid-area:3/1;padding:16px}.qpm .theme-scalper>.pstrip{grid-area:4/1/auto/-1}}@media (max-height:500px) and (min-width:600px){.qpm .theme-scalper{overflow-y:auto}.qpm .theme-scalper>.chart{flex:none;min-height:220px}}
