.td-vip-wolfe-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 21;
}

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

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

.td-vip-wolfe-wave-line,
.td-vip-wolfe-boundary,
.td-vip-wolfe-confirm,
.td-vip-wolfe-epa {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.16));
}

.td-vip-wolfe-wave-line {
    stroke-width: 2;
}

.td-vip-wolfe-boundary {
    stroke-width: 1.4;
    stroke-dasharray: 5 4;
    opacity: 0.82;
}

.td-vip-wolfe-confirm {
    stroke: rgba(100, 116, 139, 0.72);
    stroke-width: 1.5;
    stroke-dasharray: 7 5;
}

.td-vip-wolfe-epa {
    stroke-width: 1.8;
    stroke-dasharray: 9 4;
}

.td-vip-wolfe-node {
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.18));
}

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

.td-vip-wolfe-label,
.td-vip-wolfe-target-label {
    position: absolute;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    white-space: nowrap;
}

.td-vip-wolfe-label.is-bullish {
    border-color: rgba(15, 159, 143, 0.28);
    color: #04756d;
}

.td-vip-wolfe-label.is-bearish {
    border-color: rgba(225, 29, 72, 0.26);
    color: #be123c;
}

.td-vip-wolfe-target-label {
    border-color: rgba(37, 99, 235, 0.34);
    color: #1d4ed8;
}

.td-vip-wolfe-scanner {
    inset: 58px auto auto 40px;
    width: min(306px, calc(100% - 90px));
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(14px);
    color: #0f172a;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.td-vip-wyckoff-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-scanner,
.td-vip-ross-hook-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-scanner {
    inset: 248px auto auto 40px;
}

.td-vip-wolfe-scanner:hover,
.td-vip-wolfe-scanner:focus-visible {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.17);
    outline: none;
    transform: translateY(-1px);
}

.td-vip-wolfe-detail {
    position: absolute;
    inset: 58px auto auto 364px;
    width: min(360px, calc(100% - 414px));
    max-height: min(520px, calc(100% - 86px));
    overflow: auto;
    padding: 10px;
    display: grid;
    gap: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    color: #0f172a;
    pointer-events: auto;
}

.td-vip-wyckoff-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-detail,
.td-vip-ross-hook-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-detail {
    inset: 248px auto auto 364px;
}

.td-vip-wolfe-detail.is-hidden {
    display: none;
}

.td-vip-wolfe-scan-head,
.td-vip-wolfe-scan-main,
.td-vip-wolfe-stage-row {
    display: grid;
}

.td-vip-wolfe-scan-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.td-vip-wolfe-scan-head span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.td-vip-wolfe-scan-head strong {
    width: 34px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

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

.td-vip-wolfe-scan-head strong.is-balanced {
    background: #dbeafe;
    color: #1d4ed8;
}

.td-vip-wolfe-scan-main {
    gap: 3px;
}

.td-vip-wolfe-scan-main b {
    font-size: 15px;
    color: #0f172a;
}

.td-vip-wolfe-scan-main b.is-bullish {
    color: #047857;
}

.td-vip-wolfe-scan-main b.is-bearish {
    color: #be123c;
}

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

.td-vip-wolfe-stage-row {
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 5px;
    padding: 7px;
    border-radius: 7px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.td-vip-wolfe-stage-row span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.td-vip-wolfe-stage-row b {
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.td-vip-wolfe-more {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.td-vip-wolfe-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.td-vip-wolfe-detail-head strong {
    font-size: 13px;
    color: #0f172a;
}

.td-vip-wolfe-detail-head button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.78);
    color: #334155;
    cursor: pointer;
}

.td-vip-wolfe-detail-summary,
.td-vip-wolfe-detail-points {
    display: grid;
    gap: 7px;
}

.td-vip-wolfe-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-vip-wolfe-detail-summary span,
.td-vip-wolfe-detail-points span {
    min-width: 0;
    padding: 7px;
    border-radius: 7px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 11px;
    line-height: 1.35;
}

.td-vip-wolfe-detail-summary b,
.td-vip-wolfe-detail-points b {
    display: block;
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
}

.td-vip-wolfe-detail-points {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.td-vip-wolfe-detail section {
    display: grid;
    gap: 7px;
}

.td-vip-wolfe-detail h4 {
    margin: 0;
    color: #334155;
    font-size: 12px;
}

.td-vip-wolfe-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    padding: 7px;
    border-radius: 7px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.td-vip-wolfe-detail-row span,
.td-vip-wolfe-detail-row small {
    min-width: 0;
    color: #64748b;
    font-size: 11px;
}

.td-vip-wolfe-detail-row b,
.td-vip-wolfe-detail-row em {
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.td-vip-wolfe-detail-row small {
    grid-column: 1 / -1;
}

.td-vip-wolfe-empty {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

body.td-vip-body.is-night-mode .td-vip-wolfe-scanner,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail,
body.td-vip-body.is-night-mode .td-vip-wolfe-label,
body.td-vip-body.is-night-mode .td-vip-wolfe-target-label {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e5e7eb;
}

body.td-vip-body.is-night-mode .td-vip-wolfe-scan-main span,
body.td-vip-body.is-night-mode .td-vip-wolfe-scan-main em,
body.td-vip-body.is-night-mode .td-vip-wolfe-scan-head span,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-row span,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-row small,
body.td-vip-body.is-night-mode .td-vip-wolfe-empty {
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-wolfe-scan-main b,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-head strong,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-summary b,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-points b,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail h4 {
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-wolfe-stage-row,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-summary span,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-points span,
body.td-vip-body.is-night-mode .td-vip-wolfe-detail-row {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(71, 85, 105, 0.64);
}

@media (max-width: 860px) {
    .td-vip-wolfe-scanner,
    .td-vip-wyckoff-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-scanner,
    .td-vip-ross-hook-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-scanner {
        inset: auto 12px 86px 12px;
        width: auto;
    }

    .td-vip-wolfe-detail,
    .td-vip-wyckoff-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-detail,
    .td-vip-ross-hook-overlay:not(.is-hidden) ~ .td-vip-wolfe-overlay:not(.is-hidden) .td-vip-wolfe-detail {
        inset: auto 12px 210px 12px;
        width: auto;
        max-height: min(360px, calc(100% - 240px));
    }
}
