.td-vip-wyckoff-overlay {
    position: absolute;
    inset: 0;
    z-index: 18;
    pointer-events: none;
    color: #0f172a;
}

.td-vip-wyckoff-overlay.is-hidden {
    display: none;
}

.td-vip-wyckoff-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.td-vip-wyckoff-range-box {
    fill: rgba(37, 99, 235, 0.045);
    stroke-width: 1.2;
    stroke-dasharray: 6 5;
}

.td-vip-wyckoff-range-line {
    stroke-width: 1.35;
    stroke-opacity: 0.78;
}

.td-vip-wyckoff-midline {
    stroke: rgba(100, 116, 139, 0.42);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.td-vip-wyckoff-invalidation {
    stroke-width: 1.2;
    stroke-dasharray: 2 4;
    stroke-opacity: 0.72;
}

.td-vip-wyckoff-labels,
.td-vip-wyckoff-scanner {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.td-vip-wyckoff-event {
    position: absolute;
    min-width: 42px;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.td-vip-wyckoff-event.is-bullish {
    border-color: rgba(14, 165, 164, 0.38);
    background: rgba(240, 253, 250, 0.94);
    color: #0f766e;
}

.td-vip-wyckoff-event.is-bearish {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(255, 241, 242, 0.94);
    color: #be123c;
}

.td-vip-wyckoff-phase {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 170px;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
    white-space: nowrap;
}

.td-vip-wyckoff-phase span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.td-vip-wyckoff-phase strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
}

.td-vip-wyckoff-phase--bullish {
    border-color: rgba(14, 165, 164, 0.36);
}

.td-vip-wyckoff-phase--bearish {
    border-color: rgba(244, 63, 94, 0.32);
}

.td-vip-wyckoff-scanner {
    inset: 12px auto auto 12px;
    width: 228px;
    height: auto;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.td-vip-wyckoff-overlay.is-low-confidence .td-vip-wyckoff-scanner {
    opacity: 0.82;
}

.td-vip-wyckoff-scan-head,
.td-vip-wyckoff-scan-main,
.td-vip-wyckoff-scan-grid {
    display: grid;
    gap: 6px;
}

.td-vip-wyckoff-scan-head {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.td-vip-wyckoff-scan-head span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.td-vip-wyckoff-scan-head strong {
    min-width: 34px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.td-vip-wyckoff-scan-head strong.is-bullish {
    background: #ccfbf1;
    color: #0f766e;
}

.td-vip-wyckoff-scan-head strong.is-bearish {
    background: #ffe4e6;
    color: #be123c;
}

.td-vip-wyckoff-scan-main {
    margin-top: 7px;
}

.td-vip-wyckoff-scan-main b {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.td-vip-wyckoff-scan-main span,
.td-vip-wyckoff-scan-main em {
    color: #475569;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.td-vip-wyckoff-resonance {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    padding: 6px 7px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 7px;
    background: rgba(248, 250, 252, 0.82);
    color: #475569;
}

.td-vip-wyckoff-resonance span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
}

.td-vip-wyckoff-resonance b {
    min-width: 28px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.td-vip-wyckoff-resonance em,
.td-vip-wyckoff-resonance small {
    overflow: hidden;
    min-width: 0;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-vip-wyckoff-resonance em {
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

.td-vip-wyckoff-resonance small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.td-vip-wyckoff-resonance--strong,
.td-vip-wyckoff-resonance--balanced {
    border-color: rgba(14, 165, 164, 0.24);
    background: rgba(240, 253, 250, 0.82);
}

.td-vip-wyckoff-resonance--strong b,
.td-vip-wyckoff-resonance--balanced b {
    background: #ccfbf1;
    color: #0f766e;
}

.td-vip-wyckoff-resonance--soft b {
    background: #dbeafe;
    color: #1d4ed8;
}

.td-vip-wyckoff-resonance--conflict {
    border-color: rgba(244, 63, 94, 0.24);
    background: rgba(255, 241, 242, 0.82);
}

.td-vip-wyckoff-resonance--conflict b {
    background: #ffe4e6;
    color: #be123c;
}

.td-vip-wyckoff-resonance--muted {
    opacity: 0.82;
}

.td-vip-wyckoff-scan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 9px;
}

.td-vip-wyckoff-scan-plan {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 9px;
    padding: 7px 8px;
    border: 1px solid rgba(14, 165, 164, 0.20);
    border-radius: 7px;
    background: rgba(240, 253, 250, 0.80);
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.td-vip-wyckoff-scan-plan b {
    min-width: 30px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
    text-align: center;
}

.td-vip-wyckoff-scan-grid span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 6px;
    background: rgba(248, 250, 252, 0.82);
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.td-vip-wyckoff-scan-grid b {
    color: #0f172a;
    font-size: 10px;
}

.td-vip-wyckoff-scan-candidates {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.td-vip-wyckoff-scan-candidates span {
    display: grid;
    grid-template-columns: 26px 34px 1fr;
    gap: 4px;
    align-items: center;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    font-size: 10px;
    font-weight: 800;
}

.td-vip-wyckoff-scan-candidates b,
.td-vip-wyckoff-scan-candidates em {
    color: #64748b;
    font-size: 10px;
    font-style: normal;
}

.td-vip-wyckoff-scan-candidates small {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .td-vip-wyckoff-scanner {
        width: 194px;
        padding: 8px;
    }

    .td-vip-wyckoff-scan-grid {
        grid-template-columns: 1fr;
    }
}
