#amountPrivacyToggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:5px;border:0;background:transparent;color:#999;border-radius:5px}#amountPrivacyToggle:hover{background:#282828;color:#eee}#amountPrivacyToggle[aria-pressed="true"]{color:#d1d4dc}#amountPrivacyToggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Original values stay available to calculation and order serialization only.
   This rule follows updates synchronously; no observer or polling can flash cash. */
html.amounts-hidden :is([data-private-amount],#brokerBalance,#brokerEquity,#brokerPnl,#availableFunds,#usdtEquity,#floatingPnl,#maintenanceMargin,#longCost,#shortCost,#balanceInfo,.history-total-pnl){font-size:0!important;user-select:none!important}
html.amounts-hidden :is([data-private-amount],#brokerBalance,#brokerEquity,#brokerPnl,#availableFunds,#usdtEquity,#floatingPnl,#maintenanceMargin,#longCost,#shortCost,#balanceInfo,.history-total-pnl) *{font-size:0!important}
html.amounts-hidden :is([data-private-amount],#brokerBalance,#brokerEquity,#brokerPnl,#availableFunds,#usdtEquity,#floatingPnl,#maintenanceMargin,#longCost,#shortCost,#balanceInfo,.history-total-pnl)::after{content:'****';display:inline-block;font:700 12px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:1px;vertical-align:baseline}

/* Match the visual middle of the neighboring text while retaining inherited PNL color. */
html.amounts-hidden [data-private-amount]::after,html.amounts-hidden #brokerPnl::after,html.amounts-hidden #floatingPnl::after{position:relative;top:.16em;color:inherit}

/* Keep the original 24px entry-label line box in both privacy states. */
.position-static-label[data-kind=entry]>span:first-child,.layout-position-info[data-kind=entry]>span:first-child{display:inline-flex;align-items:center;height:24px;line-height:24px}
html.amounts-hidden :is(.position-static-label,.layout-position-info)[data-kind=entry]>span:first-child [data-private-amount]{display:inline-flex;align-items:center;height:24px;line-height:24px}
html.amounts-hidden :is(.position-static-label,.layout-position-info)[data-kind=entry] [data-private-amount]::after{display:block;line-height:1}

/* Market data streams automatically; remove the redundant top-right refresh control. */

.single-line-header .headright #amountPrivacyToggle{display:inline-flex;flex:0 0 28px;width:28px;height:28px;padding:4px}

/* Stable visual ordering does not depend on prepend timing during initialization. */
.single-line-header .headright{display:flex;justify-content:flex-end;align-items:center;gap:6px}
.single-line-header .headright #amountPrivacyToggle{order:0}
.single-line-header .headright #fit{order:1}
.single-line-header .headright #chartLayoutButton{order:2}
.single-line-header .headright #resetLayout{order:3}
.single-line-header .headright #status{order:4}
.single-line-header .headright :is(#amountPrivacyToggle,#fit,#chartLayoutButton){display:inline-flex;flex:0 0 28px;width:28px;height:28px;align-items:center;justify-content:center;padding:4px;border:0;background:transparent;color:#999}
.single-line-header .headright :is(#amountPrivacyToggle,#fit,#chartLayoutButton) svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.single-line-header .headright #fit::before{content:none}
.single-line-header .headright #resetLayout{display:inline-flex;align-items:center;height:28px}
.single-line-header .toolbar #chartLayoutButton{visibility:hidden}
