html, body.td-vip-body {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.td-vip-body {
    --td-vip-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #ffffff !important;
    color: #131722;
    font-family: var(--td-vip-font-ui);
}

body.td-vip-body.admin-bar,
html[style],
html[class*="admin-bar"],
body.td-vip-body[style] {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

body.td-vip-body .wp-site-blocks,
body.td-vip-body #page,
body.td-vip-body #content,
body.td-vip-body .site,
body.td-vip-body .site-content,
body.td-vip-body .content-area,
body.td-vip-body .entry-content,
body.td-vip-body main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
}

body.td-vip-body .wp-site-blocks > *:first-child,
body.td-vip-body #page > *:first-child,
body.td-vip-body .site > *:first-child,
body.td-vip-body main > *:first-child {
    margin-top: 0 !important;
}

/* ── 强制隐藏 WordPress 主题注入的 header / nav / admin bar ── */
body.td-vip-body #wpadminbar,
body.td-vip-body .site-header,
body.td-vip-body .wp-site-blocks > header,
body.td-vip-body .wp-site-blocks > .wp-block-template-part:first-child,
body.td-vip-body #masthead,
body.td-vip-body .main-navigation,
body.td-vip-body .primary-navigation,
body.td-vip-body .site-branding,
body.td-vip-body .navigation-top,
body.td-vip-body .header-inner,
body.td-vip-body #site-header,
body.td-vip-body .ast-above-header,
body.td-vip-body .ast-main-header-wrap,
body.td-vip-body .elementor-location-header,
body.td-vip-body .site-banner {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* 确保 html/body 无任何上方偏移 */
html.admin-bar,
html[style*="margin-top"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.td-vip-body .wp-site-blocks > footer,
body.td-vip-body .site-footer,
body.td-vip-body #colophon {
    display: none !important;
}

.td-vip-page,
.td-vip-page * {
    box-sizing: border-box;
}

.td-vip-page {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #ffffff;
}

.td-vip-terminal {
    display: grid;
    grid-template-rows: 46px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    border: 0;
    overflow: visible;
    background: #ffffff;
}

@supports (height: 100dvh) {
    .td-vip-page {
        height: 100dvh;
        min-height: 100dvh;
    }
}

.td-vip-topbar {
    position: relative;
    /* 高于图表区内部 z-index，且下拉层不能被子元素 overflow 裁切 */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid #e5ebf2;
    background: #ffffff;
    flex-wrap: nowrap;
    overflow: visible;
}

.td-vip-topbar-left,
.td-vip-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.td-vip-topbar-left {
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

/* 仅周期条横向滚动；避免整行 left 设 overflow-x 导致子元素 overflow-y 被算成 auto，裁切下拉层 */
.td-vip-timeframes-scroll {
    min-width: 0;
    max-width: min(560px, 46vw);
    flex-shrink: 1;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.td-vip-timeframes-scroll::-webkit-scrollbar {
    height: 5px;
}

.td-vip-timeframes-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.td-vip-topbar-right {
    margin-left: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.td-vip-topbar .td-vip-primary-btn,
.td-vip-topbar .td-vip-secondary-btn,
.td-vip-topbar .td-vip-menu-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.td-vip-topbar .td-vip-top-meta {
    flex-shrink: 0;
}

.td-vip-topbar .td-vip-top-tool {
    flex-shrink: 0;
}

.td-vip-ai-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding-left: 8px;
    padding-right: 10px;
    min-width: 5.75rem;
    justify-content: center;
    border: 0;
    color: #4338ca;
    background: transparent;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.td-vip-ai-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 11px;
    line-height: 1;
}

.td-vip-ai-toolbar-label {
    display: inline-block;
    line-height: 1;
}

.td-vip-ai-toolbar-btn:hover {
    background: rgba(67, 56, 202, 0.05);
    color: #312e81;
    border: 0;
}

.td-vip-topbar-refresh-cluster {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 8px;
    margin-left: 2px;
}

.td-vip-topbar-refresh-cluster > * {
    flex-shrink: 0;
}

/* VIP 更多扩展：收进顶部次级入口，避免和右侧正式工具台冲突 */
.td-vip-ext-more-wrap {
    position: relative;
    flex-shrink: 0;
}

.td-vip-ext-more-wrap.is-open .td-vip-ext-more-toggle {
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 20px -12px rgba(14, 165, 233, 0.35);
}

.td-vip-ext-more-toggle {
    padding: 0 12px;
}

.td-vip-smc-toolbar-btn {
    padding: 0 12px;
}

/* 挂到 body + fixed，避免顶栏/主题 overflow 裁切；具体 top/right 由 JS 按按钮对齐 */
.td-vip-ext-more-popover {
    position: fixed;
    z-index: 10050;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 220px;
    max-width: min(340px, calc(100vw - 24px));
    max-height: min(72vh, 440px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    margin: 0;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 18px 48px -20px rgba(15, 23, 42, 0.28),
        0 4px 16px -8px rgba(15, 23, 42, 0.12);
}

.td-vip-ext-more-popover.is-hidden {
    display: none !important;
}

.td-vip-ext-more-item {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.td-vip-ext-more-item:hover,
.td-vip-ext-more-item:focus-visible {
    background: #e0f2fe;
    border-color: #7dd3fc;
    outline: none;
    transform: translateY(-1px);
}

.td-vip-attribution-link {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.td-vip-attribution-link:hover,
.td-vip-attribution-link:focus-visible {
    color: #475569;
    outline: none;
}

.td-vip-attribution-link--bottom {
    display: inline-flex;
    align-self: flex-end;
    margin-top: auto;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.72;
}

.td-vip-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #131722;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.td-vip-back-link:hover,
.td-vip-back-link:focus-visible {
    background: #f0f3fa;
    color: #2962ff;
    outline: none;
}

.td-vip-back-link--tv {
    gap: 8px;
    min-width: 0;
    padding: 0 8px 0 2px;
    border-radius: 999px;
}

.td-vip-back-link-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f3f6fa);
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.92);
    flex: 0 0 auto;
}

.td-vip-back-link-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-vip-back-link-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.td-vip-back-link-text {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}


.td-vip-market-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #131722;
    font-size: 16px;
    font-weight: 600;
}

.td-vip-market-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}

.td-vip-timeframes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
}

.td-vip-timeframe-btn,
.td-vip-primary-btn,
.td-vip-secondary-btn,
.td-vip-rail-btn,
.td-vip-indicator-toggle {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.td-vip-timeframe-btn {
    min-width: 36px;
    padding: 6px 8px;
    border-radius: 4px;
    background: transparent;
    color: #131722;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.td-vip-timeframe-btn:hover,
.td-vip-timeframe-btn:focus-visible {
    background: #f0f3fa;
    color: #2962ff;
    outline: none;
}

.td-vip-timeframe-btn.is-active {
    background: transparent;
    color: #2962ff;
    font-weight: 700;
}

.td-vip-top-tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.td-vip-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #131722;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.td-vip-menu-btn:hover,
.td-vip-menu-btn:focus-visible,
.td-vip-top-tool.is-open .td-vip-menu-btn {
    background: #f0f3fa;
    color: #131722;
    border: 0;
    box-shadow: none;
    outline: none;
}

.td-vip-refresh-frequency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #131722;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    white-space: nowrap;
}

.td-vip-refresh-frequency span {
    color: #64748b;
    letter-spacing: 0.04em;
}

.td-vip-refresh-frequency select {
    appearance: none;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

.td-vip-refresh-frequency select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.td-vip-menu-btn-label {
    white-space: nowrap;
}

.td-vip-menu-btn-caret {
    display: none !important;
}

.td-vip-indicator-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 30;
    width: min(920px, calc(100vw - 36px));
    max-height: none;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(186, 230, 253, 0.26), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(238, 245, 251, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 28px 54px -34px rgba(15, 23, 42, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.985);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.td-vip-top-tool.is-open .td-vip-indicator-popover:not(.td-vip-indicator-popover--floating) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 挂到 body 后仍保持展开态（父级选择器失效） */
.td-vip-indicator-popover.td-vip-indicator-popover--floating:not(.is-hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.td-vip-indicator-popover.is-hidden {
    pointer-events: none;
}

.td-vip-indicator-popover-head {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.td-vip-indicator-category-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.td-vip-indicator-category-tab {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
    color: #475569;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.td-vip-indicator-category-tab:hover,
.td-vip-indicator-category-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.34);
    outline: none;
}

.td-vip-indicator-category-tab.is-active {
    border-color: rgba(8, 47, 73, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(12, 18, 34, 0.98));
    color: #f8fafc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 26px -20px rgba(15, 23, 42, 0.36);
}

.td-vip-indicator-popover-copy {
    display: none;
}

.td-vip-indicator-popover-copy strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.td-vip-indicator-popover-note {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 9px;
    border: 1px solid rgba(186, 230, 253, 0.78);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(224, 242, 254, 0.96));
    color: #0f766e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.td-vip-appearance-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 32;
    width: min(340px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(186, 230, 253, 0.24), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(238, 245, 251, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 28px 54px -34px rgba(15, 23, 42, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.985);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.td-vip-top-tool.is-open .td-vip-appearance-popover:not(.td-vip-appearance-popover--floating) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.td-vip-appearance-popover.td-vip-appearance-popover--floating:not(.is-hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.td-vip-appearance-popover.is-hidden {
    pointer-events: none;
}

.td-vip-settings-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 34;
    width: min(420px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(186, 230, 253, 0.24), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(238, 245, 251, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 28px 54px -34px rgba(15, 23, 42, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.985);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.td-vip-top-tool.is-open .td-vip-settings-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.td-vip-settings-popover.is-hidden {
    pointer-events: none;
}

.td-vip-settings-stack {
    display: grid;
    gap: 12px;
}

.td-vip-settings-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.td-vip-settings-section--appearance {
    gap: 14px;
}

.td-vip-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.td-vip-settings-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.td-vip-settings-copy--stack {
    gap: 6px;
}

.td-vip-settings-copy strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.td-vip-settings-copy span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.td-vip-settings-action {
    white-space: nowrap;
}

.td-vip-settings-theme-btn {
    min-width: 92px;
}

.td-vip-settings-check {
    grid-column: 1 / -1;
}

.td-vip-appearance-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.td-vip-appearance-head strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.td-vip-appearance-head span {
    color: #64748b;
    font-size: 12px;
}

.td-vip-appearance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.td-vip-appearance-field {
    display: grid;
    gap: 6px;
}

.td-vip-appearance-field span,
.td-vip-appearance-check span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.td-vip-appearance-color {
    width: 100%;
    min-height: 38px;
    padding: 4px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
}

.td-vip-appearance-range-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.td-vip-appearance-range {
    width: 100%;
    accent-color: #0ea5e9;
}

.td-vip-appearance-range-value {
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.td-vip-appearance-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.td-vip-appearance-check input {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.td-vip-appearance-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.td-vip-ma-note {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: 14px;
    background: rgba(240, 249, 255, 0.9);
    color: #0f766e;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-upgrade-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.td-vip-upgrade-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.td-vip-upgrade-modal.is-hidden {
    pointer-events: none;
}

.td-vip-upgrade-dialog {
    position: relative;
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(186, 230, 253, 0.24), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(238, 245, 251, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 38px 80px -40px rgba(15, 23, 42, 0.56);
}

.td-vip-upgrade-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.td-vip-upgrade-close:hover,
.td-vip-upgrade-close:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.32);
    color: #0f172a;
    outline: none;
}

.td-vip-upgrade-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(45, 212, 191, 0.26);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(204, 251, 241, 0.9));
    color: #115e59;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.td-vip-upgrade-title {
    margin: 16px 0 10px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.td-vip-upgrade-summary {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.td-vip-upgrade-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 20px 32px -28px rgba(15, 23, 42, 0.24);
}

.td-vip-upgrade-card-label {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.td-vip-upgrade-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.td-vip-upgrade-list li {
    position: relative;
    padding-left: 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.td-vip-upgrade-list li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.1),
        0 0 12px rgba(16, 185, 129, 0.22);
}

.td-vip-upgrade-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.td-vip-upgrade-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.td-vip-top-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.td-vip-connection-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.td-vip-connection-badge::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.td-vip-connection-badge.is-ok {
    color: #22c55e;
}

.td-vip-connection-badge.is-warn {
    color: #94a3b8;
}

.td-vip-connection-badge.is-error {
    color: #94a3b8;
}

.td-vip-primary-btn,
.td-vip-secondary-btn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.td-vip-primary-btn {
    background: #2962ff;
    color: #ffffff;
}

.td-vip-secondary-btn {
    background: transparent;
    color: #131722;
}

.td-vip-primary-btn:hover,
.td-vip-primary-btn:focus-visible {
    background: #1e53e5;
    outline: none;
}

.td-vip-secondary-btn:hover,
.td-vip-secondary-btn:focus-visible {
    background: #f0f3fa;
    outline: none;
}

.td-vip-display-toggle.is-active {
    background: #e3f2fd;
    color: #2962ff;
}

.td-vip-display-toggle--theme {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.td-vip-display-toggle--theme::before {
    content: "☀";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.td-vip-display-toggle--theme.is-night::before {
    content: "☾";
    background: rgba(15, 23, 42, 0.12);
    color: #0f172a;
    transform: translateY(-1px);
}

.td-vip-page {
    --td-vip-right-rail-width: 336px;
}

.td-vip-terminal-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 8px var(--td-vip-right-rail-width, 336px) 44px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.td-vip-left-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border-right: 1px solid #e5ebf2;
    background: #ffffff;
    overflow: visible;
    z-index: 8;
}

.td-vip-left-rail-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.td-vip-rail-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 36px;
    min-height: 42px;
    padding: 5px 0 4px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #131722;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.td-vip-rail-btn.is-active,
.td-vip-rail-btn:hover,
.td-vip-rail-btn:focus-visible {
    background: #f5f8ff;
    color: #2962ff;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.td-vip-rail-btn[hidden] {
    display: none;
}

.td-vip-rail-category-btn {
    overflow: hidden;
    letter-spacing: 0.08em;
}

.td-vip-rail-category-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.td-vip-rail-category-btn:hover::before,
.td-vip-rail-category-btn:focus-visible::before,
.td-vip-rail-category-btn.is-active::before {
    opacity: 1;
}

.td-vip-rail-category-btn.is-open {
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.td-vip-rail-category-btn::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.12s ease;
}

.td-vip-rail-category-btn.is-active::after,
.td-vip-rail-category-btn.is-open::after {
    opacity: 1;
}

.td-vip-rail-btn-icon {
    position: relative;
    z-index: 1;
    line-height: 1;
}

.td-vip-rail-btn-meta {
    position: relative;
    z-index: 1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.td-vip-rail-category-btn--danger {
    color: #b91c1c;
}

.td-vip-rail-category-btn--danger.is-active,
.td-vip-rail-category-btn--danger:hover,
.td-vip-rail-category-btn--danger:focus-visible {
    background: #fff1f2;
    color: #991b1b;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.15);
}

.td-vip-left-rail-flyout {
    position: absolute;
    top: 10px;
    left: calc(100% + 10px);
    z-index: 18;
    width: 272px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 26px 42px -26px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
}

.td-vip-left-rail-flyout.is-fib {
    width: 318px;
}

.td-vip-left-rail-flyout.is-hidden {
    display: none;
}

.td-vip-left-rail-flyout-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.td-vip-left-rail-flyout-head strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.td-vip-left-rail-flyout-head span {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.td-vip-left-rail-flyout-tools {
    display: grid;
    gap: 8px;
}

.td-vip-center {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.td-vip-replay-toolbar {
    grid-row: 1;
}

.td-vip-chart-shell {
    grid-row: 2;
}

.td-vip-bottom-bar {
    grid-row: 3;
}

.td-vip-action-bar {
    grid-row: 3;
}

.td-vip-rightbar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-left: 1px solid #e0e3eb;
    overflow: hidden;
    background: #ffffff;
}

.td-vip-rightbar-resize {
    position: relative;
    width: 6px;
    min-width: 6px;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(241, 245, 249, 0.95) 18%, rgba(226, 232, 240, 0.98) 50%, rgba(241, 245, 249, 0.95) 82%, rgba(255, 255, 255, 0) 100%);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.88), inset -1px 0 0 rgba(203, 213, 225, 0.34);
}

.td-vip-rightbar-resize::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    background: rgba(148, 163, 184, 0.34);
    opacity: 0.5;
    transform: translateX(-50%);
    transition: opacity 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.td-vip-rightbar-resize::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(148, 163, 184, 0.16), rgba(255, 255, 255, 0.48));
    box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.72);
    opacity: 0.72;
    transform: translate(-50%, -50%);
    transition: opacity 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.td-vip-rightbar-resize:hover::before,
.td-vip-rightbar-resize:focus-visible::before,
.td-vip-page.td-vip-rightbar-resizing .td-vip-rightbar-resize::before {
    opacity: 0.88;
    background: rgba(100, 116, 139, 0.5);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.12);
}

.td-vip-rightbar-resize:hover::after,
.td-vip-rightbar-resize:focus-visible::after,
.td-vip-page.td-vip-rightbar-resizing .td-vip-rightbar-resize::after {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.05);
}

.td-vip-rightbar-resize:focus-visible {
    outline: none;
}

.td-vip-right-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-left: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
}

.td-vip-right-tool-btn {
    appearance: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    min-height: 52px;
    padding: 6px 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7c8ba0;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.td-vip-right-tool-btn:hover,
.td-vip-right-tool-btn:focus-visible {
    background: #f8fafc;
    color: #111827;
    outline: none;
}

.td-vip-right-tool-btn.is-active {
    background: #f3f4f6;
    color: #111827;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.td-vip-right-tool-icon {
    font-size: 17px;
    line-height: 1;
}

.td-vip-right-tool-icon--ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 13px;
    color: #2563eb;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(219, 234, 254, 0.98) 52%, rgba(191, 219, 254, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 6px 14px -12px rgba(37, 99, 235, 0.68);
}

.td-vip-right-tool-btn--ai:hover .td-vip-right-tool-icon--ai,
.td-vip-right-tool-btn--ai:focus-visible .td-vip-right-tool-icon--ai,
.td-vip-right-tool-btn--ai.is-active .td-vip-right-tool-icon--ai {
    color: #1d4ed8;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 1) 0%, rgba(191, 219, 254, 0.98) 54%, rgba(147, 197, 253, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 18px -12px rgba(37, 99, 235, 0.78);
}

.td-vip-right-tool-label {
    font-size: 11px;
    line-height: 1.08;
    letter-spacing: 0.04em;
    color: inherit;
    white-space: nowrap;
}

.td-vip-side-panel--watchlist {
    flex: 1 1 auto;
}

.td-vip-chart-bar,
.td-vip-bottom-bar,
.td-vip-side-panel {
    background: #ffffff;
}

.td-vip-chart-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 6px;
}

.td-vip-chart-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.td-vip-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.td-vip-panel-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
}

.td-vip-chart-heading h1 {
    margin: 0;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.td-vip-chart-inline-status {
    justify-self: end;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.td-vip-ohlc {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
}

.td-vip-ohlc span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #64748b;
}

.td-vip-ohlc strong {
    color: #0f172a;
    font-family: var(--td-vip-font-ui);
    font-weight: 600;
}

.td-vip-ohlc.is-up span,
.td-vip-ohlc.is-up strong {
    color: #089981;
}

.td-vip-ohlc.is-down span,
.td-vip-ohlc.is-down strong {
    color: #f23645;
}

.td-vip-ohlc.is-flat span,
.td-vip-ohlc.is-flat strong {
    color: #64748b;
}

.td-vip-chart-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    background: #ffffff;
}

.td-vip-chart-shell::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(148, 163, 184, 0.22);
    border-top-color: #0f172a;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    animation: td-vip-spin 0.8s linear infinite;
    transition: opacity 0.18s ease;
}

.td-vip-chart-shell.is-soft-loading::after {
    opacity: 1;
}

.td-vip-chart-shell.is-replay-pick-start {
    border-color: rgba(45, 212, 191, 0.52);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.14);
}

.td-vip-chart-shell.is-replay-pick-start::before {
    content: "点击K线设为复盘起点";
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
}

.td-vip-chart-shell > .td-vip-chart-bar {
    position: relative;
    z-index: 4;
    border: 0;
    border-radius: 16px 16px 0 0;
    padding: 10px 14px 6px;
    background: transparent;
}

.td-vip-page.is-replay-pick-start .td-vip-replay-toolbar {
    border-color: rgba(45, 212, 191, 0.34);
    box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.2);
}

.td-vip-chart-host {
    position: relative;
    z-index: 2;
    grid-row: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.td-vip-chart-host > div,
.td-vip-chart-host > div > div,
.td-vip-chart-host table,
.td-vip-chart-host tr,
.td-vip-chart-host td,
.td-vip-chart-host th,
.td-vip-chart-host canvas {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.td-vip-chart-host table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.td-vip-snap-guide {
    stroke: rgba(37, 99, 235, 0.4);
    stroke-width: 1.2;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.16));
}

.td-vip-snap-guide--horizontal {
    stroke: rgba(14, 165, 233, 0.45);
}

.td-vip-snap-guide-node {
    fill: #ffffff;
    stroke: rgba(37, 99, 235, 0.92);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.28));
}

.td-vip-snap-guide-label-bg {
    fill: rgba(15, 23, 42, 0.9);
    stroke: rgba(148, 163, 184, 0.18);
    stroke-width: 1;
}

.td-vip-snap-guide-label-text {
    fill: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--td-vip-font-ui);
    dominant-baseline: middle;
    text-anchor: start;
    pointer-events: none;
}

.td-vip-snap-guide--flash {
    stroke: rgba(45, 212, 191, 0.86);
    stroke-width: 1.5;
    stroke-dasharray: 0;
    filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.28));
    animation: td-vip-replay-start-flash-line 1.3s ease-out forwards;
}

.td-vip-snap-guide-flash-bg {
    fill: rgba(15, 23, 42, 0.92);
    stroke: rgba(45, 212, 191, 0.34);
    stroke-width: 1;
    filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.2));
    animation: td-vip-replay-start-flash-chip 1.3s ease-out forwards;
}

.td-vip-snap-guide-flash-text {
    fill: #ccfbf1;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--td-vip-font-ui);
    dominant-baseline: middle;
    text-anchor: start;
    letter-spacing: 0.08em;
    pointer-events: none;
    animation: td-vip-replay-start-flash-chip 1.3s ease-out forwards;
}

.td-vip-snap-guide-flash-subtext {
    fill: rgba(15, 23, 42, 0.78);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--td-vip-font-ui);
    dominant-baseline: middle;
    text-anchor: middle;
    pointer-events: none;
    animation: td-vip-replay-start-flash-chip 1.3s ease-out forwards;
}

@keyframes td-vip-replay-start-flash-line {
    0% {
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes td-vip-replay-start-flash-chip {
    0% {
        opacity: 0;
        transform: translateY(-4px) scale(0.96);
    }
    12% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-2px) scale(1);
    }
}

.td-vip-text-editor {
    position: absolute;
    z-index: 7;
    width: 220px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 24px 42px -28px rgba(15, 23, 42, 0.38);
}

.td-vip-text-editor.is-hidden {
    display: none;
}

.td-vip-text-editor-head {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.td-vip-text-editor-label {
    display: block;
    margin-top: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.td-vip-text-editor-input {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font: inherit;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.td-vip-text-editor-input:focus {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.td-vip-text-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.td-vip-text-editor-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.td-vip-text-editor-btn--ghost {
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
}

.td-vip-text-editor-btn--solid {
    border-color: rgba(8, 47, 73, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(12, 18, 34, 0.98));
    color: #f8fafc;
}

.td-vip-watermark {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    transform: translate(-50%, -55%);
    text-align: center;
    pointer-events: none;
    opacity: 0.12;
}

.td-vip-watermark span {
    display: block;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: #0f172a;
}

.td-vip-watermark strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.td-vip-chart-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(248, 250, 252, 0.84);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.td-vip-chart-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes td-vip-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.td-vip-chart-overlay-card {
    width: min(360px, 100%);
    padding: 16px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 46px -30px rgba(15, 23, 42, 0.28);
}

.td-vip-overlay-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.td-vip-chart-overlay-card strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.td-vip-chart-overlay-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.td-vip-bottom-bar {
    display: none;
}

.td-vip-bottom-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #f8fafc;
}

.td-vip-bottom-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.td-vip-bottom-item strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.td-vip-bottom-item small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.td-vip-bottom-item--proxy {
    min-height: 100%;
}

.td-vip-action-bar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    padding: 2px 0 0;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.96);
    position: relative;
    overflow: visible;
}

.td-vip-action-bar::before {
    display: none;
}

.td-vip-action-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 28px;
    padding: 0 14px 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.16s ease, color 0.16s ease;
    box-shadow: none;
    position: relative;
}

.td-vip-action-card:hover,
.td-vip-action-card:focus-visible {
    opacity: 1;
    outline: none;
}

.td-vip-action-card:disabled,
.td-vip-action-card[aria-disabled="true"] {
    cursor: default;
    opacity: 0.72;
}

.td-vip-action-card:disabled:hover,
.td-vip-action-card[aria-disabled="true"]:hover,
.td-vip-action-card:disabled:focus-visible,
.td-vip-action-card[aria-disabled="true"]:focus-visible {
    box-shadow: none;
    opacity: 0.48;
}

.td-vip-action-card + .td-vip-action-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    background: rgba(203, 213, 225, 0.96);
    transform: translateY(-50%);
}

.td-vip-action-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.td-vip-action-card strong {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.td-vip-action-card small {
    display: none;
}

.td-vip-action-card:hover strong,
.td-vip-action-card:focus-visible strong {
    color: #0f172a;
}

.td-vip-page.is-replay-mode #tdVipRefreshBtn,
.td-vip-page.is-replay-mode #tdVipAutoRefresh {
    display: none;
}

.td-vip-page.is-replay-mode #tdVipReplayEntry {
    display: none;
}

.td-vip-page.is-replay-mode .td-vip-action-bar {
    justify-content: flex-start;
}

.td-vip-page.is-replay-mode .td-vip-replay-toolbar {
    margin-bottom: -14px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(203, 213, 225, 0.48);
    box-shadow: 0 14px 24px -28px rgba(15, 23, 42, 0.14);
}

.td-vip-page.is-replay-mode .td-vip-chart-shell {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-color: transparent;
}

.td-vip-page.is-replay-mode #tdVipVolumeToggle,
.td-vip-page.is-replay-mode #tdVipThemeToggle,
.td-vip-page.is-replay-mode #tdVipAppearanceDock,
.td-vip-page.is-replay-mode #tdVipConnectionBadge,
.td-vip-page.is-replay-mode #tdVipLatestTime {
    opacity: 0.56;
}

.td-vip-page.is-replay-mode #tdVipVolumeToggle,
.td-vip-page.is-replay-mode #tdVipThemeToggle,
.td-vip-page.is-replay-mode #tdVipAppearanceDock {
    transform: scale(0.98);
}

.td-vip-action-foot {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0;
}

.td-vip-action-foot:empty {
    display: none;
}

.td-vip-action-foot-text {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.td-vip-action-foot.is-trend-active .td-vip-action-foot-text {
    display: none;
}

.td-vip-action-foot.is-trend-active {
    padding: 0;
}

.td-vip-replay-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px 10px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
    position: relative;
    z-index: 6;
}

.td-vip-replay-toolbar.is-hidden {
    display: none;
}

.td-vip-replay-toolbar.is-ended {
    border-color: rgba(245, 158, 11, 0.34);
}

.td-vip-replay-toolbar-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.td-vip-replay-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.td-vip-replay-toolbar.is-ended .td-vip-replay-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #9a3412;
}

.td-vip-replay-time {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.td-vip-replay-progress {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.td-vip-replay-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.td-vip-replay-toolbar-actions::-webkit-scrollbar {
    display: none;
}

.td-vip-replay-btn {
    min-width: 74px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.td-vip-replay-btn--play {
    min-width: 96px;
}

.td-vip-replay-btn--capture {
    min-width: 96px;
}

.td-vip-replay-btn--export {
    min-width: 88px;
}

.td-vip-replay-btn--exit {
    min-width: 88px;
}

#tdVipReplayPrev,
#tdVipReplayNext,
#tdVipReplayReset {
    min-width: 70px;
    padding: 0 10px;
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.96));
    color: #0f172a;
    border: 1px solid rgba(191, 219, 254, 0.96);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 6px 14px -14px rgba(15, 23, 42, 0.38);
}

#tdVipReplayPrev:hover,
#tdVipReplayNext:hover,
#tdVipReplayReset:hover,
#tdVipReplayPrev:focus-visible,
#tdVipReplayNext:focus-visible,
#tdVipReplayReset:focus-visible {
    border-color: rgba(56, 189, 248, 0.42);
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.96));
    color: #0f172a;
}

.td-vip-replay-speed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.td-vip-replay-speed select {
    border: none;
    background: transparent;
    color: #0f172a;
    font: inherit;
    outline: none;
    min-width: 48px;
}

.td-vip-replay-setup {
    gap: 16px;
}

.td-vip-replay-setup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.td-vip-replay-quick-actions {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
}

.td-vip-replay-quick-btn {
    flex: 1 1 0;
    min-height: 40px;
}

.td-vip-replay-field {
    min-width: 0;
}

.td-vip-replay-field input,
.td-vip-replay-field select {
    width: 100%;
}

#tdVipReplayModal .td-vip-tool-dialog {
    width: min(680px, 100%);
    padding: 30px 30px 28px;
}

#tdVipReplayModal .td-vip-tool-summary {
    max-width: 560px;
}

#tdVipReplayModal .td-vip-replay-setup {
    gap: 18px;
    padding: 20px;
}

#tdVipReplayModal .td-vip-replay-setup-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
    gap: 14px;
    align-items: end;
}

#tdVipReplayModal .td-vip-replay-field:first-child {
    grid-column: 1 / span 2;
}

#tdVipReplayModal .td-vip-replay-field span {
    font-size: 12px;
    letter-spacing: 0.04em;
}

#tdVipReplayModal .td-vip-replay-field input,
#tdVipReplayModal .td-vip-replay-field select {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

#tdVipReplayModal .td-vip-replay-field input[type="datetime-local"] {
    padding-right: 42px;
}

#tdVipReplayModal .td-vip-replay-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 0.58;
    cursor: pointer;
}

#tdVipReplayModal .td-vip-replay-quick-actions {
    gap: 12px;
}

#tdVipReplayModal .td-vip-replay-quick-btn {
    min-height: 44px;
    border-radius: 14px;
}

.td-vip-screen-meta {
    display: none;
}

.td-vip-tool-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(10px);
}

.td-vip-tool-modal.is-hidden {
    display: none;
}

.td-vip-tool-dialog {
    position: relative;
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 252, 0.98));
    box-shadow: 0 32px 80px -40px rgba(15, 23, 42, 0.56);
}

.td-vip-tool-dialog--plan {
    width: min(860px, 100%);
}

.td-vip-tool-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #475569;
    font-size: 0;
    font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.td-vip-tool-close::before {
    content: "\00D7";
    display: block;
    color: currentColor;
    font-size: 22px;
    line-height: 1;
}

.td-vip-tool-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.96);
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.td-vip-tool-title {
    margin: 16px 0 10px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.td-vip-tool-summary {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.td-vip-tool-card {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
}

.td-vip-tool-card-label,
.td-vip-plan-meta {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.td-vip-tool-card strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.td-vip-tool-card small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.td-vip-tool-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.td-vip-plan-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.td-vip-plan-field {
    display: grid;
    gap: 8px;
}

.td-vip-plan-field span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.td-vip-plan-field select,
.td-vip-plan-field input,
.td-vip-plan-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font: inherit;
    resize: vertical;
}

.td-vip-plan-field textarea {
    min-height: 80px;
}

.td-vip-plan-saved {
    margin-right: auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.td-vip-plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
    gap: 14px;
    margin-top: 14px;
    min-height: 0;
}

.td-vip-plan-form-wrap,
.td-vip-plan-list-wrap {
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
}

.td-vip-plan-form-wrap {
    display: grid;
}

.td-vip-plan-list-wrap {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
}

.td-vip-plan-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.td-vip-plan-list-head > strong {
    display: none;
}

.td-vip-plan-list-head-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.td-vip-plan-search-wrap {
    margin: 0;
    width: 100%;
}

.td-vip-plan-search {
    width: 100%;
    box-sizing: border-box;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
}

.td-vip-plan-item-context {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.95);
    margin-left: 4px;
}

.td-vip-journal-context {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.45;
}

.td-vip-replay-kp-jump {
    margin-left: 8px;
    font-size: 11px;
    padding: 2px 10px;
    min-height: 26px;
}

.td-vip-plan-list-head strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.td-vip-plan-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.td-vip-plan-filter-btn {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.td-vip-plan-filter-btn.is-active {
    border-color: rgba(14, 165, 233, 0.24);
    background: rgba(219, 234, 254, 0.96);
    color: #0369a1;
}

.td-vip-plan-new {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
}

.td-vip-plan-list {
    display: grid;
    gap: 10px;
    align-content: start;
    max-height: 420px;
    overflow: auto;
    padding-right: 2px;
}

.td-vip-plan-empty {
    padding: 16px 14px;
    border: 1px dashed rgba(191, 219, 254, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.td-vip-plan-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 28px -28px rgba(15, 23, 42, 0.28);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.td-vip-plan-item.is-active {
    border-color: rgba(56, 189, 248, 0.44);
    box-shadow: 0 22px 34px -30px rgba(14, 165, 233, 0.34);
}

.td-vip-plan-item.is-due-soon {
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: 0 22px 34px -30px rgba(245, 158, 11, 0.24);
}

.td-vip-plan-item:hover {
    transform: translateY(-1px);
}

.td-vip-plan-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.td-vip-plan-item-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.td-vip-plan-item-direction {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.td-vip-plan-item-direction--wait {
    background: rgba(226, 232, 240, 0.9);
    color: #475569;
}

.td-vip-plan-item-direction--bullish {
    background: rgba(220, 252, 231, 0.95);
    color: #047857;
}

.td-vip-plan-item-direction--bearish {
    background: rgba(254, 226, 226, 0.95);
    color: #b91c1c;
}

.td-vip-plan-item-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.td-vip-plan-item-status--pending {
    background: rgba(219, 234, 254, 0.96);
    color: #0369a1;
}

.td-vip-plan-item-status--triggered {
    background: rgba(220, 252, 231, 0.95);
    color: #047857;
}

.td-vip-plan-item-status--expired {
    background: rgba(254, 226, 226, 0.95);
    color: #b91c1c;
}

.td-vip-plan-item-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.td-vip-plan-item-priority--a {
    background: rgba(254, 240, 138, 0.96);
    color: #a16207;
}

.td-vip-plan-item-priority--b {
    background: rgba(219, 234, 254, 0.96);
    color: #1d4ed8;
}

.td-vip-plan-item-priority--c {
    background: rgba(226, 232, 240, 0.96);
    color: #475569;
}

.td-vip-plan-item-time {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.td-vip-plan-item-text {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.td-vip-plan-item-deadline {
    margin: -2px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.td-vip-plan-item-deadline.is-overdue {
    color: #dc2626;
}

.td-vip-plan-item-deadline.is-soon {
    color: #d97706;
}

.td-vip-plan-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.td-vip-plan-item-priority-actions,
.td-vip-plan-item-status-actions,
.td-vip-plan-item-action-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.td-vip-plan-status-btn {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #64748b;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.td-vip-plan-status-btn--pending.is-active {
    border-color: rgba(14, 165, 233, 0.26);
    background: rgba(219, 234, 254, 0.96);
    color: #0369a1;
}

.td-vip-plan-status-btn--triggered.is-active {
    border-color: rgba(16, 185, 129, 0.26);
    background: rgba(220, 252, 231, 0.96);
    color: #047857;
}

.td-vip-plan-status-btn--expired.is-active {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(254, 226, 226, 0.96);
    color: #b91c1c;
}

.td-vip-plan-priority-btn {
    min-width: 30px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #64748b;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.td-vip-plan-priority-btn--a.is-active {
    border-color: rgba(234, 179, 8, 0.28);
    background: rgba(254, 240, 138, 0.96);
    color: #a16207;
}

.td-vip-plan-priority-btn--b.is-active {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(219, 234, 254, 0.96);
    color: #1d4ed8;
}

.td-vip-plan-priority-btn--c.is-active {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(226, 232, 240, 0.96);
    color: #475569;
}

.td-vip-plan-item-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #475569;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.td-vip-plan-item-btn--danger {
    border-color: rgba(248, 113, 113, 0.28);
    color: #dc2626;
}

.td-vip-side-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
    border-radius: 14px;
}

.td-vip-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.td-vip-side-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.td-vip-side-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.td-vip-watchlist {
    display: grid;
    gap: 4px;
    min-height: 0;
    overflow: auto;
}

.td-vip-side-panel--trend {
    flex: 0 0 auto;
    gap: 10px;
}

.td-vip-trend-board {
    width: 100%;
    min-height: 78px;
    margin-top: 0;
    padding: 12px 14px;
}

.td-vip-trend-board.is-hidden {
    display: none;
}

.td-vip-action-foot .td-vip-trend-board {
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
}

.td-vip-action-foot .td-vip-side-head {
    margin-bottom: 8px;
}

.td-vip-action-foot .td-vip-side-head h3 {
    font-size: 15px;
}

.td-vip-action-foot .td-vip-trend-summary,
.td-vip-action-foot .td-vip-trend-empty,
.td-vip-action-foot .td-vip-trend-locked {
    padding: 10px 12px;
}

.td-vip-action-foot .td-vip-trend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-vip-action-foot .td-vip-trend-card {
    padding: 9px 10px;
}

.td-vip-action-foot .td-vip-trend-card-bias {
    font-size: 15px;
}

.td-vip-action-foot .td-vip-trend-signals {
    gap: 6px;
}

.td-vip-action-foot .td-vip-trend-signal-list {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.td-vip-action-foot .td-vip-trend-signal {
    padding: 8px 10px;
}

.td-vip-trend-summary,
.td-vip-trend-empty,
.td-vip-trend-locked {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
}

.td-vip-trend-summary.is-bullish,
.td-vip-trend-card.is-bullish {
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 32px -28px rgba(16, 185, 129, 0.36);
}

.td-vip-trend-summary.is-bearish,
.td-vip-trend-card.is-bearish {
    border-color: rgba(239, 68, 68, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 32px -28px rgba(239, 68, 68, 0.26);
}

.td-vip-trend-summary.is-warn,
.td-vip-trend-card.is-warn {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 32px -28px rgba(245, 158, 11, 0.28);
}

.td-vip-trend-summary-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.td-vip-trend-summary strong,
.td-vip-trend-empty strong,
.td-vip-trend-locked strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.td-vip-trend-summary p,
.td-vip-trend-empty p,
.td-vip-trend-locked p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-trend-summary-meta,
.td-vip-trend-sync {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.88);
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.td-vip-trend-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.td-vip-trend-card {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
}

.td-vip-trend-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.td-vip-trend-card-head strong {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.td-vip-trend-card-head span {
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.td-vip-trend-card-bias {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.td-vip-trend-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-trend-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: rgba(224, 242, 254, 0.9);
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.td-vip-trend-signals {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.td-vip-trend-signals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.td-vip-trend-signals-head strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.td-vip-trend-signals-head span,
.td-vip-trend-signal-empty {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-trend-signal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.td-vip-trend-signal {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
}

.td-vip-trend-signal strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.td-vip-trend-signal em {
    color: #0f172a;
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.td-vip-trend-signal span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.td-vip-watch-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.td-vip-watch-item:hover {
    border-color: #dbeafe;
    background: #f8fbff;
    transform: translateY(-1px);
}

.td-vip-watch-item:focus-visible {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
}

.td-vip-watch-item.is-active {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.td-vip-watch-item.is-syncing {
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.td-vip-watch-item.is-pending {
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.96) 100%);
}

.td-vip-watch-symbol {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 84px;
}

.td-vip-watch-symbol::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #94a3b8;
}

.td-vip-watch-item.is-active .td-vip-watch-symbol::before {
    background: #f59e0b;
}

.td-vip-watch-text strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.td-vip-watch-text span {
    display: none;
}

.td-vip-watch-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
}

.td-vip-watch-price strong {
    display: inline-block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.td-vip-watch-price span {
    display: inline-block;
    margin-top: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.td-vip-watch-price > * {
    position: relative;
    flex: 0 0 auto;
}

.td-vip-watch-price > *:not(:first-child) {
    margin-left: 10px;
    padding-left: 10px;
}

.td-vip-watch-price > *:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background: rgba(148, 163, 184, 0.18);
}

.td-vip-watch-last {
    letter-spacing: -0.01em;
}

.td-vip-watch-cell.is-pending {
    color: #94a3b8;
    animation: td-vip-watch-pending-pulse 1.15s ease-in-out infinite alternate;
}

.td-vip-watch-last.is-pending {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.td-vip-watch-change.is-up {
    color: #059669;
}

.td-vip-watch-change.is-down {
    color: #dc2626;
}

.td-vip-watch-time {
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 0.02em;
}

@keyframes td-vip-watch-pending-pulse {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* TV-style workspace overrides: reduce cards, borders and decorative gradients */
body.td-vip-body,
body.td-vip-body .td-vip-page,
body.td-vip-body .td-vip-terminal,
body.td-vip-body .td-vip-center,
body.td-vip-body .td-vip-rightbar,
body.td-vip-body .td-vip-left-rail {
    background: #ffffff;
}

body.td-vip-body .td-vip-page {
    background: #ffffff;
}

body.td-vip-body .td-vip-terminal {
    border: 0;
}

body.td-vip-body .td-vip-topbar {
    --td-vip-topbar-height: 40px;
    --td-vip-topbar-control-height: 30px;
    --td-vip-topbar-divider: rgba(148, 163, 184, 0.18);
    --td-vip-topbar-divider-strong: rgba(226, 232, 240, 0.92);
    --td-vip-topbar-text: #3f4d5e;
    --td-vip-topbar-text-strong: #111827;
    --td-vip-topbar-muted: #97a6b7;
    --td-vip-topbar-hover: #f7f9fc;
    --td-vip-topbar-active: #f3f6f9;
    --td-vip-topbar-active-border: #dde4ec;
    --td-vip-topbar-segment-bg: #fbfcfe;
    --td-vip-topbar-segment-border: #e5ebf2;
    gap: 4px;
    padding: 0 10px 1px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    min-height: var(--td-vip-topbar-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.td-vip-body .td-vip-terminal {
    grid-template-rows: var(--td-vip-topbar-height) minmax(0, 1fr);
}

@media screen and (min-width: 901px) {
    body.td-vip-body .td-vip-terminal {
        grid-template-rows: var(--td-vip-topbar-height) minmax(0, 1fr) !important;
    }

    body.td-vip-body .td-vip-topbar {
        height: var(--td-vip-topbar-height);
        max-height: var(--td-vip-topbar-height);
        align-self: start;
    }
}

body.td-vip-body .td-vip-back-link,
body.td-vip-body .td-vip-market-pill,
body.td-vip-body .td-vip-topbar .td-vip-menu-btn,
body.td-vip-body .td-vip-topbar .td-vip-secondary-btn,
body.td-vip-body .td-vip-topbar .td-vip-primary-btn,
body.td-vip-body .td-vip-topbar .td-vip-connection-badge,
body.td-vip-body .td-vip-topbar .td-vip-refresh-frequency {
    min-height: var(--td-vip-topbar-control-height);
    border-radius: 6px;
    box-shadow: none;
}

body.td-vip-body .td-vip-topbar-left,
body.td-vip-body .td-vip-topbar-right {
    gap: 4px;
    min-height: var(--td-vip-topbar-height);
}

body.td-vip-body .td-vip-topbar-left {
    gap: 4px;
}

body.td-vip-body .td-vip-topbar-right {
    gap: 4px;
    position: relative;
    padding-left: 10px;
    margin-left: 6px;
}

body.td-vip-body .td-vip-topbar-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    transform: translateY(-50%);
    background: var(--td-vip-topbar-divider);
    pointer-events: none;
}

body.td-vip-body .td-vip-timeframes-scroll {
    margin-left: 8px;
    padding-left: 10px;
    position: relative;
}

body.td-vip-body .td-vip-top-tool--indicators {
    margin-left: 8px;
    padding-left: 10px;
    position: relative;
}

body.td-vip-body .td-vip-top-tool--indicators,
body.td-vip-body .td-vip-top-tool--ai-summary,
body.td-vip-body .td-vip-ext-more-wrap {
    display: inline-flex;
    align-items: center;
}

body.td-vip-body .td-vip-timeframes-scroll::before,
body.td-vip-body .td-vip-top-tool--indicators::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    transform: translateY(-50%);
    background: var(--td-vip-topbar-divider);
    pointer-events: none;
}

body.td-vip-body .td-vip-timeframes-scroll::before {
    height: 14px;
}

body.td-vip-body .td-vip-top-tool--indicators::before {
    height: 14px;
}

body.td-vip-body .td-vip-back-link {
    padding: 0 4px 0 1px;
    border: 0;
    background: transparent;
    color: var(--td-vip-topbar-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body.td-vip-body .td-vip-back-link:hover,
body.td-vip-body .td-vip-back-link:focus-visible {
    background: rgba(243, 246, 249, 0.92);
    color: var(--td-vip-topbar-text);
    transform: none;
}

body.td-vip-body .td-vip-back-link--tv {
    gap: 7px;
    min-height: var(--td-vip-topbar-control-height);
    padding-right: 6px;
    border-radius: 999px;
}

body.td-vip-body .td-vip-back-link-avatar {
    width: 28px;
    height: 28px;
    box-shadow:
        inset 0 0 0 1px rgba(203, 213, 225, 0.9),
        0 1px 2px rgba(15, 23, 42, 0.08);
}

body.td-vip-body .td-vip-back-link-text {
    color: var(--td-vip-topbar-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}


body.td-vip-body .td-vip-market-pill {
    gap: 5px;
    padding: 0 4px 0 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--td-vip-topbar-text-strong);
}

body.td-vip-body #tdVipCurrentSymbol {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: inherit;
}

body.td-vip-body .td-vip-market-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.09);
}

body.td-vip-body .td-vip-timeframes {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.td-vip-body .td-vip-timeframe-btn {
    min-width: 0;
    min-height: var(--td-vip-topbar-control-height);
    padding: 0 8px;
    border-radius: 6px;
    color: var(--td-vip-topbar-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.td-vip-body .td-vip-timeframe-btn:hover,
body.td-vip-body .td-vip-timeframe-btn:focus-visible {
    background: var(--td-vip-topbar-hover);
}

body.td-vip-body .td-vip-timeframe-btn.is-active {
    background: var(--td-vip-topbar-active);
    color: var(--td-vip-topbar-text-strong);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--td-vip-topbar-active-border);
}

body.td-vip-body .td-vip-topbar .td-vip-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--td-vip-topbar-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body.td-vip-body .td-vip-topbar .td-vip-display-toggle {
    min-height: var(--td-vip-topbar-control-height);
    min-width: 56px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--td-vip-topbar-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

body.td-vip-body .td-vip-topbar .td-vip-display-toggle:hover,
body.td-vip-body .td-vip-topbar .td-vip-display-toggle:focus-visible {
    background: var(--td-vip-topbar-hover);
    color: var(--td-vip-topbar-text-strong);
    outline: none;
}

body.td-vip-body .td-vip-menu-graph-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: inherit;
}

body.td-vip-body .td-vip-topbar #tdVipIndicatorToggle,
body.td-vip-body .td-vip-topbar #tdVipAiToolbarBtn,
body.td-vip-body .td-vip-topbar #tdVipExtMoreToggle {
    min-width: 0;
    padding-inline: 7px;
    font-size: 12px;
    font-weight: 600;
}

body.td-vip-body .td-vip-topbar #tdVipIndicatorToggle {
    gap: 4px;
    padding-left: 6px;
}

body.td-vip-body .td-vip-topbar #tdVipIndicatorToggle .td-vip-menu-graph-icon {
    width: 15px;
    height: 15px;
}

body.td-vip-body .td-vip-menu-graph-icon svg,
body.td-vip-body .td-vip-menu-expand-caret svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.td-vip-body .td-vip-menu-expand-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    color: var(--td-vip-topbar-muted);
    transition: transform 0.18s ease, color 0.18s ease;
}

body.td-vip-body .td-vip-topbar #tdVipExtMoreToggle {
    gap: 3px;
    padding-right: 5px;
}

body.td-vip-body .td-vip-topbar #tdVipExtMoreToggle .td-vip-menu-expand-caret {
    width: 10px;
    height: 10px;
}

body.td-vip-body .td-vip-top-tool--indicators .td-vip-menu-btn,
body.td-vip-body .td-vip-top-tool--moving-average .td-vip-menu-btn,
body.td-vip-body .td-vip-top-tool--settings .td-vip-menu-btn,
body.td-vip-body .td-vip-ext-more-toggle,
body.td-vip-body .td-vip-smc-toolbar-btn,
body.td-vip-body .td-vip-ai-toolbar-btn {
    min-height: var(--td-vip-topbar-control-height);
    border-radius: 6px;
    color: var(--td-vip-topbar-text);
    font-size: 12px;
    font-weight: 500;
}

body.td-vip-body .td-vip-ext-more-wrap.is-open .td-vip-ext-more-toggle {
    border-color: transparent;
    background: var(--td-vip-topbar-active);
    box-shadow: inset 0 0 0 1px var(--td-vip-topbar-active-border);
}

body.td-vip-body .td-vip-topbar #tdVipMovingAverageToggle {
    min-width: 62px;
    max-width: 124px;
}

body.td-vip-body .td-vip-topbar #tdVipVolumeToggle,
body.td-vip-body .td-vip-topbar #tdVipMovingAverageToggle {
    justify-content: center;
}

body.td-vip-body .td-vip-topbar .td-vip-menu-btn:hover,
body.td-vip-body .td-vip-topbar .td-vip-menu-btn:focus-visible,
body.td-vip-body .td-vip-top-tool.is-open .td-vip-menu-btn {
    background: var(--td-vip-topbar-hover);
    color: var(--td-vip-topbar-text-strong);
    border-color: transparent;
}

body.td-vip-body .td-vip-topbar .td-vip-menu-btn:hover .td-vip-menu-graph-icon,
body.td-vip-body .td-vip-topbar .td-vip-menu-btn:focus-visible .td-vip-menu-graph-icon,
body.td-vip-body .td-vip-top-tool.is-open .td-vip-menu-btn .td-vip-menu-graph-icon,
body.td-vip-body .td-vip-topbar .td-vip-secondary-btn:hover .td-vip-menu-expand-caret,
body.td-vip-body .td-vip-topbar .td-vip-secondary-btn:focus-visible .td-vip-menu-expand-caret,
body.td-vip-body .td-vip-top-tool.is-open .td-vip-ext-more-toggle .td-vip-menu-expand-caret {
    color: var(--td-vip-topbar-text-strong);
}

body.td-vip-body .td-vip-top-tool.is-open .td-vip-ext-more-toggle .td-vip-menu-expand-caret {
    transform: rotate(180deg);
}

body.td-vip-body .td-vip-ext-more-toggle[aria-expanded="true"] .td-vip-menu-expand-caret {
    transform: rotate(180deg);
}

body.td-vip-body .td-vip-settings-popover {
    width: min(420px, calc(100vw - 32px));
}

body.td-vip-body .td-vip-topbar .td-vip-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--td-vip-topbar-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body.td-vip-body .td-vip-topbar .td-vip-secondary-btn:hover,
body.td-vip-body .td-vip-topbar .td-vip-secondary-btn:focus-visible {
    background: var(--td-vip-topbar-hover);
    color: var(--td-vip-topbar-text-strong);
    transform: none;
}

body.td-vip-body .td-vip-topbar .td-vip-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

body.td-vip-body .td-vip-topbar .td-vip-primary-btn:hover,
body.td-vip-body .td-vip-topbar .td-vip-primary-btn:focus-visible {
    background: #1f2937;
    color: #ffffff;
    transform: none;
}

body.td-vip-body .td-vip-top-meta,
body.td-vip-body .td-vip-topbar .td-vip-refresh-frequency,
body.td-vip-body .td-vip-topbar .td-vip-connection-badge {
    color: var(--td-vip-topbar-muted);
    font-size: 11px;
    font-weight: 500;
}

body.td-vip-body .td-vip-top-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin-right: 1px;
    letter-spacing: 0.01em;
    color: #c0c7d1;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    text-align: center;
    transform: none;
}

body.td-vip-body .td-vip-topbar .td-vip-refresh-frequency {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 5px;
    border: 1px solid transparent;
    background: transparent;
}

body.td-vip-body .td-vip-topbar .td-vip-refresh-frequency span {
    color: var(--td-vip-topbar-muted);
    letter-spacing: 0;
}

body.td-vip-body .td-vip-topbar .td-vip-refresh-frequency select {
    color: var(--td-vip-topbar-text-strong);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

body.td-vip-body .td-vip-topbar .td-vip-connection-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    min-height: 14px;
    margin-right: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0;
    line-height: 1;
    transform: translateY(-0.5px);
}

body.td-vip-body .td-vip-topbar .td-vip-connection-badge::before {
    width: 6px;
    height: 6px;
}

body.td-vip-body .td-vip-topbar .td-vip-connection-badge.is-ok {
    color: #22c55e;
}

body.td-vip-body .td-vip-topbar .td-vip-connection-badge.is-warn {
    color: #94a3b8;
}

body.td-vip-body .td-vip-topbar .td-vip-connection-badge.is-error {
    color: #94a3b8;
}

body.td-vip-body .td-vip-ai-toolbar-btn,
body.td-vip-body .td-vip-smc-toolbar-btn {
    min-width: 0;
    padding: 0 7px;
    background: transparent;
    color: var(--td-vip-topbar-text);
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 500;
}

body.td-vip-body .td-vip-topbar #tdVipAiToolbarBtn {
    gap: 4px;
}

body.td-vip-body .td-vip-ai-toolbar-btn:hover,
body.td-vip-body .td-vip-smc-toolbar-btn:hover,
body.td-vip-body .td-vip-smc-toolbar-btn:focus-visible {
    background: var(--td-vip-topbar-hover);
    color: var(--td-vip-topbar-text-strong);
    transform: none;
}

body.td-vip-body .td-vip-ai-toolbar-icon {
    width: 10px;
    height: 10px;
    background: rgba(99, 102, 241, 0.07);
    color: #5b63d9;
    font-size: 6px;
    box-shadow: none;
    transform: translateY(0.5px);
}

body.td-vip-body .td-vip-topbar .td-vip-top-icon-btn,
body.td-vip-body .td-vip-topbar .td-vip-menu-btn--icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0 !important;
    gap: 0;
    border-radius: 5px;
    align-self: center;
}

body.td-vip-body .td-vip-top-screenshot-btn {
    margin-right: 0;
}

body.td-vip-body .td-vip-top-icon-btn:disabled {
    opacity: 0.55;
    cursor: progress;
}

body.td-vip-body .td-vip-topbar .td-vip-top-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    color: var(--td-vip-topbar-text);
}

body.td-vip-body .td-vip-topbar .td-vip-top-icon-svg svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.62;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.td-vip-body .td-vip-topbar .td-vip-top-icon-btn:hover .td-vip-top-icon-svg,
body.td-vip-body .td-vip-topbar .td-vip-top-icon-btn:focus-visible .td-vip-top-icon-svg,
body.td-vip-body .td-vip-top-tool.is-open .td-vip-menu-btn--icon .td-vip-top-icon-svg,
body.td-vip-body .td-vip-topbar .td-vip-menu-btn--icon:hover .td-vip-top-icon-svg,
body.td-vip-body .td-vip-topbar .td-vip-menu-btn--icon:focus-visible .td-vip-top-icon-svg {
    color: var(--td-vip-topbar-text-strong);
}

body.td-vip-body .td-vip-topbar-refresh-cluster {
    gap: 3px;
    position: relative;
    margin-left: 6px;
    padding-left: 8px;
    align-items: center;
}

body.td-vip-body .td-vip-topbar-refresh-cluster::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    transform: translateY(-50%);
    background: var(--td-vip-topbar-divider);
    pointer-events: none;
}

body.td-vip-body .td-vip-menu-btn-label,
body.td-vip-body .td-vip-ai-toolbar-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

body.td-vip-body .td-vip-menu-btn-caret {
    display: none !important;
}

body.td-vip-body .td-vip-topbar-refresh-cluster #tdVipAutoRefresh,
body.td-vip-body .td-vip-topbar-refresh-cluster .td-vip-refresh-frequency,
body.td-vip-body .td-vip-topbar-refresh-cluster #tdVipRefreshBtn {
    min-height: 28px;
}

body.td-vip-body .td-vip-topbar-refresh-cluster .td-vip-connection-badge {
    margin-right: 2px;
}

body.td-vip-body .td-vip-topbar-refresh-cluster #tdVipAutoRefresh {
    min-width: 56px;
    padding: 0 7px;
    border: 1px solid var(--td-vip-topbar-segment-border);
    border-right-width: 0;
    border-radius: 7px 0 0 7px;
    background: var(--td-vip-topbar-segment-bg);
    color: var(--td-vip-topbar-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

body.td-vip-body .td-vip-topbar-refresh-cluster .td-vip-refresh-frequency {
    gap: 3px;
    padding: 0 6px;
    border: 1px solid var(--td-vip-topbar-segment-border);
    border-left-width: 1px;
    border-right-width: 0;
    border-radius: 0;
    background: var(--td-vip-topbar-segment-bg);
}

body.td-vip-body .td-vip-topbar-refresh-cluster .td-vip-refresh-frequency span {
    color: var(--td-vip-topbar-muted);
    font-size: 11px;
    font-weight: 500;
}

body.td-vip-body .td-vip-topbar-refresh-cluster .td-vip-refresh-frequency select {
    min-width: 24px;
    padding: 0;
    font-size: 12px;
}

body.td-vip-body .td-vip-topbar-refresh-cluster #tdVipRefreshBtn {
    min-width: 46px;
    padding: 0 8px;
    border-radius: 0 7px 7px 0;
}

body.td-vip-body .td-vip-topbar .td-vip-display-toggle.is-active {
    background: var(--td-vip-topbar-active);
    color: var(--td-vip-topbar-text-strong);
    box-shadow: inset 0 0 0 1px var(--td-vip-topbar-active-border);
}

body.td-vip-body .td-vip-topbar .td-vip-display-toggle[aria-pressed="true"] {
    background: var(--td-vip-topbar-active);
    color: var(--td-vip-topbar-text-strong);
    box-shadow: inset 0 0 0 1px var(--td-vip-topbar-active-border);
}

body.td-vip-body .td-vip-topbar #tdVipAutoRefresh[aria-pressed="true"] {
    background: var(--td-vip-topbar-active);
    color: var(--td-vip-topbar-text-strong);
    font-weight: 600;
}

body.td-vip-body .td-vip-terminal-body {
    grid-template-columns: 48px minmax(0, 1fr) 6px var(--td-vip-right-rail-width, 320px) 44px;
    column-gap: 0;
    padding-top: 4px;
    background: #eef2f6;
}

body.td-vip-body .td-vip-left-rail {
    gap: 6px;
    padding: 8px 6px 10px;
    border-right: 0;
    position: relative;
}

body.td-vip-body .td-vip-left-rail::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(226, 232, 240, 0.72) 100%);
    pointer-events: none;
}

body.td-vip-body .td-vip-rail-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4b5563;
    font-weight: 600;
}

body.td-vip-body .td-vip-rail-btn:hover,
body.td-vip-body .td-vip-rail-btn:focus-visible {
    background: #f3f4f6;
}

body.td-vip-body .td-vip-rail-btn.is-active {
    background: #e5e7eb;
    color: #111827;
}

body.td-vip-body .td-vip-center {
    gap: 4px;
    padding: 0 12px 8px;
    background: #ffffff;
}

body.td-vip-body .td-vip-rightbar {
    gap: 0;
    padding: 0;
    border-left: 0;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.92), inset -1px 0 0 rgba(226, 232, 240, 0.92);
}

body.td-vip-body .td-vip-rightbar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(226, 232, 240, 0.92);
    pointer-events: none;
}

body.td-vip-body .td-vip-rightbar .td-vip-side-panel,
body.td-vip-body .td-vip-rightbar .td-vip-right-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.td-vip-body .td-vip-right-tools {
    gap: 8px;
    padding: 10px 7px 12px;
    border-left: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.9);
}

body.td-vip-body .td-vip-right-tool-btn {
    position: relative;
    width: 38px;
    min-height: 50px;
    padding: 6px 0 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #758497;
    background: transparent;
}

body.td-vip-body .td-vip-right-tool-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 18px;
    border-radius: 999px;
    background: transparent;
    transform: translateY(-50%);
    transition: background-color 0.16s ease;
}

body.td-vip-body .td-vip-right-tool-btn:hover,
body.td-vip-body .td-vip-right-tool-btn:focus-visible,
body.td-vip-body .td-vip-right-tool-btn.is-active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(226, 232, 240, 0.9);
    color: #111827;
}

body.td-vip-body .td-vip-right-tool-btn.is-active {
    border-color: rgba(203, 213, 225, 0.96);
    box-shadow: 0 10px 18px -18px rgba(15, 23, 42, 0.3);
}

body.td-vip-body .td-vip-right-tool-btn.is-active::before {
    background: #111827;
}

body.td-vip-body .td-vip-chart-shell {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.td-vip-body .td-vip-chart-shell > .td-vip-chart-bar {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    pointer-events: none;
}

body.td-vip-body .td-vip-chart-heading {
    flex: 0 0 auto;
}

body.td-vip-body .td-vip-chart-heading h1 {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

body.td-vip-body .td-vip-ohlc {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

body.td-vip-body .td-vip-ohlc span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
}

body.td-vip-body .td-vip-ohlc em {
    color: rgba(100, 116, 139, 0.72);
    font-style: normal;
    font-weight: 400;
}

body.td-vip-body .td-vip-ohlc strong {
    font-size: 11px;
    font-weight: 500;
}

body.td-vip-body .td-vip-chart-inline-status {
    display: none;
    margin-left: auto;
    color: #c0c7d1;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
}

body.td-vip-body .td-vip-chart-host {
    grid-row: auto;
}

body.td-vip-body .td-vip-watermark {
    inset: auto auto 16px 14px;
    transform: none;
    text-align: left;
    opacity: 0.08;
}

body.td-vip-body .td-vip-watermark span {
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

body.td-vip-body .td-vip-watermark strong {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.td-vip-body .td-vip-side-panel--watchlist {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.td-vip-body .td-vip-side-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding: 7px 12px 5px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

body.td-vip-body .td-vip-side-head-main {
    display: grid;
    gap: 1px;
    min-width: 0;
}

body.td-vip-body .td-vip-side-panel--watchlist .td-vip-panel-kicker {
    color: #7b8796;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.13em;
}

body.td-vip-body .td-vip-side-panel--watchlist .td-vip-panel-kicker::before {
    width: 6px;
    height: 6px;
    background: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.08);
}

body.td-vip-body .td-vip-side-head h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

body.td-vip-body .td-vip-watchlist-collapse {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.td-vip-body .td-vip-watchlist-collapse:hover,
body.td-vip-body .td-vip-watchlist-collapse:focus-visible {
    background: #f3f4f6;
    color: #4b5563;
    outline: none;
}

body.td-vip-body .td-vip-watchlist-collapse-icon {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transform: translateX(1px);
}

body.td-vip-body .td-vip-watchlist-collapse.is-collapsed .td-vip-watchlist-collapse-icon {
    transform: rotate(180deg) translateX(1px);
}

body.td-vip-body .td-vip-watchlist-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px 56px 52px;
    gap: 8px;
    padding: 6px 12px 5px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.035);
    color: #9aa6b5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

body.td-vip-body .td-vip-watchlist-head span:not(:first-child) {
    text-align: right;
}

body.td-vip-body .td-vip-watchlist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 8px;
    overflow-x: hidden;
}

body.td-vip-body .td-vip-watch-item {
    grid-template-columns: minmax(0, 1fr) 72px 56px 52px;
    gap: 8px;
    min-height: 38px;
    padding: 7px 6px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

body.td-vip-body .td-vip-watch-item:hover {
    border-color: rgba(226, 232, 240, 0.72);
    background: rgba(248, 250, 252, 0.82);
    transform: none;
}

body.td-vip-body .td-vip-watch-item:focus-visible {
    border-color: rgba(203, 213, 225, 0.92);
    background: rgba(248, 250, 252, 0.94);
    box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.24);
}

body.td-vip-body .td-vip-watch-item.is-active {
    border-color: rgba(203, 213, 225, 0.96);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 18px -18px rgba(15, 23, 42, 0.28);
}

body.td-vip-body .td-vip-watch-item.is-syncing {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

body.td-vip-body .td-vip-watch-item.is-pending {
    background: linear-gradient(90deg, rgba(251, 253, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
}

body.td-vip-body .td-vip-watch-symbol {
    min-width: 0;
    gap: 6px;
}

body.td-vip-body .td-vip-watch-symbol::before {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    background: #9aa6b5;
}

body.td-vip-body .td-vip-watch-text strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.td-vip-body .td-vip-watch-text span {
    display: block;
    margin-top: 1px;
    color: #97a6b7;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.td-vip-body .td-vip-watch-cell {
    text-align: right;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

body.td-vip-body .td-vip-watch-last {
    color: #111827;
    font-weight: 600;
}

body.td-vip-body .td-vip-watch-change,
body.td-vip-body .td-vip-watch-percent {
    color: #64748b;
    font-weight: 500;
}

body.td-vip-body .td-vip-watch-cell.is-up {
    color: #089981;
}

body.td-vip-body .td-vip-watch-cell.is-down {
    color: #f23645;
}

body.td-vip-body .td-vip-watch-cell.is-pending {
    color: #94a3b8;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-terminal-body {
    grid-template-columns: 48px minmax(0, 1fr) 0 0 44px !important;
    column-gap: 4px !important;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-rightbar {
    width: 0;
    min-width: 0;
    opacity: 0;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-rightbar-resize {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-side-panel--watchlist {
    overflow: hidden;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-side-head {
    padding: 0;
    border-bottom: 0;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-side-head-main,
body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-watchlist-head,
body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-watchlist {
    display: none !important;
}

body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-watchlist-collapse {
    display: none !important;
}

.td-vip-side-panel--quote {
    gap: 10px;
}

.td-vip-quote-price {
    font-family: var(--td-vip-font-ui);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.td-vip-quote-change {
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
}

.td-vip-quote-change.is-up {
    color: #059669;
}

.td-vip-quote-change.is-down {
    color: #dc2626;
}

.td-vip-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.td-vip-quote-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #f8fafc;
}

.td-vip-quote-item span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.td-vip-quote-item strong {
    color: #0f172a;
    font-family: var(--td-vip-font-ui);
    font-size: 14px;
}

.td-vip-indicator-list {
    display: grid;
    gap: 8px;
}

.td-vip-indicator-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #f8fafc;
}

.td-vip-indicator-item.is-enabled {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.td-vip-indicator-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.td-vip-indicator-status--live {
    background: #ccfbf1;
    color: #0f766e;
}

.td-vip-indicator-body strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.td-vip-indicator-body p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.td-vip-indicator-actions {
    margin-top: 8px;
}

.td-vip-indicator-toggle {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.td-vip-indicator-toggle.is-off {
    background: #f8fafc;
}

.td-vip-side-panel--indicators {
    background:
        radial-gradient(circle at top left, rgba(186, 230, 253, 0.5), transparent 36%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.td-vip-indicator-list {
    gap: 12px;
}

.td-vip-indicator-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.96)),
        linear-gradient(120deg, rgba(186, 230, 253, 0.18), transparent 56%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 18px 36px -30px rgba(15, 23, 42, 0.4);
    overflow: hidden;
}

.td-vip-indicator-item::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
}

.td-vip-indicator-item.is-enabled {
    border-color: rgba(56, 189, 248, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 255, 0.96)),
        linear-gradient(120deg, rgba(34, 211, 238, 0.18), transparent 58%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 22px 42px -32px rgba(14, 165, 233, 0.36);
}

.td-vip-indicator-item.is-reserved {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.96)),
        linear-gradient(120deg, rgba(148, 163, 184, 0.12), transparent 60%);
}

.td-vip-indicator-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.td-vip-indicator-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.td-vip-indicator-title,
.td-vip-indicator-body strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.td-vip-indicator-subtitle {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.td-vip-indicator-status {
    min-width: 68px;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(241, 245, 249, 0.88);
    color: #475569;
    font-size: 10px;
    letter-spacing: 0.18em;
}

.td-vip-indicator-status--live {
    border-color: rgba(45, 212, 191, 0.35);
    background: linear-gradient(180deg, rgba(204, 251, 241, 0.9), rgba(153, 246, 228, 0.65));
    color: #115e59;
}

.td-vip-indicator-body p {
    margin: 0;
    color: #5b6b80;
    font-size: 12px;
    line-height: 1.65;
}

.td-vip-indicator-actions {
    margin-top: 0;
}

.td-vip-indicator-toggle {
    position: relative;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 242, 247, 0.96));
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 22px -18px rgba(15, 23, 42, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.td-vip-indicator-toggle::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.td-vip-indicator-toggle:hover,
.td-vip-indicator-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 18px 28px -18px rgba(15, 23, 42, 0.36);
    outline: none;
}

.td-vip-indicator-toggle.is-on {
    border-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96)),
        linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(34, 197, 94, 0.18));
    color: #f8fafc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 32px -20px rgba(15, 23, 42, 0.54);
}

.td-vip-indicator-toggle.is-off {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98)),
        linear-gradient(135deg, rgba(186, 230, 253, 0.12), rgba(226, 232, 240, 0.08));
}

.td-vip-indicator-toggle.is-locked,
.td-vip-indicator-toggle:disabled {
    cursor: default;
    border-color: rgba(203, 213, 225, 0.9);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.96));
    color: #64748b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transform: none;
}

.td-vip-side-panel--indicators {
    border-color: rgba(203, 213, 225, 0.7);
    max-height: 360px;
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(186, 230, 253, 0.34), transparent 30%),
        linear-gradient(180deg, #fcfdff 0%, #eef4fa 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 22px 40px -34px rgba(15, 23, 42, 0.24);
}

.td-vip-indicator-list {
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.td-vip-indicator-list--popover {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.td-vip-indicator-empty {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 180px;
    padding: 16px;
    border: 1px dashed rgba(191, 205, 221, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.td-vip-indicator-empty strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.td-vip-indicator-empty p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.td-vip-indicator-list--popover .td-vip-indicator-item {
    gap: 7px;
    min-height: 0;
    padding: 12px;
}

.td-vip-indicator-list--popover .td-vip-indicator-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
}

.td-vip-indicator-list--popover .td-vip-indicator-title-wrap {
    gap: 3px;
    width: 100%;
}

.td-vip-indicator-list--popover .td-vip-indicator-title {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    word-break: keep-all;
    writing-mode: horizontal-tb;
}

.td-vip-indicator-list--popover .td-vip-indicator-subtitle {
    font-size: 10px;
    letter-spacing: 0.16em;
}

.td-vip-indicator-list--popover .td-vip-indicator-head-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.td-vip-indicator-list--popover .td-vip-indicator-status {
    min-width: 72px;
}

.td-vip-indicator-list--popover .td-vip-indicator-toggle {
    min-height: 34px;
    padding: 0 12px;
}

.td-vip-indicator-item {
    border-color: rgba(191, 205, 221, 0.88);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 252, 0.96)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(148, 163, 184, 0.05));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(148, 163, 184, 0.08),
        0 24px 44px -34px rgba(15, 23, 42, 0.34);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.td-vip-indicator-item::after {
    content: "";
    position: absolute;
    top: -18%;
    right: -28%;
    width: 54%;
    height: 58%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
    transform: rotate(18deg);
    pointer-events: none;
}

.td-vip-indicator-item:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(148, 163, 184, 0.1),
        0 28px 46px -32px rgba(15, 23, 42, 0.38);
}

.td-vip-indicator-item.is-enabled {
    border-color: rgba(56, 189, 248, 0.46);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 255, 0.96)),
        linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(14, 165, 233, 0.02));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(14, 165, 233, 0.08),
        0 28px 52px -34px rgba(14, 165, 233, 0.34);
}

.td-vip-indicator-item.is-reserved {
    border-color: rgba(203, 213, 225, 0.94);
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 244, 249, 0.96)),
        linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(255, 255, 255, 0.04));
}

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

.td-vip-indicator-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.td-vip-indicator-title {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.td-vip-indicator-title-wrap {
    display: grid;
    gap: 4px;
}

.td-vip-indicator-trend-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    background: rgba(241, 245, 249, 0.96);
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.td-vip-indicator-trend-hint.is-bullish {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(220, 252, 231, 0.92);
    color: #047857;
}

.td-vip-indicator-trend-hint.is-bearish,
.td-vip-indicator-trend-hint.is-warn {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 247, 237, 0.96);
    color: #c2410c;
}

.td-vip-indicator-subtitle {
    color: #8b9aae;
    letter-spacing: 0.22em;
}

.td-vip-indicator-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 68px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border-color: rgba(203, 213, 225, 0.86);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(226, 232, 240, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 20px -18px rgba(15, 23, 42, 0.22);
    color: #526174;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.td-vip-indicator-guide-trigger,
.td-vip-indicator-settings-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(191, 205, 221, 0.92);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
    color: #475569;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.td-vip-indicator-guide-trigger:hover,
.td-vip-indicator-guide-trigger:focus-visible,
.td-vip-indicator-settings-trigger:hover,
.td-vip-indicator-settings-trigger:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.34);
    color: #0f172a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 14px 22px -18px rgba(15, 23, 42, 0.24);
}

.td-vip-indicator-guide-trigger.is-open,
.td-vip-indicator-settings-trigger.is-open {
    border-color: rgba(56, 189, 248, 0.34);
    background:
        linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(224, 242, 254, 0.96));
    color: #0f172a;
}

.td-vip-indicator-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.12),
        0 0 10px rgba(245, 158, 11, 0.28);
    flex: 0 0 auto;
}

.td-vip-indicator-status--live {
    border-color: rgba(45, 212, 191, 0.36);
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(204, 251, 241, 0.88));
    color: #115e59;
}

.td-vip-indicator-status--live::before {
    background: #10b981;
    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.12),
        0 0 12px rgba(16, 185, 129, 0.28);
}

.td-vip-indicator-item.is-reserved .td-vip-indicator-status::before {
    background: #94a3b8;
    box-shadow:
        0 0 0 3px rgba(148, 163, 184, 0.12),
        0 0 10px rgba(148, 163, 184, 0.18);
}

.td-vip-indicator-body p {
    color: #566579;
}

.td-vip-indicator-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 15px;
    border-color: rgba(148, 163, 184, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 238, 245, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(148, 163, 184, 0.06));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(148, 163, 184, 0.1),
        0 18px 28px -22px rgba(15, 23, 42, 0.34);
}

.td-vip-indicator-toggle::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow:
        0 0 0 4px rgba(245, 158, 11, 0.08),
        0 0 10px rgba(245, 158, 11, 0.22);
    flex: 0 0 auto;
}

.td-vip-indicator-toggle::before {
    inset: 1px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.td-vip-indicator-toggle:hover,
.td-vip-indicator-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(14, 165, 233, 0.08),
        0 22px 32px -22px rgba(15, 23, 42, 0.38);
}

.td-vip-indicator-toggle.is-on {
    border-color: rgba(8, 47, 73, 0.2);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(12, 18, 34, 0.98)),
        linear-gradient(135deg, rgba(8, 145, 178, 0.28), rgba(16, 185, 129, 0.14));
    color: #eff6ff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(8, 145, 178, 0.16),
        0 22px 34px -22px rgba(8, 47, 73, 0.42);
}

.td-vip-indicator-toggle.is-on::after {
    background: #34d399;
    box-shadow:
        0 0 0 4px rgba(52, 211, 153, 0.1),
        0 0 14px rgba(52, 211, 153, 0.34);
}

.td-vip-indicator-toggle.is-off {
    color: #1e293b;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 244, 249, 0.98)),
        linear-gradient(135deg, rgba(186, 230, 253, 0.12), rgba(226, 232, 240, 0.08));
}

.td-vip-indicator-toggle.is-locked,
.td-vip-indicator-toggle:disabled {
    border-color: rgba(203, 213, 225, 0.96);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(148, 163, 184, 0.06));
    color: #64748b;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        inset 0 -1px 0 rgba(148, 163, 184, 0.1);
}

.td-vip-indicator-toggle.is-locked::after,
.td-vip-indicator-toggle:disabled::after {
    background: #94a3b8;
    box-shadow:
        0 0 0 4px rgba(148, 163, 184, 0.08),
        0 0 10px rgba(148, 163, 184, 0.18);
}

.td-vip-indicator-item.is-settings-open {
    border-color: rgba(14, 165, 233, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(14, 165, 233, 0.08),
        0 30px 48px -34px rgba(14, 165, 233, 0.28);
}

.td-vip-indicator-item.is-guide-open {
    border-color: rgba(14, 165, 233, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(14, 165, 233, 0.06),
        0 24px 40px -34px rgba(14, 165, 233, 0.24);
}

.td-vip-indicator-actions {
    display: block;
}

.td-vip-indicator-actions .td-vip-indicator-toggle--secondary {
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 0.14em;
}

.td-vip-indicator-toggle--secondary::after {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    box-shadow:
        0 0 0 3px rgba(148, 163, 184, 0.08),
        0 0 8px rgba(148, 163, 184, 0.16);
}

.td-vip-indicator-toggle--secondary.is-on {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(235, 246, 255, 0.98)),
        linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(226, 232, 240, 0.04));
    color: #0f172a;
    border-color: rgba(56, 189, 248, 0.34);
    text-shadow: none;
}

.td-vip-indicator-toggle--secondary.is-on::after {
    background: #38bdf8;
    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.08),
        0 0 10px rgba(56, 189, 248, 0.22);
}

.td-vip-indicator-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    padding: 8px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 16px 28px -24px rgba(15, 23, 42, 0.2);
}

.td-vip-indicator-guide {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(238, 247, 255, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 18px 28px -24px rgba(14, 165, 233, 0.22);
}

.td-vip-indicator-guide-row {
    display: grid;
    gap: 3px;
}

.td-vip-indicator-guide-label {
    color: #6b7f95;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.td-vip-indicator-guide-text {
    margin: 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-indicator-setting-field {
    display: grid;
    gap: 3px;
}

.td-vip-indicator-presets {
    display: grid;
    gap: 5px;
    grid-column: 1 / -1;
    padding: 2px 0 4px;
}

.td-vip-indicator-presets-label {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.td-vip-indicator-presets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
}

.td-vip-indicator-preset-btn {
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(235, 245, 255, 0.98));
    color: #0f4c81;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.td-vip-indicator-preset-btn:hover,
.td-vip-indicator-preset-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.46);
    box-shadow: 0 12px 24px -18px rgba(14, 165, 233, 0.34);
    outline: none;
}

.td-vip-indicator-setting-label {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.td-vip-indicator-setting-input,
.td-vip-indicator-setting-select {
    width: 100%;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
}

.td-vip-indicator-setting-color {
    width: 100%;
    min-height: 31px;
    padding: 3px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
}

.td-vip-indicator-setting-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    grid-column: 1 / -1;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    font-size: 10px;
    font-weight: 600;
}

.td-vip-indicator-setting-check input {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.td-vip-indicator-setting-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    grid-column: 1 / -1;
}

.td-vip-indicator-setting-btn {
    min-height: 31px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
    color: #475569;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.td-vip-indicator-setting-btn--primary {
    border-color: rgba(8, 47, 73, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(12, 18, 34, 0.98));
    color: #f8fafc;
}

body.td-vip-body.is-night-mode {
    background: #040b16;
    color: #dbe7f4;
}

body.td-vip-body.is-night-mode .td-vip-page {
    background: linear-gradient(180deg, #07111e 0%, #040b16 100%);
}

body.td-vip-body.is-night-mode .td-vip-terminal,
body.td-vip-body.is-night-mode .td-vip-topbar,
body.td-vip-body.is-night-mode .td-vip-center,
body.td-vip-body.is-night-mode .td-vip-rightbar,
body.td-vip-body.is-night-mode .td-vip-right-tools,
body.td-vip-body.is-night-mode .td-vip-left-rail {
    background: #07111e;
    border-color: #1e293b;
}

body.td-vip-body.is-night-mode .td-vip-terminal-body {
    background: #111c2a;
}

body.td-vip-body.is-night-mode .td-vip-indicator-presets-label {
    color: #93a7bd;
}

body.td-vip-body.is-night-mode .td-vip-indicator-preset-btn {
    border-color: rgba(56, 189, 248, 0.22);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(13, 19, 32, 0.94));
    color: #dbeafe;
}

body.td-vip-body.is-night-mode .td-vip-action-bar::before {
    background: rgba(148, 163, 184, 0.16);
}

body.td-vip-body.is-night-mode .td-vip-action-bar {
    border-top-color: rgba(71, 85, 105, 0.82);
}

body.td-vip-body.is-night-mode .td-vip-back-link,
body.td-vip-body.is-night-mode .td-vip-market-pill,
body.td-vip-body.is-night-mode .td-vip-timeframes,
body.td-vip-body.is-night-mode .td-vip-menu-btn,
body.td-vip-body.is-night-mode .td-vip-secondary-btn,
body.td-vip-body.is-night-mode .td-vip-chart-bar,
body.td-vip-body.is-night-mode .td-vip-bottom-bar,
body.td-vip-body.is-night-mode .td-vip-side-panel,
body.td-vip-body.is-night-mode .td-vip-chart-shell,
body.td-vip-body.is-night-mode .td-vip-bottom-item,
body.td-vip-body.is-night-mode .td-vip-watch-item,
body.td-vip-body.is-night-mode .td-vip-indicator-popover,
body.td-vip-body.is-night-mode .td-vip-appearance-popover,
body.td-vip-body.is-night-mode .td-vip-settings-popover,
body.td-vip-body.is-night-mode .td-vip-upgrade-dialog,
body.td-vip-body.is-night-mode .td-vip-upgrade-card,
body.td-vip-body.is-night-mode .td-vip-indicator-guide,
body.td-vip-body.is-night-mode .td-vip-indicator-guide-trigger,
body.td-vip-body.is-night-mode .td-vip-appearance-color,
body.td-vip-body.is-night-mode .td-vip-appearance-range-wrap,
body.td-vip-body.is-night-mode .td-vip-appearance-check {
    border-color: #243447;
    background:
        linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(6, 14, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 20px 36px -28px rgba(2, 6, 23, 0.72);
}

body.td-vip-body.is-night-mode .td-vip-ai-toolbar-btn {
    border-color: rgba(129, 140, 248, 0.5);
    color: #e0e7ff;
    background: linear-gradient(180deg, rgba(55, 48, 163, 0.55), rgba(30, 27, 75, 0.75));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.td-vip-body.is-night-mode .td-vip-chart-shell > .td-vip-chart-bar {
    background: transparent;
    box-shadow: none;
}

body.td-vip-body.is-night-mode .td-vip-ai-toolbar-icon {
    background: rgba(224, 231, 255, 0.16);
    color: #e0e7ff;
}

body.td-vip-body.is-night-mode .td-vip-ai-toolbar-btn:hover {
    border-color: rgba(165, 180, 252, 0.55);
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(67, 56, 202, 0.65), rgba(49, 46, 129, 0.85));
}

body.td-vip-body.is-night-mode .td-vip-topbar,
body.td-vip-body.is-night-mode .td-vip-chart-bar,
body.td-vip-body.is-night-mode .td-vip-bottom-bar,
body.td-vip-body.is-night-mode .td-vip-side-panel {
    border-color: #203247;
}

body.td-vip-body.is-night-mode .td-vip-settings-section {
    border-color: rgba(51, 65, 85, 0.92);
    background: rgba(9, 17, 30, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.td-vip-body.is-night-mode .td-vip-settings-copy strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-settings-copy span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-rightbar-resize::before {
    background: rgba(148, 163, 184, 0.34);
}

body.td-vip-body.is-night-mode .td-vip-rightbar-resize::after {
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.18), rgba(100, 116, 139, 0.22), rgba(226, 232, 240, 0.14));
    box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.82);
}

body.td-vip-body.is-night-mode .td-vip-rightbar-resize {
    background: linear-gradient(90deg, rgba(7, 17, 30, 0) 0%, rgba(15, 23, 42, 0.96) 18%, rgba(30, 41, 59, 0.98) 50%, rgba(15, 23, 42, 0.96) 82%, rgba(7, 17, 30, 0) 100%);
    box-shadow: inset 1px 0 0 rgba(148, 163, 184, 0.08), inset -1px 0 0 rgba(15, 23, 42, 0.65);
}

body.td-vip-body.is-night-mode .td-vip-left-rail::after {
    background: linear-gradient(90deg, rgba(7, 17, 30, 0) 0%, rgba(51, 65, 85, 0.76) 100%);
}

body.td-vip-body.is-night-mode .td-vip-rightbar-resize:hover::before,
body.td-vip-body.is-night-mode .td-vip-rightbar-resize:focus-visible::before,
body.td-vip-body.is-night-mode .td-vip-page.td-vip-rightbar-resizing .td-vip-rightbar-resize::before {
    opacity: 0.9;
    background: rgba(203, 213, 225, 0.56);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.10);
}

body.td-vip-body.is-night-mode .td-vip-chart-shell.is-replay-pick-start {
    border-color: rgba(45, 212, 191, 0.44);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
}

body.td-vip-body.is-night-mode .td-vip-chart-shell.is-replay-pick-start::before {
    background: rgba(8, 15, 28, 0.86);
    color: #ccfbf1;
}

body.td-vip-body.is-night-mode .td-vip-page.is-replay-pick-start .td-vip-replay-toolbar {
    border-color: rgba(20, 184, 166, 0.26);
    box-shadow: 0 20px 36px -30px rgba(2, 6, 23, 0.72);
}

body.td-vip-body.is-night-mode .td-vip-page.is-replay-mode .td-vip-chart-shell {
    border-top-color: transparent;
}

body.td-vip-body.is-night-mode .td-vip-snap-guide-label-bg {
    fill: rgba(8, 15, 28, 0.92);
    stroke: rgba(45, 212, 191, 0.18);
}

body.td-vip-body.is-night-mode .td-vip-snap-guide-label-text {
    fill: #dbeafe;
}

body.td-vip-body.is-night-mode .td-vip-snap-guide-flash-bg {
    fill: rgba(8, 15, 28, 0.94);
    stroke: rgba(45, 212, 191, 0.28);
}

body.td-vip-body.is-night-mode .td-vip-snap-guide-flash-text {
    fill: #ccfbf1;
}

body.td-vip-body.is-night-mode .td-vip-snap-guide-flash-subtext {
    fill: rgba(226, 232, 240, 0.78);
}

body.td-vip-body.is-night-mode .td-vip-back-link,
body.td-vip-body.is-night-mode .td-vip-menu-btn,
body.td-vip-body.is-night-mode .td-vip-secondary-btn,
body.td-vip-body.is-night-mode .td-vip-refresh-frequency,
body.td-vip-body.is-night-mode .td-vip-top-meta,
body.td-vip-body.is-night-mode .td-vip-chart-inline-status,
body.td-vip-body.is-night-mode .td-vip-panel-kicker,
body.td-vip-body.is-night-mode .td-vip-bottom-label,
body.td-vip-body.is-night-mode .td-vip-watch-text span,
body.td-vip-body.is-night-mode .td-vip-watch-price span,
body.td-vip-body.is-night-mode .td-vip-upgrade-summary,
body.td-vip-body.is-night-mode .td-vip-upgrade-list li,
body.td-vip-body.is-night-mode .td-vip-appearance-head span,
body.td-vip-body.is-night-mode .td-vip-appearance-field span,
body.td-vip-body.is-night-mode .td-vip-appearance-check span,
body.td-vip-body.is-night-mode .td-vip-ma-note,
body.td-vip-body.is-night-mode .td-vip-refresh-frequency span,
body.td-vip-body.is-night-mode .td-vip-indicator-guide-label,
body.td-vip-body.is-night-mode .td-vip-ohlc {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-ma-note {
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(8, 47, 73, 0.35);
}

body.td-vip-body.is-night-mode .td-vip-refresh-frequency select {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-chart-heading h1,
body.td-vip-body.is-night-mode .td-vip-ohlc strong,
body.td-vip-body.is-night-mode .td-vip-bottom-item strong,
body.td-vip-body.is-night-mode .td-vip-side-head h3,
body.td-vip-body.is-night-mode .td-vip-watch-text strong,
body.td-vip-body.is-night-mode .td-vip-watch-price strong,
body.td-vip-body.is-night-mode .td-vip-appearance-head strong,
body.td-vip-body.is-night-mode .td-vip-upgrade-title,
body.td-vip-body.is-night-mode .td-vip-upgrade-card-label {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-ohlc.is-up span,
body.td-vip-body.is-night-mode .td-vip-ohlc.is-up strong {
    color: #089981;
}

body.td-vip-body.is-night-mode .td-vip-ohlc.is-down span,
body.td-vip-body.is-night-mode .td-vip-ohlc.is-down strong {
    color: #f23645;
}

body.td-vip-body.is-night-mode .td-vip-ohlc.is-flat span,
body.td-vip-body.is-night-mode .td-vip-ohlc.is-flat strong {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-ohlc em {
    color: rgba(142, 162, 184, 0.64);
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn:hover,
body.td-vip-body.is-night-mode .td-vip-timeframe-btn:focus-visible {
    background: #17263a;
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn.is-active,
body.td-vip-body.is-night-mode .td-vip-primary-btn,
body.td-vip-body.is-night-mode .td-vip-upgrade-primary {
    background: linear-gradient(180deg, #dbeafe, #93c5fd);
    color: #08111f;
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn.is-active {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-timeframe-btn.is-active {
    background: var(--td-vip-topbar-active);
    color: var(--td-vip-topbar-text-strong);
    box-shadow: inset 0 0 0 1px var(--td-vip-topbar-active-border);
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-primary-btn {
    background: #e2e8f0;
    color: #08111f;
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-primary-btn:hover,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-primary-btn:focus-visible {
    background: #f8fafc;
    color: #08111f;
}

body.td-vip-body.is-night-mode .td-vip-market-pill,
body.td-vip-body.is-night-mode #tdVipCurrentSymbol {
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-back-link {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-back-link:hover,
body.td-vip-body.is-night-mode .td-vip-back-link:focus-visible {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-top-tool--indicators .td-vip-menu-btn,
body.td-vip-body.is-night-mode .td-vip-top-tool--moving-average .td-vip-menu-btn,
body.td-vip-body.is-night-mode .td-vip-top-tool--settings .td-vip-menu-btn,
body.td-vip-body.is-night-mode .td-vip-ext-more-toggle,
body.td-vip-body.is-night-mode .td-vip-smc-toolbar-btn,
body.td-vip-body.is-night-mode .td-vip-ai-toolbar-btn {
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-topbar-refresh-cluster #tdVipAutoRefresh,
body.td-vip-body.is-night-mode .td-vip-topbar-refresh-cluster .td-vip-refresh-frequency {
    background: var(--td-vip-topbar-segment-bg);
    border-color: var(--td-vip-topbar-segment-border);
}

body.td-vip-body.is-night-mode .td-vip-topbar {
    --td-vip-topbar-divider: rgba(148, 163, 184, 0.18);
    --td-vip-topbar-divider-strong: rgba(51, 65, 85, 0.92);
    --td-vip-topbar-text: #d1dae5;
    --td-vip-topbar-text-strong: #f8fafc;
    --td-vip-topbar-muted: #718197;
    --td-vip-topbar-hover: #101827;
    --td-vip-topbar-active: #111b29;
    --td-vip-topbar-active-border: #2b3950;
    --td-vip-topbar-segment-bg: #0f172a;
    --td-vip-topbar-segment-border: #334155;
    border-bottom-color: rgba(31, 41, 55, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-top-meta,
body.td-vip-body.is-night-mode .td-vip-chart-inline-status,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-refresh-frequency,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-connection-badge {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-connection-badge.is-ok {
    color: #22c55e;
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-connection-badge.is-warn,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-connection-badge.is-error {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-topbar-right::before {
    background: var(--td-vip-topbar-divider);
}

body.td-vip-body.is-night-mode .td-vip-topbar-refresh-cluster::before {
    background: var(--td-vip-topbar-divider);
}

body.td-vip-body.is-night-mode .td-vip-timeframes-scroll,
body.td-vip-body.is-night-mode .td-vip-top-tool--indicators {
    border-left-color: transparent;
}

body.td-vip-body.is-night-mode .td-vip-timeframes-scroll::before {
    background: var(--td-vip-topbar-divider);
}

body.td-vip-body.is-night-mode .td-vip-top-tool--indicators::before {
    background: var(--td-vip-topbar-divider);
}

body.td-vip-body.is-night-mode .td-vip-session-band--asia {
    background: rgba(129, 140, 248, 0.08);
    border-left-color: rgba(129, 140, 248, 0.12);
    border-right-color: rgba(129, 140, 248, 0.08);
}

body.td-vip-body.is-night-mode .td-vip-session-band--london {
    background: rgba(52, 211, 153, 0.075);
    border-left-color: rgba(52, 211, 153, 0.1);
    border-right-color: rgba(52, 211, 153, 0.07);
}

body.td-vip-body.is-night-mode .td-vip-session-band--ny {
    background: rgba(251, 146, 60, 0.075);
    border-left-color: rgba(251, 146, 60, 0.1);
    border-right-color: rgba(251, 146, 60, 0.07);
}

body.td-vip-body.is-night-mode .td-vip-topbar-refresh-cluster .td-vip-refresh-frequency span {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-side-head,
body.td-vip-body.is-night-mode .td-vip-watchlist-head {
    border-bottom-color: rgba(148, 163, 184, 0.06);
}

body.td-vip-body.is-night-mode .td-vip-display-toggle.is-active {
    border-color: rgba(45, 212, 191, 0.28);
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.32), rgba(15, 118, 110, 0.22));
    color: #99f6e4;
}

body.td-vip-body.is-night-mode .td-vip-display-toggle--theme::before {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-display-toggle--theme.is-night::before {
    background: rgba(147, 197, 253, 0.18);
    color: #dbeafe;
}

body.td-vip-body.is-night-mode .td-vip-watch-item:hover,
body.td-vip-body.is-night-mode .td-vip-watch-item.is-active {
    border-color: rgba(51, 65, 85, 0.9);
    background: rgba(13, 24, 40, 0.94);
}

body.td-vip-body.is-night-mode .td-vip-trend-summary,
body.td-vip-body.is-night-mode .td-vip-trend-empty,
body.td-vip-body.is-night-mode .td-vip-trend-locked,
body.td-vip-body.is-night-mode .td-vip-trend-card {
    background: linear-gradient(180deg, rgba(12, 19, 34, 0.96), rgba(8, 15, 28, 0.94));
    border-color: #243447;
}

body.td-vip-body.is-night-mode .td-vip-trend-summary.is-bullish,
body.td-vip-body.is-night-mode .td-vip-trend-card.is-bullish {
    border-color: rgba(16, 185, 129, 0.4);
}

body.td-vip-body.is-night-mode .td-vip-trend-summary.is-bearish,
body.td-vip-body.is-night-mode .td-vip-trend-card.is-bearish {
    border-color: rgba(239, 68, 68, 0.36);
}

body.td-vip-body.is-night-mode .td-vip-trend-summary.is-warn,
body.td-vip-body.is-night-mode .td-vip-trend-card.is-warn {
    border-color: rgba(245, 158, 11, 0.38);
}

body.td-vip-body.is-night-mode .td-vip-trend-summary strong,
body.td-vip-body.is-night-mode .td-vip-trend-empty strong,
body.td-vip-body.is-night-mode .td-vip-trend-locked strong,
body.td-vip-body.is-night-mode .td-vip-trend-card-bias,
body.td-vip-body.is-night-mode .td-vip-trend-card-head span,
body.td-vip-body.is-night-mode .td-vip-trend-signals-head strong,
body.td-vip-body.is-night-mode .td-vip-trend-signal strong,
body.td-vip-body.is-night-mode .td-vip-trend-signal em {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-trend-summary p,
body.td-vip-body.is-night-mode .td-vip-trend-empty p,
body.td-vip-body.is-night-mode .td-vip-trend-locked p,
body.td-vip-body.is-night-mode .td-vip-trend-card p,
body.td-vip-body.is-night-mode .td-vip-trend-card-head strong,
body.td-vip-body.is-night-mode .td-vip-trend-signals-head span,
body.td-vip-body.is-night-mode .td-vip-trend-signal-empty,
body.td-vip-body.is-night-mode .td-vip-trend-signal span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-trend-summary-meta,
body.td-vip-body.is-night-mode .td-vip-trend-sync {
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-trend-upgrade {
    background: rgba(8, 47, 73, 0.82);
    border-color: rgba(56, 189, 248, 0.3);
    color: #a5f3fc;
}

body.td-vip-body.is-night-mode .td-vip-trend-signal {
    background: linear-gradient(180deg, rgba(12, 19, 34, 0.96), rgba(8, 15, 28, 0.94));
    border-color: #243447;
}

body.td-vip-body.is-night-mode .td-vip-indicator-trend-hint {
    border-color: rgba(51, 65, 85, 0.88);
    background: rgba(15, 23, 42, 0.88);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-indicator-trend-hint.is-bullish {
    border-color: rgba(16, 185, 129, 0.36);
    background: rgba(6, 95, 70, 0.24);
    color: #a7f3d0;
}

body.td-vip-body.is-night-mode .td-vip-indicator-trend-hint.is-bearish,
body.td-vip-body.is-night-mode .td-vip-indicator-trend-hint.is-warn {
    border-color: rgba(245, 158, 11, 0.36);
    background: rgba(120, 53, 15, 0.26);
    color: #fdba74;
}

body.td-vip-body.is-night-mode .td-vip-action-card,
body.td-vip-body.is-night-mode .td-vip-replay-toolbar,
body.td-vip-body.is-night-mode .td-vip-tool-dialog,
body.td-vip-body.is-night-mode .td-vip-tool-card,
body.td-vip-body.is-night-mode .td-vip-plan-form-wrap,
body.td-vip-body.is-night-mode .td-vip-plan-list-wrap,
body.td-vip-body.is-night-mode .td-vip-plan-item,
body.td-vip-body.is-night-mode .td-vip-plan-field input,
body.td-vip-body.is-night-mode .td-vip-plan-field select,
body.td-vip-body.is-night-mode .td-vip-plan-field textarea {
    border-color: #243447;
    background:
        linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(6, 14, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 20px 36px -28px rgba(2, 6, 23, 0.72);
}

body.td-vip-body.is-night-mode .td-vip-action-card {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.td-vip-body.is-night-mode .td-vip-action-card + .td-vip-action-card::before {
    background: rgba(71, 85, 105, 0.88);
}

body.td-vip-body.is-night-mode .td-vip-action-card strong,
body.td-vip-body.is-night-mode .td-vip-tool-title,
body.td-vip-body.is-night-mode .td-vip-tool-card strong,
body.td-vip-body.is-night-mode .td-vip-replay-time,
body.td-vip-body.is-night-mode .td-vip-plan-list-head strong,
body.td-vip-body.is-night-mode .td-vip-plan-field span {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-action-card:hover strong,
body.td-vip-body.is-night-mode .td-vip-action-card:focus-visible strong {
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-plan-search {
    background: rgba(15, 23, 42, 0.92);
    border-color: #334155;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-context {
    background: rgba(30, 41, 59, 0.85);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-journal-context {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-action-card small,
body.td-vip-body.is-night-mode .td-vip-action-label,
body.td-vip-body.is-night-mode .td-vip-action-foot-text,
body.td-vip-body.is-night-mode .td-vip-tool-summary,
body.td-vip-body.is-night-mode .td-vip-tool-card small,
body.td-vip-body.is-night-mode .td-vip-tool-card-label,
body.td-vip-body.is-night-mode .td-vip-replay-speed,
body.td-vip-body.is-night-mode .td-vip-replay-progress,
body.td-vip-body.is-night-mode .td-vip-plan-meta,
body.td-vip-body.is-night-mode .td-vip-plan-saved,
body.td-vip-body.is-night-mode .td-vip-plan-empty,
body.td-vip-body.is-night-mode .td-vip-plan-item-deadline,
body.td-vip-body.is-night-mode .td-vip-plan-item-text,
body.td-vip-body.is-night-mode .td-vip-plan-item-time,
body.td-vip-body.is-night-mode .td-vip-indicator-guide-text {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-badge {
    background: rgba(56, 189, 248, 0.16);
    color: #c7f9ff;
}

body.td-vip-body.is-night-mode .td-vip-replay-toolbar.is-ended .td-vip-replay-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

body.td-vip-body.is-night-mode .td-vip-replay-speed select {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipReplayPrev,
body.td-vip-body.is-night-mode #tdVipReplayNext,
body.td-vip-body.is-night-mode #tdVipReplayReset {
    border-color: #2b3f57;
    background:
        linear-gradient(180deg, rgba(14, 23, 37, 0.98), rgba(9, 16, 28, 0.98));
    color: #dbeafe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 18px -18px rgba(2, 6, 23, 0.88);
}

body.td-vip-body.is-night-mode #tdVipReplayPrev:hover,
body.td-vip-body.is-night-mode #tdVipReplayNext:hover,
body.td-vip-body.is-night-mode #tdVipReplayReset:hover,
body.td-vip-body.is-night-mode #tdVipReplayPrev:focus-visible,
body.td-vip-body.is-night-mode #tdVipReplayNext:focus-visible,
body.td-vip-body.is-night-mode #tdVipReplayReset:focus-visible {
    border-color: rgba(56, 189, 248, 0.4);
    background:
        linear-gradient(180deg, rgba(17, 34, 54, 0.98), rgba(11, 22, 37, 0.98));
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-deadline.is-overdue {
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-deadline.is-soon {
    color: #fcd34d;
}

body.td-vip-body.is-night-mode .td-vip-plan-empty,
body.td-vip-body.is-night-mode .td-vip-plan-item-btn {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.9);
}

body.td-vip-body.is-night-mode .td-vip-plan-item.is-active {
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow: 0 22px 34px -30px rgba(56, 189, 248, 0.2);
}

body.td-vip-body.is-night-mode .td-vip-plan-item.is-due-soon {
    border-color: rgba(251, 191, 36, 0.36);
    box-shadow: 0 22px 34px -30px rgba(245, 158, 11, 0.22);
}

body.td-vip-body.is-night-mode .td-vip-plan-item-btn {
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-plan-status-btn {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.92);
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-plan-filter-btn {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.92);
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-plan-filter-btn.is-active {
    border-color: rgba(14, 165, 233, 0.28);
    background: rgba(8, 47, 73, 0.5);
    color: #7dd3fc;
}

body.td-vip-body.is-night-mode .td-vip-plan-priority-btn {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.92);
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-plan-status-btn--pending.is-active {
    border-color: rgba(14, 165, 233, 0.28);
    background: rgba(8, 47, 73, 0.5);
    color: #7dd3fc;
}

body.td-vip-body.is-night-mode .td-vip-plan-status-btn--triggered.is-active {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(6, 95, 70, 0.42);
    color: #86efac;
}

body.td-vip-body.is-night-mode .td-vip-plan-status-btn--expired.is-active {
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(127, 29, 29, 0.38);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-priority--a,
body.td-vip-body.is-night-mode .td-vip-plan-priority-btn--a.is-active {
    background: rgba(133, 77, 14, 0.44);
    color: #fde68a;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-priority--b,
body.td-vip-body.is-night-mode .td-vip-plan-priority-btn--b.is-active {
    background: rgba(30, 64, 175, 0.42);
    color: #bfdbfe;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-priority--c,
body.td-vip-body.is-night-mode .td-vip-plan-priority-btn--c.is-active {
    background: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-btn--danger {
    border-color: rgba(248, 113, 113, 0.24);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-direction--wait {
    background: rgba(71, 85, 105, 0.44);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-direction--bullish {
    background: rgba(6, 95, 70, 0.42);
    color: #86efac;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-direction--bearish {
    background: rgba(127, 29, 29, 0.38);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-status--pending {
    background: rgba(8, 47, 73, 0.5);
    color: #7dd3fc;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-status--triggered {
    background: rgba(6, 95, 70, 0.42);
    color: #86efac;
}

body.td-vip-body.is-night-mode .td-vip-plan-item-status--expired {
    background: rgba(127, 29, 29, 0.38);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-watch-change.is-up {
    color: #34d399;
}

body.td-vip-body.is-night-mode .td-vip-watch-change.is-down {
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-chart-overlay {
    background: rgba(2, 6, 23, 0.72);
}

body.td-vip-body.is-night-mode .td-vip-chart-overlay-card {
    border-color: #243447;
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(6, 14, 26, 0.98));
}

body.td-vip-body.is-night-mode .td-vip-chart-overlay-card strong,
body.td-vip-body.is-night-mode .td-vip-watermark span,
body.td-vip-body.is-night-mode .td-vip-watermark strong {
    color: #dbe7f4;
}

body.td-vip-body.is-night-mode .td-vip-chart-overlay-card p,
body.td-vip-body.is-night-mode .td-vip-attribution-link,
body.td-vip-body.is-night-mode .td-vip-appearance-range-value {
    color: #7f93ab;
}

@media (max-width: 1360px) {
    .td-vip-terminal-body {
        grid-template-columns: 54px minmax(0, 1fr) 6px var(--td-vip-right-rail-width, 300px) 44px;
    }
}

@media (max-width: 1120px) {
    .td-vip-attribution-link:not(.td-vip-attribution-link--bottom) {
        display: none;
    }

    body.td-vip-body {
        overflow: auto;
    }

    .td-vip-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .td-vip-terminal {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .td-vip-terminal {
        grid-template-rows: auto auto;
    }

    .td-vip-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }

    .td-vip-topbar-left,
    .td-vip-topbar-right {
        flex-wrap: wrap;
    }

    .td-vip-timeframes-scroll {
        max-width: 100%;
    }

    .td-vip-top-tool {
        width: 100%;
    }

    .td-vip-menu-btn {
        width: 100%;
        justify-content: space-between;
    }

    .td-vip-settings-row {
        flex-direction: column;
        align-items: stretch;
    }

    .td-vip-settings-action,
    .td-vip-settings-theme-btn {
        width: 100%;
    }

    .td-vip-settings-section--appearance .td-vip-appearance-grid {
        grid-template-columns: 1fr;
    }

    .td-vip-indicator-popover {
        width: min(100%, calc(100vw - 32px));
        max-height: none;
    }

    .td-vip-terminal-body {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .td-vip-rightbar-resize {
        display: none;
    }

    .td-vip-left-rail {
        display: none;
    }

    .td-vip-rightbar {
        grid-template-rows: auto;
        padding: 0 12px 12px;
        border-left: 0;
        border-top: 1px solid #e5ebf2;
        overflow: visible;
    }

    .td-vip-right-tools {
        display: none;
    }

    .td-vip-chart-host {
        min-height: 520px;
    }

    .td-vip-plan-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .td-vip-chart-bar {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .td-vip-chart-shell > .td-vip-chart-bar {
        padding: 10px 12px;
    }

    .td-vip-indicator-list--popover {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .td-vip-indicator-settings {
        grid-template-columns: 1fr;
    }

    .td-vip-chart-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .td-vip-ohlc {
        flex-wrap: wrap;
    }

    .td-vip-chart-inline-status {
        justify-self: start;
    }

    .td-vip-chart-heading h1 {
        font-size: 17px;
        white-space: normal;
    }

    .td-vip-action-bar {
        grid-template-columns: 1fr;
    }

    .td-vip-replay-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .td-vip-replay-toolbar-actions {
        justify-content: flex-start;
    }

    .td-vip-replay-setup-grid {
        grid-template-columns: 1fr;
    }

    .td-vip-replay-quick-actions {
        flex-direction: column;
    }

    .td-vip-action-foot {
        justify-content: flex-start;
        min-height: auto;
        padding-top: 2px;
    }

    .td-vip-quote-price {
        font-size: 36px;
    }

    .td-vip-chart-host {
        min-height: 420px;
    }

    .td-vip-preset-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .td-vip-page {
        min-height: 100dvh;
    }

    .td-vip-terminal {
        min-height: 100dvh;
    }

    .td-vip-topbar-left,
    .td-vip-topbar-right {
        gap: 8px;
    }

    .td-vip-indicator-popover {
        left: 0;
        width: calc(100vw - 32px);
        max-height: none;
    }

    .td-vip-appearance-popover {
        right: 0;
        width: calc(100vw - 32px);
    }

    .td-vip-indicator-list--popover {
        grid-template-columns: 1fr;
    }

    .td-vip-indicator-head {
        grid-template-columns: 1fr;
    }

    .td-vip-indicator-head-actions {
        justify-self: start;
    }

    .td-vip-timeframes {
        width: 100%;
        justify-content: space-between;
    }

    .td-vip-timeframe-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .td-vip-bottom-bar,
    .td-vip-quote-grid {
        grid-template-columns: 1fr;
    }

    .td-vip-upgrade-modal {
        padding: 16px;
    }

    .td-vip-upgrade-dialog {
        padding: 20px;
        border-radius: 22px;
    }

    .td-vip-upgrade-title {
        font-size: 22px;
    }

    .td-vip-upgrade-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .td-vip-upgrade-actions .td-vip-primary-btn,
    .td-vip-upgrade-actions .td-vip-secondary-btn {
        width: 100%;
    }
}

.td-vip-action-foot {
    min-height: 78px;
}

.td-vip-action-foot.is-trend-active {
    justify-content: stretch;
    min-height: 78px;
    padding: 0;
    overflow: visible;
}

.td-vip-action-foot .td-vip-trend-board {
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
    overflow: visible;
    position: relative;
    z-index: 3;
}

.td-vip-trend-inline {
    display: grid;
    gap: 8px;
    width: 100%;
    min-height: 0;
}

.td-vip-trend-inline-top,
.td-vip-trend-inline-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.td-vip-trend-inline-top {
    justify-content: space-between;
}

.td-vip-trend-inline-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.td-vip-trend-inline-heading strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.td-vip-trend-inline-meta,
.td-vip-trend-inline-summary {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.td-vip-trend-inline-meta {
    white-space: nowrap;
    flex: 0 0 auto;
}

.td-vip-trend-inline-summary {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-vip-trend-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.td-vip-trend-inline-badge.is-bullish {
    background: rgba(220, 252, 231, 0.96);
    color: #047857;
}

.td-vip-trend-inline-badge.is-bearish {
    background: rgba(254, 226, 226, 0.96);
    color: #b91c1c;
}

.td-vip-trend-inline-badge.is-warn {
    background: rgba(254, 243, 199, 0.98);
    color: #b45309;
}

.td-vip-trend-inline.is-bullish {
    border-color: rgba(16, 185, 129, 0.24);
}

.td-vip-trend-inline.is-bearish {
    border-color: rgba(239, 68, 68, 0.22);
}

.td-vip-trend-inline.is-warn {
    border-color: rgba(245, 158, 11, 0.24);
}

.td-vip-trend-inline-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.td-vip-trend-context-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.td-vip-trend-mini {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid rgba(203, 213, 225, 0.76);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
}

.td-vip-trend-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.td-vip-trend-mini-head span,
.td-vip-trend-mini-head em {
    color: #94a3b8;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-vip-trend-mini strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-vip-trend-signal-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.td-vip-trend-signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
}

.td-vip-trend-signal-pill strong,
.td-vip-trend-signal-pill em {
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.td-vip-trend-signal-pill strong {
    color: #0f172a;
}

.td-vip-trend-signal-pill em {
    color: #64748b;
}

.td-vip-trend-signal-pill--more {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.td-vip-trend-inline--empty .td-vip-trend-inline-summary {
    white-space: normal;
}

.td-vip-trend-inline-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    flex: 0 0 auto;
}

.td-vip-trend-inline-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    max-width: 280px;
    padding: 8px 10px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 18px 28px -24px rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: normal;
    z-index: 32;
}

.td-vip-trend-inline-tip:hover::after,
.td-vip-trend-inline-tip:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

body.td-vip-body.is-night-mode .td-vip-action-foot .td-vip-trend-board {
    border-color: #243447;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(10, 18, 30, 0.98), rgba(8, 14, 24, 0.98));
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-heading strong,
body.td-vip-body.is-night-mode .td-vip-trend-mini strong,
body.td-vip-body.is-night-mode .td-vip-trend-signal-pill strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-meta,
body.td-vip-body.is-night-mode .td-vip-trend-inline-summary,
body.td-vip-body.is-night-mode .td-vip-trend-mini-head span,
body.td-vip-body.is-night-mode .td-vip-trend-mini-head em,
body.td-vip-body.is-night-mode .td-vip-trend-signal-pill em {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-badge {
    background: rgba(30, 41, 59, 0.92);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-badge.is-bullish {
    background: rgba(6, 95, 70, 0.42);
    color: #86efac;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-badge.is-bearish {
    background: rgba(127, 29, 29, 0.42);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-badge.is-warn {
    background: rgba(120, 53, 15, 0.44);
    color: #fcd34d;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-tip {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.92);
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-tip::after {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.98);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-trend-mini,
body.td-vip-body.is-night-mode .td-vip-trend-signal-pill {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.92);
}

@media (max-width: 1380px) {
    .td-vip-trend-inline-strip {
        grid-template-columns: 1fr;
    }

    .td-vip-trend-signal-row {
        justify-content: flex-start;
    }
}

.td-vip-trend-inline {
    gap: 6px;
}

.td-vip-trend-inline-main--compact {
    gap: 6px;
    flex-wrap: nowrap;
}

.td-vip-trend-inline-main--compact .td-vip-trend-inline-heading {
    flex: 0 0 auto;
}

.td-vip-trend-inline-main--compact .td-vip-trend-inline-summary {
    font-size: 10.5px;
}

.td-vip-trend-inline-main--compact .td-vip-trend-inline-meta {
    margin-left: auto;
}

.td-vip-trend-inline-strip {
    gap: 6px;
}

.td-vip-trend-context-row {
    gap: 5px;
}

.td-vip-trend-mini {
    padding: 6px 8px;
}

.td-vip-trend-mini strong {
    font-size: 12px;
}

.td-vip-trend-signal-pill {
    min-height: 24px;
    padding: 0 8px;
}

.td-vip-trend-signal-pill strong,
.td-vip-trend-signal-pill em {
    font-size: 10.5px;
}

@media (max-width: 1380px) {
    .td-vip-trend-inline-main--compact {
        flex-wrap: wrap;
    }

    .td-vip-trend-inline-main--compact .td-vip-trend-inline-meta {
        margin-left: 0;
    }
}

.td-vip-trend-inline {
    position: relative;
}

.td-vip-trend-view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.td-vip-trend-view-tab {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.td-vip-trend-view-tab.is-active {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(219, 234, 254, 0.98);
    color: #0369a1;
}

.td-vip-trend-inline-score {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.td-vip-trend-mini {
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.td-vip-trend-mini:hover,
.td-vip-trend-mini.is-active {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 18px 28px -26px rgba(14, 165, 233, 0.34);
}

.td-vip-trend-opportunity-row,
.td-vip-trend-stats-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.td-vip-trend-opportunity-pill,
.td-vip-trend-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    white-space: nowrap;
}

.td-vip-trend-opportunity-pill strong,
.td-vip-trend-opportunity-pill em,
.td-vip-trend-stat strong,
.td-vip-trend-stat em {
    font-size: 10.5px;
    font-style: normal;
    font-weight: 800;
}

.td-vip-trend-opportunity-pill strong,
.td-vip-trend-stat strong {
    color: #0f172a;
}

.td-vip-trend-opportunity-pill em,
.td-vip-trend-stat em {
    color: #64748b;
}

.td-vip-trend-opportunity-pill--more {
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
}

.td-vip-trend-stat.is-highlight {
    border-color: rgba(253, 224, 71, 0.72);
    background: rgba(254, 249, 195, 0.96);
}

.td-vip-trend-reason-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 56px));
    padding: 12px 12px 10px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 32px -24px rgba(15, 23, 42, 0.34);
    z-index: 28;
}

.td-vip-trend-reason-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.td-vip-trend-reason-head strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.td-vip-trend-reason-head span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.td-vip-trend-reason-popover ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 16px;
}

.td-vip-trend-reason-popover li {
    color: #475569;
    font-size: 11px;
    line-height: 1.5;
}

body.td-vip-body.is-night-mode .td-vip-trend-view-tab,
body.td-vip-body.is-night-mode .td-vip-trend-opportunity-pill,
body.td-vip-body.is-night-mode .td-vip-trend-stat {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-trend-view-tab {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-trend-view-tab.is-active {
    border-color: rgba(56, 189, 248, 0.36);
    background: rgba(15, 23, 42, 0.98);
    color: #bae6fd;
}

body.td-vip-body.is-night-mode .td-vip-trend-inline-score,
body.td-vip-body.is-night-mode .td-vip-trend-opportunity-pill em,
body.td-vip-body.is-night-mode .td-vip-trend-stat em {
    color: #8ea2b8;
}

body.td-vip-body.is-night-mode .td-vip-trend-opportunity-pill strong,
body.td-vip-body.is-night-mode .td-vip-trend-stat strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-trend-reason-popover {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.98);
}

body.td-vip-body.is-night-mode .td-vip-trend-reason-head strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-trend-reason-head span,
body.td-vip-body.is-night-mode .td-vip-trend-reason-popover li {
    color: #8ea2b8;
}

.td-vip-enhanced-block {
    margin-bottom: 8px;
}

.td-vip-enhanced-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: #334155;
}

.td-vip-enhanced-list--cards {
    padding-left: 0;
    list-style: none;
}

.td-vip-enhanced-entry-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 10px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 28px -26px rgba(15, 23, 42, 0.22);
    list-style: none;
}

.td-vip-enhanced-entry-card.is-bullish {
    border-color: rgba(16, 185, 129, 0.3);
}

.td-vip-enhanced-entry-card.is-bearish {
    border-color: rgba(249, 115, 22, 0.3);
}

.td-vip-enhanced-entry-head,
.td-vip-enhanced-entry-meta,
.td-vip-enhanced-entry-flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.td-vip-enhanced-entry-head {
    justify-content: space-between;
}

.td-vip-enhanced-entry-grade,
.td-vip-enhanced-entry-call,
.td-vip-enhanced-entry-flag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.td-vip-enhanced-entry-call {
    color: #0f172a;
}

.td-vip-enhanced-entry-card.is-bullish .td-vip-enhanced-entry-call {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(236, 253, 245, 0.9);
    color: #166534;
}

.td-vip-enhanced-entry-card.is-bearish .td-vip-enhanced-entry-call {
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(255, 247, 237, 0.92);
    color: #9a3412;
}

.td-vip-enhanced-entry-meta strong {
    font-size: 13px;
    color: #0f172a;
}

.td-vip-enhanced-entry-meta span,
.td-vip-enhanced-entry-reason {
    font-size: 12px;
    color: #64748b;
}

.td-vip-enhanced-entry-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #334155;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-list {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-card {
    border-color: rgba(71, 85, 105, 0.88);
    background: rgba(15, 23, 42, 0.78);
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-grade,
body.td-vip-body.is-night-mode .td-vip-enhanced-entry-call,
body.td-vip-body.is-night-mode .td-vip-enhanced-entry-flag {
    border-color: rgba(71, 85, 105, 0.88);
    background: rgba(30, 41, 59, 0.86);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-card.is-bullish .td-vip-enhanced-entry-call {
    border-color: rgba(16, 185, 129, 0.42);
    background: rgba(6, 78, 59, 0.9);
    color: #bbf7d0;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-card.is-bearish .td-vip-enhanced-entry-call {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(124, 45, 18, 0.9);
    color: #fed7aa;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-meta strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-meta span,
body.td-vip-body.is-night-mode .td-vip-enhanced-entry-reason {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-enhanced-entry-note {
    color: #cbd5e1;
}

.td-vip-journal-stat[title] {
    cursor: help;
}

body.td-vip-body.is-night-mode .td-vip-page,
body.td-vip-body.is-night-mode .td-vip-terminal,
body.td-vip-body.is-night-mode .td-vip-center,
body.td-vip-body.is-night-mode .td-vip-rightbar,
body.td-vip-body.is-night-mode .td-vip-right-tools,
body.td-vip-body.is-night-mode .td-vip-left-rail {
    background: #0b1220;
}

body.td-vip-body.is-night-mode .td-vip-topbar {
    border-bottom-color: #1f2937;
}

body.td-vip-body.is-night-mode .td-vip-back-link,
body.td-vip-body.is-night-mode .td-vip-market-pill,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-secondary-btn,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-connection-badge,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-refresh-frequency,
body.td-vip-body.is-night-mode .td-vip-ai-toolbar-btn,
body.td-vip-body.is-night-mode .td-vip-rail-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.td-vip-body.is-night-mode .td-vip-top-icon-svg {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-menu-graph-icon,
body.td-vip-body.is-night-mode .td-vip-menu-expand-caret {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-back-link:hover,
body.td-vip-body.is-night-mode .td-vip-back-link:focus-visible,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn:hover,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-secondary-btn:hover,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-secondary-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-ai-toolbar-btn:hover,
body.td-vip-body.is-night-mode .td-vip-rail-btn:hover,
body.td-vip-body.is-night-mode .td-vip-rail-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-top-tool.is-open .td-vip-menu-btn {
    background: #111827;
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-top-icon-btn:hover .td-vip-top-icon-svg,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-top-icon-btn:focus-visible .td-vip-top-icon-svg,
body.td-vip-body.is-night-mode .td-vip-top-tool.is-open .td-vip-menu-btn--icon .td-vip-top-icon-svg,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn--icon:hover .td-vip-top-icon-svg,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn--icon:focus-visible .td-vip-top-icon-svg {
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn:hover .td-vip-menu-graph-icon,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-menu-btn:focus-visible .td-vip-menu-graph-icon,
body.td-vip-body.is-night-mode .td-vip-top-tool.is-open .td-vip-menu-btn .td-vip-menu-graph-icon,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-secondary-btn:hover .td-vip-menu-expand-caret,
body.td-vip-body.is-night-mode .td-vip-topbar .td-vip-secondary-btn:focus-visible .td-vip-menu-expand-caret,
body.td-vip-body.is-night-mode .td-vip-top-tool.is-open .td-vip-ext-more-toggle .td-vip-menu-expand-caret {
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-timeframes {
    background: transparent;
    border-color: transparent;
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn {
    color: #9ca3af;
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn:hover,
body.td-vip-body.is-night-mode .td-vip-timeframe-btn:focus-visible {
    background: #111827;
}

body.td-vip-body.is-night-mode .td-vip-timeframe-btn.is-active,
body.td-vip-body.is-night-mode .td-vip-rail-btn.is-active {
    background: #334155;
    color: #f8fafc;
}

body.td-vip-body.is-night-mode .td-vip-terminal-body {
    background: #0b1220;
}

body.td-vip-body.is-night-mode .td-vip-left-rail,
body.td-vip-body.is-night-mode .td-vip-rightbar,
body.td-vip-body.is-night-mode .td-vip-right-tools {
    border-color: #1f2937;
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-right-tool-icon--ai {
    color: #bfdbfe;
    background: radial-gradient(circle at 35% 30%, rgba(59, 130, 246, 0.32) 0%, rgba(30, 64, 175, 0.48) 56%, rgba(15, 23, 42, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px -14px rgba(96, 165, 250, 0.5);
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn--ai:hover .td-vip-right-tool-icon--ai,
body.td-vip-body.is-night-mode .td-vip-right-tool-btn--ai:focus-visible .td-vip-right-tool-icon--ai,
body.td-vip-body.is-night-mode .td-vip-right-tool-btn--ai.is-active .td-vip-right-tool-icon--ai {
    color: #eff6ff;
    background: radial-gradient(circle at 35% 30%, rgba(96, 165, 250, 0.42) 0%, rgba(37, 99, 235, 0.58) 56%, rgba(15, 23, 42, 0.96) 100%);
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn:hover,
body.td-vip-body.is-night-mode .td-vip-right-tool-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-right-tool-btn.is-active {
    background: #17263a;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-chart-shell {
    background: #0b1220;
}

body.td-vip-body.is-night-mode .td-vip-side-panel--watchlist,
body.td-vip-body.is-night-mode .td-vip-watchlist-head,
body.td-vip-body.is-night-mode .td-vip-watch-item {
    background: transparent;
}

body.td-vip-body.is-night-mode .td-vip-side-head,
body.td-vip-body.is-night-mode .td-vip-watchlist-head,
body.td-vip-body.is-night-mode .td-vip-watch-item {
    border-color: #1f2937;
}

body.td-vip-body.is-night-mode .td-vip-watch-item:hover,
body.td-vip-body.is-night-mode .td-vip-watch-item.is-active {
    background: rgba(13, 24, 40, 0.94);
}

body.td-vip-body.is-night-mode .td-vip-watch-item:focus-visible {
    border-color: rgba(71, 85, 105, 0.96);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 0 1px rgba(71, 85, 105, 0.26);
}

body.td-vip-body.is-night-mode .td-vip-watch-item.is-syncing {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

body.td-vip-body.is-night-mode .td-vip-watch-item.is-pending {
    background: rgba(15, 23, 42, 0.9);
}

body.td-vip-body.is-night-mode .td-vip-watch-cell.is-pending {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-side-panel--watchlist .td-vip-panel-kicker {
    color: #7c8aa0;
}

body.td-vip-body.is-night-mode .td-vip-side-panel--watchlist .td-vip-panel-kicker::before {
    background: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.06);
}

body.td-vip-body.is-night-mode .td-vip-watchlist-head {
    color: #718197;
}

body.td-vip-body.is-night-mode .td-vip-watch-symbol::before {
    background: #718197;
}

body.td-vip-body.is-night-mode .td-vip-watch-item.is-active .td-vip-watch-symbol::before {
    background: #f59e0b;
}

body.td-vip-body.is-night-mode .td-vip-watch-text span {
    color: #718197;
}

.td-vip-indicator-popover { z-index: 2147483647 !important; }
.td-vip-tool-modal { z-index: 2147483647 !important; }
.td-vip-topbar { z-index: 2147483647 !important; overflow: visible !important; }

.td-vip-pro-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: auto;
    padding: 14px 16px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.98));
    box-shadow: 0 24px 56px -36px rgba(15, 23, 42, 0.42);
}

.td-vip-pro-card-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.td-vip-pro-card-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.td-vip-pro-card-note {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-pro-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.td-vip-workspace-utility {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.td-vip-workspace-utility-btn {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.td-vip-workspace-utility-btn:hover,
.td-vip-workspace-utility-btn:focus-visible {
    color: #0f172a;
    outline: none;
}

.td-vip-workspace-utility-btn + .td-vip-workspace-utility-btn {
    position: relative;
    padding-left: 15px;
}

.td-vip-workspace-utility-btn + .td-vip-workspace-utility-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 13px;
    background: rgba(203, 213, 225, 0.92);
    transform: translateY(-50%);
}

.td-vip-pro-card-workspace {
    display: grid;
    gap: 3px;
    min-width: 120px;
    justify-items: start;
}

.td-vip-pro-card-workspace small {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.td-vip-tool-dialog--compact {
    width: min(460px, 100%);
}

.td-vip-tool-dialog--onboarding {
    width: min(760px, 100%);
}

.td-vip-tool-dialog--workspace {
    width: min(540px, 100%);
    padding: 22px 24px 18px;
}

.td-vip-tool-dialog--workspace .td-vip-tool-title {
    margin: 6px 0 0;
    font-size: 24px;
}

.td-vip-tool-dialog--widget {
    width: min(980px, 100%);
    padding: 22px 24px 20px;
}

.td-vip-tool-dialog--widget .td-vip-tool-title {
    margin: 14px 0 6px;
    font-size: 26px;
}

.td-vip-forex-widget-btn[aria-expanded="true"] {
    color: #0f172a;
    border-color: rgba(96, 165, 250, 0.54);
    background: rgba(239, 246, 255, 0.94);
}

.td-vip-forex-widget-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
}

.td-vip-forex-widget-tab {
    min-height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.td-vip-forex-widget-tab.is-active {
    background: #0f172a;
    color: #f8fafc;
}

.td-vip-forex-widget-summary {
    max-width: 760px;
}

.td-vip-forex-widget-stage {
    margin-top: 16px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.td-vip-forex-widget-pane {
    display: none;
}

.td-vip-forex-widget-pane.is-active {
    display: block;
}

.td-vip-forex-widget-host {
    min-height: 520px;
}

.td-vip-forex-widget-host .tradingview-widget-container,
.td-vip-forex-widget-host .tradingview-widget-container__widget,
.td-vip-forex-widget-host iframe {
    width: 100% !important;
    min-height: 520px !important;
}

.td-vip-workspace-current {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

.td-vip-workspace-current-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.td-vip-workspace-current strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.td-vip-workspace-current small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.td-vip-tool-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.td-vip-tool-field.is-hidden {
    display: none;
}

.td-vip-tool-field > span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.td-vip-tool-field input,
.td-vip-tool-field textarea,
.td-vip-tool-field select {
    min-height: 48px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font: inherit;
    outline: none;
}

.td-vip-tool-feedback {
    margin: 12px 0 0;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.td-vip-tool-feedback.is-hidden {
    display: none;
}

.td-vip-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.td-vip-workspace-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    max-height: min(44vh, 360px);
    overflow: auto;
}

.td-vip-workspace-empty {
    display: grid;
    gap: 6px;
    padding: 14px 0 2px;
}

.td-vip-workspace-empty strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.td-vip-workspace-empty span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.td-vip-workspace-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.td-vip-workspace-item:hover,
.td-vip-workspace-item:focus-visible {
    border-color: rgba(96, 165, 250, 0.52);
    outline: none;
}

.td-vip-workspace-item.is-selected {
    border-color: rgba(37, 99, 235, 0.42);
}

.td-vip-workspace-item.is-active {
    border-color: rgba(96, 165, 250, 0.64);
}

.td-vip-workspace-item-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.td-vip-workspace-item-copy strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.td-vip-workspace-item-copy span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.td-vip-workspace-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.td-vip-workspace-badge {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.td-vip-workspace-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 999px;
    background: #60a5fa;
}

.td-vip-workspace-load {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.td-vip-workspace-load:hover,
.td-vip-workspace-load:focus-visible {
    color: #2563eb;
    outline: none;
}

.td-vip-workspace-actions {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.96);
}

.td-vip-workspace-actions-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.td-vip-workspace-action-btn {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.td-vip-workspace-action-btn:hover,
.td-vip-workspace-action-btn:focus-visible {
    color: #2563eb;
    outline: none;
}

body.td-vip-body.is-night-mode .td-vip-pro-card,
body.td-vip-body.is-night-mode .td-vip-workspace-item,
body.td-vip-body.is-night-mode .td-vip-workspace-empty,
body.td-vip-body.is-night-mode .td-vip-tool-field input,
body.td-vip-body.is-night-mode .td-vip-tool-field textarea,
body.td-vip-body.is-night-mode .td-vip-tool-field select {
    border-color: rgba(51, 65, 85, 0.92);
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(15, 23, 42, 0.98));
}

body.td-vip-body.is-night-mode .td-vip-pro-card-title,
body.td-vip-body.is-night-mode .td-vip-workspace-item-copy strong,
body.td-vip-body.is-night-mode .td-vip-workspace-empty strong,
body.td-vip-body.is-night-mode .td-vip-workspace-current strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-pro-card-note,
body.td-vip-body.is-night-mode .td-vip-pro-card-workspace small,
body.td-vip-body.is-night-mode .td-vip-workspace-item-copy span,
body.td-vip-body.is-night-mode .td-vip-workspace-empty span,
body.td-vip-body.is-night-mode .td-vip-workspace-current small,
body.td-vip-body.is-night-mode .td-vip-workspace-utility-btn,
body.td-vip-body.is-night-mode .td-vip-tool-field > span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-workspace-item.is-active {
    border-color: rgba(56, 189, 248, 0.5);
}

body.td-vip-body.is-night-mode .td-vip-workspace-badge {
    color: #7dd3fc;
}

body.td-vip-body.is-night-mode .td-vip-workspace-badge::before {
    background: #38bdf8;
}

body.td-vip-body.is-night-mode .td-vip-workspace-current,
body.td-vip-body.is-night-mode .td-vip-workspace-actions,
body.td-vip-body.is-night-mode .td-vip-workspace-item,
body.td-vip-body.is-night-mode .td-vip-workspace-utility-btn + .td-vip-workspace-utility-btn::before {
    border-color: rgba(51, 65, 85, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-workspace-action-btn,
body.td-vip-body.is-night-mode .td-vip-workspace-load {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-forex-widget-btn[aria-expanded="true"] {
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(8, 47, 73, 0.82);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-forex-widget-tabs {
    border-color: rgba(51, 65, 85, 0.92);
    background: rgba(15, 23, 42, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-forex-widget-tab {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-forex-widget-tab.is-active {
    background: rgba(56, 189, 248, 0.18);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-forex-widget-stage {
    border-color: rgba(51, 65, 85, 0.92);
    background: rgba(10, 20, 34, 0.98);
}

body.td-vip-body.is-night-mode .td-vip-workspace-action-btn:hover,
body.td-vip-body.is-night-mode .td-vip-workspace-action-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-workspace-load:hover,
body.td-vip-body.is-night-mode .td-vip-workspace-load:focus-visible,
body.td-vip-body.is-night-mode .td-vip-workspace-utility-btn:hover,
body.td-vip-body.is-night-mode .td-vip-workspace-utility-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-forex-widget-tab:hover,
body.td-vip-body.is-night-mode .td-vip-forex-widget-tab:focus-visible {
    color: #7dd3fc;
}

@media screen and (max-width: 900px) {
    html,
    body.td-vip-body {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: auto !important;
    }

    @supports (height: 100dvh) {
        html,
        body.td-vip-body {
            min-height: 100dvh !important;
        }
    }

    body.td-vip-body {
        background: #eef2f6 !important;
    }

    body.td-vip-body .td-vip-page {
        position: relative !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        padding-bottom: calc(184px + env(safe-area-inset-bottom, 0px));
        background:
            radial-gradient(circle at top center, rgba(191, 219, 254, 0.28), transparent 30%),
            linear-gradient(180deg, #eef2f6, #edf3fb);
    }

    @supports (height: 100dvh) {
        body.td-vip-body .td-vip-page {
            min-height: 100dvh !important;
        }
    }

    body.td-vip-body .td-vip-terminal {
        grid-template-rows: auto auto !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        background: transparent;
    }

    body.td-vip-body .td-vip-topbar {
        position: sticky;
        top: 0;
        padding: 12px !important;
        gap: 10px !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.86);
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        z-index: 120 !important;
    }

    body.td-vip-body .td-vip-topbar-left,
    body.td-vip-body .td-vip-topbar-right {
        flex-wrap: wrap;
    }

    body.td-vip-body .td-vip-timeframes-scroll {
        max-width: 100%;
    }

    body.td-vip-body .td-vip-terminal-body,
    body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-terminal-body {
        grid-template-columns: minmax(0, 1fr) !important;
        column-gap: 0 !important;
        row-gap: 12px;
        height: auto !important;
        min-height: 0 !important;
        padding: 12px 12px 0 !important;
        overflow: visible !important;
        background: transparent;
    }

    body.td-vip-body .td-vip-center {
        order: 1;
        gap: 12px;
        padding: 0 0 4px !important;
        overflow: visible !important;
        background: transparent;
    }

    body.td-vip-body .td-vip-chart-shell {
        display: grid;
        gap: 8px;
        overflow: hidden;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 26px 70px -48px rgba(15, 23, 42, 0.52);
    }

    body.td-vip-body .td-vip-chart-shell > .td-vip-chart-bar {
        position: static !important;
        padding: 14px 14px 0 !important;
        pointer-events: auto;
    }

    body.td-vip-body .td-vip-chart-host {
        min-height: 420px !important;
        height: clamp(420px, 58vh, 620px);
    }

    body.td-vip-body .td-vip-right-tools {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        order: 2;
        gap: 8px;
        padding: 8px !important;
        border: 1px solid rgba(203, 213, 225, 0.84);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 22px 48px -38px rgba(15, 23, 42, 0.46);
        backdrop-filter: blur(16px);
    }

    body.td-vip-body .td-vip-right-tool-btn {
        width: auto !important;
        min-height: 52px;
        padding: 8px 6px !important;
        border-radius: 14px;
    }

    body.td-vip-body .td-vip-rightbar,
    body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-rightbar {
        display: flex !important;
        order: 3;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        background: transparent;
        border: 0 !important;
        overflow: visible !important;
    }

    body.td-vip-body .td-vip-page.td-vip-watchlist-collapsed .td-vip-rightbar {
        display: none !important;
    }

    body.td-vip-body .td-vip-rightbar .td-vip-side-panel,
    body.td-vip-body .td-vip-rightbar .td-vip-right-panel {
        width: 100%;
        border: 1px solid rgba(203, 213, 225, 0.84);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 54px -42px rgba(15, 23, 42, 0.42);
    }

    body.td-vip-body .td-vip-left-rail {
        display: flex !important;
        position: fixed !important;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding: 8px !important;
        border: 1px solid rgba(203, 213, 225, 0.88);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 24px 60px -42px rgba(15, 23, 42, 0.46);
        backdrop-filter: blur(18px);
        overflow-x: auto;
        overflow-y: visible;
        z-index: 140;
    }

    body.td-vip-body .td-vip-left-rail-main {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        min-width: max-content;
        width: auto;
    }

    body.td-vip-body .td-vip-rail-btn {
        width: 58px;
        min-height: 54px;
        padding: 8px 0 6px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    body.td-vip-body .td-vip-left-rail-flyout {
        position: fixed !important;
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        max-height: min(58vh, 460px);
        padding: 18px 18px 16px;
        border-radius: 24px;
        box-shadow: 0 36px 80px -46px rgba(15, 23, 42, 0.58);
    }
}

@media screen and (max-width: 720px) {
    body.td-vip-body .td-vip-page {
        padding-bottom: calc(196px + env(safe-area-inset-bottom, 0px));
    }

    body.td-vip-body .td-vip-topbar {
        padding: 10px !important;
    }

    body.td-vip-body .td-vip-topbar-left,
    body.td-vip-body .td-vip-topbar-right {
        gap: 6px;
    }

    body.td-vip-body .td-vip-chart-host {
        min-height: 380px !important;
        height: clamp(380px, 52vh, 520px);
    }

    body.td-vip-body .td-vip-right-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.td-vip-body .td-vip-pro-card,
    body.td-vip-body .td-vip-workspace-item {
        grid-template-columns: 1fr;
    }

    body.td-vip-body .td-vip-pro-card-actions,
    body.td-vip-body .td-vip-workspace-item-actions,
    body.td-vip-body .td-vip-tool-actions {
        justify-content: flex-start;
    }

    body.td-vip-body .td-vip-workspace-actions {
        gap: 8px;
    }

    body.td-vip-body .td-vip-workspace-utility {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    body.td-vip-body .td-vip-tool-modal {
        padding: 14px;
        align-items: flex-end;
    }

    body.td-vip-body .td-vip-tool-dialog,
    body.td-vip-body .td-vip-tool-dialog--plan,
    body.td-vip-body .td-vip-tool-dialog--onboarding,
    body.td-vip-body .td-vip-tool-dialog--compact {
        width: 100%;
        max-height: min(84vh, 760px);
        overflow: auto;
        padding: 22px 18px 18px;
        border-radius: 24px 24px 18px 18px;
    }

    body.td-vip-body .td-vip-tool-dialog--widget {
        padding: 20px 16px 16px;
    }

    body.td-vip-body .td-vip-forex-widget-stage {
        margin-top: 14px;
        border-radius: 16px;
    }

    body.td-vip-body .td-vip-forex-widget-host,
    body.td-vip-body .td-vip-forex-widget-host .tradingview-widget-container,
    body.td-vip-body .td-vip-forex-widget-host .tradingview-widget-container__widget,
    body.td-vip-body .td-vip-forex-widget-host iframe {
        min-height: 460px !important;
    }

    body.td-vip-body .td-vip-onboarding-grid {
        grid-template-columns: 1fr;
    }
}

body.td-vip-body.is-night-mode .td-vip-topbar {
    background: rgba(7, 17, 30, 0.92);
    border-color: rgba(31, 41, 55, 0.92);
}

body.td-vip-body.is-night-mode,
body.td-vip-body.is-night-mode .td-vip-page,
body.td-vip-body.is-night-mode .td-vip-terminal {
    background: #07111e !important;
}

body.td-vip-body.is-night-mode .td-vip-topbar {
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(7, 17, 30, 0.97)) !important;
    border-color: rgba(31, 41, 55, 0.92) !important;
    box-shadow: inset 0 -1px 0 rgba(51, 65, 85, 0.62);
}

body.td-vip-body.is-night-mode .td-vip-terminal-body {
    background: #07111e !important;
}

body.td-vip-body.is-night-mode .td-vip-bottom-bar {
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(7, 17, 30, 0.98)) !important;
    border-color: rgba(31, 41, 55, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(51, 65, 85, 0.54);
}

body.td-vip-body.is-night-mode .td-vip-bottom-item {
    background: transparent;
    box-shadow: none;
}

body.td-vip-body.is-night-mode .td-vip-right-tools,
body.td-vip-body.is-night-mode .td-vip-left-rail,
body.td-vip-body.is-night-mode .td-vip-rightbar .td-vip-side-panel,
body.td-vip-body.is-night-mode .td-vip-rightbar .td-vip-right-panel,
body.td-vip-body.is-night-mode .td-vip-chart-shell,
body.td-vip-body.is-night-mode .td-vip-left-rail-flyout {
    background: rgba(7, 17, 30, 0.96);
    border-color: rgba(31, 41, 55, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-right-tools {
    border-left-color: rgba(31, 41, 55, 0.92);
    background: linear-gradient(180deg, rgba(9, 17, 30, 0.98) 0%, rgba(7, 17, 30, 0.98) 100%);
    box-shadow: inset 1px 0 0 rgba(148, 163, 184, 0.05);
}

body.td-vip-body.is-night-mode .td-vip-rightbar {
    background: linear-gradient(180deg, rgba(7, 17, 30, 0.98) 0%, rgba(11, 18, 32, 0.98) 100%);
    box-shadow: inset 1px 0 0 rgba(148, 163, 184, 0.05), inset -1px 0 0 rgba(31, 41, 55, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-rightbar::after {
    background: rgba(31, 41, 55, 0.92);
}

body.td-vip-body.is-night-mode .td-vip-rightbar .td-vip-side-panel,
body.td-vip-body.is-night-mode .td-vip-rightbar .td-vip-right-panel {
    background: transparent;
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn {
    border-color: transparent;
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn:hover,
body.td-vip-body.is-night-mode .td-vip-right-tool-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-right-tool-btn.is-active {
    background: rgba(13, 24, 40, 0.96);
    border-color: rgba(51, 65, 85, 0.88);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn.is-active {
    box-shadow: 0 10px 18px -18px rgba(2, 6, 23, 0.7);
}

body.td-vip-body.is-night-mode .td-vip-right-tool-btn.is-active::before {
    background: #e2e8f0;
}

