/* Shared with the terminal's full day/night palette. */
.vdepth{background:var(--pro-chart,var(--surface));color:var(--pro-text,var(--text));border:1px solid var(--pro-line,var(--border));min-width:0;display:flex;flex-direction:column;overflow:hidden;font-size:11px;font-variant-numeric:tabular-nums}
.vdepth-header{display:flex;align-items:center;gap:12px;min-height:43px;padding:7px 12px;border-bottom:1px solid var(--pro-line-soft,var(--border))}
.vdepth-heading{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1}
.vdepth-heading b{font-size:11px;font-weight:550;white-space:nowrap}.vdepth-heading>span{font-size:10px;color:var(--pro-muted);white-space:nowrap}
.vdepth-status{display:inline-flex;align-items:center;gap:5px;color:var(--pro-muted);font-size:9px;white-space:nowrap}.vdepth-status:before{content:'';height:4px;width:4px;border-radius:50%;background:currentColor}.vdepth[data-depth-status="live"] .vdepth-status{color:var(--pro-positive)}.vdepth[data-depth-status="stale"] .vdepth-status{color:var(--pro-warning)}
.vdepth-unit{display:flex;padding:2px;gap:2px;border:1px solid var(--pro-line);border-radius:5px;flex-shrink:0}.pro-terminal .vdepth-unit button,.vdepth-unit button{font-size:10px;min-height:24px;padding:3px 7px;border-radius:3px;color:var(--pro-muted)}.vdepth-unit button[aria-pressed="true"]{color:var(--pro-text);background:var(--pro-selected)}
.vdepth-tools{display:flex;align-items:center;gap:8px;padding:8px 12px 4px;min-height:32px;color:var(--pro-muted);font-size:10px;flex-wrap:wrap}.vdepth-unit-label{margin-right:auto}.vdepth-tools label{display:flex;align-items:center;gap:7px}.pro-terminal .vdepth-tools select,.vdepth-tools select{font-size:10px;min-height:25px;padding:2px 5px;max-width:120px;background:transparent;border-color:var(--pro-line-soft);color:var(--pro-text-soft)}.pro-terminal .vdepth-tools button,.vdepth-tools button{font-size:10px;min-height:26px;padding:3px 5px;color:var(--pro-muted)}
.vdepth-visual{position:relative;margin:10px 12px 0;padding-right:42px;padding-bottom:25px}.vdepth-plot{position:relative;height:clamp(135px,12vw,245px);min-height:135px}.vdepth-plot>svg{display:block;width:100%;height:100%;overflow:visible;cursor:crosshair;touch-action:pan-y;outline-offset:3px}.vdepth-plot>svg[aria-disabled="true"]{cursor:default}.vdepth-grid path{stroke:var(--pro-chart-grid);stroke-width:1;vector-effect:non-scaling-stroke}.vdepth-midline{stroke:var(--pro-line);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}.vdepth-curve{fill:none;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linejoin:miter}.vdepth-curve.vdepth-bids{stroke:var(--pro-positive)}.vdepth-curve.vdepth-asks{stroke:var(--pro-negative)}.vdepth-area.vdepth-bids{fill:var(--pro-positive-fill)}.vdepth-area.vdepth-asks{fill:var(--pro-negative-fill)}.vdepth[data-depth-status="stale"] [data-depth-art]{opacity:.45}.vdepth-crosshair{stroke:var(--pro-muted);stroke-width:1;stroke-dasharray:2 3;vector-effect:non-scaling-stroke}.vdepth-point{stroke:var(--pro-chart);stroke-width:1.5}.vdepth-point.vdepth-bids{fill:var(--pro-positive)}.vdepth-point.vdepth-asks{fill:var(--pro-negative)}
.vdepth-y-axis{position:absolute;top:0;right:0;bottom:25px;width:37px;color:var(--pro-faint);font-size:9px}.vdepth-y-axis span{position:absolute;right:0;transform:translateY(-50%)}.vdepth-x-axis{position:absolute;bottom:3px;left:0;right:42px;display:flex;justify-content:space-between;color:var(--pro-faint);font-size:9px}.vdepth-mid-label{position:absolute;transform:translateX(-50%);color:var(--pro-text-soft);background:var(--pro-chart);padding:0 4px}
.vdepth-tooltip{position:absolute;top:8px;left:8px;z-index:2;pointer-events:none;min-width:155px;max-width:calc(100% - 16px);padding:9px 10px;border:1px solid var(--pro-line);border-radius:5px;background:var(--pro-panel);box-shadow:0 6px 18px #0002;display:grid;gap:6px;font-size:10px;line-height:1.35}.vdepth-tooltip.on-right{left:auto;right:8px}.vdepth-tooltip>b{display:flex;gap:12px;justify-content:space-between;font-weight:550;margin-bottom:2px}.vdepth-tooltip>b span{font-weight:550;color:var(--pro-text)}.vdepth-tooltip>span{display:flex;justify-content:space-between;gap:15px;color:var(--pro-muted)}.vdepth-tooltip strong{font-weight:450;color:var(--pro-text-soft)}.vdepth-buy{color:var(--pro-positive)}.vdepth-sell{color:var(--pro-negative)}.vdepth-tooltip[hidden],.vdepth-empty[hidden],[data-depth-marker][hidden]{display:none}
.vdepth-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:15px;color:var(--pro-muted);pointer-events:none}.vdepth-empty b{font-size:11px;color:var(--pro-text-soft);font-weight:500}.vdepth-empty span{font-size:10px;max-width:320px;line-height:1.6}
.vdepth-balance{padding:8px 12px 5px}.vdepth-balance>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px}.vdepth-balance small{font-size:9px;color:var(--pro-faint)}.vdepth-balance-track{height:3px;border-radius:2px;margin-top:7px;background:var(--pro-negative-fill);overflow:hidden;position:relative}.vdepth-balance-track:after{content:'';position:absolute;inset:0;background:var(--pro-negative);opacity:.4;pointer-events:none}.vdepth-balance-track i{display:block;height:100%;background:var(--pro-positive);position:relative;z-index:1;opacity:.7}
.vdepth-footer{display:flex;gap:8px 16px;justify-content:space-between;flex-wrap:wrap;padding:7px 12px 10px;color:var(--pro-faint);font-size:9px;line-height:1.5}.vdepth[data-depth-status="stale"] .vdepth-selection-note{color:var(--pro-warning)}
@media(max-width:650px){.vdepth-heading{display:block}.vdepth-heading>span{display:block;font-size:9px;margin-top:3px}.vdepth-header{gap:7px;padding:7px 9px}.vdepth-tools{padding:7px 9px 3px;gap:5px}.vdepth-visual{margin-left:9px;margin-right:9px}.vdepth-footer,.vdepth-balance{padding-left:9px;padding-right:9px}.vdepth-balance small{font-size:8px}.vdepth-unit button{padding:3px 5px}.vdepth-plot{height:160px}}
@media(prefers-reduced-motion:reduce){.vdepth *{transition:none!important}}
