.v2-stock-page {
    padding: 18px 20px 28px;
}

.v2-stock-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    border-bottom: 1px solid #252b35;
}

.v2-stock-symbol-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.v2-stock-symbol-line h1 {
    margin: 0;
    color: #f2f4f8;
    font-size: 28px;
    line-height: 1;
}

.v2-stock-company {
    color: #b1bac8;
    font-size: 14px;
}

.v2-stock-meta {
    margin-top: 8px;
    color: #8995a7;
    font-size: 12px;
    line-height: 1.45;
}

.v2-stock-quote-placeholder {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.v2-stock-quote-placeholder strong {
    color: #eef1f6;
    font-size: 24px;
}

.v2-stock-quote-placeholder span {
    color: #727d8d;
    font-size: 11px;
}

.v2-stock-quote-placeholder span.v2-stock-positive,
.v2-stock-chart-quote span.v2-stock-positive {
    color: #22c55e;
    font-weight: 700;
}

.v2-stock-quote-placeholder span.v2-stock-negative,
.v2-stock-chart-quote span.v2-stock-negative {
    color: #ef4444;
    font-weight: 700;
}

.v2-stock-tabs {
    height: 44px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    border-bottom: 1px solid #252b35;
}

.v2-stock-tabs button {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa5b5;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
}

.v2-stock-tabs button.is-active {
    color: #d9d2ff;
}

.v2-stock-tabs button.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #885cf6;
}

.v2-stock-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
    margin-top: 12px;
}

.v2-stock-chart-column,
.v2-stock-panel {
    min-width: 0;
    border: 1px solid #252c38;
    border-radius: 6px;
    background: #0d131b;
}

.v2-stock-chart-toolbar {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 12px;
    border-bottom: 1px solid #252c38;
    color: #9aa4b4;
    font-size: 11px;
}

.v2-stock-timeframe {
    min-width: 30px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #8994a6;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.v2-stock-timeframe:hover {
    border-color: #313949;
    color: #d8dee8;
}

.v2-stock-timeframe.is-active {
    border-color: rgba(136, 92, 246, .35);
    background: rgba(136, 92, 246, .12);
    color: #c8b7ff;
}

.v2-stock-toolbar-spacer {
    flex: 1;
}

.v2-stock-chart-quote {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

.v2-stock-chart-quote strong {
    color: #eef1f6;
    font-size: 12px;
    font-weight: 700;
}

.v2-stock-chart-quote > span {
    white-space: nowrap;
}

.v2-chart-live-state {
    padding: 2px 5px;
    border: 1px solid #303847;
    border-radius: 4px;
    color: #788395;
    font-size: 9px;
    font-weight: 650;
}

.v2-chart-live-state.is-live {
    border-color: rgba(34, 197, 94, .25);
    color: #5ed985;
}

.v2-stock-toolbar-divider {
    width: 1px;
    height: 18px;
    background: #252c38;
}

.v2-chart-control {
    height: 28px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #8994a6;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.v2-chart-control:hover,
.v2-chart-control[aria-expanded="true"] {
    border-color: #313949;
    color: #d8dee8;
}

.v2-chart-indicators,
.v2-chart-overlays {
    position: relative;
}

.v2-chart-indicators-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    width: 150px;
    padding: 6px;
    border: 1px solid #303847;
    border-radius: 6px;
    background: #111821;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.v2-chart-indicators-menu[hidden] {
    display: none;
}

.v2-chart-indicators-menu label {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 7px;
    border-radius: 4px;
    color: #a5afbd;
    font-size: 10px;
    cursor: pointer;
}

.v2-chart-indicators-menu label:hover {
    background: rgba(148, 163, 184, .07);
}

.v2-chart-indicators-menu input {
    margin: 0;
    accent-color: #885cf6;
}

.v2-stock-chart-column:fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: #0b1118;
}

.v2-stock-chart-column:fullscreen
.v2-stock-chart-stage {
    height: calc(100vh - 41px);
    min-height: 0;
}

.v2-stock-chart-column:fullscreen
.v2-stock-chart-svg {
    height: calc(100vh - 41px);
}

.v2-stock-chart-stage {
    min-width: 0;
    min-height: 510px;
    position: relative;
    overflow: hidden;
    color: #667285;
    background: #0b1118;
    touch-action: pan-y;
}

.v2-chart-workspace {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
}

.v2-chart-drawing-toolbar {
    position: relative;
    z-index: 12;
    width: 42px;
    min-width: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-right: 1px solid #252c38;
    background: #0d131b;
}

.v2-chart-drawing-tool {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #b3bdca;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition:
        color 120ms ease,
        background-color 120ms ease,
        border-color 120ms ease;
}

.v2-chart-tool-icon {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-tool:hover {
    border-color: #364153;
    background: rgba(148, 163, 184, .07);
    color: #e2e8f0;
}

.v2-chart-drawing-tool.is-active {
    border-color: rgba(139, 92, 246, .52);
    background: rgba(139, 92, 246, .16);
    color: #d8ccff;
}

#v2-chart-drawing-clear:hover {
    border-color: rgba(239, 100, 100, .32);
    background: rgba(239, 100, 100, .08);
    color: #e7a0a0;
}


/* Subtle accents for visually distinct analysis tools. */
.v2-chart-drawing-tool[
    data-drawing-tool="measure"
] {
    color: #5fb3c8;
}

.v2-chart-drawing-tool[
    data-drawing-tool="fibonacci"
] {
    color: #a982e6;
}

.v2-chart-drawing-tool[
    data-drawing-tool="arc"
] {
    color: #78b08b;
}

/* Active tool remains the strongest state. */
.v2-chart-drawing-tool.is-active {
    color: #ddd4ff;
}

/* Keep Pan visually immediate and familiar. */
.v2-chart-drawing-tool[
    data-drawing-tool="pan"
] {
    font-size: 15px;
}

.v2-chart-drawing-tool-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.v2-chart-drawing-separator {
    width: 18px;
    height: 1px;
    margin: 3px 0;
    background: #354052;
}

.v2-chart-footer-legend {
    grid-column: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 18px;
    min-width: 0;
    min-height: 30px;
    padding: 6px 12px 5px 12px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.2;
}

.v2-chart-footer-legend[hidden] {
    display: none;
}

.v2-chart-footer-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.v2-chart-footer-legend-line {
    display: inline-block;
    width: 20px;
    height: 0;
    border-top: 2px solid var(--v2-legend-color);
    opacity: .95;
}

.v2-chart-footer-legend-multi {
    width: 22px;
    height: 4px;
    display: inline-flex;
    overflow: hidden;
    border-radius: 2px;
}

.v2-chart-footer-legend-multi i {
    flex: 1 1 0;
    height: 100%;
    display: block;
}

.v2-chart-footer-legend-bars {
    width: 22px;
    height: 11px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.v2-chart-footer-legend-bars i {
    width: 4px;
    height: 10px;
    display: block;
    border-radius: 1px 1px 0 0;
}

.v2-chart-footer-legend-bars i.is-up {
    background: #22c55e;
}

.v2-chart-footer-legend-bars i.is-down {
    background: #ef4444;
}

.v2-chart-footer-legend-bars i.is-short {
    height: 6px;
}

.v2-chart-auto-overlay-layer,
.v2-chart-drawing-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.v2-chart-auto-overlay-layer {
    z-index: 7;
}

.v2-chart-drawing-layer {
    z-index: 8;
}

.v2-stock-chart-stage[data-drawing-tool="trend"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="measure"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="fibonacci"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="zone"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="hline"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="arc"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="parallel-channel"]
.v2-chart-drawing-layer,
.v2-stock-chart-stage[data-drawing-tool="freehand"]
.v2-chart-drawing-layer {
    pointer-events: auto;
    cursor: crosshair;
}

.v2-stock-chart-stage[data-drawing-tool="pan"],
.v2-stock-chart-stage[data-drawing-tool="zoom"],
.v2-stock-chart-stage[data-drawing-tool="trend"],
.v2-stock-chart-stage[data-drawing-tool="measure"],
.v2-stock-chart-stage[data-drawing-tool="fibonacci"],
.v2-stock-chart-stage[data-drawing-tool="zone"],
.v2-stock-chart-stage[data-drawing-tool="hline"],
.v2-stock-chart-stage[data-drawing-tool="arc"],
.v2-stock-chart-stage[data-drawing-tool="parallel-channel"],
.v2-stock-chart-stage[data-drawing-tool="freehand"] {
    touch-action: none;
}

.v2-stock-chart-stage[data-mobile-edit="true"] {
    touch-action: none;
}

.v2-chart-drawing-freehand {
    fill: none;
    pointer-events: none;
}

.v2-chart-drawing-freehand-path {
    fill: none;
    stroke: var(
        --v2-freehand-color,
        #22d3ee
    );
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-freehand.is-pending
.v2-chart-drawing-freehand-path {
    opacity: .9;
}

.v2-chart-drawing-freehand.is-selected
.v2-chart-drawing-freehand-path {
    stroke: #f4d35e;
    stroke-dasharray: 5 4;
}

.v2-chart-drawing-freehand-label {
    fill: var(
        --v2-freehand-color,
        #22d3ee
    );
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.v2-chart-drawing-freehand-label.is-selected {
    fill: #f4d35e;
}

.v2-chart-drawing-parallel-channel {
    fill: none;
    pointer-events: none;
}

.v2-chart-drawing-channel-boundary {
    fill: none;
    stroke: var(--v2-channel-color, #22d3ee);
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-channel-midline {
    fill: none;
    stroke: var(--v2-channel-color, #22d3ee);
    stroke-width: 1.15;
    stroke-dasharray: 5 4;
    opacity: .72;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-parallel-channel.is-pending
.v2-chart-drawing-channel-boundary,
.v2-chart-drawing-parallel-channel.is-pending
.v2-chart-drawing-channel-midline {
    stroke-dasharray: 6 4;
    opacity: .9;
}

.v2-chart-drawing-parallel-channel.is-selected
.v2-chart-drawing-channel-boundary,
.v2-chart-drawing-parallel-channel.is-selected
.v2-chart-drawing-channel-midline {
    stroke: #f4d35e;
    stroke-width: 1.8;
}

.v2-chart-drawing-channel-label {
    fill: var(--v2-channel-color, #22d3ee);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.v2-chart-drawing-channel-label.is-selected {
    fill: #f4d35e;
}

.v2-chart-drawing-arc {
    fill: none;
    pointer-events: none;
}

.v2-chart-drawing-arc-path {
    fill: none;
    stroke: var(--v2-arc-color, #22d3ee);
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-arc.is-pending
.v2-chart-drawing-arc-path {
    stroke-dasharray: 6 4;
    opacity: .9;
}

.v2-chart-drawing-arc.is-selected
.v2-chart-drawing-arc-path {
    stroke: #f4d35e;
    stroke-dasharray: 6 4;
}

.v2-chart-drawing-arc-label {
    fill: var(--v2-arc-color, #22d3ee);
    font-size: 12px;
    font-weight: 600;
}

.v2-chart-drawing-arc-label.is-selected {
    fill: #f4d35e;
}

.v2-chart-drawing-trend {
    fill: none;
    stroke: #9b7cff;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.v2-chart-drawing-trend.is-pending {
    stroke-dasharray: 5 4;
    opacity: .82;
}

.v2-chart-drawing-measure {
    pointer-events: none;
}

.v2-chart-drawing-measure-box {
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-measure-line {
    fill: none;
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-measure.is-positive
.v2-chart-drawing-measure-box {
    fill: rgba(34, 197, 94, .10);
    stroke: rgba(34, 197, 94, .78);
}

.v2-chart-drawing-measure.is-positive
.v2-chart-drawing-measure-line {
    stroke: rgba(34, 197, 94, .90);
}

.v2-chart-drawing-measure.is-negative
.v2-chart-drawing-measure-box {
    fill: rgba(239, 68, 68, .10);
    stroke: rgba(239, 68, 68, .78);
}

.v2-chart-drawing-measure.is-negative
.v2-chart-drawing-measure-line {
    stroke: rgba(239, 68, 68, .90);
}

.v2-chart-drawing-measure.is-pending {
    opacity: .78;
}

.v2-chart-drawing-measure-label {
    fill: #e5e7eb;
    stroke: #0b1118;
    stroke-width: 4px;
    paint-order: stroke fill;
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    pointer-events: none;
    user-select: none;
}

.v2-chart-drawing-measure.is-positive
.v2-chart-drawing-measure-label {
    fill: #4ade80;
}

.v2-chart-drawing-measure.is-negative
.v2-chart-drawing-measure-label {
    fill: #f87171;
}

.v2-chart-drawing-measure.is-selected
.v2-chart-drawing-measure-box {
    fill: rgba(250, 204, 21, .06);
    stroke: #facc15;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.v2-chart-drawing-measure.is-selected
.v2-chart-drawing-measure-line {
    stroke: #facc15;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.v2-chart-drawing-measure-label.is-selected {
    fill: #facc15;
}

.v2-chart-drawing-zone {
    pointer-events: none;
}

.v2-chart-drawing-zone-box {
    fill: var(
        --v2-zone-fill-color,
        rgba(96, 165, 250, .14)
    );
    fill-opacity: var(
        --v2-zone-fill-opacity,
        1
    );
    stroke: var(
        --v2-zone-color,
        rgba(96, 165, 250, .75)
    );
    stroke-width: 1.3;
    stroke-dasharray: 4 3;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-zone.is-pending
.v2-chart-drawing-zone-box {
    fill: rgba(96, 165, 250, .10);
    stroke: rgba(147, 197, 253, .90);
    stroke-dasharray: 6 4;
}

.v2-chart-drawing-zone.is-selected
.v2-chart-drawing-zone-box {
    fill: rgba(250, 204, 21, .06);
    stroke: #facc15;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.v2-chart-drawing-zone-label {
    fill: #93c5fd;
    stroke: #0b1118;
    stroke-width: 4px;
    paint-order: stroke fill;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .01em;
    pointer-events: none;
    user-select: none;
}

.v2-chart-drawing-zone-label.is-selected {
    fill: #facc15;
}

.v2-chart-drawing-hline-group {
    pointer-events: none;
}

.v2-chart-drawing-hline {
    fill: none;
    stroke: var(--v2-hline-color, #22d3ee);
    stroke-width: 1.25;
    stroke-dasharray: 6 4;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-hline-price {
    fill: var(--v2-hline-color, #67e8f9);
    stroke: #0b1118;
    stroke-width: 4px;
    paint-order: stroke fill;
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    user-select: none;
}

.v2-chart-drawing-hline-group.is-selected
.v2-chart-drawing-hline {
    stroke: #facc15;
}

.v2-chart-drawing-hline-group.is-selected
.v2-chart-drawing-hline-price {
    fill: #facc15;
}

.v2-chart-drawing-anchor {
    fill: #0d131b;
    stroke: #b7a2ff;
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-drawing-anchor.is-pending {
    opacity: .82;
}

.v2-stock-chart-stage[data-drawing-tool="inspect"]
.v2-chart-drawing-layer {
    pointer-events: auto;
    cursor: default;
}

.v2-stock-chart-stage[data-drawing-tool="zoom"]
.v2-chart-drawing-layer {
    pointer-events: auto;
    cursor: crosshair;
}

.v2-chart-zoom-selection {
    fill: rgba(139, 92, 246, .12);
    stroke: rgba(167, 139, 250, .82);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-inspect-crosshair-line {
    stroke: rgba(167, 139, 250, .72);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.v2-chart-inspect-axis-tag {
    pointer-events: none;
}

.v2-chart-inspect-axis-tag-bg {
    fill: #1a2230;
    stroke: rgba(167, 139, 250, .72);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.v2-chart-inspect-axis-tag-text {
    fill: #edf2f7;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
}

.v2-drawing-context-menu {
    position: absolute;
    z-index: 40;
    min-width: 138px;
    padding: 9px 11px;
    border: 1px solid #303847;
    border-radius: 6px;
    background: #111821;
    color: #d8dee8;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    font-size: 11px;
    font-weight: 600;
    pointer-events: auto;
    user-select: none;
}

.v2-drawing-context-action {
    display: block;
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.v2-drawing-context-menu.is-touch-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    box-sizing: border-box;
    min-width: 0;
    padding: 8px;
}

.v2-drawing-context-menu.is-touch-panel
.v2-drawing-context-action {
    flex: 1 1 auto;
    width: auto;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #303847;
    text-align: center;
}

.v2-drawing-context-menu.is-touch-panel
.v2-drawing-label-editor,
.v2-drawing-context-menu.is-touch-panel
.v2-drawing-color-palette {
    flex: 1 0 100%;
    box-sizing: border-box;
    width: 100%;
}

.v2-drawing-context-menu.is-touch-panel
.v2-drawing-label-input {
    width: 100%;
}

.v2-drawing-context-action:hover {
    background: #1a2230;
    color: #f8fafc;
}

.v2-drawing-context-action.is-delete {
    color: #f87171;
}

.v2-drawing-label-editor {
    padding: 5px 8px 7px;
}

.v2-drawing-label-editor[hidden] {
    display: none;
}

.v2-drawing-label-input {
    width: 148px;
    height: 28px;
    box-sizing: border-box;
    padding: 4px 7px;
    border: 1px solid #384355;
    border-radius: 4px;
    outline: none;
    background: #0b1118;
    color: #e5e7eb;
    font: inherit;
    font-size: 12px;
}

.v2-drawing-label-input:focus {
    border-color: #9b7cff;
}

.v2-chart-drawing-label {
    fill: #cbd5e1;
    stroke: #0b1118;
    stroke-width: 3px;
    paint-order: stroke fill;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
    user-select: none;
}

.v2-chart-drawing-label.is-selected {
    fill: #facc15;
}

.v2-drawing-color-palette {
    display: grid;
    grid-template-columns: repeat(4, 24px);
    gap: 6px;
    padding: 6px 8px 8px;
}

.v2-drawing-color-palette[hidden] {
    display: none;
}

.v2-drawing-color-swatch {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #465164;
    border-radius: 4px;
    cursor: pointer;
}

.v2-drawing-color-swatch:hover {
    border-color: #f8fafc;
}

.v2-chart-drawing-trend.is-selected {
    stroke: #facc15;
    stroke-width: 2;
    stroke-dasharray: 5 4;
}

.v2-chart-drawing-anchor.is-selected {
    fill: #0d131b;
    stroke: #facc15;
    stroke-width: 2;
    pointer-events: none;
}

.v2-stock-chart-stage[data-drawing-tool="pan"] {
    cursor: grab;
}

.v2-stock-chart-stage[data-drawing-tool="pan"].is-viewport-panning {
    cursor: grabbing;
}

.v2-stock-chart-stage[data-drawing-tool="zoom"] {
    cursor: crosshair;
}

.v2-stock-chart-stage[data-drawing-tool="inspect"] {
    cursor: default;
}

.v2-stock-chart-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #667285;
    font-size: 11px;
}

.v2-stock-chart-svg {
    display: block;
    width: 100%;
    height: 510px;
}

.v2-chart-grid-line {
    stroke: rgba(148, 163, 184, .11);
    stroke-width: 1;
}

.v2-chart-axis-label {
    fill: #697587;
    font-size: 10px;
    font-family: inherit;
}

.v2-chart-wick {
    stroke-width: 1;
}

.v2-chart-body.v2-chart-up,
.v2-chart-wick.v2-chart-up {
    fill: #22c55e;
    stroke: #22c55e;
}

.v2-chart-body.v2-chart-down,
.v2-chart-wick.v2-chart-down {
    fill: #ef4444;
    stroke: #ef4444;
}

.v2-chart-volume.v2-chart-up {
    fill: rgba(34, 197, 94, .30);
}

.v2-chart-volume.v2-chart-down {
    fill: rgba(239, 68, 68, .30);
}

.v2-chart-volume-separator {
    stroke: rgba(148, 163, 184, .12);
    stroke-width: 1;
}

.v2-chart-legend {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    display: grid;
    gap: 5px;
    pointer-events: none;
}

.v2-chart-ohlc,
.v2-chart-ema-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8a9b;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.v2-chart-ohlc strong {
    color: #dfe4ec;
    font-weight: 650;
}

.v2-chart-ema20 {
    color: #eab308;
}

.v2-chart-ema50 {
    color: #3b82f6;
}

.v2-chart-ema200 {
    color: #a855f7;
}

.v2-chart-ema-line {
    fill: none;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.v2-chart-ema20-line {
    stroke: #eab308;
}

.v2-chart-ema50-line {
    stroke: #3b82f6;
}

.v2-chart-ema200-line {
    stroke: #a855f7;
}

.v2-chart-bb-legend {
    color: #94a3b8;
}

.v2-chart-bb-line {
    fill: none;
    stroke: #94a3b8;
    vector-effect: non-scaling-stroke;
}

.v2-chart-bb-edge {
    stroke-width: .9;
    stroke-opacity: .72;
}

.v2-chart-bb-middle {
    stroke-width: .8;
    stroke-opacity: .42;
    stroke-dasharray: 3 3;
}

.v2-chart-supertrend-legend {
    color: #cbd5e1;
}

.v2-chart-supertrend-line {
    fill: none;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.v2-chart-supertrend-line.is-up {
    stroke: #22c55e;
}

.v2-chart-supertrend-line.is-down {
    stroke: #ef4444;
}

.v2-chart-ichimoku-legend {
    color: #c4b5fd;
}

.v2-chart-ichimoku-line {
    fill: none;
    stroke-width: .9;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.v2-chart-ichimoku-conversion {
    stroke: #60a5fa;
}

.v2-chart-ichimoku-base {
    stroke: #f87171;
}

.v2-chart-ichimoku-span-a {
    stroke: #34d399;
    stroke-opacity: .70;
}

.v2-chart-ichimoku-span-b {
    stroke: #f59e0b;
    stroke-opacity: .30;
}

.v2-chart-ichimoku-cloud {
    stroke: none;
    pointer-events: none;
}

.v2-chart-ichimoku-cloud.is-bullish {
    fill: rgba(34, 197, 94, .19);
}

.v2-chart-ichimoku-cloud.is-bearish {
    fill: rgba(239, 68, 68, .19);
}

.v2-chart-indicator-pane-bg {
    fill: #0b1118;
    pointer-events: none;
}

.v2-chart-indicator-separator {
    stroke: rgba(148, 163, 184, .18);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.v2-chart-indicator-title,
.v2-chart-indicator-axis {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

.v2-chart-indicator-title {
    fill: #8792a3;
    font-size: 9px;
}

.v2-chart-indicator-muted {
    fill: #667285;
}

.v2-chart-indicator-axis {
    fill: #667285;
    font-size: 9px;
}

.v2-chart-rsi-threshold {
    stroke: rgba(148, 163, 184, .20);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
}

.v2-chart-rsi-line,
.v2-chart-rsi-smooth-line,
.v2-chart-macd-line,
.v2-chart-macd-signal-line {
    fill: none;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.v2-chart-rsi-line {
    stroke: #a78bfa;
}

.v2-chart-rsi-smooth-line {
    stroke: #f59e0b;
}

.v2-chart-rsi-value {
    fill: #a78bfa;
}

.v2-chart-rsi-smooth-value {
    fill: #f59e0b;
}

.v2-chart-macd-zero {
    stroke: rgba(148, 163, 184, .20);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.v2-chart-macd-line {
    stroke: #60a5fa;
}

.v2-chart-macd-signal-line {
    stroke: #f59e0b;
}

.v2-chart-macd-value {
    fill: #60a5fa;
}

.v2-chart-macd-signal-value {
    fill: #f59e0b;
}

.v2-chart-macd-hist-value {
    fill: #94a3b8;
}

.v2-chart-macd-histogram.is-positive {
    fill: rgba(34, 197, 94, .48);
}

.v2-chart-macd-histogram.is-negative {
    fill: rgba(239, 68, 68, .48);
}

.v2-chart-date-label {
    fill: #667285;
    font-size: 9px;
    font-family: inherit;
}

.v2-chart-current-line {
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
}

.v2-chart-current-line.v2-chart-current-positive {
    stroke: rgba(34, 197, 94, .62);
}

.v2-chart-current-line.v2-chart-current-negative {
    stroke: rgba(239, 68, 68, .62);
}

.v2-chart-current-box.v2-chart-current-positive {
    fill: #166534;
}

.v2-chart-current-box.v2-chart-current-negative {
    fill: #991b1b;
}

.v2-chart-current-label {
    fill: #f8fafc;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
}

.v2-stock-chart-stage > div {
    display: grid;
    gap: 7px;
}

.v2-stock-chart-stage strong {
    color: #aab3c1;
    font-size: 13px;
}

.v2-stock-chart-stage span {
    font-size: 11px;
}

.v2-stock-intelligence {
    display: grid;
    align-content: start;
    gap: 12px;
}

.v2-stock-panel {
    padding: 14px;
}

.v2-stock-panel h2 {
    margin: 0;
    color: #cfd6e1;
    font-size: 14px;
    font-weight: 650;
}

.v2-stock-panel-empty {
    min-height: 58px;
    display: flex;
    align-items: center;
    color: #697587;
    font-size: 11px;
}


/* Right-rail stock intelligence */

.v2-intel-content {
    margin-top: 10px;
}

.v2-intel-setup-head,
.v2-intel-target-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v2-intel-setup-head > strong {
    color: #edf1f7;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.v2-intel-state {
    flex: 0 0 auto;
    color: #8e99a9;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.v2-intel-state.is-positive {
    color: #22c55e;
}

.v2-intel-rows {
    display: grid;
    margin-top: 9px;
}

.v2-intel-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    min-height: 31px;
    padding: 6px 0;
    border-top: 1px solid #202a38;
}

.v2-intel-row > span {
    min-width: 0;
    color: #7f8b9d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.v2-intel-row > strong {
    flex: 0 0 auto;
    color: #cfd6e1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
}

.v2-intel-row > strong.is-positive {
    color: #22c55e;
}

.v2-intel-row > strong.is-negative {
    color: #ef4444;
}

.v2-intel-subsection {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #26303d;
}

.v2-intel-subtitle {
    color: #748094;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.v2-intel-no-setup {
    color: #8995a7;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.v2-intel-target + .v2-intel-target {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #202a38;
}

.v2-intel-target-main > span {
    color: #7f8b9d;
    font-size: 12px;
    font-weight: 400;
}

.v2-intel-target-main > strong {
    color: #dbe1ea;
    font-size: 15px;
    font-weight: 650;
}

.v2-intel-target-status {
    margin-top: 7px;
}

.v2-intel-target-status span {
    color: #22c55e;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Stock semantic accents */

#v2-stock-setup .v2-intel-setup-head > strong {
    color: #dfe5ed;
}

#v2-stock-setup .v2-intel-state.is-positive {
    color: #22c55e;
}

#v2-stock-setup .v2-intel-rows:first-of-type
.v2-intel-row:nth-child(1) > strong {
    color: #55c98a;
}

#v2-stock-setup .v2-intel-rows:first-of-type
.v2-intel-row:nth-child(2) > strong {
    color: #ef6464;
}

#v2-stock-setup .v2-intel-rows:first-of-type
.v2-intel-row:nth-child(3) > strong {
    color: #d8b84c;
}

#v2-stock-setup .v2-intel-subtitle {
    color: #9b7cff;
}

#v2-stock-key-levels .v2-intel-row:nth-child(1) > strong {
    color: #ef6464;
}

#v2-stock-key-levels .v2-intel-row:nth-child(2) > strong {
    color: #55c98a;
}

#v2-stock-targets .v2-intel-target-main > strong {
    color: #a978ff;
}

#v2-stock-targets .v2-intel-target-status span {
    color: #22c55e;
}

.v2-stock-snapshot-item:nth-child(1)
.v2-stock-snapshot-value {
    color: #55c98a;
}

.v2-stock-snapshot-item:nth-child(2)
.v2-stock-snapshot-value {
    color: #d8b84c;
}

.v2-stock-snapshot-item:nth-child(3)
.v2-stock-snapshot-value {
    color: #63a8e8;
}

.v2-stock-snapshot-item:nth-child(4)
.v2-stock-snapshot-value {
    color: #a978ff;
}

.v2-stock-narrative-factors
.v2-stock-section-kicker {
    color: #9b7cff;
}

.v2-stock-watch-card:first-child
.v2-stock-watch-card-label {
    color: #63a8e8;
}

.v2-stock-watch-card:nth-child(2)
.v2-stock-watch-card-label {
    color: #a978ff;
}

/* Stock decision intelligence */

.v2-stock-panel h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #cfd6e1;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.v2-stock-section-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v2-stock-section-icon.is-green {
    color: #22c55e;
}

.v2-stock-section-icon.is-blue {
    color: #4d9be8;
}

.v2-stock-section-icon.is-purple {
    color: #9b6cff;
}

.v2-stock-panel-empty {
    color: #8995a7;
    font-size: 13px;
    line-height: 1.55;
}

.v2-stock-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    border: 1px solid #202a38;
    border-radius: 5px;
    overflow: hidden;
}

.v2-stock-snapshot-item {
    min-width: 0;
    min-height: 82px;
    padding: 13px 15px;
    border-left: 1px solid #202a38;
    background: #0b1118;
}

.v2-stock-snapshot-item:first-child {
    border-left: 0;
}

.v2-stock-snapshot-label,
.v2-stock-section-kicker,
.v2-stock-watch-card-label {
    display: block;
    color: #8e9aab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}

.v2-stock-snapshot-value {
    display: block;
    margin-top: 6px;
    color: #e5eaf1;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
}

.v2-stock-snapshot-detail {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #8491a3;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-stock-narrative-content {
    margin-top: 12px;
    max-width: 1100px;
}

.v2-stock-narrative-lead {
    margin: 0;
    color: #b0bac8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.v2-stock-narrative-factors {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #202a38;
}

.v2-stock-narrative-factors ul {
    display: grid;
    gap: 8px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.v2-stock-narrative-factors li {
    position: relative;
    padding-left: 15px;
    color: #9ca8b8;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.v2-stock-narrative-factors li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #885cf6;
}

.v2-stock-watch-cards {
    display: grid;
    gap: 0;
    margin-top: 9px;
}

.v2-stock-watch-card {
    padding: 11px 0;
    border-top: 1px solid #202a38;
}

.v2-stock-watch-card:first-child {
    border-top: 0;
}

.v2-stock-watch-card p {
    margin: 5px 0 0;
    color: #a4afbe;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .v2-stock-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-stock-snapshot-item:nth-child(odd) {
        border-left: 0;
    }

    .v2-stock-snapshot-item:nth-child(n+3) {
        border-top: 1px solid #202a38;
    }
}

/* Stock continuation */

.v2-stock-continuation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.v2-stock-continuation-panel {
    min-width: 0;
}

.v2-stock-continuation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.v2-stock-continuation-list {
    display: grid;
}

.v2-stock-continuation-row {
    display: grid;
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 8px 2px;
    border-top: 1px solid #222b38;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.v2-stock-continuation-row:first-child {
    border-top: 0;
}

.v2-stock-continuation-row:hover .v2-stock-continuation-symbol,
.v2-stock-continuation-row:hover .v2-stock-continuation-arrow {
    color: #9d7aff;
}

.v2-stock-continuation-symbol {
    color: #eef1f6;
    font-size: 12px;
    font-weight: 750;
    transition: color .15s ease;
}

.v2-stock-continuation-name {
    min-width: 0;
    overflow: hidden;
    color: #7f8998;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-stock-continuation-arrow {
    color: #566173;
    font-size: 16px;
    transition: color .15s ease;
}

.v2-stock-continuation-empty {
    padding: 12px 2px 6px;
    color: #667285;
    font-size: 11px;
}

.v2-stock-quick-read {
    margin-top: 12px;
}

.v2-stock-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
    gap: 12px;
    margin-top: 12px;
}

.v2-stock-empty-state {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 28px 48px;
}

.v2-stock-empty-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
    gap: 56px;
    align-items: center;
}

.v2-stock-empty-hero {
    min-width: 0;
    text-align: left;
}

.v2-stock-empty-kicker {
    display: block;
    color: var(--v2-accent-soft);
    font-size: var(--v2-font-micro);
    font-weight: 700;
    letter-spacing: .12em;
}

.v2-stock-empty-hero h1 {
    margin: 10px 0 10px;
    color: var(--v2-text-primary);
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.v2-stock-empty-hero > p {
    max-width: 650px;
    margin: 0;
    color: var(--v2-text-secondary);
    font-size: var(--v2-font-secondary);
    line-height: 1.6;
}

.v2-stock-empty-search {
    position: relative;
    max-width: 700px;
    margin-top: 24px;
}

.v2-stock-empty-search-box {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(139, 92, 246, .72);
    border-radius: 5px;
    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, .035),
            rgba(139, 92, 246, .012) 45%,
            rgba(139, 92, 246, .025)
        ),
        var(--v2-bg-surface);
    box-shadow:
        inset 0 0 0 1px rgba(139, 92, 246, .035);
}

.v2-stock-empty-search-box:focus-within {
    border-color: var(--v2-accent-soft);
    box-shadow:
        inset 0 0 0 1px rgba(139, 92, 246, .12);
}

.v2-stock-empty-search-icon {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-left: 15px;
    border: 1px solid var(--v2-accent-soft);
    border-radius: 50%;
    opacity: .82;
}

.v2-stock-empty-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1px;
    background: var(--v2-accent-soft);
    transform: rotate(45deg);
    transform-origin: left center;
}

.v2-stock-empty-search input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--v2-text-primary);
    font: inherit;
    font-size: var(--v2-font-secondary);
}

.v2-stock-empty-search input::placeholder {
    color: var(--v2-text-faint);
}

.v2-stock-empty-search-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    border: 1px solid var(--v2-border-strong);
    background: var(--v2-bg-elevated);
}

.v2-stock-empty-trending-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    margin-top: 14px;
}

.v2-stock-empty-trending-inline > span {
    color: var(--v2-text-secondary);
    font-size: var(--v2-font-body);
    font-weight: 600;
}

.v2-stock-empty-trending-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.v2-stock-empty-visual {
    position: relative;
    width: 350px;
    height: 235px;
    justify-self: end;
    align-self: center;
}

.v2-stock-empty-visual-chart {
    position: absolute;
    left: 4px;
    top: 28px;
    width: 252px;
    height: 154px;
    overflow: hidden;
    border: 1px solid #202c3a;
    border-radius: 5px;
    background: #0e141c;
    transform: rotate(-2deg);
    transform-origin: center center;
}

.v2-stock-empty-visual-chart::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(139, 92, 246, .01),
            rgba(139, 92, 246, .06)
        );
}

.v2-stock-empty-visual-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.v2-stock-empty-visual-grid {
    fill: none;
    stroke: #202b38;
    stroke-width: 1;
    opacity: .43;
}

.v2-stock-empty-visual-line {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
}

.v2-stock-empty-visual-card {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 5px;
    width: 164px;
    padding: 10px 9px;
    border: 1px solid #253140;
    border-radius: 6px;
    background: #111821;
}

.v2-stock-empty-visual-item {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 29px;
}

.v2-stock-empty-visual-item + .v2-stock-empty-visual-item {
    margin-top: 2px;
}

.v2-stock-empty-visual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(139, 92, 246, .20);
    border-radius: 5px;
    background: rgba(139, 92, 246, .10);
    color: #a78bfa;
    font-size: 11px;
    line-height: 1;
}

.v2-stock-empty-visual-item > span:last-child {
    color: #b8c2d0;
    font-size: 9px;
    font-weight: 550;
    line-height: 1.15;
    white-space: nowrap;
}

.v2-stock-empty-visual-arrow {
    position: absolute;
    left: 132px;
    bottom: 15px;
    width: 72px;
    height: 42px;
    overflow: visible;
}

.v2-stock-empty-visual-arrow-line,
.v2-stock-empty-visual-arrow-head {
    fill: none;
    stroke: #586a7d;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v2-stock-empty-visual-caption {
    position: absolute;
    right: 10px;
    bottom: 2px;
    color: #63768b;
    font-size: 9px;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: .02em;
    transform: rotate(-5deg);
}

.v2-stock-empty-content {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.v2-stock-empty-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.v2-stock-empty-lists > .v2-stock-empty-section:only-child {
    grid-column: 1 / -1;
}

.v2-stock-empty-section {
    min-width: 0;
    border: 1px solid var(--v2-border);
    background: var(--v2-bg-surface);
}

.v2-stock-empty-section-head {
    padding: 13px 15px;
    border-bottom: 1px solid var(--v2-border);
}

.v2-stock-empty-section-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--v2-text-faint);
    font-size: var(--v2-font-micro);
    font-weight: 700;
    letter-spacing: .1em;
}

.v2-stock-empty-section-head h2 {
    margin: 0;
    color: var(--v2-text-primary);
    font-size: var(--v2-font-ui);
}

.v2-stock-empty-list {
    min-height: 168px;
}

.v2-stock-empty-loading {
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-text-muted);
    font-size: var(--v2-font-body);
}

.v2-stock-empty-capabilities {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--v2-border);
    border-left: 1px solid var(--v2-border);
}

.v2-stock-empty-capabilities > div {
    min-height: 128px;
    padding: 15px;
    border-right: 1px solid var(--v2-border);
    border-bottom: 1px solid var(--v2-border);
    background: var(--v2-bg-surface);
}

.v2-stock-empty-capabilities span {
    display: block;
    margin-bottom: 7px;
    color: var(--v2-accent-soft);
    font-size: var(--v2-font-micro);
    font-weight: 700;
    letter-spacing: .08em;
}

.v2-stock-empty-capabilities strong {
    display: block;
    color: var(--v2-text-primary);
    font-size: var(--v2-font-body);
}

.v2-stock-empty-capabilities p {
    margin: 6px 0 0;
    color: var(--v2-text-muted);
    font-size: var(--v2-font-label);
    line-height: 1.5;
}


.v2-stock-empty-search-result {
    width: 100%;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 13px;
    border: 0;
    border-bottom: 1px solid var(--v2-border);
    background: transparent;
    color: var(--v2-text-primary);
    text-align: left;
    cursor: pointer;
}

.v2-stock-empty-search-result:last-child {
    border-bottom: 0;
}

.v2-stock-empty-search-result:hover,
.v2-stock-empty-search-result.is-active {
    background: var(--v2-bg-hover);
}

.v2-stock-empty-search-result strong {
    font-size: var(--v2-font-body);
}

.v2-stock-empty-search-result span {
    overflow: hidden;
    color: var(--v2-text-muted);
    font-size: var(--v2-font-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-stock-empty-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid var(--v2-border);
    background: var(--v2-bg-surface);
    color: var(--v2-text-primary);
    font-size: var(--v2-font-label);
    font-weight: 650;
    text-decoration: none;
}

.v2-stock-empty-chip:hover {
    border-color: var(--v2-border-strong);
    background: var(--v2-bg-hover);
}

.v2-stock-empty-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-stock-empty-list-row {
    min-height: 50px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        18px;
    gap: 12px;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid var(--v2-border);
    color: inherit;
    text-decoration: none;
}

.v2-stock-empty-list-row:last-child {
    border-bottom: 0;
}

.v2-stock-empty-list-row:hover {
    background: var(--v2-bg-hover);
}

.v2-stock-empty-list-row:hover .v2-stock-empty-list-identity strong {
    color: var(--v2-accent-soft);
}

.v2-stock-empty-list-identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.v2-stock-empty-list-identity strong {
    color: var(--v2-text-primary);
    font-size: var(--v2-font-body);
}

.v2-stock-empty-list-identity span {
    overflow: hidden;
    color: var(--v2-text-muted);
    font-size: var(--v2-font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-stock-empty-list-market {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.v2-stock-empty-list-market strong {
    min-width: 72px;
    color: var(--v2-text-primary);
    font-size: var(--v2-font-body);
    text-align: right;
}

.v2-stock-empty-list-market span {
    min-width: 58px;
    font-size: var(--v2-font-label);
    text-align: right;
}

.v2-stock-empty-list-arrow {
    color: var(--v2-text-faint);
    font-size: 17px;
}

.v2-stock-empty-positive {
    color: var(--v2-positive);
}

.v2-stock-empty-negative {
    color: var(--v2-negative);
}


.v2-stock-empty-section-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
}

.v2-stock-empty-head-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    overflow: visible;
}

.v2-stock-empty-head-icon.is-active {
    fill: none;
    stroke: var(--v2-accent-soft);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v2-stock-empty-head-icon.is-trending {
    fill: rgba(239, 68, 68, .16);
    stroke: var(--v2-negative);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1100px) {
    .v2-stock-workspace {
        grid-template-columns: 1fr;
    }

    .v2-stock-intelligence {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .v2-stock-chart-stage {
        min-height: 460px;
    }

    .v2-stock-lower-grid {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(240px, .65fr);
    }

    .v2-stock-continuation {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .v2-stock-empty-state {
        padding: 24px 14px 36px;
    }

    .v2-stock-empty-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }

    .v2-stock-empty-hero h1 {
        font-size: 28px;
        line-height: 1.08;
    }

    .v2-stock-empty-hero h1 br {
        display: none;
    }

    .v2-stock-empty-hero > p {
        max-width: none;
        font-size: 12px;
        line-height: 1.55;
    }

    .v2-stock-empty-search {
        max-width: none;
        margin-top: 18px;
    }

    .v2-stock-empty-trending-inline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .v2-stock-empty-visual {
        width: 100%;
        max-width: 350px;
        height: 220px;
        justify-self: center;
    }

    .v2-stock-empty-lists {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .v2-stock-empty-capabilities {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-stock-empty-capabilities > div {
        min-height: 0;
    }

    #v2-chart-fullscreen {
        display: none;
    }
}

@media (max-width: 768px) {
    .v2-stock-page {
        padding: 10px;
    }

    .v2-stock-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 8px 0 12px;
    }

    .v2-stock-symbol-line {
        gap: 8px;
    }

    .v2-stock-symbol-line h1 {
        font-size: 24px;
    }

    .v2-stock-company {
        font-size: 12px;
    }

    .v2-stock-tabs {
        height: 42px;
        gap: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .v2-stock-tabs::-webkit-scrollbar {
        display: none;
    }

    .v2-stock-workspace {
        gap: 8px;
        margin-top: 8px;
    }

    .v2-stock-chart-column {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .v2-stock-chart-toolbar {
        min-width: 0;
        gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .v2-stock-chart-toolbar::-webkit-scrollbar {
        display: none;
    }

    .v2-stock-chart-stage {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 390px;
    }

    .v2-stock-intelligence,
    .v2-stock-lower-grid,
    .v2-stock-continuation {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .v2-stock-quick-read,
    .v2-stock-lower-grid,
    .v2-stock-continuation {
        margin-top: 8px;
    }

    .v2-stock-panel {
        padding: 12px;
    }
}

/* Stock header actions */
.v2-stock-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.v2-stock-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-stock-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #343b47;
    border-radius: 4px;
    background: #171c24;
    color: #c7cfda;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.v2-stock-action:hover {
    border-color: #555f70;
    background: #1c222c;
    color: #eef1f6;
}

.v2-stock-action:disabled {
    opacity: 0.55;
    cursor: default;
}

.v2-stock-action.is-active {
    border-color: #6d5bd0;
    background: #211d36;
    color: #d9d2ff;
}

.v2-stock-action-icon {
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 460px) {
    .v2-stock-chart-toolbar {
        min-height: 0;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 7px;
        padding-bottom: 7px;
        overflow-x: visible;
    }

    .v2-stock-chart-quote {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .v2-stock-toolbar-divider {
        display: none;
    }

    .v2-stock-toolbar-spacer {
        flex: 1 1 auto;
    }
}


@media (max-width: 768px) {
    .v2-stock-header-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .v2-stock-actions {
        margin-left: auto;
    }
}

/* Stock identity action alignment */
.v2-stock-symbol-line {
    flex-wrap: wrap;
}

.v2-stock-symbol-line .v2-stock-actions {
    margin-left: 6px;
    align-self: center;
}

.v2-stock-header-right {
    flex-shrink: 0;
}

/* Stock price-alert action */
.v2-stock-actions {
    position: relative;
}

.v2-stock-alert-count {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 7px;
    background: #6d5bd0;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
}

.v2-stock-alert-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    width: 292px;
    padding: 12px;
    border: 1px solid #343b47;
    border-radius: 4px;
    background: #11161d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.v2-stock-alert-panel[hidden] {
    display: none;
}

.v2-stock-alert-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.v2-stock-alert-panel-head strong {
    color: #eef1f6;
    font-size: 12px;
}

.v2-stock-alert-panel-head a {
    color: #a99cf3;
    font-size: 11px;
    text-decoration: none;
}

.v2-stock-alert-existing {
    display: grid;
    gap: 6px;
}

.v2-stock-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #252b35;
    color: #b7c0cc;
    font-size: 11px;
}

.v2-stock-alert-row button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8995a7;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.v2-stock-alert-row button:hover {
    color: #eef1f6;
}

.v2-stock-alert-empty {
    padding: 4px 0 9px;
    color: #727d8d;
    font-size: 11px;
}

.v2-stock-alert-create {
    display: grid;
    grid-template-columns: 82px 1fr 58px;
    gap: 6px;
    margin-top: 10px;
}

.v2-stock-alert-create select,
.v2-stock-alert-create input {
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #343b47;
    border-radius: 3px;
    background: #0d1218;
    color: #d8dee8;
    font: inherit;
    font-size: 11px;
}

.v2-stock-alert-create button {
    height: 30px;
    border: 1px solid #6d5bd0;
    border-radius: 3px;
    background: #211d36;
    color: #d9d2ff;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.v2-stock-alert-status {
    min-height: 14px;
    margin-top: 7px;
    color: #8995a7;
    font-size: 10px;
}

.v2-stock-alert-action-active {
    border-color: #6d5bd0;
    color: #d9d2ff;
}

/* Stock alert UX refinement */
.v2-stock-alert-icon-button {
    position: relative;
    width: 32px;
    min-width: 32px;
    padding: 0;
}

.v2-stock-alert-bell-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #e6b84a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v2-stock-alert-icon-button .v2-stock-alert-count {
    position: absolute;
    top: -5px;
    right: -5px;
}

.v2-stock-alert-panel {
    width: 324px;
    padding: 14px;
}

.v2-stock-alert-intro {
    margin: 0 0 12px;
    color: #8f9aab;
    font-size: 11px;
    line-height: 1.5;
}

.v2-stock-alert-intro strong {
    color: #cfd6e1;
    font-weight: 600;
}

.v2-stock-alert-create {
    grid-template-columns: 82px 1fr;
    gap: 7px;
    margin-top: 10px;
}

.v2-stock-alert-price-input {
    display: flex;
    align-items: center;
    height: 32px;
    border: 1px solid #343b47;
    border-radius: 3px;
    background: #0d1218;
}

.v2-stock-alert-price-input span {
    padding-left: 9px;
    color: #727d8d;
    font-size: 11px;
}

.v2-stock-alert-price-input input {
    width: 100%;
    height: 30px;
    border: 0;
    background: transparent;
    outline: 0;
}

.v2-stock-alert-create > select {
    height: 32px;
}

.v2-stock-alert-create > button {
    grid-column: 1 / -1;
    width: 100%;
    height: 32px;
    margin-top: 2px;
}

.v2-stock-alert-delivery {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #252b35;
    color: #8f9aab;
    font-size: 10px;
    line-height: 1.45;
}

.v2-stock-alert-action-active {
    background: #211d36;
}

.v2-stock-empty-capability-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.v2-stock-empty-capability-item > .v2-stock-empty-visual-icon {
    margin-top: 1px;
}

.v2-stock-empty-capability-copy {
    min-width: 0;
}

.v2-stock-empty-capability-copy > span {
    display: block;
    color: var(--v2-accent-soft);
    font-size: var(--v2-font-micro);
    font-weight: 700;
    letter-spacing: .06em;
}

.v2-stock-empty-capability-copy > strong {
    display: block;
    margin-top: 5px;
}

.v2-stock-empty-capability-copy > p {
    margin-top: 6px;
}

/* Stock symbol not found */
.v2-stock-not-found {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
}

.v2-stock-not-found-card {
    width: min(560px, 100%);
    text-align: center;
}

.v2-stock-not-found-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    border: 1px solid var(--v2-border, #26303d);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--v2-text-muted, #8b98a8);
    background: var(--v2-panel, #111820);
}

.v2-stock-not-found-kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--v2-text-muted, #8b98a8);
}

.v2-stock-not-found-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.v2-stock-not-found-card p {
    margin: 0 auto;
    max-width: 480px;
    color: var(--v2-text-muted, #8b98a8);
    line-height: 1.6;
}

.v2-stock-not-found-card p strong {
    color: var(--v2-text, #f0f3f6);
}

.v2-stock-not-found-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.v2-stock-not-found-primary,
.v2-stock-not-found-secondary {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.v2-stock-not-found-primary {
    background: #6d4aff;
    color: #fff;
}

.v2-stock-not-found-secondary {
    border: 1px solid var(--v2-border, #26303d);
    color: var(--v2-text, #f0f3f6);
    background: var(--v2-panel, #111820);
}

@media (max-width: 600px) {
    .v2-stock-not-found {
        min-height: 430px;
        padding: 48px 20px;
    }

    .v2-stock-not-found-card h1 {
        font-size: 24px;
    }
}

.v2-stock-not-found-suggestions {
    margin-top: 24px;
}

.v2-stock-not-found-suggestions-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v2-text-muted, #8b98a8);
}

.v2-stock-not-found-suggestion-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-stock-not-found-suggestion {
    min-width: 68px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--v2-border, #26303d);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-panel, #111820);
    color: var(--v2-text, #f0f3f6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.v2-stock-not-found-suggestion:hover {
    border-color: #6d4aff;
    background: rgba(109, 74, 255, .10);
    transform: translateY(-1px);
}
