/* The chart is one quiet surface. All plotted layers share SVG price coordinates. */
html:root.ivy-duo-mode .dt-panel .dt-chart-card {position:relative!important;gap:0;padding:12px 0 4px!important;overflow:hidden!important;--chart-grid:#88889420;--chart-up:#248a64;--chart-down:#d63f58;}
html:root.ivy-duo-mode.dark-mode .dt-panel .dt-chart-card {--chart-grid:#c2c2d01a;--chart-up:#45c99b;--chart-down:#ff6b82;}
html:root.ivy-duo-mode .dt-panel .dt-chart-card>:is(.dt-chart-readout,.dt-chart-controls,.dt-chart-options,.dt-chart-offscreen) {display:flex!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-card>.dt-chart-options {display:grid!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-card>.dt-chart-offscreen[hidden] {display:none!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-card>.dt-analysis {display:none!important;}
html:root.ivy-duo-mode .dt-panel .dt-timeframes {position:relative;isolation:isolate;margin:0 12px 8px;padding:3px;gap:2px;border-radius:999px;background:var(--dt-bg);}
html:root.ivy-duo-mode .dt-panel .dt-timeframes.duo-lens-nav>button {position:relative;z-index:1;min-height:38px;flex:1;border:0;background:transparent!important;box-shadow:none!important;font-size:12px;color:var(--dt-muted);}
html:root.ivy-duo-mode .dt-panel .dt-timeframes.duo-lens-nav>button[aria-pressed=true] {color:var(--dt-text);}
html:root.ivy-duo-mode .dt-panel .dt-chart-readout {flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 8px;min-height:46px;padding:6px 14px 4px;font-size:10px;color:var(--dt-muted);font-variant-numeric:tabular-nums;}
html:root.ivy-duo-mode .dt-panel .dt-chart-reading {font-size:12px;font-weight:600;color:var(--dt-text);}
html:root.ivy-duo-mode .dt-panel .dt-chart-hint {flex-basis:100%;min-height:13px;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html:root.ivy-duo-mode .dt-panel .trading__sim-panel-graph-inner.dt-chart-host {position:relative!important;width:calc(100% - 16px)!important;margin:0 8px!important;height:clamp(230px,32vh,310px)!important;min-height:230px!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:none!important;background-image:none!important;box-shadow:none!important;cursor:default;}
html:root.ivy-duo-mode .dt-panel .dt-chart-host::before,html:root.ivy-duo-mode .dt-panel .dt-chart-host::after {display:none!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-scroll {position:relative;height:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;}
html:root.ivy-duo-mode .dt-panel .dt-chart-scroll::-webkit-scrollbar {display:none;}
html:root.ivy-duo-mode .dt-panel .dt-chart-scroll.is-inspecting {touch-action:none;}
html:root.ivy-duo-mode .dt-panel .dt-chart-scene {display:block;overflow:hidden;}
html:root.ivy-duo-mode .dt-panel :is(.dt-chart-axis,.dt-chart-levels) {position:absolute;top:0;right:0;overflow:hidden;pointer-events:none;}
html:root.ivy-duo-mode .dt-panel .dt-chart-levels {right:auto;left:0;}
html:root.ivy-duo-mode .dt-panel .dt-chart-host svg {font:9px -apple-system,BlinkMacSystemFont,sans-serif;font-variant-numeric:tabular-nums;}
html:root.ivy-duo-mode .dt-panel .dt-chart-host text {fill:var(--dt-muted);}
html:root.ivy-duo-mode .dt-panel .dt-chart-grid line {stroke:var(--chart-grid);stroke-width:1;vector-effect:non-scaling-stroke;}
html:root.ivy-duo-mode .dt-panel .dt-chart-candle {transition:none!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-candle.is-up {color:var(--chart-up);}
html:root.ivy-duo-mode .dt-panel .dt-chart-candle.is-down {color:var(--chart-down);}
html:root.ivy-duo-mode .dt-panel .dt-chart-candle :is(line,rect) {stroke:currentColor;stroke-width:.8;vector-effect:non-scaling-stroke;transition:none!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-price-path {fill:none;stroke:var(--dt-blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
html:root.ivy-duo-mode .dt-panel .dt-chart-study {fill:none;stroke-width:1.2;stroke-linejoin:round;stroke-linecap:round;}
html:root.ivy-duo-mode .dt-panel .dt-chart-ema {stroke:#7c8ec4;}
html:root.ivy-duo-mode.dark-mode .dt-panel .dt-chart-ema {stroke:#9bace2;}
html:root.ivy-duo-mode .dt-panel .dt-chart-sma {stroke:#ba8c43;stroke-dasharray:4 3;}
html:root.ivy-duo-mode .dt-panel .dt-chart-current-line {stroke:var(--dt-blue);stroke-width:.65;stroke-dasharray:2 4;opacity:.55;}
html:root.ivy-duo-mode .dt-panel .dt-chart-price-tag {fill:var(--dt-blue);}
html:root.ivy-duo-mode .dt-panel .dt-chart-price-number {fill:var(--dt-card);font-size:9px;font-weight:600;}
html:root.ivy-duo-mode .dt-panel .dt-chart-day line {stroke:var(--dt-muted);stroke-width:.7;stroke-dasharray:5 5;opacity:.4;}
html:root.ivy-duo-mode .dt-panel .dt-chart-day text {font-size:8px;paint-order:stroke;stroke:var(--dt-card);stroke-width:3px;stroke-linejoin:round;}
html:root.ivy-duo-mode .dt-panel .dt-chart-cross line {stroke:var(--dt-muted);stroke-width:1;stroke-dasharray:3 3;}
html:root.ivy-duo-mode .dt-panel .dt-chart-cross circle {fill:var(--dt-blue);stroke:var(--dt-card);stroke-width:2;}
html:root.ivy-duo-mode .dt-panel .dt-chart-order {pointer-events:auto;cursor:pointer;outline:none;}
html:root.ivy-duo-mode .dt-panel :is(.dt-chart-order,.dt-chart-order-line).is-buy {color:var(--chart-up);}
html:root.ivy-duo-mode .dt-panel :is(.dt-chart-order,.dt-chart-order-line).is-sell {color:var(--chart-down);}
html:root.ivy-duo-mode .dt-panel .dt-chart-order.is-mixed {color:var(--dt-blue);}
html:root.ivy-duo-mode .dt-panel .dt-chart-order rect {fill:var(--dt-card);stroke:currentColor;stroke-width:.6;}
html:root.ivy-duo-mode .dt-panel .dt-chart-order text {fill:currentColor;font-size:9px;font-weight:500;}
html:root.ivy-duo-mode .dt-panel .dt-chart-order-leader {fill:none;stroke:currentColor;stroke-width:.6;opacity:.65;}
html:root.ivy-duo-mode .dt-panel .dt-chart-order-line {stroke:currentColor;stroke-width:.65;opacity:.4;}
html:root.ivy-duo-mode .dt-panel .dt-chart-order:focus-visible rect {stroke-width:2;}
html:root.ivy-duo-mode .dt-panel .dt-chart-controls {display:flex;align-items:center;justify-content:space-between;gap:4px;margin:3px 12px 0;border-top:1px solid var(--dt-line);}
html:root.ivy-duo-mode .dt-panel :is(.dt-chart-action,.dt-chart-style) {position:relative;min-height:44px;padding:8px 4px;background:none;border:0;box-shadow:none;color:var(--dt-muted);font:500 11px/1.2 -apple-system,BlinkMacSystemFont,sans-serif;}
html:root.ivy-duo-mode .dt-panel .dt-chart-action[aria-pressed=true],html:root.ivy-duo-mode .dt-panel .dt-chart-action[aria-expanded=true] {color:var(--dt-blue);}
html:root.ivy-duo-mode .dt-panel .dt-chart-style {display:flex;align-items:center;min-width:0;flex:1;max-width:110px;padding:0;}
html:root.ivy-duo-mode .dt-panel .dt-chart-style select {appearance:none;-webkit-appearance:none;width:100%;min-width:0;min-height:44px;padding:8px 17px 8px 0;border:0;background:none;box-shadow:none;font-size:11px;font-weight:500;color:var(--dt-text);text-overflow:ellipsis;}
html:root.ivy-duo-mode .dt-panel .dt-chart-menu-chevron {position:absolute;right:3px;pointer-events:none;font-size:13px;color:var(--dt-muted);}
html:root.ivy-duo-mode .dt-panel .dt-chart-options {grid-template-rows:0fr;opacity:0;transition:grid-template-rows .3s cubic-bezier(.22,1,.36,1),opacity .2s ease;}
html:root.ivy-duo-mode .dt-panel .dt-chart-options.is-open {grid-template-rows:1fr;opacity:1;}
html:root.ivy-duo-mode .dt-panel .dt-chart-options-body {min-height:0;overflow:hidden;margin:0 12px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-options .sim-indicator-dock {display:flex;gap:4px;padding:4px 0;background:none;border:0;border-radius:0;}
html:root.ivy-duo-mode .dt-panel .dt-chart-options .sim-indicator-toggle {flex:1;min-height:40px;justify-content:center;padding:5px 3px;background:none;border:0;box-shadow:none;font-size:10px;font-weight:500;color:var(--dt-muted);}
html:root.ivy-duo-mode .dt-panel .dt-chart-options .sim-indicator-toggle.is-active {background:var(--dt-bg);color:var(--dt-text);border-radius:10px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-options .sim-indicator-swatch {width:8px;box-shadow:none;}
html:root.ivy-duo-mode .dt-panel .dt-chart-zoom {display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--dt-line);}
html:root.ivy-duo-mode .dt-panel .dt-chart-zoom .dt-chart-action {flex:1;font-size:13px;min-width:32px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-zoom .dt-chart-action:last-child {flex:2;white-space:nowrap;font-size:11px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-offscreen {width:100%;justify-content:center;min-height:32px;padding:5px 12px;border:0;background:none;color:var(--dt-blue);font-size:10px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-empty {position:absolute;inset:0;display:grid;place-items:center;color:var(--dt-muted);font-size:12px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-host :is(.sim_crosshair-tooltip,.sim_crosshair-hline) {display:none!important;}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .dt-panel .dt-chart-options {transition:none!important;}}
html:root.ivy-duo-mode .dt-panel .trading__sim-panel-graph.dt-chart-card {background:var(--dt-card)!important;}
html:root.ivy-duo-mode .dt-panel .dt-chart-host .dt-chart-price-number {fill:var(--dt-card);}
html:root.ivy-duo-mode .dt-panel .dt-chart-style select {font:500 12px/1.2 -apple-system,BlinkMacSystemFont,sans-serif!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--dt-text)!important;}
/* Keep the OS select at 16px for Safari focus; its visible label stays compact. */
html:root.ivy-duo-mode .dt-panel .dt-chart-style select {position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px!important;z-index:1;}
html:root.ivy-duo-mode .dt-panel .dt-chart-style-label {font-size:12px;font-weight:500;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:20px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-style:has(select:focus-visible) {outline:2px solid var(--dt-blue);outline-offset:0;border-radius:8px;}
html:root.ivy-duo-mode .dt-panel .dt-chart-scroll:focus-visible {outline:2px solid var(--dt-blue);outline-offset:-2px;}
