@media (prefers-reduced-motion:no-preference){.terminal-book .book-side .book-level{transition:background-size .24s ease-out}.terminal-book .book-balance-bar i{transition:width .24s ease-out}.terminal-book .book-recent .book-level:first-child{animation:.42s ease-out book-trade-update}.terminal-book .book-recent .book-level:first-child:has(.negative){--book-trade-accent:var(--red)}@keyframes book-trade-update{0%{background-color:color-mix(in srgb, var(--book-trade-accent,var(--green)) 20%, transparent)}to{background-color:#0000}}}
.price-chart{--chart-sma-fast:var(--accent-hover);--chart-sma-medium:var(--accent);--chart-sma-slow:var(--muted);--chart-price-ink:var(--primary-ink);flex-direction:column;min-width:0;height:100%;min-height:0;display:flex;position:relative;container-type:inline-size}[data-theme=light] .price-chart{--chart-sma-fast:#bc8100;--chart-sma-medium:#a3540e;--chart-price-ink:#fff}.price-chart.chart-expanded{z-index:25;background:var(--panel);border:1px solid var(--line-strong);height:auto;box-shadow:0 0 0 14px var(--scrim);border-radius:19px;position:fixed;inset:10px}.chart-controls{flex:none;align-items:center;gap:4px;min-width:0;min-height:48px;padding:4px 8px;display:flex}.interval-buttons,.chart-actions{align-items:center;gap:2px;display:flex}.interval-buttons{background:var(--deep);border-radius:999px;gap:0;padding:2px 4px}.interval-buttons>button,.chart-more,.chart-controls .text-action{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;gap:3px;min-height:27px;padding:3px 7px;font-size:12px;font-weight:700;display:inline-flex}.interval-buttons>button:hover,.chart-more:is(:hover,[aria-expanded=true]),.chart-controls .text-action:is(:hover,[aria-expanded=true]){background:var(--quiet);color:var(--accent-text)}.interval-buttons>button[aria-pressed=true]{background:var(--accent);color:var(--primary-ink)}.interval-buttons>button[aria-pressed=true]:hover{background:var(--accent-hover)}.chart-more>span{display:inline}.chart-settings-anchor{margin-left:auto}.chart-controls .icon-button{border-radius:50%;width:28px;height:29px}.chart-controls .icon-button:hover{background:var(--quiet)}.chart-redo svg{transform:scaleX(-1)}.function-icon{font-size:12px;line-height:1}.popover-anchor{min-width:0;position:relative}.chart-popover{z-index:9;border:1px solid var(--line-strong);background:var(--quiet);width:max-content;min-width:158px;max-width:240px;box-shadow:0 8px 21px var(--shadow);border-radius:14px;padding:7px;font-size:12px;position:absolute;top:calc(100% + 6px);left:0}.settings-popover{left:auto;right:0}.chart-popover strong{white-space:nowrap;padding:4px 7px 6px;display:block}.chart-popover label,.chart-popover button{cursor:pointer;white-space:nowrap;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:7px;align-items:center;gap:6px;width:100%;padding:6px 7px;display:flex}.chart-popover button{text-align:center;justify-content:center}.chart-popover :is(label:hover,button:hover,button[aria-pressed=true]){background:var(--accent-soft);color:var(--accent-text)}.chart-popover input{margin:0}.chart-interval-options{grid-template-columns:repeat(4,1fr);display:grid}.chart-interval-options button{justify-content:center}.chart-popover.chart-interval-options button[aria-pressed=true]{background:var(--accent);color:var(--primary-ink)}.chart-popover.chart-interval-options button[aria-pressed=true]:hover{background:var(--accent-hover)}.ohlc{flex-wrap:wrap;flex:none;align-items:center;gap:4px 10px;min-height:27px;padding:1px 12px 5px 14px;font-size:12px;line-height:1.15;display:flex}.ohlc>span{white-space:nowrap}.ohlc>span>span,.ohlc>strong>span{color:var(--muted);font-weight:500}.ohlc .chart-vol{color:var(--muted);margin-left:auto}.chart-vol strong{color:var(--text)}.chart-body{flex:1 1 0;grid-template-columns:46px minmax(0,1fr);min-height:0;display:grid}.draw-tools{scrollbar-width:none;flex-direction:column;align-items:center;gap:11px;min-height:0;padding:5px 1px 6px 4px;display:flex;overflow:auto}.draw-tools::-webkit-scrollbar{display:none}.draw-tools .icon-button{width:36px;height:38px;color:var(--muted);flex:0 0 38px}.draw-tools .icon-button[aria-pressed=true]{color:var(--accent-text);background:var(--accent-soft)}.tool-rule{background:var(--line);flex:0 0 1px;width:21px;height:1px;margin:2px 0}.chart-visual,.canvas-container{min-width:0;min-height:0;position:relative}.canvas-container{isolation:isolate;height:100%}.chart-canvas{cursor:crosshair;touch-action:pan-y;width:100%;height:100%;display:block;position:absolute;inset:0}.chart-canvas:focus-visible{outline:2px solid var(--accent-text);outline-offset:-2px}.chart-demo{color:var(--accent);opacity:.1;letter-spacing:.11em;-webkit-user-select:none;user-select:none;pointer-events:none;place-items:center;font-size:clamp(51px,15cqi,144px);font-weight:800;line-height:1;display:grid;position:absolute;inset:0 64px 25px 0;transform:rotate(-12deg)}.chart-latest{z-index:2;border:1px solid var(--line);background:var(--quiet);min-height:26px;color:var(--accent-text);border-radius:6px;justify-content:center;align-items:center;gap:3px;padding:3px 7px;font-size:11px;font-weight:700;display:inline-flex;position:absolute;bottom:25px;right:69px}.chart-latest:hover{background:var(--accent-hover);color:var(--primary-ink)}.indicator-legend{z-index:2;color:var(--muted);align-items:flex-start;gap:3px;font-size:11px;line-height:1.16;display:flex;position:absolute;top:21px;left:8px}.indicator-legend>div{gap:1px;display:grid}.indicator-legend>div>div{align-items:center;gap:4px;min-height:19px;display:flex}.indicator-legend strong{color:var(--text);font-weight:750}.legend-muted>span{opacity:.56}.series-dot{border-radius:50%;align-self:center;width:6px;height:6px;display:inline-block}.legend-toggle{width:18px;height:18px;color:var(--muted);background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;padding:0;display:inline-flex}.legend-toggle:hover{background:var(--quiet)}.legend-toggle[aria-expanded=false]{transform:rotate(-90deg)}.indicator-legend .icon-button{opacity:0;border-radius:6px;width:20px;height:18px}.indicator-legend .icon-button svg{width:12px;height:12px}.indicator-legend:is(:hover,:focus-within) .icon-button{opacity:1}.chart-replay,.chart-note{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;padding:1px 10px 4px;font-size:11px;display:flex}.chart-replay button,.chart-note input{background:var(--quiet);border:0;border-radius:6px;padding:4px 7px}.chart-replay button,.chart-footer>button{justify-content:center;align-items:center;line-height:1.15;display:inline-flex}.chart-replay button:disabled{opacity:.5}.chart-note input{color:var(--text)}.chart-footer{min-height:33px;color:var(--muted);flex:none;align-items:center;gap:5px;padding:0 12px 0 14px;font-size:10px;display:flex}.chart-footer>button,.chart-footer .text-action{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:4px;padding:3px 7px}.chart-footer :is(button:hover,button[aria-pressed=true]){color:var(--accent-text)}.chart-instruction{color:var(--accent-text);white-space:nowrap}.chart-range .text-action{align-items:center;gap:4px;padding-left:5px;display:flex}.range-popover{top:auto;bottom:calc(100% + 4px)}.chart-time{text-align:right;margin-left:auto}.depth-view{flex-direction:column;flex:1;gap:8px;min-height:0;padding:12px 18px;display:flex}.depth-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.depth-heading h2{font-size:17px}.depth-heading>div{gap:12px;font-size:12px;display:flex}.depth-visual{flex:1;width:100%;min-height:0;display:block}.depth-visual text{fill:var(--muted);font-family:inherit;font-size:13px}.depth-view p{color:var(--muted);font-size:12px}@container (max-width:570px){.chart-controls{gap:2px}.chart-controls .icon-button{width:25px}.chart-extra-actions{gap:0}.ohlc{column-gap:7px;font-size:11px}}@container (max-width:410px){.chart-controls{flex-wrap:wrap;padding-inline:4px}.interval-buttons{padding-inline:2px}.interval-buttons>button,.chart-more{padding-inline:4px}.chart-controls .icon-button{width:23px}.chart-extra-actions{margin-left:auto}.chart-settings-anchor{margin-left:0}.chart-body{grid-template-columns:35px minmax(0,1fr)}.draw-tools{gap:6px}.draw-tools .icon-button{flex-basis:32px;width:29px;height:32px}.indicator-legend{font-size:10px;top:13px;left:0}.indicator-legend>div>div{gap:1px;min-height:15px}.chart-footer{gap:2px;padding-inline:5px}.chart-footer>button,.chart-footer .text-action{padding-inline:4px}.chart-time{font-size:9px}}@container (max-width:345px){.ohlc .chart-vol{margin-left:0}.chart-instruction{font-size:9px}}
