/* Scenario + trade: the existing ink/paper palette, typography and execution controls. */
.cx-scenario{min-width:0}
.cx-scenario .cx-state{margin:10px 0 7px;font:400 21px/1.2 var(--f-display);letter-spacing:-.02em;overflow-wrap:anywhere}
.cx-scenario[data-state="ready"] .cx-state{color:var(--text)}
.cx-scenario[data-state="stale"] .cx-state,.cx-scenario[data-state="expired"] .cx-state{color:var(--seal)}
.cx-scenario .cx-level{margin:0;font-size:13px;line-height:1.5;color:var(--text-2)}
.cx-scenario .cx-next{margin:5px 0 0;font:11px/1.5 var(--f-mono);color:var(--muted)}
.cx-actions{display:flex;align-items:center;gap:10px;margin-top:12px}
.cx-actions .tk-btn{flex:1;min-height:38px;padding:8px;font-size:12px}
.cx-actions .tk-btn:not([disabled]):hover{border-color:var(--text)}
.cx-actions .linkbtn{flex:none;font-size:11.5px}
.cx-rules,.cx-cycle,.cx-costs,.cx-wallet{font-size:12px;color:var(--text-2)}
.cx-rules{margin-top:12px;border-top:1px solid var(--line-soft);padding-top:9px}
.cx-rules>summary,.cx-cycle>summary,.cx-costs>summary,.cx-wallet>summary{cursor:pointer;line-height:1.5;list-style-position:inside;color:var(--muted)}
.cx-rules>summary:hover,.cx-cycle>summary:hover,.cx-costs>summary:hover,.cx-wallet>summary:hover{color:var(--text)}
.cx-rules[open]>summary,.cx-costs[open]>summary{margin-bottom:9px}
.cx-rules ul{margin:8px 0;padding-left:16px;display:grid;gap:6px}
.cx-rules li{line-height:1.5}
.cx-rules .fine{margin:7px 0;overflow-wrap:anywhere}
.cx-cycle{margin:13px -16px -12px;padding:10px 16px;border-top:1px solid var(--line-soft)}
.cx-cycle>summary{color:var(--text-2)}
.cx-cycle>summary b{font-weight:500;margin-left:7px}
.cx-cycle>summary .en-badge{float:right;margin-top:3px}
.cx-cycle[open]>summary{margin-bottom:14px}
#tkBlk{min-width:0;padding-top:16px}
#tkBlk>h2{margin-bottom:12px}
.cx-account-label{color:var(--text-2);font-size:12px;line-height:1.45}
.cx-wallet{margin:7px 0}
.cx-nav{display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid var(--line-soft);margin:0 -16px 14px;padding:0 16px;gap:4px}
/* the account's positions, journal and budgets under the plan, set apart by a rule */
.cx-lower{margin:18px -16px 0;padding:4px 16px 0;border-top:1px solid var(--line)}
.cx-lower>.cx-nav{margin-top:0}
.cx-nav button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:10px 3px;font-size:12px;min-height:40px;white-space:nowrap}
.cx-nav button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--text);font-weight:600}
.cx-nav button:hover{color:var(--text)}
.cx-count{font:10px/1 var(--f-mono);margin-left:5px;color:var(--muted)}
.cx-source{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:11.5px;margin:0 0 12px;color:var(--muted)}
.cx-source b{font-weight:500;color:var(--text-2);text-align:right;overflow-wrap:anywhere}
.cx-copy-note{border-left:2px solid var(--line);padding-left:8px;line-height:1.5!important}
.cx-id{font-size:10px!important;font-family:var(--f-mono);overflow-wrap:anywhere}
.cx-order-types{margin:12px 0 9px}
.cx-order-types .seg{width:100%;border:0;border-bottom:1px solid var(--line-soft)}
.cx-order-types .seg button{flex:1;min-height:36px;border:0;border-bottom:2px solid transparent;color:var(--muted);background:none}
.cx-order-types .seg button[aria-pressed="true"]{border-bottom-color:var(--text);color:var(--text);background:none}
.cx-side{display:flex;width:100%;margin:0 0 14px}
.cx-side.seg.sm button{flex:1;min-height:40px;font-size:13px}
.cx-side button[data-v="short"][aria-pressed="true"]{background:var(--seal);border-color:var(--seal);color:var(--bg)}
.cx-field-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin:13px 0 5px;font-size:11px}
.cx-field-head b{font-weight:500;color:var(--text-2)}
.cx-field-head span{color:var(--muted);font-size:10px}
#tkForm .tk-in{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#tkForm .tk-in label{gap:6px;min-width:0}
#tkForm .tk-in input{min-width:0;min-height:40px;padding:9px 10px;font-size:14px}
#tkForm .cx-entry{grid-template-columns:minmax(0,1fr)}
#tkForm .cx-sizing{grid-template-columns:112px minmax(0,1fr);align-items:end;margin-top:14px}
.cx-sizing .fine{padding-bottom:3px;font-size:10.5px;line-height:1.5;color:var(--muted)}
.cx-metrics{display:grid;grid-template-columns:1.15fr 1fr .65fr;gap:8px;padding:12px 0;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);margin:12px 0}
.cx-metrics>div{min-width:0}
.cx-metrics span{display:block;color:var(--muted);font-size:10px;margin-bottom:5px;line-height:1.4}
.cx-metrics b{font:500 11.5px/1.5 var(--f-mono);overflow-wrap:anywhere}
.cx-costs{margin:12px 0}
.cx-costs .tk-card{border:0;padding-top:0}
.cx-empty{padding:14px 0 20px;line-height:1.6!important}
#tkPane-positions .tk-h{margin-top:0}
#tkPane-journal .tk-jt{min-width:0}
#tkPane-journal td{overflow-wrap:anywhere}
.cx-nav button:focus-visible,.cx-actions button:focus-visible,.cx-rules>summary:focus-visible,.cx-cycle>summary:focus-visible,.cx-costs>summary:focus-visible{outline:2px solid var(--text);outline-offset:2px}
@media (max-width:980px){
  .cx-nav button{min-height:44px;font-size:13px}
  .cx-actions .tk-btn{min-height:44px}
  #tkForm .tk-in input{font-size:16px;min-height:44px}
  .cx-side.seg.sm button{min-height:44px}
}
@media (prefers-reduced-motion:reduce){.cx-scenario,#tkBlk{scroll-behavior:auto}}

/* Sizing and price handoff: existing paper/ink controls, no change to the platform layout. */
.cx-order-help{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-4px 0 12px;font:11px/1.5 var(--f-mono);color:var(--muted)}
.cx-help{position:relative;flex:none;font:12px/1.55 var(--f-body);color:var(--text-2)}
.cx-help>summary{display:grid;place-items:center;width:26px;height:26px;cursor:pointer;border:1px solid var(--line);list-style:none;font:12px var(--f-mono);color:var(--muted)}
.cx-help>summary::-webkit-details-marker{display:none}
.cx-help>p{position:absolute;right:0;top:28px;width:min(255px,65vw);margin:0;padding:12px;background:var(--bg);border:1px solid var(--line);box-shadow:0 6px 18px #0002;z-index:6}
.cx-help[open]>summary{color:var(--text);border-color:var(--text)}
.cx-field-head .cx-help{margin-top:-4px}
.cx-size-mode{display:flex;width:100%;margin:4px 0 12px}
.cx-size-mode button,.seg.sm.cx-size-mode button{flex:1;min-height:34px;font-size:12px}
#tkForm .cx-sizing{margin-top:0}
/* size and risk (variant 3, В3-1): «Ризик» with what follows from it on the right, the chips under it */
.cx-size-head{align-items:center}
.cx-field-head .cx-size-sum{margin-left:auto;min-width:0;text-align:right;font:500 11px/1.4 var(--f-mono);color:var(--text-2);overflow-wrap:anywhere}
.cx-size-head .cx-help{margin-top:0}
/* stop and target (variant 3, В3-2): the stop's method and the target's R as chips under the fields; why a method gave
   no stop; «Мої» under the button */
/* В1 «Сетапи» (owner 21.11.2026): the risk's slider over its marks, % or $, the setups in one tap */
.cx-size-unit{display:inline-flex;margin-left:6px}
.cx-size-unit button{min-width:28px;min-height:24px;padding:0 7px}
.cx-risk-v{font-family:var(--f-mono);font-size:13.5px;margin-left:6px;white-space:nowrap}
/* the head: «Ризик», % or $, the value and «?» in one line; what the stop costs → the size, a line of its own under it */
.cx-size-head{flex-wrap:wrap;row-gap:2px}
.cx-size-head .cx-help{margin-left:auto}
.cx-field-head.cx-size-head .cx-size-sum{order:5;flex:1 0 100%;margin-left:0}
.cx-risk-v.hi,.cx-risk.hi .cx-risk-m .on{color:var(--seal)}
.cx-risk{position:relative;margin:4px 8px 0;padding-bottom:16px}
.cx-risk input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:28px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y}
.cx-risk input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--text) var(--at,0%),var(--line-soft) var(--at,0%))}
.cx-risk input[type=range]::-moz-range-track{height:2px;background:linear-gradient(to right,var(--text) var(--at,0%),var(--line-soft) var(--at,0%))}
.cx-risk input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-7px;background:var(--bg);border:2px solid var(--text);box-sizing:border-box;border-radius:0}
.cx-risk input[type=range]::-moz-range-thumb{width:16px;height:16px;background:var(--bg);border:2px solid var(--text);box-sizing:border-box;border-radius:0}
.cx-risk.hi input[type=range]::-webkit-slider-thumb{border-color:var(--seal)}
.cx-risk.hi input[type=range]::-moz-range-thumb{border-color:var(--seal)}
.cx-risk input[type=range]:focus-visible{outline:1px solid var(--text);outline-offset:2px}
.cx-risk-m{position:absolute;left:0;right:0;bottom:0;height:16px}
.cx-risk-m button{position:absolute;transform:translateX(-50%);border:0;background:none;padding:0 2px;min-height:16px;font-family:var(--f-mono);font-size:10.5px;color:var(--muted);white-space:nowrap;cursor:pointer}
.cx-risk-m button.beg{transform:none}.cx-risk-m button.end{transform:translateX(-100%)}
.cx-risk-m button.w{color:var(--seal);opacity:.75}
.cx-risk-m button[aria-pressed=true]{color:var(--text);font-weight:600;opacity:1}
.cx-risk-hi{color:var(--seal);margin:2px 0 0}
.cx-pre{margin:10px 0 4px}
/* set В (owner 25.11.2026): the title, the target's ratio as a switch, «Змінити»; three widths, each with what it gives now */
.cx-pre-h{display:flex;align-items:center;gap:8px;font-size:12.5px;margin-bottom:6px}
.cx-pre-h b{font-weight:600;white-space:nowrap;margin-right:auto}.cx-pre-h .linkbtn{font-size:11.5px}
.cx-pre-r{flex:none}
.seg.sm.cx-pre-r button{min-width:0;min-height:24px;padding:0 6px;font:500 10.5px/1 var(--f-mono);letter-spacing:-.02em;white-space:nowrap}
.seg.sm.cx-pre-r button.dflt{color:var(--text);box-shadow:inset 0 -2px 0 var(--text)}
.cx-pre-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.cx-pre-row button{min-width:0;min-height:54px;padding:8px 8px 7px;border:1px solid var(--text);background:var(--bg);color:var(--text);display:grid;align-content:center;justify-items:start;gap:7px;text-align:left;cursor:pointer}
.cx-pre-row button b{font:600 12.5px/1 var(--f-body);white-space:nowrap}
.cx-pre-row button span{font:500 10.5px/1 var(--f-mono);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.86;min-height:10.5px}
.cx-pre-row button.mine{background:var(--text);color:var(--bg)}
.cx-pre-row button:focus-visible{outline:1px solid var(--text);outline-offset:2px}
.cx-lv{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.cx-lv .seg{display:flex;flex:1 1 auto;min-width:0}
.cx-lv-stop{flex-grow:4}
.cx-lv-tgt{flex-grow:3}
.cx-lv .seg.sm button{flex:1;min-width:0;min-height:30px;padding:4px 6px;font-size:11.5px;white-space:nowrap}
.cx-lv-why{margin:4px 0 0;min-height:0;font-size:10.5px;line-height:1.5;color:var(--muted)}
.cx-lv-why:empty{display:none}
.cx-mine{margin:6px 0 0;font-size:10.5px;color:var(--muted)}
/* risk : gain (variant 3, В3-3б): the loss and the gain as one bar in the grid's place, the R and the liquidation under
   it; no rules around it, as the approved picture */
.cx-rr{margin:14px 0 12px}
.cx-rr-bar{display:grid;grid-template-columns:auto minmax(40px,1fr) auto;gap:8px;align-items:center}
.cx-rr-bar b{font:500 12px/1.4 var(--f-mono);white-space:nowrap}
.cx-rr-l{color:var(--seal)}
.cx-rr-g{color:var(--text)}
.cx-rr-g.none{font:400 11px/1.4 var(--f-body);color:var(--muted)}
.cx-rr-track{display:flex;height:6px;background:var(--line-soft);overflow:hidden}
.cx-rr-track i{display:block;height:100%}
.cx-rr-track .dn{background:var(--seal)}
.cx-rr-track .up{background:var(--text)}
.cx-rr-cap{margin:6px 0 0;text-align:center;font-size:10.5px;line-height:1.5;color:var(--muted)}
.cx-rr-cap .cx-cap{display:inline-block;margin-right:2px;padding:2px 5px;border:1px solid var(--line);font:500 9.5px/1.2 var(--f-mono);font-style:normal;letter-spacing:.02em;color:var(--text-2);white-space:nowrap}
.cx-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:4px 0 10px}
.cx-presets button{min-height:30px;padding:4px;border:1px solid var(--line-soft);background:none;color:var(--muted);font:11px var(--f-mono)}
.cx-presets button[aria-pressed="true"]{color:var(--text);border-color:var(--text);background:var(--ink-soft)}
.cx-presets button:disabled{opacity:.45;cursor:not-allowed}
.cx-metrics small{display:block;font:10px/1.5 var(--f-mono);color:var(--muted);margin-top:3px}
.cx-metrics .cx-cap{display:inline-block;margin-top:5px;padding:2px 5px;border:1px solid var(--line);font:500 9.5px/1.2 var(--f-mono);font-style:normal;letter-spacing:.02em;color:var(--text-2);white-space:nowrap}
.cx-provenance{margin:0 0 8px;padding:0;border:0}
.cx-book-source{font-size:10.5px!important;color:var(--muted)}
.lr button.lr-p{position:relative;z-index:1;width:100%;min-width:0;border:0;padding:0;margin:0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer;line-height:inherit}
.lr button.lr-p:hover{text-decoration:underline;text-underline-offset:3px}
.lr button.lr-p:focus-visible,.cx-help>summary:focus-visible,.cx-presets button:focus-visible,.cx-size-mode button:focus-visible,.cx-lv button:focus-visible{outline:2px solid var(--text);outline-offset:2px}
@media(max-width:980px){
  /* (the chips' own selectors: «.seg.sm button» of app.css would hold them at 24 px) */
  .cx-size-mode button,.seg.sm.cx-size-mode button,.cx-presets button,.cx-lv .seg.sm button{min-height:44px}
  .seg.sm.cx-pre-r button{min-height:40px;padding:0 8px;font-size:12px}
  .cx-help>summary{width:32px;height:32px}
  .cx-help>p{top:34px}
  .lr:has(button.lr-p){height:30px}
  .lr button.lr-p{min-height:30px}
}
/* partial close and leverage (1.1-7) */
.tk-close{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;align-items:center}.tk-close .fine{grid-column:1/-1}.tk-close .tk-btn{min-width:0;width:100%}
.cx-levd{margin:2px 0 8px}.cx-levd .cx-presets{margin:8px 0 4px}
/* trade panel (22.10): the wallet picker, the execution market strip with the leverage chip, the side on the main
   button, and quiet motion — only where a state changes, never while a number simply refreshes */
.tk-wallets{display:grid;gap:6px;margin:10px 0 8px}.tk-get.fine{margin:6px 0}
.tk-wallet{display:grid;grid-template-columns:24px minmax(0,1fr) auto 14px;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background-color .15s,transform .08s}
.tk-wallet:hover{border-color:var(--text);background:var(--surface-2)}
.tk-wallet:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.tk-wallet img,.tk-wallet-ph{width:24px;height:24px;display:block}
.tk-wallet-ph{display:grid;place-items:center;border:1px solid var(--line);font:600 12px var(--f-mono)}
.tk-wallet-n{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-wallet-s{font:11px var(--f-mono);color:var(--muted)}
.tk-wallet-go{color:var(--muted);transition:transform .15s,color .15s}
.tk-wallet:hover .tk-wallet-go{color:var(--text);transform:translateX(2px)}
.tk-get a{color:var(--text)}
.cx-mkt{display:grid;gap:4px;padding:10px 0;margin:0 0 6px;border-bottom:1px solid var(--line-soft)}
.cx-mkt:empty{display:none}
.cx-mkt-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cx-mkt-top b{font:600 13px var(--f-mono);letter-spacing:.02em}
.cx-mkt-top .cx-levd{margin-left:auto}
.cx-mkt-top .cx-levd[open]{flex-basis:100%;margin-left:0}
.cx-mkt .fine{margin:0}.cx-mkt-px{display:grid;gap:2px}
.cx-px{font:500 20px/1.15 var(--f-mono);font-variant-numeric:tabular-nums;padding:0 3px;margin-left:-3px}
.cx-levd>summary{list-style:none;cursor:pointer;display:inline-block;font:500 11px/1 var(--f-mono);border:1px solid var(--line);padding:6px 9px;transition:border-color .15s}
.cx-levd>summary::-webkit-details-marker{display:none}
.cx-levd>summary:hover,.cx-levd[open]>summary{border-color:var(--text)}
.cx-levd .cx-presets{margin:8px 0 4px}
/* the trading context (13.11.2026): the market traded as a chip like the chart's instrument chip (it opens the venue's
   markets as the leverage chip opens its presets), and one line about the chart when it shows something else */
.cx-tcd>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);padding:2px 8px;min-height:26px;transition:border-color .15s}
.cx-tcd>summary::-webkit-details-marker{display:none}
.cx-tcd>summary:hover,.cx-tcd[open]>summary{border-color:var(--text)}
.cx-tcd>summary:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.cx-tcd>summary b{font:600 13px/1 var(--f-mono);letter-spacing:.02em}
.cx-tcd>summary::after{content:"▾";font-size:10px;color:var(--muted)}
.cx-tcd .cx-presets{margin:8px 0 4px}
.cx-mkt-top .cx-tcd[open]{flex-basis:100%}
/* the chart shows an instrument this exchange does not trade: where it trades and the way there, over the market
   (owner 25.11.2026) */
.cx-ctx.cx-else{display:block;margin:0 0 12px;padding:9px 10px 8px;border:1px solid var(--line);background:var(--surface-2);font-size:12px;line-height:1.45;color:var(--text-2)}
.cx-else p{margin:0}
.cx-else-1{display:flex;align-items:center;gap:10px}
.cx-else-1>span{flex:1;min-width:0;color:var(--text)}
.cx-else-1 b{font-weight:600}
.cx-else-go{flex:none;min-height:30px;padding:4px 10px;font-size:12px;white-space:nowrap}
.cx-else-2{margin-top:5px!important;color:var(--muted)}
.cx-else-2 .linkbtn{margin-left:6px}
.cx-ctx{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap;margin:6px 0 0;font-size:12px;color:var(--muted)}
.cx-ctx[data-ctx="analysis"] span{color:var(--text-2)}
/* a position on another market (variant B, owner 21.11.2026): the chart's line, its coin and result in ink */
.cx-ctx[data-ctx="pos"] b{color:var(--text);font-weight:600}
.cx-ctx[data-ctx="pos"] .cx-num{font-family:var(--f-mono);font-weight:500;font-variant-numeric:tabular-nums}
.cx-ctx[data-ctx="pos"] i{font-style:normal}
.cx-ctx[data-ctx="pos"] .dn{color:var(--seal)}
.cx-ctx[data-ctx="pos"] .cx-num.up{color:var(--gain)}
.cx-ctx[data-ctx="pos"] .cx-num.dn{color:var(--down)}
.tk-go[data-side="short"]:not([disabled]){background:var(--seal);border-color:var(--seal);color:#fff}
.tk-go,.tk-btn{transition:transform .08s ease-out,background-color .15s,border-color .15s}
@media (prefers-reduced-motion:no-preference){
  :root:not(.no-motion) .tk-wallet{animation:tkRise .32s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 45ms)}
  :root:not(.no-motion) #tkDlg[open]{animation:tkRise .2s ease-out both}
  :root:not(.no-motion) .cx-px.up{animation:tkTickUp .8s ease-out}
  :root:not(.no-motion) .cx-px.dn{animation:tkTickDn .8s ease-out}
  :root:not(.no-motion) .tk-go:not([disabled]):active,:root:not(.no-motion) .tk-btn:not([disabled]):active,:root:not(.no-motion) .tk-wallet:active{transform:scale(.985)}
}
@keyframes tkRise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes tkTickUp{from{background:var(--ink-soft)}to{background:transparent}}
@keyframes tkTickDn{from{background:var(--seal-soft)}to{background:transparent}}
/* accounts on this device and the mainnet line (Stage 2-1) */
.tk-orders li .fine{margin:0}
.cx-accts .tk-orders li{align-items:baseline}
.tk-main.fine{margin:6px 0 0;display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.tk-main .en-badge{flex:none}

/* Stage 3: the account in four numbers, a position as a card (OKX / Bitget-like), in the panel's ink-and-seal style */
.tk-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 0;margin:0 0 6px;border-bottom:1px solid var(--line-soft)}
.tk-sum>div{min-width:0}
.tk-sum span{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-bottom:4px}
.tk-sum b{font:500 12px/1.4 var(--f-mono);overflow-wrap:anywhere}
.tk-sum b.up{color:var(--gain)}
.tk-sum b.dn{color:var(--down)}
.tk-pg dd.dn{color:var(--seal)}
.tk-ph{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tk-side{font:600 10px/1 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;padding:4px 6px;border:1px solid currentColor}
.tk-side[data-side="short"]{color:var(--seal)}
.tk-lev{font:500 10.5px/1 var(--f-mono);color:var(--muted);padding:4px 6px;background:var(--ink-soft,rgba(0,0,0,.06))}
.tk-pg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;margin:8px 0 6px}
.tk-pg>div{min-width:0}
.tk-pg dt{color:var(--muted);font-size:10px;line-height:1.4}
.tk-pg dd{margin:2px 0 0;font:500 12px/1.4 var(--f-mono);overflow-wrap:anywhere}
.tk-pg dd small{display:block;font:10px/1.4 var(--f-mono);color:var(--muted)}
.tk-pg dd.dn small{color:var(--seal)}
@media (max-width:420px){.tk-sum{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The account bar at the top of the right panel and its sheet "Рахунок і безпека" (variant 2, owner 28.10.2026): the
   network, the account and what the key in this browser may do, always in view on a computer; the rest one click away */
.acct{display:grid;border-bottom:1px solid var(--line-soft);background:var(--bg);font-size:12.5px;min-width:0}
/* the accounts of both exchanges as tabs (header variant 1, owner 14.11.2026): the one shown white with a line on top,
   the other one's value always in sight; under them the rows about the account shown */
.vh{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:var(--surface-2)}
.vh-tab{position:relative;display:grid;gap:7px;align-content:start;min-width:0;min-height:80px;padding:13px 16px 11px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--muted);text-align:left}
.vh-tab+.vh-tab{border-left:1px solid var(--line)}
.vh-tab[aria-pressed="true"]{background:var(--bg);color:var(--text);border-bottom-color:var(--bg)}
.vh-tab[aria-pressed="true"]::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--text)}
.vh-tab:not([aria-pressed="true"]):hover{color:var(--text-2)}
.vh-tab:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.vh-nm{display:flex;align-items:center;gap:7px;min-width:0;font:500 10.5px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
/* the open result on a venue tab's second line (variant B, owner 21.11.2026): the name row had no room for it */
.vh-sub .ab-pnl{font:inherit;font-weight:500}
.vh-sub .ab-pnl i{font-style:normal;font-weight:400;color:var(--muted)}
.vh-sub .ab-pnl.up{color:var(--gain)}
.vh-sub .ab-pnl.dn{color:var(--down)}
.vh-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#22c55e}
:root[data-theme="light"] .vh-dot{background:#15803d}
.vh-dot.off,:root[data-theme="light"] .vh-dot.off{background:none;box-shadow:inset 0 0 0 1px var(--muted)}
.vh-bal{font:500 22px/1 var(--f-mono);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-bal.cta{font:600 15px/22px var(--f-body);color:var(--text);text-decoration:underline;text-underline-offset:4px}
.vh-sub{font:11.5px/1.1 var(--f-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-sub .ab-addr{font:inherit;font-weight:500}
.vh-rows{display:grid;gap:5px;min-width:0;padding:8px 16px 9px}
.vh-rows .ab-r2{flex-wrap:wrap;justify-content:flex-start;gap:4px 10px;min-height:28px}
.vh-rows .ab-key{flex:0 1 auto}
.vh-seal{flex:none;padding:3px 6px;border:1px solid var(--seal);color:var(--seal);font:500 10px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase}
@media (prefers-reduced-motion:no-preference){.vh-tab{transition:background-color .16s ease,color .16s ease}.vh-tab::before{animation:vhLine .22s cubic-bezier(.2,.8,.2,1)}.vh-seal{animation:vhSeal .32s cubic-bezier(.2,.8,.2,1)}}
@keyframes vhLine{from{transform:scaleX(.2);opacity:0}to{transform:none;opacity:1}}
@keyframes vhSeal{from{transform:scale(1.25);opacity:0}to{transform:none;opacity:1}}
/* Orderly's tab (stage O2): the way to an account in three steps, then the account; Hyperliquid's plan and positions
   are not under it */
.tk[data-venue="orderly"]:not([data-odtrade])>#tkPane-plan,.tk[data-venue="orderly"]:not([data-odtrade])>#tkLower{display:none}
.tk[data-venue="bybit"]:not([data-odtrade])>#tkPane-plan,.tk[data-venue="bybit"]:not([data-odtrade])>#tkLower{display:none}
.od:empty{display:none}
.od{display:grid;gap:12px;padding:14px 0 4px}
/* the way to an account, one block for both exchanges (owner 15.11.2026): the bar of steps, the list with its rail;
   a step done is a line with its fact, the step in hand is open, a step ahead a line with a hint */
.cn{border:1px solid var(--line);margin:12px 0}
.od .cn,.tk[data-venue="orderly"] .cn,.tk[data-venue="bybit"] .cn{margin-bottom:0}
.cn-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0;padding:10px 12px 8px;font:500 10.5px/1.2 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
.cn-n{color:var(--muted);white-space:nowrap}
.cn-bar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px;padding:0 12px 10px}
.cn-bar i{height:3px;background:var(--line)}
.cn-bar i[data-s="done"]{background:var(--text)}
.cn-bar i[data-s="now"]{background:linear-gradient(90deg,var(--text) 50%,var(--line) 50%)}
.cn-l{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-soft)}
.cn-st{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:7px 12px;color:var(--muted)}
.cn-st+.cn-st{border-top:1px solid var(--line-soft)}
.cn-st:not(:last-child)::after{content:"";position:absolute;left:22.5px;top:29px;bottom:-8px;width:1px;background:var(--line);z-index:1}
.cn-st[data-s="done"]:not(:last-child)::after{background:var(--text)}
.cn-mk{position:relative;z-index:2;width:22px;height:22px;border:1px solid currentColor;background:var(--bg);font:500 11px/20px var(--f-mono);font-style:normal;text-align:center}
.cn-st[data-s="now"]{color:var(--text);padding-bottom:11px}
.cn-st[data-s="now"] .cn-mk{background:var(--text);border-color:var(--text);color:var(--bg)}
.cn-st[data-s="done"] .cn-mk{color:var(--text)}
.cn-b{min-width:0}
.cn-r{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0;min-height:22px}
.cn-r b{font-size:13px;font-weight:600;line-height:22px}
.cn-st[data-s="done"] .cn-r b{font-weight:500;color:var(--text-2)}
.cn-f{min-width:0;font:11.5px/1.2 var(--f-mono);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cn-st[data-s="done"] .cn-f,.cn-st[data-s="done"] .cn-f .tk-addr{color:var(--text-2);font-weight:400}
.cn-d{margin:2px 0 0;font-size:12px;line-height:1.45;color:var(--text-2)}
.cn-d+.cn-d{margin-top:6px}
.cn-d.cn-yet{margin-top:8px;padding-left:9px;border-left:2px solid var(--line)}
.cn-b>.tk-warn{margin:4px 0 0}
.cn-a{display:grid;gap:8px;margin:10px 0 3px}
.cn-a a{text-decoration:none;text-align:center;display:flex;align-items:center;justify-content:center}
.cn-a .tk-btn{min-height:38px}
.cn-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;padding:9px 12px;border-top:1px solid var(--line-soft);font-size:12px}
.cn-foot .fine{margin:0}
/* Orderly's top-up inside the block: the pair, the three rules, the address */
.cn-pick{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 10px;align-items:center;margin:9px 0 0;font-size:12px;color:var(--text-2)}
.cn-seg{display:flex;min-width:0;border:1px solid var(--line)}
.cn-seg button{flex:1;min-width:0;min-height:30px;padding:4px 8px;background:none;border:0;color:var(--text-2);font:500 11.5px/1 var(--f-mono);cursor:pointer;white-space:nowrap}
.cn-seg button+button{border-left:1px solid var(--line)}
.cn-seg button[aria-pressed="true"]{background:var(--text);color:var(--bg)}
.cn-seg button:disabled{opacity:.55;cursor:default}
.cn-seg button:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.cn-cap{font:500 10px/1.2 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cn-adr{display:block;padding:9px 10px;background:var(--surface-2);border:1px solid var(--line);color:var(--text);font:500 12.5px/1.45 var(--f-mono);overflow-wrap:anywhere;word-break:break-all;text-wrap:balance;user-select:all}
.cn-status{margin:8px 0 0;padding-left:9px;border-left:2px solid var(--line);font-size:12px;line-height:1.45;color:var(--text-2)}
.cn-status.ok{border-left-color:var(--text);color:var(--text);font-weight:500}
.cn-dep{margin-top:0}.cn-dep .cn-h{align-items:center;border-bottom:1px solid var(--line-soft)}.cn-dep .cn-h .linkbtn{font:inherit;letter-spacing:.04em;text-transform:none}
.cn-dbody{padding:8px 12px 12px}
/* the top-up «Адреса» (owner 15.11.2026): the address at once with its QR code, the networks as a list, one line of rules */
.cn-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 6px}
.cn-top .cn-seg{flex:none}.cn-top .cn-seg button{min-width:56px}
.cn-adrq{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.cn-adrq .cn-adr{display:flex;align-items:center}
.cn-qr{display:block;width:100px;height:100px;padding:4px;background:#fff;border:1px solid var(--line)}
.cn-qr svg{display:block;width:100%;height:100%}.cn-qr path{fill:#000}
.cn-copy{margin-top:6px}.cn-copy .tk-btn{flex:1}
.cn-nets{display:flex;flex-wrap:wrap;align-items:center;gap:5px 6px;margin:10px 0 0;font-size:12px;color:var(--text-2)}
.cn-nets span{margin-right:2px}
.cn-chip{padding:5px 7px;border:1px solid var(--line);font:500 11px/1 var(--f-mono);font-style:normal;color:var(--text);white-space:nowrap}
.cn-netp{margin:6px 0 8px}
.cn-warn{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;font-size:12px;line-height:1.45;color:var(--text-2)}
.cn-warn>p{flex:1;min-width:0;margin:0}.cn-warn b{font-weight:600;color:var(--text)}
.cn-warn .cx-help>p{width:min(300px,78vw)}
.cn-d.cn-off{margin-top:8px}
.cn-warn~.cn-status,.cn-warn~.cn-a,.cn-warn~.cn-off{scroll-margin-bottom:10px}
/* the account's money (owner 15.11.2026): «Поповнити» and «Вивести» are the block's head and stay in sight whichever is open */
.cn-dep .cn-h .od-tabs{flex:1;max-width:250px}
.cn-dep .cn-h .od-tabs button{min-height:32px;letter-spacing:0;text-transform:none}
.cn-dep.od-shut .cn-h{border-bottom:0;padding-bottom:10px}
.cn-dep.od-shut .cn-h .od-tabs{max-width:none}
/* the way out: the amount with «Усе» beside it, and the line that says what would arrive */
.cn-amt{display:flex;gap:6px;min-width:0}
.cn-amt input{flex:1;min-width:0;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:0;background:var(--bg);color:var(--text);font:500 13px/1 var(--f-mono)}
.cn-amt input:focus-visible{outline:2px solid var(--text);outline-offset:-1px}
.cn-amt .tk-btn{flex:none;min-height:34px;padding:0 12px}
.cn-pick label{color:var(--text-2)}
.cn-d.cn-sum{margin-top:8px;font-variant-numeric:tabular-nums}
.cn-d.cn-sum.bad{color:var(--seal)}
/* a finger high on a phone: the pickers, the copy button and «Поповнити» as the block's own buttons */
@media (max-width:700px){.cn-seg button,.cn-dep .cn-h .od-tabs button,.cn-dep .cn-h .linkbtn,.cn-copy .tk-btn,.cn-dbody .cn-a .tk-btn,.cn-amt .tk-btn{min-height:44px}.cn-qr{width:108px;height:108px}.cn-warn .cx-help>summary{width:44px;height:44px}.cn-warn .cx-help>p{top:46px}.cn-off .linkbtn{min-height:44px}.cn-amt input{height:44px;font-size:16px}}
@keyframes cnStamp{0%{transform:scale(1.8) rotate(-9deg);opacity:0}55%{opacity:1}100%{transform:none}}
@keyframes cnOpen{from{opacity:.2;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .cn-bar i{transition:background-color .3s ease}
  :root:not(.no-motion) .cn-st[data-fresh="done"] .cn-mk{animation:cnStamp .44s cubic-bezier(.2,1.5,.4,1)}
  :root:not(.no-motion) .cn-st[data-fresh="now"] .cn-open{animation:cnOpen .3s ease both}
}
@media (max-width:700px){.cn-a .tk-btn{min-height:44px}}
.od-acct{display:grid;gap:8px}
/* variant 1 «Рядок рахунку» (16.11.2026): what is free and the money's two buttons in one row over the plan */
.cn-dep.od-row .cn-h{gap:12px}.cn-dep.od-row.od-shut{border:0;border-bottom:1px solid var(--line-soft);padding:2px 0 0;background:none}.cn-dep.od-row.od-shut .cn-h{padding:0 0 10px}
.od-free{display:flex;flex-direction:column;gap:3px;margin-right:auto}.od-free>span{color:var(--muted);font:400 10px/1.4 var(--f-sans,inherit);letter-spacing:0;text-transform:none}.od-free>b{font:500 14px/1.2 var(--f-mono)}
.cn-dep.od-row .cn-h .od-tabs{flex:0 1 auto;max-width:none}.cn-dep.od-row .cn-h .od-tabs button{padding:4px 14px}
.od-acct .tk-orders .dn{color:var(--seal)}
.od .od-soon,.od .od-trust{margin:0}
.acct:empty{display:none}
@media (min-width:981px){.acct{position:sticky;top:0;z-index:5}}
.ab-r1,.ab-r2{display:flex;align-items:center;gap:10px;min-width:0}
.ab-r2{justify-content:space-between;gap:10px}
.ab-st{color:var(--text-2);font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ab-go{margin-left:auto;min-height:32px;padding:4px 12px;flex:none}
.ab-go:not([disabled]):hover{border-color:var(--text)}
.ab-addr{font:600 12.5px var(--f-mono)}
.ab-eq{font:500 13px var(--f-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.ab-pnl{font:500 11.5px var(--f-mono);white-space:nowrap}
.ab-pnl.up{color:var(--gain)}
.ab-pnl.dn{color:var(--down)}
.ab-sp{flex:1}
.ab-r1 .en-badge{flex:none}
.en-badge.hot{border-color:var(--seal);color:var(--seal)}
.ab-eye{width:28px;height:28px;flex:none}
.ab-eye[aria-pressed="true"]{border-color:var(--text);color:var(--text)}
.ab-key{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;color:var(--text-2);font-size:11.5px;line-height:1.4}
.ab-key>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ab-key svg,.ab-note svg{flex:none}
.ab-key.bad{color:var(--seal)}
.ab-note{display:flex;align-items:flex-start;gap:6px;margin:0;color:var(--muted);font-size:11.5px;line-height:1.45}
.ab-note svg{margin-top:1px}
.ab-stale{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;color:var(--seal);font-size:11.5px;line-height:1.45}
.ab-stale .linkbtn{flex:none}
.acct .linkbtn{flex:none}
.ab-manage[aria-expanded="true"]{color:var(--text)}
.sheet{display:grid;gap:15px;padding:0 16px 16px;border-bottom:1px solid var(--line);background:var(--bg);font-size:12.5px;min-width:0}
.sh-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 -16px;padding:10px 16px;border-bottom:1px solid var(--line)}
.sh-h h3{margin:0;font:500 11px/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--text)}
.sh-h .icon{width:28px;height:28px}
.sh-s{display:grid;gap:6px;min-width:0}
.sh-s p,.sh-s .fine{margin:0}
.sh-c{font:500 11px/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.sh-line{display:flex;align-items:center;gap:8px;line-height:1.4}
.sh-line input{width:16px;height:16px;margin:0;accent-color:var(--text)}
.sh-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.sh-chk{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.sh-chk li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px;line-height:1.45}
.sh-bad{color:var(--seal)}
.sh-note{color:var(--muted);line-height:1.45}
.sh-steps{margin:0;padding-left:18px;display:grid;gap:4px;line-height:1.45}
.sheet .cx-wallet{margin:2px 0 0}
.sheet .tk-main.fine{margin:0}
.sh-danger{gap:6px;padding-top:14px;border-top:1px solid var(--line)}
.sh-danger .tk-btn{width:100%;min-height:36px}
.sh-danger .tk-btn+.fine{margin-bottom:6px}
@media (max-width:980px){.ab-eye,.sh-h .icon{width:36px;height:36px}.acct .linkbtn{padding:8px 2px;font-size:13px}.sh-danger .tk-btn{min-height:44px}}

/* step 3: a position without a stop said at the top on every tab; questions asked in the panel; the stop at breakeven */
.ab-alert{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px -16px -9px;padding:6px 16px;background:var(--seal-soft);border-top:1px solid var(--seal);color:var(--seal);font-size:12.5px;font-weight:600}
.ab-alert .tk-btn{min-height:32px;padding:4px 10px;font-size:12px;flex:none}
.tk-ask{border:1px solid var(--line);padding:12px;margin:10px 0;display:grid;gap:10px;font-size:12.5px;line-height:1.45}
.tk-ask p{margin:0}
.tk-ask-b{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px}
.tk-ask-b button{min-height:38px;width:100%}
.tk-go.seal{background:var(--seal);border-color:var(--seal);color:var(--bg)}
.tk-close .tk-btn[aria-pressed="true"]{border-color:var(--text);background:var(--ink-soft)}
.tk-close .tk-btn.danger[aria-pressed="true"]{border-color:var(--seal);background:var(--seal-soft)}
.tk-be{width:100%;margin:2px 0 6px}
@media (max-width:980px){.ab-alert .tk-btn,.tk-ask-b button{min-height:44px}}

/* step 4: the plan's source in one place; the zone plan card hands its plan to the ticket */
.cx-src{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.cx-src>.fine{margin:0;flex:none}
.cx-src .seg{flex:1;min-width:0}
.cx-src .seg button{flex:1;min-height:34px;padding:2px 4px;white-space:nowrap}
.cx-src .seg button[disabled]{opacity:.4;cursor:not-allowed}
p.cx-source{margin:-4px 0 8px}
@media (max-width:980px){.cx-src .seg button{min-height:44px}}
/* Public wallet setup: short steps stay readable on a phone. */
.live-status { margin:6px 0 0; font-size:12px; line-height:1.5; }
.live-status[data-live-mode="close_only"], .live-status[data-live-mode="off"], .live-status[data-live-mode="unknown"] { color:var(--down); }

/* Variant В (owner 10.11.2026): the beta's limits in one line; the plan's distances; the position in the plan's frame */
.ab-addr{white-space:nowrap}
.live-status{display:flex;align-items:center;gap:9px}
.vx-lim{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 2px;padding:1px 0 1px 8px;border-left:2px solid var(--seal);font-size:11.5px;line-height:1.5;color:var(--text-2)}
.vx-lim b{font-weight:600;color:var(--seal)}
.vx-lim .cx-help{margin:0}
.vx-lim .cx-help>p{width:min(300px,78vw)}
.fx-d,.pz-d{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font:10.5px/1.4 var(--f-mono);color:var(--muted);min-height:15px}
.fx-d{margin:-2px 0 4px}
.fx-d i,.pz-d i{font-style:normal}
#tkStopUsd,.pz-d .dn{color:var(--seal)}
#tkForm .cx-sizing.one{grid-template-columns:minmax(0,1fr)}
.pz{margin:0}
.pz-state{display:flex;width:100%;margin:0 0 2px;border:1px solid var(--line)}
.pz-state>b{flex:1;display:flex;align-items:center;justify-content:center;min-height:40px;font:500 13px var(--f-body);background:var(--text);color:var(--bg)}
.pz-state>b[data-side="short"]{background:var(--seal)}
.pz-state>span{flex:1;display:flex;align-items:baseline;justify-content:center;gap:8px;align-self:center;font:500 15px/1 var(--f-mono);font-variant-numeric:tabular-nums;color:var(--text)}
.pz-state>span small{font:11px/1 var(--f-mono);color:var(--muted)}
.pz-state>span.up,.pz-state>span small.up,.pz .cx-metrics b.up{color:var(--gain)}
.pz-state>span.dn,.pz-state>span small.dn,.pz .cx-metrics b.dn{color:var(--down)}
.pz .cx-metrics{margin:10px 0 0;border-top:0}
.pz .cx-field-head{align-items:center}
.pz .cx-field-head .pz-okw{display:flex;align-items:center;gap:10px}
.pz .cx-field-head .pz-ok,.pz .cx-field-head .pz-bad{font:500 10.5px/1 var(--f-mono);letter-spacing:.02em;color:var(--text)}
.pz .cx-field-head .pz-bad{color:var(--seal)}
.pz .cx-field-head .cx-help{margin-top:0}
.pz .tk-in{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 6px}
.pz .tk-in label{gap:6px;min-width:0}
.pz .tk-in input{min-width:0;min-height:40px;padding:9px 10px;font-size:14px}
.pz-d{margin:0 0 10px}
.pz-mv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pz-mv .tk-go{margin:0 0 10px}
.pz-mv .tk-go[data-act="target"]{grid-column:2}
.pz .tk-be{margin:0}
/* past +1R (variant 3, В3-4): «Стоп у беззбиток» in a frame that says so */
.pz-be1r{display:grid;gap:8px;padding:12px;border:1px solid var(--text)}
.pz-be1r p{margin:0;font-size:12px;line-height:1.4;color:var(--text)}
.pz-close{margin:4px 0 0}
.pz-close button{color:var(--text)}
.pz-close button[data-act="close"]{color:var(--seal)}
.pz-close button[aria-pressed="true"]{color:var(--bg)}
.pz-close button[data-act="close"][aria-pressed="true"]{background:var(--seal)}
/* adding to the position (variant 2, owner 18.11.2026): the frame's tabs «Закрити | Додати» and the add's form */
.pza-tabs{display:flex;border-bottom:1px solid var(--line-soft);margin:14px 0 8px}
.pza-tabs button{flex:1;min-height:40px;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;font:500 12px/1 var(--f-body);color:var(--muted);cursor:pointer}
.pza-tabs button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--text)}
.pza-tabs button:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.pza-type{margin:6px 0 8px}
.pz .tk-in.pza-in{margin:8px 0 4px}
.pza-in input:disabled{opacity:.55}
.pza-can{margin:6px 0 0;color:var(--muted)}
.pza-can b{color:var(--text);font-weight:500}
.pza-can.bad{color:var(--seal)}
.pz .cx-metrics.pza-after{grid-template-columns:1.1fr 1fr 1fr .9fr;margin:10px 0 8px;padding:10px 0}
.pza-after b.dn{color:var(--seal)}
.pza-keep{margin:0 0 10px;color:var(--muted)}
.pza-go{width:100%;min-height:44px;margin:0 0 4px}
@media (max-width:980px){.pza-tabs button{min-height:44px}}
.pz-more{margin:12px 0 0}
.pz-list{list-style:none;margin:0;padding:0}
.pz-list li{display:flex;align-items:center;gap:8px;padding:11px 0;border-top:1px solid var(--line-soft);font:12px/1 var(--f-mono)}
.pz-list li b{font:600 13px var(--f-mono)}
.pz-list .dn,.pz-list .pz-ls.bad{color:var(--seal)}
.pz-list .pz-ls{margin-left:auto;color:var(--muted)}
#tkPos .pz{padding:10px 0;border-top:1px solid var(--line-soft)}
@media (max-width:980px){.pz .tk-in input{font-size:16px}.pz-state>b{min-height:44px}}
/* budgets: the account's own limits as gauges; the paper systems apart */
.bz-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:18px 0 12px!important}
#tkB>.bz-h:first-child{margin-top:4px!important}
.bz-h span{letter-spacing:.02em;text-transform:none;color:var(--text-2)}
.bz-h span.dn,.bz-p .dn{color:var(--seal)}
.bz-g{margin:0 0 13px}
.bz-g p{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 6px;font-size:12px;color:var(--text-2)}
.bz-g b{font:500 12px/1 var(--f-mono);color:var(--text)}
.bz-g b small{font:10.5px/1 var(--f-mono);color:var(--muted)}
.bz-g i{display:block;height:3px;background:var(--line-soft)}
.bz-g u{display:block;height:100%;background:var(--text);min-width:2px}.bz-g u.z{min-width:0}
.bz-how{margin:2px 0 0}
.bz-p{list-style:none;margin:0;padding:0}
.bz-p li{display:grid;grid-template-columns:1fr auto 64px;gap:10px;align-items:baseline;padding:9px 0;border-top:1px solid var(--line-soft);font:12px/1 var(--f-mono)}
.bz-p li b{font:500 12.5px var(--f-body)}
.bz-p li span:last-child{text-align:right}
.bz-l{margin:10px 0 0}
/* Bybit's tab (B3 pictures, owner 19.11.2026; B4 20.11.2026): three equal tabs in the account bar; the key's step (what
   to make on Bybit, its name and secret); the steps after it (research/2026-11-20_bybit_tab_steps) */
.vh[data-n="3"] .vh-tab{padding-left:12px;padding-right:12px}
.vh[data-n="3"] .vh-bal:not(.cta){font-size:18px;line-height:22px}
.by-set{margin:8px 0 0}
.by-set+.cn-a{margin-top:10px}
.by-set .cn-chip.by-no{border-color:var(--seal);color:var(--seal)}
.by-key{grid-template-columns:1fr;gap:10px;margin:12px 0 0}
.by-key label{gap:6px;min-width:0}
.by-key input{min-width:0;min-height:40px;padding:9px 10px;font-size:14px}
@media (max-width:980px){.by-key input{font-size:16px;min-height:44px}}
.by-key input.by-sec:not(:placeholder-shown){-webkit-text-security:disc}
.cn-dep .cn-h a.by-top{display:flex;align-items:center;min-height:32px;padding:4px 14px;font:500 11.5px/1 var(--f-mono);letter-spacing:0;text-transform:none;text-decoration:none}
.cn-open>.tk-warn{margin:6px 0 0}
.cn-open .by-set{margin-top:8px}
/* V1 (owner 21.11.2026, 21:41 «варіант 1»): the account's positions, orders, journal and budgets under the chart, as on
   the exchanges — the positions as their table, the stop the exchange holds as its own column, a position without one
   first and red; the height dragged at the grip and kept; folded to its tabs; on a phone the rows are cards */
.dock{position:relative;flex:none;height:var(--dk-h,262px);display:flex;flex-direction:column;border-top:1px solid var(--line);background:var(--bg);min-height:0}
.dock[hidden]{display:none}
.dock.dk-col{height:auto}
/* the height follows the positions (25.11.2026): a short glide, none while the grip is dragged or motion is reduced */
.dock.dk-fit{transition:height .14s ease-out}
.dock.dk-drag{transition:none}
@media (prefers-reduced-motion:reduce){.dock.dk-fit{transition:none}}
.chartcol:has(>.dock:not([hidden])) .chartbox{min-height:260px}
.dock .cx-lower{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;padding:0;border-top:0}
.dock .cx-lower[hidden]{display:none}
.dk-grip{position:absolute;left:0;right:0;top:-5px;height:10px;cursor:ns-resize;z-index:3;display:flex;justify-content:center;align-items:center;touch-action:none}
.dk-grip i{width:36px;height:3px;background:var(--line);border-radius:2px}
.dk-grip:hover i,.dk-grip:focus-visible i{background:var(--text)}
.dk-grip:focus-visible{outline:none}
.dock.dk-col .dk-grip{display:none}
/* (a narrow column with two exchanges' tools: they go to a line of their own, on the right, rather than out of the panel) */
.dk-head{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;padding:0 12px;border-bottom:1px solid var(--line-soft);min-height:38px}
.dock.dk-col .dk-head{border-bottom:0}
.dock .cx-lower>.dk-head>.cx-nav{display:flex;gap:2px;margin:0;padding:0;border-bottom:0;align-self:stretch}
.dock .cx-nav button{padding:0 10px;min-height:38px;margin-bottom:-1px;font-size:12.5px}
.dock .cx-nav .cx-count{font:500 11px/1 var(--f-mono);margin-left:4px}
.dock .cx-nav .cx-count:empty{display:none}
.dk-tools{margin-left:auto;display:flex;align-items:center;gap:10px;min-height:38px}
.dk-only{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;white-space:nowrap;cursor:pointer}
.dk-all{min-height:28px;padding:0 10px;font-size:12px}
/* one table for every exchange (25.11.2026): whose positions it holds; another exchange's row — read only, the way to its tab */
.dk-scope button{min-height:26px;padding:0 9px;font-size:12px;white-space:nowrap}
.dk-go{min-height:28px;padding:0 10px;font-size:12px;white-space:nowrap}
.dk-fold{background:none;border:1px solid var(--line-soft);width:28px;height:28px;color:var(--muted);cursor:pointer}
.dk-fold:hover{color:var(--text);border-color:var(--line)}
.dk-body{flex:1;min-height:0;overflow:auto}
.dock.dk-col .dk-body{display:none}
.dk-body #tkOrd,.dk-body #tkJ,.dk-body #tkB{padding:8px 12px 12px}
.dk-body>[data-tk-pane="positions"]>#tkPos>.tk-ask{margin:8px 12px}
.dk-empty{padding:14px 12px;margin:0}
.dk-t{width:100%;border-collapse:collapse}
.dk-t th{position:sticky;top:0;z-index:1;background:var(--bg);text-align:left;font:500 11px/1 var(--f-body);color:var(--muted);padding:9px 8px 7px;border-bottom:1px solid var(--line-soft);white-space:nowrap}
.dk-t th:first-child,.dk-t td:first-child{padding-left:12px}
.dk-t th:last-child,.dk-t td:last-child{padding-right:12px}
.dk-t td{padding:8px;border-bottom:1px solid var(--line-soft);vertical-align:top;white-space:nowrap}
.dk-t td>b{display:block;font:500 12.5px/1.35 var(--f-mono)}
.dk-t td>span{display:block;color:var(--muted);font:400 11px/1.4 var(--f-mono)}
.dk-t td:first-child>span{font-family:var(--f-body)}
.dk-t td>span i{font-style:normal}
.dk-t .up{color:var(--gain)}
.dk-t .dn{color:var(--down)}
.dk-t .mu{color:var(--muted)}
.dk-mkt{background:none;border:0;padding:0;color:var(--text);font:600 12.5px/1.35 var(--f-body);cursor:pointer;text-align:left}
.dk-mkt em{font-style:normal;font-weight:600;font-size:11.5px;margin-left:3px}
.dk-mkt em[data-side="short"]{color:var(--down)}
.dk-mkt:hover b,.dk-mkt:focus-visible b{text-decoration:underline}
.dk-pen{background:none;border:0;padding:0 2px;margin-left:5px;color:var(--muted);font:400 11.5px/1 var(--f-body);cursor:pointer}
.dk-pen:hover,.dk-pen[aria-expanded="true"]{color:var(--text)}
.dk-t .dk-a{text-align:right}
.dk-cl{min-height:28px;padding:0 10px;font-size:12px}
.dk-cl[aria-expanded="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.dk-r.bad td,.dk-x.bad td{background:var(--seal-soft)}
.dk-r.bad td:first-child{box-shadow:inset 3px 0 0 var(--seal)}
.dk-r.cur td:first-child{box-shadow:inset 3px 0 0 var(--text)}
.dk-r.bad.cur td:first-child{box-shadow:inset 3px 0 0 var(--seal)}
.dk-r.on td{border-bottom-color:transparent}
.dk-x td{padding:2px 12px 10px;white-space:normal}
.dk-ed{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.dk-f{display:flex;align-items:center;gap:8px}
.dk-f span{color:var(--muted);font-size:11.5px}
.dk-f input{width:130px;height:30px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:500 12.5px/1 var(--f-mono);padding:0 8px}
.dk-d{font:400 11px/1.2 var(--f-mono);color:var(--muted);min-width:110px}
.dk-ed .tk-go,.dk-ed .tk-btn{width:auto;min-height:30px;padding:0 12px;font-size:12px}
.dk-lb{color:var(--muted);font-size:11.5px}
.dk-cls button{min-height:30px;padding:0 12px}
.dk-x .tk-ask{margin:8px 0 0;max-width:560px}
.dk-x .tk-msg,.dk-x .tk-warn{margin:6px 0 0}
@media (max-width:980px){
  .dock{height:auto}
  .dk-grip{display:none}
  .dk-head{padding:0 8px;gap:6px}
  .dock .cx-lower>.dk-head>.cx-nav{overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
  .dock .cx-nav button{min-height:44px;padding:0 8px}
  /* a phone: the tabs and ⌄ on the first line; «Лише …» and «Закрити всі…» on their own line under them */
  .dk-head{flex-wrap:wrap;row-gap:0}
  .dk-tools{display:contents}
  .dk-fold{order:1;width:40px;height:40px}
  .dk-head::after{content:"";order:2;flex-basis:100%;height:0}
  .dk-scope{order:3;margin-right:6px}
  .dk-scope button{min-height:40px;padding:0 12px;font-size:13px}
  .dk-only{order:3;min-height:44px;font-size:13px}
  .dk-all{order:4;margin-left:auto;min-height:40px;padding:0 14px;font-size:13px}
  .dk-body{overflow:visible}
  .dk-t thead{display:none}
  .dk-t,.dk-t tbody{display:block}
  .dk-t tr.dk-r{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:10px;border:1px solid var(--line-soft);margin:8px 8px 0}
  .dk-t tr.dk-r td{display:block;padding:0;border:0;white-space:normal;background:none;box-shadow:none}
  .dk-t tr.dk-r td[data-l]::before{content:attr(data-l);display:block;color:var(--muted);font:400 10.5px/1.3 var(--f-body);margin-bottom:2px}
  .dk-t tr.dk-r td:first-child{grid-column:1/-1;padding:0;box-shadow:none}
  .dk-t tr.dk-r td:first-child::before{display:none}
  .dk-t tr.dk-r td.dk-a{grid-column:1/-1;text-align:left;padding:0}
  .dk-t tr.dk-r td.dk-a .dk-cl,.dk-t tr.dk-r td.dk-a .dk-go{width:100%;min-height:40px}
  .dk-t tr.dk-r.bad{border-color:var(--seal);background:var(--seal-soft)}
  .dk-t tr.dk-r.cur{border-color:var(--text)}
  .dk-t tr.dk-r.on{border-bottom-color:transparent}
  .dk-t tr.dk-x{display:block;margin:0 8px;border:1px solid var(--line-soft);border-top:0}
  .dk-t tr.dk-x td{display:block;padding:10px;background:none}
  .dk-ed{flex-direction:column;align-items:stretch}
  .dk-f input{width:100%;height:40px;font-size:16px}
  .dk-ed .tk-go,.dk-ed .tk-btn,.dk-cls button{min-height:40px}
  .dk-body #tkOrd,.dk-body #tkJ,.dk-body #tkB{padding:8px}
}
.dk-t td>span.dk-src{font-family:var(--f-body);color:var(--seal)}
